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 |
|---|---|---|---|---|---|---|
Method for excercise 2.19 | public static double SideCalculator(float x1, float y1, float x2, float y2){
double coord1 = Math.pow((x1 - x2), 2);
double coord2 = Math.pow((y1 - y2), 2);
double side = Math.pow((coord1 + coord2), 0.5);
return side;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"private void m50366E() {\n }",
"public void method_4270() {}",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo38117a() {\n }",
"public void mo12628c() {\n }",
"@Override\n public void perish() {\n \n }",
"public void mo1976s() throws cf {\r\n }",
"private stendhal() {\n\t}",
"public abstract void mo70713b();",
"public void mo1964g() throws cf {\r\n }",
"public abstract void mo56925d();",
"void m1864a() {\r\n }",
"public void mo1972o() throws cf {\r\n }",
"public void mo21787L() {\n }",
"public void mo23813b() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public final void mo91715d() {\n }",
"public void mo4359a() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"private void m50367F() {\n }",
"public boolean method_2434() {\r\n return false;\r\n }",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"public void mo12930a() {\n }",
"private void level7() {\n }",
"public void m23075a() {\n }",
"public static void listing5_14() {\n }",
"public void mo21877s() {\n }",
"protected void mo6255a() {\n }",
"public abstract void mo27385c();",
"public void mo115190b() {\n }",
"public boolean method_2453() {\r\n return false;\r\n }",
"public void mo21825b() {\n }",
"public boolean method_218() {\r\n return false;\r\n }",
"@Override\n protected void getExras() {\n }",
"public void mo21779D() {\n }",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void mo6081a() {\n }",
"public boolean method_4088() {\n return false;\n }",
"public abstract void mo2624j();",
"public boolean method_216() {\r\n return false;\r\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"public void mo21785J() {\n }",
"public void mo1531a() {\n }",
"public abstract void mo6549b();",
"void mo1943l();",
"public void mo21879u() {\n }",
"public void mo21794S() {\n }",
"public abstract C7982k4<E> m39518y();",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void mo21792Q() {\n }",
"public boolean method_210() {\r\n return false;\r\n }",
"public boolean method_208() {\r\n return false;\r\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\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void mo21782G() {\n }",
"public void mo21878t() {\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void skystonePos6() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"static void feladat9() {\n\t}",
"public void mo9848a() {\n }",
"void mo57277b();",
"public boolean method_194() {\r\n return false;\r\n }",
"public boolean method_4093() {\n return false;\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21795T() {\n }",
"public boolean method_1456() {\r\n return true;\r\n }",
"@Override\n\tprotected void interr() {\n\t}",
"void mo1942k();",
"public abstract void mo27386d();",
"public boolean method_4132() {\n return false;\n }",
"Compatibility compatibility();",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"public void mo1963f() throws cf {\r\n }",
"public final void mo8775b() {\n }",
"public void mo21786K() {\n }",
"public void mo1966i() throws cf {\r\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void m9741j() throws cf {\r\n }",
"static void feladat6() {\n\t}",
"public void mo21793R() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public boolean method_3897() {\r\n return false;\r\n }",
"static void feladat7() {\n\t}",
"public void mo1962e() throws cf {\r\n }",
"public boolean method_196() {\r\n return false;\r\n }",
"@Override\n\tpublic void challenge17() {\n\n\t}"
] | [
"0.64986694",
"0.6416085",
"0.61663496",
"0.61131614",
"0.60934585",
"0.6080855",
"0.60689056",
"0.60104376",
"0.59825283",
"0.5915454",
"0.58745146",
"0.5867481",
"0.58165205",
"0.5784089",
"0.5779402",
"0.5751849",
"0.5740923",
"0.5728638",
"0.57268006",
"0.5721062",
"0.5707182",
"0.57026905",
"0.5687113",
"0.5670461",
"0.56547934",
"0.56526375",
"0.56520945",
"0.5651572",
"0.5647045",
"0.56362236",
"0.56275594",
"0.56237024",
"0.56222534",
"0.56169444",
"0.5616792",
"0.5616515",
"0.5615591",
"0.5610203",
"0.56058365",
"0.5598251",
"0.55933917",
"0.55915266",
"0.5587192",
"0.5581555",
"0.5581068",
"0.5579305",
"0.557406",
"0.5569413",
"0.55600935",
"0.55573833",
"0.555473",
"0.55520666",
"0.55465597",
"0.55425674",
"0.554237",
"0.5539916",
"0.55398786",
"0.5538775",
"0.5534272",
"0.5534272",
"0.5534272",
"0.5534272",
"0.5534272",
"0.5534272",
"0.5534272",
"0.55338204",
"0.55338204",
"0.55246687",
"0.55111283",
"0.5509269",
"0.55068356",
"0.55049294",
"0.5502013",
"0.54995376",
"0.5499209",
"0.5497761",
"0.54962623",
"0.5488128",
"0.5485488",
"0.54847145",
"0.54817116",
"0.54732984",
"0.5463302",
"0.54610586",
"0.5459931",
"0.5452542",
"0.5452441",
"0.54503775",
"0.5443597",
"0.5441461",
"0.543731",
"0.5436795",
"0.543436",
"0.5431781",
"0.5427652",
"0.54268414",
"0.542153",
"0.54079974",
"0.5407535",
"0.5402201",
"0.539301"
] | 0.0 | -1 |
declare the dialog as a member field of your activity | public void onClick(DialogInterface dialog, int id) {
ProgressDialog mProgressDialog;
// instantiate it within the onCreate method
mProgressDialog = new ProgressDialog(MonthActivity.this);
mProgressDialog.setMessage("A message");
mProgressDialog.setIndeterminate(true);
mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
mProgressDialog.setCancelable(true);
// execute this when the downloader must be fired
final DownloadTask downloadTask = new DownloadTask(MonthActivity.this);
downloadTask.execute(zip.getText().toString());
mProgressDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {
@Override
public void onCancel(DialogInterface dialog) {
downloadTask.cancel(true);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }",
"private void initDialog() {\n }",
"public void setDialog(Dialog dialog) {\r\n\t mDialog = dialog;\r\n\t }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }",
"@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}",
"public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n\t return mDialog;\r\n\t }",
"public void setDialog(Dialog dialog) {\n mDialog = dialog;\n }",
"public void setDialog(Dialog dialog) {\n mDialog = dialog;\n }",
"public abstract void initDialog();",
"private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }",
"public Dialog() {\n\t}",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}",
"private Dialogs () {\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }",
"public void showDialog(Context context) {\n \n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getArguments().getString(\"title\"))\n .setMessage(getArguments().getString(\"message\"))\n .setCancelable(false)\n .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n // call callback method\n // mListener.onInfoDialogOKClick(InfoDialog.this);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }",
"public DialogManager() {\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n setRetainInstance(true);\n\n Dialog dialog = new Dialog(getContext(), R.style.DialogTheme);\n dialog.setContentView(R.layout.add_student_feedback_dialog);\n\n return dialog;\n }",
"protected XWalkDialogManager getDialogManager() {\n return mActivityDelegate.getDialogManager();\n }",
"private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"The user your trying to connect to does not have a name set\";\n if(getArguments().getBoolean(\"me\"))\n {\n mess = \"Someone tried to connect to you for a game but you dont have a name set\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }",
"public CommonDialog(@NonNull Context context) {\n super(context,R.style.EditDialong);\n// this.listener = listener;\n// View contentView = LayoutInflater.from(context).inflate(R.layout.dialog_edit, null);\n// setContentView(contentView);\n// Window dialongWindow = getWindow();\n// WindowManager.LayoutParams lp = dialongWindow.getAttributes();\n// DisplayMetrics d = context.getResources().getDisplayMetrics();\n// lp.width = (int) (d.widthPixels*0.8);\n// dialongWindow.setAttributes(lp);\n// initView();\n// initListener();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(this.m)\n .setPositiveButton(R.string.donesuccess, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // onFailure();\n onLoginFailed(m);\n }\n });\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Done entering class?\")\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent tmp = new Intent(getContext(), course_info.class);\n startActivity(tmp);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"void setDialogueManager(IDialogueManager dialogueManager);",
"public MatchMadeDialog(MainActivity activity, MainPagerAdapter.MatchMadeDialogListener listener) {\n super(activity);\n setContentView(R.layout.dialog_match_made);\n setTitle(R.string.this_weekend_dialog_match_title);\n\n // Initialize member variables\n mListener = listener;\n mMainActivity = activity;\n mCurrentUser = ParseUser.getCurrentUser();\n mGroupMembersRelation =\n mCurrentUser.getRelation(ParseConstants.KEY_GROUP_MEMBERS_RELATION);\n mGroupMembers = new ArrayList<>();\n\n // Get group members from Parse\n fetchParseData();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //return super.onCreateDialog(savedInstanceState); // TODO: should we call it?\n final String title = getArguments().getString(\"TITLE\");\n final String msg = getArguments().getString(\"MESSAGE\");\n final String pos = getArguments().getString(\"POS\");\n final String neg = getArguments().getString(\"NEG\");\n final String neu = getArguments().getString(\"NEU\");\n // TODO - this is just an int... what about other ... Parcelable\n final int idx = getArguments().getInt(\"IDX\");\n final int iconid = getArguments().getInt(\"ICON_ID\");\n final float textsize = getArguments().getFloat(\"MSGSIZE\");\n\n if (savedInstanceState != null) {\n tag = savedInstanceState.getString(\"TAG\");\n }\n\n final DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialogInterface, int clickedButton) {\n ConfirmListener act = (ConfirmListener) getActivity();\n act.processConfirmation(clickedButton, tag, idx);\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(title)\n .setMessage(msg);\n if (iconid != 0 && getResources().getResourceTypeName(iconid).equals(\"drawable\")) {\n // this must be a R.drawable.id, otherwise crash!\n // android.content.res.Resources$NotFoundException:\n builder.setIcon(iconid);\n }\n if (pos != null) {\n builder.setPositiveButton(pos, listener);\n }\n if (neg != null) {\n builder.setNegativeButton(neg, listener);\n }\n if (neu != null) {\n builder.setNeutralButton(neu, listener);\n }\n\n dialog = builder.create();\n if (textsize != 0) {\n dialog.show(); // need to call this to be able to get the TextView as non-null pointer\n TextView tv = (TextView) dialog.findViewById(android.R.id.message);\n if (tv != null) {\n tv.setTextSize(textsize);\n }\n }\n return dialog;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"They decliened your invitation\";\n if(getArguments().getBoolean(\"hostDeclined\"))\n {\n mess = \"They canceled their invitation\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }",
"@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }",
"public EditDialog(Context context, MSDialog dialog)\n {\n super(context);\n \n this.ecu = ApplicationSettings.INSTANCE.getEcuDefinition();\n this.dialog = dialog;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n setRetainInstance(true);\n\n Dialog dialog = new Dialog(getContext(), R.style.DialogTheme);\n dialog.setContentView(R.layout.add_sale_item_dialog);\n\n return dialog;\n }",
"public void setDialog(Dialog dialog) {\n\t\t\tmDialog = dialog;\n\t\t}",
"public void setDialog(Dialog dialog) {\n\t\t\tmDialog = dialog;\n\t\t}",
"public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }",
"public void onDialogPositiveClick(DialogFragment dialog);",
"@Override\r\n\t protected Dialog onCreateDialog(int id) {\n\t \r\n\t screenDialog = null;\r\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t screenDialog = new Dialog(this);\r\n\t screenDialog.setContentView(R.layout.message);\r\n\t messageText=(EditText)screenDialog.findViewById(R.id.messagetext1);\r\n\t send=(Button)screenDialog.findViewById(R.id.button1);\r\n\t send.setOnClickListener(sendmessage);\r\n\t cancel=(Button)screenDialog.findViewById(R.id.button2);\r\n\t cancel.setOnClickListener(cancelmessage);\r\n\t }\r\n\t return screenDialog;\r\n\t }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }",
"public FiltroGirosDialog() {\n \n }",
"@SuppressLint(\"StaticFieldLeak\")\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n myear = c.get(Calendar.YEAR);\n mmonth= c.get(Calendar.MONTH);\n mday= c.get(Calendar.DAY_OF_MONTH);\n return new DatePickerDialog(getActivity(), this, myear, mmonth, mday);\n }",
"private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"Stalemate!\";\n if(getArguments().getBoolean(\"check\"))\n {\n mess = \"Checkmate! \"+getArguments().getString(\"team\")+\" wins\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.d(TAG, \"Ok\");\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public void onStart() {\n pDialog.show();\n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.fragment_message_dialog, null);\n msg = rootView.findViewById(R.id.msg);\n submit = rootView.findViewById(R.id.msg_submit);\n final int code = getTargetRequestCode();\n builder.setView(rootView);\n builder.setTitle(\"Enter a message:\");\n\n submit.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n sendResult(code);\n dismiss();\n\n\n }\n\n });\n\n return builder.create();\n }",
"public PHConstDialog() {\n\t\tinitComponents();\n\t}",
"public void initOverrideDialog(Activity a) {\n OverrideDialog mOverrideDialog = new OverrideDialog(a);\n mOverrideDialog.show();\n }",
"@SuppressLint(\"InflateParams\")\r\n\tprivate void showDialog() {\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(getActivity());\r\n\t\tviewAddEmployee = layoutInflater\r\n\t\t\t\t.inflate(R.layout.activity_dialog, null);\r\n\t\teditText = (EditText) viewAddEmployee.findViewById(R.id.editText1);\r\n\t\ttv_phone = (TextView) viewAddEmployee.findViewById(R.id.tv_phone);\r\n\t\tbt_setting = (Button) viewAddEmployee.findViewById(R.id.bt_setting);\r\n\t\tbt_cancel = (Button) viewAddEmployee.findViewById(R.id.bt_cancel);\r\n\t\tString tel = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUserTel();\r\n\t\ttv_phone.setText(StringUtils.getTelNum(tel));\r\n\r\n\t\tshowPop();\r\n\r\n\t\tbt_setting.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\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\tString psd = SharePreferenceUtil.getInstance(\r\n\t\t\t\t\t\tgetActivity().getApplicationContext()).getUserPsd();\r\n\t\t\t\tString password = editText.getText().toString().trim();\r\n\t\t\t\tif (TextUtils.isEmpty(password)) {\r\n\t\t\t\t\tShowToast(\"密码不能为空!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (password.equals(psd)) {\r\n\t\t\t\t\tavatorPop.dismiss();\r\n\t\t\t\t\tintentAction(getActivity(), GesturePsdActivity.class);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tShowToast(\"输入密码错误!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbt_cancel.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\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\tavatorPop.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }",
"public StandardDialog() {\n super();\n init();\n }",
"public void openDialog(){\n DialogforTheboysHeroImage dialogforTheboysHeroImage = new DialogforTheboysHeroImage();\n dialogforTheboysHeroImage.show(getSupportFragmentManager(), \"Heros info\");\n }",
"public ReorganizeDialog() { }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflator = getActivity().getLayoutInflater();\n View view = inflator.inflate(R.layout.informationdialog, datePicker);\n builder.setView(view);\n init(view);\n Dialog dialog = builder.create();\n\n //Dialog will not close automatically until user click on cancle button.\n setCancelable(false);\n return dialog;\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n\n String chat = chat_field.getText().toString();\n\n\n LandingActivity current_activity = (LandingActivity)getActivity();\n if(current_activity != null){\n new Chat(chat, current_user.getUsername(), getActivity());\n }\n //Construct the new Object\n\n }",
"private void mDialogShow() {\n alertDialog = new AlertDialog.Builder(this).create();\n alertDialog.setTitle(\"CyanMobile Warning!\");\n alertDialog.setMessage(\"Enable Pie Menu App Toggle to use this!\");\n alertDialog.setButton(DialogInterface.BUTTON_POSITIVE,\n getResources().getString(com.android.internal.R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n updateValues();\n return;\n }\n });\n \n alertDialog.show();\n }",
"public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }",
"@Override\n public void onShow(DialogInterface arg0) {\n\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Règle du jeu\");\n builder.setMessage(\"Je sais que tu as toujours voulu être un pêcheur ! Voici ta chance. Ton objectif est de pêcher 5 poissons.\\n\\n Comment pêcher :\\n\\n1- Place ton téléphone à l'horizontal, ton écran vers la gauche.\\n\\n2- Attend le poisson.\\n\\n3- Quand ton téléphone vibre, un poisson a mordu à l'hammeçon ! Passe rapidement ton téléphone à la verticale avec ton écran toujours sur la gauche.\\n\\n4-Recommence jusqu'à devenir le roi de la pêche !\\n\\nTips : On ne devient pas pêcheur en jouant à un jeu de pêche.\" );\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // rien à faire\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"public interface DialogListener {\n\n /**\n * Called when a dialog completes.\n *\n * Executed by the thread that initiated the dialog.\n *\n * @param values\n * Key-value string pairs extracted from the response.\n */\n public void onComplete(Bundle values);\n\n \n /**\n * Called when a dialog is canceled by the user.\n *\n * Executed by the thread that initiated the dialog.\n *\n */\n public void onCancel();\n}",
"@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int year = c.get(Calendar.YEAR);\r\n int month = c.get(Calendar.MONTH);\r\n int day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n d_fechaCreacion = getActivity().findViewById(R.id.d_fechaTransectaItem);\r\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\r\n datePickerDialog.updateDate(year, month, day);\r\n // Create a new instance of DatePickerDialog and return it\r\n return datePickerDialog;\r\n }",
"@Override\n\t public Dialog onCreateDialog(Bundle savedInstanceState) {\n\t AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t \n\t \n\t \n\t LayoutInflater inflater = getActivity().getLayoutInflater();\n\t \n\t final View inflator = inflater.inflate(R.layout.dialog_signin, null);\n\t \n\t \n\t \n\t builder.setView(inflator)\n\t \n\t \n\t .setPositiveButton(\"Set\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t EditText username = (EditText) inflator.findViewById(R.id.username);\n\t \t String str = username.getText().toString();\n\t System.out.println(str);\n\t mEditText.setText(str);\n\t }\n\t })\n\t .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t // User cancelled the dialog\n\t }\n\t });\n\t // Create the AlertDialog object and return it\n\t return builder.create();\n\t }",
"public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}",
"public void showDialog(View v){\n FragmentManager fm = getFragmentManager();\n PaymentMethodDialog paymentDialog = new PaymentMethodDialog();\n paymentDialog.show(fm, \"PaymentDialog\");\n Bundle data = new Bundle();\n// data.putString(\"receiver\", receiver);\n paymentDialog.setArguments(data);\n paymentDialog.setArguments(data);\n }",
"@SuppressLint(\"InflateParams\")\n @Override @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n builder.setTitle(R.string.settings_manual_input_dialog_title)\n .setView(inflater.inflate(R.layout.dialog_settings_manual_input, null))\n .setPositiveButton(R.string.settings_manual_input_dialog_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Send the positive button event back to the host activity\n\n String tokenName = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_name)).getText().toString();\n String token = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_value)).getText().toString();\n String issuerUrl = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_url)).getText().toString();\n mListener.onSettingsManualInputDialogOkClick(tokenName, token, issuerUrl);\n }\n })\n .setNegativeButton(R.string.settings_manual_input_dialog_cancel, null);\n\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog (Bundle SaveInstanceState) {\n\n /* Get context from current activity.*/\n Context context = getActivity();\n\n /* Create new dialog, and set message. */\n AlertDialog.Builder ackAlert = new AlertDialog.Builder(context);\n String message = getString(R.string.msg_about_us);\n ackAlert.setMessage(message);\n\n /* Create button in dialog. */\n ackAlert.setNeutralButton(R.string.btn_got_it, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n /* Set title and show dialog. */\n ackAlert.setTitle(\"About us\");\n ackAlert.create();\n\n return ackAlert.create();\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }",
"void showDialog() {\n\t\tDFTimePicker dtf = DFTimePicker.newInstance();\n DialogFragment newFragment = dtf;\n newFragment.show(getFragmentManager(), \"dialog\");\n }",
"@Override\n\n public Dialog onCreateDialog (Bundle savedInstanceState){\n Bundle messages = getArguments();\n Context context = getActivity();\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n builder.setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n if(messages != null) {\n //Add the arguments. Supply a default in case the wrong key was used, or only one was set.\n builder.setTitle(messages.getString(TITLE_ID, \"Error\"));\n builder.setMessage(messages.getString(MESSAGE_ID, \"There was an error.\"));\n }\n else {\n //Supply default text if no arguments were set.\n builder.setTitle(\"Error\");\n builder.setMessage(\"There was an error.\");\n }\n\n AlertDialog dialog = builder.create();\n return dialog;\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n Dialog dialog = null;\n switch (id) {\n case CHOOSE_METHOD_DIALOG:\n return chooseActionContextMenu.createMenu(this.getString(R.string.choose_action_title));\n case ABOUT_DIALOG:\n dialog = createAboutDialog();\n break;\n default:\n dialog = null;\n break;\n }\n return dialog;\n }",
"@Override\n public Dialog onCreateDialog(Bundle state) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n // Set the title\n builder.setTitle(R.string.new_location_title);\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n // Pass null as the parent view because its going in the dialog layout\n view = inflater.inflate(R.layout.fire_report, null);\n builder.setView(view);\n\n populate();\n\n // Add a cancel button\n builder.setNegativeButton(R.string.close, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n Boolean checked = ((CheckBox) view.findViewById(R.id.checkExtinguished)).isChecked();\n if (fire.isExtinguished() != checked) {\n fire.setExtinguished(checked);\n if (!new Cloud(view.getContext()).updateExtinguishedToCloud(fire)) {\n fire.setExtinguished(!checked);\n view.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(view.getContext(), R.string.extinguished_failed, Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n }\n }).start();\n }\n });\n\n dlg = builder.create();\n\n return dlg;\n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n //setting the message and the title of dialog\n builder.setTitle(R.string.dialog_title)\n .setMessage(R.string.dialog_message)\n .setPositiveButton(android.R.string.yes, (dialog, which) -> {\n getActivity().finish();\n })\n .setOnCancelListener(dialog -> getActivity().finish());\n\n //creating and returning the dialog\n return builder.create();\n }",
"protected Dialog onCreateDialog(int id) {\r\n switch(id) {\r\n case PROGRESS_DIALOG:\r\n progressDialog = new ProgressDialog(Suggestions.this);\r\n progressDialog.setMessage(\"Loading. Please wait.\");\r\n progressThread = new ProgressThread(handler);\r\n progressThread.start();\r\n return progressDialog;\r\n default:\r\n return null;\r\n }\r\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return new AlertDialog.Builder(getActivity())\n .setMessage(R.string.more_info_text)\n\n // User cannot dismiss dialog by hitting back button\n .setCancelable(false)\n\n // Set up No Button\n .setNegativeButton(R.string.not_now,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n dismiss();\n }\n })\n\n // Set up Yes Button\n .setPositiveButton(R.string.visit_moma,\n new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog, int id) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri\n .parse(VISIT_MOMA_URL)));\n dismiss();\n }\n }).create();\n }",
"public AboutAction() {\r\n _dialog = new AboutDialog(this);\r\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Retornar en nueva instancia del dialogo selector de tiempo\n return new TimePickerDialog(getActivity(),this, hour, minute, DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.at_home_question)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n listener.onAlign(getDialog());\n }\n })\n .setNeutralButton(R.string.go_home, null) // See onResume\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n listener.onCancel(getDialog());\n }\n }).setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n listener.onCancel(getDialog());\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n fragment=this;\n View dialogView = inflater.inflate(R.layout.travel_search_dialog,null);\n builder.setView(dialogView);\n\n dialog = builder.create();\n //finding edittext box for user to enter travel search term\n searchTerm = (EditText) dialogView.findViewById(R.id.travel_search_term);\n\n //set up search button\n searchButton= (Button) dialogView.findViewById(R.id.search_button);\n searchButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n //ensure user has entered text into field\n if (searchTerm.getText().length() > 0) {\n String searchWord =searchTerm.getText().toString().replace(\" \", \"%20\");\n MainActivity.searchTerm = searchWord;\n new PhotoSearch(fragment).execute(MainActivity.searchTerm);\n\n } else\n Toast.makeText(getContext(), \"Enter a travel search term.\", Toast.LENGTH_SHORT).show();\n }\n });\n\n return dialog;\n\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tdialog();\n\t\t\t\t\t\n\t\t\t\t}",
"AlertDialog getAlertDialog();",
"@Override\n public void onAttach(@NonNull Context context) {\n super.onAttach(context);\n\n try {\n dListener = (dialogListener) context; // dialog interface is equal to activity instance\n } catch (ClassCastException e) {\n // in case dialogListener didnt implemented\n throw new ClassCastException(context.toString() + \"must Implement dialogListener interface to MainActivity First\");\n }\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 // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dpd = new DatePickerDialog(getActivity(), this, year, month, day);\n return dpd;\n }",
"@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n\r\n\t\t// Set up the layout inflater\r\n\t\tLayoutInflater inflater = getActivity().getLayoutInflater();\r\n\r\n\t\t// Set the title, message and layout of the dialog box\r\n\t\tbuilder.setView(inflater.inflate(R.layout.dialog_box_layout, null))\r\n\t\t\t\t.setTitle(R.string.dialog_title);\r\n\r\n\t\t// User accepts the thing in the dialog box\r\n\t\tbuilder.setPositiveButton(R.string.dialog_accpet,\r\n\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\t\tToast.makeText(getActivity(),\r\n\t\t\t\t\t\t\t\t\"Thank you for your kiss ^.^\",\r\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t// User cancels the thing in the dialog box\r\n\t\tbuilder.setNegativeButton(R.string.dialog_cancel,\r\n\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\t\tToast.makeText(getActivity(), \"Refuse my kiss??? >.<\",\r\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\treturn builder.create(); // return the AlertDialog object\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Do you want to play a game with \"+getArguments().getString(\"name\")+\"?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n acceptGame(getContext());\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n declineGame(getContext());\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"public CustomDialog(Activity context, String mensaje, String parteVerde){\n dialog = new Dialog(context);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_sucees);\n TextView tvMensError = dialog.findViewById(R.id.tvMensSucces);\n tvMensError.setText(Html.fromHtml(mensaje + \"<font color='#072146'>\" + parteVerde + \"</font>\"));\n Button tvAceptar = dialog.findViewById(R.id.tvAceptar);\n tvAceptar.setOnClickListener(v -> {\n dialog.dismiss();\n });\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(R.string.dialog_internet_eng_text).setPositiveButton\n (R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n System.exit(1);\n /*\n Intent homeIntent= new Intent(getContext(), MainCardActivity.class);\n homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n */\n }\n });\n return builder.create();\n }",
"@SuppressWarnings(\"deprecation\")\n\t@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\tswitch (id) {\n\t\tcase DIALOG_PROGRESS:\n\t\t\treturn new ProgressDialog(ParentActivity.this);\n\t\t}\n\t\treturn super.onCreateDialog(id);\n\t}",
"@Override\n\tprotected Dialog onCreateDialog(int id)\n\t{\n\t\tsuper.onCreateDialog(id);\n\t\treturn visitor.instantiateDialog(id);\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setItems(items, new DialogInterface.OnClickListener(){\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mListener.onPinOptionsItemSelected(PinOptionsDialogFragment.this, items[which].toString());\n }\n });\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, mmd_year, mmd_month, mmd_day);\n return dialog;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Limite mensal excedido! Na versão gratuita, o limite máximo de publicação de caronas mensais é 4 (quatro), atualize para a versão Pro e tenha publicações ilimitadas...\")\n .setPositiveButton(\"Ir\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n String url = \"https://play.google.com/store/apps/details?id=com.xetelas.nova\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n getContext().startActivity(i);\n }\n })\n .setNegativeButton(\"Voltar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n //use the builder class for convenient dialog construction\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n //get the layout inflater\r\n LayoutInflater inflater = getActivity().getLayoutInflater();\r\n View rootView = inflater.inflate(R.layout.dialog_room, null);\r\n mRoomNumber = rootView.findViewById(R.id.roomNumberEditText);\r\n mAllergy = rootView.findViewById(R.id.allergyEditText);\r\n mPlateType = rootView.findViewById(R.id.plateTypeEditText);\r\n mChemicalDiet = rootView.findViewById(R.id.chemicalDietEditText);\r\n mTextureDiet = rootView.findViewById(R.id.textureDietEditText);\r\n mLiquidDiet = rootView.findViewById(R.id.liquidDietEditText);\r\n mLikes = rootView.findViewById(R.id.likesEditText);\r\n mDislikes = rootView.findViewById(R.id.dislikesEditText);\r\n mNotes = rootView.findViewById(R.id.notesEditText);\r\n mMeal = rootView.findViewById(R.id.mealEditText);\r\n mDessert = rootView.findViewById(R.id.dessertEditText);\r\n mBeverage = rootView.findViewById(R.id.beverageEditText);\r\n\r\n mBeverage.setOnEditorActionListener(new TextView.OnEditorActionListener() {\r\n @Override\r\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\r\n if (i == EditorInfo.IME_ACTION_DONE || keyEvent.getAction() == KeyEvent.ACTION_DOWN){\r\n addRoom();\r\n }\r\n return true;\r\n }\r\n });\r\n\r\n //inflate and set the layout for the dialog\r\n //pass null as the parent view cause its going in the dialog layout.\r\n builder.setView(rootView).setPositiveButton(R.string.button_done, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n addRoom();\r\n }\r\n });\r\n\r\n return builder.create();\r\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Do you want to remove this item from cart?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n new Cart().removeFromCart(gindex);\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_leave_channel)\n .setPositiveButton(R.string.button_yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.v(LOGTAG, \"YES clicked\");\n getGTracker().send(MapBuilder\n .createEvent(\"ui_action\", \"channel_dialog\", \"leave_yes\", null)\n .build()\n );\n mListener.onDialogLeaveChannelConfirm(LeaveChanDialog.this);\n }\n })\n .setNegativeButton(R.string.button_no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.v(LOGTAG, \"NO clicked\");\n getGTracker().send(MapBuilder\n .createEvent(\"ui_action\", \"channel_dialog\", \"leave_no\", null)\n .build()\n );\n }\n })\n .setTitle(R.string.dialog_signup_title);\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\r\n\t\tAlertDialog.Builder builder = new Builder(this.getActivity());\r\n\t\tView view = LayoutInflater.from(getActivity()).inflate(\r\n\t\t\t\tR.layout.load_dialog, null);\r\n\r\n\t\tbuilder.setView(view);\r\n\t\tbuilder.setCancelable(false);\r\n\t\tdialog=builder.create();\r\n\t\treturn dialog;\r\n\t}",
"public abstract Dialog createDialog(DialogDescriptor descriptor);",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(device.getName())\n \t\t.setTitle(R.string.bt_exchange_dialog_title)\n .setPositiveButton(R.string.bt_exchange_dialog_positive_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n \t //Add BT Device Activity\n \t performBTKeyExchange(device);\n }\n })\n .setNegativeButton(R.string.bt_exchange_dialog_negative_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n \t dismiss();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n Applicationmanagerclass = new Applicationmanager();\n dialog = new Dialog(HomeActivity.this);\n OnCreateFunction();\n\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n mhour = c.get(Calendar.HOUR_OF_DAY);\n mminute = c.get(Calendar.MINUTE);\n\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, mhour, mminute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }"
] | [
"0.6985862",
"0.69826293",
"0.6799238",
"0.6737859",
"0.67340946",
"0.66911507",
"0.6671541",
"0.6671541",
"0.66516435",
"0.6651334",
"0.6632092",
"0.6627036",
"0.66033417",
"0.65879893",
"0.6574452",
"0.6551633",
"0.6540474",
"0.65290725",
"0.65211964",
"0.6473885",
"0.64623785",
"0.641359",
"0.6407676",
"0.6399951",
"0.6383415",
"0.6333788",
"0.6324339",
"0.6304759",
"0.62901384",
"0.62884897",
"0.6264672",
"0.6257159",
"0.6255591",
"0.6238836",
"0.62378645",
"0.6208487",
"0.6208487",
"0.62081444",
"0.619969",
"0.61979306",
"0.6195165",
"0.6186803",
"0.61778176",
"0.61770374",
"0.61655426",
"0.6152431",
"0.614895",
"0.6144903",
"0.6141547",
"0.6137368",
"0.6131615",
"0.6126491",
"0.6115864",
"0.60905504",
"0.6087885",
"0.608782",
"0.6087102",
"0.605718",
"0.6052958",
"0.6045343",
"0.6036888",
"0.603276",
"0.6017989",
"0.6016729",
"0.6015327",
"0.60017514",
"0.59986264",
"0.599655",
"0.5996097",
"0.59912425",
"0.5982835",
"0.59816027",
"0.5980296",
"0.5977027",
"0.5975376",
"0.5972987",
"0.59716356",
"0.59707785",
"0.5969399",
"0.5967546",
"0.5966008",
"0.5963336",
"0.5962695",
"0.59553546",
"0.59529126",
"0.5943446",
"0.59422326",
"0.59405684",
"0.5932771",
"0.5932411",
"0.59319913",
"0.5923134",
"0.5922253",
"0.5921927",
"0.59189594",
"0.5914501",
"0.5908852",
"0.59033734",
"0.58948",
"0.5893964",
"0.5892176"
] | 0.0 | -1 |
Listener for updating Button Listener Interface for AddAccountFragment. | public interface UpdateAddAccountFragmentButtonListener {
/**
* Update Listener.
* @param mAddAccountFragmentButtonListener Button Listener Interface for AddAccountFragment
*/
void updateAddAccountFragmentButtonListener(AddAccountFragmentButtonListener mAddAccountFragmentButtonListener);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n mListener.onAddButtonClicked();\n }",
"public interface AddAccountFragmentButtonListener {\r\n\t/**\r\n\t * Submit Account info to presenter.\r\n\t * @param accountName account name (unique)\r\n\t * @param accountDescription account description\r\n\t * @param currency currency (ex> Locale.US)\r\n\t */\r\n void submit(String accountName, String accountDescription, String currency);\r\n /**\r\n * Cancel adding account.\r\n */\r\n void cancel();\r\n}",
"@Override\n public void onClick(View v) {\n CreateAccount();\n }",
"@Override\n public void onClick(View v) {\n buttonAddClicked();\n }",
"private void buttonAddFriends() {\n friendsButton.setText(\"Add Friends\");\n friendsButton.setOnClickListener(view -> launchProfilesActivity());\n profileOptions.setVisibility(View.VISIBLE);\n friendsView.setOnClickListener(view -> onFriendsClicked());\n }",
"@Override\n public void onSignUpBtnClick() {\n }",
"void onFragmentAddNewUser();",
"WebElement getNewAccountButton();",
"public RegistrationRutPage clickOnAddUserButton() {\n Log.info(\"Clicking on Add user button\");\n clickElement(addUserButton);\n return this;\n }",
"void onAddClicked();",
"@Override\n public void getStartedSignUpClicked() {\n\n }",
"void enablButtonListener();",
"@Override\n public void onClick(View v) {\n\n String firstName = firstName_et.getText().toString();\n String lastName = lastName_et.getText().toString();\n String emailId = email_et.getText().toString();\n\n addMember(firstName, lastName, emailId);\n\n }",
"protected void setReserveBtnListener()\n {\n final FloatingActionButton reserveBtn = (FloatingActionButton) findViewById(R.id.reserveBtn);\n reserveBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(reservationEndsOn==null)\n {\n showToastMessage(getResources().getString(R.string.reserveErrorMessage));\n return;\n }\n else\n {\n\n String username = getSharedPreferences(\"appUserPrefs\",MODE_PRIVATE).getString(\"username\",\"\");\n //The user is player\n if(!username.equals(\"\"))\n {\n promoCode=null;\n showPromoCodeDialog(username);\n\n }\n else {\n username = getSharedPreferences(\"venAdminPrefs\",MODE_PRIVATE).getString(\"username\",\"\");\n Reservation myReservation = new Reservation(username,reservationStartsOn,reservationEndsOn,pitch.getVenueID(),pitch.getPitchName());\n connectionManager.reserveByAdmin(myReservation, instance);\n\n }\n }\n }\n });\n\n\n }",
"public void onAddPaymentClickListner(){\n AddPayment = (Button)findViewById(R.id.btnAdd);\n\n AddPayment.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addPayment(StudentIDPos, ClassIDPos);\n }\n });\n\n }",
"@Override\n public void onClick(View view) {\n registerUser();\n }",
"@Override\n public void onClick(View view) {\n registerUser();\n\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tString myUrl = Uri.parse(ENDPOINT).buildUpon()\n\t\t\t\t\t\t\t\t.appendPath(\"users\")\n\t\t\t\t\t\t\t\t.build()\n\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\n\t\t\t\tLog.d(\"Register Fragment\",\"URL:\"+myUrl);\n\t\t\t\t\n\t\t\t\tswitch(v.getId()){\n\t\t\t\t\tcase R.id.register_button: new RegisterUserTask().execute(myUrl);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//case R.id.register_button: new \n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n signUp();\n }",
"public void getSignUpButton() {\n mSignUpButton = (Button) mView.findViewById(R.id.accounts_sign_up_btn);\n mSignUpButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n createFirebaseAccountsUI();\n }\n });\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n try {\n Account account = new Account(APPKEY, APPSECRET);\n accounts.add(account);\n int mc = JOptionPane.WARNING_MESSAGE;\n if (!accountDispName.getText().contains(account.screenName)) {\n accountDispName.setText(accountDispName.getText() + account.screenName + \"\\n\");\n accountDispName.setOpaque(true);\n statusDisplay.setText(statusDisplay.getText() + \"active\\n\");\n if (!accountDisplayNameHeader.isVisible())\n accountDisplayNameHeader.setVisible(true);\n if (!accountStatusHeader.isVisible())\n accountStatusHeader.setVisible(true);\n if (!accountDispName.isVisible())\n accountDispName.setVisible(true);\n if (!statusDisplay.isVisible())\n statusDisplay.setVisible(true);\n //f1.validate();\n account.persistAccount();\n JOptionPane.showMessageDialog(null, \"Account Added Successfully!!\", \"Success!!\", mc);\n nAccounts++;\n } else {\n JOptionPane.showMessageDialog(null, \"Account Already Exists\", \"Duplicate!!\", mc);\n }\n } catch (Exception e1) {\n int mc = JOptionPane.WARNING_MESSAGE;\n JOptionPane.showMessageDialog(null, \"Unable To Add Account!\", \"Error\", mc);\n e1.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }",
"private void registerPayButton(){\n this.btnPay.setOnClickListener(v -> {\n pay();\n });\n }",
"void configureButtonListener();",
"@Override\n public void createNewAccount(String accountType) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.create_container, new CreateAccount().newInstance(accountType)).commit();\n }",
"public void createAccountOnClick(View v){\n\n String email = emailTextView.getText().toString();\n String password = passwordTextView.getText().toString();\n createEmailAndPasswordAccount(email, password);\n\n }",
"public void onChangedAdBtnPressed() {\n String uniqueID = advertisement.getUniqueID();\n view.showEditView(uniqueID);\n }",
"private void acceptButtonListener(){\n \t ait = new InitAccountTask(context, this);\n \t\n \tthis.acceptButton.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tif(agbCheck.isChecked()){\n\t\t\t\t\t\n\t\t\t\t\tString[] arg = new String[3];\n\t\t\t\t\t\n\t\t\t\t\targ[0] = HelperFunctions.getInstance().cleanNumber(telNumber.getText().toString());\n\t\t\t\t\targ[1] = countryCode.getText().toString();\n\t\t\t\t\targ[2] = password.getText().toString();\n\t\t\t\t\t\n\t\t\t\t\tait.execute(arg);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tagbNotCheckedToast();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n }",
"@Override\n public void onClick(View v) {\n switch (v.getId())\n {\n case R.id.bRegister: //Register button clicked\n String username = etUsername.getText().toString();\n String email = etEmail.getText().toString();\n String password = etPassword.getText().toString();\n\n User user = new User(username, email, password);\n\n registerUser(user); //Calling the registration activity\n\n break;\n }\n }",
"@Override\n public void onRegisterSuccessful(final int accountId) {\n mRegisterNowBtn.setEnabled(false);\n Toast.makeText(this, \"Registration Successful\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(this, LoaderActivity.class);\n intent.putExtra(IntentExtraKeys.ACCOUNT_ID, accountId);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }",
"public void onSignupClickedListener(View view) {\n\n Intent intent = new Intent(this, PersonalAccountActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Phone = RegisterPhone.getText().toString();\n Password = RegisterPassword.getText().toString();\n Name = RegisterName.getText().toString();\n\n\n CreateNewAccount(Phone,Password,Name);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tgoToAddAccount = new Intent(SettingActivity.this,\n\t\t\t\t\t\tAddAccountActivity.class);\n\t\t\t\tSettingActivity.this.startActivity(goToAddAccount);\n\t\t\t\t\n\t\t\t}",
"public interface OnSignInButtonClickedListener {\n // TODO: Update argument type and name\n void onSignInButtonClicked(String userEmail, String userPassword);\n }",
"public void onButtonPressed() {\n if (mListener != null) {\n mListener.onFragmentInteraction();\n }\n }",
"@Override\n public void onClick(View v) {\n setFragment(new SignUpFragment());\n }",
"public void addUpdateBtn() {\n if (isInputValid()) {\n if ( action.equals(Constants.ADD) ) {\n addCustomer(createCustomerData());\n } else if ( action.equals(Constants.UPDATE) ){\n updateCustomer(createCustomerData());\n }\n cancel();\n }\n }",
"public void addListenerOnButton() {\n\n\t\t//koppel de button code aan een widget en voeg een onclicklistener toe\n\t\tsettings = (Button) findViewById(R.id.settings);\n\n\t\tsettings.setOnClickListener(new OnClickListener() {\n\t\t\t//koppel de button aan een nieuw xml scherm wat opent\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Settings.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\n\t\t});\n\n\t\tsearch = (Button) findViewById(R.id.search);\n\n\t\tsearch.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Search.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\t\t});\n\t\tterug = (Button) findViewById(R.id.terug);\n\n\t\tterug.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tsetResult(RESULT_OK, intent);\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t});\n\n\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString userName = input.getText().toString();\r\n\t\t\t\tString userColour = sprCoun.getSelectedItem()\r\n\t\t\t\t\t\t.toString();\r\n\t\t\t\tString userLangName = userLang;\r\n\r\n\t\t\t\tcontext.addNewUser(userName, userColour);\r\n\t\t\t\t\r\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmButtonListener.onButtonListener();\n\t\t\t}",
"@Override\r\n public void onClick(View view) {\r\n switch (view.getId()){\r\n case R.id.Signup:\r\n\r\n registerUser();\r\n\r\n break;\r\n }\r\n }",
"private void buttonAddFriend(String userId, String ownId) {\n friendsButton.setText(\"Add Friend\");\n friendsButton.setOnClickListener(view -> addFriend(userId, ownId));\n profileOptions.setVisibility(View.GONE);\n }",
"@Override\n public void getStartedClicked() {\n startSignUpFragment();\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttoRegister();\n\t\t\t}",
"public void onRegisterPressed(View v) {\n String username = ((EditText) findViewById(R.id.usernameNew)).getText().toString();\n String password = ((EditText) findViewById(R.id.passwordNew)).getText().toString();\n String checkPassword = ((EditText) findViewById(R.id.passwordNew2)).getText().toString();\n Register register = new Register(username, password, checkPassword);\n TextView passwordCheck = findViewById(R.id.passwordCheck);\n TextView errorUsername = findViewById(R.id.errorUsername);\n\n if(!register.assertPassword()) {\n passwordCheck.setVisibility(View.VISIBLE);\n } else {\n passwordCheck.setVisibility(View.GONE);\n }\n if (!register.assertUsername()) {\n errorUsername.setVisibility(View.VISIBLE);\n } else {\n errorUsername.setVisibility(View.GONE);\n }\n if(register.assertUsername() && register.assertPassword()) {\n User user = new User(username, password, (UserTypes)userTypeSpinner.getSelectedItem());\n\n Toast.makeText(this, \"Account Added\", Toast.LENGTH_SHORT).show();\n\n Persistence.getInstance().write(User.SAVE_FILE, getApplicationContext(), user);\n\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(\"EXTRA_USER_TYPE\", user.getAccountType());\n startActivity(mainIntent);\n\n finish();\n }\n }",
"public void addUserBtn(){\n\t\t\n\t\t// TODO: ERROR CHECK\n\t\t\n\t\tUserEntry user = new UserEntry(nameTF.getText(), (String)usertypeCB.getValue(), emailTF.getText());\n\t\tAdminController.userEntryList.add(user);\n\t\t\n\t\t\n\t\t// Create a UserEntry and add it to the observable list\n\t\tAdminController.userList.add(user);\t\t\n\t\t\n\t //AdminController.adminTV.setItems(AdminController.userList);\n\t\t\n\t\t//Close current stage\n\t\tAdminController.addUserStage.close();\n\t\t\n\t}",
"@Override\n public void onClick(View view) {\n regUser();\n }",
"@Override\n public void onClick(View v) {\n sendUserToRegisterActivity();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (!(API.isInternetOn(Register.this))) {\r\n\t\t\t\t\tshowAlert(\"Internet not avialble.\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tprogressdialog.setMessage(\"Please wait...\");\r\n\t\t\t\t\tprogressdialog.show();\r\n\t\t\t\t\t// Force user to fill up the form\r\n\t\t\t\t\tif (username.getText().toString().equals(\"\")\r\n\t\t\t\t\t\t\t|| email.getText().toString().equals(\"\")\r\n\t\t\t\t\t\t\t|| password.getText().toString().equals(\"\")\r\n\t\t\t\t\t\t\t|| verifyPassword.getText().toString().equals(\"\")) {\r\n\t\t\t\t\t\tprogressdialog.dismiss();\r\n\t\t\t\t\t\tshowAlert(\"Please complete the sign up form.\");\r\n\t\t\t\t\t} else if (!(isValidEmail(email.getText().toString()))) {\r\n\t\t\t\t\t\tprogressdialog.dismiss();\r\n\t\t\t\t\t\tshowAlert(\"Please enter valid email id.\");\r\n\t\t\t\t\t} else if (!(password.getText().toString()\r\n\t\t\t\t\t\t\t.equals(verifyPassword.getText().toString()))) {\r\n\t\t\t\t\t\tprogressdialog.dismiss();\r\n\t\t\t\t\t\tshowAlert(\"Password did not matched\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Save new user data into Parse.com Data Storage\r\n\t\t\t\t\t\tParseUser user = new ParseUser();\r\n\t\t\t\t\t\tuser.setUsername(username.getText().toString());\r\n\t\t\t\t\t\tuser.setPassword(password.getText().toString());\r\n\t\t\t\t\t\tuser.setEmail(email.getText().toString());\r\n\t\t\t\t\t\tuser.signUpInBackground(new SignUpCallback() {\r\n\t\t\t\t\t\t\tpublic void done(ParseException e) {\r\n\t\t\t\t\t\t\t\tif (e == null) {\r\n\t\t\t\t\t\t\t\t\tAllowUserToLogin(username.getText()\r\n\t\t\t\t\t\t\t\t\t\t\t.toString(), password.getText()\r\n\t\t\t\t\t\t\t\t\t\t\t.toString());\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tprogressdialog.dismiss();\r\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\t\t\t\t\t\"Sign up Error\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t\t\t\t\t\t\t.show();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n public void setAccountUpdate(DataServices.Account account) {\n setTitle(R.string.account);\n getSupportFragmentManager().popBackStack();\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.containerView, AccountFragment.newInstance(account))\n .commit();\n }",
"@Override\n public void onPageSelected(int position) {\n setAddButtonVisibility(getCurrentlyVisibleEditorTab().requestsAddButton());\n }",
"@Override\n public void setUpdateFragment(DataServices.Account account) {\n setTitle(R.string.update_account);\n getSupportFragmentManager().beginTransaction()\n .addToBackStack(null)\n .replace(R.id.containerView, UpdateFragment.newInstance(account))\n .commit();\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) \n\t{\n\t\tBankAccountListener listen = new BankAccountListener(this);\n\t\tlisten.actionPerformed(e);\n\n\t}",
"public void onClick(View v) {\n switch (v.getId()) {\n case R.id.send_money:\n Toast.makeText(getActivity().getApplicationContext(), \"Send Money Button\", Toast.LENGTH_SHORT).show();\n Fragment sendMoneyFragment = new SendMoneyFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n transaction.replace(R.id.main_activity, sendMoneyFragment);\n transaction.addToBackStack(null);\n\n transaction.commit();\n break;\n case R.id.withdraw_cash:\n Toast.makeText(getActivity().getApplicationContext(), \"Withdraw Cash Button\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.buy_airtime:\n Toast.makeText(getActivity().getApplicationContext(), \"Buy Airtime Button\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.m_shwari:\n Toast.makeText(getActivity().getApplicationContext(), \"M-Shwari Button\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.lipa_na_mpesa:\n Toast.makeText(getActivity().getApplicationContext(), \"Lipa na MPESA Button\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.my_account:\n Toast.makeText(getActivity().getApplicationContext(), \"My Account Button\", Toast.LENGTH_SHORT).show();\n break;\n default:\n break;\n }\n }",
"public void addListenerOnAddDateBtn() {\n\n addButton = (Button) findViewById(R.id.addButton);\n\n addButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n new DatePickerDialog(AddTodoActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }",
"private void defineButtonClick(){\n activityForgetPassBinding.backButton.setOnClickListener(this);\n activityForgetPassBinding.changePasswordButton.setOnClickListener(this);\n }",
"public interface RegisterFragmentListener {\n public void registerFragmentBtnAceptarClicked(String sUser, String sPass);\n public void registerFragmentBtnCancelarClciked();\n}",
"public HomeAddettoUI(Account a) {\n\t\tsuper(a);\n\n\t\tJButton btn_events = new JButton(\"Registra evento\");\n\t\tbtn_events.setBounds(10, 275, 205, 21);\n\t\tbtn_events.setActionCommand(\"event\");\n\t\tbtn_events.addActionListener(this);\n\t\tgetContentPane().add(btn_events);\n\n\t\tJButton btn_prenotations = new JButton(\"Registra prenotazione\");\n\t\tbtn_prenotations.setBounds(10, 300, 205, 21);\n\t\tbtn_prenotations.setActionCommand(\"pren\");\n\t\tbtn_prenotations.addActionListener(this);\n\t\tgetContentPane().add(btn_prenotations);\n\n\t\tJButton btn_amount = new JButton(\"Registra pagamento\");\n\t\tbtn_amount.setBounds(10, 325, 205, 21);\n\t\tbtn_amount.setActionCommand(\"amount\");\n\t\tbtn_amount.addActionListener(this);\n\t\tgetContentPane().add(btn_amount);\n\t\t\n\t\tJButton btn_restaurant = new JButton(\"Registra conto ristorante\");\n\t\tbtn_restaurant.setBounds(10, 350, 205, 21);\n\t\tbtn_restaurant.setActionCommand(\"risto\");\n\t\tbtn_restaurant.addActionListener(this);\n\t\tgetContentPane().add(btn_restaurant);\n\t}",
"@Override\n public\n void\n updateView()\n {\n // Stop responding to events.\n setAllowEvents(false);\n\n getAccountChooser().displayElements(getAccounts());\n getPanel().removeAll();\n\n // Get new reference to account incase the type or collection has changed.\n setAccount(getProperAccountReference());\n\n if(getAccount() != null)\n {\n setRegisterPanel(new RegisterPanel(getAccount()));\n\n getAccountChooser().setSelectedItem(getAccount().getIdentifier());\n getFilter().updateFormats();\n\n // Build panel.\n getPanel().setFill(GridBagConstraints.BOTH);\n getPanel().add(getRegisterPanel(), 0, 0, 1, 1, 100, 100);\n\n displayTransactions(null);\n }\n\n // Resume responding to events.\n setAllowEvents(true);\n }",
"@Override\n public void onClick(View v) {\n if(v == mFab) {\n final Dialog adddialog = new Dialog(getActivity());\n adddialog.setContentView(R.layout.add_plan_layout);\n adddialog.setCancelable(false);\n adddialog.show();\n Button confirm = (Button) adddialog.findViewById(R.id.plan);\n Button cancel = (Button) adddialog.findViewById(R.id.no_thank);\n final EditText plan = (EditText) adddialog.findViewById(R.id.add_plan);\n mDbHelper = new DbHelper(getActivity());\n\n //create plan function\n confirm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Plan planList = new Plan(mDbHelper.getPlanCount(), String.valueOf(plan.getText()));\n // if(!taskExists(planList)) {\n mDbHelper.insertplan(planList);\n plan_list.add(planList);\n refreshList();\n\n Toast.makeText(getActivity(), \"Plan Created\", Toast.LENGTH_SHORT).show();\n\n adddialog.cancel();\n }\n });\n //cancel button function\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n adddialog.cancel();\n }\n });\n\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_signup, container, false);\n\n mBinding.buttonSignUp.setOnClickListener(view -> {\n if (mBinding.etFirstName.getText().toString().equals(\"\")\n || mBinding.etLastName.getText().toString().equals(\"\")\n || mBinding.etUsername.getText().toString().equals(\"\")\n || mBinding.etPasswordSignUp.getText().toString().equals(\"\")\n || mBinding.etEmailSignUp.getText().toString().equals(\"\")) {\n Toast.makeText(getContext(), \"لطفا جاهای خالی را پر کنید!\", Toast.LENGTH_SHORT).show();\n } else {\n mBinding.buttonSignUp.setVisibility(View.GONE);\n mBinding.progressSignUp.setVisibility(View.VISIBLE);\n mBinding.tvUnSuccessfulSignUp.setVisibility(View.INVISIBLE);\n\n mCustomerViewModel.createCustomer(mBinding.etEmailSignUp.getText().toString(),\n mBinding.etFirstName.getText().toString(),\n mBinding.etLastName.getText().toString(),\n mBinding.etUsername.getText().toString(),\n mBinding.etPasswordSignUp.getText().toString())\n .observe(this, customers -> {\n if (customers != null) {\n mBinding.tvSuccessfulSignUp.setVisibility(View.VISIBLE);\n mBinding.progressSignUp.setVisibility(View.GONE);\n mResultSignUpCallback.resultSignUp(mBinding.etEmailSignUp.getText().toString());\n }else {\n mBinding.progressSignUp.setVisibility(View.GONE);\n mBinding.tvUnSuccessfulSignUp.setVisibility(View.VISIBLE);\n mBinding.buttonSignUp.setVisibility(View.VISIBLE);\n }\n\n });\n }\n });\n\n return mBinding.getRoot();\n }",
"public interface OnHomeFragmentListener {\n void OnEditAccountViewClick();\n }",
"public void addButtonClicked() {\n //region Description\n String name = person_name.getText().toString().trim();\n if (name.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Name\", Toast.LENGTH_LONG).show();\n return;\n }\n String no = contact_no.getText().toString().trim();\n if (no.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Contact No.\", Toast.LENGTH_LONG).show();\n return;\n }\n String nName = nickName.getText().toString().trim();\n if (nName.equals(\"\")) {\n nName = \"N/A\";\n }\n String Custno = rootNo.getText().toString().trim();\n if (Custno.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Customer No.\", Toast.LENGTH_LONG).show();\n return;\n }\n float custNo = Float.parseFloat(Custno);\n\n String Fees = monthly_fees.getText().toString().trim();\n if (Fees.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the monthly fees\", Toast.LENGTH_LONG).show();\n return;\n }\n int fees = Integer.parseInt(Fees);\n\n String Balance = balance_.getText().toString().trim();\n if (Balance.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the balance\", Toast.LENGTH_LONG).show();\n return;\n }\n int balance = Integer.parseInt(Balance);\n String date = startdate.getText().toString().trim();\n if (startdate.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Start Date\", Toast.LENGTH_LONG).show();\n return;\n }\n //endregion\n dbHendler.addPerson(new PersonInfo(name, no, custNo, fees, balance, areaId, date, nName), this);\n person_name.setText(\"\");\n contact_no.setText(\"\");\n rootNo.setText(\"\");\n monthly_fees.setText(\"\");\n balance_.setText(\"\");\n nickName.setText(\"\");\n // Toast.makeText(getApplicationContext(), name + \" Saved\", Toast.LENGTH_LONG).show();\n\n\n }",
"public void onButtonPressed(String userId) {\n Log.i(Utils.TAG, \"new UUID: \" + userId);\n selectedUserId = userId;\n if (mListener != null) {\n mListener.onUserSelected(userId);\n }\n }",
"@Override\n public void onClick(View v) {\n firstNameText = capitalizeFirstLetter(firstNameET.getText().toString());\n lastNameText = capitalizeFirstLetter(lastNameET.getText().toString());\n emailText = (emailET.getText().toString()).toLowerCase();\n passwordText = passwordET.getText().toString();\n reEnterPasswordText = reEnterPasswordET.getText().toString();\n\n // Using the user-inputted information to register the user via this method\n registerUser(firstNameText, lastNameText, emailText, passwordText, reEnterPasswordText);\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew Register().execute();\r\n\r\n\t\t\t}",
"public void addActionEvent()\n {\n\t depositButton.addActionListener(this);\n \n }",
"@OnClick(R.id.fabAdd)\n void onClickAdd() {\n Intent addAddressIntent = new Intent(this, AddAddressActivity.class);\n startActivity(addAddressIntent);\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(getContext(), AccountModifyActivity.class));\n //BAD HACK: Close this activity and recreate it later\n getActivity().finish();\n }",
"private void friendsListBtnListener() {\n friendsListBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new FriendsListScreen(game));\n }\n });\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tlaunchSignUpDialog();\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString username = etUsername.getText().toString();\n\t\t\t\tString pwd = etPassword.getText().toString();\n\t\t\t\tString pwd1 = etPassword1.getText().toString();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (TextUtils.isEmpty(etUsername.getText())) {\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Username cannot be empty!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(TextUtils.isEmpty(etPassword.getText()) || TextUtils.isEmpty(etPassword1.getText())){\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Password cannot be empty!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!pwd.equals(pwd1)){\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Password should be the same!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tUser user = new User(username, pwd);\n\t\t\t\t\n\t\t\t\tnew Register(user, RegisterActivity.this, new Register.SuccessCallBack() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(RegisterActivity.this,\"Sign up successfully!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tstartActivity(new Intent(RegisterActivity.this, LoginActivity.class));\n\t\t\t\t\t}\n\t\t\t\t}, new Register.FailCallBack() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFail() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(RegisterActivity.this, \"Username already exists!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\taddMember();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n String strUsername = txtUsername.getText().toString();\n String strPassword = txtPassword.getText().toString();\n if (strPassword.length() < 4) {\n Toast.makeText(getApplicationContext(), \"Password requires at least 4 characters.\", Toast.LENGTH_LONG).show();\n return;\n }\n String strHashedPassword = hash(strPassword);\n\n //Build sql prepared statement\n String strStatement = \"insert into account (username, password) values (?, ?)\";\n try {\n PreparedStatement psInsert = Settings.getInstance().getConnection().prepareStatement(strStatement);\n psInsert.setString(1, strUsername);\n psInsert.setString(2, strHashedPassword);\n int result = psInsert.executeUpdate();\n if (result != 0) {\n Log.d(\"\", \"onClick: Error inserting account.\");\n }\n\n psInsert.close();\n\n //TODO: check result code to make sure it went through\n\n Toast.makeText(getApplicationContext(), \"Account successfully created.\", Toast.LENGTH_LONG).show();\n //Toast.makeText(getApplicationContext(), \"Username already exists.\", Toast.LENGTH_LONG).show();\n //Toast.makeText(getApplicationContext(), \"Password does not meet requirements.\", Toast.LENGTH_LONG).show();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n Log.v(this.getClass().toString(), \"Register complete.\");\n }",
"@Override\n public void onClick(View view) {\n DialogAddEvent();\n }",
"@Override\n public void onClick(View v) {\n switch(v.getId()){\n case R.id.register:\n startActivity(new Intent(this, RegisterAccount.class));\n break;\n\n case R.id.login:\n accountLogin();\n break;\n }\n\n }",
"public void addListenerOnButton() {\n\n\t\telectionSpinner = (Spinner) findViewById(R.id.electionSpinner);\n\t\tvoterSpinner = (Spinner) findViewById(R.id.voterSpinner);\n\t\t\n\t\tbtnConfig = (Button) findViewById(R.id.btnConfig);\n\t\tbtnConfig.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\"OnClickListener : \" + \n\t\t\t\t\t\t\"\\nElectionSpinner 1 : \" + String.valueOf(electionSpinner.getSelectedItem()) +\n\t\t\t\t\t\t\"\\nVoterSpinner 2 : \" + String.valueOf(voterSpinner.getSelectedItem()),\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\n\t\t});\n\n\t}",
"private void setupFabButton() {\n\n if (User.isUserLoggedIn()) {\n // Hello :) I am host - don't show me SignUp Button\n if (event.getHost() != null\n && event.getHost().getObjectId().equals(User.getLoggedInUser().getObjectId())) {\n fabSignUp.setVisibility(View.GONE);\n return;\n }\n\n // Check I already Registered for this event or not\n ParseQuery<Attendee> query = ParseQuery.getQuery(Attendee.class);\n query.whereEqualTo(\"event\", event);\n query.whereEqualTo(\"subscribedBy\", User.getLoggedInUser());\n\n try {\n int count = query.count();\n if (count > 0) {\n // I am already registered for this event\n changeSignUpButton();\n // Rating\n setupRatingBar();\n } else {\n showFabRegister();\n }\n } catch (ParseException e) {\n e.printStackTrace();\n showFabRegister();\n }\n\n /*query.countInBackground(new CountCallback() {\n @Override\n public void done(int count, ParseException e) {\n if (e == null) {\n if (count > 0) {\n // I am already registered for this event\n changeSignUpButton();\n // Rating\n setupRatingBar();\n }else {\n showFabRegister();\n }\n } else {\n e.printStackTrace();\n }\n }\n });*/\n } else {\n showFabRegister();\n }\n\n }",
"public void clkcreateAccountBtn() {\n\t\tcreateAccountBtn.click();\n\t\tExtentTestManager.getTest().log(LogStatus.INFO, \"Click on 'Create an account' button\");\n\t}",
"public void onAddParticipant() {\n ParticipantDialog participantDialog = ParticipantDialog.getNewInstance();\n Optional<Participant> result = participantDialog.showAndWait();\n if (!result.isPresent()) {\n return;\n }\n\n if (controller.addParticipant(result.get())) {\n return;\n }\n\n AlertHelper.showError(LanguageKey.ERROR_PARTICIPANT_ADD, null);\n }",
"@OnClick(R.id.btn_add_address)\n public void onClickBtnAddAddress(){\n Intent openAddAddressActivity = new Intent(MainActivity.this, AddAddressActivity.class);\n startActivityForResult(openAddAddressActivity, RC_ADD_ADDRESS);\n }",
"private void setUpButton() {\n // Find view\n Button button = (Button) findViewById(R.id.this_weekend_dialog_match_button);\n // Set click mListener\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mListener.onMatchMadeDialogSeen();\n dismiss();\n }\n });\n }",
"public void actionPerformed(ActionEvent e){\n\t\t\t\tArrayList<Transaction> transactions = new ArrayList<Transaction>(currentAccount.getTransactionList());\n\t\t\t\tTransactionUI t = new TransactionUI(transactions); //create an interface of the user's selected account transactions\n\t\t\t}",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btn_add:\n Log.i(\"pressing this button\", \"pressing it\");\n AddFragment frg2=new AddFragment();//create the fragment instance for the bottom fragment\n\n FragmentManager manager= getActivity().getSupportFragmentManager();//create an instance of fragment manager\n\n FragmentTransaction transaction=manager.beginTransaction();//create an instance of Fragment-transaction\n\n transaction.add(R.id.container2, frg2, \"Frag_Bot\");\n\n transaction.addToBackStack(null);\n\n transaction.commit();\n\n break;\n\n case R.id.btn_list:\n Log.i(\"pressing this button\", \"Pressing list\");\n EventItemFragment ilfragment = new EventItemFragment();\n\n Bundle username = new Bundle();\n username.putString(\"username\", mUsername);\n\n ilfragment.setArguments(username);\n\n FragmentManager manager2= getActivity().getSupportFragmentManager();//create an instance of fragment manager\n\n FragmentTransaction transaction2=manager2.beginTransaction();//create an instance of Fragment-transaction\n\n transaction2.replace(R.id.container2, ilfragment, \"Frag_Bot\");\n\n transaction2.addToBackStack(null);\n\n transaction2.commit();\n\n break;\n\n case R.id.btn_refresh:\n Log.i(\"clicking refresh\", \"work pls\");\n getActivity().finish();\n startActivity(getActivity().getIntent());\n break;\n\n }\n }",
"private void addListenerOnButton() {\n\t\t\tfinal Context context = this;\n\t\t\t\n\t\t\tgetFromDate=MainActivity.fromdate;\n\t\t\tgetToDate=MainActivity.todate;\n\t\t\t//Create a class implementing “OnClickListener” and set it as the on click listener for the button\n\t\t\tbtnSkip.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif(editDetailsflag==false){\n\t\t\t\t\t\tIntent intent = new Intent(getApplicationContext(), menu.class);\n\t\t\t\t\t startActivity(intent);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\t\t builder.setMessage(\"Are you sure, you want to reset all fields? \")\n\t\t\t\t .setCancelable(false)\n\t\t\t\t .setPositiveButton(\"Yes\", \n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\t\t\t\t\tetGetAddr.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tsGetPostal.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\teGetPhone.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\teGetFax.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\teGetEmailid.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetGetWebSite.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetMVATnum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetServiceTaxnum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetPanNo.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetMVATnum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetServiceTaxnum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tetRegNum.setText(\"\"); \n\t\t\t\t\t\t\t\t\t\t\t\tetFcraNum.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\tbtnRegDate.setText(Startup.getfinancialFromDate());\n\t\t\t\t\t\t\t\t\t\t\t\tbtnFcraDate.setText(Startup.getfinancialFromDate());\n\t\t\t\t\t\t\t\t\t\t\t\tgetstate.setSelection(0);\n\t\t\t\t\t\t\t\t\t\t\t\tgetcity.setSelection(0);\n\t\t\t\t }\n\t\t })\n\t\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t dialog.cancel();\n\t\t\t }\n\t\t });\n\t\t AlertDialog alert = builder.create();\n\t\t alert.show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}); \n\t\t\tbtnorgDetailSave.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tsavedeatils();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}); \n\t\t\tbtnDeleteOrg.setOnClickListener(new OnClickListener() {\n\t\t\t\t\n\t\t\t\tprivate TextView tvWarning;\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View arg0) {\n \tLayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);\n\t\t\t\t\tView layout = inflater.inflate(R.layout.import_organisation, (ViewGroup) findViewById(R.id.layout_root));\n\t\t\t\t\t//Building DatepPcker dialog\n\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\t\t\tbuilder.setView(layout);\n\t\t\t\t\t//builder.setTitle(\"Delete orginsation for given financial year\");\n\t\t\t\t\ttrOrgnisation = (TableRow) layout.findViewById(R.id.trQuestion);\n\t\t\t\t\ttvWarning = (TextView) layout.findViewById(R.id.tvWarning);\n\t\t\t\t\ttrOrgnisation.setVisibility(View.GONE);\n\t\t\t\t\tgetFinancialyear = (Spinner)layout.findViewById(R.id.sYear);\n\t\t\t\t\tbtnDelete = (Button)layout.findViewById(R.id.btnImport);\n\t\t\t\t\tButton btnCancel = (Button) layout.findViewById(R.id.btnExit);\n\t\t\t\t\tbtnCancel.setText(\"Cancel\");\n\t\t\t TextView tvalertHead1 = (TextView) layout.findViewById(R.id.tvalertHead1);\n\t\t\t tvalertHead1.setText(\"Delete \"+getOrgName+\" orgnisation for given financial year?\");\n\t\t\t\t\tbtnDelete.setText(\"Delete\");\n\t\t\t\t\tSystem.out.println(\"print orgname : \"+getOrgName);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\taddListnerOnFinancialSpinner();\n\t\t\t\t\t\tbtnDelete.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(fromDate.equals(financialFrom)&&toDate.equals(financialTo))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmessage = \"Are you sure you want to permanently delete currently logged in \"+getOrgName+\" for financialyear \"+fromDate+\" To \"+toDate+\"?\\n\" +\n\t\t\t\t\t\t\t \t\t\"your data will be permanetly lost and session will be closed !\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tmessage = \"Are you sure you want to permanently delete \"+getOrgName+\" for financialyear \"+fromDate+\" To \"+toDate+\"?\\n\" +\n\t\t\t\t\t\t\t \t\t\"It will be permenantly lost !\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//tvalertHead1 \n\t\t\t\t\t\t\t System.out.println(\"print orgname : \"+getOrgName);\n\t\t\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\t\t\t\t\t builder.setMessage(message)\n\t\t\t\t\t\t\t .setCancelable(false)\n\t\t\t\t\t\t\t .setPositiveButton(\"Ok\",\n\t\t\t\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t \t//parameters pass to core_engine xml_rpc functions\n\t\t\t\t\t\t\t \t//addListnerOnFinancialSpinner();\n\t\t\t\t\t\t\t \tSystem.out.println(\"dlete params: \"+getOrgName+\"\"+fromDate+\"\"+toDate);\n\t\t\t\t\t\t\t \t\t\t\tdeleteprgparams=new Object[]{getOrgName,fromDate,toDate};\n\t\t\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t\t\t \t\t\t\tdeleted = startup.deleteOrgnisationName(deleteprgparams);\n\t\t\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t\t\t\tif(fromDate.equals(financialFrom)&&toDate.equals(financialTo))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t \t\t\t\t\t//To pass on the activity to the next page\n\t\t\t\t\t\t\t \t\t\t\t\tIntent intent = new Intent(context,MainActivity.class);\n\t\t\t\t\t\t\t \t\t\t\t\tstartActivity(intent);\n//\t\t\t\t\t\t\t \t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"In org details\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taddListnerOnFinancialSpinner();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttvWarning.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttvWarning.setText(\"Deleted \"+getOrgName+\" for \"+fromDate+\" to \"+toDate);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t \t\t\t\t \n\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t })\n\t\t\t\t\t\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t dialog.cancel();\n\t\t\t\t\t\t\t dialog.dismiss();\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t });\n\t\t\t\t\t\t\t AlertDialog alert = builder.create();\n\t\t\t\t\t\t\t alert.show();\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});\n\t\t\t\t\t\tbtnCancel.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tdialog=builder.create();\n\t \t\tdialog.show();\n\t \t\t\n\t \t\tWindowManager.LayoutParams lp = new WindowManager.LayoutParams();\n\t\t\t\t\t//customizing the width and location of the dialog on screen \n\t\t\t\t\tlp.copyFrom(dialog.getWindow().getAttributes());\n\t\t\t\t\tlp.width = 700;\n\t\t\t\t\tdialog.getWindow().setAttributes(lp);\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnRegDate.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\t\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t//for showing a date picker dialog that allows the user to select a date (Registration Date)\n\t\t\t\t\tString regDate = (String) btnRegDate.getText();\n\t\t\t\t\tString dateParts[] = regDate.split(\"-\");\n\t\t\t\t\tsetfromday = dateParts[0];\n\t\t\t\t\tsetfrommonth = dateParts[1];\n\t\t\t\t\tsetfromyear = dateParts[2];\n\t\t \n\t\t\t\t\tSystem.out.println(\"regdate is:\"+regDate);\n\t\t\t\t\tshowDialog(REG_DATE_DIALOG_ID);\n\t\t\t\t}\n\t\t\t});\n\t\t\tbtnFcraDate.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t//for showing a date picker dialog that allows the user to select a date (FCRA Registration Date)\n\t\t\t\t\tString fcraDate = (String) btnFcraDate.getText();\n\t\t\t\t\tString dateParts[] = fcraDate.split(\"-\");\n\t\t\t\t\tsetfromday1 = dateParts[0];\n\t\t\t\t\tsetfrommonth1 = dateParts[1];\n\t\t\t\t\tsetfromyear1 = dateParts[2];\n\t \n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromday1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfrommonth1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromyear1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+fcraDate);\n\t\t\t\t\tshowDialog(FCRA_DATE_DIALOG_ID);\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"private void onSignUpPressed(View view) {\n Intent intent = new Intent(LoginActivity.this, CreateAccountActivity.class);\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\n\t\t\t\tLinearLayout layout = (LinearLayout) findViewById(R.id.layout_addinfo);\n\t\t\t\tif(currStatus == 0)\n\t\t\t {\n\t\t\t\t\t\n\t\t\t\t\tAdditionalInfo.webCallServiceRequired(web_param);\n\t\t\t\t\t\n\t\t\t\t\t//btnAddInfo.setEnabled(false);\n\t\t\t\t\tDrawable icon=getApplicationContext().getResources().getDrawable(R.drawable.minus);\t\t\t\t\t\n\t\t\t\t\tbtnAddInfo.setCompoundDrawablesWithIntrinsicBounds(null, null, icon, null);\t\t\n\t\t\t\t\tcurrStatus =1;\t\t\t\t\t\n\t\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t }\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tDrawable icon=getApplicationContext().getResources().getDrawable(R.drawable.add);\t\t\t\t\t\n\t\t\t\t\tbtnAddInfo.setCompoundDrawablesWithIntrinsicBounds(null, null, icon, null);\n\t\t\t\t\tcurrStatus = 0;\n\t\t\t\t\tlayout.setVisibility(View.GONE);\n\t\t\t\t}\n\t\t\t\t// values from fragment additional info\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(AccountManage.this,\n\t\t\t\t\t\tAdmin4Infomation.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.add_btn:\n\t\t\tIntent intent = new Intent(this, SettingAddOrEditAccountActivity.class);\n\t\t\tintent.putExtra(\"mode\", SettingAddOrEditAccountActivity.NEW_MODE);\n\t\t startActivityForResult(intent, 0);\n\t\t\tbreak;\n\t\tcase R.id.go_to_transfer_btn:\n\t\t startActivityForResult(new Intent(this, TransferActivity.class), 0);\n\t\t\tbreak;\n\t\t}\n\t}",
"void enableAddContactButton();",
"void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }",
"public interface customButtonListener {\n public void onNavigateButtonClickListener(int position,String value);\n\n public void onFeedbackButtonClickListener(int position,String value);\n }",
"public void onSignUpFailed() {\n Toast.makeText(this, getString(R.string.account_creation_failed), Toast.LENGTH_LONG).show();\n mSignUpButton.setEnabled(true);\n }",
"private void initSignUpButton() {\n TextButton signUpButton = new TextButton(\"Sign up\", skin);\n signUpButton.setPosition(320, 125);\n signUpButton.addListener(new InputListener() {\n @Override\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n AuthService authService = new AuthService();\n RegistrationResponse response\n = authService.register(usernameField.getText(), passwordField.getText());\n switch (response) {\n case OCCUPIED_NAME:\n usernameTakenDialog();\n break;\n case SHORT_PASSWORD:\n passwordTooShortDialog();\n break;\n case SUCCESS:\n stateManager.setState(new LoginState(stateManager));\n break;\n default:\n }\n }\n\n @Override\n public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n System.out.println(\"pressed sign up\");\n return true;\n }\n });\n stage.addActor(signUpButton);\n }",
"private void onAddClicked() {\r\n\t\t\r\n\t\tString givenName = Window.showStudentDialog();\r\n\t\t\r\n\t\tif (givenName != null) {\r\n\t\t\t\r\n\t\t\tif(!chart.addStudentName(givenName)) {\r\n\t\t\t\tWindow.msg(\"There are no seats available.\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t}\r\n\t\t\r\n\t}",
"@FXML\r\n void createAccount(MouseEvent event) throws SQLException {\r\n ta_employeeAccount.clear();\r\n account();\r\n\r\n }",
"@Override\n public void onClick(View view) {\n loadSignUpView();\n }",
"@Override\n public void setAccount(DataServices.Account account) {\n setTitle(R.string.account);\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.containerView, AccountFragment.newInstance(account))\n .commit();\n\n }",
"@FXML\n\tvoid AddVisitor_Button_Clicked(ActionEvent event) { // could the visitor be for different parks? time? date ?\n\t\tString ordererId = PopUp.getUserInput(\"Private Group Order\", \"Enter ID of the visitor\", \"ID or Subscriber ID\");\n\n\t\tif (!CheckID(ordererId)) {\n\t\t\tPopUp.showInformation(\"Please enter appropriate ID\", \"Please enter appropriate ID\",\n\t\t\t\t\t\"Please enter appropriate ID\");\n\t\t} else if (visitorsIDArray.contains(ordererId) || visitorsIDArray.contains(\"S\" + ordererId)\n\t\t\t\t|| visitorsIDArray.contains(ordererId.substring(1, ordererId.length()))) {\n\t\t\tPopUp.showInformation(\"This ID already is added\", \"This ID already is added\", \"This ID already is added\");\n\t\t} else {\n\t\t\tvisitorsIDArray.add(ordererId);\n\t\t\tPopUp.showInformation(\"Visitor Added\", \"Visitor Added\", \"Visitor Added\");\n\t\t\tvisitorsCounter++;\n\t\t\tlistViewVisitors.getItems().add(\"visitor #\" + visitorsCounter + \" \" + \"(\" + ordererId + \")\");\n\t\t\tPlaceOrder_Button.setDisable(false);\n\t\t\tRemoveVisitor_Button.setDisable(false);\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmListener.onAddPress(editContent.getEditableText().toString());\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}",
"@Override\n public void onClick(View view) {\n super.onClick(view);\n // Get view id\n int id = view.getId();\n // Next button\n if (id == R.id.add_address_btn) {\n onClickCreateAddressButton();\n }\n // Unknown view\n else {\n }\n }"
] | [
"0.69920963",
"0.69800454",
"0.68346447",
"0.6626572",
"0.65656084",
"0.6311828",
"0.6199602",
"0.61615103",
"0.6134428",
"0.61341935",
"0.61174536",
"0.6107998",
"0.61065733",
"0.6086591",
"0.6076906",
"0.60589623",
"0.6055178",
"0.6010154",
"0.59850585",
"0.5974977",
"0.5929103",
"0.5916118",
"0.59113175",
"0.5905976",
"0.59030026",
"0.5897582",
"0.58953905",
"0.5884577",
"0.58626884",
"0.58393973",
"0.5835375",
"0.5826501",
"0.58260775",
"0.58244467",
"0.5817645",
"0.581291",
"0.5796741",
"0.5768599",
"0.57533365",
"0.574703",
"0.5746597",
"0.5738841",
"0.57342213",
"0.5730174",
"0.57235384",
"0.570501",
"0.5702465",
"0.5698217",
"0.5695303",
"0.56865036",
"0.56753457",
"0.56749654",
"0.5664041",
"0.56560063",
"0.5647946",
"0.5631562",
"0.563082",
"0.5626474",
"0.561999",
"0.5617905",
"0.56138575",
"0.56132066",
"0.56108177",
"0.5606981",
"0.56063175",
"0.55918574",
"0.55757666",
"0.5563117",
"0.55580825",
"0.55541205",
"0.555136",
"0.55500585",
"0.55482364",
"0.5546613",
"0.554256",
"0.5539712",
"0.5538234",
"0.55304193",
"0.55105865",
"0.5503349",
"0.55017954",
"0.55009025",
"0.54947054",
"0.5490862",
"0.54805595",
"0.54763675",
"0.5471275",
"0.5468892",
"0.54683316",
"0.5462585",
"0.54567266",
"0.54557353",
"0.5455697",
"0.54476786",
"0.54473317",
"0.5442574",
"0.5441804",
"0.54384184",
"0.5437504",
"0.5437191"
] | 0.71409017 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
ApplicationContext context =new ClassPathXmlApplicationContext("spring.xml");
Service ser= context.getBean(Service.class);
System.out.println(ser.getAccountID());
} | {
"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 |
Note: For Unicode supplementary characters use codePointAt() instead of charAt() and codePoints() instead of chars() | public static boolean containsOnlyDigitsV1(String str) {
if (str == null || str.isBlank()) {
// or throw IllegalArgumentException
return false;
}
for (int i = 0; i < str.length(); i++) {
if (!Character.isDigit(str.charAt(i))) {
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public int get(int codePoint);",
"public interface UnicodeConstants {\n\n /** Refers to unnormalized Unicode: */\n static final byte NORM_UNNORMALIZED = 0;\n /** Refers to Normalization Form C: */\n static final byte NORM_NFC = 1;\n /** Refers to Normalization Form KC: */\n static final byte NORM_NFKC = 2;\n /** Refers to Normalization Form D: */\n static final byte NORM_NFD = 3;\n /** Refers to Normalization Form KD: */\n static final byte NORM_NFKD = 4;\n /** Refers to Normalization Form THDL, which is NFD except for\n <code>U+0F77</code> and <code>U+0F79</code>, which are\n normalized according to NFKD. This is the One True\n Normalization Form, as it leaves no precomposed codepoints and\n does not normalize <code>U+0F0C</code>. */\n static final byte NORM_NFTHDL = 5;\n\n\n /** for those times when you need a char to represent a\n non-existent codepoint */\n static final char EW_ABSENT = '\\u0000';\n\n\n //\n // the thirty consonants, in alphabetical order:\n //\n\n /** first letter of the alphabet: */\n static final char EWC_ka = '\\u0F40';\n\n static final char EWC_kha = '\\u0F41';\n static final char EWC_ga = '\\u0F42';\n static final char EWC_nga = '\\u0F44';\n static final char EWC_ca = '\\u0F45';\n static final char EWC_cha = '\\u0F46';\n static final char EWC_ja = '\\u0F47';\n static final char EWC_nya = '\\u0F49';\n static final char EWC_ta = '\\u0F4F';\n static final char EWC_tha = '\\u0F50';\n static final char EWC_da = '\\u0F51';\n static final char EWC_na = '\\u0F53';\n static final char EWC_pa = '\\u0F54';\n static final char EWC_pha = '\\u0F55';\n static final char EWC_ba = '\\u0F56';\n static final char EWC_ma = '\\u0F58';\n static final char EWC_tsa = '\\u0F59';\n static final char EWC_tsha = '\\u0F5A';\n static final char EWC_dza = '\\u0F5B';\n static final char EWC_wa = '\\u0F5D';\n static final char EWC_zha = '\\u0F5E';\n static final char EWC_za = '\\u0F5F';\n /** Note the irregular name. The Extended Wylie representation is\n <code>'a</code>. */\n static final char EWC_achung = '\\u0F60';\n static final char EWC_ya = '\\u0F61';\n static final char EWC_ra = '\\u0F62';\n static final char EWC_la = '\\u0F63';\n static final char EWC_sha = '\\u0F64';\n static final char EWC_sa = '\\u0F66';\n static final char EWC_ha = '\\u0F67';\n /** achen, the 30th consonant (and, some say, the fifth vowel) DLC NOW FIXME: rename to EWC_achen */\n static final char EWC_a = '\\u0F68';\n\n\n /** In the word for father, \"pA lags\", there is an a-chung (i.e.,\n <code>\\u0F71</code>). This is the constant for that little\n guy. */\n static final char EW_achung_vowel = '\\u0F71';\n\n\n /* Four of the five vowels, some say, or, others say, \"the four\n vowels\": */\n /** \"gi gu\", the 'i' sound in the English word keep: */\n static final char EWV_i = '\\u0F72';\n /** \"zhabs kyu\", the 'u' sound in the English word tune: */\n static final char EWV_u = '\\u0F74';\n /** \"'greng bu\" (also known as \"'greng po\", and pronounced <i>dang-bo</i>), the 'a' sound in the English word gate: */\n static final char EWV_e = '\\u0F7A';\n /** \"na ro\", the 'o' sound in the English word bone: */\n static final char EWV_o = '\\u0F7C';\n\n\n /** subscribed form of EWC_wa, also known as wa-btags */\n static final char EWSUB_wa_zur = '\\u0FAD';\n /** subscribed form of EWC_ya */\n static final char EWSUB_ya_btags = '\\u0FB1';\n /** subscribed form of EWC_ra */\n static final char EWSUB_ra_btags = '\\u0FB2';\n /** subscribed form of EWC_la */\n static final char EWSUB_la_btags = '\\u0FB3';\n}",
"private static int charAt(String data) {\n\t\treturn 0;\n\t}",
"public char charAt(int charOffset);",
"private static int codePointToStringIndex(String string, int index, int cpLength) {\n if ( index < 0 )\n return 0;\n\n return (index > cpLength)\n ? string.length()\n : string.offsetByCodePoints(0, index);\n }",
"@Test\n public void testCharAt() {\n LOGGER.info(\"testCharAt\");\n final AtomString atomString1 = new AtomString(\"Hello\");\n final char expected = 'e';\n final char actual = atomString1.charAt(1);\n assertEquals(expected, actual);\n }",
"public char charAt(int index);",
"public int codePointAt(int offset) {\n return this.mOriginal.codePointAt(offset);\n }",
"public String getCharacterSequence();",
"private static char unescapeNonASCIIChar(String str) {\n\t\treturn (char) Integer.parseInt(str.substring(2, 4), 16);\n\t}",
"@Override\r\n\tpublic char charAt(int index) {\n\t\treturn chars[index];\r\n\t}",
"private String composeCharacterString(String string) {\n return null;\r\n }",
"public char charAt(int index)\r\n/* 31: */ {\r\n/* 32: 44 */ if (index > this.pos) {\r\n/* 33: 45 */ throw new IndexOutOfBoundsException();\r\n/* 34: */ }\r\n/* 35: 47 */ return this.chars[index];\r\n/* 36: */ }",
"private String validateChar(String text) {\n char[] validChars = new char[text.length()];\n int validCount = 0;\n for (int i = 0; i < text.length(); i++) {\n char c = text.charAt(i);\n boolean valid = (c >= 0x20 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xfffd);\n if (valid) {\n validChars[validCount++] = c;\n } else {\n if (c == 10) // LineBreak\n {\n validChars[validCount++] = c;\n }\n }\n }\n return new String(validChars, 0, validCount);\n }",
"public final void add_asCodepoint_withCharEscapes(int codepoint)\n\t{\n\t\tif ((codepoint & 0xffff0000) == 0)\n\t\t{\n\t\t\t// 1 or 2\n\t\t\tif ((codepoint & 0x0000ff00) == 0)\n\t\t\t{\n\t\t\t\t// 1\n\t\t\t\tthis.add((char) codepoint);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// 2\n\t\t\t\tthis.add(unicodePrefix);\n\t\t\t\tfinal char[] unicoded = NumNodeConversion.toHexCharArr_noPrefix(codepoint, 4);\n\t\t\t\tthis.add(unicoded);\n\t\t\t\tthis.add(' ');\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// 3 or 4\n\t\t\tif ((codepoint & 0xff000000) == 0)\n\t\t\t{\n\t\t\t\t// 3\n\t\t\t\tthis.add(unicodePrefix);\n\t\t\t\tfinal char[] unicoded = NumNodeConversion.toHexCharArr_noPrefix(codepoint, 6);\n\t\t\t\tthis.add(unicoded);\n\t\t\t\tthis.add(' ');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// 4\n\t\t\t\tthis.add(unicodePrefix);\n\t\t\t\tfinal char[] unicoded = NumNodeConversion.toHexCharArr_noPrefix(codepoint, 8);\n\t\t\t\tthis.add(unicoded);\n\t\t\t\tthis.add(' ');\n\t\t\t}\n\t\t}\n\t}",
"public char charAt(int index) {\n/* 121 */ return this.m_str.charAt(index);\n/* */ }",
"public static String convertText(String s) {\r\n StringCharacterIterator stringcharacteriterator = new StringCharacterIterator(s);\r\n StringBuffer stringbuffer = new StringBuffer();\r\n int ai[] = new int[s.length()];\r\n int i = 0;\r\n int j = 0;\r\n for(char c = stringcharacteriterator.first(); c != '\\uFFFF'; c = stringcharacteriterator.next())\r\n if(c == '%')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c != '%')\r\n {\r\n stringbuffer.append('%');\r\n c = stringcharacteriterator.previous();\r\n } else\r\n {\r\n c = stringcharacteriterator.next();\r\n switch(c)\r\n {\r\n case 37: // '%'\r\n stringbuffer.append('%');\r\n break;\r\n\r\n case 80: // 'P'\r\n case 112: // 'p'\r\n stringbuffer.append('\\361');\r\n break;\r\n\r\n case 67: // 'C'\r\n case 99: // 'c'\r\n stringbuffer.append('\\355');\r\n break;\r\n\r\n case 68: // 'D'\r\n case 100: // 'd'\r\n stringbuffer.append('\\u00b0');\r\n break;\r\n\r\n case 85: // 'U'\r\n case 117: // 'u'\r\n ai[stringbuffer.length()] ^= 1;\r\n i++;\r\n break;\r\n\r\n case 79: // 'O'\r\n case 111: // 'o'\r\n ai[stringbuffer.length()] ^= 2;\r\n j++;\r\n break;\r\n\r\n default:\r\n if(c >= '0' && c <= '9')\r\n {\r\n int k = 3;\r\n char c1 = (char)(c - 48);\r\n for(c = stringcharacteriterator.next(); c >= '0' && c <= '9' && --k > 0; c = stringcharacteriterator.next())\r\n c1 = (char)(10 * c1 + (c - 48));\r\n\r\n stringbuffer.append(c1);\r\n }\r\n c = stringcharacteriterator.previous();\r\n break;\r\n }\r\n }\r\n } else\r\n if(c == '^')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c == ' ')\r\n stringbuffer.append('^');\r\n } else\r\n {\r\n stringbuffer.append(c);\r\n }\r\n s = Unicode.char2DOS437(stringbuffer, 2, '?');\r\n\r\n\t\tString ss = s;\r\n\t\treturn ss;\r\n\t}",
"public static boolean isAscii(char ch) {\n/* 403 */ return (ch < '');\n/* */ }",
"private static int specialChar(char ch) {\n if ((ch > '\\u0621' && ch < '\\u0626') ||\n (ch == '\\u0627') ||\n (ch > '\\u062E' && ch < '\\u0633') ||\n (ch > '\\u0647' && ch < '\\u064A') ||\n (ch == '\\u0629')) {\n return 1;\n } else if (ch >= '\\u064B' && ch<= '\\u0652') {\n return 2;\n } else if (ch >= 0x0653 && ch <= 0x0655 ||\n ch == 0x0670 ||\n ch >= 0xFE70 && ch <= 0xFE7F) {\n return 3;\n } else {\n return 0;\n }\n }",
"public static void main(String[] args) {\n String string1 = \"Java Exercises!\";\n System.out.println(String.format(\n \"1: %s\\nThe character at position 0 is: %s\",\n string1,\n string1.charAt(0)\n ));\n\n System.out.println();\n\n // 2. Write a Java program to get the character (Unicode code point) at the given index within the String. \n String string2 = \"w3resource.com\";\n System.out.println(\n String.format(\n \"2: %s\\nCharacter (unicode point) at 0 = %s\",\n string2,\n string2.codePointAt(0)\n ));\n\n System.out.println();\n \n // 3. Write a Java program to get the character (Unicode code point) before the specified index within the String.\n String string3 = \"w3resource.com\";\n System.out.println(\n String.format(\n \"3: %s\\nCharacter (unicode point) before 1 = %s\",\n string3,\n string3.codePointBefore(1)\n ));\n\n System.out.println();\n\n // 4. Write a java program to count a number of Unicode code points in the specified text range of a String.\n String string4 = \"w3rsource.com\";\n System.out.println(\n String.format(\n \"4: %s\\nCodepoint count from 0 to end = %d\",\n string4,\n string4.codePointCount(0, string4.length())\n ));\n\n System.out.println();\n\n // 5. Write a java program to compare two strings lexicographically.\n String comp1 = \"This is Exercise 1\";\n String comp2 = \"This is Exercise 2\";\n System.out.println(\"5: \" + comp1 + \" is \" + ((comp1.compareTo(comp2) > 0) ? \"greater\" : \"less\") + \" than \" + comp2);\n\n System.out.println();\n\n // 6. Write a java program to compare two strings lexicographically, ignoring case differences.\n String comp3 = \"This is exercise 1\";\n String comp4 = \"This is Exercise 1\";\n System.out.println(\"6: \" + comp3 + \" is \" + ((comp3.compareToIgnoreCase(comp4) == 0) ? \"equal\" : \"not equal\") + \" to \" + comp4);\n\n System.out.println();\n\n // 7. Write a Java program to concatenate a given string to the end of another string.\n String string7 = \"PHP Exercises and\";\n String string8 = \"Python Exercises\";\n System.out.println(\"8: \" + string7 + \" \" + string8);\n\n System.out.println();\n\n // 8. Write a Java program to test if a given string contains the specified sequence of char values.\n String string9 = \"PHP Exercises and Python Exercises\";\n System.out.println(String.format(\"8: %s contains 'and' -> %s\", string9, string9.contains(\"and\")));\n }",
"@org.junit.Test\n public static final void testSupplementaryCodepointEncoding() {\n junit.framework.TestCase.assertEquals(\"冬 | 冬 | 冬\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testSupplementaryCodepointEncoding()|0\", org.owasp.html.HtmlSanitizerTest.sanitize(\"冬 | \\ud87e\\udc1a | ��\")));\n }",
"@Test(timeout = 4000)\n public void test053() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1, 0);\n char char0 = javaCharStream0.readChar();\n assertEquals(1, javaCharStream0.getBeginColumn());\n assertEquals(1, javaCharStream0.getEndLine());\n assertEquals('Z', char0);\n }",
"@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"kE4X 9\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1), 66, 1279);\n char char0 = javaCharStream0.readChar();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals('k', char0);\n }",
"String getRune_lit();",
"public abstract char getStarterChar();",
"@Test\n public void testChars() {\n LOGGER.info(\"testChars\");\n final String expected = \"Hello\";\n final AtomString atomString1 = new AtomString(expected);\n final String actual = atomString1.chars()\n .mapToObj(i -> new String(new int[]{i}, 0, 1))\n .collect(joining());\n assertEquals(expected, actual);\n }",
"private char readUnicodeChar() throws IOException, DasmError {\n int result = 0;\n for (int i = 0; i < 4; i++) {\n readNextChar();\n if (nextChar == -1) return 0;\n\n int tmp = Character.digit((char) nextChar, 16);\n if (tmp == -1)\n throw new DasmError(\"Invalid '\\\\u' escape sequence\");\n result = (result << 4) | tmp;\n }\n return (char) result;\n }",
"public static void main(String[] args) {\nString str=\"subbu\";\nSystem.out.println(str.charAt(9));\n\t}",
"String charWrite();",
"private boolean isNonCharacter(int c) {\n return (c & 0xFFFE) == 0xFFFE;\n }",
"@Test(expected=IndexOutOfBoundsException.class)\n public void testCharAt_Byte() {\n System.out.println(\"charAt_Byte\");\n int index = 0;\n Charset cs = Charset.forName(UTF_8);\n InputStream stream = getInputStream(TypeOfStream.BYTE, TypeOfContent.BYTE_0, cs);\n @SuppressWarnings(\"deprecation\")\n BufferedCharSequence instance = new BufferedCharSequence(stream, cs.newDecoder(), 0);\n instance.charAt(index);\n }",
"@Override\n public final char charAt(final int index) {\n return text.charAt(index);\n }",
"char getChar(int offset) throws BadLocationException;",
"@Test\n public void Test8484()\n {\n String s = \"\\u9FE1\\uCEF3\\u2798\\uAAB6\\uDA7C\";\n Collator coll = Collator.getInstance();\n CollationKey collKey = coll.getCollationKey(s); \n logln(\"Pass: \" + collKey.toString() + \" generated OK.\");\n }",
"protected abstract int getSurrogateOffset(char paramChar1, char paramChar2);",
"private String getCharacterString()\n {\n String returnString = \"Characters:\\n\\t\";\n Set<String> keys = characters.keySet();\n if(characters.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String character : keys) {\n returnString += \" [\" + character + \"]\";\n }\n return returnString;\n }",
"public static void main(String[] args) {\n char myChar = '\\u00A9';\n System.out.println(\"Unicode is : \" + myChar);\n char myReg = '\\u00AE';\n System.out.println(\"Unicode for regiter : \" + myReg);\n }",
"public void characters(String arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public char getChar();",
"public int getCodePoint()\n {\n ensureGlyphIndex();\n return codePoint.intValue();\n }",
"@Override\n public boolean isUnicode()\n {\n return true;\n }",
"public void addStrangeCharacter() {\n strangeCharacters++;\n }",
"@Override\n void characters(char[] ch, int start, int length);",
"@Override \n\t public void characters(char ch[], int start, int length) { \n\t\t \n\t }",
"char toChar(int index) {\n if (index >= 0 && index < size()) {\n return _chars[index];\n } else {\n throw new EnigmaException(\"Index out of bounds.\");\n }\n }",
"String escChr(char pChar) throws Exception;",
"@Override\n public void characters(char ch[], int start, int length) {\n\n }",
"private char processChar(char r11) {\n /*\n // Method dump skipped, instructions count: 152\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.xmp.impl.FixASCIIControlsReader.processChar(char):char\");\n }",
"char getEChar();",
"boolean hasHasCharacter();",
"public Character charAt(int i) {\n\t\t\treturn null;\n\t\t}",
"public Character charAt(int i) {\n\t\t\treturn null;\n\t\t}",
"private int convertUnicodeLiteralToChar(int n) {\n\n final int START_STATE = 1;\n final int MODIFIED_DATA_STATE = START_STATE + 1;\n final int START_OF_ESCAPE = MODIFIED_DATA_STATE + 1;\n final int UNICODE_NIBBLE1 = START_OF_ESCAPE + 1;\n final int UNICODE_NIBBLE2 = UNICODE_NIBBLE1 + 1;\n final int UNICODE_NIBBLE3 = UNICODE_NIBBLE2 + 1;\n final int UNICODE_NIBBLE4 = UNICODE_NIBBLE3 + 1;\n\n int state = START_STATE;\n boolean data_buffer_modified = false;\n\n int ucount = 0;\n\n char u1 = 0, u2 = 0, u3 = 0, c = 0;\n\n int i = 0, j = 0;\n while (i < n) {\n c = data[i++];\n switch (state) {\n case START_STATE:\n if (c == '\\\\') {\n j = i - 1;\n state = START_OF_ESCAPE;\n }\n break;\n case MODIFIED_DATA_STATE:\n if (c != '\\\\') {\n data[j++] = c;\n } else {\n state = START_OF_ESCAPE;\n }\n break;\n case START_OF_ESCAPE:\n if (c != 'u') {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n } else {\n ucount = 1;\n state = UNICODE_NIBBLE1;\n }\n break;\n case UNICODE_NIBBLE1:\n if (isHexadecimalDigit(c)) {\n u1 = c;\n state = UNICODE_NIBBLE2;\n } else if (c == 'u') {\n ucount++;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE2:\n if (isHexadecimalDigit(c)) {\n u2 = c;\n state = UNICODE_NIBBLE3;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE3:\n if (isHexadecimalDigit(c)) {\n u3 = c;\n state = UNICODE_NIBBLE4;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE4:\n if (isHexadecimalDigit(c)) {\n if (!data_buffer_modified) {\n data_buffer_modified = true;\n }\n data[j++] = (char) ((((((map[u1] << 4) + map[u2]) << 4) + map[u3]) << 4) + map[c]);\n state = MODIFIED_DATA_STATE;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n }\n }\n // afterthoughts\n if (data_buffer_modified) {\n switch (state) {\n case START_OF_ESCAPE:\n data[j++] = '\\\\';\n break;\n case UNICODE_NIBBLE1:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n break;\n case UNICODE_NIBBLE2:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n break;\n case UNICODE_NIBBLE3:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n break;\n case UNICODE_NIBBLE4:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n break;\n }\n n = j;\n }\n return n;\n }",
"Character getCode();",
"public final void mCHAR() throws RecognitionException {\n\t\ttry {\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:318:15: ( ' ' | '!' | ( '\\\\u0023' .. '\\\\u005B' ) | ( '\\\\u005D' .. '\\\\u007E' ) | '\\\\\\\\\\\"' | '\\\\\\\\\\\\\\\\' | '\\\\\\\\t' | '\\\\\\\\n' )\n\t\t\tint alt5=8;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase ' ':\n\t\t\t\t{\n\t\t\t\talt5=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '!':\n\t\t\t\t{\n\t\t\t\talt5=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '#':\n\t\t\tcase '$':\n\t\t\tcase '%':\n\t\t\tcase '&':\n\t\t\tcase '\\'':\n\t\t\tcase '(':\n\t\t\tcase ')':\n\t\t\tcase '*':\n\t\t\tcase '+':\n\t\t\tcase ',':\n\t\t\tcase '-':\n\t\t\tcase '.':\n\t\t\tcase '/':\n\t\t\tcase '0':\n\t\t\tcase '1':\n\t\t\tcase '2':\n\t\t\tcase '3':\n\t\t\tcase '4':\n\t\t\tcase '5':\n\t\t\tcase '6':\n\t\t\tcase '7':\n\t\t\tcase '8':\n\t\t\tcase '9':\n\t\t\tcase ':':\n\t\t\tcase ';':\n\t\t\tcase '<':\n\t\t\tcase '=':\n\t\t\tcase '>':\n\t\t\tcase '?':\n\t\t\tcase '@':\n\t\t\tcase 'A':\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'D':\n\t\t\tcase 'E':\n\t\t\tcase 'F':\n\t\t\tcase 'G':\n\t\t\tcase 'H':\n\t\t\tcase 'I':\n\t\t\tcase 'J':\n\t\t\tcase 'K':\n\t\t\tcase 'L':\n\t\t\tcase 'M':\n\t\t\tcase 'N':\n\t\t\tcase 'O':\n\t\t\tcase 'P':\n\t\t\tcase 'Q':\n\t\t\tcase 'R':\n\t\t\tcase 'S':\n\t\t\tcase 'T':\n\t\t\tcase 'U':\n\t\t\tcase 'V':\n\t\t\tcase 'W':\n\t\t\tcase 'X':\n\t\t\tcase 'Y':\n\t\t\tcase 'Z':\n\t\t\tcase '[':\n\t\t\t\t{\n\t\t\t\talt5=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ']':\n\t\t\tcase '^':\n\t\t\tcase '_':\n\t\t\tcase '`':\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\tcase 'd':\n\t\t\tcase 'e':\n\t\t\tcase 'f':\n\t\t\tcase 'g':\n\t\t\tcase 'h':\n\t\t\tcase 'i':\n\t\t\tcase 'j':\n\t\t\tcase 'k':\n\t\t\tcase 'l':\n\t\t\tcase 'm':\n\t\t\tcase 'n':\n\t\t\tcase 'o':\n\t\t\tcase 'p':\n\t\t\tcase 'q':\n\t\t\tcase 'r':\n\t\t\tcase 's':\n\t\t\tcase 't':\n\t\t\tcase 'u':\n\t\t\tcase 'v':\n\t\t\tcase 'w':\n\t\t\tcase 'x':\n\t\t\tcase 'y':\n\t\t\tcase 'z':\n\t\t\tcase '{':\n\t\t\tcase '|':\n\t\t\tcase '}':\n\t\t\tcase '~':\n\t\t\t\t{\n\t\t\t\talt5=4;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '\\\\':\n\t\t\t\t{\n\t\t\t\tswitch ( input.LA(2) ) {\n\t\t\t\tcase '\\\"':\n\t\t\t\t\t{\n\t\t\t\t\talt5=5;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '\\\\':\n\t\t\t\t\t{\n\t\t\t\t\talt5=6;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 't':\n\t\t\t\t\t{\n\t\t\t\t\talt5=7;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'n':\n\t\t\t\t\t{\n\t\t\t\t\talt5=8;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tint nvaeMark = input.mark();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 5, 5, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tinput.rewind(nvaeMark);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 5, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt5) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:318:17: ' '\n\t\t\t\t\t{\n\t\t\t\t\tmatch(' '); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:318:23: '!'\n\t\t\t\t\t{\n\t\t\t\t\tmatch('!'); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:318:29: ( '\\\\u0023' .. '\\\\u005B' )\n\t\t\t\t\t{\n\t\t\t\t\tif ( (input.LA(1) >= '#' && input.LA(1) <= '[') ) {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\t\t\trecover(mse);\n\t\t\t\t\t\tthrow mse;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:318:52: ( '\\\\u005D' .. '\\\\u007E' )\n\t\t\t\t\t{\n\t\t\t\t\tif ( (input.LA(1) >= ']' && input.LA(1) <= '~') ) {\n\t\t\t\t\t\tinput.consume();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\t\t\trecover(mse);\n\t\t\t\t\t\tthrow mse;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:318:75: '\\\\\\\\\\\"'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"\\\\\\\"\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:318:83: '\\\\\\\\\\\\\\\\'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"\\\\\\\\\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:318:92: '\\\\\\\\t'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"\\\\t\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8 :\n\t\t\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:318:100: '\\\\\\\\n'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(\"\\\\n\"); \n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}",
"public static String toString(char ch) {\n/* 308 */ if (ch < '') {\n/* 309 */ return CHAR_STRING_ARRAY[ch];\n/* */ }\n/* 311 */ return new String(new char[] { ch });\n/* */ }",
"public int getSingleChar() {\n return -1;\n }",
"@Override\n public void convertCharacter(char character, StringBuilder outputTextBuilder) {\n }",
"public SpecialChar insertSpecialChar() {\n SpecialChar specialChar = new SpecialChar();\n specialChar.setId(4491);\n specialChar.setSpecialCharA(\"! ' , . / : ; ? ^ _ ` | \"\n + \" ̄ 、 。 · ‥ … ¨ 〃 ― ∥ \ ∼ ´ ~ ˇ \" + \"˘ ˝ ˚ ˙ ¸ ˛ ¡ ¿ ː\");\n specialChar.setSpecialCharB(\"" ( ) [ ] { } ‘ ’ “ ” \"\n + \" 〔 〕 〈 〉 《 》 「 」 『 』\" + \" 【 】\");\n specialChar.setSpecialCharC(\"+ - < = > ± × ÷ ≠ ≤ ≥ ∞ ∴\"\n + \" ♂ ♀ ∠ ⊥ ⌒ ∂ ∇ ≡ ≒ ≪ ≫ √ ∽ ∝ \"\n + \"∵ ∫ ∬ ∈ ∋ ⊆ ⊇ ⊂ ⊃ ∪ ∩ ∧ ∨ ¬ ⇒ \" + \"⇔ ∀ ∃ ∮ ∑ ∏\");\n specialChar\n .setSpecialCharD(\"$ % ₩ F ′ ″ ℃ Å ¢ £ ¥ ¤ ℉ ‰ \"\n + \"€ ㎕ ㎖ ㎗ ℓ ㎘ ㏄ ㎣ ㎤ ㎥ ㎦ ㎙ ㎚ ㎛ \"\n + \"㎜ ㎝ ㎞ ㎟ ㎠ ㎡ ㎢ ㏊ ㎍ ㎎ ㎏ ㏏ ㎈ ㎉ \"\n + \"㏈ ㎧ ㎨ ㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎀ ㎁ ㎂ ㎃ ㎄ ㎺ ㎻ ㎼ ㎽ ㎾ ㎿ ㎐ ㎑ ㎒ ㎓ ㎔ Ω ㏀ ㏁ ㎊ ㎋ ㎌ ㏖ ㏅ ㎭ ㎮ ㎯ ㏛ ㎩ ㎪ ㎫ ㎬ ㏝ ㏐ ㏓ ㏃ ㏉ ㏜ ㏆\");\n specialChar.setSpecialCharE(\"# & * @ § ※ ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲\"\n + \" ▽ ▼ → ← ↑ ↓ ↔ 〓 ◁ ◀ ▷ ▶ ♤ ♠ ♡ ♥ ♧ ♣ ⊙ ◈ ▣ ◐\"\n + \" ◑ ▒ ▤ ▥ ▨ ▧ ▦ ▩ ♨ ☏ ☎ ☜ ☞ ¶ † \"\n + \"‡ ↕ ↗ ↙ ↖ ↘♭ ♩ ♪ ♬ ㉿ ㈜ № ㏇ ™ ㏂ ㏘ ℡ ® ª º\");\n\n session.save(specialChar);\n\n return specialChar;\n }",
"@Test(expected=IndexOutOfBoundsException.class)\n public void testCharAt_File() {\n System.out.println(\"charAt_File\");\n int index = 0; \n Charset cs = Charset.forName(UTF_8);\n InputStream stream = getInputStream(TypeOfStream.FILE, TypeOfContent.BYTE_0, cs);\n @SuppressWarnings(\"deprecation\")\n BufferedCharSequence instance = new BufferedCharSequence(stream, cs.newDecoder(), 0);\n instance.charAt(index);\n }",
"public static void main(String[] args) {\n\t\tString name = \"hello World\";\n\t\t\n\t\tchar ch = name.charAt(1);\n\t\tSystem.out.println(ch);\n\t\t\n\t\tname = \"991021-2234567\";\n\t\t\n\t\tch = name.charAt(7);\n\t\tSystem.out.println(ch);\n\t\t\n\t\tif (ch == '1' || ch == '3') {\n\t\t\tSystem.out.println(\"남자\");\n\t\t} else {\n\t\t\tSystem.out.println(\"여자\");\n\t\t}\n\t\t\n\t\tch = name.charAt(200);\n\t\tSystem.out.println(ch);\n\t}",
"@Test\r\n\tpublic void testCheckCharacter() throws ConfuserException {\r\n\t\t// Check to make sure unknowns work by checking against basic ASCII\r\n\t\tfor (char ndx = 0x021; ndx < 0x007E; ndx++) {\r\n\t\t\tassertEquals(Confuser.CharacterType.Unknown, Confuser.checkCharacter(String.valueOf(ndx)));\r\n\t\t}\r\n\t\t// Check to make sure Hiragana pass\r\n\t\tfor (char ndx = 0x3041; ndx < 0x3096; ndx++) {\r\n\t\t\tassertEquals(Confuser.CharacterType.Hiragana, Confuser.checkCharacter(String.valueOf(ndx)));\r\n\t\t}\r\n\t\t// Check to make sure the katakana pass\r\n\t\tfor (char ndx = 0x30A1; ndx < 0x30FC; ndx++) {\r\n\t\t\tassertEquals(Confuser.CharacterType.Katakana, Confuser.checkCharacter(String.valueOf(ndx)));\r\n\t\t}\r\n\t\t// Check to make sure the kanji pass, note that we are checking the \r\n\t\t// full CJK range so this includes kanji that are not used in Japanese\r\n\t\tfor (char ndx = 0x4E00; ndx < 0x9FAF; ndx++) {\r\n\t\t\tassertEquals(Confuser.CharacterType.Kanji, Confuser.checkCharacter(String.valueOf(ndx)));\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testUnicodeCharacterDisplaying() {\r\n\t\tassertVisualEditorContainsNodeWithValue(webBrowser, UnicodeCharacterDisplayingTest.UNICODE_TEXT,\r\n\t\t\t\tUnicodeCharacterDisplayingTest.TEST_PAGE_NAME);\r\n\t}",
"public void setCharacterSequence(String chars);",
"int getStartCharIndex();",
"char toChar(int index) {\n if (index > _chars.length() || index < 0) {\n throw new EnigmaException(\"Alpha.toChar: Index out of range.\");\n }\n return _chars.charAt(index);\n }",
"public static String unicodeEscaped(Character ch) {\n/* 380 */ if (ch == null) {\n/* 381 */ return null;\n/* */ }\n/* 383 */ return unicodeEscaped(ch.charValue());\n/* */ }",
"public int getCharStart() {\n\t\treturn -1;\n\t}",
"public char getBadChar(){\n return badChar;\n }",
"String getWordIn(String schar, String echar);",
"public static void main(String[] args) {\n\t\tchar aa = '\\u0000';\r\n\t\tchar a = '\\u0041';\r\n\t\tchar b = '\\u0042';\r\n\t\tchar c = '\\u0043';\r\n\t\tchar d = '\\u0044';\r\n\t\tchar e = '\\u0045';\r\n\t\tchar f = '\\u0046';\r\n\t\tchar g = '\\u0047';\r\n\t\tchar h = '\\u0048';\r\n\t\tchar i = '\\u0049';\r\n\t\tchar j = '\\u004A';\r\n\t\tchar k = '\\u004B';\r\n\t\tchar l = '\\u004C';\r\n\t\tchar m = '\\u004D';\r\n\t\tchar n = '\\u004E';\r\n\t\tchar o = '\\u004F';\r\n\t\tchar p = '\\u0051';\r\n\t\tchar q = '\\u0051';\r\n\t\tchar r = '\\u0052';\r\n\t\tchar s = '\\u0053';\r\n\t\tchar t = '\\u0054';\r\n\t\tchar u = '\\u0055';\r\n\t\tchar v = '\\u0056';\r\n\t\tchar w = '\\u0057';\r\n\t\tchar x = '\\u0058';\r\n\t\tchar y = '\\u0059';\r\n\t\tchar z = '\\u0060';\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(+i+\"\"+aa+\"\"+w+\"\"+i+\"\"+s+\"\"+h+\"\"+aa+\"\"+t+\"\"+o+\"\"+aa+\"\"+p+\"\"+e+\"\"+r+\"\"+i+\"\"+s+\"\"+h);\r\n\t}",
"public static boolean isAsciiControl(char ch) {\n/* 441 */ return (ch < ' ' || ch == '');\n/* */ }",
"private String getCharacter(final int index) {\n String s = null;\n try {\n s = document.getText(index, 1);\n } catch (final BadLocationException e) {\n }\n return s;\n }",
"boolean hasChar();",
"CharacterInfo getCharacter();",
"@TestTargetNew(\n level = TestLevel.COMPLETE,\n notes = \"Test {@link KeyEvent#getUnicodeChar()}\",\n method = \"getUnicodeChar\",\n args = {}\n )\n public void testGetUnicodeChar1() {\n assertEquals(48, mKeyEvent.getUnicodeChar());\n\n mKeyEvent = new KeyEvent(mDownTime, mEventTime, KeyEvent.ACTION_DOWN,\n KeyEvent.KEYCODE_9, 5, 0);\n // 57 is Unicode character of '9'\n assertEquals(57, mKeyEvent.getUnicodeChar());\n\n mKeyEvent = new KeyEvent(mDownTime, mEventTime, KeyEvent.ACTION_DOWN,\n KeyEvent.KEYCODE_ALT_LEFT, 5, KeyEvent.META_SHIFT_ON);\n // 'ALT' key is not a type Unicode character.\n assertEquals(0, mKeyEvent.getUnicodeChar());\n }",
"private void buildCharMap() {\n\t\tcharMap = new HashMap<Character , Integer>();\n\t\tcharMap.put('a', 0);\n\t\tcharMap.put('b', 1);\n\t\tcharMap.put('c', 2);\n\t\tcharMap.put('d', 3);\n\t\tcharMap.put('e', 4);\n\t\tcharMap.put('f', 5);\n\t\tcharMap.put('g', 6);\n\t\tcharMap.put('h', 7);\n\t\tcharMap.put('i', 8);\n\t\tcharMap.put('j', 9);\n\t\tcharMap.put('k', 10);\n\t\tcharMap.put('l', 11);\n\t\tcharMap.put('m', 12);\n\t\tcharMap.put('n', 13);\n\t\tcharMap.put('o', 14);\n\t\tcharMap.put('p', 15);\n\t\tcharMap.put('q', 16);\n\t\tcharMap.put('r', 17);\n\t\tcharMap.put('s', 18);\n\t\tcharMap.put('t', 19);\n\t\tcharMap.put('u', 20);\n\t\tcharMap.put('v', 21);\n\t\tcharMap.put('w', 22);\n\t\tcharMap.put('x', 23);\n\t\tcharMap.put('y', 24);\n\t\tcharMap.put('z', 25);\t\n\t}",
"public abstract void mo2157b(CharSequence charSequence);",
"@Override\n\tpublic void characters(String text) {\n\t\t\n\t}",
"final protected String translateSpecialChars(String title)\r\n {\r\n int start;\r\n\tint i;\r\n\t// HTML representation of selected extended chars\r\n\tString rawString[]={\r\n\t\t\t\t\t\t \"á\",\"â\",\"æ\",\r\n\t\t\t\t\t\t \"à\",\"ä\",\"ç\",\r\n\t\t\t\t\t\t \"é\",\"ê\",\"è\",\r\n\t\t\t\t \"ë\",\"î\",\"ï\",\r\n\t\t\t\t \"ô\",\"ö\",\"ß\",\r\n\t\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\t\t \"í\",\"ð\",\"ñ\",\r\n\t\t\t\t\t \"ò\",\"ó\",\"õ\",\r\n\t\t\t\t\t \"÷\",\"ø\",\"ù\",\r\n\t\t\t\t\t \"ú\",\"û\",\"ý\",\r\n\t\t\t\t\t \"þ\",\"×\",\" \",\r\n\t\t\t\t\t \"§\",\"¢\",\"°\"\r\n\t\t\t\t\t };\r\n // Unicode representation of above\r\n\tchar translatedChar[]={\r\n\t\t\t\t\t\t\t'\\u00e1','\\u00e2','\\u00e6',\r\n\t\t\t\t\t\t\t'\\u00e0','\\u00e4','\\u00e7',\r\n\t\t\t\t\t\t\t'\\u00e9','\\u00ea','\\u00e8',\r\n\t\t\t\t\t\t\t'\\u00eb','\\u00ee','\\u00ef',\r\n\t\t\t\t\t\t\t'\\u00f4','\\u00f6','\\u00df',\r\n\t\t\t\t\t\t\t'\\u00fc','\\u00ff','\\u00a9',\r\n\t\t\t\t\t\t\t'\\u00a3','\\u00ae','\\u003c',\r\n\t\t\t\t\t\t\t'\\u003e','\\u0026','\\u0022',\r\n\t\t\t\t\t\t\t'\\u00e3','\\u00e5','\\u00ec',\r\n\t\t\t\t\t\t\t'\\u00ed','\\u00f0','\\u00f1',\r\n\t\t\t\t\t\t\t'\\u00f2','\\u00f3','\\u00f5',\r\n\t\t\t\t\t\t\t'\\u00f7','\\u00f8','\\u00f9',\r\n\t\t\t\t\t\t\t'\\u00fa','\\u00fb','\\u00fd',\r\n\t\t\t\t\t\t\t'\\u00fe','\\u00d7','\\u00a0',\r\n\t\t\t\t\t\t\t'\\u00a7','\\u00a2','\\u00b0'\r\n\t\t\t\t\t\t };\r\n StringBuffer translated=new StringBuffer(\"\");\r\n\tString titleString=title;\r\n\r\n\t//Check the title for each of the above HTML special chars\r\n\tfor(int loop=0;loop<NUMBER_SPECIAL_CHARS;loop++)\r\n\t{\r\n\t if(translated.length()>0)\r\n\t {\r\n\t titleString=translated.toString();\r\n\t\ttranslated=new StringBuffer(\"\");\r\n\t }\r\n\t start=titleString.indexOf(rawString[loop]);\r\n\t if(start!=-1)\r\n\t {\r\n\t //HTML special character found so replace it \r\n\t\t// with the unicode equalent for display.\r\n\t\tfor(i=0;i<start;i++)\r\n\t\t translated.insert(i,titleString.charAt(i));\r\n translated.append(translatedChar[loop]);\r\n\t\tfor(i=start+rawString[loop].length();i<titleString.length();i++)\r\n\t\t translated.append(titleString.charAt(i));\r\n\t }\r\n\t}\r\n\treturn (translated.length()==0) ? titleString : translated.toString();\r\n }",
"public Character decodeCharacter(PushbackString input) {\n\t\tinput.mark();\n\t\tCharacter first = input.next();\n\t\tif (first == null || first != '\\\\') {\n\t\t\tinput.reset();\n\t\t\treturn null;\n\t\t}\n\n\t\tCharacter second = input.next();\n\t\tif (second == null) {\n\t\t\tinput.reset();\n\t\t\treturn null;\n\t\t}\n\n\t\t/*\n\t\t * From css 2.1 spec: http://www.w3.org/TR/CSS21/syndata.html#characters\n\t\t * \n\t\t * First, inside a string, a backslash followed by a newline is ignored\n\t\t * (i.e., the string is deemed not to contain either the backslash or\n\t\t * the newline).\n\t\t * \n\t\t * Second, it cancels the meaning of special CSS characters. Except\n\t\t * within CSS comments, any character (except a hexadecimal digit,\n\t\t * linefeed, carriage return, or form feed) can be escaped with a\n\t\t * backslash to remove its special meaning. For example, \"\\\"\" is a\n\t\t * string consisting of one double quote. Style sheet preprocessors must\n\t\t * not remove these backslashes from a style sheet since that would\n\t\t * change the style sheet's meaning.\n\t\t * \n\t\t * Third, backslash escapes allow authors to refer to characters they\n\t\t * cannot easily put in a document. In this case, the backslash is\n\t\t * followed by at most six hexadecimal digits (0..9A..F), which stand\n\t\t * for the ISO 10646 ([ISO10646]) character with that number, which must\n\t\t * not be zero. (It is undefined in CSS 2.1 what happens if a style\n\t\t * sheet does contain a character with Unicode codepoint zero.) If a\n\t\t * character in the range [0-9a-fA-F] follows the hexadecimal number,\n\t\t * the end of the number needs to be made clear. There are two ways to\n\t\t * do that:\n\t\t * \n\t\t * 1. with a space (or other white space character): \"\\26 B\" (\"&B\"). In\n\t\t * this case, user agents should treat a \"CR/LF\" pair (U+000D/U+000A) as\n\t\t * a single white space character.\n\t\t * \n\t\t * 2. by providing exactly 6 hexadecimal digits: \"\\000026B\" (\"&B\")\n\t\t * \n\t\t * In fact, these two methods may be combined. Only one white space\n\t\t * character is ignored after a hexadecimal escape. Note that this means\n\t\t * that a \"real\" space after the escape sequence must itself either be\n\t\t * escaped or doubled.\n\t\t * \n\t\t * If the number is outside the range allowed by Unicode (e.g.,\n\t\t * \"\\110000\" is above the maximum 10FFFF allowed in current Unicode),\n\t\t * the UA may replace the escape with the \"replacement character\"\n\t\t * (U+FFFD). If the character is to be displayed, the UA should show a\n\t\t * visible symbol, such as a \"missing character\" glyph (cf. 15.2, point\n\t\t * 5).\n\t\t */\n\n\t\tswitch (second) { // special whitespace cases. I assume they mean\n\t\t\t\t\t\t\t// for all of these to qualify as a \"new\n\t\t\t\t\t\t\t// line.\" Otherwise there is no specification\n\t\t\t\t\t\t\t// of what to do for \\f\n\t\tcase '\\r':\n\t\t\tif (input.peek('\\n'))\n\t\t\t\tinput.next();\n\t\t\t// fall through\n\t\tcase '\\n':\n\t\tcase '\\f':\n\t\t\t// bs follwed by new line replaced by nothing\n\t\tcase '\\u0000': // skip NUL for now too\n\t\t\treturn decodeCharacter(input);\n\t\t}\n\n\t\tif (!PushbackString.isHexDigit(second)) { // non hex digit\n\t\t\treturn second;\n\t\t}\n\n\t\t// Search for up to 6 hex digits following until a space\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(second);\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tCharacter c = input.next();\n\t\t\tif (c == null || Character.isWhitespace(c))\n\t\t\t\tbreak;\n\t\t\tif (PushbackString.isHexDigit(c))\n\t\t\t\tsb.append(c);\n\t\t\telse {\n\t\t\t\tinput.pushback(c);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\t// parse the hex digit and create a character\n\t\t\tint i = Integer.parseInt(sb.toString(), 16);\n\n\t\t\tif (Character.isValidCodePoint(i))\n\t\t\t\treturn (char) i;\n\t\t\treturn REPLACEMENT;\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"Received a NumberFormateException parsing a string verified to be hex\",\n\t\t\t\t\te);\n\t\t}\n\t}",
"public static int getAtChar(){\r\n\t\treturn atChar;\r\n\t}",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.BeginToken();\n javaCharStream0.GetSuffix(416);\n assertEquals(1, javaCharStream0.getBeginColumn());\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n StringReader stringReader0 = new StringReader(\"^z{b>wblu8^IJ+?\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }",
"@Test\n public void testToChar() {\n Object[][] datas = new Object[][]{\n {1, '1'},\n {5, '5'},\n {10, 'A'},\n {11, 'B'},\n {12, 'C'},\n {13, 'D'},\n {14, 'E'},\n {15, 'F'}\n };\n for (Object[] data : datas) {\n char result = Tools.toChar((Integer) data[0]);\n char expResult = (Character) data[1];\n assertEquals(result, expResult);\n System.out.println(\"testToChar()\");\n }\n }",
"char toChar(int index) {\n return _chars.charAt(index);\n }",
"private static boolean isPNCharsBase(int ch) {\n return\n r(ch, 'a', 'z') || r(ch, 'A', 'Z') || r(ch, 0x00C0, 0x00D6) || r(ch, 0x00D8, 0x00F6) || r(ch, 0x00F8, 0x02FF) ||\n r(ch, 0x0370, 0x037D) || r(ch, 0x037F, 0x1FFF) || r(ch, 0x200C, 0x200D) || r(ch, 0x2070, 0x218F) ||\n r(ch, 0x2C00, 0x2FEF) || r(ch, 0x3001, 0xD7FF) ||\n // Surrogate pairs\n r(ch, 0xD800, 0xDFFF) ||\n r(ch, 0xF900, 0xFDCF) || r(ch, 0xFDF0, 0xFFFD) ||\n r(ch, 0x10000, 0xEFFFF) ; // Outside the basic plane.\n }",
"public char getChar(int index)\r\n/* 191: */ {\r\n/* 192:208 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 193:209 */ return super.getChar(index);\r\n/* 194: */ }",
"private static native String getNameImpl(int codePoint);",
"public static void main(String[] args) {\n String s = \"计算机世界\";\n System.out.println(s.charAt(1));\n }",
"@Test(timeout = 4000)\n public void test008() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.BeginToken();\n javaCharStream0.readChar();\n javaCharStream0.GetImage();\n assertEquals(1, javaCharStream0.bufpos);\n }",
"private char resolveIntToChar(int i) {\n switch (i) {\n case 1:\n return 'a';\n case 2:\n return 'b';\n case 3:\n return 'c';\n case 4:\n return 'd';\n case 5:\n return 'e';\n case 6:\n return 'f';\n case 7:\n return 'g';\n case 8:\n return 'h';\n default:\n return 'x';\n }\n }",
"@Test(timeout = 4000)\n public void test016() throws Throwable {\n StringReader stringReader0 = new StringReader(\"7o9?>+o`*qi$\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char char0 = javaCharStream0.readChar();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals('7', char0);\n }",
"private static String getUniNameOfCodePoint(int codePoint) {\n/* 111 */ String hex = Integer.toString(codePoint, 16).toUpperCase(Locale.US);\n/* 112 */ switch (hex.length()) {\n/* */ \n/* */ case 1:\n/* 115 */ return \"uni000\" + hex;\n/* */ case 2:\n/* 117 */ return \"uni00\" + hex;\n/* */ case 3:\n/* 119 */ return \"uni0\" + hex;\n/* */ } \n/* 121 */ return \"uni\" + hex;\n/* */ }",
"@Test(timeout = 4000)\n public void test066() throws Throwable {\n StringReader stringReader0 = new StringReader(\"=<D!T!tLp\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 20, 0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[5];\n stringReader0.read(charArray0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.getBeginColumn());\n assertEquals(3, javaCharStream0.getEndColumn());\n }",
"char toChar(int index) {\n return _letters.charAt(index);\n }",
"public static void main(String[] args) {\n\n \tString str = \"123abc你好efc\";\n\n \tString reg = \"[\\u4e00-\\u9fa5]\";\n\n \tPattern pat = Pattern.compile(reg); \n\n \tMatcher mat=pat.matcher(str); \n\n \tString repickStr = mat.replaceAll(\"\");\n\n \tSystem.out.println(\"去中文后:\"+repickStr);\n\n}",
"@Test\n public void testCodePoints() {\n LOGGER.info(\"testCodePoints\");\n final String expected = \"Hello\";\n final AtomString atomString1 = new AtomString(expected);\n final String actual = atomString1.codePoints()\n .mapToObj(i -> new String(new int[]{i}, 0, 1))\n .collect(joining());\n assertEquals(expected, actual);\n }",
"private static String convertEscapeChar(String escapeCharacter)\t{\n\t\tString charCode = escapeCharacter.substring(escapeCharacter.indexOf(\"#\")+1);\n\t\treturn \"\" + (char) Integer.parseInt(charCode);\n\t}",
"@Test(timeout = 4000)\n public void test159() throws Throwable {\n StringReader stringReader0 = new StringReader(\"x/C9mX)\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-2632), (-2632));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals((-2631), javaCharStream0.getEndColumn());\n }",
"public static void main(String[] args) {\nSystem.out.println(\"xin chào linh\");\n\n\n}"
] | [
"0.7086908",
"0.67071277",
"0.67021674",
"0.6545879",
"0.65364033",
"0.6386771",
"0.63744104",
"0.6357152",
"0.63305753",
"0.63270974",
"0.6317555",
"0.63123125",
"0.63009447",
"0.62898594",
"0.62728053",
"0.6245287",
"0.62446845",
"0.6242445",
"0.6235427",
"0.6233613",
"0.61950094",
"0.61812276",
"0.6176606",
"0.6160606",
"0.6154021",
"0.6138076",
"0.61104167",
"0.6102046",
"0.6068569",
"0.6062669",
"0.60595345",
"0.6053194",
"0.6052191",
"0.6032204",
"0.6027303",
"0.6023253",
"0.6019041",
"0.6010156",
"0.6005661",
"0.60042185",
"0.59915864",
"0.597088",
"0.5934452",
"0.5928385",
"0.59277064",
"0.5906719",
"0.5905262",
"0.58788836",
"0.5871546",
"0.58681226",
"0.5864422",
"0.5864422",
"0.5852449",
"0.5850395",
"0.58361167",
"0.58334625",
"0.5832718",
"0.58168256",
"0.58162785",
"0.58039844",
"0.5794224",
"0.5793389",
"0.57901",
"0.57880443",
"0.5787269",
"0.57865",
"0.57843226",
"0.5784117",
"0.57809305",
"0.57793623",
"0.5764214",
"0.57599866",
"0.5751916",
"0.5749636",
"0.5746792",
"0.5746123",
"0.5742039",
"0.5741303",
"0.57387847",
"0.57380426",
"0.5732514",
"0.5732431",
"0.57317847",
"0.5730466",
"0.5729448",
"0.5724629",
"0.57215416",
"0.57123566",
"0.57087016",
"0.5708687",
"0.56962514",
"0.5695057",
"0.56867516",
"0.56825274",
"0.5681896",
"0.56806874",
"0.56691545",
"0.5664765",
"0.5660254",
"0.56580395",
"0.56570935"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean canEdit(IAccounterServerCore clientObject,
boolean goingToBeEdit) throws AccounterException {
return true;
} | {
"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 selfValidate() {
} | {
"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 |
Called to indicate the passed conversation is being resumed. | void conversationResuming(Conversation conversation, HttpServletRequest request); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resumed() {\n System.out.println(\"Resumed\");\n }",
"public void resume() {}",
"public void resume() {\n }",
"@Override\n public void Resume() {\n }",
"@Override\r\n\tpublic void resume() {\n\t\tthis.suspended = false;\r\n\t}",
"public void resume() {\n m_suspended = false;\n }",
"public void resume() {\n this.suspended = false;\n }",
"public void resume();",
"protected abstract boolean resume();",
"@Override\n public void resume() { }",
"@Override\n public void Resume() {\n\n }",
"@Override\n public void Resume() {\n\n }",
"@Override\r\n public void resume() {\n }",
"@Override\r\n public void resume() {\n }",
"@Override\r\n public void resume() {\n }",
"@Override\r\n public void resume() {\r\n\r\n }",
"@Override\n public void resume() {\n }",
"@Override\n public void resume() {\n }",
"@Override\n public void resume() {\n }",
"public void resume() {\n paused = false;\n }",
"@Override\n public void resume() {\n \n }",
"@Override\n public void resume() {\n // Not used\n }",
"@Override\n public void resume() {\n }",
"@Override\n public void resume() {\n\n }",
"@Override\n public void resume() {\n\n }",
"@Override\n public void resume() {\n\n }",
"@Override\r\n\tpublic void resume() {\n\t}",
"public abstract void resume();",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}",
"public void resume()\n\t{\n\t\tisPaused = false;\n\t}",
"@Override\n\tpublic void resume() {\n\t}",
"@Override\n\tpublic void resume() {\n\t}",
"@Override\n\tpublic void resume() {\n\t}",
"@Override\n\tpublic void resume() {\n\t}",
"@Override\n\tpublic void resume() {\n\t}",
"@Override\n\tpublic void resume() \n\t{\n\n\t}",
"public synchronized void resume() {\n paused = false;\n this.notify();\n }",
"public void resume() {\n\t\t// TODO Auto-generated method stub\n\t}",
"@Override\n\tpublic void resume()\n\t{\n\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\t\t\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"@Override\n\tpublic void resume() {\n\n\t}",
"void resume();",
"void resume();",
"void resume();",
"public synchronized void resume() {\r\n\r\n\t\tpaused = false;\r\n\t\tnotifyAll();\r\n\t}",
"@Override\n public void resume() {\n \n }",
"@Override\r\n\tpublic void resume() {\n\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\r\n\t}",
"@Override\r\n\tpublic void resume() {\n\r\n\t}"
] | [
"0.74935263",
"0.7438308",
"0.7387694",
"0.73621035",
"0.7359716",
"0.73595446",
"0.7356897",
"0.7338787",
"0.72966194",
"0.725329",
"0.7250399",
"0.7250399",
"0.7234174",
"0.7234174",
"0.7234174",
"0.7200223",
"0.7174321",
"0.7174321",
"0.7174321",
"0.71683264",
"0.7115231",
"0.71031845",
"0.70918876",
"0.70858437",
"0.70858437",
"0.70858437",
"0.7081868",
"0.70564544",
"0.7044207",
"0.7044207",
"0.7044207",
"0.7044207",
"0.7044207",
"0.7044207",
"0.7044207",
"0.7044207",
"0.7044207",
"0.7044207",
"0.70340824",
"0.70336163",
"0.70336163",
"0.70336163",
"0.70336163",
"0.70336163",
"0.7031069",
"0.7028376",
"0.7027637",
"0.70230407",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.7017013",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.70039994",
"0.6994129",
"0.6994129",
"0.6994129",
"0.69869447",
"0.696425",
"0.6963409",
"0.6963409",
"0.6963409",
"0.6963409",
"0.6963409",
"0.6963409"
] | 0.0 | -1 |
Called to indicate the passed Conversation is being paused. | void conversationPausing(Conversation conversation); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void pause()\n {\n paused = true;\n }",
"public void pause() {\n paused = true;\n }",
"public void pause() {\n paused = true;\n }",
"public void checkPaused()\n {\n paused = true;\n }",
"public void paused() {\n System.out.println(\"Paused\");\n }",
"public synchronized void pause() {\r\n\r\n\t\tpaused = true;\r\n\t}",
"public boolean isPaused();",
"public void pause() {\n isPaused = true;\n System.out.println(\"pausing\");\n timeline.stop();\n }",
"public void resume() {\n paused = false;\n }",
"synchronized void pause() {\n\t\tpaused = true;\n\t}",
"private void pause()\n {\n mPaused = true;\n mCurrentTurn.addTurnTime( getElapsedTime() );\n mCountdownTimer.cancel();\n mPauseResumeButton.setText( \"Resume\" ); // TODO resourcify\n }",
"public void pause() {\r\n\t\tsetState(PAUSED);\r\n\t}",
"public void setPaused(boolean paused) {\n this.paused=paused;\n }",
"@Override\r\n public void onPause() {\r\n NexLog.d(LOG_TAG, \"onPause called\");\r\n activityPaused = true;\r\n }",
"public void pause() {\n\t\tsynchronized(this) {\n\t\t\tpaused = true;\n\t\t}\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tmPaused=true;\n\t\tLog.d(\"onPause\", \"Paused\");\n\t\t\n\t}",
"public void onPause() {\n super.onPause();\n overridePendingTransition(0, 0);\n ChatActivityEnterView chatActivityEnterView2 = this.chatActivityEnterView;\n if (chatActivityEnterView2 != null) {\n chatActivityEnterView2.hidePopup(false);\n this.chatActivityEnterView.setFieldFocused(false);\n }\n int i = this.lastResumedAccount;\n if (i >= 0) {\n ConnectionsManager.getInstance(i).setAppPaused(true, false);\n }\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tApplicationStatus.activityPaused();\n\t}",
"public boolean isPaused() {\r\n return paused;\r\n }",
"public void pause()\n\t{\n\t\tif (!isStarted())\n\t\t{\n\t\t\tLttl.Throw(\"Can only pause a started tween.\");\n\t\t}\n\t\tif (this.parent != null)\n\t\t{\n\t\t\tLttl.Throw(\"Can only pause top level tween.\");\n\t\t}\n\t\tisPaused = true;\n\t}",
"public void pauseWorkflow() {\n\t\tassert (status == WorkflowStatus.RUNNING);\n\t\tsetStatus(WorkflowStatus.PAUSED);\n\t}",
"public boolean isPaused() {\n return paused;\n }",
"public void resume()\n\t{\n\t\tisPaused = false;\n\t}",
"synchronized boolean isPaused(){\n\t\treturn paused;\n\t}",
"@Override\n public void onActivityPaused(Activity ignored) {\n if (isAuthSticky) {\n activityPaused = true;\n }\n }",
"@Override\n public void pause() {\n Gdx.app.log(TAG, \"Paused\");\n }",
"public boolean isPaused() {\n \t\treturn isPaused;\n \t}",
"@Override\n public void onActivityPaused(Activity activity) {\n if (call.argument(\"stickyAuth\")) {\n pause();\n } else {\n stop(false);\n }\n }",
"public void pause() {\n pause = true;\n }",
"public boolean isPaused() {\n return _isPaused;\n }",
"@Override\r\n\tpublic void paused(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}",
"public void onPause () {\n\t\t\n\t}",
"public void paused(boolean flagPause) {\r\n\t\t__flagRunning = !flagPause;\r\n\t}",
"public synchronized void resume() {\n paused = false;\n this.notify();\n }",
"public void pauseGame(boolean state) {\r\n paused = state;\r\n }",
"public void pause() {\r\n\t\tSystem.out.println(\"Paused game\");\r\n\t\tthis.timeline.pause();\r\n\t\tisPaused = true;\r\n\t\tpauseMenu.setVisible(true);\r\n\t}",
"protected void pause(){}",
"public boolean isPaused() {\r\n return this.paused;\r\n }",
"public boolean isPaused()\n\t{\n\t\treturn isPaused;\n\t}",
"public void pause() {\n\t\tif (playing)\n\t\t\tstopRequested = true;\n\t}",
"public boolean isPaused() {\n synchronized (lockForPause) {\n return (pause == true);\n }\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tisFlag = false;\n\t}",
"public void unPause()\n {\n paused = false;\n }",
"public boolean isPaused() {\n return this.paused;\n }",
"public void onPause() {\n LOG.mo8825d(\"[onPause]\");\n super.onPause();\n }",
"private void pause() {\n if (!isStarted) {\n return;\n }\n\n isPaused = !isPaused;\n\n if (isPaused) {\n\n statusbar.setText(\"paused\");\n } else {\n\n statusbar.setText(String.valueOf(numLinesRemoved));\n }\n }",
"public void onPause();",
"public boolean isPaused() {\n\t\tsynchronized(this) {\n\t\t\treturn paused;\n\t\t}\n\t}",
"public void togglePauseResume() {\n // MODIFIES: field \"running\"\n // EFFECTS: changes the boolean field \"running\" of this instance.\n if (running) {\n System.out.println(\"Physics engine paused.\");\n running = false;\n } else {\n System.out.println(\"Physics engine resumed.\");\n running = true;\n }\n }",
"@Override\n public void pause() {\n // Not used\n }",
"public synchronized void resume() {\r\n\r\n\t\tpaused = false;\r\n\t\tnotifyAll();\r\n\t}",
"@Override\n\tpublic void pause() {\n\t\tsuper.pause();\n\t}",
"public void onPause() {\n }",
"public void pause() {\n try {\n mSessionBinder.pause(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling pause.\", e);\n }\n }",
"@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onPause() {\n\t\t\r\n\t}",
"@Override\r\n public void pause() {}",
"protected abstract void onPause();",
"@Override\n public void pause() {\n }",
"@Override\n public void Pause() {\n }",
"public void pause() {\r\n fPause = true;\r\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n protected void onPause() {\n super.onPause();\n isPaused = true;\n }",
"@Override // from GLKViewControllerDelegate\n public void willPause(GLKViewController self, boolean paused) {\n if (paused) platform.didEnterBackground();\n else platform.willEnterForeground();\n }",
"@Override\n public void pauseClock() {\n state = ClockState.PAUSED;\n // TODO Auto-generated method stub\n\n }",
"public synchronized boolean isPaused() {\n\t\treturn State.PAUSED.equals(state);\n\t}",
"public void pause() {\n cancelCallback();\n mStartTimeMillis *= -1;\n }",
"@Override\n\tpublic void onUserPaused(String arg0, boolean arg1, String arg2) {\n\t\t\n\t}",
"@Override\r\n public void onResume() {\r\n NexLog.d(LOG_TAG, \"onResume called\");\r\n activityPaused = false;\r\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\ttActivityDisplay.setText(\"On Pause Called\");\n\t\tfinish();\n\t}",
"@Override\r\n\tpublic boolean canPause() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t}",
"@Override\n protected void onPause() {\n super.onPause();\n active = false;\n }",
"@Override\n protected void onPause() {\n super.onPause();\n active = false;\n }",
"public boolean isPaused() {\r\n return DownloadWatchDog.this.stateMachine.isState(PAUSE_STATE);\r\n }",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}",
"@Override\r\n public void pause() {\n }",
"@Override\r\n public void pause() {\n }",
"@Override\r\n public void pause() {\n }",
"private void togglePaused() {\n \t\tif (!isPaused) {\n \t\t\ttimeFirstPaused = System.nanoTime();\n \t\t} else {\n \t\t\t// Offset the time spent paused.\n \t\t\ttimeGameStarted += (System.nanoTime() - timeFirstPaused);\n \t\t}\n \t\tisPaused = !isPaused;\n \t}",
"@Override\n public void pause() {\n }",
"@Override\n public void pause() {\n }",
"@Override\n public void pause() {\n }",
"@Override\n public void pause() {\n }",
"@Override\n public void pause() {\n }",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}",
"@Override\n\tpublic void pause() {\n\t}"
] | [
"0.7437839",
"0.7402742",
"0.7402742",
"0.73265535",
"0.7282793",
"0.7056214",
"0.70431274",
"0.702303",
"0.69850063",
"0.6971865",
"0.6969788",
"0.6962985",
"0.69189507",
"0.6908645",
"0.68908876",
"0.685476",
"0.68338925",
"0.6733662",
"0.67289317",
"0.672556",
"0.67131686",
"0.6699153",
"0.6698926",
"0.6689188",
"0.66730416",
"0.66676337",
"0.6645468",
"0.6624977",
"0.6623968",
"0.6614716",
"0.65817964",
"0.6544237",
"0.65369326",
"0.6533327",
"0.65286875",
"0.65275097",
"0.6520588",
"0.6519887",
"0.6516583",
"0.65000784",
"0.6495853",
"0.6489682",
"0.6489275",
"0.6481147",
"0.6472436",
"0.64678967",
"0.6458243",
"0.6451466",
"0.6447012",
"0.64359266",
"0.6435814",
"0.64294404",
"0.6412206",
"0.64043015",
"0.64005154",
"0.64005154",
"0.64005154",
"0.64005154",
"0.640038",
"0.6393501",
"0.6390652",
"0.63868064",
"0.6385686",
"0.6375882",
"0.6374574",
"0.6372357",
"0.63722014",
"0.6369491",
"0.6368172",
"0.63676614",
"0.6366813",
"0.6362126",
"0.6351421",
"0.6350865",
"0.6350865",
"0.634942",
"0.63476074",
"0.63476074",
"0.63476074",
"0.63476074",
"0.63476074",
"0.63476074",
"0.63476074",
"0.63476074",
"0.63476074",
"0.6345718",
"0.6345718",
"0.6345718",
"0.6343609",
"0.6337429",
"0.6337429",
"0.6337429",
"0.6337429",
"0.6337429",
"0.633658",
"0.633658",
"0.633658",
"0.633658",
"0.633658",
"0.633658"
] | 0.71539474 | 5 |
Called to indicate the conversation is ending. | void conversationEnding(Conversation conversation); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void end() {\n isFinished();\n }",
"public void endMessage()\n\t{\n\t}",
"public void end() {\n\t\tsigue = false;\n\t}",
"private void EndTalk() {\n this.mDeleteF = true;\n this.mReadingF = false;\n }",
"public void endGameMessage() {\n gameArena.addText(endGameMsg);\n }",
"@OnClose\n public void end() {\n listener.connectionTerminated();\n Logger.getGlobal().info(\"Connection with \" \n + nickname + \" terminated.\\n\"); //$NON-NLS-1$ //$NON-NLS-2$\n }",
"protected void end() {\n \n \n }",
"protected void end() {\r\n }",
"protected void end() {\r\n }",
"protected void end() {\r\n }",
"protected void end() {\r\n }",
"protected void end() {\n \t// theres nothing to end\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end() {\n }",
"protected void end()\n\t{\n\t\tstop();\n\t}",
"public void endTurn() {\n\t\tfireChanges();\n\t\t\n\t\tif(!isConfirmed())\n\t\t\tfirePropertyChange(Handler.END_TURN_PROPERTY, \"Do you want to confirm ending your turn?\");\n\t\telse{\n\t\t\tAbstractGameCommand endTurnCommand = new EndTurnCommand(getGame());\n\t\t\tendTurnCommand.execute();\n\t\t\t\n\t \tfirePropertyChange(Handler.CURRENT_PLAYER_PROPERTY, getGame().getCurrentPlayer().getName());\n\t\t\tresetConfirm();\n\t\t}\n\t\t\n\t\tfireChanges();\n\t}",
"protected abstract boolean end();",
"public void end() {\n\n }",
"public void end() {\n\t\tend = System.currentTimeMillis();\n\t\t\n\t\tLogger.d(\"[Stopwatch] \" + msg + \" finished in : \" + duration() + \" milliseconds.\");\n\t}",
"@Override\n public boolean isEnding() {\n return false;\n }",
"protected void end()\n\t{\n\t}",
"public void onTurnEnd() {\n\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"private void ending() {\n\t\tstartView.ending();\n\t\tSystem.exit(-1);\n\t}",
"public abstract void end();",
"public int onEnd() {\n\t\t\t\tflushMessageQueue();\n\t\t\t\treturn 0;\n\t\t\t}",
"protected void end() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" ending\");\r\n\t\t }",
"protected void end() {\n\r\n\t}",
"public void setEnded(){\n\t\tended=true;\n\t}",
"public void onVoiceEnd() {\n }",
"public void end();",
"protected void end() {\n \t\n \tlift.liftStop();\n }",
"@Override\n\tpublic void endContact(Contact contact) {\n\t\t\n\t}",
"@Override\n\tpublic void endContact(Contact contact) {\n\t\t\n\t}",
"@Override\n public void end() {\n }",
"protected void end() {\n \tRobot.telemetry.setAutonomousStatus(\"Finishing \" + commandName + \": \" + distance);\n Robot.driveDistancePID.disable();\n \tRobot.drivetrain.arcadeDrive(0.0, 0.0);\n }",
"protected void end() {\n \tlogger.info(\"Ending AutoMoveLiftUp Command, encoder inches = {}\", Robot.liftSubsystem.readEncoderInInches());\n \t\n }",
"@Override\n\tpublic void endContact(Contact contact) {\n\n\t}",
"protected void onEnd() {}",
"public void end() {\n \t\ttry {\n \t\t\tnameServerClient.leave();\n \t\t} catch (Exception e) {\n \t\t\t__.fwdAbort__(e);\n \t\t}\n \t}",
"public void end(){\r\n\t\tsetResult( true ); \r\n\t}",
"@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}",
"public void endContact(Contact contact) {\n }",
"public void finished() {\r\n\t\t// Mark ourselves as finished.\r\n\t\tif (finished) { return; }\r\n\t\tfinished = true;\r\n\t\tif (ic != null) {\r\n\t\t\tjvr.removeEventListener(ic);\r\n\t\t\ttry {\r\n\t\t\t\tdx.stopch(dxdev,dx.EV_ASYNC);\r\n\t\t\t}\r\n\t\t\tcatch (JVRException e) { logger.throwing(getClass().getName(),\"finished\",e); }\r\n\t\t}\r\n\t\t// Notify any \"waiters\" that we are done.\r\n\t\tsynchronized (this) { notifyAll(); }\r\n\t\t// Fire an event for asynchronous JVR event listeners.\r\n\t\tnew JVREvent(this,\"finished\").fire();\r\n\t\t// For debugging only.\r\n\t\t// logger.info(\"(FINISHED)\\n\" + this);\r\n\t}",
"@Override\n\tprotected void end() {\n\t\t//System.out.println(this.getClass().getSimpleName() + \" end\");\n\t}",
"@Override\n protected void end() {\n }",
"public void endCommand();",
"public void sendEndGame (){\n connect();\n try{\n doStream.writeUTF(\"GAME_STOP\");\n doStream.writeUTF(currentUser.getUserName());\n } catch (IOException e){\n e.printStackTrace();\n }\n disconnect();\n }",
"@Override\r\n\tprotected void end() {\r\n\t}",
"public void endOfWork() {\n\t\tClientCom clientCom = new ClientCom(RunParameters.ArrivalQuayHostName, RunParameters.ArrivalQuayPort);\n\t\twhile (!clientCom.open()) {\n\t\t\tSystem.out.println(\"Arrival Quay not active yet, sleeping for 1 seccond\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t}\n\t\t;\n\t\tPassenger passenger = (Passenger) Thread.currentThread();\n\t\tMessage pkt = new Message();\n\t\tpkt.setType(MessageType.SIM_ENDED);\n\t\tpkt.setId(passenger.getPassengerId());\n\n\t\tclientCom.writeObject(pkt);\n\t\tpkt = (Message) clientCom.readObject();\n\n\t\tpassenger.setCurrentState(pkt.getState());\n\t\tclientCom.close();\n\t}",
"public void onEnded(long endedTime);",
"@Override\n\tpublic void end() {\n\n\t}",
"@Override\n\tpublic void end() {\n\n\t}",
"public abstract void interactionEnds(long ms);",
"@Override\n\tpublic void onEndContact(Contact c) {\n\t\t\n\t}",
"@Override\n\tpublic void end() {\n\t\t\n\t}",
"public void endContact(Contact contact) {\n\n }",
"protected void end() {\n Robot.m_Cannon.stop();\n }",
"@Override\n public void onEndOfSpeech() {\n Log.i(\"SRL\", \"onEndOfSpeech\");\n }",
"@Override\r\n protected void end() {\r\n\r\n }",
"protected void end() {\n\t\tL.ogEnd(this);\n\t\t_xboxControllerToRumble.setRumble(_rumbleType, 0);\n\t}",
"public boolean isEnded(){\n\t\treturn ended;\n\t}",
"@Override\r\n\tpublic void endTurn() {\n\t\t\r\n\t}",
"public void queryEnded()\r\n {\r\n myActiveQueryCountProvider.setValue(Integer.valueOf(myActiveQueryCounter.decrementAndGet()));\r\n if (myActiveQueryCounter.get() == 0)\r\n {\r\n myDoneQueryCounter.set(0);\r\n myTotalSinceLastAllDoneCounter.set(0);\r\n }\r\n else\r\n {\r\n myDoneQueryCounter.incrementAndGet();\r\n }\r\n updateTaskActivityLabel();\r\n if (myActiveQueryCounter.intValue() == 0 && isActive())\r\n {\r\n setActive(false);\r\n }\r\n }",
"protected void end() {\r\n // stop motor, reset position on the dumper, enable closed loop\r\n }",
"@Override\n protected void end() {\n\n }"
] | [
"0.7377354",
"0.7279373",
"0.7201164",
"0.71660656",
"0.71360797",
"0.69595754",
"0.69185334",
"0.6910507",
"0.6910507",
"0.6910507",
"0.6910507",
"0.69069123",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68218815",
"0.6800845",
"0.67782664",
"0.67528766",
"0.67186546",
"0.6717897",
"0.67170674",
"0.6704242",
"0.6696705",
"0.6696705",
"0.6696705",
"0.6696705",
"0.6696705",
"0.6696705",
"0.6672765",
"0.6668445",
"0.6664245",
"0.6650282",
"0.66174924",
"0.6603341",
"0.65811926",
"0.6579958",
"0.65422857",
"0.654142",
"0.654142",
"0.6516579",
"0.65035534",
"0.6495794",
"0.6474517",
"0.64717734",
"0.6420666",
"0.64001745",
"0.639316",
"0.63813746",
"0.6367527",
"0.6354303",
"0.6351421",
"0.63433695",
"0.6335333",
"0.6328419",
"0.6323992",
"0.6317536",
"0.63019174",
"0.63019174",
"0.6297309",
"0.6296703",
"0.6291702",
"0.628615",
"0.62816286",
"0.62720084",
"0.6270012",
"0.62629724",
"0.62587774",
"0.6249784",
"0.6244348",
"0.6238534",
"0.6235841"
] | 0.80379754 | 0 |
build decorator based on the request | @Override
public String[] selectDecoratorPaths(Content content, WebAppContext context) throws IOException {
HttpServletRequest request = context.getRequest();
String decorator = null;
//首先从header头信息取值
decorator = request.getHeader("Sitemesh-Decorator");
if (StringUtils.isBlank(decorator)) {
//未取到再从参数取值
decorator = request.getParameter("sitemesh-decorator");
}
if (StringUtils.isNotBlank(decorator)) {
//按照参数值返回对应路径下面的jsp装饰模板页码
return new String[]{"/WEB-INF/views/layouts/" + decorator + ".jsp"};
}
// Otherwise, fallback to the standard configuration
return defaultDecoratorSelector.selectDecoratorPaths(content, context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JsonFactory setInputDecorator(InputDecorator d)\n/* */ {\n/* 611 */ this._inputDecorator = d;\n/* 612 */ return this;\n/* */ }",
"ServletRequestInjector getRequestInjector();",
"Decorator getDecorator(String id);",
"public abstract String getDecoratorInfo();",
"public interface RequestModifier {\n\n /**\n * Set HTTP request method, only support get, post,put , delete method.\n *\n * @param method\n *\n */\n public void setMethod(HTTPMethod method);\n\n /**\n * Set HTTP Protocol.\n *\n * @param protocol\n *\n */\n public void setProtocol(String protocol);\n\n /**\n * Set HTTP version , such as HTTP1.1.\n *\n * @param version\n *\n */\n public void setVersion(String version);\n\n /**\n * Set HTTP domain.\n *\n * @param domain\n *\n */\n public void setDomain(String domain);\n\n /**\n * Set path in the url.\n *\n * @param path\n *\n */\n public void setPath(String path);\n\n /**\n * Set web server port\n *\n * @param port\n *\n */\n public void setPort(int port);\n\n /**\n * Set HTTP url\n *\n * @param url\n *\n */\n public void setUrl(URL url);\n\n /**\n * Set HTTP url string\n *\n * @param url\n *\n */\n public void setUrl(String url);\n\n /**\n * Modify the exist argument in url.\n *\n * @param urlArg\n *\n * @return boolean, if success to modfiy this argument, return true.\n * if fail to modfiy this argument, return false.\n */\n public boolean modifyURIArgContent(URLArg urlArg);\n\n /**\n * Modify the exist header in HTTP request headers.\n *\n * @param header\n *\n * @return boolean, if success to modfiy this argument, return true.\n * if fail to modfiy this argument, return false.\n */\n public boolean modifyHeaderContent(Header header);\n\n /**\n * Add the request header, if this header is exist, modfiy this value.\n *\n * @param key\n *\n * @param header\n *\n */\n public void addHeader(String key, String header);\n\n /**\n * Add the request header, if this header is exist, modfiy this value.\n *\n * @param key\n *\n * @param header\n *\n */\n public void delHeader(String key);\n\n /**\n * Add the post arg in request header, if this argument is exist, modfiy this value.\n *\n * @param key\n *\n * @param value\n *\n */\n public void addPostArg(String key, String value);\n\n /**\n * Add the url arg in request url, if this argument is exist, modfiy this value.\n *\n * @param key\n *\n * @param value\n *\n */\n public void addUrlArg(String key, String value);\n}",
"private Handler wrap (BiFunction<Request, Response, Object> h) {\n return request -> h.apply (request, request.response);\n }",
"public Function<Request, Request> requestFilter();",
"RequestDelegator getDelegator();",
"public interface HookRequestFactory {\n\n\t/**\n\t *\n\t * @param url The target URL used by the HookRequest.\n\t * @return A HookRequest object\n\t */\n\tHookRequest createHookRequest(String url);\n\n}",
"public InputDecorator getInputDecorator()\n/* */ {\n/* 604 */ return this._inputDecorator;\n/* */ }",
"public interface RequestFunction {}",
"public abstract RequestMappingInfo build();",
"public ProductDecorator() {}",
"public final PythonParser.decorators_return decorators() throws RecognitionException {\n PythonParser.decorators_return retval = new PythonParser.decorators_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n List list_d=null;\n PythonParser.decorator_return d = null;\n d = null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:5: ( (d+= decorator )+ )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:7: (d+= decorator )+\n {\n root_0 = (PythonTree)adaptor.nil();\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: (d+= decorator )+\n int cnt13=0;\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==AT) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:440:8: d+= decorator\n \t {\n \t pushFollow(FOLLOW_decorator_in_decorators830);\n \t d=decorator();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, d.getTree());\n \t if (list_d==null) list_d=new ArrayList();\n \t list_d.add(d.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt13 >= 1 ) break loop13;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(13, input);\n throw eee;\n }\n cnt13++;\n } while (true);\n\n if ( state.backtracking==0 ) {\n\n retval.etypes = list_d;\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }",
"public JsonFactory setOutputDecorator(OutputDecorator d)\n/* */ {\n/* 682 */ this._outputDecorator = d;\n/* 683 */ return this;\n/* */ }",
"void decorate(IDecoratedSource decoratedSource);",
"@Override\n\tpublic abstract RequestAttributeInspectorFactory getWrapped();",
"public interface SessionDecorator\n{\n \n /**\n * Decorates the session and returns another decorated session.\n * \n * @param session\n */\n Session decorate(Session session);\n \n /**\n * Decorates the session and returns another decorated session\n * with the user ID used to acquire the session\n * \n * @param session\n * @param userID\n */\n Session decorate(Session session, String userID);\n \n}",
"Session decorate(Session session);",
"public interface HttpRequestFactory\n{\n\n\tpublic abstract HttpRequest buildHttpRequest(HttpMethod httpmethod, String s);\n\n\tpublic abstract HttpRequest buildHttpRequest(HttpMethod httpmethod, String s, Map map);\n\n\tpublic abstract PinningInfoProvider getPinningInfoProvider();\n\n\tpublic abstract void setPinningInfoProvider(PinningInfoProvider pinninginfoprovider);\n}",
"public SubRequestFacade(Request request) {\n super(request);\n }",
"public interface IRequestFactory {\n /**\n * Conditions request by location name\n *\n * @param location\n * @param listener\n * @return request object\n */\n IConditionsRequest getConditionsRequest(String location, IRequestListener listener);\n\n /**\n * Conditions request by lat/lon\n *\n * @param lat\n * @param lon\n * @param listener\n * @return request object\n */\n IConditionsRequest getConditionsRequest(double lat, double lon, IRequestListener listener);\n\n /**\n * Location request\n *\n * @param location\n * @param listener\n * @return\n */\n ILocationRequest getLocationRequest(String location, IRequestListener listener);\n}",
"private DocumentInterceptor(Context ctx) {\n }",
"public RequestUrlHandler() {\n // requestService = SpringContextHolder.getBean(ScfRequestService.class);\n }",
"public void build() {\n\t\t\tRequest request = new Request();\n request.context = context;\n\t\t\trequest.requestType = requestType;\n\t\t\trequest.url = url;\n\t\t\trequest.envelope = envelope;\n\t\t\trequest.headers = headers;\n\n\t\t\trequest.responseListener = responseListener;\n\t\t\trequest.onValidateResponseListener = validateResponseListener;\n\n\t\t\trequest.isDebug = isDebug;\n\n\t\t\trequest.start();\n\t\t}",
"@Override\n\t protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {\n\t\t builder.addDecoratorPath(\"/*\", \"/WEB-INF/jsp/decorator/decorator.jsp\")\n//\t\t .addDecoratorPaths(\"/articles/*\", \"/decorators/article.html\",\n//\t\t \"/decoratos/two-page-layout.html\",\n//\t\t \"/decorators/common.html\")\n\t\t // Exclude path from decoration.\n\t\t .addExcludedPath(\"/member/list.do\")\n\t\t .addExcludedPath(\"/base/codeWindow.html*\")\n\t\t .addExcludedPath(\"/base/postWindow.html*\");\n\t\t \n\t\t builder.addTagRuleBundles(new DivExtractingTagRuleBundle());\n\n\t }",
"Map<String, Decorator> getDecorators();",
"public RedisSessionRequestWrapper(HttpServletRequest request) {\n super(request);\n this.request = request;\n this.token = request.getHeader(TOKEN_HEADER_NAME);\n }",
"protected final InputStream _decorate(InputStream in, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1416 */ if (this._inputDecorator != null) {\n/* 1417 */ InputStream in2 = this._inputDecorator.decorate(ctxt, in);\n/* 1418 */ if (in2 != null) {\n/* 1419 */ return in2;\n/* */ }\n/* */ }\n/* 1422 */ return in;\n/* */ }",
"public DDLambda(APIGatewayProxyRequestEvent req, Context cxt) {\n this();\n this.enhanced = checkEnhanced();\n recordEnhanced(INVOCATION, cxt);\n this.tracing = new Tracing(req);\n this.tracing.submitSegment();\n addTraceContextToMDC();\n startSpan(req.getHeaders(), cxt);\n }",
"public WebHandler decorate(boolean decorateWithParams, WebHandler handler) {\n return webHandlerDecorator.decorate(handler, decorateWithParams);\n }",
"public HandlerExecutionChain getHandler(HttpServletRequest request) {\n\t\tString url = request.getServletPath();\n\t\tSystem.out.println(url+\" 123\");\n\t\tController ctl = (Controller) ApplicationContext.getBean(url);\n\t\tHandlerExecutionChain chain = new HandlerExecutionChain();\n\t\tchain.setHandler(ctl);\n\t\treturn chain;\n\t}",
"public interface Interceptor {\n\n /**\n *\n * @param url\n * @return if intercept the request\n */\n boolean intercept(Context context, String url);\n\n}",
"Call mo35727a(Request request);",
"DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }",
"private CustomRequest getCustomRequestFor(HttpRequest aRequest,\n Handler aHandler) {\n int lRequestMapped = mapToVolleyMethodCode(aRequest.getMethod());\n RequestComposite lMap = new RequestComposite();\n lMap.setHttpReq(aRequest);\n Handler lHandler = aHandler == null ? mainHandler : aHandler;\n Listener<String> lListener = getListenerForRequest(lMap, lHandler);\n Response.ErrorListener lErrorListener = getErrorListenerForRequest(lMap,\n lHandler);\n CustomRequest lReq = new CustomRequest(lRequestMapped,\n aRequest.getUrl(), lListener, lErrorListener, aRequest);\n // update the reference in the map.\n lMap.setVolleyReq(lReq);\n return lReq;\n }",
"static RestClientBuilder.HttpClientConfigCallback getAWSRequestSigningInterceptor(String endpoint) {\n\t\treturn (HttpAsyncClientBuilder httpClientBuilder) -> {\n\t\t\thttpClientBuilder.addInterceptorLast((HttpRequest request, HttpContext context) -> {\n\t\t\t\tAws4Signer signer = Aws4Signer.create();\n\t\t\t\tAwsCredentials creds = DefaultCredentialsProvider.create().resolveCredentials();\n\t\t\t\tAws4SignerParams.Builder<?> signerParams = Aws4SignerParams.builder().\n\t\t\t\t\t\tawsCredentials(creds).\n\t\t\t\t\t\tdoubleUrlEncode(true).\n\t\t\t\t\t\tsigningName(\"es\").\n\t\t\t\t\t\tsigningRegion(Region.of(Para.getConfig().elasticsearchAwsRegion()));\n\t\t\t\tURIBuilder uriBuilder;\n\t\t\t\tString httpMethod = request.getRequestLine().getMethod();\n\t\t\t\tString resourcePath;\n\t\t\t\tMap<String, String> params = new HashMap<>();\n\n\t\t\t\ttry {\n\t\t\t\t\tSdkHttpFullRequest.Builder r = SdkHttpFullRequest.builder();\n\t\t\t\t\tif (!StringUtils.isBlank(httpMethod)) {\n\t\t\t\t\t\tr.method(SdkHttpMethod.valueOf(httpMethod));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!StringUtils.isBlank(endpoint)) {\n\t\t\t\t\t\tif (endpoint.startsWith(\"https://\")) {\n\t\t\t\t\t\t\tr.protocol(\"HTTPS\");\n\t\t\t\t\t\t\tr.host(StringUtils.removeStart(endpoint, \"https://\"));\n\t\t\t\t\t\t} else if (endpoint.startsWith(\"http://\")) {\n\t\t\t\t\t\t\tr.protocol(\"HTTP\");\n\t\t\t\t\t\t\tr.host(StringUtils.removeStart(endpoint, \"http://\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\turiBuilder = new URIBuilder(request.getRequestLine().getUri());\n\t\t\t\t\tresourcePath = uriBuilder.getPath();\n\t\t\t\t\tif (!StringUtils.isBlank(resourcePath)) {\n\t\t\t\t\t\tr.encodedPath(resourcePath);\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (NameValuePair param : uriBuilder.getQueryParams()) {\n\t\t\t\t\t\tr.appendRawQueryParameter(param.getName(), param.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tif (request instanceof HttpEntityEnclosingRequest) {\n\t\t\t\t\t\tHttpEntity body = ((HttpEntityEnclosingRequest) request).getEntity();\n\t\t\t\t\t\tif (body != null) {\n\t\t\t\t\t\t\tInputStream is = body.getContent();\n\t\t\t\t\t\t\tr.contentStreamProvider(() -> is);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (r.contentStreamProvider() == null) {\n\t\t\t\t\t\trequest.removeHeaders(\"Content-Length\");\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (Header header : request.getAllHeaders()) {\n\t\t\t\t\t\tr.putHeader(header.getName(), header.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tSdkHttpFullRequest signedReq = signer.sign(r.build(), signerParams.build());\n\n\t\t\t\t\tfor (String header : signedReq.headers().keySet()) {\n\t\t\t\t\t\trequest.setHeader(header, signedReq.firstMatchingHeader(header).orElse(\"\"));\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlogger.error(\"Failed to sign request to AWS Elasticsearch:\", ex);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn httpClientBuilder;\n\t\t};\n\t}",
"@FunctionalInterface\n\tinterface RequestHandler {\n\t public Request handle(Request req);\n\n\t // !!! write a method handle that accept request and returns new request here\n\t // it allows to use lambda expressions for creating handlers below\n\n\t // !!! write a default method for combining this and other handler single one\n\t // the order of execution may be any but you need to consider it when composing handlers\n\t // the method may has any name\n\t \n\t default RequestHandler combine(RequestHandler h) {\n\t \t\n\t \treturn req -> h.handle(this.handle(req));\n\t }\n\t \n\t \n\t}",
"public DDLambda(Headerable req, Context cxt) {\n this();\n this.enhanced = checkEnhanced();\n recordEnhanced(INVOCATION, cxt);\n this.tracing = new Tracing(req);\n this.tracing.submitSegment();\n addTraceContextToMDC();\n startSpan(req.getHeaders(), cxt);\n }",
"public interface IDynamicRequestGET {\n public MultivaluedMap<String, String> getPathParams();\n public ContainerRequestContext getRequestContext();\n}",
"public OutputDecorator getOutputDecorator()\n/* */ {\n/* 675 */ return this._outputDecorator;\n/* */ }",
"public static TracingHelper create(Function<ContainerRequestContext, String> nameFunction) {\n return new TracingHelper(nameFunction);\n }",
"public DDLambda(APIGatewayV2ProxyRequestEvent req, Context cxt) {\n this();\n this.enhanced = checkEnhanced();\n recordEnhanced(INVOCATION, cxt);\n this.tracing = new Tracing(req);\n this.tracing.submitSegment();\n addTraceContextToMDC();\n startSpan(req.getHeaders(), cxt);\n }",
"public HTTPHookDecoratorTest(String name) {\n\t\tsuper(name);\n\t}",
"public interface CeylonDelegate {\n void init(ServletConfig config) throws ServletException;\n\n boolean service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void destroy();\n}",
"public CustomSession(Request request) {\r\n\t\tsuper(request);\r\n\t\t// This will make @SpringBean work here at this early phase.\r\n\t\tInjectorHolder.getInjector().inject(this);\r\n\t}",
"Session decorate(Session session, String userID);",
"public abstract Builder methods(RequestMethod... paramVarArgs);",
"private Handler getHandler(Request request) {\n return resolver.get(request.getClass().getCanonicalName()).create();\n }",
"public static HashMap<String, String> generateRequest (String request){\n LOGGER.info(\"Request generator got line => \" + request);\n /**\n * we split on spaces as that is the http convention\n */\n String[] brokenDownRequest = request.split(\" \");\n\n /**\n * creating anf then filling up the request hashmap\n */\n HashMap<String, String> parsedRequest = new HashMap<>();\n parsedRequest.put(\"Type\", brokenDownRequest[0]);\n parsedRequest.put(\"Path\", brokenDownRequest[1]);\n parsedRequest.put(\"HttpVersion\", brokenDownRequest[2]);\n\n /**\n * returning the request hashmap\n */\n return parsedRequest;\n }",
"HaloMiddlewareRequest(@NonNull HaloRequest request, @NonNull Builder builder) {\n mRequest = request;\n mBuilder = builder;\n }",
"public interface Interceptor {\n\n Response intercept(ChainNode nextChainNode, Request request);\n}",
"public interface Factory {\n /* renamed from: a */\n Call mo35727a(Request request);\n }",
"@Override\r\n\tpublic void configInterceptor(Interceptors me) {\n\r\n\t}",
"private void registerRequestProxyHandler(BeanDefinitionRegistry registry) {\n GenericBeanDefinition jdbcDaoProxyDefinition = new GenericBeanDefinition();\n jdbcDaoProxyDefinition.setBeanClass(DaoProxy.class);\n registry.registerBeanDefinition(\"daoProxy\", jdbcDaoProxyDefinition);\n }",
"private ReflectionRequest(Builder builder) {\n super(builder);\n }",
"public Object register(HttpServletRequest req);",
"protected BiomeDecorator createBiomeDecorator()\n {\n return new BiomeDecorator();\n }",
"public RequestWrapper(HttpServletRequest request, String userAgentPostfix) {\r\n\t\tsuper(request);\r\n\t\tString userAgentValue = request.getHeader(\"user-agent\");\r\n\t\tmUserAgentHeaderPresent = userAgentValue != null;\r\n\t\tif (mUserAgentHeaderPresent) {\r\n\t\t\tuserAgentValue = userAgentValue + userAgentPostfix;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tuserAgentValue = userAgentPostfix;\r\n\t\t}\r\n\t\tmUserAgentValues.add(userAgentValue);\r\n\t}",
"@FunctionalInterface\npublic interface ParamsHandlerFunc extends BaseHandlerFunc{\n\n default String handleRequest(Request request, Response response) {\n String check = checkSign(request);\n if (StringUtils.isNotBlank(check)) {\n return check;\n }\n Map<String, String> id = request.params();\n Answer processed = process(id);\n response.status(processed.getCode());\n return dataToJson(processed);\n }\n\n Answer process(Map<String, String> data);\n}",
"private void validateDecorator(IDecorator decorator) {\r\n \t\tif (decorator.getName() != null) {\r\n \t\t\tITextSourceReference declaration = decorator.getAnnotation(CDIConstants.NAMED_QUALIFIER_TYPE_NAME);\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getAnnotation(CDIConstants.DECORATOR_STEREOTYPE_TYPE_NAME);\r\n \t\t\t}\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = CDIUtil.getNamedStereotypeDeclaration(decorator);\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_HAS_NAME, CDIPreferences.DECORATOR_HAS_NAME, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 2.6.1. Declaring an alternative\r\n \t\t * - decorator is an alternative (Non-Portable behavior)\r\n \t\t */\r\n \t\tif (decorator.isAlternative()) {\r\n \t\t\tITextSourceReference declaration = decorator.getAlternativeDeclaration();\r\n \t\t\tif (declaration == null) {\r\n \t\t\t\tdeclaration = decorator.getDecoratorAnnotation();\r\n \t\t\t}\r\n \t\t\tif(declaration == null) {\r\n \t\t\t\t//for custom implementations\r\n \t\t\t\tdeclaration = decorator.getNameLocation();\r\n \t\t\t}\r\n \t\t\taddError(CDIValidationMessages.DECORATOR_IS_ALTERNATIVE, CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 3.3.2. Declaring a producer method\r\n \t\t * - decorator has a method annotated @Produces\r\n \t\t * \r\n \t\t * 3.4.2. Declaring a producer field\r\n \t\t * - decorator has a field annotated @Produces\r\n \t\t */\r\n \t\tSet<IProducer> producers = decorator.getProducers();\r\n \t\tfor (IProducer producer : producers) {\r\n \t\t\taddError(CDIValidationMessages.PRODUCER_IN_DECORATOR, CDIPreferences.PRODUCER_IN_INTERCEPTOR_OR_DECORATOR, producer.getProducesAnnotation(), decorator.getResource());\r\n \t\t}\r\n \r\n \t\tSet<IInjectionPoint> injections = decorator.getInjectionPoints();\r\n \t\tSet<ITextSourceReference> delegates = new HashSet<ITextSourceReference>();\r\n \t\tIInjectionPoint delegate = null;\r\n \t\tfor (IInjectionPoint injection : injections) {\r\n \t\t\tITextSourceReference delegateAnnotation = injection.getDelegateAnnotation();\r\n \t\t\tif(delegateAnnotation!=null) {\r\n \t\t\t\tif(injection instanceof IInjectionPointField) {\r\n \t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t}\r\n \t\t\t\tif(injection instanceof IInjectionPointParameter) {\r\n \t\t\t\t\tif(((IInjectionPointParameter) injection).getBeanMethod().getAnnotation(CDIConstants.PRODUCES_ANNOTATION_TYPE_NAME)==null) {\r\n \t\t\t\t\t\tdelegate = injection;\r\n \t\t\t\t\t\tdelegates.add(delegateAnnotation);\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t/*\r\n \t\t\t\t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t\t\t\t * - injection point that is not an injected field, initializer method parameter or bean constructor method parameter is annotated @Delegate\r\n \t\t\t\t\t\t */\r\n \t\t\t\t\t\taddError(CDIValidationMessages.ILLEGAL_INJECTION_POINT_DELEGATE, CDIPreferences.ILLEGAL_INJECTION_POINT_DELEGATE, delegateAnnotation, decorator.getResource());\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\tif(delegates.size()>1) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator has more than one delegate injection point\r\n \t\t\t */\r\n \t\t\tfor (ITextSourceReference declaration : delegates) {\r\n \t\t\t\taddError(CDIValidationMessages.MULTIPLE_DELEGATE, CDIPreferences.MULTIPLE_DELEGATE, declaration, decorator.getResource());\r\n \t\t\t}\r\n \t\t} else if(delegates.isEmpty()) {\r\n \t\t\t/*\r\n \t\t\t * 8.1.2. Decorator delegate injection points\r\n \t\t\t * - decorator does not have a delegate injection point\r\n \t\t\t */\r\n \t\t\tIAnnotationDeclaration declaration = decorator.getDecoratorAnnotation();\r\n \t\t\taddError(CDIValidationMessages.MISSING_DELEGATE, CDIPreferences.MISSING_DELEGATE, declaration, decorator.getResource());\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * 8.1.3. Decorator delegate injection points\r\n \t\t * - delegate type does not implement or extend a decorated type of the decorator, or specifies different type parameters\r\n \t\t */\r\n \t\tif(delegate!=null) {\r\n \t\t\tIParametedType delegateParametedType = delegate.getType();\r\n \t\t\tif(delegateParametedType!=null) {\r\n \t\t\t\tIType delegateType = delegateParametedType.getType();\r\n \t\t\t\tif(delegateType != null) {\r\n \t\t\t\t\tif(!checkTheOnlySuper(decorator, delegateParametedType)) {\r\n \t\t\t\t\t\tSet<IParametedType> decoratedParametedTypes = decorator.getDecoratedTypes();\r\n \t\t\t\t\t\tList<String> supers = null;\r\n \t\t\t\t\t\tif(!delegateType.isReadOnly()) {\r\n \t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), delegateType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tfor (IParametedType decoratedParametedType : decoratedParametedTypes) {\r\n \t\t\t\t\t\t\tIType decoratedType = decoratedParametedType.getType();\r\n \t\t\t\t\t\t\tif(decoratedType==null) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(!decoratedType.isReadOnly()) {\r\n \t\t\t\t\t\t\t\tgetValidationContext().addLinkedCoreResource(decorator.getResource().getFullPath().toOSString(), decoratedType.getResource().getFullPath(), false);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tString decoratedTypeName = decoratedType.getFullyQualifiedName();\r\n \t\t\t\t\t\t\t// Ignore the type of the decorator class bean\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(decorator.getBeanClass().getFullyQualifiedName())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(decoratedTypeName.equals(\"java.lang.Object\")) { //$NON-NLS-1$\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers==null) {\r\n \t\t\t\t\t\t\t\tsupers = getSuppers(delegateParametedType);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tif(supers.contains(decoratedParametedType.getSignature())) {\r\n \t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tITextSourceReference declaration = delegate.getDelegateAnnotation();\r\n \t\t\t\t\t\t\t\tif(delegateParametedType instanceof ITypeDeclaration) {\r\n \t\t\t\t\t\t\t\t\tdeclaration = (ITypeDeclaration)delegateParametedType;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tString typeName = Signature.getSignatureSimpleName(decoratedParametedType.getSignature());\r\n \t\t\t\t\t\t\t\taddError(MessageFormat.format(CDIValidationMessages.DELEGATE_HAS_ILLEGAL_TYPE, typeName), CDIPreferences.DELEGATE_HAS_ILLEGAL_TYPE, declaration, decorator.getResource());\r\n \t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"@Override\n public void intercept(RequestFacade request) {\n // Add the access_token that we previously obtained to this request as\n // the \"Authorization\" header.\n request.addHeader(\"Authorization\", \"Bearer \" + accessToken);\n }",
"void onInterceptRequest(String url, String requestBody, String responseBody);",
"@Override\n\t\tpublic void intercept(RequestInterceptor.RequestFacade request) {\n\t\t\trequest.addQueryParam(\"key\", mKey);\n\n\t\t\t// We need to use token for auth, since user might change password, then token is invalidated and user needs to log in again\n\t\t\t// For creating user, the endpoint can ignore Authorization\n\t\t\t//Assert.assertFalse(TextUtils.isEmpty(mToken));\n\t\t\trequest.addHeader(\"Username\", mAccountUtils.getUsername());\n\t\t\trequest.addHeader(\"Authorization\", mAccountUtils.getToken());\n\t\t\trequest.addHeader(\"User-Agent\", \"gzip\");\n\t\t\trequest.addHeader(\"Accept-Encoding\", \"gzip\");\n\t\t}",
"protected static ICompilerRequestor getRequestor() {\n return new ICompilerRequestor() {\n\n public void acceptResult(CompilationResult compilationResult) {\n // do nothing\n }\n };\n }",
"public static abstract interface Builder\n/* */ {\n/* */ public abstract Builder paths(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder methods(RequestMethod... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder params(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder headers(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder consumes(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder produces(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder mappingName(String paramString);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder customCondition(RequestCondition<?> paramRequestCondition);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder options(RequestMappingInfo.BuilderConfiguration paramBuilderConfiguration);\n/* */ \n/* */ \n/* */ \n/* */ public abstract RequestMappingInfo build();\n/* */ }",
"@Before\n public void setup() {\n ApiAuthProviders authProviders = ApiAuthProviders.builder()\n .cognitoUserPoolsAuthProvider(new FakeCognitoAuthProvider())\n .oidcAuthProvider(new FakeOidcAuthProvider())\n .build();\n decorator = new AuthRuleRequestDecorator(authProviders);\n }",
"public GrizzletRequest getRequest();",
"public static String buildSyntheticRequestUrl(HttpServletRequest request)\n {\n StringBuilder url = new StringBuilder(request.getRequestURL());\n\n String queryString;\n if (METHOD_GET.equalsIgnoreCase(request.getMethod()))\n {\n queryString = request.getQueryString();\n }\n else\n {\n queryString = queryStringFromParameters(request);\n }\n\n if (!StringUtils.isBlank(queryString))\n {\n url.append('?').append(queryString);\n }\n\n return url.toString();\n }",
"public interface IRequestCommHandler<T extends RequestComm<?>> {\r\n\r\n\tResponseComm serviceRequest(T requestcomm, HttpServletRequest httpservletrequest);\r\n}",
"public interface AdditionalOrderInforCaller {\n\t/*\n\t * Command define from Order Confirmation API Guide\n\t * JSON and XML format\n\t */\n\t@Headers({\"Accept: application/json\",\"Content-Type: application/json\"})\n\t@RequestLine(\"POST /ordermgmt/order/addorderinfo?sellerid={sellerid}\")\n\tGetAdditionalOrderInformationResponse sendAdditionalOrderInforRequestJSON(@Param(\"sellerid\") String sellerID, GetAdditionalOrderInformationRequest body);\n\t\n\t@Headers({\"Accept: application/xml\",\"Content-Type: application/xml\"})\n\t@RequestLine(\"POST /ordermgmt/order/addorderinfo?sellerid={sellerid}\")\n\tGetAdditionalOrderInformationResponse sendAdditionalOrderInforRequestXML(@Param(\"sellerid\") String sellerID, GetAdditionalOrderInformationRequest body);\n\n\t// Implement default method of interface class that according to Variables.MediaType to run at JSON or XML request.\n\tdefault GetAdditionalOrderInformationResponse sendAdditionalOrderInforRequest(GetAdditionalOrderInformationRequest body) {\n\t\tswitch(Variables.MediaType) {\n\t\tcase JSON:\t\t\t\n\t\t\treturn sendAdditionalOrderInforRequestJSON(Content.SellerID, body);\n\t\t\t\n\t\tcase XML:\t\t\t\n\t\t\treturn sendAdditionalOrderInforRequestXML(Content.SellerID, body);\t\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new RuntimeException(\"Never Happened!\");\n\t\t}\n\t\t\t\t\n\t}\n\t\n\tstatic AdditionalOrderInforCaller buildJSON() {\n\t\tVariables.MediaType = MEDIA_TYPE.JSON;\n\t\t\n\t\treturn new CallerFactory<AdditionalOrderInforCaller>()\n\t\t\t.jsonBuild(AdditionalOrderInforCaller.class, Variables.LogLevel, Variables.Retryer, OrderClient.genClient());\t\t\n\t}\n\n\tstatic AdditionalOrderInforCaller buildXML() {\n\t\tVariables.MediaType = MEDIA_TYPE.XML;\n\t\t\n\t\treturn new CallerFactory<AdditionalOrderInforCaller>()\n\t\t\t.xmlBuild(AdditionalOrderInforCaller.class, Variables.LogLevel, Variables.Retryer, OrderClient.genClient());\t\t\n\t}\n\t\n}",
"@Decorator\n@RegisterRestClient\n@RegisterProvider(BookService.TracingActivator.class)\n@Path(\"/books\")\n@Consumes(APPLICATION_JSON)\n@Produces(APPLICATION_JSON)\npublic interface BookService {\n @GET\n Response findAll();\n\n @GET\n @Path(\"/{id}\")\n Response findById(@PathParam(\"id\") final Long id);\n\n @POST\n Response create(final JsonObject book);\n\n @DELETE\n @Path(\"/{id}\")\n Response delete(@PathParam(\"id\") final Long id);\n\n\n // workaround cause ClientTracingRegistrar requires to use ClientAPI and not @RegisterProvider\n @Dependent\n class TracingActivator implements ClientRequestFilter, ClientResponseFilter {\n private final ClientRequestFilter request;\n private final ClientResponseFilter response;\n\n public TracingActivator() {\n request = create(\"org.apache.geronimo.microprofile.opentracing.microprofile.client.CdiOpenTracingClientRequestFilter\", ClientRequestFilter.class);\n response = create(\"org.apache.geronimo.microprofile.opentracing.microprofile.client.CdiOpenTracingClientResponseFilter\", ClientResponseFilter.class);\n }\n\n @Override\n public void filter(final ClientRequestContext requestContext) throws IOException {\n if (request != null) {\n request.filter(requestContext);\n }\n }\n\n @Override\n public void filter(final ClientRequestContext requestContext, final ClientResponseContext responseContext) throws IOException {\n if (response != null) {\n response.filter(requestContext, responseContext);\n }\n }\n\n private static <T> T create(final String fnq, final Class<T> type) {\n try {\n return type.cast(CDI.current().select(Thread.currentThread().getContextClassLoader().loadClass(fnq)).get());\n } catch (final ClassNotFoundException e) {\n return null;\n }\n }\n }\n}",
"public SecurityHttpServletRequestWrapper(HttpServletRequest request, int maxLength) {\n\t\tthis(request, maxLength, true);\n\t}",
"public interface IDecorator {\n\n\t/**\n\t * Decorate whole children hierarchy of a source fragment.\n\t *\n\t * @param fragmentStcjdeousope\n\t * the fragment\n\t * @param decoratedSource\n\t * the decorated\n\t */\n\tvoid decorate(IDecoratedSource decoratedSource);\n\n\t/**\n\t * Checks if is decorable.\n\t *\n\t * @param source\n\t * the source\n\t * @return true, if is decorable\n\t */\n\tboolean isDecorable(ISource source);\n\n}",
"public interface NettyHttpRequestBuilder {\n /**\n * Converts this object to a full http request.\n *\n * @return a full http request\n */\n @NonNull\n FullHttpRequest toFullHttpRequest();\n\n /**\n * Converts this object to a streamed http request.\n * @return The streamed request\n */\n @NonNull\n StreamedHttpRequest toStreamHttpRequest();\n\n /**\n * Converts this object to the most appropriate http request type.\n * @return The http request\n */\n @NonNull\n HttpRequest toHttpRequest();\n\n /**\n * @return Is the request a stream.\n */\n boolean isStream();\n\n /**\n * Convert the given request to a full http request.\n * @param request The request\n * @return The full request.\n */\n static @NonNull HttpRequest toHttpRequest(@NonNull io.micronaut.http.HttpRequest<?> request) {\n Objects.requireNonNull(request, \"The request cannot be null\");\n while (request instanceof HttpRequestWrapper) {\n request = ((HttpRequestWrapper<?>) request).getDelegate();\n }\n if (request instanceof NettyHttpRequestBuilder) {\n return ((NettyHttpRequestBuilder) request).toHttpRequest();\n }\n // manual conversion\n HttpRequest nettyRequest;\n ByteBuf byteBuf = request.getBody(ByteBuf.class).orElse(null);\n if (byteBuf != null) {\n nettyRequest = new DefaultFullHttpRequest(\n HttpVersion.HTTP_1_1,\n HttpMethod.valueOf(request.getMethodName()),\n request.getUri().toString(),\n byteBuf\n );\n } else {\n nettyRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,\n HttpMethod.valueOf(request.getMethodName()),\n request.getUri().toString()\n );\n }\n\n request.getHeaders()\n .forEach((s, strings) -> nettyRequest.headers().add(s, strings));\n return nettyRequest;\n }\n\n}",
"public void addRequest(Request req) {\n\n }",
"public IAjaxCallDecorator getSaveDecorator() {\n return new AjaxCallDecorator() {\n @Override\n public CharSequence decorateScript(CharSequence script) {\n // textarea.value = codemirrorinstance.getCode()\n String id = getTextAreaMarkupId();\n return \"document.getElementById('\" + id + \"').value = document.gsEditors.\" + id + \".getValue();\" + script;\n }\n };\n }",
"Builder addResponseTransformer(GlobalRequestTransformer transformer);",
"public interface OnInterceptListener {\n\n /**\n * This method is fired when new request comes\n *\n * @param url url of the request\n * @param requestBody request body\n * @param responseBody response body\n */\n void onInterceptRequest(String url, String requestBody, String responseBody);\n\n /**\n * This method is fired if interception failed due to some reasons\n */\n void onInterceptFailed();\n\n}",
"public ContentDecorator() {\r\n super();\r\n }",
"public interface GenericResponseInterceptor<Input, Output> {\n\n /**\n * Intercept the output from the request handler after it is executed.\n *\n * @param input handler input\n * @param response handler output\n */\n default void process(Input input, Output response) { }\n\n /**\n * Intercept the output from the request handler after it is executed and return an updated response.\n *\n * @param input handler input\n * @param response handler output\n * @return updated response\n */\n default Output processResponse(Input input, Output response) {\n process(input, response);\n return response;\n }\n\n}",
"private InterceptorBean createHashingPasswordInterceptor()\n {\n InterceptorBean hashingPasswordInterceptor = new InterceptorBean();\n\n // Interceptor ID\n hashingPasswordInterceptor.setInterceptorId( HASHING_PASSWORD_INTERCEPTOR_ID );\n\n // Interceptor FQCN\n hashingPasswordInterceptor.setInterceptorClassName( getFqcnForHashingMethod( getSelectedHashingMethod() ) );\n\n // Getting the order of the key derivation interceptor\n int keyDerivationInterceptorOrder = getKeyDerivationInterceptorOrder();\n\n // Assigning the order of the hashing password interceptor\n // It's order is: keyDerivationInterceptorOrder + 1\n hashingPasswordInterceptor.setInterceptorOrder( keyDerivationInterceptorOrder + 1 );\n\n // Updating the order of the interceptors after the key derivation interceptor\n for ( InterceptorBean interceptor : getDirectoryServiceBean().getInterceptors() )\n {\n if ( interceptor.getInterceptorOrder() > keyDerivationInterceptorOrder )\n {\n interceptor.setInterceptorOrder( interceptor.getInterceptorOrder() + 1 );\n }\n }\n\n // Adding the hashing password interceptor \n getDirectoryServiceBean().addInterceptors( hashingPasswordInterceptor );\n\n return hashingPasswordInterceptor;\n }",
"Form endDecorator();",
"public void handleRequest(Request req) {\n\n }",
"public Response internalInvocation(HttpRequest request, HttpResponse response, Object entity)\n {\n ResteasyProviderFactory.addContextDataLevel();\n boolean pushedBody = false;\n try\n {\n MessageBodyParameterInjector.pushBody(entity);\n pushedBody = true;\n ResourceInvoker invoker = getInvoker(request);\n if (invoker != null)\n {\n pushContextObjects(request, response);\n return getResponse(request, response, invoker);\n }\n \n // this should never happen, since getInvoker should throw an exception\n // if invoker is null\n return null;\n }\n finally\n {\n ResteasyProviderFactory.removeContextDataLevel();\n if (pushedBody)\n {\n MessageBodyParameterInjector.popBody();\n }\n }\n }",
"static @NonNull HttpRequest toHttpRequest(@NonNull io.micronaut.http.HttpRequest<?> request) {\n Objects.requireNonNull(request, \"The request cannot be null\");\n while (request instanceof HttpRequestWrapper) {\n request = ((HttpRequestWrapper<?>) request).getDelegate();\n }\n if (request instanceof NettyHttpRequestBuilder) {\n return ((NettyHttpRequestBuilder) request).toHttpRequest();\n }\n // manual conversion\n HttpRequest nettyRequest;\n ByteBuf byteBuf = request.getBody(ByteBuf.class).orElse(null);\n if (byteBuf != null) {\n nettyRequest = new DefaultFullHttpRequest(\n HttpVersion.HTTP_1_1,\n HttpMethod.valueOf(request.getMethodName()),\n request.getUri().toString(),\n byteBuf\n );\n } else {\n nettyRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,\n HttpMethod.valueOf(request.getMethodName()),\n request.getUri().toString()\n );\n }\n\n request.getHeaders()\n .forEach((s, strings) -> nettyRequest.headers().add(s, strings));\n return nettyRequest;\n }",
"public RequestAttribute() {\n }",
"public LoggerRequestWapper(HttpServletRequest request) {\n //异常,此时request在下面已经被读取了,所以创给父类在读取会报错\n super(request);\n ServletInputStream in = null;\n StringBuilder builder = new StringBuilder();\n try {\n in = request.getInputStream();\n byte[] buf = new byte[1024];\n int index = in.read(buf);\n while (index != -1) {\n builder.append(new String(buf, 0, index));\n index = in.read(buf);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n// java.io.IOException: Stream closed 这一块不要关闭输入流,关闭流就意味着不可读了,随便你保留了body,但是框架依旧认为是不可读\n// try {\n//// in.close();\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n }\n\n body = builder.toString();\n\n System.out.println(\"body = \" + body);\n\n }",
"public RequestDataBuilder trace() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.TRACE);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"public Request<E, T> buildHttpGet ()\n\t{\n\t\treturn new HttpGetRequest<E,T>(this);\n\t}",
"@Deprecated\n public Request.Builder makeRequestBuilder() {\n Request.Builder hrb = new Request.Builder();\n\n Map<String, String> traceHeaders = tracing.makeOutboundHttpTraceHeaders();\n traceHeaders.forEach(hrb::addHeader);\n return hrb;\n }",
"Form addDefaultDecoratorForElementClass(Class<? extends Element> clazz, Decorator decorator);",
"public final process.proxies.RequestCreation getRequestCreation()\r\n\t{\r\n\t\treturn getRequestCreation(getContext());\r\n\t}",
"public static OfbizUrlBuilder from(HttpServletRequest request) throws GenericEntityException, WebAppConfigurationException {\n Assert.notNull(\"request\", request);\n OfbizUrlBuilder builder = (OfbizUrlBuilder) request.getAttribute(\"_OFBIZ_URL_BUILDER_\");\n if (builder == null) {\n WebSiteProperties webSiteProps = WebSiteProperties.from(request);\n URL url = ConfigXMLReader.getControllerConfigURL(request.getServletContext());\n ControllerConfig config = (url != null) ? ConfigXMLReader.getControllerConfig(url, true) : null; // SCIPIO: 2017-11-18: controller now fully optional (2 change)\n // SCIPIO: Use more reliable call\n //String servletPath = (String) request.getAttribute(\"_CONTROL_PATH_\");\n String servletPath = RequestHandler.getControlPath(request);\n String contextPath = request.getContextPath();\n builder = new OfbizUrlBuilder(config, webSiteProps, servletPath, contextPath); // SCIPIO\n request.setAttribute(\"_OFBIZ_URL_BUILDER_\", builder);\n }\n return builder;\n }",
"public interface RequestId {\n\n\n /**\n * The of the request.\n *\n * @return the id\n */\n String getId();\n\n /**\n * Generates a unique request ID.\n * <p>\n * A default implementation is provided uses random UUIDs as the ID value.\n * To supply your own implementation, put an implementation of this interface upstream from the {@link #bind() binding handler}.\n */\n public interface Generator {\n\n /**\n * Generate a request ID with a “unique” ID value.\n *\n * @param context the handling context\n * @return a unique request ID\n */\n RequestId generate(Context context);\n }\n\n /**\n * Creates a new request ID (using the {@link Generator} from the context) and inserts it into the request registry.\n * <p>\n * The {@code RequestId} can then be obtained from the request registry and used in response headers for example.\n * <pre class=\"java\">{@code\n * import ratpack.handling.RequestId;\n * import ratpack.http.client.ReceivedResponse;\n * import ratpack.test.embed.EmbeddedApp;\n * import static org.junit.Assert.*;\n *\n * public class Example {\n * public static void main(String... args) throws Exception {\n * EmbeddedApp.fromHandlers(chain -> chain\n * .handler(RequestId.bind())\n * .handler(ctx -> {\n * ctx.getResponse().getHeaders().add(\"X-Request-Id\", ctx.getRequest().get(RequestId.class).getId());\n * ctx.render(\"ok\");\n * })\n * ).test(httpClient -> {\n * ReceivedResponse response = httpClient.get();\n * assertEquals(\"ok\", response.getBody().getText());\n *\n * // Default request ID generator generates random UUIDs (i.e. 36 chars long)\n * assertEquals(36, response.getHeaders().get(\"X-Request-Id\").length());\n * });\n * }\n * }\n * }</pre>\n * <p>\n * To use a different strategy for generating IDs, put your own implementation of {@link Generator} into the context registry before this handler.\n *\n * @return a handler that generates a request ID and adds it to the request registry\n */\n static Handler bind() {\n return ctx -> {\n Generator generator = ctx.maybeGet(Generator.class).orElse(UuidBasedRequestIdGenerator.INSTANCE);\n RequestId requestId = generator.generate(ctx);\n ctx.getRequest().add(RequestId.class, requestId);\n ctx.next();\n };\n }\n\n // TODO docs here, including explanation of the log format.\n static Handler bindAndLog() {\n return Handlers.chain(bind(), new Handler() {\n private final Logger logger = LoggerFactory.getLogger(RequestId.class);\n\n @Override\n public void handle(Context ctx) throws Exception {\n ctx.onClose((RequestOutcome outcome) -> {\n Request request = ctx.getRequest();\n StringBuilder logLine = new StringBuilder()\n .append(request.getMethod().toString())\n .append(\" \")\n .append(request.getUri())\n .append(\" \")\n .append(outcome.getResponse().getStatus().getCode());\n\n request.maybeGet(RequestId.class).ifPresent(id1 -> {\n logLine.append(\" id=\");\n logLine.append(id1.toString());\n });\n\n logger.info(logLine.toString());\n });\n\n ctx.next();\n }\n });\n }\n\n}",
"static HttpRequestInitializer getRequestInitializer() {\n return new HttpRequestInitializer() {\n @Override\n public void initialize(final HttpRequest arg0) {\n }\n };\n }",
"void processRequest(RequestInfo<T, O> requestInfo, Class<T> TClass, Class<O> OClass, boolean invalidateCache);",
"private void setGetTokenReq(\n GetToken.Req.Builder builderForValue) {\n req_ = builderForValue.build();\n reqCase_ = 4;\n }",
"private Request() {}",
"private Request() {}",
"public final PythonParser.funcdef_return funcdef() throws RecognitionException {\n PythonParser.funcdef_return retval = new PythonParser.funcdef_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token DEF26=null;\n Token NAME27=null;\n Token COLON29=null;\n PythonParser.decorators_return decorators25 = null;\n\n PythonParser.parameters_return parameters28 = null;\n\n PythonParser.suite_return suite30 = null;\n\n\n PythonTree DEF26_tree=null;\n PythonTree NAME27_tree=null;\n PythonTree COLON29_tree=null;\n\n stmt stype = null; \n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:450:5: ( ( decorators )? DEF NAME parameters COLON suite[false] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:450:7: ( decorators )? DEF NAME parameters COLON suite[false]\n {\n root_0 = (PythonTree)adaptor.nil();\n\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:450:7: ( decorators )?\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==AT) ) {\n alt14=1;\n }\n switch (alt14) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:450:7: decorators\n {\n pushFollow(FOLLOW_decorators_in_funcdef867);\n decorators25=decorators();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, decorators25.getTree());\n\n }\n break;\n\n }\n\n DEF26=(Token)match(input,DEF,FOLLOW_DEF_in_funcdef870); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n DEF26_tree = (PythonTree)adaptor.create(DEF26);\n adaptor.addChild(root_0, DEF26_tree);\n }\n NAME27=(Token)match(input,NAME,FOLLOW_NAME_in_funcdef872); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NAME27_tree = (PythonTree)adaptor.create(NAME27);\n adaptor.addChild(root_0, NAME27_tree);\n }\n pushFollow(FOLLOW_parameters_in_funcdef874);\n parameters28=parameters();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, parameters28.getTree());\n COLON29=(Token)match(input,COLON,FOLLOW_COLON_in_funcdef876); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COLON29_tree = (PythonTree)adaptor.create(COLON29);\n adaptor.addChild(root_0, COLON29_tree);\n }\n pushFollow(FOLLOW_suite_in_funcdef878);\n suite30=suite(false);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, suite30.getTree());\n if ( state.backtracking==0 ) {\n\n Token t = DEF26;\n if ((decorators25!=null?((Token)decorators25.start):null) != null) {\n t = (decorators25!=null?((Token)decorators25.start):null);\n }\n stype = actions.makeFuncdef(t, NAME27, (parameters28!=null?parameters28.args:null), (suite30!=null?suite30.stypes:null), (decorators25!=null?decorators25.etypes:null));\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n retval.tree = stype; \n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }"
] | [
"0.5851728",
"0.5735734",
"0.57211334",
"0.5411152",
"0.53895557",
"0.52543956",
"0.5253426",
"0.52517205",
"0.5213044",
"0.51764464",
"0.5142672",
"0.5123266",
"0.50836736",
"0.507484",
"0.5036349",
"0.50302374",
"0.5024659",
"0.5005454",
"0.49901795",
"0.49654374",
"0.4957877",
"0.49565175",
"0.4937936",
"0.49345446",
"0.49342072",
"0.49238443",
"0.48991203",
"0.48988676",
"0.48842496",
"0.48781797",
"0.4855221",
"0.48480543",
"0.48359513",
"0.48294222",
"0.4824805",
"0.48177603",
"0.48081267",
"0.47983062",
"0.47870627",
"0.47308823",
"0.4702114",
"0.47005284",
"0.4699404",
"0.46940246",
"0.46689004",
"0.46494973",
"0.4642571",
"0.46352777",
"0.46266252",
"0.46247184",
"0.46173033",
"0.46166432",
"0.4605124",
"0.4589148",
"0.45840272",
"0.45826674",
"0.45770693",
"0.45618698",
"0.45616686",
"0.4560627",
"0.45590824",
"0.45400003",
"0.45305872",
"0.4521368",
"0.45202258",
"0.45179302",
"0.45140475",
"0.45051116",
"0.44926864",
"0.44926268",
"0.44911587",
"0.44770968",
"0.4463385",
"0.44628075",
"0.4460292",
"0.4459732",
"0.44585386",
"0.44545236",
"0.44514236",
"0.44449377",
"0.4440924",
"0.4429773",
"0.4414741",
"0.4397887",
"0.43921456",
"0.43822506",
"0.43729755",
"0.43701032",
"0.4369149",
"0.43642685",
"0.43615445",
"0.43610308",
"0.43543145",
"0.43414417",
"0.43406433",
"0.43335468",
"0.43279067",
"0.4325773",
"0.43200892",
"0.43200892",
"0.43182155"
] | 0.0 | -1 |
Creates a parameter reader that will read the provided data streams. If more than one data stream is passed to the reader multiple occurrences of the same parameter will cause the parameter value to be overwritten with the new value. | public XmlParameterReader(InputStream... dataStreams) throws IOException
{
this(false, null, dataStreams);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlParameterReader(boolean debug, InputStream... dataStreams) throws IOException\n {\n this(debug, null, dataStreams);\n }",
"public XmlParameterReader(String rootNamespace, InputStream... dataStreams) throws IOException\n {\n this(false, rootNamespace, dataStreams);\n }",
"public XmlParameterReader(boolean debug, String rootNamespace, InputStream... dataStreams) throws IOException\n {\n this.debug = debug;\n this.rootNamespace = rootNamespace;\n\n for (InputStream dataStream : dataStreams)\n {\n readStream(dataStream, false);\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void readParameters(Map<String, Object> parameters)\r\n throws IOException {\r\n Parameter param = readNextParameter();\r\n Object currentValue = null;\r\n \r\n while (param != null) {\r\n if (parameters.containsKey(param.getName())) {\r\n currentValue = parameters.get(param.getName());\r\n \r\n if (currentValue != null) {\r\n List<Object> values = null;\r\n \r\n if (currentValue instanceof List) {\r\n // Multiple values already found for this parameter\r\n values = (List) currentValue;\r\n } else {\r\n // Second value found for this parameter\r\n // Create a list of values\r\n values = new ArrayList<Object>();\r\n values.add(currentValue);\r\n parameters.put(param.getName(), values);\r\n }\r\n \r\n if (param.getValue() == null) {\r\n values.add(Series.EMPTY_VALUE);\r\n } else {\r\n values.add(param.getValue());\r\n }\r\n } else {\r\n if (param.getValue() == null) {\r\n parameters.put(param.getName(), Series.EMPTY_VALUE);\r\n } else {\r\n parameters.put(param.getName(), param.getValue());\r\n }\r\n }\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n }",
"DataStreams createDataStreams();",
"@SuppressWarnings(\"unchecked\")\r\n public Object readParameter(String name) throws IOException {\r\n Parameter param = readNextParameter();\r\n Object result = null;\r\n \r\n while (param != null) {\r\n if (param.getName().equals(name)) {\r\n if (result != null) {\r\n List<Object> values = null;\r\n \r\n if (result instanceof List) {\r\n // Multiple values already found for this parameter\r\n values = (List) result;\r\n } else {\r\n // Second value found for this parameter\r\n // Create a list of values\r\n values = new ArrayList<Object>();\r\n values.add(result);\r\n result = values;\r\n }\r\n \r\n if (param.getValue() == null) {\r\n values.add(Series.EMPTY_VALUE);\r\n } else {\r\n values.add(param.getValue());\r\n }\r\n } else {\r\n if (param.getValue() == null) {\r\n result = Series.EMPTY_VALUE;\r\n } else {\r\n result = param.getValue();\r\n }\r\n }\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n return result;\r\n }",
"@FunctionalInterface\n protected interface StreamReader<ReaderType> {\n void accept(RevisionDataInput input, ReaderType target) throws IOException;\n }",
"public static NetFlowReader prepareReader(DataInputStream inputStream) throws IOException {\n return prepareReader(inputStream, RecordBuffer.BUFFER_LENGTH_2, false);\n }",
"public void readParameters()\n {\n readParameters(getData());\n }",
"public static NetFlowReader prepareReader(\n DataInputStream inputStream,\n int buffer) throws IOException {\n return prepareReader(inputStream, buffer, false);\n }",
"private static BufferedReader newReader(InputStream stream) {\n return new BufferedReader(new InputStreamReader(stream));\n }",
"public void _read( org.omg.CORBA.portable.InputStream is )\r\n {\r\n super._read( is );\r\n try\r\n {\r\n m_params = ParameterSequenceHelper.read(is);\r\n\t m_default = is.read_string( );\r\n }\r\n catch( Throwable _input_read_exception_ )\r\n {\r\n throw new RuntimeException(\r\n \"Error reading input stream for '\"\r\n + \"net.osm.factory.FactoryValue', due to: \" \r\n + _input_read_exception_.toString() );\r\n }\r\n }",
"ParameterSource createParameterSource();",
"public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }",
"StreamReader underlyingReader();",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {\n\t\t\n\t}",
"static Reader createReaderFromStream(Path path, FSDataInputStream fsdis, long size,\n CacheConfig cacheConf, Configuration conf) throws IOException {\n FSDataInputStreamWrapper wrapper = new FSDataInputStreamWrapper(fsdis);\n return pickReaderVersion(path, wrapper, size, cacheConf, null, conf);\n }",
"public PreparedCallableQuery setNCharacterStream(String parameterName, Reader reader) throws SQLException {\r\n cstmt.setNCharacterStream(parameterName, reader);\r\n\r\n return this;\r\n }",
"public ExecutableReader(ExecutableStream stream) throws Exception {\n\t\texStr = stream;\n\t\tread(stream);\n\t}",
"public void readData(InputStream inStream);",
"XMLStreamReader createXMLStreamReader(DataObject sdo);",
"InputStream getDataStream();",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader) {\n this(streamSpec, dataReader, new FrameIteratorFactory());\n }",
"@Provides\r\n public DataInput provideInputReader() {\r\n DataInput input = null;\r\n final Reader inRdr = inReader;\r\n if ((inRdr != null) && (inputFormat != null)) {\r\n if (\"csv\".equalsIgnoreCase(inputFormat))\r\n input = new CSVDataInput(inRdr);\r\n else if (\"json\".equalsIgnoreCase(inputFormat))\r\n input = new JSONDataInput(inRdr);\r\n else\r\n throw new IllegalArgumentException(\"Input format \"\r\n + inputFormat + \" not supported.\"\r\n + \" Valid types are csv, json\");\r\n input.verboseOptions(verboseStream, verbose);\r\n }\r\n return input;\r\n }",
"public ReaderInputStream(Reader reader) {\n if (reader == null) {\n throw new IllegalArgumentException(\"reader must not be null\");\n }\n in = reader;\n }",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n\t\t\n\t}",
"public PreparedCallableQuery setCharacterStream(String parameterName, Reader reader) throws SQLException {\r\n cstmt.setCharacterStream(parameterName, reader);\r\n\r\n return this;\r\n }",
"public Parameter readFirstParameter(String name) throws IOException {\r\n Parameter param = readNextParameter();\r\n Parameter result = null;\r\n \r\n while ((param != null) && (result == null)) {\r\n if (param.getName().equals(name)) {\r\n result = param;\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n return result;\r\n }",
"public PreparedCallableQuery setNCharacterStream(String parameterName, Reader reader, long length) throws SQLException {\r\n cstmt.setNCharacterStream(parameterName, reader, length);\r\n\r\n return this;\r\n }",
"public ReaderInputStream(Reader reader, String encoding) {\n this(reader);\n this.encoding = encoding;\n }",
"protected d a(InputStream paramInputStream, int paramInt) {\n }",
"private static IIteratingChemObjectReader<IAtomContainer> getInputReader(\n ArgumentHandler argsH, IChemObjectBuilder builder) throws FileNotFoundException {\n DataFormat inputFormat = argsH.getInputFormat();\n IIteratingChemObjectReader<IAtomContainer> reader;\n String filepath = argsH.getInputFilepath();\n InputStream in = new FileInputStream(filepath);\n switch (inputFormat) {\n case SMILES: reader = new IteratingSMILESReader(in, builder); break;\n case SIGNATURE: reader = new IteratingSignatureReader(in, builder); break;\n case SDF: reader = new IteratingSDFReader(in, builder); break;\n case ACP: reader = new IteratingACPReader(in, builder); break;\n default: reader = null; error(\"Unrecognised format\"); break;\n }\n return reader;\n }",
"private IntStream createStream() {\n DataInputStream dataInputStream = null;\n try {\n dataInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found\");\n }\n DataInputStream finalDin = dataInputStream;\n return IntStream.generate(() -> {\n try {\n assert finalDin != null;\n return finalDin.readInt();\n } catch (IOException e) {\n System.out.println(\"Stream problem\");\n }\n return 0;\n })\n .limit(20);\n }",
"public StreamReader(InputStream input) throws IOException {\r\n\t\tthis.setInput(input);\r\n\t}",
"@Override\n\tpublic void read(InStream inStream) {\n\t}",
"public StreamReader() {}",
"public Parameter readNextParameter() throws IOException {\r\n Parameter result = null;\r\n \r\n try {\r\n boolean readingName = true;\r\n boolean readingValue = false;\r\n StringBuilder nameBuffer = new StringBuilder();\r\n StringBuilder valueBuffer = new StringBuilder();\r\n \r\n int nextChar = 0;\r\n while ((result == null) && (nextChar != -1)) {\r\n nextChar = this.stream.read();\r\n \r\n if (readingName) {\r\n if (nextChar == '=') {\r\n if (nameBuffer.length() > 0) {\r\n readingName = false;\r\n readingValue = true;\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else if ((nextChar == '&') || (nextChar == -1)) {\r\n if (nameBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n } else if (nextChar == -1) {\r\n // Do nothing return null preference\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else {\r\n nameBuffer.append((char) nextChar);\r\n }\r\n } else if (readingValue) {\r\n if ((nextChar == '&') || (nextChar == -1)) {\r\n if (valueBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, valueBuffer,\r\n this.decode, characterSet);\r\n } else {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n }\r\n } else {\r\n valueBuffer.append((char) nextChar);\r\n }\r\n }\r\n }\r\n } catch (UnsupportedEncodingException uee) {\r\n throw new IOException(\r\n \"Unsupported encoding. Please contact the administrator\");\r\n }\r\n \r\n return result;\r\n }",
"public InputStream post(String name1, Object value1, String name2, Object value2, String name3, Object value3) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2, name3, value3);\r\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public RawReader(final InputStream is, final int bufferSize) throws NullPointerException, IllegalArgumentException {\n\t\tif (is == null) {\n\t\t\tthrow new NullPointerException(\"Input stream can't be null\"); \n\t\t}\n\t\telse if (bufferSize <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"Buffer size [\"+bufferSize+\"] must be greater than 0\"); \n\t\t}\n\t\telse {\n\t\t\tthis.is = is;\n\t\t\tthis.buffer = new byte[bufferSize];\n\t\t}\n\t}",
"private BufferedReader\n\tgetStreamReader(\n\t\tInputStream\tinputStream)\n\t{\n\t\treturn(new BufferedReader(new InputStreamReader(inputStream)));\n\t}",
"public static ResourceData create(\n final InputStream stream,\n final Dictionary<String, Object> props)\n throws IOException {\n if ( stream == null ) {\n final Dictionary<String, Object> result = new Hashtable<String, Object>();\n final Enumeration<String> e = props.keys();\n while (e.hasMoreElements()) {\n final String key = e.nextElement();\n result.put(key, props.get(key));\n }\n return new ResourceData(result, null);\n\n }\n final File dataFile = FileDataStore.SHARED.createNewDataFile(stream,\n null, null, null);\n return new ResourceData(null, dataFile);\n }",
"public static <V extends Object> StreamParameter<V, StreamAccessParams<V, StreamData>, StreamData> newSP(\n Application app, Direction direction, StdIOStream stream, String prefix, String name, V value, int hashCode,\n ParameterMonitor monitor) {\n StreamAccessParams<V, StreamData> sap;\n sap = StreamAccessParams.constructStreamAP(app, direction, value, hashCode);\n return new StreamParameter(sap, DataType.STREAM_T, direction, stream, prefix, name, monitor);\n }",
"public PreparedCallableQuery setBinaryStream(String parameterName, InputStream inputStream, long length) throws SQLException {\r\n cstmt.setBinaryStream(parameterName, inputStream, length);\r\n\r\n return this;\r\n }",
"public PreparedCallableQuery setCharacterStream(String parameterName, Reader reader, long length) throws SQLException {\r\n cstmt.setCharacterStream(parameterName, reader, length);\r\n\r\n return this;\r\n }",
"Read createRead();",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public void loadParameters(StreamTokenizer tokenizer) throws IOException{\n \n //Grab the parameters\n int tokenType;\n tokenType = tokenizer.nextToken();\n int highValue = (int) tokenizer.nval;\n highSlider. setValue(highValue);\n highBox. setText(String. valueOf(highValue));\n highT = highValue;\n\n tokenType = tokenizer.nextToken();\n int lowValue = (int) tokenizer.nval;\n lowSlider. setValue(lowValue);\n lowBox. setText(String. valueOf(lowValue));\n lowT = lowValue;\n\n tokenType = tokenizer.nextToken();\n scaleMax = (int) tokenizer.nval;\n rescaleText.setText(String. valueOf(scaleMax));\n\n updateThreshold(lowSlider. getValue(), highSlider. getValue());\n\n //Repack the components in the interface\n parameters.pack();\n parameters.setVisible(false);\n }",
"public RawReader(final InputStream is) throws NullPointerException {\n\t\tthis(is, DEFAULT_BUFFER_SIZE);\n\t}",
"public JsonObject readStream(HashMap<String,String> meta, String name, InputStream stream, long length, StringBuilder errors) {\n try{\n javax.json.JsonReader rdr = Json.createReader(stream);\n return rdr.readObject();}\n catch(Exception ex) {errors.append(ex.toString());}\n return null;}",
"@Bean(name=\"com.glyde.mall.batch.job.sample.sampleParameterReader\")\n @StepScope\n public ItemReader<TestDto> sampleReader() throws Exception {\n\n return new MyBatisPagingItemReaderBuilder<TestDto>()\n .sqlSessionFactory(sqlSessionFactory)\n .pageSize(CHUNK_SIZE)\n .queryId(\"com.glyde.mall.batch.job.sample.mapper.TestMapper.select\")\n .build();\n }",
"@Override\n public DataStream<Row> getDataStream(StreamExecutionEnvironment execEnv) {\n if (useExtendField) {\n metadataKeys = Arrays.stream(ReadableMetadata.values()).map(x -> x.key).collect(Collectors.toList());\n applyReadableMetadata(metadataKeys, generateProducedDataType());\n producedTypeInfo = (TypeInformation<Row>) TypeConversions.fromDataTypeToLegacyInfo(producedDataType);\n }\n\n final PulsarRowDeserializationSchema.ReadableRowMetadataConverter[] metadataConverters = metadataKeys.stream()\n .map(k ->\n Stream.of(ReadableMetadata.values())\n .filter(rm -> rm.key.equals(k))\n .findFirst()\n .orElseThrow(IllegalStateException::new))\n .map(m -> m.converter)\n .toArray(PulsarRowDeserializationSchema.ReadableRowMetadataConverter[]::new);\n\n PulsarRowDeserializationSchema pulsarDeserializationSchema =\n new PulsarRowDeserializationSchema(deserializationSchema, metadataConverters.length > 0, metadataConverters, producedTypeInfo);\n //PulsarDeserializationSchema<Row> deserializer = getDeserializationSchema();\n FlinkPulsarSource<Row> source = new FlinkPulsarSource<>(serviceUrl, adminUrl, pulsarDeserializationSchema, properties);\n //FlinkPulsarRowSource source = new FlinkPulsarRowSource(serviceUrl, adminUrl, properties, deserializer);\n switch (startupMode) {\n case EARLIEST:\n source.setStartFromEarliest();\n break;\n case LATEST:\n source.setStartFromLatest();\n break;\n case SPECIFIC_OFFSETS:\n source.setStartFromSpecificOffsets(specificStartupOffsets);\n break;\n case EXTERNAL_SUBSCRIPTION:\n MessageId subscriptionPosition = MessageId.latest;\n if (CONNECTOR_STARTUP_MODE_VALUE_EARLIEST.equals(properties.get(CONNECTOR_EXTERNAL_SUB_DEFAULT_OFFSET))) {\n subscriptionPosition = MessageId.earliest;\n }\n source.setStartFromSubscription(externalSubscriptionName, subscriptionPosition);\n }\n\n return execEnv.addSource(source).name(explainSource());\n }",
"public void read(int param1, byte[] param2, int param3, int param4) {\n }",
"public SmooksDataLoader(final InputStream dataInputStream,\r\n final InputStream configInputStream, final Result result)\r\n {\r\n this.result = result;\r\n smooksConfigStream = new AutoCloseInputStream(configInputStream);\r\n dataFileStream = new StreamSource(new AutoCloseInputStream(\r\n dataInputStream));\r\n }",
"public StreamProcessorImpl(StreamSpec streamSpec) {\n this(streamSpec, new PreloadStreamDataReader());\n }",
"void read(StreamOption streamOpt);",
"public SqlFileParser(InputStream stream) {\n this.reader = new BufferedReader(new InputStreamReader(stream));\n }",
"public InputStream createInputStream(List<String> stopFilters) throws IOException\n {\n InputStream is = stream.createRawInputStream();\n List<Filter> someFilters = new ArrayList<>();\n List<COSName> filters = getFilters();\n for (COSName nextFilter : filters)\n {\n if (stopFilters != null && stopFilters.contains(nextFilter.getName()))\n {\n break;\n }\n someFilters.add(FilterFactory.INSTANCE.getFilter(nextFilter));\n }\n if (someFilters.isEmpty())\n {\n return is;\n }\n RandomAccessRead decoded = Filter.decode(is, someFilters, getCOSObject(),\n DecodeOptions.DEFAULT, null);\n return new RandomAccessInputStream(decoded);\n }",
"public PreparedCallableQuery setBinaryStream(String parameterName, InputStream inputStream) throws SQLException {\r\n cstmt.setBinaryStream(parameterName, inputStream);\r\n\r\n return this;\r\n }",
"private net.openhft.lang.io.Bytes toReader(ValueIn valueIn, Params... params) {\n\n // todo this is a bit of a hack\n final Bytes<?> bytes1 = valueIn.wireIn().bytes();\n final long inSize = bytes1.remaining();\n\n final net.openhft.lang.io.Bytes bytes = DirectStore.allocate(inSize + 1024).bytes();\n\n valueIn.marshallable(wire -> {\n\n for (Params p : params) {\n\n final ValueIn read = wire.read(p);\n\n final byte[] data = read.bytes();\n\n bytes.writeStopBit(data.length);\n bytes.write(data);\n }\n\n });\n\n\n return bytes.flip();\n }",
"private InputStream buildUpStream(final Object... args)\r\n\t{\n\t\tfinal StringBuilder builder = new StringBuilder(1000);\r\n\t\tfor (final Object arg : args)\r\n\t\t{\r\n\t\t\tbuilder.append(arg).append(CharUtils.CR);\r\n\t\t}\r\n\t\treturn new ByteArrayInputStream(builder.toString().getBytes());\r\n\t}",
"public InputStream post(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2, name3, value3, name4, value4);\r\n }",
"public abstract StatDataFileReader createReaderInstance(Object extension)\n throws IOException;",
"@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {\n\t\t\n\t}",
"public ModemReader (InputStream inputStream) {\n\t\t\tthis.inputStream = inputStream;\n\t\t\tsetResultStrings (null);\n\t\t}",
"public InputStream post(String name1, Object value1, String name2, Object value2) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2);\r\n }",
"public ReaderInputStream(Reader reader) {\n\t\t\tthis.reader = reader;\n\t\t\tencoder = UTF8.newEncoder();\n\t\t\tcharBuffer.limit(0);\n\t\t\tbyteBuffer.limit(0);\n\t\t}",
"public LineInputStream(InputStream is) {\n\t\tinputStream = is;\n\t}",
"public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value);\n }",
"public Object getReaderCtor(String paramString) {\n }",
"public ExecutableReader(InputStream is) throws Exception {\n\t\texStr = new ExecutableStream(is);\n\t\tread(exStr);\n\t}",
"protected abstract InputStream getStream(String resource);",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader, FrameIteratorFactory mediaReaderFactory) {\n this.streamSpec = streamSpec;\n metadataManager = new MetadataManager();\n streamListeners = new ArrayList<StreamListener>();\n this.dataReader = dataReader;\n this.frameIteratorFactory = mediaReaderFactory;\n }",
"public SqlCharStream(Reader r) {\n input = r;\n }",
"public PklFileReader(InputStream inputStream)\r\n\t{\r\n\t\tsetInputStream(inputStream);\r\n\t}",
"@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {\n\t\t\n\t}",
"public PreparedCallableQuery setAsciiStream(String parameterName, InputStream inputStream, long length) throws SQLException {\r\n cstmt.setAsciiStream(parameterName, inputStream, length);\r\n\r\n return this;\r\n }",
"void read(final DataInputStream in) throws IOException {\n // This code is tested over in TestHFileReaderV1 where we read an old hfile w/ this new code.\n int pblen = ProtobufUtil.lengthOfPBMagic();\n byte[] pbuf = new byte[pblen];\n if (in.markSupported()) in.mark(pblen);\n int read = in.read(pbuf);\n if (read != pblen) throw new IOException(\"read=\" + read + \", wanted=\" + pblen);\n if (ProtobufUtil.isPBMagicPrefix(pbuf)) {\n parsePB(HFileProtos.FileInfoProto.parseDelimitedFrom(in));\n } else {\n if (in.markSupported()) {\n in.reset();\n parseWritable(in);\n } else {\n // We cannot use BufferedInputStream, it consumes more than we read from the underlying IS\n ByteArrayInputStream bais = new ByteArrayInputStream(pbuf);\n SequenceInputStream sis = new SequenceInputStream(bais, in); // Concatenate input streams\n // TODO: Am I leaking anything here wrapping the passed in stream? We are not calling close on the wrapped\n // streams but they should be let go after we leave this context? I see that we keep a reference to the\n // passed in inputstream but since we no longer have a reference to this after we leave, we should be ok.\n parseWritable(new DataInputStream(sis));\n }\n }\n }",
"private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}",
"public RereadableInputStream(InputStream inputStream) {\n this(inputStream, DEFAULT_MAX_BYTES_IN_MEMORY, true);\n }",
"public PreparedCallableQuery setAsciiStream(String parameterName, InputStream inputStream) throws SQLException {\r\n cstmt.setAsciiStream(parameterName, inputStream);\r\n\r\n return this;\r\n }",
"public void putReaderCtor(String paramString, Procedure paramProcedure) {\n }",
"public Reader(Configuration conf, FSDataInputStream in, long length, \n\t\t\t CompressionCodec codec,\n\t\t\t Counters.Counter readsCounter) throws IOException {\n\t\treadRecordsCounter = readsCounter;\n\t\tchecksumIn = new IFileInputStream(in,length, conf);\n\t\tif (codec != null) {\n\t\t decompressor = CodecPool.getDecompressor(codec);\n\t\t if (decompressor != null) {\n\t\t\tthis.in = codec.createInputStream(checksumIn, decompressor);\n\t\t } else {\n\t\t\tLOG.warn(\"Could not obtain decompressor from CodecPool\");\n\t\t\tthis.in = checksumIn;\n\t\t }\n\t\t} else {\n\t\t this.in = checksumIn;\n\t\t}\n\t\tthis.dataIn = new DataInputStream(this.in);\n\t\tthis.fileLength = length;\n \n\t\tif (conf != null) {\n\t\t bufferSize = conf.getInt(\"io.file.buffer.size\", DEFAULT_BUFFER_SIZE);\n\t\t}\n\t }",
"public static NetFlowReader prepareReader(\n DataInputStream inputStream,\n int buffer,\n boolean ignoreCorruptFile) throws IOException {\n return new NetFlowReader(inputStream, buffer, ignoreCorruptFile);\n }",
"public interface IInputVaries {\n double[] getParams(BufferedReader br);\n}",
"@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}",
"void deserializeContents(InputStream stream, ReaderType target) throws IOException {\n byte version = readByte(stream);\n val readVersion = this.versions[version];\n ensureCondition(readVersion != null, \"Unsupported version %d.\", version);\n\n byte revisionCount = readByte(stream);\n ensureCondition(revisionCount >= 0, \"Data corruption: negative revision count.\");\n\n int revisionIndex = 0;\n for (int i = 0; i < revisionCount; i++) {\n byte revision = readByte(stream);\n val rd = readVersion.get(revisionIndex++);\n try (RevisionDataInputStream revisionInput = RevisionDataInputStream.wrap(stream)) {\n if (rd != null) {\n // We've encountered an unknown revision; we cannot read anymore.\n ensureCondition(revision == rd.getRevision(),\n \"Unexpected revision. Expected %d, found %d.\", rd.getRevision(), revision);\n rd.getReader().accept(revisionInput, target);\n }\n }\n }\n }",
"public void readFromStream(Reader r) throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(r);\n\t\tlines=new ArrayList();\n\n\t\twhile(true) {\n\t\t\tString input=br.readLine();\n\t\t\tif(input==null)\n\t\t\t\tbreak;\n\t\t\tlines.add(input);\n\t\t}\n\t}",
"protected void readConstructorParams( DataInput in ) throws\n\t\t\t\t\t\t\tIOException {\n }",
"public interface IterativeReader\n{\n /**\n * Constant which specifies that the IterativeReader/IterativeWriter is not\n * done with nextRead/nextWrite.\n */\n public static final int CONTINUE = 0;\n /**\n * Constant which specifies that the IterativeReader/IterativeWriter is done\n * with nextRead/nextWrite. This means that the reading/writing is complete\n * and further calls of nextRead/nextWrite are not expected.\n */\n public static final int STOP = 1;\n\n /**\n * Specifies that numBytes bytes are to be read. The InputStream to read\n * from should be stored in the implementing class.\n * @param numBytes Number of bytes to read. This is only indicative. The\n * implementor may read more or less. Reading too less impacts performance\n * due to repeated nextRead calls. Reading too much more than numBytes leads\n * to performance impact due to buffer reallocation in case of\n * SplitInputStream and an IOException due to Empty Buffer in an\n * OutStreamToIterativeReader.<p>\n *\n * The InputStream returned for use by an IterativeReader by directio's\n * classes implement {@link ByteCounter} which can help in keeping track of\n * the number of bytes read or remaining during a nextRead call.\n * @return {@link #CONTINUE} to indicate that there is more to be read and\n * STOP to indicate that the IterativeReader is done with reading.\n * @exception IOException In case of an error during read. Note that data\n * errors can also be handled by returning STOP and storing the error\n * instead of throwing an Exception. This may be desirable for a\n * SplitInputStream since the main Read can continue unhindered by the\n * SubStream's error.\n */\n public int nextRead(int numBytes) throws IOException;\n}",
"@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}",
"public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value, length);\n\n }",
"private void loadParameters() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new BufferedInputStream(Files.newInputStream(path))));\n\n\t\tdo {\n\t\t\tString line = reader.readLine();\n\t\t\tif (line == null || line.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (line.startsWith(\"--\") || line.startsWith(\" \")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString[] tokens = line.trim().split(\"\\\\s+\");\n\t\t\tparameters.put(Parameter.valueOf(tokens[0]), tokens[1]);\n\t\t} while (true);\n\n\t}",
"public abstract InputStream openStream(String str);",
"ParameterSink createParameterSink();",
"public ConcatReader(Reader in1, Reader in2){\r\n\t\taddReader(in1);\r\n\t\taddReader(in2);\r\n\t\tlastReaderAdded();\r\n\t}",
"public static DataInputStream getData(InputStream in) {\n return new DataInputStream(get(in));\n }"
] | [
"0.69002736",
"0.66034514",
"0.64739305",
"0.57335395",
"0.56519747",
"0.5590759",
"0.5471655",
"0.5420913",
"0.5405175",
"0.5335484",
"0.52660006",
"0.52658415",
"0.52560115",
"0.5245278",
"0.52354825",
"0.51924306",
"0.5187864",
"0.5181226",
"0.50835717",
"0.5079654",
"0.50684035",
"0.5063941",
"0.5057212",
"0.5055363",
"0.50505155",
"0.50297135",
"0.5018747",
"0.49974683",
"0.49889678",
"0.49568915",
"0.49497008",
"0.49480298",
"0.49443",
"0.4937219",
"0.49312",
"0.49234834",
"0.49162954",
"0.49115852",
"0.49070844",
"0.48964876",
"0.48910642",
"0.48827454",
"0.48745856",
"0.48672536",
"0.48626822",
"0.48543507",
"0.48536918",
"0.48536918",
"0.48536918",
"0.48536918",
"0.48460686",
"0.48371243",
"0.48370144",
"0.483558",
"0.48193458",
"0.48163608",
"0.48029163",
"0.47981134",
"0.47967255",
"0.4778819",
"0.4775085",
"0.47645274",
"0.47625026",
"0.47591975",
"0.4738243",
"0.47284862",
"0.47284487",
"0.4718705",
"0.47007945",
"0.46948904",
"0.46944246",
"0.46925923",
"0.4677932",
"0.4675959",
"0.46747193",
"0.46723533",
"0.46720174",
"0.46648458",
"0.46626446",
"0.46622616",
"0.4658086",
"0.46397758",
"0.46302894",
"0.46105003",
"0.45989007",
"0.4595214",
"0.45857945",
"0.45836982",
"0.45772275",
"0.45751387",
"0.4574884",
"0.45620665",
"0.4556447",
"0.45557797",
"0.45415914",
"0.45359313",
"0.45286286",
"0.4524424",
"0.45226085",
"0.4517497"
] | 0.75504506 | 0 |
Creates a parameter reader that will read the provided data streams. If more than one data stream is passed to the reader multiple occurrences of the same parameter will cause the parameter value to be overwritten with the new value. | public XmlParameterReader(String rootNamespace, InputStream... dataStreams) throws IOException
{
this(false, rootNamespace, dataStreams);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlParameterReader(InputStream... dataStreams) throws IOException\n {\n this(false, null, dataStreams);\n }",
"public XmlParameterReader(boolean debug, InputStream... dataStreams) throws IOException\n {\n this(debug, null, dataStreams);\n }",
"public XmlParameterReader(boolean debug, String rootNamespace, InputStream... dataStreams) throws IOException\n {\n this.debug = debug;\n this.rootNamespace = rootNamespace;\n\n for (InputStream dataStream : dataStreams)\n {\n readStream(dataStream, false);\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void readParameters(Map<String, Object> parameters)\r\n throws IOException {\r\n Parameter param = readNextParameter();\r\n Object currentValue = null;\r\n \r\n while (param != null) {\r\n if (parameters.containsKey(param.getName())) {\r\n currentValue = parameters.get(param.getName());\r\n \r\n if (currentValue != null) {\r\n List<Object> values = null;\r\n \r\n if (currentValue instanceof List) {\r\n // Multiple values already found for this parameter\r\n values = (List) currentValue;\r\n } else {\r\n // Second value found for this parameter\r\n // Create a list of values\r\n values = new ArrayList<Object>();\r\n values.add(currentValue);\r\n parameters.put(param.getName(), values);\r\n }\r\n \r\n if (param.getValue() == null) {\r\n values.add(Series.EMPTY_VALUE);\r\n } else {\r\n values.add(param.getValue());\r\n }\r\n } else {\r\n if (param.getValue() == null) {\r\n parameters.put(param.getName(), Series.EMPTY_VALUE);\r\n } else {\r\n parameters.put(param.getName(), param.getValue());\r\n }\r\n }\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n }",
"DataStreams createDataStreams();",
"@SuppressWarnings(\"unchecked\")\r\n public Object readParameter(String name) throws IOException {\r\n Parameter param = readNextParameter();\r\n Object result = null;\r\n \r\n while (param != null) {\r\n if (param.getName().equals(name)) {\r\n if (result != null) {\r\n List<Object> values = null;\r\n \r\n if (result instanceof List) {\r\n // Multiple values already found for this parameter\r\n values = (List) result;\r\n } else {\r\n // Second value found for this parameter\r\n // Create a list of values\r\n values = new ArrayList<Object>();\r\n values.add(result);\r\n result = values;\r\n }\r\n \r\n if (param.getValue() == null) {\r\n values.add(Series.EMPTY_VALUE);\r\n } else {\r\n values.add(param.getValue());\r\n }\r\n } else {\r\n if (param.getValue() == null) {\r\n result = Series.EMPTY_VALUE;\r\n } else {\r\n result = param.getValue();\r\n }\r\n }\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n return result;\r\n }",
"@FunctionalInterface\n protected interface StreamReader<ReaderType> {\n void accept(RevisionDataInput input, ReaderType target) throws IOException;\n }",
"public static NetFlowReader prepareReader(DataInputStream inputStream) throws IOException {\n return prepareReader(inputStream, RecordBuffer.BUFFER_LENGTH_2, false);\n }",
"public void readParameters()\n {\n readParameters(getData());\n }",
"public static NetFlowReader prepareReader(\n DataInputStream inputStream,\n int buffer) throws IOException {\n return prepareReader(inputStream, buffer, false);\n }",
"public void _read( org.omg.CORBA.portable.InputStream is )\r\n {\r\n super._read( is );\r\n try\r\n {\r\n m_params = ParameterSequenceHelper.read(is);\r\n\t m_default = is.read_string( );\r\n }\r\n catch( Throwable _input_read_exception_ )\r\n {\r\n throw new RuntimeException(\r\n \"Error reading input stream for '\"\r\n + \"net.osm.factory.FactoryValue', due to: \" \r\n + _input_read_exception_.toString() );\r\n }\r\n }",
"private static BufferedReader newReader(InputStream stream) {\n return new BufferedReader(new InputStreamReader(stream));\n }",
"ParameterSource createParameterSource();",
"public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }",
"StreamReader underlyingReader();",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {\n\t\t\n\t}",
"static Reader createReaderFromStream(Path path, FSDataInputStream fsdis, long size,\n CacheConfig cacheConf, Configuration conf) throws IOException {\n FSDataInputStreamWrapper wrapper = new FSDataInputStreamWrapper(fsdis);\n return pickReaderVersion(path, wrapper, size, cacheConf, null, conf);\n }",
"public PreparedCallableQuery setNCharacterStream(String parameterName, Reader reader) throws SQLException {\r\n cstmt.setNCharacterStream(parameterName, reader);\r\n\r\n return this;\r\n }",
"public ExecutableReader(ExecutableStream stream) throws Exception {\n\t\texStr = stream;\n\t\tread(stream);\n\t}",
"public void readData(InputStream inStream);",
"XMLStreamReader createXMLStreamReader(DataObject sdo);",
"InputStream getDataStream();",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader) {\n this(streamSpec, dataReader, new FrameIteratorFactory());\n }",
"@Provides\r\n public DataInput provideInputReader() {\r\n DataInput input = null;\r\n final Reader inRdr = inReader;\r\n if ((inRdr != null) && (inputFormat != null)) {\r\n if (\"csv\".equalsIgnoreCase(inputFormat))\r\n input = new CSVDataInput(inRdr);\r\n else if (\"json\".equalsIgnoreCase(inputFormat))\r\n input = new JSONDataInput(inRdr);\r\n else\r\n throw new IllegalArgumentException(\"Input format \"\r\n + inputFormat + \" not supported.\"\r\n + \" Valid types are csv, json\");\r\n input.verboseOptions(verboseStream, verbose);\r\n }\r\n return input;\r\n }",
"public ReaderInputStream(Reader reader) {\n if (reader == null) {\n throw new IllegalArgumentException(\"reader must not be null\");\n }\n in = reader;\n }",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n\t\t\n\t}",
"public PreparedCallableQuery setCharacterStream(String parameterName, Reader reader) throws SQLException {\r\n cstmt.setCharacterStream(parameterName, reader);\r\n\r\n return this;\r\n }",
"public Parameter readFirstParameter(String name) throws IOException {\r\n Parameter param = readNextParameter();\r\n Parameter result = null;\r\n \r\n while ((param != null) && (result == null)) {\r\n if (param.getName().equals(name)) {\r\n result = param;\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n return result;\r\n }",
"public PreparedCallableQuery setNCharacterStream(String parameterName, Reader reader, long length) throws SQLException {\r\n cstmt.setNCharacterStream(parameterName, reader, length);\r\n\r\n return this;\r\n }",
"public ReaderInputStream(Reader reader, String encoding) {\n this(reader);\n this.encoding = encoding;\n }",
"protected d a(InputStream paramInputStream, int paramInt) {\n }",
"private static IIteratingChemObjectReader<IAtomContainer> getInputReader(\n ArgumentHandler argsH, IChemObjectBuilder builder) throws FileNotFoundException {\n DataFormat inputFormat = argsH.getInputFormat();\n IIteratingChemObjectReader<IAtomContainer> reader;\n String filepath = argsH.getInputFilepath();\n InputStream in = new FileInputStream(filepath);\n switch (inputFormat) {\n case SMILES: reader = new IteratingSMILESReader(in, builder); break;\n case SIGNATURE: reader = new IteratingSignatureReader(in, builder); break;\n case SDF: reader = new IteratingSDFReader(in, builder); break;\n case ACP: reader = new IteratingACPReader(in, builder); break;\n default: reader = null; error(\"Unrecognised format\"); break;\n }\n return reader;\n }",
"private IntStream createStream() {\n DataInputStream dataInputStream = null;\n try {\n dataInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found\");\n }\n DataInputStream finalDin = dataInputStream;\n return IntStream.generate(() -> {\n try {\n assert finalDin != null;\n return finalDin.readInt();\n } catch (IOException e) {\n System.out.println(\"Stream problem\");\n }\n return 0;\n })\n .limit(20);\n }",
"public StreamReader(InputStream input) throws IOException {\r\n\t\tthis.setInput(input);\r\n\t}",
"@Override\n\tpublic void read(InStream inStream) {\n\t}",
"public StreamReader() {}",
"public Parameter readNextParameter() throws IOException {\r\n Parameter result = null;\r\n \r\n try {\r\n boolean readingName = true;\r\n boolean readingValue = false;\r\n StringBuilder nameBuffer = new StringBuilder();\r\n StringBuilder valueBuffer = new StringBuilder();\r\n \r\n int nextChar = 0;\r\n while ((result == null) && (nextChar != -1)) {\r\n nextChar = this.stream.read();\r\n \r\n if (readingName) {\r\n if (nextChar == '=') {\r\n if (nameBuffer.length() > 0) {\r\n readingName = false;\r\n readingValue = true;\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else if ((nextChar == '&') || (nextChar == -1)) {\r\n if (nameBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n } else if (nextChar == -1) {\r\n // Do nothing return null preference\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else {\r\n nameBuffer.append((char) nextChar);\r\n }\r\n } else if (readingValue) {\r\n if ((nextChar == '&') || (nextChar == -1)) {\r\n if (valueBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, valueBuffer,\r\n this.decode, characterSet);\r\n } else {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n }\r\n } else {\r\n valueBuffer.append((char) nextChar);\r\n }\r\n }\r\n }\r\n } catch (UnsupportedEncodingException uee) {\r\n throw new IOException(\r\n \"Unsupported encoding. Please contact the administrator\");\r\n }\r\n \r\n return result;\r\n }",
"public InputStream post(String name1, Object value1, String name2, Object value2, String name3, Object value3) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2, name3, value3);\r\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public RawReader(final InputStream is, final int bufferSize) throws NullPointerException, IllegalArgumentException {\n\t\tif (is == null) {\n\t\t\tthrow new NullPointerException(\"Input stream can't be null\"); \n\t\t}\n\t\telse if (bufferSize <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"Buffer size [\"+bufferSize+\"] must be greater than 0\"); \n\t\t}\n\t\telse {\n\t\t\tthis.is = is;\n\t\t\tthis.buffer = new byte[bufferSize];\n\t\t}\n\t}",
"private BufferedReader\n\tgetStreamReader(\n\t\tInputStream\tinputStream)\n\t{\n\t\treturn(new BufferedReader(new InputStreamReader(inputStream)));\n\t}",
"public static ResourceData create(\n final InputStream stream,\n final Dictionary<String, Object> props)\n throws IOException {\n if ( stream == null ) {\n final Dictionary<String, Object> result = new Hashtable<String, Object>();\n final Enumeration<String> e = props.keys();\n while (e.hasMoreElements()) {\n final String key = e.nextElement();\n result.put(key, props.get(key));\n }\n return new ResourceData(result, null);\n\n }\n final File dataFile = FileDataStore.SHARED.createNewDataFile(stream,\n null, null, null);\n return new ResourceData(null, dataFile);\n }",
"public static <V extends Object> StreamParameter<V, StreamAccessParams<V, StreamData>, StreamData> newSP(\n Application app, Direction direction, StdIOStream stream, String prefix, String name, V value, int hashCode,\n ParameterMonitor monitor) {\n StreamAccessParams<V, StreamData> sap;\n sap = StreamAccessParams.constructStreamAP(app, direction, value, hashCode);\n return new StreamParameter(sap, DataType.STREAM_T, direction, stream, prefix, name, monitor);\n }",
"public PreparedCallableQuery setBinaryStream(String parameterName, InputStream inputStream, long length) throws SQLException {\r\n cstmt.setBinaryStream(parameterName, inputStream, length);\r\n\r\n return this;\r\n }",
"public PreparedCallableQuery setCharacterStream(String parameterName, Reader reader, long length) throws SQLException {\r\n cstmt.setCharacterStream(parameterName, reader, length);\r\n\r\n return this;\r\n }",
"Read createRead();",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public void loadParameters(StreamTokenizer tokenizer) throws IOException{\n \n //Grab the parameters\n int tokenType;\n tokenType = tokenizer.nextToken();\n int highValue = (int) tokenizer.nval;\n highSlider. setValue(highValue);\n highBox. setText(String. valueOf(highValue));\n highT = highValue;\n\n tokenType = tokenizer.nextToken();\n int lowValue = (int) tokenizer.nval;\n lowSlider. setValue(lowValue);\n lowBox. setText(String. valueOf(lowValue));\n lowT = lowValue;\n\n tokenType = tokenizer.nextToken();\n scaleMax = (int) tokenizer.nval;\n rescaleText.setText(String. valueOf(scaleMax));\n\n updateThreshold(lowSlider. getValue(), highSlider. getValue());\n\n //Repack the components in the interface\n parameters.pack();\n parameters.setVisible(false);\n }",
"public JsonObject readStream(HashMap<String,String> meta, String name, InputStream stream, long length, StringBuilder errors) {\n try{\n javax.json.JsonReader rdr = Json.createReader(stream);\n return rdr.readObject();}\n catch(Exception ex) {errors.append(ex.toString());}\n return null;}",
"public RawReader(final InputStream is) throws NullPointerException {\n\t\tthis(is, DEFAULT_BUFFER_SIZE);\n\t}",
"@Bean(name=\"com.glyde.mall.batch.job.sample.sampleParameterReader\")\n @StepScope\n public ItemReader<TestDto> sampleReader() throws Exception {\n\n return new MyBatisPagingItemReaderBuilder<TestDto>()\n .sqlSessionFactory(sqlSessionFactory)\n .pageSize(CHUNK_SIZE)\n .queryId(\"com.glyde.mall.batch.job.sample.mapper.TestMapper.select\")\n .build();\n }",
"@Override\n public DataStream<Row> getDataStream(StreamExecutionEnvironment execEnv) {\n if (useExtendField) {\n metadataKeys = Arrays.stream(ReadableMetadata.values()).map(x -> x.key).collect(Collectors.toList());\n applyReadableMetadata(metadataKeys, generateProducedDataType());\n producedTypeInfo = (TypeInformation<Row>) TypeConversions.fromDataTypeToLegacyInfo(producedDataType);\n }\n\n final PulsarRowDeserializationSchema.ReadableRowMetadataConverter[] metadataConverters = metadataKeys.stream()\n .map(k ->\n Stream.of(ReadableMetadata.values())\n .filter(rm -> rm.key.equals(k))\n .findFirst()\n .orElseThrow(IllegalStateException::new))\n .map(m -> m.converter)\n .toArray(PulsarRowDeserializationSchema.ReadableRowMetadataConverter[]::new);\n\n PulsarRowDeserializationSchema pulsarDeserializationSchema =\n new PulsarRowDeserializationSchema(deserializationSchema, metadataConverters.length > 0, metadataConverters, producedTypeInfo);\n //PulsarDeserializationSchema<Row> deserializer = getDeserializationSchema();\n FlinkPulsarSource<Row> source = new FlinkPulsarSource<>(serviceUrl, adminUrl, pulsarDeserializationSchema, properties);\n //FlinkPulsarRowSource source = new FlinkPulsarRowSource(serviceUrl, adminUrl, properties, deserializer);\n switch (startupMode) {\n case EARLIEST:\n source.setStartFromEarliest();\n break;\n case LATEST:\n source.setStartFromLatest();\n break;\n case SPECIFIC_OFFSETS:\n source.setStartFromSpecificOffsets(specificStartupOffsets);\n break;\n case EXTERNAL_SUBSCRIPTION:\n MessageId subscriptionPosition = MessageId.latest;\n if (CONNECTOR_STARTUP_MODE_VALUE_EARLIEST.equals(properties.get(CONNECTOR_EXTERNAL_SUB_DEFAULT_OFFSET))) {\n subscriptionPosition = MessageId.earliest;\n }\n source.setStartFromSubscription(externalSubscriptionName, subscriptionPosition);\n }\n\n return execEnv.addSource(source).name(explainSource());\n }",
"public void read(int param1, byte[] param2, int param3, int param4) {\n }",
"public SmooksDataLoader(final InputStream dataInputStream,\r\n final InputStream configInputStream, final Result result)\r\n {\r\n this.result = result;\r\n smooksConfigStream = new AutoCloseInputStream(configInputStream);\r\n dataFileStream = new StreamSource(new AutoCloseInputStream(\r\n dataInputStream));\r\n }",
"public StreamProcessorImpl(StreamSpec streamSpec) {\n this(streamSpec, new PreloadStreamDataReader());\n }",
"void read(StreamOption streamOpt);",
"public SqlFileParser(InputStream stream) {\n this.reader = new BufferedReader(new InputStreamReader(stream));\n }",
"public InputStream createInputStream(List<String> stopFilters) throws IOException\n {\n InputStream is = stream.createRawInputStream();\n List<Filter> someFilters = new ArrayList<>();\n List<COSName> filters = getFilters();\n for (COSName nextFilter : filters)\n {\n if (stopFilters != null && stopFilters.contains(nextFilter.getName()))\n {\n break;\n }\n someFilters.add(FilterFactory.INSTANCE.getFilter(nextFilter));\n }\n if (someFilters.isEmpty())\n {\n return is;\n }\n RandomAccessRead decoded = Filter.decode(is, someFilters, getCOSObject(),\n DecodeOptions.DEFAULT, null);\n return new RandomAccessInputStream(decoded);\n }",
"public PreparedCallableQuery setBinaryStream(String parameterName, InputStream inputStream) throws SQLException {\r\n cstmt.setBinaryStream(parameterName, inputStream);\r\n\r\n return this;\r\n }",
"private net.openhft.lang.io.Bytes toReader(ValueIn valueIn, Params... params) {\n\n // todo this is a bit of a hack\n final Bytes<?> bytes1 = valueIn.wireIn().bytes();\n final long inSize = bytes1.remaining();\n\n final net.openhft.lang.io.Bytes bytes = DirectStore.allocate(inSize + 1024).bytes();\n\n valueIn.marshallable(wire -> {\n\n for (Params p : params) {\n\n final ValueIn read = wire.read(p);\n\n final byte[] data = read.bytes();\n\n bytes.writeStopBit(data.length);\n bytes.write(data);\n }\n\n });\n\n\n return bytes.flip();\n }",
"private InputStream buildUpStream(final Object... args)\r\n\t{\n\t\tfinal StringBuilder builder = new StringBuilder(1000);\r\n\t\tfor (final Object arg : args)\r\n\t\t{\r\n\t\t\tbuilder.append(arg).append(CharUtils.CR);\r\n\t\t}\r\n\t\treturn new ByteArrayInputStream(builder.toString().getBytes());\r\n\t}",
"public InputStream post(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2, name3, value3, name4, value4);\r\n }",
"@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {\n\t\t\n\t}",
"public abstract StatDataFileReader createReaderInstance(Object extension)\n throws IOException;",
"public ModemReader (InputStream inputStream) {\n\t\t\tthis.inputStream = inputStream;\n\t\t\tsetResultStrings (null);\n\t\t}",
"public InputStream post(String name1, Object value1, String name2, Object value2) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2);\r\n }",
"public ReaderInputStream(Reader reader) {\n\t\t\tthis.reader = reader;\n\t\t\tencoder = UTF8.newEncoder();\n\t\t\tcharBuffer.limit(0);\n\t\t\tbyteBuffer.limit(0);\n\t\t}",
"public LineInputStream(InputStream is) {\n\t\tinputStream = is;\n\t}",
"public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value);\n }",
"public Object getReaderCtor(String paramString) {\n }",
"public ExecutableReader(InputStream is) throws Exception {\n\t\texStr = new ExecutableStream(is);\n\t\tread(exStr);\n\t}",
"protected abstract InputStream getStream(String resource);",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader, FrameIteratorFactory mediaReaderFactory) {\n this.streamSpec = streamSpec;\n metadataManager = new MetadataManager();\n streamListeners = new ArrayList<StreamListener>();\n this.dataReader = dataReader;\n this.frameIteratorFactory = mediaReaderFactory;\n }",
"public SqlCharStream(Reader r) {\n input = r;\n }",
"public PklFileReader(InputStream inputStream)\r\n\t{\r\n\t\tsetInputStream(inputStream);\r\n\t}",
"@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {\n\t\t\n\t}",
"public PreparedCallableQuery setAsciiStream(String parameterName, InputStream inputStream, long length) throws SQLException {\r\n cstmt.setAsciiStream(parameterName, inputStream, length);\r\n\r\n return this;\r\n }",
"void read(final DataInputStream in) throws IOException {\n // This code is tested over in TestHFileReaderV1 where we read an old hfile w/ this new code.\n int pblen = ProtobufUtil.lengthOfPBMagic();\n byte[] pbuf = new byte[pblen];\n if (in.markSupported()) in.mark(pblen);\n int read = in.read(pbuf);\n if (read != pblen) throw new IOException(\"read=\" + read + \", wanted=\" + pblen);\n if (ProtobufUtil.isPBMagicPrefix(pbuf)) {\n parsePB(HFileProtos.FileInfoProto.parseDelimitedFrom(in));\n } else {\n if (in.markSupported()) {\n in.reset();\n parseWritable(in);\n } else {\n // We cannot use BufferedInputStream, it consumes more than we read from the underlying IS\n ByteArrayInputStream bais = new ByteArrayInputStream(pbuf);\n SequenceInputStream sis = new SequenceInputStream(bais, in); // Concatenate input streams\n // TODO: Am I leaking anything here wrapping the passed in stream? We are not calling close on the wrapped\n // streams but they should be let go after we leave this context? I see that we keep a reference to the\n // passed in inputstream but since we no longer have a reference to this after we leave, we should be ok.\n parseWritable(new DataInputStream(sis));\n }\n }\n }",
"private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}",
"public RereadableInputStream(InputStream inputStream) {\n this(inputStream, DEFAULT_MAX_BYTES_IN_MEMORY, true);\n }",
"public PreparedCallableQuery setAsciiStream(String parameterName, InputStream inputStream) throws SQLException {\r\n cstmt.setAsciiStream(parameterName, inputStream);\r\n\r\n return this;\r\n }",
"public void putReaderCtor(String paramString, Procedure paramProcedure) {\n }",
"public Reader(Configuration conf, FSDataInputStream in, long length, \n\t\t\t CompressionCodec codec,\n\t\t\t Counters.Counter readsCounter) throws IOException {\n\t\treadRecordsCounter = readsCounter;\n\t\tchecksumIn = new IFileInputStream(in,length, conf);\n\t\tif (codec != null) {\n\t\t decompressor = CodecPool.getDecompressor(codec);\n\t\t if (decompressor != null) {\n\t\t\tthis.in = codec.createInputStream(checksumIn, decompressor);\n\t\t } else {\n\t\t\tLOG.warn(\"Could not obtain decompressor from CodecPool\");\n\t\t\tthis.in = checksumIn;\n\t\t }\n\t\t} else {\n\t\t this.in = checksumIn;\n\t\t}\n\t\tthis.dataIn = new DataInputStream(this.in);\n\t\tthis.fileLength = length;\n \n\t\tif (conf != null) {\n\t\t bufferSize = conf.getInt(\"io.file.buffer.size\", DEFAULT_BUFFER_SIZE);\n\t\t}\n\t }",
"public static NetFlowReader prepareReader(\n DataInputStream inputStream,\n int buffer,\n boolean ignoreCorruptFile) throws IOException {\n return new NetFlowReader(inputStream, buffer, ignoreCorruptFile);\n }",
"public interface IInputVaries {\n double[] getParams(BufferedReader br);\n}",
"@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}",
"public void readFromStream(Reader r) throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(r);\n\t\tlines=new ArrayList();\n\n\t\twhile(true) {\n\t\t\tString input=br.readLine();\n\t\t\tif(input==null)\n\t\t\t\tbreak;\n\t\t\tlines.add(input);\n\t\t}\n\t}",
"void deserializeContents(InputStream stream, ReaderType target) throws IOException {\n byte version = readByte(stream);\n val readVersion = this.versions[version];\n ensureCondition(readVersion != null, \"Unsupported version %d.\", version);\n\n byte revisionCount = readByte(stream);\n ensureCondition(revisionCount >= 0, \"Data corruption: negative revision count.\");\n\n int revisionIndex = 0;\n for (int i = 0; i < revisionCount; i++) {\n byte revision = readByte(stream);\n val rd = readVersion.get(revisionIndex++);\n try (RevisionDataInputStream revisionInput = RevisionDataInputStream.wrap(stream)) {\n if (rd != null) {\n // We've encountered an unknown revision; we cannot read anymore.\n ensureCondition(revision == rd.getRevision(),\n \"Unexpected revision. Expected %d, found %d.\", rd.getRevision(), revision);\n rd.getReader().accept(revisionInput, target);\n }\n }\n }\n }",
"protected void readConstructorParams( DataInput in ) throws\n\t\t\t\t\t\t\tIOException {\n }",
"public interface IterativeReader\n{\n /**\n * Constant which specifies that the IterativeReader/IterativeWriter is not\n * done with nextRead/nextWrite.\n */\n public static final int CONTINUE = 0;\n /**\n * Constant which specifies that the IterativeReader/IterativeWriter is done\n * with nextRead/nextWrite. This means that the reading/writing is complete\n * and further calls of nextRead/nextWrite are not expected.\n */\n public static final int STOP = 1;\n\n /**\n * Specifies that numBytes bytes are to be read. The InputStream to read\n * from should be stored in the implementing class.\n * @param numBytes Number of bytes to read. This is only indicative. The\n * implementor may read more or less. Reading too less impacts performance\n * due to repeated nextRead calls. Reading too much more than numBytes leads\n * to performance impact due to buffer reallocation in case of\n * SplitInputStream and an IOException due to Empty Buffer in an\n * OutStreamToIterativeReader.<p>\n *\n * The InputStream returned for use by an IterativeReader by directio's\n * classes implement {@link ByteCounter} which can help in keeping track of\n * the number of bytes read or remaining during a nextRead call.\n * @return {@link #CONTINUE} to indicate that there is more to be read and\n * STOP to indicate that the IterativeReader is done with reading.\n * @exception IOException In case of an error during read. Note that data\n * errors can also be handled by returning STOP and storing the error\n * instead of throwing an Exception. This may be desirable for a\n * SplitInputStream since the main Read can continue unhindered by the\n * SubStream's error.\n */\n public int nextRead(int numBytes) throws IOException;\n}",
"@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}",
"public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value, length);\n\n }",
"private void loadParameters() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new BufferedInputStream(Files.newInputStream(path))));\n\n\t\tdo {\n\t\t\tString line = reader.readLine();\n\t\t\tif (line == null || line.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (line.startsWith(\"--\") || line.startsWith(\" \")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString[] tokens = line.trim().split(\"\\\\s+\");\n\t\t\tparameters.put(Parameter.valueOf(tokens[0]), tokens[1]);\n\t\t} while (true);\n\n\t}",
"public abstract InputStream openStream(String str);",
"ParameterSink createParameterSink();",
"public ConcatReader(Reader in1, Reader in2){\r\n\t\taddReader(in1);\r\n\t\taddReader(in2);\r\n\t\tlastReaderAdded();\r\n\t}",
"public static DataInputStream getData(InputStream in) {\n return new DataInputStream(get(in));\n }"
] | [
"0.75495595",
"0.68988425",
"0.6472897",
"0.5735369",
"0.5651514",
"0.5592637",
"0.54718685",
"0.54197615",
"0.5405504",
"0.53343457",
"0.52658534",
"0.5265314",
"0.525635",
"0.5244415",
"0.52369106",
"0.5193158",
"0.51875824",
"0.5181577",
"0.5082846",
"0.50792986",
"0.5067939",
"0.5063496",
"0.5057037",
"0.5054402",
"0.50509334",
"0.50303674",
"0.50190794",
"0.4999347",
"0.4989424",
"0.49573684",
"0.49508274",
"0.49468684",
"0.4944599",
"0.49375424",
"0.49316573",
"0.4923242",
"0.49173692",
"0.4913064",
"0.4907545",
"0.4896208",
"0.48910084",
"0.488079",
"0.48744234",
"0.4866943",
"0.48631448",
"0.48545244",
"0.4854083",
"0.4854083",
"0.4854083",
"0.4854083",
"0.48458168",
"0.48374414",
"0.48371366",
"0.4835732",
"0.4818527",
"0.4817457",
"0.48019615",
"0.4798121",
"0.4797484",
"0.4777469",
"0.47753832",
"0.47640043",
"0.4762372",
"0.47593158",
"0.4739674",
"0.47293106",
"0.47273177",
"0.4718082",
"0.4702456",
"0.46955848",
"0.4694531",
"0.46934894",
"0.46775356",
"0.46758822",
"0.46751705",
"0.46725824",
"0.46719712",
"0.46644825",
"0.46634388",
"0.466197",
"0.46572933",
"0.4639857",
"0.46305138",
"0.46100777",
"0.4599033",
"0.459493",
"0.45846096",
"0.45842326",
"0.4578053",
"0.457621",
"0.4574254",
"0.45613697",
"0.4557714",
"0.45543557",
"0.45424736",
"0.4535916",
"0.4528589",
"0.4524811",
"0.45236638",
"0.45161304"
] | 0.66025466 | 2 |
Creates a parameter reader that will read the provided data streams. If more than one data stream is passed to the reader multiple occurrences of the same parameter will cause the parameter value to be overwritten with the new value. | public XmlParameterReader(boolean debug, InputStream... dataStreams) throws IOException
{
this(debug, null, dataStreams);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlParameterReader(InputStream... dataStreams) throws IOException\n {\n this(false, null, dataStreams);\n }",
"public XmlParameterReader(String rootNamespace, InputStream... dataStreams) throws IOException\n {\n this(false, rootNamespace, dataStreams);\n }",
"public XmlParameterReader(boolean debug, String rootNamespace, InputStream... dataStreams) throws IOException\n {\n this.debug = debug;\n this.rootNamespace = rootNamespace;\n\n for (InputStream dataStream : dataStreams)\n {\n readStream(dataStream, false);\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void readParameters(Map<String, Object> parameters)\r\n throws IOException {\r\n Parameter param = readNextParameter();\r\n Object currentValue = null;\r\n \r\n while (param != null) {\r\n if (parameters.containsKey(param.getName())) {\r\n currentValue = parameters.get(param.getName());\r\n \r\n if (currentValue != null) {\r\n List<Object> values = null;\r\n \r\n if (currentValue instanceof List) {\r\n // Multiple values already found for this parameter\r\n values = (List) currentValue;\r\n } else {\r\n // Second value found for this parameter\r\n // Create a list of values\r\n values = new ArrayList<Object>();\r\n values.add(currentValue);\r\n parameters.put(param.getName(), values);\r\n }\r\n \r\n if (param.getValue() == null) {\r\n values.add(Series.EMPTY_VALUE);\r\n } else {\r\n values.add(param.getValue());\r\n }\r\n } else {\r\n if (param.getValue() == null) {\r\n parameters.put(param.getName(), Series.EMPTY_VALUE);\r\n } else {\r\n parameters.put(param.getName(), param.getValue());\r\n }\r\n }\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n }",
"DataStreams createDataStreams();",
"@SuppressWarnings(\"unchecked\")\r\n public Object readParameter(String name) throws IOException {\r\n Parameter param = readNextParameter();\r\n Object result = null;\r\n \r\n while (param != null) {\r\n if (param.getName().equals(name)) {\r\n if (result != null) {\r\n List<Object> values = null;\r\n \r\n if (result instanceof List) {\r\n // Multiple values already found for this parameter\r\n values = (List) result;\r\n } else {\r\n // Second value found for this parameter\r\n // Create a list of values\r\n values = new ArrayList<Object>();\r\n values.add(result);\r\n result = values;\r\n }\r\n \r\n if (param.getValue() == null) {\r\n values.add(Series.EMPTY_VALUE);\r\n } else {\r\n values.add(param.getValue());\r\n }\r\n } else {\r\n if (param.getValue() == null) {\r\n result = Series.EMPTY_VALUE;\r\n } else {\r\n result = param.getValue();\r\n }\r\n }\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n return result;\r\n }",
"@FunctionalInterface\n protected interface StreamReader<ReaderType> {\n void accept(RevisionDataInput input, ReaderType target) throws IOException;\n }",
"public static NetFlowReader prepareReader(DataInputStream inputStream) throws IOException {\n return prepareReader(inputStream, RecordBuffer.BUFFER_LENGTH_2, false);\n }",
"public void readParameters()\n {\n readParameters(getData());\n }",
"public static NetFlowReader prepareReader(\n DataInputStream inputStream,\n int buffer) throws IOException {\n return prepareReader(inputStream, buffer, false);\n }",
"public void _read( org.omg.CORBA.portable.InputStream is )\r\n {\r\n super._read( is );\r\n try\r\n {\r\n m_params = ParameterSequenceHelper.read(is);\r\n\t m_default = is.read_string( );\r\n }\r\n catch( Throwable _input_read_exception_ )\r\n {\r\n throw new RuntimeException(\r\n \"Error reading input stream for '\"\r\n + \"net.osm.factory.FactoryValue', due to: \" \r\n + _input_read_exception_.toString() );\r\n }\r\n }",
"private static BufferedReader newReader(InputStream stream) {\n return new BufferedReader(new InputStreamReader(stream));\n }",
"ParameterSource createParameterSource();",
"public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }",
"StreamReader underlyingReader();",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {\n\t\t\n\t}",
"static Reader createReaderFromStream(Path path, FSDataInputStream fsdis, long size,\n CacheConfig cacheConf, Configuration conf) throws IOException {\n FSDataInputStreamWrapper wrapper = new FSDataInputStreamWrapper(fsdis);\n return pickReaderVersion(path, wrapper, size, cacheConf, null, conf);\n }",
"public PreparedCallableQuery setNCharacterStream(String parameterName, Reader reader) throws SQLException {\r\n cstmt.setNCharacterStream(parameterName, reader);\r\n\r\n return this;\r\n }",
"public ExecutableReader(ExecutableStream stream) throws Exception {\n\t\texStr = stream;\n\t\tread(stream);\n\t}",
"public void readData(InputStream inStream);",
"XMLStreamReader createXMLStreamReader(DataObject sdo);",
"InputStream getDataStream();",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader) {\n this(streamSpec, dataReader, new FrameIteratorFactory());\n }",
"@Provides\r\n public DataInput provideInputReader() {\r\n DataInput input = null;\r\n final Reader inRdr = inReader;\r\n if ((inRdr != null) && (inputFormat != null)) {\r\n if (\"csv\".equalsIgnoreCase(inputFormat))\r\n input = new CSVDataInput(inRdr);\r\n else if (\"json\".equalsIgnoreCase(inputFormat))\r\n input = new JSONDataInput(inRdr);\r\n else\r\n throw new IllegalArgumentException(\"Input format \"\r\n + inputFormat + \" not supported.\"\r\n + \" Valid types are csv, json\");\r\n input.verboseOptions(verboseStream, verbose);\r\n }\r\n return input;\r\n }",
"public ReaderInputStream(Reader reader) {\n if (reader == null) {\n throw new IllegalArgumentException(\"reader must not be null\");\n }\n in = reader;\n }",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n\t\t\n\t}",
"public PreparedCallableQuery setCharacterStream(String parameterName, Reader reader) throws SQLException {\r\n cstmt.setCharacterStream(parameterName, reader);\r\n\r\n return this;\r\n }",
"public Parameter readFirstParameter(String name) throws IOException {\r\n Parameter param = readNextParameter();\r\n Parameter result = null;\r\n \r\n while ((param != null) && (result == null)) {\r\n if (param.getName().equals(name)) {\r\n result = param;\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n return result;\r\n }",
"public PreparedCallableQuery setNCharacterStream(String parameterName, Reader reader, long length) throws SQLException {\r\n cstmt.setNCharacterStream(parameterName, reader, length);\r\n\r\n return this;\r\n }",
"public ReaderInputStream(Reader reader, String encoding) {\n this(reader);\n this.encoding = encoding;\n }",
"protected d a(InputStream paramInputStream, int paramInt) {\n }",
"private static IIteratingChemObjectReader<IAtomContainer> getInputReader(\n ArgumentHandler argsH, IChemObjectBuilder builder) throws FileNotFoundException {\n DataFormat inputFormat = argsH.getInputFormat();\n IIteratingChemObjectReader<IAtomContainer> reader;\n String filepath = argsH.getInputFilepath();\n InputStream in = new FileInputStream(filepath);\n switch (inputFormat) {\n case SMILES: reader = new IteratingSMILESReader(in, builder); break;\n case SIGNATURE: reader = new IteratingSignatureReader(in, builder); break;\n case SDF: reader = new IteratingSDFReader(in, builder); break;\n case ACP: reader = new IteratingACPReader(in, builder); break;\n default: reader = null; error(\"Unrecognised format\"); break;\n }\n return reader;\n }",
"private IntStream createStream() {\n DataInputStream dataInputStream = null;\n try {\n dataInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found\");\n }\n DataInputStream finalDin = dataInputStream;\n return IntStream.generate(() -> {\n try {\n assert finalDin != null;\n return finalDin.readInt();\n } catch (IOException e) {\n System.out.println(\"Stream problem\");\n }\n return 0;\n })\n .limit(20);\n }",
"public StreamReader(InputStream input) throws IOException {\r\n\t\tthis.setInput(input);\r\n\t}",
"@Override\n\tpublic void read(InStream inStream) {\n\t}",
"public StreamReader() {}",
"public Parameter readNextParameter() throws IOException {\r\n Parameter result = null;\r\n \r\n try {\r\n boolean readingName = true;\r\n boolean readingValue = false;\r\n StringBuilder nameBuffer = new StringBuilder();\r\n StringBuilder valueBuffer = new StringBuilder();\r\n \r\n int nextChar = 0;\r\n while ((result == null) && (nextChar != -1)) {\r\n nextChar = this.stream.read();\r\n \r\n if (readingName) {\r\n if (nextChar == '=') {\r\n if (nameBuffer.length() > 0) {\r\n readingName = false;\r\n readingValue = true;\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else if ((nextChar == '&') || (nextChar == -1)) {\r\n if (nameBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n } else if (nextChar == -1) {\r\n // Do nothing return null preference\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else {\r\n nameBuffer.append((char) nextChar);\r\n }\r\n } else if (readingValue) {\r\n if ((nextChar == '&') || (nextChar == -1)) {\r\n if (valueBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, valueBuffer,\r\n this.decode, characterSet);\r\n } else {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n }\r\n } else {\r\n valueBuffer.append((char) nextChar);\r\n }\r\n }\r\n }\r\n } catch (UnsupportedEncodingException uee) {\r\n throw new IOException(\r\n \"Unsupported encoding. Please contact the administrator\");\r\n }\r\n \r\n return result;\r\n }",
"public InputStream post(String name1, Object value1, String name2, Object value2, String name3, Object value3) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2, name3, value3);\r\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public RawReader(final InputStream is, final int bufferSize) throws NullPointerException, IllegalArgumentException {\n\t\tif (is == null) {\n\t\t\tthrow new NullPointerException(\"Input stream can't be null\"); \n\t\t}\n\t\telse if (bufferSize <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"Buffer size [\"+bufferSize+\"] must be greater than 0\"); \n\t\t}\n\t\telse {\n\t\t\tthis.is = is;\n\t\t\tthis.buffer = new byte[bufferSize];\n\t\t}\n\t}",
"private BufferedReader\n\tgetStreamReader(\n\t\tInputStream\tinputStream)\n\t{\n\t\treturn(new BufferedReader(new InputStreamReader(inputStream)));\n\t}",
"public static ResourceData create(\n final InputStream stream,\n final Dictionary<String, Object> props)\n throws IOException {\n if ( stream == null ) {\n final Dictionary<String, Object> result = new Hashtable<String, Object>();\n final Enumeration<String> e = props.keys();\n while (e.hasMoreElements()) {\n final String key = e.nextElement();\n result.put(key, props.get(key));\n }\n return new ResourceData(result, null);\n\n }\n final File dataFile = FileDataStore.SHARED.createNewDataFile(stream,\n null, null, null);\n return new ResourceData(null, dataFile);\n }",
"public static <V extends Object> StreamParameter<V, StreamAccessParams<V, StreamData>, StreamData> newSP(\n Application app, Direction direction, StdIOStream stream, String prefix, String name, V value, int hashCode,\n ParameterMonitor monitor) {\n StreamAccessParams<V, StreamData> sap;\n sap = StreamAccessParams.constructStreamAP(app, direction, value, hashCode);\n return new StreamParameter(sap, DataType.STREAM_T, direction, stream, prefix, name, monitor);\n }",
"public PreparedCallableQuery setBinaryStream(String parameterName, InputStream inputStream, long length) throws SQLException {\r\n cstmt.setBinaryStream(parameterName, inputStream, length);\r\n\r\n return this;\r\n }",
"public PreparedCallableQuery setCharacterStream(String parameterName, Reader reader, long length) throws SQLException {\r\n cstmt.setCharacterStream(parameterName, reader, length);\r\n\r\n return this;\r\n }",
"Read createRead();",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public void loadParameters(StreamTokenizer tokenizer) throws IOException{\n \n //Grab the parameters\n int tokenType;\n tokenType = tokenizer.nextToken();\n int highValue = (int) tokenizer.nval;\n highSlider. setValue(highValue);\n highBox. setText(String. valueOf(highValue));\n highT = highValue;\n\n tokenType = tokenizer.nextToken();\n int lowValue = (int) tokenizer.nval;\n lowSlider. setValue(lowValue);\n lowBox. setText(String. valueOf(lowValue));\n lowT = lowValue;\n\n tokenType = tokenizer.nextToken();\n scaleMax = (int) tokenizer.nval;\n rescaleText.setText(String. valueOf(scaleMax));\n\n updateThreshold(lowSlider. getValue(), highSlider. getValue());\n\n //Repack the components in the interface\n parameters.pack();\n parameters.setVisible(false);\n }",
"public JsonObject readStream(HashMap<String,String> meta, String name, InputStream stream, long length, StringBuilder errors) {\n try{\n javax.json.JsonReader rdr = Json.createReader(stream);\n return rdr.readObject();}\n catch(Exception ex) {errors.append(ex.toString());}\n return null;}",
"public RawReader(final InputStream is) throws NullPointerException {\n\t\tthis(is, DEFAULT_BUFFER_SIZE);\n\t}",
"@Bean(name=\"com.glyde.mall.batch.job.sample.sampleParameterReader\")\n @StepScope\n public ItemReader<TestDto> sampleReader() throws Exception {\n\n return new MyBatisPagingItemReaderBuilder<TestDto>()\n .sqlSessionFactory(sqlSessionFactory)\n .pageSize(CHUNK_SIZE)\n .queryId(\"com.glyde.mall.batch.job.sample.mapper.TestMapper.select\")\n .build();\n }",
"@Override\n public DataStream<Row> getDataStream(StreamExecutionEnvironment execEnv) {\n if (useExtendField) {\n metadataKeys = Arrays.stream(ReadableMetadata.values()).map(x -> x.key).collect(Collectors.toList());\n applyReadableMetadata(metadataKeys, generateProducedDataType());\n producedTypeInfo = (TypeInformation<Row>) TypeConversions.fromDataTypeToLegacyInfo(producedDataType);\n }\n\n final PulsarRowDeserializationSchema.ReadableRowMetadataConverter[] metadataConverters = metadataKeys.stream()\n .map(k ->\n Stream.of(ReadableMetadata.values())\n .filter(rm -> rm.key.equals(k))\n .findFirst()\n .orElseThrow(IllegalStateException::new))\n .map(m -> m.converter)\n .toArray(PulsarRowDeserializationSchema.ReadableRowMetadataConverter[]::new);\n\n PulsarRowDeserializationSchema pulsarDeserializationSchema =\n new PulsarRowDeserializationSchema(deserializationSchema, metadataConverters.length > 0, metadataConverters, producedTypeInfo);\n //PulsarDeserializationSchema<Row> deserializer = getDeserializationSchema();\n FlinkPulsarSource<Row> source = new FlinkPulsarSource<>(serviceUrl, adminUrl, pulsarDeserializationSchema, properties);\n //FlinkPulsarRowSource source = new FlinkPulsarRowSource(serviceUrl, adminUrl, properties, deserializer);\n switch (startupMode) {\n case EARLIEST:\n source.setStartFromEarliest();\n break;\n case LATEST:\n source.setStartFromLatest();\n break;\n case SPECIFIC_OFFSETS:\n source.setStartFromSpecificOffsets(specificStartupOffsets);\n break;\n case EXTERNAL_SUBSCRIPTION:\n MessageId subscriptionPosition = MessageId.latest;\n if (CONNECTOR_STARTUP_MODE_VALUE_EARLIEST.equals(properties.get(CONNECTOR_EXTERNAL_SUB_DEFAULT_OFFSET))) {\n subscriptionPosition = MessageId.earliest;\n }\n source.setStartFromSubscription(externalSubscriptionName, subscriptionPosition);\n }\n\n return execEnv.addSource(source).name(explainSource());\n }",
"public void read(int param1, byte[] param2, int param3, int param4) {\n }",
"public SmooksDataLoader(final InputStream dataInputStream,\r\n final InputStream configInputStream, final Result result)\r\n {\r\n this.result = result;\r\n smooksConfigStream = new AutoCloseInputStream(configInputStream);\r\n dataFileStream = new StreamSource(new AutoCloseInputStream(\r\n dataInputStream));\r\n }",
"public StreamProcessorImpl(StreamSpec streamSpec) {\n this(streamSpec, new PreloadStreamDataReader());\n }",
"void read(StreamOption streamOpt);",
"public SqlFileParser(InputStream stream) {\n this.reader = new BufferedReader(new InputStreamReader(stream));\n }",
"public InputStream createInputStream(List<String> stopFilters) throws IOException\n {\n InputStream is = stream.createRawInputStream();\n List<Filter> someFilters = new ArrayList<>();\n List<COSName> filters = getFilters();\n for (COSName nextFilter : filters)\n {\n if (stopFilters != null && stopFilters.contains(nextFilter.getName()))\n {\n break;\n }\n someFilters.add(FilterFactory.INSTANCE.getFilter(nextFilter));\n }\n if (someFilters.isEmpty())\n {\n return is;\n }\n RandomAccessRead decoded = Filter.decode(is, someFilters, getCOSObject(),\n DecodeOptions.DEFAULT, null);\n return new RandomAccessInputStream(decoded);\n }",
"public PreparedCallableQuery setBinaryStream(String parameterName, InputStream inputStream) throws SQLException {\r\n cstmt.setBinaryStream(parameterName, inputStream);\r\n\r\n return this;\r\n }",
"private net.openhft.lang.io.Bytes toReader(ValueIn valueIn, Params... params) {\n\n // todo this is a bit of a hack\n final Bytes<?> bytes1 = valueIn.wireIn().bytes();\n final long inSize = bytes1.remaining();\n\n final net.openhft.lang.io.Bytes bytes = DirectStore.allocate(inSize + 1024).bytes();\n\n valueIn.marshallable(wire -> {\n\n for (Params p : params) {\n\n final ValueIn read = wire.read(p);\n\n final byte[] data = read.bytes();\n\n bytes.writeStopBit(data.length);\n bytes.write(data);\n }\n\n });\n\n\n return bytes.flip();\n }",
"private InputStream buildUpStream(final Object... args)\r\n\t{\n\t\tfinal StringBuilder builder = new StringBuilder(1000);\r\n\t\tfor (final Object arg : args)\r\n\t\t{\r\n\t\t\tbuilder.append(arg).append(CharUtils.CR);\r\n\t\t}\r\n\t\treturn new ByteArrayInputStream(builder.toString().getBytes());\r\n\t}",
"public InputStream post(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2, name3, value3, name4, value4);\r\n }",
"@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {\n\t\t\n\t}",
"public abstract StatDataFileReader createReaderInstance(Object extension)\n throws IOException;",
"public ModemReader (InputStream inputStream) {\n\t\t\tthis.inputStream = inputStream;\n\t\t\tsetResultStrings (null);\n\t\t}",
"public InputStream post(String name1, Object value1, String name2, Object value2) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2);\r\n }",
"public ReaderInputStream(Reader reader) {\n\t\t\tthis.reader = reader;\n\t\t\tencoder = UTF8.newEncoder();\n\t\t\tcharBuffer.limit(0);\n\t\t\tbyteBuffer.limit(0);\n\t\t}",
"public LineInputStream(InputStream is) {\n\t\tinputStream = is;\n\t}",
"public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value);\n }",
"public Object getReaderCtor(String paramString) {\n }",
"public ExecutableReader(InputStream is) throws Exception {\n\t\texStr = new ExecutableStream(is);\n\t\tread(exStr);\n\t}",
"protected abstract InputStream getStream(String resource);",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader, FrameIteratorFactory mediaReaderFactory) {\n this.streamSpec = streamSpec;\n metadataManager = new MetadataManager();\n streamListeners = new ArrayList<StreamListener>();\n this.dataReader = dataReader;\n this.frameIteratorFactory = mediaReaderFactory;\n }",
"public SqlCharStream(Reader r) {\n input = r;\n }",
"@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {\n\t\t\n\t}",
"public PklFileReader(InputStream inputStream)\r\n\t{\r\n\t\tsetInputStream(inputStream);\r\n\t}",
"public PreparedCallableQuery setAsciiStream(String parameterName, InputStream inputStream, long length) throws SQLException {\r\n cstmt.setAsciiStream(parameterName, inputStream, length);\r\n\r\n return this;\r\n }",
"void read(final DataInputStream in) throws IOException {\n // This code is tested over in TestHFileReaderV1 where we read an old hfile w/ this new code.\n int pblen = ProtobufUtil.lengthOfPBMagic();\n byte[] pbuf = new byte[pblen];\n if (in.markSupported()) in.mark(pblen);\n int read = in.read(pbuf);\n if (read != pblen) throw new IOException(\"read=\" + read + \", wanted=\" + pblen);\n if (ProtobufUtil.isPBMagicPrefix(pbuf)) {\n parsePB(HFileProtos.FileInfoProto.parseDelimitedFrom(in));\n } else {\n if (in.markSupported()) {\n in.reset();\n parseWritable(in);\n } else {\n // We cannot use BufferedInputStream, it consumes more than we read from the underlying IS\n ByteArrayInputStream bais = new ByteArrayInputStream(pbuf);\n SequenceInputStream sis = new SequenceInputStream(bais, in); // Concatenate input streams\n // TODO: Am I leaking anything here wrapping the passed in stream? We are not calling close on the wrapped\n // streams but they should be let go after we leave this context? I see that we keep a reference to the\n // passed in inputstream but since we no longer have a reference to this after we leave, we should be ok.\n parseWritable(new DataInputStream(sis));\n }\n }\n }",
"private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}",
"public RereadableInputStream(InputStream inputStream) {\n this(inputStream, DEFAULT_MAX_BYTES_IN_MEMORY, true);\n }",
"public PreparedCallableQuery setAsciiStream(String parameterName, InputStream inputStream) throws SQLException {\r\n cstmt.setAsciiStream(parameterName, inputStream);\r\n\r\n return this;\r\n }",
"public void putReaderCtor(String paramString, Procedure paramProcedure) {\n }",
"public Reader(Configuration conf, FSDataInputStream in, long length, \n\t\t\t CompressionCodec codec,\n\t\t\t Counters.Counter readsCounter) throws IOException {\n\t\treadRecordsCounter = readsCounter;\n\t\tchecksumIn = new IFileInputStream(in,length, conf);\n\t\tif (codec != null) {\n\t\t decompressor = CodecPool.getDecompressor(codec);\n\t\t if (decompressor != null) {\n\t\t\tthis.in = codec.createInputStream(checksumIn, decompressor);\n\t\t } else {\n\t\t\tLOG.warn(\"Could not obtain decompressor from CodecPool\");\n\t\t\tthis.in = checksumIn;\n\t\t }\n\t\t} else {\n\t\t this.in = checksumIn;\n\t\t}\n\t\tthis.dataIn = new DataInputStream(this.in);\n\t\tthis.fileLength = length;\n \n\t\tif (conf != null) {\n\t\t bufferSize = conf.getInt(\"io.file.buffer.size\", DEFAULT_BUFFER_SIZE);\n\t\t}\n\t }",
"public static NetFlowReader prepareReader(\n DataInputStream inputStream,\n int buffer,\n boolean ignoreCorruptFile) throws IOException {\n return new NetFlowReader(inputStream, buffer, ignoreCorruptFile);\n }",
"public interface IInputVaries {\n double[] getParams(BufferedReader br);\n}",
"@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}",
"void deserializeContents(InputStream stream, ReaderType target) throws IOException {\n byte version = readByte(stream);\n val readVersion = this.versions[version];\n ensureCondition(readVersion != null, \"Unsupported version %d.\", version);\n\n byte revisionCount = readByte(stream);\n ensureCondition(revisionCount >= 0, \"Data corruption: negative revision count.\");\n\n int revisionIndex = 0;\n for (int i = 0; i < revisionCount; i++) {\n byte revision = readByte(stream);\n val rd = readVersion.get(revisionIndex++);\n try (RevisionDataInputStream revisionInput = RevisionDataInputStream.wrap(stream)) {\n if (rd != null) {\n // We've encountered an unknown revision; we cannot read anymore.\n ensureCondition(revision == rd.getRevision(),\n \"Unexpected revision. Expected %d, found %d.\", rd.getRevision(), revision);\n rd.getReader().accept(revisionInput, target);\n }\n }\n }\n }",
"public void readFromStream(Reader r) throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(r);\n\t\tlines=new ArrayList();\n\n\t\twhile(true) {\n\t\t\tString input=br.readLine();\n\t\t\tif(input==null)\n\t\t\t\tbreak;\n\t\t\tlines.add(input);\n\t\t}\n\t}",
"protected void readConstructorParams( DataInput in ) throws\n\t\t\t\t\t\t\tIOException {\n }",
"public interface IterativeReader\n{\n /**\n * Constant which specifies that the IterativeReader/IterativeWriter is not\n * done with nextRead/nextWrite.\n */\n public static final int CONTINUE = 0;\n /**\n * Constant which specifies that the IterativeReader/IterativeWriter is done\n * with nextRead/nextWrite. This means that the reading/writing is complete\n * and further calls of nextRead/nextWrite are not expected.\n */\n public static final int STOP = 1;\n\n /**\n * Specifies that numBytes bytes are to be read. The InputStream to read\n * from should be stored in the implementing class.\n * @param numBytes Number of bytes to read. This is only indicative. The\n * implementor may read more or less. Reading too less impacts performance\n * due to repeated nextRead calls. Reading too much more than numBytes leads\n * to performance impact due to buffer reallocation in case of\n * SplitInputStream and an IOException due to Empty Buffer in an\n * OutStreamToIterativeReader.<p>\n *\n * The InputStream returned for use by an IterativeReader by directio's\n * classes implement {@link ByteCounter} which can help in keeping track of\n * the number of bytes read or remaining during a nextRead call.\n * @return {@link #CONTINUE} to indicate that there is more to be read and\n * STOP to indicate that the IterativeReader is done with reading.\n * @exception IOException In case of an error during read. Note that data\n * errors can also be handled by returning STOP and storing the error\n * instead of throwing an Exception. This may be desirable for a\n * SplitInputStream since the main Read can continue unhindered by the\n * SubStream's error.\n */\n public int nextRead(int numBytes) throws IOException;\n}",
"@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}",
"public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value, length);\n\n }",
"private void loadParameters() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new BufferedInputStream(Files.newInputStream(path))));\n\n\t\tdo {\n\t\t\tString line = reader.readLine();\n\t\t\tif (line == null || line.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (line.startsWith(\"--\") || line.startsWith(\" \")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString[] tokens = line.trim().split(\"\\\\s+\");\n\t\t\tparameters.put(Parameter.valueOf(tokens[0]), tokens[1]);\n\t\t} while (true);\n\n\t}",
"public abstract InputStream openStream(String str);",
"ParameterSink createParameterSink();",
"public ConcatReader(Reader in1, Reader in2){\r\n\t\taddReader(in1);\r\n\t\taddReader(in2);\r\n\t\tlastReaderAdded();\r\n\t}",
"public static DataInputStream getData(InputStream in) {\n return new DataInputStream(get(in));\n }"
] | [
"0.7549681",
"0.66024965",
"0.6473497",
"0.57354647",
"0.56514084",
"0.55924016",
"0.547211",
"0.54195327",
"0.5406395",
"0.533431",
"0.52657104",
"0.5264341",
"0.52564144",
"0.5243621",
"0.52356184",
"0.51939887",
"0.51870495",
"0.51824635",
"0.5082966",
"0.50804126",
"0.50681293",
"0.50646144",
"0.5057927",
"0.50545406",
"0.5050117",
"0.50312716",
"0.5020324",
"0.49988344",
"0.49901342",
"0.49562952",
"0.4951163",
"0.49473557",
"0.49439827",
"0.4936927",
"0.49318564",
"0.4922853",
"0.4917498",
"0.49129534",
"0.4906495",
"0.48959932",
"0.4889407",
"0.48812023",
"0.4875115",
"0.48685017",
"0.4864161",
"0.48541063",
"0.48530653",
"0.48530653",
"0.48530653",
"0.48530653",
"0.48459113",
"0.48366576",
"0.4836489",
"0.4835645",
"0.48191983",
"0.48178008",
"0.48019704",
"0.4798054",
"0.479732",
"0.47774324",
"0.47739065",
"0.4765756",
"0.4762795",
"0.4759412",
"0.4739335",
"0.47299752",
"0.47272286",
"0.47179192",
"0.47022265",
"0.46946138",
"0.469406",
"0.46938863",
"0.4677099",
"0.46752015",
"0.46741804",
"0.4672828",
"0.46720767",
"0.4664153",
"0.46640232",
"0.46637103",
"0.465823",
"0.4640559",
"0.46300474",
"0.4611933",
"0.45989603",
"0.4595058",
"0.45844698",
"0.4584346",
"0.45777142",
"0.4575074",
"0.45748544",
"0.456193",
"0.45573238",
"0.45563036",
"0.45428613",
"0.4535992",
"0.45282587",
"0.45246306",
"0.45227182",
"0.4517216"
] | 0.68997926 | 1 |
Creates a parameter reader that will read the provided data streams. If more than one data stream is passed to the reader multiple occurrences of the same parameter will cause the parameter value to be overwritten with the new value. | public XmlParameterReader(boolean debug, String rootNamespace, InputStream... dataStreams) throws IOException
{
this.debug = debug;
this.rootNamespace = rootNamespace;
for (InputStream dataStream : dataStreams)
{
readStream(dataStream, false);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlParameterReader(InputStream... dataStreams) throws IOException\n {\n this(false, null, dataStreams);\n }",
"public XmlParameterReader(boolean debug, InputStream... dataStreams) throws IOException\n {\n this(debug, null, dataStreams);\n }",
"public XmlParameterReader(String rootNamespace, InputStream... dataStreams) throws IOException\n {\n this(false, rootNamespace, dataStreams);\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void readParameters(Map<String, Object> parameters)\r\n throws IOException {\r\n Parameter param = readNextParameter();\r\n Object currentValue = null;\r\n \r\n while (param != null) {\r\n if (parameters.containsKey(param.getName())) {\r\n currentValue = parameters.get(param.getName());\r\n \r\n if (currentValue != null) {\r\n List<Object> values = null;\r\n \r\n if (currentValue instanceof List) {\r\n // Multiple values already found for this parameter\r\n values = (List) currentValue;\r\n } else {\r\n // Second value found for this parameter\r\n // Create a list of values\r\n values = new ArrayList<Object>();\r\n values.add(currentValue);\r\n parameters.put(param.getName(), values);\r\n }\r\n \r\n if (param.getValue() == null) {\r\n values.add(Series.EMPTY_VALUE);\r\n } else {\r\n values.add(param.getValue());\r\n }\r\n } else {\r\n if (param.getValue() == null) {\r\n parameters.put(param.getName(), Series.EMPTY_VALUE);\r\n } else {\r\n parameters.put(param.getName(), param.getValue());\r\n }\r\n }\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n }",
"DataStreams createDataStreams();",
"@SuppressWarnings(\"unchecked\")\r\n public Object readParameter(String name) throws IOException {\r\n Parameter param = readNextParameter();\r\n Object result = null;\r\n \r\n while (param != null) {\r\n if (param.getName().equals(name)) {\r\n if (result != null) {\r\n List<Object> values = null;\r\n \r\n if (result instanceof List) {\r\n // Multiple values already found for this parameter\r\n values = (List) result;\r\n } else {\r\n // Second value found for this parameter\r\n // Create a list of values\r\n values = new ArrayList<Object>();\r\n values.add(result);\r\n result = values;\r\n }\r\n \r\n if (param.getValue() == null) {\r\n values.add(Series.EMPTY_VALUE);\r\n } else {\r\n values.add(param.getValue());\r\n }\r\n } else {\r\n if (param.getValue() == null) {\r\n result = Series.EMPTY_VALUE;\r\n } else {\r\n result = param.getValue();\r\n }\r\n }\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n return result;\r\n }",
"@FunctionalInterface\n protected interface StreamReader<ReaderType> {\n void accept(RevisionDataInput input, ReaderType target) throws IOException;\n }",
"public static NetFlowReader prepareReader(DataInputStream inputStream) throws IOException {\n return prepareReader(inputStream, RecordBuffer.BUFFER_LENGTH_2, false);\n }",
"public void readParameters()\n {\n readParameters(getData());\n }",
"public static NetFlowReader prepareReader(\n DataInputStream inputStream,\n int buffer) throws IOException {\n return prepareReader(inputStream, buffer, false);\n }",
"private static BufferedReader newReader(InputStream stream) {\n return new BufferedReader(new InputStreamReader(stream));\n }",
"public void _read( org.omg.CORBA.portable.InputStream is )\r\n {\r\n super._read( is );\r\n try\r\n {\r\n m_params = ParameterSequenceHelper.read(is);\r\n\t m_default = is.read_string( );\r\n }\r\n catch( Throwable _input_read_exception_ )\r\n {\r\n throw new RuntimeException(\r\n \"Error reading input stream for '\"\r\n + \"net.osm.factory.FactoryValue', due to: \" \r\n + _input_read_exception_.toString() );\r\n }\r\n }",
"ParameterSource createParameterSource();",
"public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }",
"StreamReader underlyingReader();",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {\n\t\t\n\t}",
"static Reader createReaderFromStream(Path path, FSDataInputStream fsdis, long size,\n CacheConfig cacheConf, Configuration conf) throws IOException {\n FSDataInputStreamWrapper wrapper = new FSDataInputStreamWrapper(fsdis);\n return pickReaderVersion(path, wrapper, size, cacheConf, null, conf);\n }",
"public PreparedCallableQuery setNCharacterStream(String parameterName, Reader reader) throws SQLException {\r\n cstmt.setNCharacterStream(parameterName, reader);\r\n\r\n return this;\r\n }",
"public ExecutableReader(ExecutableStream stream) throws Exception {\n\t\texStr = stream;\n\t\tread(stream);\n\t}",
"public void readData(InputStream inStream);",
"XMLStreamReader createXMLStreamReader(DataObject sdo);",
"InputStream getDataStream();",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader) {\n this(streamSpec, dataReader, new FrameIteratorFactory());\n }",
"@Provides\r\n public DataInput provideInputReader() {\r\n DataInput input = null;\r\n final Reader inRdr = inReader;\r\n if ((inRdr != null) && (inputFormat != null)) {\r\n if (\"csv\".equalsIgnoreCase(inputFormat))\r\n input = new CSVDataInput(inRdr);\r\n else if (\"json\".equalsIgnoreCase(inputFormat))\r\n input = new JSONDataInput(inRdr);\r\n else\r\n throw new IllegalArgumentException(\"Input format \"\r\n + inputFormat + \" not supported.\"\r\n + \" Valid types are csv, json\");\r\n input.verboseOptions(verboseStream, verbose);\r\n }\r\n return input;\r\n }",
"public ReaderInputStream(Reader reader) {\n if (reader == null) {\n throw new IllegalArgumentException(\"reader must not be null\");\n }\n in = reader;\n }",
"@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n\t\t\n\t}",
"public PreparedCallableQuery setCharacterStream(String parameterName, Reader reader) throws SQLException {\r\n cstmt.setCharacterStream(parameterName, reader);\r\n\r\n return this;\r\n }",
"public Parameter readFirstParameter(String name) throws IOException {\r\n Parameter param = readNextParameter();\r\n Parameter result = null;\r\n \r\n while ((param != null) && (result == null)) {\r\n if (param.getName().equals(name)) {\r\n result = param;\r\n }\r\n \r\n param = readNextParameter();\r\n }\r\n \r\n this.stream.close();\r\n return result;\r\n }",
"public PreparedCallableQuery setNCharacterStream(String parameterName, Reader reader, long length) throws SQLException {\r\n cstmt.setNCharacterStream(parameterName, reader, length);\r\n\r\n return this;\r\n }",
"public ReaderInputStream(Reader reader, String encoding) {\n this(reader);\n this.encoding = encoding;\n }",
"protected d a(InputStream paramInputStream, int paramInt) {\n }",
"private static IIteratingChemObjectReader<IAtomContainer> getInputReader(\n ArgumentHandler argsH, IChemObjectBuilder builder) throws FileNotFoundException {\n DataFormat inputFormat = argsH.getInputFormat();\n IIteratingChemObjectReader<IAtomContainer> reader;\n String filepath = argsH.getInputFilepath();\n InputStream in = new FileInputStream(filepath);\n switch (inputFormat) {\n case SMILES: reader = new IteratingSMILESReader(in, builder); break;\n case SIGNATURE: reader = new IteratingSignatureReader(in, builder); break;\n case SDF: reader = new IteratingSDFReader(in, builder); break;\n case ACP: reader = new IteratingACPReader(in, builder); break;\n default: reader = null; error(\"Unrecognised format\"); break;\n }\n return reader;\n }",
"private IntStream createStream() {\n DataInputStream dataInputStream = null;\n try {\n dataInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found\");\n }\n DataInputStream finalDin = dataInputStream;\n return IntStream.generate(() -> {\n try {\n assert finalDin != null;\n return finalDin.readInt();\n } catch (IOException e) {\n System.out.println(\"Stream problem\");\n }\n return 0;\n })\n .limit(20);\n }",
"public StreamReader(InputStream input) throws IOException {\r\n\t\tthis.setInput(input);\r\n\t}",
"@Override\n\tpublic void read(InStream inStream) {\n\t}",
"public StreamReader() {}",
"public Parameter readNextParameter() throws IOException {\r\n Parameter result = null;\r\n \r\n try {\r\n boolean readingName = true;\r\n boolean readingValue = false;\r\n StringBuilder nameBuffer = new StringBuilder();\r\n StringBuilder valueBuffer = new StringBuilder();\r\n \r\n int nextChar = 0;\r\n while ((result == null) && (nextChar != -1)) {\r\n nextChar = this.stream.read();\r\n \r\n if (readingName) {\r\n if (nextChar == '=') {\r\n if (nameBuffer.length() > 0) {\r\n readingName = false;\r\n readingValue = true;\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else if ((nextChar == '&') || (nextChar == -1)) {\r\n if (nameBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n } else if (nextChar == -1) {\r\n // Do nothing return null preference\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else {\r\n nameBuffer.append((char) nextChar);\r\n }\r\n } else if (readingValue) {\r\n if ((nextChar == '&') || (nextChar == -1)) {\r\n if (valueBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, valueBuffer,\r\n this.decode, characterSet);\r\n } else {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n }\r\n } else {\r\n valueBuffer.append((char) nextChar);\r\n }\r\n }\r\n }\r\n } catch (UnsupportedEncodingException uee) {\r\n throw new IOException(\r\n \"Unsupported encoding. Please contact the administrator\");\r\n }\r\n \r\n return result;\r\n }",
"public InputStream post(String name1, Object value1, String name2, Object value2, String name3, Object value3) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2, name3, value3);\r\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public RawReader(final InputStream is, final int bufferSize) throws NullPointerException, IllegalArgumentException {\n\t\tif (is == null) {\n\t\t\tthrow new NullPointerException(\"Input stream can't be null\"); \n\t\t}\n\t\telse if (bufferSize <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"Buffer size [\"+bufferSize+\"] must be greater than 0\"); \n\t\t}\n\t\telse {\n\t\t\tthis.is = is;\n\t\t\tthis.buffer = new byte[bufferSize];\n\t\t}\n\t}",
"private BufferedReader\n\tgetStreamReader(\n\t\tInputStream\tinputStream)\n\t{\n\t\treturn(new BufferedReader(new InputStreamReader(inputStream)));\n\t}",
"public static ResourceData create(\n final InputStream stream,\n final Dictionary<String, Object> props)\n throws IOException {\n if ( stream == null ) {\n final Dictionary<String, Object> result = new Hashtable<String, Object>();\n final Enumeration<String> e = props.keys();\n while (e.hasMoreElements()) {\n final String key = e.nextElement();\n result.put(key, props.get(key));\n }\n return new ResourceData(result, null);\n\n }\n final File dataFile = FileDataStore.SHARED.createNewDataFile(stream,\n null, null, null);\n return new ResourceData(null, dataFile);\n }",
"public static <V extends Object> StreamParameter<V, StreamAccessParams<V, StreamData>, StreamData> newSP(\n Application app, Direction direction, StdIOStream stream, String prefix, String name, V value, int hashCode,\n ParameterMonitor monitor) {\n StreamAccessParams<V, StreamData> sap;\n sap = StreamAccessParams.constructStreamAP(app, direction, value, hashCode);\n return new StreamParameter(sap, DataType.STREAM_T, direction, stream, prefix, name, monitor);\n }",
"public PreparedCallableQuery setBinaryStream(String parameterName, InputStream inputStream, long length) throws SQLException {\r\n cstmt.setBinaryStream(parameterName, inputStream, length);\r\n\r\n return this;\r\n }",
"public PreparedCallableQuery setCharacterStream(String parameterName, Reader reader, long length) throws SQLException {\r\n cstmt.setCharacterStream(parameterName, reader, length);\r\n\r\n return this;\r\n }",
"Read createRead();",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n if (localParam0Tracker){\n elementList.add(new javax.xml.namespace.QName(\"http://ws.sample\",\n \"param0\"));\n \n elementList.add(localParam0==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localParam0));\n }\n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public void loadParameters(StreamTokenizer tokenizer) throws IOException{\n \n //Grab the parameters\n int tokenType;\n tokenType = tokenizer.nextToken();\n int highValue = (int) tokenizer.nval;\n highSlider. setValue(highValue);\n highBox. setText(String. valueOf(highValue));\n highT = highValue;\n\n tokenType = tokenizer.nextToken();\n int lowValue = (int) tokenizer.nval;\n lowSlider. setValue(lowValue);\n lowBox. setText(String. valueOf(lowValue));\n lowT = lowValue;\n\n tokenType = tokenizer.nextToken();\n scaleMax = (int) tokenizer.nval;\n rescaleText.setText(String. valueOf(scaleMax));\n\n updateThreshold(lowSlider. getValue(), highSlider. getValue());\n\n //Repack the components in the interface\n parameters.pack();\n parameters.setVisible(false);\n }",
"public RawReader(final InputStream is) throws NullPointerException {\n\t\tthis(is, DEFAULT_BUFFER_SIZE);\n\t}",
"@Bean(name=\"com.glyde.mall.batch.job.sample.sampleParameterReader\")\n @StepScope\n public ItemReader<TestDto> sampleReader() throws Exception {\n\n return new MyBatisPagingItemReaderBuilder<TestDto>()\n .sqlSessionFactory(sqlSessionFactory)\n .pageSize(CHUNK_SIZE)\n .queryId(\"com.glyde.mall.batch.job.sample.mapper.TestMapper.select\")\n .build();\n }",
"public JsonObject readStream(HashMap<String,String> meta, String name, InputStream stream, long length, StringBuilder errors) {\n try{\n javax.json.JsonReader rdr = Json.createReader(stream);\n return rdr.readObject();}\n catch(Exception ex) {errors.append(ex.toString());}\n return null;}",
"@Override\n public DataStream<Row> getDataStream(StreamExecutionEnvironment execEnv) {\n if (useExtendField) {\n metadataKeys = Arrays.stream(ReadableMetadata.values()).map(x -> x.key).collect(Collectors.toList());\n applyReadableMetadata(metadataKeys, generateProducedDataType());\n producedTypeInfo = (TypeInformation<Row>) TypeConversions.fromDataTypeToLegacyInfo(producedDataType);\n }\n\n final PulsarRowDeserializationSchema.ReadableRowMetadataConverter[] metadataConverters = metadataKeys.stream()\n .map(k ->\n Stream.of(ReadableMetadata.values())\n .filter(rm -> rm.key.equals(k))\n .findFirst()\n .orElseThrow(IllegalStateException::new))\n .map(m -> m.converter)\n .toArray(PulsarRowDeserializationSchema.ReadableRowMetadataConverter[]::new);\n\n PulsarRowDeserializationSchema pulsarDeserializationSchema =\n new PulsarRowDeserializationSchema(deserializationSchema, metadataConverters.length > 0, metadataConverters, producedTypeInfo);\n //PulsarDeserializationSchema<Row> deserializer = getDeserializationSchema();\n FlinkPulsarSource<Row> source = new FlinkPulsarSource<>(serviceUrl, adminUrl, pulsarDeserializationSchema, properties);\n //FlinkPulsarRowSource source = new FlinkPulsarRowSource(serviceUrl, adminUrl, properties, deserializer);\n switch (startupMode) {\n case EARLIEST:\n source.setStartFromEarliest();\n break;\n case LATEST:\n source.setStartFromLatest();\n break;\n case SPECIFIC_OFFSETS:\n source.setStartFromSpecificOffsets(specificStartupOffsets);\n break;\n case EXTERNAL_SUBSCRIPTION:\n MessageId subscriptionPosition = MessageId.latest;\n if (CONNECTOR_STARTUP_MODE_VALUE_EARLIEST.equals(properties.get(CONNECTOR_EXTERNAL_SUB_DEFAULT_OFFSET))) {\n subscriptionPosition = MessageId.earliest;\n }\n source.setStartFromSubscription(externalSubscriptionName, subscriptionPosition);\n }\n\n return execEnv.addSource(source).name(explainSource());\n }",
"public void read(int param1, byte[] param2, int param3, int param4) {\n }",
"public SmooksDataLoader(final InputStream dataInputStream,\r\n final InputStream configInputStream, final Result result)\r\n {\r\n this.result = result;\r\n smooksConfigStream = new AutoCloseInputStream(configInputStream);\r\n dataFileStream = new StreamSource(new AutoCloseInputStream(\r\n dataInputStream));\r\n }",
"public StreamProcessorImpl(StreamSpec streamSpec) {\n this(streamSpec, new PreloadStreamDataReader());\n }",
"void read(StreamOption streamOpt);",
"public SqlFileParser(InputStream stream) {\n this.reader = new BufferedReader(new InputStreamReader(stream));\n }",
"public InputStream createInputStream(List<String> stopFilters) throws IOException\n {\n InputStream is = stream.createRawInputStream();\n List<Filter> someFilters = new ArrayList<>();\n List<COSName> filters = getFilters();\n for (COSName nextFilter : filters)\n {\n if (stopFilters != null && stopFilters.contains(nextFilter.getName()))\n {\n break;\n }\n someFilters.add(FilterFactory.INSTANCE.getFilter(nextFilter));\n }\n if (someFilters.isEmpty())\n {\n return is;\n }\n RandomAccessRead decoded = Filter.decode(is, someFilters, getCOSObject(),\n DecodeOptions.DEFAULT, null);\n return new RandomAccessInputStream(decoded);\n }",
"public PreparedCallableQuery setBinaryStream(String parameterName, InputStream inputStream) throws SQLException {\r\n cstmt.setBinaryStream(parameterName, inputStream);\r\n\r\n return this;\r\n }",
"private net.openhft.lang.io.Bytes toReader(ValueIn valueIn, Params... params) {\n\n // todo this is a bit of a hack\n final Bytes<?> bytes1 = valueIn.wireIn().bytes();\n final long inSize = bytes1.remaining();\n\n final net.openhft.lang.io.Bytes bytes = DirectStore.allocate(inSize + 1024).bytes();\n\n valueIn.marshallable(wire -> {\n\n for (Params p : params) {\n\n final ValueIn read = wire.read(p);\n\n final byte[] data = read.bytes();\n\n bytes.writeStopBit(data.length);\n bytes.write(data);\n }\n\n });\n\n\n return bytes.flip();\n }",
"private InputStream buildUpStream(final Object... args)\r\n\t{\n\t\tfinal StringBuilder builder = new StringBuilder(1000);\r\n\t\tfor (final Object arg : args)\r\n\t\t{\r\n\t\t\tbuilder.append(arg).append(CharUtils.CR);\r\n\t\t}\r\n\t\treturn new ByteArrayInputStream(builder.toString().getBytes());\r\n\t}",
"public InputStream post(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2, name3, value3, name4, value4);\r\n }",
"@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {\n\t\t\n\t}",
"public abstract StatDataFileReader createReaderInstance(Object extension)\n throws IOException;",
"public ModemReader (InputStream inputStream) {\n\t\t\tthis.inputStream = inputStream;\n\t\t\tsetResultStrings (null);\n\t\t}",
"public InputStream post(String name1, Object value1, String name2, Object value2) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2);\r\n }",
"public ReaderInputStream(Reader reader) {\n\t\t\tthis.reader = reader;\n\t\t\tencoder = UTF8.newEncoder();\n\t\t\tcharBuffer.limit(0);\n\t\t\tbyteBuffer.limit(0);\n\t\t}",
"public LineInputStream(InputStream is) {\n\t\tinputStream = is;\n\t}",
"public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value);\n }",
"public Object getReaderCtor(String paramString) {\n }",
"public ExecutableReader(InputStream is) throws Exception {\n\t\texStr = new ExecutableStream(is);\n\t\tread(exStr);\n\t}",
"protected abstract InputStream getStream(String resource);",
"public SqlCharStream(Reader r) {\n input = r;\n }",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader, FrameIteratorFactory mediaReaderFactory) {\n this.streamSpec = streamSpec;\n metadataManager = new MetadataManager();\n streamListeners = new ArrayList<StreamListener>();\n this.dataReader = dataReader;\n this.frameIteratorFactory = mediaReaderFactory;\n }",
"public PklFileReader(InputStream inputStream)\r\n\t{\r\n\t\tsetInputStream(inputStream);\r\n\t}",
"@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {\n\t\t\n\t}",
"public PreparedCallableQuery setAsciiStream(String parameterName, InputStream inputStream, long length) throws SQLException {\r\n cstmt.setAsciiStream(parameterName, inputStream, length);\r\n\r\n return this;\r\n }",
"void read(final DataInputStream in) throws IOException {\n // This code is tested over in TestHFileReaderV1 where we read an old hfile w/ this new code.\n int pblen = ProtobufUtil.lengthOfPBMagic();\n byte[] pbuf = new byte[pblen];\n if (in.markSupported()) in.mark(pblen);\n int read = in.read(pbuf);\n if (read != pblen) throw new IOException(\"read=\" + read + \", wanted=\" + pblen);\n if (ProtobufUtil.isPBMagicPrefix(pbuf)) {\n parsePB(HFileProtos.FileInfoProto.parseDelimitedFrom(in));\n } else {\n if (in.markSupported()) {\n in.reset();\n parseWritable(in);\n } else {\n // We cannot use BufferedInputStream, it consumes more than we read from the underlying IS\n ByteArrayInputStream bais = new ByteArrayInputStream(pbuf);\n SequenceInputStream sis = new SequenceInputStream(bais, in); // Concatenate input streams\n // TODO: Am I leaking anything here wrapping the passed in stream? We are not calling close on the wrapped\n // streams but they should be let go after we leave this context? I see that we keep a reference to the\n // passed in inputstream but since we no longer have a reference to this after we leave, we should be ok.\n parseWritable(new DataInputStream(sis));\n }\n }\n }",
"private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}",
"public RereadableInputStream(InputStream inputStream) {\n this(inputStream, DEFAULT_MAX_BYTES_IN_MEMORY, true);\n }",
"public PreparedCallableQuery setAsciiStream(String parameterName, InputStream inputStream) throws SQLException {\r\n cstmt.setAsciiStream(parameterName, inputStream);\r\n\r\n return this;\r\n }",
"public void putReaderCtor(String paramString, Procedure paramProcedure) {\n }",
"public Reader(Configuration conf, FSDataInputStream in, long length, \n\t\t\t CompressionCodec codec,\n\t\t\t Counters.Counter readsCounter) throws IOException {\n\t\treadRecordsCounter = readsCounter;\n\t\tchecksumIn = new IFileInputStream(in,length, conf);\n\t\tif (codec != null) {\n\t\t decompressor = CodecPool.getDecompressor(codec);\n\t\t if (decompressor != null) {\n\t\t\tthis.in = codec.createInputStream(checksumIn, decompressor);\n\t\t } else {\n\t\t\tLOG.warn(\"Could not obtain decompressor from CodecPool\");\n\t\t\tthis.in = checksumIn;\n\t\t }\n\t\t} else {\n\t\t this.in = checksumIn;\n\t\t}\n\t\tthis.dataIn = new DataInputStream(this.in);\n\t\tthis.fileLength = length;\n \n\t\tif (conf != null) {\n\t\t bufferSize = conf.getInt(\"io.file.buffer.size\", DEFAULT_BUFFER_SIZE);\n\t\t}\n\t }",
"public static NetFlowReader prepareReader(\n DataInputStream inputStream,\n int buffer,\n boolean ignoreCorruptFile) throws IOException {\n return new NetFlowReader(inputStream, buffer, ignoreCorruptFile);\n }",
"public interface IInputVaries {\n double[] getParams(BufferedReader br);\n}",
"@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}",
"void deserializeContents(InputStream stream, ReaderType target) throws IOException {\n byte version = readByte(stream);\n val readVersion = this.versions[version];\n ensureCondition(readVersion != null, \"Unsupported version %d.\", version);\n\n byte revisionCount = readByte(stream);\n ensureCondition(revisionCount >= 0, \"Data corruption: negative revision count.\");\n\n int revisionIndex = 0;\n for (int i = 0; i < revisionCount; i++) {\n byte revision = readByte(stream);\n val rd = readVersion.get(revisionIndex++);\n try (RevisionDataInputStream revisionInput = RevisionDataInputStream.wrap(stream)) {\n if (rd != null) {\n // We've encountered an unknown revision; we cannot read anymore.\n ensureCondition(revision == rd.getRevision(),\n \"Unexpected revision. Expected %d, found %d.\", rd.getRevision(), revision);\n rd.getReader().accept(revisionInput, target);\n }\n }\n }\n }",
"public void readFromStream(Reader r) throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(r);\n\t\tlines=new ArrayList();\n\n\t\twhile(true) {\n\t\t\tString input=br.readLine();\n\t\t\tif(input==null)\n\t\t\t\tbreak;\n\t\t\tlines.add(input);\n\t\t}\n\t}",
"protected void readConstructorParams( DataInput in ) throws\n\t\t\t\t\t\t\tIOException {\n }",
"public interface IterativeReader\n{\n /**\n * Constant which specifies that the IterativeReader/IterativeWriter is not\n * done with nextRead/nextWrite.\n */\n public static final int CONTINUE = 0;\n /**\n * Constant which specifies that the IterativeReader/IterativeWriter is done\n * with nextRead/nextWrite. This means that the reading/writing is complete\n * and further calls of nextRead/nextWrite are not expected.\n */\n public static final int STOP = 1;\n\n /**\n * Specifies that numBytes bytes are to be read. The InputStream to read\n * from should be stored in the implementing class.\n * @param numBytes Number of bytes to read. This is only indicative. The\n * implementor may read more or less. Reading too less impacts performance\n * due to repeated nextRead calls. Reading too much more than numBytes leads\n * to performance impact due to buffer reallocation in case of\n * SplitInputStream and an IOException due to Empty Buffer in an\n * OutStreamToIterativeReader.<p>\n *\n * The InputStream returned for use by an IterativeReader by directio's\n * classes implement {@link ByteCounter} which can help in keeping track of\n * the number of bytes read or remaining during a nextRead call.\n * @return {@link #CONTINUE} to indicate that there is more to be read and\n * STOP to indicate that the IterativeReader is done with reading.\n * @exception IOException In case of an error during read. Note that data\n * errors can also be handled by returning STOP and storing the error\n * instead of throwing an Exception. This may be desirable for a\n * SplitInputStream since the main Read can continue unhindered by the\n * SubStream's error.\n */\n public int nextRead(int numBytes) throws IOException;\n}",
"@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}",
"public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value, length);\n\n }",
"private void loadParameters() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new BufferedInputStream(Files.newInputStream(path))));\n\n\t\tdo {\n\t\t\tString line = reader.readLine();\n\t\t\tif (line == null || line.equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (line.startsWith(\"--\") || line.startsWith(\" \")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString[] tokens = line.trim().split(\"\\\\s+\");\n\t\t\tparameters.put(Parameter.valueOf(tokens[0]), tokens[1]);\n\t\t} while (true);\n\n\t}",
"public abstract InputStream openStream(String str);",
"ParameterSink createParameterSink();",
"public ConcatReader(Reader in1, Reader in2){\r\n\t\taddReader(in1);\r\n\t\taddReader(in2);\r\n\t\tlastReaderAdded();\r\n\t}",
"public static DataInputStream getData(InputStream in) {\n return new DataInputStream(get(in));\n }"
] | [
"0.7548861",
"0.6898967",
"0.66022027",
"0.5733224",
"0.5652384",
"0.55913836",
"0.5473119",
"0.5422189",
"0.54050505",
"0.53365636",
"0.5266441",
"0.52651817",
"0.52565616",
"0.5245439",
"0.5237122",
"0.5194103",
"0.5187659",
"0.5182975",
"0.5083486",
"0.50799924",
"0.5069853",
"0.5065034",
"0.50577915",
"0.5055622",
"0.50517136",
"0.5031357",
"0.50207335",
"0.49981478",
"0.49906257",
"0.49581936",
"0.49503496",
"0.49479097",
"0.49454415",
"0.4938442",
"0.4930996",
"0.49239427",
"0.49167222",
"0.49115342",
"0.49071896",
"0.48966208",
"0.48921996",
"0.48812473",
"0.48744956",
"0.48684275",
"0.4864597",
"0.4854831",
"0.48538053",
"0.48538053",
"0.48538053",
"0.48538053",
"0.48448488",
"0.48381034",
"0.4837268",
"0.4836399",
"0.48204014",
"0.48164725",
"0.48033968",
"0.47987777",
"0.4796926",
"0.4778457",
"0.4774122",
"0.47656432",
"0.47629216",
"0.47600505",
"0.47378495",
"0.47302",
"0.47284228",
"0.47195753",
"0.47007874",
"0.46960348",
"0.46953392",
"0.46945798",
"0.46782577",
"0.46758536",
"0.4674537",
"0.46737513",
"0.46723983",
"0.46649215",
"0.46644065",
"0.46639138",
"0.46580836",
"0.46400657",
"0.463145",
"0.4612104",
"0.45996287",
"0.45950207",
"0.45867226",
"0.45836663",
"0.45781663",
"0.45746544",
"0.45744953",
"0.45616588",
"0.45583126",
"0.45554295",
"0.45434755",
"0.45341444",
"0.452838",
"0.45249555",
"0.45239195",
"0.45178846"
] | 0.6472634 | 3 |
Method to set webdriver | private void setWebdriver() throws Exception {
System.setProperty("webdriver.chrome.driver",
currentDir + fileSeparator + "lib" + fileSeparator + "chromedriver.exe");
capability = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-extensions");
options.addArguments("disable-infobars");
capability.setCapability(ChromeOptions.CAPABILITY, options);
driver = new ChromeDriver(capability);
driver.manage().deleteAllCookies();
_eventFiringDriver = new EventFiringWebDriver(driver);
_eventFiringDriver.get(getUrl());
_eventFiringDriver.manage().window().maximize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setDriver(WebDriver webDriver) {\n driver = webDriver;\n }",
"@SuppressWarnings(\"static-access\")\n\tpublic void setWebDriver(WebDriver driver) {\n\t\tthis.driver = driver;\n\t}",
"private void setWebDriver() {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n setLocalWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n setRemoteWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n setSauceWebdriver();\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n this.driver.get().manage().timeouts()\n .implicitlyWait(10, TimeUnit.SECONDS);\n if (browser.equalsIgnoreCase(\"internet explorer\")|browser.equalsIgnoreCase(\"firefox\")|browser.equalsIgnoreCase(\"chrome\")|browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t//we only want to maximise the browser window for desktop browser, not devices.\n \tthis.driver.get().manage().window().maximize();\n\t\t}\n }",
"private void setRemoteWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n\t\tFirefoxProfile profile = new FirefoxProfile();\n \tprofile.setEnableNativeEvents(true);\n capabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, profile);\n \tcapabilities.setJavascriptEnabled(true);\n \tcapabilities.setCapability(\"marionette\", false);\n \tcapabilities.setCapability(\"acceptInsecureCerts\", true);\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n capabilities.merge(extraCapabilities);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(\"http://\"\n + System.getProperty(\"GRID_HOST\") + \":\"\n + System.getProperty(\"GRID_PORT\") + \"/wd/hub\"),\n capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setRemoteWebdriver() method\", e);\n }\n }",
"private void setLocalWebdriver() {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setJavascriptEnabled(true);\n capabilities.setCapability(\"handlesAlerts\", true);\n switch (getBrowserId(browser)) {\n case 0:\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n driver.set(new InternetExplorerDriver(capabilities));\n break;\n case 1:\n driver.set(new FirefoxDriver(capabilities));\n break;\n case 2:\n driver.set(new SafariDriver(capabilities));\n break;\n case 3:\n driver.set(new ChromeDriver(capabilities));\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n }",
"public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }",
"@Parameters({\"browser\"})\n\t@BeforeMethod\n\tpublic final void setDriver(String browser) throws Exception{\n\t\tsetBrowser = browser;\n\t\tswitch(browser){\n\t\t\n\t\tcase \"chrome\":\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\twebDriver.set(new ChromeDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"firefox\":\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\twebDriver.set(new FirefoxDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"ie\":\n\t\t\tWebDriverManager.edgedriver().setup();\n\t\t\twebDriver.set(new EdgeDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"edge\":\n\t\t\t/*EdgeOptions options = new EdgeOptions();\n\t\t\t//options.setProxy(proxy)\n*/\t\t\tSystem.setProperty(\"webdriver.edge.driver\", resourcePath+\"Drivers/MicrosoftWebDriver.exe\");\n\t\t\tWebDriver driver = new EdgeDriver();\n\t\t\t//WebDriverManager.edgedriver().setup();\n\t\t\twebDriver.set(driver);\n\t\tbreak;\n\t\t\n\t\tcase \"safari\":\n\t\t\twebDriver.set(new SafariDriver());\n\t\t\n\t\t}\n\t}",
"private void setSauceWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n capabilities = DesiredCapabilities.firefox();\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n case 4:\n capabilities = DesiredCapabilities.iphone();\n capabilities.setCapability(\"deviceName\",\"iPhone Simulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n case 5:\n capabilities = DesiredCapabilities.iphone();\n capabilities.setCapability(\"deviceName\",\"iPad Simulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n case 6:\n capabilities = DesiredCapabilities.android();\n capabilities.setCapability(\"deviceName\",\"Android Emulator\");\n capabilities.setCapability(\"device-orientation\", \"portrait\");\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.merge(extraCapabilities);\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(System\n .getProperty(\"SAUCE_KEY\")), capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setSauceWebdriver() method\", e);\n }\n }",
"@BeforeMethod\n public void setDriver() throws MalformedURLException {\n\n\n driver = WebDriverFactory.getDriver(WebDriverFactory.CHROME).get();\n\n\n loginPage = new LoginPage(driver);\n loginPageHelper = new LoginPageHelper(driver);\n menuHelper = new MenuHelper(driver);\n }",
"protected void setDriver() throws Exception {\n\t\tswitch (browser.split(\"[-]\")[0].toLowerCase()) {\n\t\tcase \"firefox\":\n\t\t\tsetFirefoxDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\t// runDocker();\n\t\t\tsetChromeDriver();\n\t\t\tbreak;\n\t\tcase \"ie\":\n\t\t\tsetIEDriver();\n\t\t\tbreak;\n\t\tcase \"edge\":\n\t\t\tsetEdgeDriver();\n\t\t\tbreak;\n\t\tcase \"safari\":\n\t\t\tsetSafariDriver();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tsetChromeDriver();\n\t\t\tbreak;\n\t\t}\n\t\tgetDriver().manage().window().maximize(); // Maximize the browser.\n\t\tgetDriver().manage().timeouts().implicitlyWait(defaultImplicitWaitTime, TimeUnit.SECONDS);\n\t}",
"private void setChromeDriver() throws Exception {\n\t\t// boolean headless = false;\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\tchromePrefs.put(\"download.default_directory\", BasePage.myTempDownloadsFolder);\n\t\tchromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\n\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\tchromeOptions.addArguments(\"--disable-extensions\");\n\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t/*\n\t\t * To set headless mode for chrome. Would need to make it conditional\n\t\t * from browser parameter Does not currently work for all tests.\n\t\t */\n\t\t// chromeOptions.setHeadless(true);\n\n\t\tif (runLocation.toLowerCase().equals(\"smartbear\")) {\n\t\t\tReporter.log(\"-- SMARTBEAR: standard capabilities. Not ChromeOptions\", true);\n\t\t\tcapabilities = new DesiredCapabilities();\n\t\t} else {\n\t\t\tcapabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t}\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t \n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" Chrome-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}",
"public static WebDriver setupDriver()\r\n\t{\r\n\t driver = getWebDriver();\r\n\t return driver;\r\n\t}",
"void setSeleniumHelper(SeleniumHelper helper) {\n seleniumHelper = helper;\n }",
"public static void setChromeDriverProperty() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\automation_new_code\\\\onfs.alip.accounting\\\\BrowserDriver/chromedriver.exe\");\n\t\t}",
"private void initDriver(){\r\n String browserToBeUsed = (String) jsonConfig.get(\"browserToBeUsed\");\r\n switch (browserToBeUsed) {\r\n case \"FF\":\r\n System.setProperty(\"webdriver.gecko.driver\", (String) jsonConfig.get(\"fireFoxDriverPath\"));\r\n FirefoxProfile ffProfile = new FirefoxProfile();\r\n // ffProfile.setPreference(\"javascript.enabled\", false);\r\n ffProfile.setPreference(\"intl.accept_languages\", \"en-GB\");\r\n\r\n FirefoxOptions ffOptions = new FirefoxOptions();\r\n ffOptions.setProfile(ffProfile);\r\n driver = new FirefoxDriver(ffOptions);\r\n break;\r\n case \"CH\":\r\n String driverPath = (String) jsonConfig.get(\"chromeDriverPath\");\r\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\r\n\r\n Map<String, Object> prefs = new HashMap<String, Object>();\r\n prefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n\r\n ChromeOptions options = new ChromeOptions();\r\n options.setExperimentalOption(\"prefs\", prefs);\r\n options.addArguments(\"--lang=en-GB\");\r\n driver = new ChromeDriver(options);\r\n break;\r\n case \"IE\":\r\n System.setProperty(\"webdriver.ie.driver\", (String) jsonConfig.get(\"ieDriverPath\"));\r\n\r\n InternetExplorerOptions ieOptions = new InternetExplorerOptions();\r\n ieOptions.disableNativeEvents();\r\n ieOptions.requireWindowFocus();\r\n ieOptions.introduceFlakinessByIgnoringSecurityDomains();\r\n driver = new InternetExplorerDriver(ieOptions);\r\n }\r\n\r\n driver.manage().window().maximize();\r\n }",
"public void setDriver(String browserName){\r\n\t \r\n\t\t if(browserName==null){\r\n\t\t\t browserName=\"firefox\";\r\n\t\t\t \r\n\t\t }\r\n\t\t if(browserName.equalsIgnoreCase(\"firefox\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.gecko.driver\", FIREFOX_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new FirefoxDriver();\r\n\t\t\t \r\n\t\t }\r\n\t\t \r\n\t\t if(browserName.equalsIgnoreCase(\"chrome\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.chrome.driver\",CHROME_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new ChromeDriver();\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t if(browserName.equalsIgnoreCase(\"ie\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.ie.driver\",IE_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new InternetExplorerDriver();\r\n\t\t\t \r\n\t\t }\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void getDriver() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t}",
"@Before\n public void setWebDriver() throws IOException {\n System.setProperty(\"webdriver.chrome.driver\", DRIVER_PATH);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"start-maximized\");\n driver = new ChromeDriver(chromeOptions);\n }",
"@BeforeMethod(alwaysRun = true)\n public void browserSetup(){\n driver = new ChromeDriver();\n }",
"public void open() {\n setWebDriver();\n }",
"public WebDriver getWebDriver() {\n return webDriver;\n }",
"WebDriver modify(WebDriver webDriver);",
"public static WebDriver getDriver(){\n if(driver==null){\n //get the driver type from properties file\n\n String browser=ConfigurationReader.getPropery(\"browser\");\n switch(browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n }\n }\n\n return driver;\n }",
"public WebDriver getWebDriver() {\n\t\tString driverName = getProperty(\"driver\");\n\t\tif (driverName.equals(\"firefox\")) {\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (driverName.equals(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\main\\\\resources\\\\binaries\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t} \n\t\treturn driver;\n\t}",
"public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}",
"public GoogleAutomation() {\n\t\t\n\t\t//The setProperty() method of Java system class sets the property of the system which is indicated by a key.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"driver//chromedriver.exe\");\n\t\t\n\t\t//initilize webDriver \n\t\twebDriver = new ChromeDriver();\n\t}",
"public static WebDriver getWebDriver() {\n\t\t\treturn webdriver;\n\t\t}",
"public WebDriver getWebdriver() {\n return driver.get();\n }",
"private WebDriver getDriver() {\n return new ChromeDriver();\n }",
"protected WebDriver getDriver() {\n return Web.getDriver(Browser.CHROME, server.getURL() + \"TEST\", By.className(\"AuO\"));\n }",
"public void initDriver() {\n if (getBrowser().equals(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n if (System.getProperty(\"headless\") != null) {\n FirefoxOptions firefoxOptions = new FirefoxOptions();\n firefoxOptions.setHeadless(true);\n driver = new FirefoxDriver(firefoxOptions);\n } else {\n driver = new FirefoxDriver();\n }\n } else {\n WebDriverManager.chromedriver().setup();\n if (System.getProperty(\"headless\") != null) {\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setHeadless(true);\n driver = new ChromeDriver(chromeOptions);\n } else {\n driver = new ChromeDriver();\n }\n }\n }",
"@Before\r\n\tpublic final void setDriver() {\n\t\tdriver = new Wizard();\r\n\t}",
"@BeforeMethod\r\n\tpublic void Setup()\r\n\t{\n\t\tString strBrowserName=objConfig.getProperty(\"browser\");\r\n\t\tif(strBrowserName.equalsIgnoreCase(\"CHROME\"))\r\n\t\t{\r\n\t\t\tobjDriver=new ChromeDriver();\r\n\t\t}\r\n\t\telse if(strBrowserName.equalsIgnoreCase(\"FIREFOX\"))\r\n\t\t{\r\n\t\t\tobjDriver=new FirefoxDriver();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tobjDriver=new InternetExplorerDriver();\r\n\t\t}\r\n\t\t\r\n\t\t//To open the URL\r\n\t\t\r\n\t\tobjDriver.get(objConfig.getProperty(\"url\"));\r\n\t\t\r\n\t\t//To maximize the browser window.\r\n\t\tif(objConfig.getBooleanProperty(\"runFullScreen\"))\r\n\t\t\tobjDriver.manage().window().maximize();\r\n\r\n\t\t//To set the implicit wait time\r\n\t\tobjDriver.manage().timeouts().implicitlyWait(objConfig.getLongProperty(\"implicitTimeoutInSeconds\"), TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}",
"@BeforeClass\n @Parameters({\"browser\", \"url\"})\n // Step 2: create a method with appropriate params\n void setup(String mBrowser, String mUrl){\n // Step 3: make use of the parameters\n if(mBrowser.equalsIgnoreCase(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/chromedriver_win32/chromedriver.exe\");\n driver = new ChromeDriver();\n }else if(mBrowser.equalsIgnoreCase(\"firefox\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/firefox_win32/firefoxdriver.exe\");\n driver = new FirefoxDriver();\n }\n // Step 3: make use of the parameters\n driver.get(mUrl);\n }",
"@BeforeClass\n\tpublic static void configureDriver(){\n\t\tif(driver == null) {\n\t\t\tif(Constants.browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\chromedriver.exe\");\n\t\t\t\tdriver = new ChromeDriver();\n\t\t\t} else if(Constants.browserName.equalsIgnoreCase(\"firefox\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\geckodriver.exe\");\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t} else if(Constants.browserName.equalsIgnoreCase(\"edge\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.edge.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\msedgedriver.exe\");\n\t\t\t\tdriver = new EdgeDriver();\n\t\t\t} else if(Constants.browserName.equalsIgnoreCase(\"ie\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\IEDriver.exe\");\n\t\t\t\tdriver = new InternetExplorerDriver();\n\t\t\t}\n\t\t}\n\t\t\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.get(Constants.url);\n\t\t\n\t}",
"@Parameters(\"browser\")\n\t@BeforeMethod (groups= {\"smoke\"})\n\tpublic void setUp(@Optional String browser) {//name of the parameter from xml\n\t\tdriver=Driver.getDriver(browser);\n\t\tdriver.get(ConfigurationReader.getProperty(\"url\"));\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t}",
"private void setIEDriver() throws Exception {\n\t\tcapabilities = DesiredCapabilities.internetExplorer();\n\t\t// capabilities.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\t// capabilities.setCapability(\"ignoreZoomSetting\", true);\n\t\t// capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION,\n\t\t// true);\n\t\tcapabilities.setJavascriptEnabled(true);\n\n\t\tInternetExplorerOptions ieOptions = new InternetExplorerOptions();\n\t\tieOptions.destructivelyEnsureCleanSession();\n\t\tieOptions.ignoreZoomSettings();\n\t\tieOptions.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\tieOptions.merge(capabilities);\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" IE-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}",
"public static void setBrowser() {\n\t\t browser=\"Chrome\";\n\t }",
"public RegisterPage(WebDriver driver){ this.driver = driver; }",
"public Page(WebDriver webDriver) {\n this.webDriver = webDriver;\n\t}",
"public static final BaseRemoteWebDriver getDriver() {\r\n\t\tString browser = ConfigProperties.BROWSER;\r\n\t\tif (driver == null) {\r\n\r\n\t\t\tif (browser.equalsIgnoreCase(FIREFOX)) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'firefox' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.firefox();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException 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\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(CHROME)) {\r\n\r\n\t\t\t\tif (isPlatformWindows())\r\n\r\n\t\t\t\t\tlog.info(\"initializing 'chrome' driver...\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\tcapabilities.setCapability(\r\n\t\t\t\t\t\tCapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, \"ignore\");\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\r\n\t\t\t\t} catch (MalformedURLException 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\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(INTERNET_EXPLORER)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows(),\r\n\t\t\t\t\t\t\"Internet Explorer is not supporting in this OS\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.internetExplorer();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException 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\r\n\t\t\t\tlog.info(\"initializing 'internet explorer' driver...\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(SAFARI)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows() || isPlatformMac(),\r\n\t\t\t\t\t\t\"Safari is not supporting in this OS\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.safari();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException 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\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(\"html\")) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'html' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.htmlUnit();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException 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\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn driver;\r\n\t}",
"@BeforeMethod(alwaysRun = true)\n public static void setUp(){\n // ConfigReader.readProperties(Constants.CONFIGURATION_FILEPATH);\n ConfigReader.readProperties(Constants.CONFIGURATION_FILE);\n switch (ConfigReader.getPropertyValue(\"browser\")){\n case \"chrome\":\n //System.setProperty(\"webdriver.chrome.driver\", \"Drivers/chromedriver.exe\");\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n //System.setProperty(\"webdriver.gecko.driver\", \"Drivers/geckodriver.exe\");\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n break;\n default:\n throw new RuntimeException(\"Invalid name of browser\");\n }\n driver.get(ConfigReader.getPropertyValue(\"url\"));\n driver.manage().window().maximize();\n //driver.manage().timeouts().implicitlyWait(Constants.IMPLICIT_WAIT, TimeUnit.SECONDS);\n }",
"@BeforeTest\n public void setup() {\n\n String browser = Environment.getProperties().browser().toString().toLowerCase();\n\n switch (browser) {\n \n case \"firefox\":\n FirefoxOptions options = new FirefoxOptions(); \n if(Environment.getProperties().headless()){\n options.addArguments(\"--headless\");\n }\n driver = new FirefoxDriver();\n break;\n \n default:\n ChromeOptions optionsChrome = new ChromeOptions();\n if(Environment.getProperties().headless()){\n optionsChrome.addArguments(\"--headless\");\n } \n driver = new ChromeDriver(optionsChrome);\n break;\n } \n\n driver.manage().window().maximize();\n }",
"public void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"//Users//bpat12//Downloads//chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"launch browser\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(url);\n\t}",
"private void init_remoteWebDriver(String browser) {\n\t\tif(browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tDesiredCapabilities cap = new DesiredCapabilities().chrome();\n\t\t\tcap.setCapability(ChromeOptions.CAPABILITY, optionsManager.getChromeOptions());\n\t\t\t\n\t\t\t//To connect with hub use RemoteWebDriver\n\t\t\ttry {\n\t\t\t\ttlDriver.set(new RemoteWebDriver(new URL(prop.getProperty(\"huburl\")), cap));\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(browser.equalsIgnoreCase(\"firefox\")){\n\t\t\tDesiredCapabilities cap = new DesiredCapabilities().firefox();\n\t\t\tcap.setCapability(FirefoxOptions.FIREFOX_OPTIONS, optionsManager.getFirefoxOptions());\n\t\t\t\n\t\t\ttry {\n\t\t\t\ttlDriver.set(new RemoteWebDriver(new URL(prop.getProperty(\"huburl\")), cap));\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public static WebDriver setUp() {\n\t\n \t\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\"); //if it doesn't work we can check with user.dir...\n \tdriver = new ChromeDriver(); //launch the Browser it opens empty page\n \tdriver.manage().window().maximize();\n \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); //to wait globally\n \tdriver.get(\"http://166.62.36.207/humanresources/symfony/web/index.php/auth/login\");\n \t \n \treturn driver; //return object of the driver \t\n}",
"@BeforeTest\n public void setup() {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\User\\\\IdeaProjects\\\\LoginToJira\\\\chromedriver.exe\");\n // Create a new instance of the Chrome driver\n this.driver = new ChromeDriver();\n }",
"public WebDriver initDriver (Properties prop) {\r\n\t\tString browserName = prop.getProperty(\"browser\");\r\n\t\tif(browserName.equals(\"chrome\")) {\r\n\t\t\toptionsManager = new OptionsManager(prop);\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"./src/test/resources/chrome/chromedriver.exe\");\r\n\t\t\tdriver = new ChromeDriver(optionsManager.getChromeOptions());\r\n\t\t}else if(browserName.equals(\"firefox\")) {\r\n\t\t\toptionsManager = new OptionsManager(prop);\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"./src/test/resources/firefox/geckodriver.exe\");\r\n\t\t\tdriver = new FirefoxDriver(optionsManager.getFirefoxOptions());\r\n\t\t}\r\n\t\t\r\n\t\teventDriver = new EventFiringWebDriver(driver);\r\n\t\teventListener = new WebEventListener();\r\n\t\teventDriver.register(eventListener);\r\n\t\tdriver = eventDriver;\r\n\t\t\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\r\n\t\tdriver.get(prop.getProperty(\"url\"));\r\n\t\treturn driver;\r\n\t}",
"protected WebDriver newDriver() {\n SupportedWebDriver supportedDriverType = Configuration.getDriverType();\n return webDriverFactory.newInstanceOf(supportedDriverType);\n }",
"@Before\n public void Setup() { //this is done before every test, chrome driver is saved in a specific location\n\n System.setProperty(\"webdriver.chrome.driver\",\n Constant.CROMEDRIVER);\n\n driver = new ChromeDriver();\n }",
"@Override\n public WebDriver getWebDriver() {\n return new FirefoxDriver();\n }",
"@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }",
"private void setFirefoxDriver() throws Exception {\n\t\t// Disable cache\n\t\tffProfile.setPreference(\"browser.cache.disk.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.disk_cache_ssl\", false);\n\t\tffProfile.setPreference(\"browser.cache.memory.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.offline.enable\", false);\n\t\t// Set to download automatically\n\t\tffProfile.setPreference(\"browser.download.folderList\", 2);\n\t\tffProfile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n\t\tffProfile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"application/zip\");\n\t\tffProfile.setPreference(\"browser.download.dir\", BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X support\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\t\t// Disable hardware acceleration\n\t\tffProfile.setPreference(\"gfx.direct2d.disabled\", false);\n\t\tffProfile.setPreference(\"layers.acceleration.disabled\", false);\n\t\tFirefoxOptions ffOptions = new FirefoxOptions();\n\n\t\t/*\n\t\t * Set FF to run headless -- Need to make conditional from browser\n\t\t * parameter -- Does NOT work properly with all necessary tests.\n\t\t */\n\t\t// ffOptions.setHeadless(true);\n\n\t\tffOptions.setProfile(ffProfile);\n\t\tcapabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, ffProfile);\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", firefoxDriverLocation);\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" FF-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}",
"public WebDriver getDriver(){\n\t\treturn driver;\n\t}",
"void setBrowser(String browser);",
"public GAfterSearch(WebDriver chromeDriver) {\n super.chromeDriver = chromeDriver;\n }",
"public void initialization() {\n\t\t\t\n\t\t if(prop.getProperty(\"browser\").equals(\"chrome\")) {\n\t\t \t\n\t\t \tWebDriverManager.chromedriver().setup();\n\t\t\t\t\n\t\t\t\t driver=new ChromeDriver();\n\t\t\t\t\n\t\t } else if(prop.getProperty(\"browser\").equals(\"firefox\")) {\n\t\t \t\n\t\t \tWebDriverManager.firefoxdriver().setup();\n\t\t\t\t\n\t\t\t\t driver=new FirefoxDriver();\n\t\t\t\t \n\t\t } else if(prop.getProperty(\"browser\").equals(\"edge\")) {\n\t\t \tWebDriverManager.edgedriver().setup();\n\t\t\t\t\n\t\t\t\t driver=new EdgeDriver();\n\t\t \t\n\t\t }\n\t\t\t\n\t }",
"public void setUpDriver(final String browser) throws MalformedURLException{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString gridUrl=System.getProperty(\"gridurl\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//check if parameter passed from TestNg is 'firefox'\r\n\t\t\r\n//\t\tif (BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n//\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t if(StringUtils.isNotEmpty(gridUrl)){\r\n//\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t }\r\n//\t\t else{\r\n//\t\t\t driver =new FirefoxDriver(capabilities);\r\n//\t\t }\r\n\t\t \r\n\t\t\r\n\t\tif(BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n\t\t\t\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t \r\n\t\t\t final String firebugpath1=\"src//main//resource//firepath-0.9.7.1-fx.xpi\";\r\n\t\t\t final String firebugpath =\"src//main//resource//firebug-1.12.8.xpi\";\r\n\t\t\t FirefoxProfile profile=new FirefoxProfile();\r\n//\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\r\n\t\t\t \r\n\t\t\t try{\r\n\t\t\t\t profile.addExtension(new File(firebugpath));\r\n\t\t\t\t profile.addExtension(new File(firebugpath1));\t \r\n\t\t\t }catch (IOException e){\r\n\t\t\t\t logger.error(\"Exception:\",e);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t profile.setPreference(\"extensions.firebug.allpagesActivation\", \"on\");\r\n//\t\t\t capabilities.setCapability(FirefoxDriver.PROFILE,profile);\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\t\t\t //if (StringUtils.isNotEmpty(gridUrl)){\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t}else if(BrowserLib.CHROME.equalsIgnoreCase(browser)){\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.chrome();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new ChromeDriver();\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else if(BrowserLib.INTERNET_EXP.equalsIgnoreCase(browser)){\r\n//\t\t\tset path to iedriver.exe you may need to download it from 32 bits\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webDriver.ie.driver\", System.getProperty(\"user.dir\")+\"/src/main/resource/\"+ \"IEDriverserver.exe\");\r\n//\t\t\t create ie instance\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.internetExplorer();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t\t if (StringUtils.isNotEmpty(gridUrl)){\r\n// \t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t\t }else{\r\n//\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n//\t\t\t }\r\n\t\t\t if(gridUrl.isEmpty()){\r\n\t\t\t\t driver =new InternetExplorerDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t}else{\r\n//\t\t\tif no browser passed throw exception\r\n\t\t\tthrow new UnsupportBrowserException();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tthis.driver.manage().deleteAllCookies();\r\n\t\tthis.browserMaximize();\r\n\t\tthis.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}",
"@Before\n public void initTestSet() {\n webDriver = new ChromeDriver();\n webDriver.get(Book_URL); // open desired url\n webDriverTimeout();\n }",
"public static void setSystemPropertyChromeWebDriverOriginal() {\n\t\tString fullPath = getFullPathToSrcTestResourceFolder();\n\t\t\n\t\tString os = getOperationalSystemName();\n\t\t\n\t\tString chromeDriver = CHROME_DRIVER_WINDOWS;\n\t\tif ( os.equals(OS_MAC_OS_X) ) {\n\t\t\tchromeDriver = CHROME_DRIVER_MAC;\n\t\t}\n\t\t\n\t\tSystem.setProperty(\n\t\t\tWEBDRIVER_CHROME_DRIVER, \n\t\t\tfullPath + chromeDriver);\n\t}",
"public void setupDriver(BrowserType btype) {\n\t\ttry {\n\t\t\tdriver = getBrowserObject(btype);\n\t\t\tlog.info(\"Initialized WebDriver \"+driver.hashCode());\n\t\t\tWaitHelper wait = new WaitHelper(driver);\n\t\t\twait.setImplicitWait(ObjectReader.reader.getImplicitWait(), TimeUnit.SECONDS);\n\t\t\twait.pageLoadTime(ObjectReader.reader.getPageLoadTime(), TimeUnit.SECONDS);\n\t\t\tdriver.manage().window().maximize();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Parameters(\"browser\")\n\t@BeforeClass\n\tpublic void setupDriver(String browser) throws MalformedURLException {\n\t\tDesiredCapabilities dc = null;\n\t\t\n\t\tif (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/phptravels/src/main/resources/chromedriver.exe\");\n\t\t\tdc = DesiredCapabilities.chrome();\n\t\t\tdc.setBrowserName(\"chrome\");\n\t\t\t\n\t\t} else if (browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\tdc = DesiredCapabilities.firefox();\n\t\t\tdc.setBrowserName(\"firefox\");\n\t\t}\n\t\t\n\t\tdc.setPlatform(Platform.WIN8_1);\n\t\tdriver = new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"), dc);\n\t}",
"private void setup() {\n if (config.getProperty(\"browser\").equals(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", chromeDriverPath);\n driver = new ChromeDriver();\n } else if (config.getProperty(\"browser\").equals(\"firefox\")) {\n System.setProperty(\"webdriver.gecko.driver\", geckoDriverPath);\n driver = new FirefoxDriver();\n }\n\n event_driver = new EventFiringWebDriver(driver);\n // Now create object of EventListerHandler to register it with EventFiringWebDriver\n eventListener = new WebEventListener();\n event_driver.register(eventListener);\n driver = event_driver;\n\n wait = new WebDriverWait(driver, 30);\n }",
"public WebDriver getDriver(){\r\n\t\treturn this.driver;\r\n\t\t\t \r\n\t\t }",
"private static WebDriver launchDriver(WebDriver driver)\n\t{\n\t\tswitch (getBrowserType())\n\t\t{\n\t\t\tcase InternetExplorer:\n\t\t\t{\n\t\t\t\tdriver = launchInternetExplorer();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase Chrome:\n\t\t\t{\n\t\t\t\tdriver = launchChrome();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdefault:\n\t\t\t{\n\t\t\t\tdriver = launchFirefox();\n\t\t\t\tbreak;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(getImplicitWaitTime(), TimeUnit.SECONDS);\n\t\twaitPageLoad = new WebDriverWait(driver, getPageLoadWaitTime());\n\t\twaitAjaxLoad = new WebDriverWait(driver, getAjaxLoadWaitTime());\n\t\tjavaScriptExecutor = (JavascriptExecutor) driver;\n\t\t\n\t\treturn driver;\n\t}",
"private static WebDriver driver() {\n\t\treturn null;\r\n\t}",
"public Start (WebDriver driver) {\n\t\tthis.driver=driver;\n\t}",
"public Selenium(String chromePath) {\n this.browserDriverPath = chromePath; \n }",
"SearchResultsPage(WebDriver webDriver) {\n this.webDriver = webDriver;\n PageFactory.initElements(webDriver, this);\n }",
"public void setWebServiceDriver(WebServiceDriver driver) {\n this.getManagerStore().put(WebServiceDriverManager.class.getCanonicalName(),\n new WebServiceDriverManager(driver, this));\n }",
"@BeforeMethod\n\tpublic void setUpMethod() {\n//\t\tDrivers.setChrome();\n//\t\tthis.driver = Drivers.getDriver();\n\t\tdriver.get(DataReaders.projectProperty(\"baseURL\"));\n\t}",
"public void setDriver(String driver) {\r\n this.driver = driver;\r\n }",
"public interface WebDriverHandler {\n\t/**\n\t * Extracts the integrated web driver and configures the system properties\n\t * @param tempFiles A collection to place references to any temporary files in\n\t */\n\tvoid configureWebDriver(@NotNull List<File> tempFiles);\n}",
"public void setDriver(final Driver driver) {\n\t\tthis.driver = driver;\n\t}",
"public static WebDriver initializatio(){\n\t\t \r\n\t\t\t String browse_name= prop.getProperty(\"browser\");\r\n\t\t\t \r\n\t\t\t \r\n\t\t if(driver==null && browse_name.equals(\"chrome\")){\r\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//RJ//Downloads//chromedriver.exe\");\r\n\t\t\t driver=new ChromeDriver();\r\n\t\t\t //E:\\Yadav Selenium\r\n\t\t }\r\n\t\t \r\n\t\t else if(driver==null && browse_name.equals(\"FF\")){\r\n\t\t\t System.setProperty(\"webdriver.gecko.driver\", \"E://Yadav Selenium//geckodriver.exe\");\r\n\t\t\t driver=new FirefoxDriver();\r\n\t\t }\r\n\t\t event_driver=new EventFiringWebDriver(driver);\r\n\t\t //now cearte Eventlistnerhandler to resgistor with eventFireingWebdriver\r\n\t\t event_lisner=new WebEventListner();\r\n\t\t event_driver.register(event_lisner);\r\n\t\t driver=event_driver;\r\n\t\t \r\n\t\t driver.manage().window().maximize();\r\n\t\t driver.manage().deleteAllCookies();\r\n\t\t driver.manage().timeouts().pageLoadTimeout(Testutil.PAGE_LOAD_TIMEOUT, TimeUnit.SECONDS);\r\n\t\t driver.manage().timeouts().implicitlyWait(Testutil.IMPLICIT_WAIT, TimeUnit.SECONDS);\r\n\t\t // driver.get(prop.getProperty(\"url\"));\r\n\t\t driver.navigate().to(prop.getProperty(\"url\"));\r\n\t\treturn driver;\r\n\t}",
"@Parameters(\"browser\")\n\t \n @BeforeTest\n // Passing Browser parameter from TestNG xml\n \n public void beforeTest(String browser){\n\t if(browser.equalsIgnoreCase(\"firefox\")){\n\t driver = new FirefoxDriver();\n\t \n\t }// If browser is IE, then do this\n\t else if (browser.equalsIgnoreCase(\"ie\")){ \n\t // Here I am setting up the path for my IEDriver\n\t System.setProperty(\"webdriver.ie.driver\", \"E:\\\\IEDriverServer.exe\");\n\t driver = new InternetExplorerDriver();\n\t } \n\t // Doesn't the browser type, lauch the Website\n\t browserHelper.setUp(driver);\n\t }",
"public WebDriver getDriver() {\n\t\tSystem.out.println(\"Inside DriverFactory.getDriver\");\n\t\tif (webDriver == null) {\n\t\t\twebDriver = launchDriver();\n\t\t}\n\t\treturn webDriver;\n\t}",
"protected void init(WebDriver driver) {\n }",
"public WebDriver getDriver() {\n return driver;\n }",
"public WebDriver getDriver() {\n return driver;\n }",
"public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}",
"@BeforeClass\n public static void setup() {\n String driverPath = \"\";\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n }",
"public boolean setBrowserCapability(String key, String value) {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n return false;\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n extraCapabilities.setCapability(key, value);\n return true;\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n extraCapabilities.setCapability(key, value);\n return true;\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n }",
"public void initialize() {\n webDriverConfig = WebDriverConfig.getInstance();\n webDriver = WebDriverFactory.getDriver(webDriverConfig.getBrowser());\n webDriver.manage().window().maximize();\n webDriver.manage().timeouts().implicitlyWait(webDriverConfig.getImplicitWaitTime(), TimeUnit.SECONDS);\n webDriverWait = new WebDriverWait(webDriver, webDriverConfig.getExplicitWaitTime());\n }",
"@BeforeMethod\n public void setupMethod(){\n driver = WebDriverFactory.getDriver(\"chrome\");\n //maximize the page\n driver.manage().window().maximize();\n //implicit wait\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n //get the page\n driver.get(\"http://practice.cybertekschool.com/dropdown\");\n }",
"@Override\n public RemoteWebDriver getDriver() {\n\n File chromeFile = new File(Config.getProperty(Config.CHROME_PATH));\n System.setProperty(\"webdriver.chrome.driver\", chromeFile.getAbsolutePath());\n\n ChromeDriverService service = new ChromeDriverService.Builder()\n .usingDriverExecutable(chromeFile)\n .usingAnyFreePort().build();\n Driver.chromeService.set(service);\n try {\n service.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"--no-sandbox\");\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\n return new ChromeDriver(capabilities);\n }",
"@BeforeClass\n public void setUp() {\n System.out.println(\"Setting up webdriver\");\n //Set the webdriver to use and the path to the webdriver\n System.setProperty(\"webdriver.chrome.driver\", \"src/test/java/Webdrivers/chromedriver.exe\");\n driver = new ChromeDriver();\n //Give our newly setup driver the base url for mentor marketplace. This serves as a\n //launching point for all tests.\n driver.get(baseUrl);\n }",
"public AbstractWebSite(final WebDriver webDriver) {\r\n assertNotNull(webDriver);\r\n this.webDriver = webDriver;\r\n }",
"@BeforeTest(description=\"Driver initilization and pre test setup\")\r\n\tpublic void BeforeTest() {\n\t\tString browser = properties.getProperty(\"browser\");\r\n\t\tString browserVersion = properties.getProperty(\"browser-version\");\r\n\t\tlog.debug(\"Setting up \"+browser + \" version : \"+browserVersion);\r\n\t\tWebDriverManager.config().setForceCache(true);\r\n\t\tif(browser.equalsIgnoreCase(\"chrome\")) {\r\n\t\t\tif(browserVersion.equalsIgnoreCase(\"null\")) {\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tWebDriverManager.chromedriver().version(browserVersion).setup();\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\tlog.error(browser+\" \"+browserVersion+\" not available, defaulting to latest version.\");\r\n\t\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t}\r\n\t\telse if(browser.equalsIgnoreCase(\"firefox\")) {\r\n\t\t\tif(browserVersion.equalsIgnoreCase(\"null\")) {\r\n\t\t\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tWebDriverManager.firefoxdriver().version(browserVersion).setup();\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\tlog.error(browser+\" \"+browserVersion+\" not available, defaulting to latest version.\");\r\n\t\t\t\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t}\r\n\t\telse if(browser.equalsIgnoreCase(\"phantomjs\")) {\r\n\t\t\tif(browserVersion.equalsIgnoreCase(\"null\")) {\r\n\t\t\t\tWebDriverManager.phantomjs().setup();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tWebDriverManager.phantomjs().version(browserVersion).setup();\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\tlog.error(browser+\" \"+browserVersion+\" not available, defaulting to latest version.\");\r\n\t\t\t\t\tWebDriverManager.phantomjs().setup();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tCapabilities caps = new DesiredCapabilities();\r\n\t\t\t((DesiredCapabilities) caps).setJavascriptEnabled(true);\r\n\t\t\t((DesiredCapabilities) caps).setCapability(\"takesScreenshot\", true);\r\n\t\t\tdriver = new PhantomJSDriver(caps);\r\n\t\t\t\r\n\t\t\tif(properties.getProperty(\"cookies\").equalsIgnoreCase(\"clear\")) {driver.manage().deleteAllCookies();}\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t}\t\t\r\n\t}",
"public void setUpMethod(){\n driver = WebDriverFactory.getDriver(\"Chrome\");\n //maximize the page\n driver.manage().window().maximize();\n //implicit wait\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n }",
"public static WebDriver getDriver() {\n return driver;\n }",
"public WebDriver initializeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", projectPath + \"//src//main//resources//chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n }",
"public WebDriver getWebDriver() {\n\t\treturn this.driver;\n\t}",
"SeleniumFactory getSeleniumFactory();",
"public static WebDriver getDriver() {\n\t\treturn driver;\n\t}",
"protected WebDriverManager() {\n initialize();\n }",
"@BeforeTest(alwaysRun=true)\r\n\t@Parameters({\"browser\",\"url\"})\r\n\tpublic void set(String browser,String url)\r\n\t{\r\n\t\ttry\r\n\t\t{selectBrowser(browser);\r\n\t\tgeturl(url);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"not set up\");\r\n\t\t}\r\n\t}",
"@BeforeClass\n public static void instanceDriver() {\n ChromeOptions options = ConfigUtil.chromeOptions();\n driver = new ChromeDriver(options);\n wait = new WebDriverWait(driver, WEB_DRIVER_TIMEOUT);\n }",
"@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}",
"@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}"
] | [
"0.828379",
"0.8030983",
"0.7988254",
"0.7979152",
"0.7963479",
"0.76757646",
"0.7641143",
"0.75249076",
"0.7329819",
"0.72831017",
"0.723051",
"0.7178432",
"0.70324755",
"0.7012968",
"0.6957842",
"0.6956943",
"0.6940991",
"0.6897709",
"0.689191",
"0.68197167",
"0.6798344",
"0.67638016",
"0.6723309",
"0.6706165",
"0.67033845",
"0.6701535",
"0.6695297",
"0.66873693",
"0.6638556",
"0.65990376",
"0.65842426",
"0.65659344",
"0.65586764",
"0.6554825",
"0.6519286",
"0.648411",
"0.64661556",
"0.64485466",
"0.6441906",
"0.6440992",
"0.6440652",
"0.6430724",
"0.6422871",
"0.6422777",
"0.64167714",
"0.6414794",
"0.6403983",
"0.6401086",
"0.64006704",
"0.6397981",
"0.6367775",
"0.63452077",
"0.63451636",
"0.63426703",
"0.63402176",
"0.63392967",
"0.63391715",
"0.63357615",
"0.6333643",
"0.6328283",
"0.6325203",
"0.6315839",
"0.6312358",
"0.6304194",
"0.6283916",
"0.6283042",
"0.62781215",
"0.6276106",
"0.62601995",
"0.6258826",
"0.6257937",
"0.6232656",
"0.62306994",
"0.62294734",
"0.6228063",
"0.6225041",
"0.6218169",
"0.6211039",
"0.62094647",
"0.62094647",
"0.62046605",
"0.6199138",
"0.61896574",
"0.61709964",
"0.6163035",
"0.61585045",
"0.6157208",
"0.6148661",
"0.61413497",
"0.6141234",
"0.6140107",
"0.61291623",
"0.61101854",
"0.6106505",
"0.6090362",
"0.6087982",
"0.60861164",
"0.6084669",
"0.6084035",
"0.6082857"
] | 0.80401254 | 1 |
Method to load properties | private Properties getProptertiesUrl() {
prop = new Properties();
InputStream inputUrl = null;
try {
inputUrl = new FileInputStream(
currentDir + fileSeparator + "properties" + fileSeparator + "prop.properties");
} catch (FileNotFoundException e) {
e.printStackTrace();
}
// load a properties file
try {
prop.load(inputUrl);
} catch (IOException e) {
e.printStackTrace();
}
return prop;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}",
"default void load(Map<String, Object> properties)\r\n {\r\n }",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }",
"void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}",
"@Override\n public final boolean loadProperties() {\n if (props == null) {\n return false;\n }\n\n if (!loadFile()) {\n return false;\n }\n\n if (!loadFields()) {\n return false;\n }\n\n if (!loadFieldWidths()) {\n return false;\n }\n\n if (!loadTableName()) {\n return false;\n }\n\n if (!loadPkey()) {\n return false;\n }\n\n loadFieldOffsets();\n\n loadBatchSize();\n\n loadColumnTypes();\n\n loadRowValidator();\n // load column names. where they follow a given pattern.\n // load table name.\n\n return true;\n }",
"@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}",
"@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }",
"protected abstract void loadProperty(String key, String value);",
"public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void loadProperties() {\n\t\tInputStream propsFile;\n\t\tProperties tempProp = new Properties();\n\n\t\ttry {\n\t\t\t//propsFile = new FileInputStream(\"plugins\\\\balloonplugin\\\\BalloonSegmentation.properties\");\n\t\t\tpropsFile = getClass().getResourceAsStream(\"/BalloonSegmentation.properties\");\n\t\t\ttempProp.load(propsFile);\n\t\t\tpropsFile.close();\n\n\t\t\t// load properties\n\t\t\tinit_channel = Integer.parseInt(tempProp.getProperty(\"init_channel\"));\t\t\t\t// initial channel selected for segmenting the cell architecture 1 - red, 2 - green, 3 - blue\n\t\t\tinit_max_pixel = Integer.parseInt(tempProp.getProperty(\"init_max_pixel\"));\t\t\t// initial max pixel intensity used for finding the doundaries of the colony of cells\n\t\t\tinit_HL = Integer.parseInt(tempProp.getProperty(\"init_HL\"));\t\t\t\t\t\t// initial H*L factor used finding seeds in the population\n\t\t\tinit_min_I = Integer.parseInt(tempProp.getProperty(\"init_min_I\"));\t\t\t\t\t// initial pixel intensity when balloon algorithm starts\n\t\t\tinit_max_I = Integer.parseInt(tempProp.getProperty(\"init_max_I\"));\t\t\t\t\t// final pixel intensity when balloon algorithm stops\n\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tIJ.error(\"I/O Exception: cannot read .properties file\");\n\t\t}\n\t}",
"public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }",
"private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }",
"public void load(Map<String, String> props) {\n if (props != null && props.size() > 0) {\n for (String key : props.keySet()) {\n if (isSupported(key)) {\n String suffix = getSuffix(key);\n String value = props.get(key);\n loadProperty(suffix, value);\n }\n }\n }\n }",
"public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}",
"@Override\n\tpublic void loadProperties() {\n\t\tPropertySet mPropertySet = PropertySet.getInstance();\n\t\tdouble kp = mPropertySet.getDoubleValue(\"angleKp\", 0.05);\n\t\tdouble ki = mPropertySet.getDoubleValue(\"angleKi\", 0.0);\n\t\tdouble kd = mPropertySet.getDoubleValue(\"angleKd\", 0.0001);\n\t\tdouble maxTurnOutput = mPropertySet.getDoubleValue(\"turnPIDMaxMotorOutput\", Constants.kDefaultTurnPIDMaxMotorOutput);\n\t\tmAngleTolerance = mPropertySet.getDoubleValue(\"angleTolerance\", Constants.kDefaultAngleTolerance);\n\t\tsuper.setPID(kp, ki, kd);\n\t\tsuper.setOutputRange(-maxTurnOutput, maxTurnOutput);\n\t}",
"protected void loadProperties(ClassLoader al, URL url) {\n try (InputStream is = url.openStream()) {\n if (is == null) {\n log(\"Could not load definitions from \" + url,\n Project.MSG_WARN);\n return;\n }\n Properties props = new Properties();\n props.load(is);\n for (String key : props.stringPropertyNames()) {\n name = key;\n classname = props.getProperty(name);\n addDefinition(al, name, classname);\n }\n } catch (IOException ex) {\n throw new BuildException(ex, getLocation());\n }\n }",
"public PSBeanProperties()\n {\n loadProperties();\n }",
"private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}",
"private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }",
"private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }",
"private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }",
"void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}",
"private void initProperties(URL url) {\n if(null == url) {\n LOGGER.error(\"Can Load empty path.\");\n return;\n }\n\n Properties invProperties = getProperties(url);\n if(null == invProperties || invProperties.isEmpty()) {\n LOGGER.error(\"Load invsvr.properties failed !\");\n return;\n }\n\n INVTABLEPREFIX = invProperties.getProperty(\"tableprefix\");\n EXTENSIONTABLEPOSTFIX = invProperties.getProperty(\"exttablepostfix\");\n RELATIONTABLEPOSTFIX = invProperties.getProperty(\"relationtablepostfix\");\n CHANGESETAUTHOR = invProperties.getProperty(\"changesetauthor\");\n DEFAULTSCHEMA = invProperties.getProperty(\"defaultschema\");\n BASICTABLEFIXEDCOLIMN = invProperties.getProperty(\"basictablefixedcolumn\").split(\"/\");\n EXRENSIONTABLECOLUMN = invProperties.getProperty(\"exttablecolumn\").split(\"/\");\n EXTENDINDEXS = invProperties.getProperty(\"exttableindex\").split(\"/\");\n RELATIONTABLECOLUMN = invProperties.getProperty(\"relationtablecolumn\").split(\"/\");\n RELATIONINDEXS = invProperties.getProperty(\"relationtableindex\").split(\"/\");\n\n INFOMODELPREFIX = invProperties.getProperty(\"infomodelprefix\");\n DATAMODELPREFIX = invProperties.getProperty(\"datamodelprefix\");\n RELAMODELPREFIX = invProperties.getProperty(\"relamodelprefix\");\n RELATIONTYPEVALUES = getRelationTypeValues(invProperties.getProperty(\"relationtypevalue\"));\n }",
"private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }",
"public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }",
"public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }",
"private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}",
"private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }",
"public abstract Properties getProperties();",
"public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }",
"@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"void readProperties(java.util.Properties p) {\n }",
"private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }",
"@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}",
"public LoadTestProperties() {\n }",
"private void readProperties() throws Exception{\n\t\t InputStream fisGlobal=null,fisModul=null; \n\t\t propiedades = new Properties();\n try {\n \t // Path directorio de configuracion\n \t String pathConf = System.getProperty(\"ad.path.properties\");\n \t \n \t // Propiedades globales\n \t fisGlobal = new FileInputStream(pathConf + \"sistra/global.properties\");\n \t propiedades.load(fisGlobal);\n \t\t \n \t // Propiedades modulo\n \t\t fisModul = new FileInputStream(pathConf + \"sistra/plugins/plugin-firma.properties\");\n \t\t propiedades.load(fisModul);\n \t \t \t\t \n } catch (Exception e) {\n \t propiedades = null;\n throw new Exception(\"Excepcion accediendo a las propiedadades del modulo\", e);\n } finally {\n try{if (fisGlobal != null){fisGlobal.close();}}catch(Exception ex){}\n try{if (fisModul != null){fisModul.close();}}catch(Exception ex){}\n }\t\t\n\t}",
"private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }",
"public void setupProperties() {\n // left empty for subclass to override\n }",
"public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }",
"public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"@Override\n public void loadFromProperties(PropertiesWrapper properties) {\n\n useForeignKeyPrefix = properties.getBoolean(\"namingConvention.useForeignKeyPrefix\", useForeignKeyPrefix);\n sequenceFormat = properties.get(\"namingConvention.sequenceFormat\", sequenceFormat);\n schema = properties.get(\"namingConvention.schema\", schema);\n }",
"public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}",
"public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }",
"Properties getProperties();",
"public PropertiesUtil() {\n\t\t// Read properties file.\n\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(\"variables.properties\"));\n\t\t\tlog.info(\"variables.properties file loaded successfully\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"variables.properties file not found: \", e);\n\t\t}\n\t}",
"public static void loadProperties(Properties p, String fileName)throws IOException {\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL f = classLoader.getResource(fileName);\n FileInputStream fr = new FileInputStream(new File(fileName));\n p.load(fr);\n fr.close();\n }",
"public void populate(java.util.Map properties) throws LexComponentException;",
"private Properties loadProperties(String fileName){\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream input = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinput = new FileInputStream(fileName);\r\n\t\t\tprop.load(input);\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prop;\t \r\n\t}",
"public Properties loadPropertiesFromFile(String path) {\n\n\t\ttry {\n\t\t\tInputStream fileInputStream = PropertyUtil.class\n\t\t\t\t\t.getResourceAsStream(path);\n\t\t\tproperties.load(fileInputStream);\n\t\t\tfileInputStream.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn properties;\n\t}",
"protected Properties loadData() {\n/* 362 */ Properties mapData = new Properties();\n/* */ try {\n/* 364 */ mapData.load(WorldMapView.class.getResourceAsStream(\"worldmap-small.properties\"));\n/* 365 */ } catch (IOException e) {\n/* 366 */ e.printStackTrace();\n/* */ } \n/* */ \n/* 369 */ return mapData;\n/* */ }",
"void relLoadProperties( long relId, boolean light, PropertyReceiver receiver );",
"@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }",
"public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}",
"private static synchronized void initialize(String prop) {\n\t\tFileInputStream is=null;\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tis = new FileInputStream(prop);\n\t\t\tif (is == null) {\n\t\t\t System.out.println(\"The prop is null.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproperties.load(is);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t System.out.println(\"properties loading fails.\");\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\tfinally{\n\t\t\t\ttry{\n\t\t\t\t\tif(is!=null)\n\t\t\t\t\t\tis.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex){\n\t\t\t\t System.out.println(\"properties loading fails for runtime exception.\");\n\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t}\n\t}",
"void loadProperties(final String fileName){\n mProperties = new Properties();\n try {\n InputStreamReader stream = new InputStreamReader(CoreLib.getAppContext().getResources().\n getAssets().open(fileName));\n mProperties.load(stream);\n }catch (IOException e){\n throw new Error(\"Make sure you have both properties file(\" + fileName + \")present under assets\");\n }\n }",
"public abstract void load(Properties props, InputStream in)\n throws IOException, InvalidPropertiesFormatException;",
"private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"private void getProperties() {\n\t\tProperties menu_properties = new Properties();\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tinput = new FileInputStream(PROPERTY_FILENAME);\n\t\t\tmenu_properties.load(input);\n\t\t\ttitle = menu_properties.getProperty(TITLE_PROPERTY);\n\t\t\tscreen_width = Integer.parseInt(menu_properties.getProperty(WIDTH_PROPERTY));\n\t\t\tscreen_height = Integer.parseInt(menu_properties.getProperty(HEIGHT_PROPERTY));\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"Display file input does not exist!\");\n\t\t} catch (Exception ey) {\n\t\t\tSystem.err.println(\"The properties for the display could not be retrieved completely.\");\n \t} finally {\n \t\tif (input != null) {\n \t\t\ttry {\n \t\t\t\tinput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.err.println(\"Display file input cannot close!\");\n \t\t\t}\n \t\t}\n \t}\n }",
"public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected void readProperties() throws RepositoryException {\n try {\n log.debug(\"Reading meta file: \" + this.metaFile);\n this.properties = new HashMap();\n BufferedReader reader = new BufferedReader(new FileReader(this.metaFile));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n String name;\n String typeName;\n String value;\n try {\n name = line.substring(0, line.indexOf(\"<\")).trim();\n typeName = line.substring(line.indexOf(\"<\")+1, line.indexOf(\">\")).trim();\n value = line.substring(line.indexOf(\":\")+1).trim();\n } catch (StringIndexOutOfBoundsException e) {\n throw new RepositoryException(\"Error while parsing meta file: \" + this.metaFile \n + \" at line \" + line);\n }\n Property property = new DefaultProperty(name, PropertyType.getType(typeName), this);\n property.setValueFromString(value);\n this.properties.put(name, property);\n }\n reader.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }",
"public void load(Properties props) {\n\n if (props == null)\n return;\n super.load(props);\n StartingFunds = (float)getInt(props, \"StartingFunds\", (int)StartingFunds);\n NumTestTraders = getInt(props, \"NumTestTraders\", NumTestTraders);\n NumSteps = getInt(props, \"NumSteps\", NumSteps);\n try {\n\t\t\tdata = new StockData();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}",
"private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}",
"public void loadObjectData(String datafile) {\n\t\tProperties databaseAddData = new Properties();\n\t\ttry {\n\t\t\tdatabaseAddData.load(new FileInputStream(langFile));\n\t\t} catch (Exception e) {}\n\t\t//put values from the properties file into hashmap\n\t\tthis.properties.put(\"PROPERTY\", databaseAddData.getProperty(\"PROPERTY\"));\n\t}",
"@Override\n\tprotected void load(int version, String agentType, List<property_t> properties) {\n\t\tsuper.load(version, agentType, properties);\n\t\tfor (int i = 0; i < properties.size(); ++i) {\n\t\t\tproperty_t p = properties.get(i);\n\n\t\t\tif (p.name .equals(\"Frames\")) {\n\t\t\t\tint pParenthesis = p.value.indexOf('(');\n\n\t\t\t\tif (pParenthesis == -1) {\n\t\t\t\t\tthis.m_frames = AgentMeta.ParseProperty(p.value);\n\t\t\t\t} else {\n\t\t\t\t\tthis.m_frames = AgentMeta.ParseMethod(p.value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }",
"public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}",
"protected void fromProperties(Properties properties) {\r\n value = reader.read(properties, key, value);\r\n }",
"private static ConfigImpl loadProperties(Path path) throws IOException {\n final ConfigImpl ret;\n try (FileInputStream stream = new FileInputStream(path.toFile())) {\n try (InputStreamReader reader = new InputStreamReader(stream, UTF_8)) {\n ret = loadProperties(reader);\n }\n }\n return ret;\n }",
"public abstract AbstractProperties getProperties();",
"public void init(Properties props) ;",
"protected SftpPropertyLoad(final String bundleFileName) {\n\n\t\tthis.bundleFileName = bundleFileName;\n\n\t\tfinal Resource res = new ClassPathResource(StringUtil.replace(bundleFileName, \".\", \"/\") + \".properties\");\n\t\tfinal EncodedResource encodedResource = new EncodedResource(res, \"UTF-8\");\n\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(encodedResource);\n\t\t} catch (IOException e) {\n\t\t\tthrow new WebRuntimeException(e);\n\t\t}\n\t}",
"public GlobalSetup(){\n\t\t\n\t\tpropertyData = new Properties();\n\t\t\n\t\ttry{\n\t\t\tInputStream propertyPath = new FileInputStream(\"src/test/resources/properties/categoriesData.properties\");\n\t\t\tpropertyData.load(propertyPath);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}",
"private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n File oFile = new File(strPropertiesFilename);\n\n if (!oFile.exists()) {\n // Try to get it from jar file\n ClassLoader classLoader = Thread.currentThread()\n .getContextClassLoader();\n final InputStream input;\n\n if (classLoader == null) {\n classLoader = Class.class.getClassLoader();\n }\n input = classLoader\n .getResourceAsStream('/' + strPropertiesFilename);\n PropertyDef.setProperties(input, null);\n } else {\n PropertyDef.setProperties(new File(strPropertiesFilename), null,\n false);\n }\n if (strPropertiesFilename == DEFAULT_PROPERTIES_FILENAME) {\n oFile = new File(CUSTOMER_PROPERTIES_FILENAME);\n if (oFile.exists() && oFile.isFile()) {\n PropertyDef.addProperties(oFile);\n }\n }\n AdaptiveReplicationTool.msbPropertiesLoaded = true;\n }",
"public Properties getProperties();",
"public static Properties loadProperties(String filePath)\n {\n \tProperties listProperties = new Properties();\n\t\t//System.out.println(filePath);\n\n\t\tFileInputStream file = null;\n\t\ttry \n\t\t{\n\t\t\tfile = new FileInputStream(filePath);\n\t\t\t\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry \n\t\t{\n\t\t\t listProperties.load(file);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listProperties;\n }",
"public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}",
"public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\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\treturn prop;\r\n\t}",
"private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}",
"public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}",
"@BeforeTest\n\t\tpublic void propCalling() throws IOException\n\t\t{\n\t\t\t\n\t\t\tIntializingProperties();\n\t\t}",
"public static Properties loadProperties(String path) throws IOException {\n BufferedReader br = IOTools.asReader(path);\n Properties prop = new Properties();\n prop.load(br);\n br.close();\n return prop;\n }",
"public\n YutilProperties()\n {\n super(new Properties());\n }",
"public final void loadPropertiesFromFile(final String fileName)\n {\n\n Properties tempProp = PropertyLoader.loadProperties(fileName);\n fProp.putAll(tempProp);\n\n }",
"void graphLoadProperties( boolean light, PropertyReceiver receiver );",
"private boolean loadPropertiesDefinition()\n\t{\n\t\tString dname = org.apache.commons.io.FilenameUtils.concat(Paths.docDir,\n\t\t\t\torg.apache.commons.io.FilenameUtils.concat(lan.isoName, \"Lexical Analysis\"));\n\t\tString pname = org.apache.commons.io.FilenameUtils.concat(dname, \"_properties.def\");\n\t\tString errmessage = null;\n\t\tRefObject<String> errmessageRef = new RefObject<String>(errmessage);\n\t\tif (!loadCategoryPropertiesFeatures(pname, errmessageRef))\n\t\t{\n\t\t\terrmessage = errmessageRef.argvalue;\n\t\t\tJOptionPane.showMessageDialog(Launcher.getDesktopPane(), \"Warning: \" + errmessage, \"NooJ WARNING\",\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void init() {\n\t\tProperties prop = new Properties();\n\t\tInputStream propStream = this.getClass().getClassLoader().getResourceAsStream(\"db.properties\");\n\n\t\ttry {\n\t\t\tprop.load(propStream);\n\t\t\tthis.host = prop.getProperty(\"host\");\n\t\t\tthis.port = prop.getProperty(\"port\");\n\t\t\tthis.dbname = prop.getProperty(\"dbname\");\n\t\t\tthis.schema = prop.getProperty(\"schema\");\n\t\t\tthis.passwd=prop.getProperty(\"passwd\");\n\t\t\tthis.user=prop.getProperty(\"user\");\n\t\t} catch (IOException e) {\n\t\t\tString message = \"ERROR: db.properties file could not be found\";\n\t\t\tSystem.err.println(message);\n\t\t\tthrow new RuntimeException(message, e);\n\t\t}\n\t}",
"protected void loadTestProperties() throws BuilderException {\n\t}",
"public void init(java.util.Properties props) {\r\n }",
"public static Properties loadProperties() throws IOException {\r\n Properties properties = new Properties();\r\n properties.load(new FileInputStream(\"..\" + File.separator + \"commons\" + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator + \"framework.properties\"));\r\n return properties;\r\n }",
"public static void LoadIntoConfigFiles()\n {\n \tProperties prop = new Properties();\n ///*\n \ttry {\n \t\t//set the properties value\n \n prop.setProperty(\"comp_name\", \"Teledom International Ltd\");\n prop.setProperty(\"com_city\", \"Lagos\");\n \t\tprop.setProperty(\"State\", \"Lagos\");\n \t\tprop.setProperty(\"logo_con\", \"logo.png\");\n \t\tprop.setProperty(\"front_frame\", \"front.png\");\n prop.setProperty(\"back_frame\", \"back.png\");\n \n \n \n \n \t\t//save properties to project root folder\n \t\tprop.store(new FileOutputStream(setupFileName), null);\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n // */\n \n \n \n }",
"public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }"
] | [
"0.8010627",
"0.80047184",
"0.79978627",
"0.7671552",
"0.7621516",
"0.75811726",
"0.7398235",
"0.73953277",
"0.7371357",
"0.7366555",
"0.7332471",
"0.7276904",
"0.7249971",
"0.72431546",
"0.71676964",
"0.71566665",
"0.7141477",
"0.70978475",
"0.70960814",
"0.7069479",
"0.7029914",
"0.7024459",
"0.70093775",
"0.69968903",
"0.6980291",
"0.69539076",
"0.6943614",
"0.69334054",
"0.69079185",
"0.6871523",
"0.68648094",
"0.6858429",
"0.68360597",
"0.68324095",
"0.68183553",
"0.6810989",
"0.68053687",
"0.6793901",
"0.67660284",
"0.6751551",
"0.67448294",
"0.6743183",
"0.6712522",
"0.670779",
"0.668493",
"0.664801",
"0.6636913",
"0.66360396",
"0.6636024",
"0.6634686",
"0.6629596",
"0.6629574",
"0.66206324",
"0.6607743",
"0.65966994",
"0.6585649",
"0.65772873",
"0.6569118",
"0.65671486",
"0.6563164",
"0.6557147",
"0.6553168",
"0.6540128",
"0.65290445",
"0.650847",
"0.64881825",
"0.64853615",
"0.6433525",
"0.64303195",
"0.6428779",
"0.6427838",
"0.642295",
"0.6412239",
"0.6398184",
"0.6397849",
"0.63942856",
"0.6389626",
"0.6382494",
"0.6371809",
"0.63655335",
"0.63606775",
"0.63587683",
"0.6358319",
"0.63388646",
"0.633449",
"0.6333555",
"0.6320238",
"0.6309524",
"0.6306045",
"0.6295287",
"0.6293277",
"0.627249",
"0.6267777",
"0.62603015",
"0.6259938",
"0.62448126",
"0.6224477",
"0.6221961",
"0.62137437",
"0.6211145",
"0.6207759"
] | 0.0 | -1 |
Method to make webdriver sleep | public void sleep(long secs) {
try {
Thread.sleep(secs * 1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void sleeps() {\n\t\t\n\t}",
"@Override\n\tpublic void sleep() {\n\t\t\n\t}",
"void sleep();",
"void sleep();",
"private void webDriverTimeout(){\n try {\n Thread.sleep(TIMEOUT_SHORT);\n } catch (InterruptedException e){\n e.printStackTrace();\n }\n }",
"void sleep()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }",
"public static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}",
"private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }",
"private void Sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 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}",
"protected void pause() {\n sleep(300);\n }",
"private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }",
"void sleep ();",
"private void sleep() {\n\t\tSystem.out.println(\"Ape sleeping\");\n\t}",
"@Override\n\tpublic void sleep() {\n\t\t((Application) application()).unlockEC();\n\t\tsuper.sleep();\n\t}",
"public void goToSleep() {\n mPowerManager.goToSleep(SystemClock.uptimeMillis());\n }",
"private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }",
"public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}",
"private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public final void sleepBetweenActions()\n {\n long numOfMillis = Long\n .parseLong(getProperty(\"wait.between.user.actions.in.millis\"));\n if (numOfMillis > 10000)\n {\n numOfMillis = 10000;\n } else if (numOfMillis < 0)\n {\n numOfMillis = 0;\n }\n try\n {\n Thread.sleep(numOfMillis);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }",
"protected void sleep() {\n\t\tSystem.out.println(\"human sleep\");\n\t}",
"public void implicitTime() {\n\n try {\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}",
"private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }",
"private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void testSleep() {\n System.out.println(\"sleep\");\n long thinkTime = 0L;\n IOUtil.sleep(thinkTime);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private void sleep(int mul)\n {\n try {\n Thread.sleep(Driver.sleepTimeMs * mul);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"public static void waitPageLoad(final WebDriver driver, final long seconds) {\n\t\ttry {\n\t\t\tThread.sleep(seconds * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void sleep(long milliseconds) {\n\t\tGeneral.sleep(milliseconds);\n\t}",
"public void pause() {\n\t\tsleep(2000);\n\t}",
"public static void sleepFor(float time) {\n try {\r\n Thread.sleep((int)(time*1000));\r\n } catch (InterruptedException e){\r\n }\r\n }",
"private void sleep(int number) {\n\t\ttry {\n\t\t\tThread.sleep(number);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}}",
"private void waitForNextNews(final WebDriver webDriver) {\r\n\t\tfinal WebDriverWait wait = new WebDriverWait(webDriver, WAIT_SECONDS);\r\n\t\twait.until(\r\n\t\t\tExpectedConditions.elementToBeClickable(By.className(\"tbutton\"))\r\n\t\t);\r\n\t}",
"private void Perform_SLEEP()\n {\n if (Utils.bit5(get_ioreg(MCUCR)))\n mSleeping = true;\n return;\n }",
"private void sleep(int seconds) {\n\n\t\ttry {\n\t\t\tTimeUnit.SECONDS.sleep(seconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sleep(){\n System.out.println(\"Human Sleeps\");\n }",
"public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void sleep(long millis){\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void waitUntilPageLoad(WebDriver driver) \n\t{\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t}",
"public static void sleep1 () throws InterruptedException {\n\n // throws is cheaper way to get rid of exception\n Thread.sleep(2000);\n\n }",
"private void sleepMilliseconds(long milliseconds) {\n try {\n Thread.sleep(milliseconds);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void sleepFor(long duration) {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n // There is nothing to be done here\n }\n }",
"public static void waitForPageToLoad(WebDriver driver) throws InterruptedException\n\t{\n\t\t\n\t\tThread.sleep(2000);\n\t\t//waitPageLoad.until(executeJavaScript(\"return document.readyState;\", \"complete\"));\n\t}",
"public static void sleep(int delay) {\n try {\n Thread.sleep(delay);\n } catch (InterruptedException e) {\n }\n }",
"public static void sleep(long milis) {\n\t\ttry {\n\t\t\tThread.sleep(milis);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sleep(int slp)\n {\n try {\n Thread.sleep(slp);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void sleepUntilNextRetry() throws InterruptedException {\n\t\tint attempts = getAttemptTimes();\n\t\tlong sleepTime = (long) (retryIntervalMillis * Math.pow(2, attempts));\n\t\tLOG.info(\"Sleeping \" + sleepTime + \"ms before retry #\" + attempts\n\t\t\t\t+ \"...\");\n\t\ttimeUnit.sleep(sleepTime);\n\t}",
"private void dofakework() {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void sleep(long millis) {\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n public void test1(){\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver2 = new ChromeDriver();\n\n\n\n driver2.get(url);\n bekle(2000);\n driver2.quit();\n\n\n\n }",
"public void sleep(int time) {\n try {\n Thread.sleep(time);\n } catch (InterruptedException e) {\n }\n }",
"public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"public static void delay() throws InterruptedException {\n // This is the sleep thread method that makes the program sleep\n // for a program amount of milliseconds to slow down the program\n Thread.sleep(1500);\n }",
"public void waitForPageToLoad(WebDriver driver,int seconds)\n {\n driver.manage().timeouts().implicitlyWait(seconds, TimeUnit.SECONDS);\n\n }",
"public void sleepy(long ms)\n\t{\n\t\ttry {\n\t\t\tsleep(ms);\n\t\t} catch(InterruptedException e) {}\n\t}",
"public void wait(int time) {\r\n\t\t\tsuper.sleep(time);\r\n\t\t}",
"public void sleep() {\n \t\thealth = maxHealthModifier;\n \t\ttoxicity = 0;\n \t}",
"private long goToSleep(long lastSleepTime)\n\t{\n\t\tlong diff, sleepTime;\n\t\t\n\t\tdiff = System.currentTimeMillis() - lastSleepTime;\n sleepTime = PERIOD - lastSleepTime;\n if(sleepTime <= 0)\n sleepTime = 5;\n\n try \n {\n Thread.sleep(sleepTime);\n }\n catch(InterruptedException e){}\n\n return System.currentTimeMillis();\n\t}",
"protected final void sleep(int inMilliseconds) {\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(inMilliseconds);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t} // catch\r\n\t}",
"public static void implicateWait(AndroidDriver driver) {\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\t\n\t}",
"public void crawlDelay()\n\t{\n//\t\tint delay = robot.getCrawlDelay(best_match);\n//\t\tif (delay!=-1)\n//\t\t{\n//\t\t\ttry \n//\t\t\t{\n//\t\t\t\tTimeUnit.SECONDS.sleep(robot.getCrawlDelay(best_match));\n//\t\t\t} \n//\t\t\tcatch (InterruptedException e) \n//\t\t\t{\n//\t\t\t\treturn;\n//\t\t\t}\n//\t\t}\n\t}",
"@Test\r\n\tpublic void testcase() throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver.exe\");\r\n\t\t\r\n\t\t//Step2: Launch the browser\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\r\n\t\t//Setp3: Launch URL\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t\t\r\n\t\tThread.sleep(2000);\r\n\t\t\r\n\t\tdriver.close();\t\r\n\r\n\t}",
"public static void sleep(double seconds) {\n for (int i = 0; i < seconds * 10; i++) {\n try {\n while (Display.getCurrent().readAndDispatch())\n ;\n Thread.sleep(100);\n } catch (Exception e) {\n } catch (Error e) {\n }\n }\n }",
"public void sleep(){\n\n System.out.println(\"ZZZZZZZZZ bubble bubble bubble\");\n }",
"private static void delay() throws InterruptedException {\n\t\tTimeUnit.MILLISECONDS.sleep((long) (minDelay + (long)(Math.random() * ((maxDelay - minDelay) + 1))));\n\t}",
"public void waitAndClick(WebElement element) throws InterruptedException\n\t\t{\n\t\t\tint count=0;\n\t\t\twhile(count<20)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\telement.click();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcatch(Throwable e)\n\t\t\t\t{\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}",
"public static void smallBusiness() throws InterruptedException {\n\n Thread.sleep(3000);\n driver.findElement(By.xpath(\"/html/body/div[3]/div[2]/header[1]/div[2]/div/div[1]/div/ul/li[2]/a\")).click();\n }",
"public static void sleepForTwoSec() throws InterruptedException {\n Thread.sleep(2000);\n }",
"public void warte( int ms )\n {\n try\n {\n Thread.sleep( ms );\n }\n catch ( InterruptedException e )\n {\n e.printStackTrace();\n }\n }",
"public void sleep(long millis) {\n long end = System.currentTimeMillis() + millis;\n for (;;)\n try {\n Thread.sleep(end - System.currentTimeMillis());\n break;\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IllegalArgumentException e) {\n break; // If sleep value goes below 0\n }\n }",
"private static void pause( int milliseconds )\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep( milliseconds );\n\t\t}\n\t\tcatch( InterruptedException e )\n\t\t{\n\t\t}\n\t}",
"private void sleepMilliseconds(int time) {\n int multipliedParam = (int) (Math.random() * time + 1);\n\n try {\n TimeUnit.MILLISECONDS.sleep(multipliedParam);\n Log.v(\"DLASync.sleep\", \" sleep \" + multipliedParam + \" milliseconds...\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void waitToRetry()\n {\n final int sleepTime = 2000000;\n\n if (keepTrying)\n {\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (Exception error)\n {\n log.error(\"Ignored exception from sleep - probably ok\", error);\n }\n }\n }",
"public static void sleep(double a){\n\n try {\n Thread.sleep((long)a*1000);\n } catch (InterruptedException e) {\n\n }\n\n }",
"private static void sleep(int n) {\n try {\n TimeUnit.MILLISECONDS.sleep(n);\n } catch (InterruptedException e) {\n System.out.print(\"\\ndelay failed\");\n }\n }",
"public static void sleep(int seconds){\n seconds*=1000;\n try {\n Thread.sleep(seconds);\n }catch (InterruptedException e){\n e.getStackTrace();\n }\n }",
"public final void sleep(int millis) {\n Utils.sleep(millis);\n }",
"public static void sleepFor(int sec) throws InterruptedException {\n Thread.sleep(sec * 1000);\n }",
"@Override\n public void doTask() throws InterruptedException {\n Thread.sleep(5000);\n }",
"public void sleep() throws InterruptedException, IllegalArgumentException, Time.Ex_TimeNotAvailable, Time.Ex_TooLate\n {\n // The current time.\n AbsTime now;\n // The duration to wait.\n RelTime duration;\n\n // Make error if NEVER.\n if (isNEVER()) {\n throw new IllegalArgumentException(\"this == NEVER\");\n }\n\n // Don't do anything if ASAP.\n if (!isASAP()) {\n\n // Calculate the time now.\n now = new AbsTime();\n\n // Figure out how long to wait for.\n duration = Time.diff(this, now);\n\n // If duration is negative, throw the Ex_TooLate exception.\n if (duration.getValue() < 0L) {\n throw new Time.Ex_TooLate();\n }\n\n // Do the wait.\n duration.sleep();\n }\n }",
"public static void wait(int ms){\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n}",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"private void thinking(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }",
"private void delayStart() {\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n LOGGER.error(\"Could not sleep\", e);\n }\n }",
"public static void sleep(long msec)\n {\n try\n {\n Thread.sleep(msec);\n }\n catch (InterruptedException e)\n {\n }\n }",
"public static void sleep(Duration duration) {\n sleep(duration.toMillis());\n }",
"@Override\n public void sleep() {\n System.out.println(\"Zzz...\");\n }",
"private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }",
"private static void Test1(ChromeDriver driver) throws InterruptedException {\n\t\tHold();\n\t\tdriver.findElement(By.id(\"student\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.id(\"admin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.id(\"teacher\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}",
"@Test\n public void test () throws InterruptedException \n {\n JavascriptExecutor javascript = (JavascriptExecutor) driver;\n javascript.executeScript(\"alert('Test Case Execution Is started Now..');\");\n Thread.sleep(2000);\n driver.switchTo().alert().accept();\n }",
"public static void sleep(int delay) {\n try {\n \t// int delay = (int)(Math.random()*maxDelay);\n Thread.sleep(delay);\n } catch (InterruptedException e) {}\n\t}",
"@Given(\"^User navigates to the URL$\")\r\npublic void user_navigates_to_the_URL() throws Throwable {\r\n\tdriver.get(prop.getProperty(\"url\"));Thread.sleep(4000);\r\n WebDriverWait wait = new WebDriverWait(driver,60);\r\n\t wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(prop.getProperty(\"Popup\"))));\r\n\t driver.findElement(By.xpath(prop.getProperty(\"Popup\"))).click();Thread.sleep(5000);\r\n}",
"private Sleep(Duration duration) {\n this.duration = duration;\n }",
"public void delay(){\n try {\n Thread.sleep((long) ((samplingTime * simulationSpeed.factor)* 1000));\n } catch (InterruptedException e) {\n started = false;\n }\n }",
"private static void waiting(int time) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}"
] | [
"0.82458204",
"0.75944436",
"0.74400336",
"0.7378781",
"0.73717654",
"0.73717654",
"0.73524743",
"0.7225843",
"0.7222213",
"0.72149324",
"0.71164644",
"0.70706356",
"0.7041539",
"0.70098466",
"0.69230175",
"0.691147",
"0.6875855",
"0.68274355",
"0.68014026",
"0.6765442",
"0.67486364",
"0.6747161",
"0.673959",
"0.6723928",
"0.6701581",
"0.66511655",
"0.662209",
"0.65969497",
"0.6594628",
"0.6587463",
"0.6583975",
"0.65130436",
"0.6509633",
"0.6494722",
"0.64769053",
"0.6458762",
"0.6453008",
"0.64413184",
"0.64365333",
"0.6412421",
"0.64116913",
"0.63958913",
"0.6390036",
"0.6372997",
"0.63713545",
"0.6363309",
"0.6350513",
"0.6328244",
"0.6307788",
"0.6299572",
"0.6298379",
"0.62924033",
"0.62897575",
"0.62895197",
"0.62870646",
"0.62811726",
"0.62752336",
"0.6256609",
"0.6256004",
"0.6251373",
"0.62424284",
"0.62344205",
"0.6232539",
"0.6220591",
"0.62192696",
"0.62090194",
"0.6204098",
"0.61905265",
"0.61831",
"0.61827826",
"0.6180971",
"0.6160061",
"0.6156797",
"0.61549604",
"0.6154912",
"0.6151571",
"0.6148109",
"0.61456686",
"0.61438847",
"0.61372447",
"0.61368936",
"0.6134976",
"0.6131796",
"0.6125947",
"0.6125742",
"0.6120381",
"0.6102649",
"0.6102649",
"0.6099057",
"0.60906607",
"0.6087648",
"0.6079267",
"0.60786515",
"0.60752726",
"0.60730195",
"0.60669684",
"0.60598695",
"0.60590845",
"0.6052457",
"0.60474926",
"0.60460305"
] | 0.0 | -1 |
Method to switch to show tab | public void switchTotab(String showName) {
ArrayList<String> tabs = new ArrayList<String>(_eventFiringDriver.getWindowHandles());
for (String tab : tabs) {
_eventFiringDriver.switchTo().window(tab);
if (_eventFiringDriver.getTitle().contains(showName))
break;
}
sleep(5);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showTab(int tab) {\n switch (tab) {\n case OUTING_TAB_EXPENSES:\n switchToExpensesTab();\n break;\n case OUTING_TAB_BUDDIES:\n switchToBuddiesTab();\n break;\n }\n\n this.activeTab = tab;\n }",
"private void showTab() {\n if (parentTab != null) {\n tab = parentTab.getTab(this);\n if (tab != null) {\n // FIXME: this should be added by the constructor or by the panel that adds this\n // tab\n // tab.getComponent().addStyleName(\"example-queries-tab\");\n tab.setEnabled(true);\n\n if (!(parentTab.getSelectedTab() instanceof ResultViewPanel)) {\n parentTab.setSelectedTab(tab);\n }\n }\n }\n\n }",
"public void tabSelected();",
"@Override\n public void onClick(View v) {\n tabChangeInterface.switchToTheNextTab();\n }",
"public void displayTreatmentTab() {\r\n\t\t\tgetActionBar().selectTab(getActionBar().getTabAt(TREATMENT_TAB_INDEX));\r\n\t\t}",
"protected void switchTab(int index) {\n\t\tCapabilities.getDriver().switchTo().window(new ArrayList<String>(Capabilities.getDriver().getWindowHandles()).get(index));\n\t}",
"private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}",
"public void switchToTalentPanel() {\r\n this.midPanelCards.show(this.flipPanel, \"TalentPanel\");\r\n }",
"public void tabChange() {\r\n\t}",
"public void contentPanelTabSwitchAction() {\n\t\tComponent selectedComponent = animalsTab.getTabPanel().getSelectedComponent();\n\t\tComponent animalTab = this.animalsTab;\n\t\tif (selectedComponent == animalTab) {\n\t\t\tfillUpAnimalsTable(dateToDisplay);\n\t\t}\n\t}",
"private void changeTab(int tabIndex) {\n if (tabIndex == 0){\n showNav();\n tabHost.setCurrentTab(0);\n radioGroup.clearCheck();\n }\n else {\n if (tabHost.getCurrentTab() == tabIndex) {\n // dong filter tab -> main tab\n showNav();\n tabHost.setCurrentTab(0);\n radioGroup.clearCheck();\n } else {\n // mo filter tab\n hideNav();\n tabHost.setCurrentTab(tabIndex);\n }\n }\n }",
"protected void showTabs() {\r\n\t\tif (getPageCount() > 1) {\r\n\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));\r\n\t\t\tif (getContainer() instanceof CTabFolder) {\r\n\t\t\t\t((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT);\r\n\t\t\t\tPoint point = getContainer().getSize();\r\n\t\t\t\tgetContainer().setSize(point.x, point.y - 6);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void applyTab();",
"void goToSettingsTab(FragmentActivity activity);",
"public void selectTab(int index) {\r\n\t\tthis.displayTab.setSelection(index);\r\n\t\tthis.displayTab.showSelection();\r\n\t}",
"public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}",
"public void setSelectedTab(int arg0) {\n\n\t}",
"public void selectTab(Predicate<? super CTabItem> tabFilter) {\r\n\t\tthis.displayTab.setSelection(Arrays.stream(this.getTabFolder().getItems()).filter(tabFilter).findFirst().orElseThrow(() -> new UnsupportedOperationException()));\r\n\t\tthis.displayTab.showSelection();\r\n\t}",
"private void setupTabs() {\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thost.setCurrentTab(CHART);\r\n\t\t\t}",
"public void setFirstVisibleTab(int arg0) {\n\n\t}",
"protected void activateTab() {\n GWT.log(\"activateTab \" + getActiveTabId());\n List<String> ids = new ArrayList<String>();\n ids.add(\"contestsli\");\n ids.add(\"driversli\");\n ids.add(\"chatsli\");\n ids.add(\"dirli\");\n ids.add(\"menuli\");\n for (String id : ids) {\n com.google.gwt.dom.client.Element element = DOM.getElementById(id);\n if (element != null) {\n element.removeAttribute(\"style\");\n }\n }\n String tabId = getActiveTabId();\n if (tabId != null) {\n com.google.gwt.dom.client.Element element = DOM.getElementById(tabId);\n if (element != null) {\n element.setAttribute(\"style\", \"background:white;\");\n }\n }\n }",
"public void switchNextTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i + 1 <= tabItems.length - 1)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void pressTab() {\n\t\tSystem.out.println(\"Change active control.\");\n\t\t\n\t\tchangeCurrentControl(false);\n\t\t\n\t\tif (getCurrentControlIndex() < getControls().size() - 1) \n\t\t\tsetCurrentControlIndex(getCurrentControlIndex() + 1);\n\t\telse \n\t\t\tsetCurrentControlIndex(0);\n\n\t\tchangeCurrentControl(true);\n\t}",
"public Tab switchToTab(Palette tab) {\n click(tab.getTabPath());\n return this;\n }",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.main_ll_xw:\n setTabSelection(0);\n break;\n case R.id.main_ll_rili:\n setTabSelection(1);\n break;\n case R.id.main_ll_hq:\n setTabSelection(2);\n break;\n case R.id.main_ll_wd:\n setTabSelection(3);\n break;\n\n case R.id.main_ll_self:\n setTabSelection(4);\n break;\n }\n }",
"public static void setActiveTab(Tab tab) {\n\n try {\n controller.tabPane.getTabs().add(controller.appointmentTab);\n controller.tabPane.getTabs().add(controller.bookingTab);\n controller.tabPane.getTabs().add(controller.customerTab);\n controller.tabPane.getTabs().add(controller.employeeTab);\n controller.tabPane.getTabs().add(controller.malfunctionTab);\n controller.tabPane.getTabs().add(controller.statisticTab);\n controller.tabPane.getTabs().add(controller.vehicleTab);\n\n SingleSelectionModel<Tab> selectionModel = controller.tabPane.getSelectionModel();\n\n selectionModel.select(tab);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }",
"public native void selectTab(GInfoWindow self, int index)/*-{\r\n\t\tself.selectTab(index);\r\n\t}-*/;",
"public void setTab(String s)\n\t{\n\t\ttab = s;\n\t\tsetHelpTopic(tab);\n\t\tif (!tab.equals(\"preference\") && !tab.equals(\"welcome\"))\n\t\t\tsetPreferenceView(tab);\n\t}",
"private void initTab()\n {\n \n }",
"protected void setShow() {\n\t\tbarLayout.setVisibility(View.GONE);\r\n\t\tif (showFragment == null) {\r\n\t\t\tfTransaction\r\n\t\t\t\t\t.add(R.id.content, new ShowFragment(), ShowFragment.TAG);\r\n\t\t} else {\r\n\t\t\tfTransaction.attach(showFragment);\r\n\t\t}\r\n\t\ttitleTV.setText(R.string.show);\r\n\t\tleftTV.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\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\thost.setCurrentTab(CHART);\r\n\t\t\t}\r\n\t\t});\r\n\t\trightTV.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\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\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }",
"public boolean showIfOpen(String key) {\n\t\tif (openedTabs.containsKey(key)) {\n\t\t\tLoadingPopup.close();\n\n\t\t\tPanel tpi = (Panel) openedTabs.get(key);\n\t\t\tthis.tp.activate(tpi.getId());\n\t\t\t//tp.scrollToTab(tpi, true);\n\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\r\n\t\t\t\tIntent it = new Intent(TabHo.this, Play.class);\r\n\t\t\t\tTabHo.this.startActivity(it);\r\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(2)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[2]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(2);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.tab_home:\n setHome();\n break;\n case R.id.tab_store:\n this.mIconHome.setImageResource(R.drawable.home_icon_home);\n this.mIconStore.setImageResource(R.drawable.home_icon_store_press);\n this.mIconCart.setImageResource(R.drawable.home_icon_cart);\n this.mIconMy.setImageResource(R.drawable.home_icon_my);\n this.mHomeText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mStoreText.setTextColor(getResources().getColor(R.color.pink));\n this.mCartText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mMyText.setTextColor(getResources().getColor(R.color.content_gray));\n\n getTabHost().setCurrentTab(1);\n break;\n case R.id.tab_cart_layout:\n setCart();\n break;\n case R.id.tab_my_outer:\n this.mIconHome.setImageResource(R.drawable.home_icon_home);\n this.mIconStore.setImageResource(R.drawable.home_icon_store);\n this.mIconCart.setImageResource(R.drawable.home_icon_cart);\n this.mIconMy.setImageResource(R.drawable.home_icon_my_press);\n this.mHomeText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mStoreText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mCartText.setTextColor(getResources().getColor(R.color.content_gray));\n this.mMyText.setTextColor(getResources().getColor(R.color.pink));\n\n getTabHost().setCurrentTab(3);\n break;\n default:\n break;\n }\n }",
"@FXML\n private void weeklyTab(){\n openReservation(false);\n openEventInfo(false, null);\n }",
"public static void openTab(ClientContext ctx, Game.Tab tab) {\n if (ctx.game.tab() != tab) {\n\n if (tab == Game.Tab.INVENTORY) {\n ctx.input.send(\"{VK_F2 down}\");\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.game.tab() == tab;\n }\n }, 250, 10);\n ctx.input.send(\"{VK_F2 up}\");\n\n } else if (tab == Game.Tab.MAGIC) {\n ctx.input.send(\"{VK_F4 down}\");\n\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.game.tab() == tab;\n }\n }, 250, 10);\n ctx.input.send(\"{VK_F4 up}\");\n } else {\n ctx.game.tab(tab);\n\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.game.tab() == tab;\n }\n }, 250, 10);\n }\n }\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(1)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[1]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(1);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t\tif(requestCode==R.id.dodaj)\n\t\t\ttabHost.setCurrentTab(1);\n\t}",
"@Override\n public void onTabChanged(String tabId) {\n FragmentManager fragmentManager = TabMainActivity.this.getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n int position = fragmentTabHost.getCurrentTab();\n for (int i = 0; i < list.size(); i++) {\n if (position == i) {\n transaction.show(list.get(i));\n } else {\n transaction.hide(list.get(i));\n }\n }\n transaction.commit();\n//\t viewPage.setCurrentItem(position);\n }",
"public void switchTo(WebDriver grimlockDriver, String tabName) {\n grimlockDriver.switchTo().window(tabName);\n }",
"public void showHistorySwitchAction() {\n\t\tanimalsListPanel.switchToPast();\n\t}",
"void goToWalletTab(FragmentActivity activity);",
"public void openList() {\n\t\tString title = resourceManager.getString(\"process.view.list.title\");\n\t\tint indexOfTab = tabbedPane.indexOfTab(title);\n\t\tif (indexOfTab >= 0) {\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t} else {\n\t\t\tlView = new ListView(this, resourceManager);\n\t\t\ttabbedPane.addTab(title, lView);\n\n\t\t\ttabbedPane.setTabComponentAt(tabbedPane.indexOfTab(title),\n\t\t\t\t\tnew ButtonTabComponent(tabbedPane, this, lView,\n\t\t\t\t\t\t\tresourceManager));\n\t\t\tindexOfTab = tabbedPane.indexOfTab(title);\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t\tloadListView();\n\t\t}\n\t}",
"public void switchToDebug() {\r\n\t\tdebugPane.addEditTabs(editTabs);\r\n\t\tlayout.show(this, \"debugPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}",
"public void routetopage() {\n this.setVisible(true);\n }",
"@Override\n\tpublic void selectTab(Tab tab) {\n\t\t\n\t}",
"public void navigateToTab(String tabName) {\n if (tabName.equals(\"File\") || tabName.equals(\"Appreciation\") ||\n tabName.equals(\"Announcement\") || tabName.equals(\"Workflow\")) {\n WebElement more = driver.findElement(By.xpath(\"//span[@id='feed-add-post-form-link-text' and contains(text(),'More')]\"));\n more.click();\n BrowserUtils.wait(3);\n WebElement subModule=driver.findElement(By.xpath(\"//span[@class='menu-popup-item-text' and contains(text(),'\"+tabName+\"')]\"));\n subModule.click();\n } else {\n String tabXpath = \"//span[@class='feed-add-post-form-link']//span[text()='\" + tabName + \"']\";\n WebElement tab = driver.findElement(By.xpath(tabXpath));\n\n tab.click();\n }\n }",
"public void show();",
"private void selectFirstTab() {\n Tab tab = view\n .getNationsTabPane()\n .getTabs().get(0);\n\n tabChanged(tab, tab);\n }",
"protected abstract void updateTabState();",
"private boolean setTabPannel(TabPanel tp){\n m_tp = tp;\n return true;\n \n }",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}",
"protected abstract void doTabSelectionChanged(int oldIndex, int newIndex);",
"public void changeTab(int index) {\n\t\ttabsContainer.getSelectionModel().select(index);\n\t}",
"public void showIt(){\n this.setVisible(true);\n }",
"@FXML\n private void dailyTab() {\n openReservation(false);\n openEventInfo(false, null);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, MainActivity.class);\n intent.putExtra(MainActivity.SELECTED_TAB_EXTRA_KEY, MainActivity.EARNINGS_TAB);\n context.startActivity(intent);\n// Intent intent = new Intent(context, TvBetaActivity.class);\n// context.startActivity(intent);\n\n }",
"@Override\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n if (tab.getPosition() == 1) {\n HomeFragment homeFragment = (HomeFragment)getSupportFragmentManager()\n .findFragmentByTag(\"android:switcher:\"+viewPager.getId()+\":\"+tab.getPosition());\n homeFragment.init();\n }\n }",
"@Override\n public void setActiveTab(Tab tab) {\n // monkey protection against delayed start\n if (tab != null) {\n mTabControl.setCurrentTab(tab);\n // the tab is guaranteed to have a webview after setCurrentTab\n mUi.setActiveTab(tab);\n }\n }",
"@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"Tab getTab();",
"public void tabChanged()\n {\n super.tabChanged();\n }",
"public void switchPreviousTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i - 1 >= 0)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i - 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(tabItems.length - 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\r\n\t\t// on tab selected\r\n\t\t// showing respected fragment view at view pager\r\n\t\tviewPager.setCurrentItem(tab.getPosition());\r\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"private void open() {\n\t\tdelegate.questionTabOpened(assesmentProxy.getId(),question.getId(),this);\n\t\t\n\t\tif(answersLoaded==false){\n\t\t\tdelegate.twistieOpenQuestionClicked(this);\n\t\t\tanswersLoaded=true;\n\t\t}\n\t\ttwistieOpen.setVisible(false);\n\t\tanswers.setVisible(true);\n\t\ttwistieClose.setVisible(true);\n\t\tanswersVisible=true;\n\t\tdetailsTablePanel.setVisible(true);\n\t\tquestionTable.setClassName(\"questionTable-open\");\n\t}",
"public void go() {\n\t\tjfad.setVisible(true);\n\t}",
"void onTabReselected(int position);",
"void goToContactsTab(FragmentActivity activity);",
"public void show() {\n }",
"public void show() {\n super.show();\n }",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"public static void switchToActiveTab() throws Exception {\n ArrayList<String> tabs = new ArrayList<String>(driver.getWindowHandles());\n Thread.sleep(500);\n driver.switchTo().window(tabs.get(1));\n }",
"@Override\r\n\tpublic void show() {\n\t}"
] | [
"0.77093196",
"0.75951296",
"0.68816686",
"0.66892046",
"0.6603314",
"0.6583273",
"0.65817016",
"0.6565705",
"0.6559263",
"0.6516579",
"0.645496",
"0.641808",
"0.6408184",
"0.6377161",
"0.63271755",
"0.6320795",
"0.62943166",
"0.62921274",
"0.6253021",
"0.62317705",
"0.6197785",
"0.61716473",
"0.6166834",
"0.6138805",
"0.61276364",
"0.61061376",
"0.6070513",
"0.6067175",
"0.6060868",
"0.6055211",
"0.60543656",
"0.60504985",
"0.6040814",
"0.60371065",
"0.60243136",
"0.6018332",
"0.60125434",
"0.60073876",
"0.60043687",
"0.600062",
"0.59998286",
"0.5990024",
"0.5951456",
"0.594959",
"0.59476215",
"0.5947553",
"0.5944622",
"0.5940159",
"0.5935632",
"0.5926419",
"0.59262097",
"0.5925263",
"0.5920996",
"0.5915574",
"0.5907421",
"0.5904528",
"0.5900845",
"0.59003574",
"0.5898097",
"0.58970654",
"0.5885884",
"0.5885222",
"0.5871345",
"0.5871345",
"0.5871345",
"0.58676994",
"0.586437",
"0.5846366",
"0.5845648",
"0.58430773",
"0.58430773",
"0.58430773",
"0.58430773",
"0.58430773",
"0.58430773",
"0.58430773",
"0.58430773",
"0.5838879",
"0.582752",
"0.58217716",
"0.58161557",
"0.5813103",
"0.5808854",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.5806129",
"0.58059925",
"0.5797155"
] | 0.6574522 | 7 |
Method to switch to iframe | public void switchToIframe(By locator) {
waitForElementToAppear(locator, 30);
_eventFiringDriver.switchTo().frame(_eventFiringDriver.findElement(locator));
System.out.println("switched to iframe");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void switchToIFrame(WebElement iframe) {\n log.traceEntry();\n try {\n if (webWaitsutil.isElementPresent(iframe)) {\n driver.switchTo().frame(iframe);\n }\n } catch (Exception e) {\n log.error(\"Something went wrong [{}]\", e.getMessage());\n }\n log.traceExit();\n }",
"private void switchToFrame() {\n\t\tdriver.switchTo().frame(\"mainpanel\");\n\t}",
"public void switchToEvisitPageFrame() {\r\n\t\tcontrols.switchToFrame(\"eVisit\", \"CSS_evisit_Iframe\");\r\n\t}",
"public void switchToParentIFrame() {\n\t\t_eventFiringDriver.switchTo().parentFrame();\n\t\tSystem.out.println(\"control is switched to Parent Frame\");\n\t}",
"public void switchFrameToAngelContent()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tSync.waitForFrame(driver, \"AngelContent Frame\", \"AngelContent\", 6);\r\n\t\t}\r\n\t\tcatch(Exception e){}\r\n\t}",
"public void switchToFrame(WebElement ele) {\n\t\tgetter().switchTo().frame(ele);\r\n\t}",
"public void switchToFrame(String name){\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,60);\n\t\t\twait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(name));\n\t\t\tLOGGER.info(\"Step : Switched to the frame with name\"+name+\" :Pass\");\n\t\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switched to Frame frame with name\"+name+\" :Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to frame\");\n\t\t\t}\n\t\t}",
"public void switchFrameToContentFrame()\r\n\t{\r\n\t\ttry{\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tSync.waitForFrame(driver, \"ContentFrame Frame\", \"contentFrame\", 6);\r\n\t\t}\r\n\t\tcatch(Exception e){}\r\n\t}",
"IFRAME createIFRAME();",
"public void SwitchToFrame(String handle)\n\t{\n\t}",
"public static void switchToFrame(WebDriver driver, WebElement el) {\r\n\r\n\t\tdriver.switchTo().frame(el);\r\n\t}",
"public void switchFrameToContent()\r\n\t{\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tSync.waitForFrame(driver, \"ContentWin Frame\", \"contentWin\", 6);\r\n\t\tSync.waitForFrame(driver, \"_yuiResizeMonitor Frame\", \"_yuiResizeMonitor\", 6);\t\t\r\n\t}",
"public void switchToFrame(By locator){\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,60);\n\t\t\twait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(locator));\n\t\t\tLOGGER.info(\"Step : Switch to the frame with locator\"+locator+\" :Pass\");\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switch to the frame with locator\"+locator+\" :Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to frame\");\n\t\t}\n\t}",
"public void switchToFrame(int index){\n\n\t\ttry {\n\t\t\tdriver.switchTo().frame(index);\n\t\t\tLOGGER.info(\"Step : Switched to Frame with index \"+index+\" :Pass\");\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switched to Frame with index \"+index+\" :Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to frame\");\n\t\t\t}\n\t\t}",
"public static void changeFrame() {\r\n\t\t\r\n\t}",
"public static void switchToFrameWithWebElement(WebElement element) {\n\t\tdriver.switchTo().frame(element);\n\t}",
"public static void switch_back_frame() throws CheetahException {\n\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\", \"Attempting to Switch back from frame\",\n\t\t\t\tConstants.LOG_INFO);\n\n\t\ttry {\n\t\t\tCheetahEngine.getDriverInstance().switchTo().defaultContent();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"public static void switch_to_frame(String frameName) throws CheetahException {\n\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\", \"Attempting to Switch frame: \" + frameName,\n\t\t\t\tConstants.LOG_INFO);\n\t\ttry {\n\t\t\tCheetahEngine.getDriverInstance().switchTo().frame(frameName);\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"public static void switchToParentFrame(WebDriver driver) {\n\t\tdriver.switchTo().parentFrame();\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\tif (browser.equals(\"Firefox\")) {\r\n\t\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t} else if (browser.equals(\"Chrome\")) {\r\n\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t} else if (browser.equals(\"Edge\")) {\r\n\t\t\tWebDriverManager.edgedriver().setup();\r\n\t\t\tdriver = new EdgeDriver();\r\n\t}\r\n\r\n\t\t\r\n\t\tdriver.get(\"https://www.w3schools.com/js/tryit.asp?filename=tryjs_default\");\r\n\t\t driver.manage().window().maximize();\r\n\t\t //This will throws error of handling frame\r\n\t\t// driver.findElement(By.xpath(\"//button[text()='Click Me!']\")).click();\r\n\t\t \r\n\t\t // A page can have multiple iframe. First We need to find xpath for required iframe\r\n\t\t WebElement framebyelemnet = driver.findElement(By.xpath(\"//iframe[@id='iframeResult']\"));\r\n\t\t //Then use switch method to navigate to the correct iframe. This iframe switch over by using Webelement\r\n\t\t driver.switchTo().frame(framebyelemnet);\r\n\t\t driver.findElement(By.xpath(\"//button[text()='Click Me!']\")).click();\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t //Switch to iframe using name or id of iframe\r\n\t\t driver.get(\"https://www.w3schools.com/js/tryit.asp?filename=tryjs_default\");\r\n\t\t driver.manage().window().maximize();\r\n\t\t driver.switchTo().frame(\"iframeResult\");\r\n\t\t driver.findElement(By.xpath(\"//button[text()='Click Me!']\")).click();\r\n\t\t \r\n\t\t //Switch to iframe using index of the iframe\r\n\t\t driver.get(\"https://www.w3schools.com/js/tryit.asp?filename=tryjs_default\");\r\n\t\t driver.manage().window().maximize();\r\n\t\t //To find frame index , you need enter //iframe in the search html box. It will display how many iframe tag\r\n\t\t //presented in the page. move the cursor and find out which index it will stop. Each index start with 0\r\n\t\t // For Example. if the page have 2 frame and the current frame is 1 ,then index of that iframe is 0\r\n\t\t driver.switchTo().frame(0);\r\n\t\t driver.findElement(By.xpath(\"//button[text()='Click Me!']\")).click();\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n}",
"public PDUsPage switchToMainFrame(){\n\t\tswitchToFrame(\"Frame_Main\");\n\t\treturn this;\n\t}",
"public static void waitAndSwitchToFrame(WebDriver driver,\n\t\t\tint timeOutInSeconds, By locator) throws InterruptedException {\n\t\twaitForPageLoad(driver);\n\t\tlogger.info(\"Switching to Frame\" + locator.toString());\n\t\tWebDriverWait wait = new WebDriverWait(driver, timeOutInSeconds);\n\t\twait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(locator));\n\t}",
"public static void switchToDefaultFrame(WebDriver driver) {\n\t\tdriver.switchTo().defaultContent();\n\t}",
"public void switchToFrame(By locator) {\n try {\n driver.switchTo().frame(find(locator));\n } catch (NoSuchFrameException e) {\n log.error(\"Unable to locate frame with locator: [\" + locator + \"]\");\n log.error(e.toString());\n } catch (Exception e) {\n log.error(\"Unable to navigate to frame with locator: [\" + locator + \"]\");\n log.error(e.toString());\n }\n }",
"public void switchToMainFrame(WebDriver driver) {\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tdriver.switchTo().frame(\"gsft_main\"); // edge_center\r\n\r\n\t}",
"public String moveToFrameByXpath(String object, String data) {\n\t\tlogger.debug(\"Move to the iframe .......\");\n\t\ttry {\n\t\t\t//waitForPageLoad(driver);\n\t\t\t//System.out.println(\"inside moveToFrameByXpath ---\");\n\t\t\tWebElement iframe =driver.findElement(By.xpath(OR.getProperty(object))); //wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n\t\t\tlogger.debug(\"iframe\" + iframe);\n\t\t\tdriver.switchTo().frame(iframe);\n\t\t\tpause(object,data);\n\t\t\treturn Constants.KEYWORD_PASS;\n\t\t} \n\t\tcatch(TimeoutException ex){\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to move into iframe\" + ex.getCause();\n\t\t}\n\t\t\n\t\tcatch (Exception e) {\n\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to move into iframe\" + e.getMessage();\n\t\t}\n\n\t\n\t}",
"public void refreshFrame() {\n switchWindow();\n this.switchToFrame(\"botFr\");\n }",
"public void switchToFrame(By locator) {\n String locatorSubString = testHelper.getLocatorString(locator);\n\n driver.get().switchTo().frame(locatorSubString);\n }",
"public String moveToFrame(final String object, String data) {\n\t\tlogger.debug(\"Move to the iframe .......\");\n\t\ttry {\n\n\t\t\tWait<WebDriver> wait = new FluentWait<WebDriver>(driver).withTimeout(explicitwaitTime, TimeUnit.SECONDS)\n\t\t\t\t\t.pollingEvery(pollingTime, TimeUnit.MILLISECONDS).ignoring(Exception.class);\n\n\t\tWebElement\tiframe = wait.until(new Function<WebDriver, WebElement>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic WebElement apply(WebDriver driver) {\n\t\t\t\t\treturn driver.findElement(By.id(OR.getProperty(object)));\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tdriver.switchTo().frame(iframe);\n\t\t\tpause(object,data);\n\n\t\t}\n\t\tcatch(TimeoutException ex){\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to move into iframe\" + ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to move into iframe\" + e.getMessage();\n\t\t}\n\n\t\treturn Constants.KEYWORD_PASS;\n\t}",
"public static boolean switchToFrameUsingFrameName(WebDriver driver, String frameName) {\n\t\ttry {\n\t\t\tif (driver != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdriver.switchTo().frame(frameName);\n\t\t\t\t\treturn true;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Unable to switch frame.\" + e.getMessage());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Driver is not initilasied.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t}",
"public void switchToParentWindow() throws InterruptedException {\n\t\tSet<String>windowid=driver.getWindowHandles();\n\t\tIterator<String>itr=windowid.iterator();\n\t\tString mainwindow=itr.next();\n\t\tString childwindow=itr.next();\n\t\tdriver.close();\n\t\tdriver.switchTo().window(mainwindow);\n\t\tdriver.switchTo().defaultContent();\n\t\tThread.sleep(5000);\n\t\t\n\t}",
"public static void waitAndSwitchToFrame(WebDriver driver,\n\t\t\tint timeOutInSeconds, String sFrameName)\n\t\t\t\t\tthrows InterruptedException {\n\t\tWebDriverWait wait = null;\n\t\ttry {\n\t\t\twaitForPageLoad(driver);\n\t\t\tlogger.info(\"Waiting and Switching to Frame by its Name \"\n\t\t\t\t\t+ sFrameName);\n\t\t\twait = new WebDriverWait(driver, timeOutInSeconds);\n\t\t\twait.until(ExpectedConditions\n\t\t\t\t\t.frameToBeAvailableAndSwitchToIt(sFrameName));\n\t\t\tlogger.info(\"Switched to Frame : \" + sFrameName);\n\t\t} catch (TimeoutException e) {\n\t\t\tdriver.navigate().refresh();\n\t\t\twaitForPageLoad(driver);\n\t\t\twait.until(ExpectedConditions\n\t\t\t\t\t.frameToBeAvailableAndSwitchToIt(sFrameName));\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error Occured while switching to frame \" + sFrameName\n\t\t\t\t\t+ e.getMessage());\n\t\t\tdriver.switchTo().frame(sFrameName);\n\t\t}\n\n\t}",
"public void switchToFrame(String idOrName) {\n\t\tgetter().switchTo().frame(idOrName);\r\n\t}",
"public void gotoVideoLandingPage(){\r\n\t\twebAppDriver.get(baseUrl+\"/videos.aspx\");\r\n\t\t//need to add verification text\r\n\t}",
"private void changeFrame() {\n\t\t\n\t\tselected.setVisible(!selected.isVisible());\n\t}",
"public WebDriver frameToBeAvailableAndSwitchToIt(final By by) {\n return new WebDriverWait(webDriver, DRIVER_WAIT_TIME)\n .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(by));\n }",
"public WebDriver frameToBeAvailableAndSwitchToIt(final String frameLocator) {\n return new WebDriverWait(webDriver, DRIVER_WAIT_TIME)\n .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameLocator));\n }",
"private void openURL() {\n webview.loadUrl(\"http://192.168.0.116/webvitool/view/webvitool.php\");\n webview.requestFocus();\n }",
"public void switchToFrame(int index) {\n\t\tgetter().switchTo().frame(index);\r\n\t}",
"public void switchToLeftFrame(WebDriver driver) {\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tdriver.switchTo().frame(\"gsft_nav\");// nav_west\r\n\t}",
"public void switchToDefault()\n\t{\n\t\tdriver.switchTo().defaultContent();\n\t\tLOGGER.info(\"Step : Switched to default frame\");\n\t}",
"public ICurrentPage openNewWindow(String url);",
"public static void switchToFrameWithIndex(Integer index) {\n\t\tdriver.switchTo().frame(index);\n\t}",
"public String moveToFrameByName(final String object, String data) {\n\t\tlogger.debug(\"Move to the iframe .......\");\n\t\ttry {\n\t\t\tWait<WebDriver> wait = new FluentWait<WebDriver>(driver).withTimeout(explicitwaitTime, TimeUnit.SECONDS)\n\t\t\t\t\t.pollingEvery(pollingTime, TimeUnit.MILLISECONDS).ignoring(Exception.class);\n\n\t\tWebElement\tiframe = wait.until(new Function<WebDriver, WebElement>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic WebElement apply(WebDriver driver) {\n\t\t\t\t\treturn driver.findElement(By.name(OR.getProperty(object)));\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tdriver.switchTo().frame(iframe);\n\t\t\tpause(object,data);\n\n\t\t}\n\t\tcatch(TimeoutException ex){\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to move into iframe\" + ex.getCause();\n\t\t}\n\t\t\n\t\tcatch (Exception e) {\n\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to move into iframe\" + e.getMessage();\n\t\t}\n\n\t\treturn Constants.KEYWORD_PASS;\n\t}",
"public void waitForFrameToBeReadyAndSwitchToIt(String frameName)\n {\n new WebDriverWait(driver, DEFAULT_TIMEOUT, DEFAULT_SLEEP_IN_MILLIS)\n .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameName));\n }",
"@Override\n public void run() {\n Frame parentFrame = getParentFrame(IFrameSource.FULL_CONTEXT);\n if (parentFrame != null) {\n getFrameList().gotoFrame(parentFrame);\n }\n }",
"public static void switchToFrameWithNameOrId(String value) {\n\t\tdriver.switchTo().frame(value);\n\t}",
"public native void redirect(String url) /*-{\r\n \r\n \r\n\t$wnd.open(url,\"mainwindow\");\r\n\t\r\n }-*/;",
"public static void getChildFrameByXPath(WebDriver driver, String parentFrameXPath, String childFrameXPath)\n\t{\n\t\t// First switch to parent\n\t\tTestHtmlFrame.getFrameByXpath(driver, parentFrameXPath);\n\t\t\n\t\t// Then switch to child iframe in parent.\n\t\tTestHtmlFrame.getFrameByXpath(driver, childFrameXPath);\n\t\t\n\t\t// Check current web page content to verify the switch action success.\n\t\tBy byUserName = By.name(\"userName\");\n\t\tList<WebElement> eleList = driver.findElements(byUserName);\n\t\tif(eleList.size()>0)\n\t\t{\n\t\t\tWebElement element = eleList.get(0);\n\t\t\t\n\t\t\telement.sendKeys(\"dev2qa.com\");\n\t\t\t\n\t\t\tSystem.out.println(\"Find web element in current child web page, parent page xpath : \" + parentFrameXPath + \" , child page xpath : \" + childFrameXPath);\n\t\t\t\n\t\t\tSystem.out.println(\"Found web element tage : \" + element.getTagName() + \" , value : \" + element.getText());\n\t\t}\n\t\t\n\t}",
"public static boolean switchToFrameUsingFrameIndex(WebDriver driver, int frameIndex) {\n\t\ttry {\n\t\t\tif (driver != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdriver.switchTo().frame(frameIndex);\n\t\t\t\t\treturn true;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Unable to switch frame.\" + e.getMessage());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Driver is not initilasied.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Some exception occured.\" + e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\r\n\t\tWebElement button;\r\n\t\tString buttonTxt;\r\n\t\tString buttonCol;\r\n\r\n\t\tdriver.get(\"https://www.training-support.net/selenium/iframes\");\r\n\r\n\t\t// get title\r\n\t\tString title = driver.getTitle();\r\n\t\tSystem.out.println(\"Title of the page is: \" + title);\r\n\r\n\t\t// Switch to iframe on the page\r\n\t\tdriver.switchTo().frame(0);\r\n\r\n\t\t// heading of 1st iframe\r\n\t\tString firstHeading = driver.findElement(By.className(\"content\")).getText();\r\n\t\tSystem.out.println(\"Heading of the first fram is: \" + firstHeading);\r\n\r\n\t\t// get the button\r\n\t\tbutton = driver.findElement(By.id(\"actionButton\"));\r\n\t\tbuttonTxt = button.getText();\r\n\t\tSystem.out.println(\"Text of button is: \" + buttonTxt);\r\n\r\n\t\t// get color of button\r\n\t\tbuttonCol = button.getCssValue(\"color\");\r\n\t\tSystem.out.println(\"Button Colour is: \" + buttonCol);\r\n\r\n\t\t// click on button\r\n\t\tbutton.click();\r\n\r\n\t\t// get the button\r\n\t\tbutton = driver.findElement(By.id(\"actionButton\"));\r\n\t\tbuttonTxt = button.getText();\r\n\t\tSystem.out.println(\"Text of button after click is: \" + buttonTxt);\r\n\r\n\t\t// get color of button\r\n\t\tbuttonCol = button.getCssValue(\"color\");\r\n\t\tSystem.out.println(\"Button Colour after click is: \" + buttonCol);\r\n\r\n\t\t// Switch to default frame\r\n\t\tdriver.switchTo().defaultContent();\r\n\r\n\t\t// Switch to frame 2\r\n\t\tdriver.switchTo().frame(1);\r\n\r\n\t\t// heading of 2nd iframe\r\n\t\tString secondHeading = driver.findElement(By.className(\"content\")).getText();\r\n\t\tSystem.out.println(\"Heading of the second frame is: \" + secondHeading);\r\n\r\n\t\t// get the button\r\n\t\tbutton = driver.findElement(By.id(\"actionButton\"));\r\n\t\tbuttonTxt = button.getText();\r\n\t\tSystem.out.println(\"Text of button is: \" + buttonTxt);\r\n\r\n\t\t// get color of button\r\n\t\tbuttonCol = button.getCssValue(\"color\");\r\n\t\tSystem.out.println(\"Button Colour is: \" + buttonCol);\r\n\r\n\t\t// Vertical scroll down by 600 pixels\r\n\t\tjs.executeScript(\"window.scrollBy(0,600)\");\r\n\r\n\t\t// click on button\r\n\t\tbutton.click();\r\n\r\n\t\t// get the button\r\n\t\tbutton = driver.findElement(By.id(\"actionButton\"));\r\n\t\tbuttonTxt = button.getText();\r\n\t\tSystem.out.println(\"Text of button after click is: \" + buttonTxt);\r\n\r\n\t\t// get color of button\r\n\t\tbuttonCol = button.getCssValue(\"color\");\r\n\t\tSystem.out.println(\"Button Colour after click is: \" + buttonCol);\r\n\r\n\t\t// Switch to default frame\r\n\t\tdriver.switchTo().defaultContent();\r\n\r\n\t\t// closing browser\r\n\t\tdriver.close();\r\n\r\n\t}",
"public void open(){\n driver.get(\"https://demoqa.com/slider\");\n }",
"public static void moveToChildFrame(WebDriver driver, String parentFrame, String childFrame) {\n\t\ttry{\n\t\t\tMsLog.debug(\"Move from '\"+parentFrame +\"' iframe to '\"+childFrame+\"' iframe\");\n\t\t\tmoveToDefaultContext(driver);\n\t\t\tmoveToChildFrame(driver, parentFrame);\n\t\t\tmoveToChildFrame(driver, childFrame);\n\t\t}catch(Exception e){\n\t\t\tMsLog.fail(\"Fail to move from '\"+parentFrame +\"' iframe to '\"+childFrame+\"' iframe\",e.toString());\n\t\t}\n\t}",
"void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }",
"@Override\nprotected void doPage(Frame frame,Circuit circuit, IPlug plug, PageContext ctx) {\n\t\n}",
"@Test\n public void testFramesOpen() {\n SmallFrameSet set = openSubFrames();\n\n DriverRequest driverRequest = sendCommand(\"selectFrame\", \"subFrame1\", \"\");\n set.topFrame.expectCommand(\"getWhetherThisFrameMatchFrameExpression\", \"top\", \"subFrame1\");\n set.topFrame.sendResult(\"OK,false\");\n set.subFrame0.expectCommand(\"getWhetherThisFrameMatchFrameExpression\", \"top\", \"subFrame1\");\n set.subFrame0.sendResult(\"OK,false\");\n set.subFrame1.expectCommand(\"getWhetherThisFrameMatchFrameExpression\", \"top\", \"subFrame1\");\n set.subFrame1.sendResult(\"OK,true\");\n driverRequest.expectResult(\"OK\");\n\n driverRequest = sendCommand(\"open\", \"blah.html\", \"\");\n set.subFrame1.expectCommand(\"open\", \"blah.html\", \"\");\n set.subFrame1.sendResult(\"OK\");\n set.subFrame1.sendClose();\n\n MockPIFrame newSubFrame1 =\n new MockPIFrame(DRIVER_URL, sessionId, \"newSubFrame1\", \"top.frames[1]\", \"\");\n newSubFrame1.seleniumStart();\n\n newSubFrame1.expectCommand(\"getTitle\", \"\", \"\");\n newSubFrame1.sendResult(\"OK,blah.html\");\n driverRequest.expectResult(\"OK\");\n }",
"public void switchToUpgradePanel() {\r\n this.midPanelCards.show(this.flipPanel, \"UpgradePanel\");\r\n }",
"public void setApplicationFrame(ApplicationFrame mainFrame) { }",
"public static void moveToChildFrame(WebDriver driver, String parentFrame, String childFrame, By subChildFrame) {\n\t\ttry{\n\t\t\tMsLog.debug(\"Move from '\"+ parentFrame +\"' iframe to \"+childFrame+\" iframe, then to '\"+subChildFrame+\"' iframe\");\n\t\t\tmoveToDefaultContext(driver);\n\t\t\tmoveToChildFrame(driver, parentFrame);\n\t\t\tmoveToChildFrame(driver, childFrame);\n\t\t\tmoveToChildFrame(driver, subChildFrame);\n\t\t}catch(Exception e){\n\t\t\tMsLog.fail(\"Fail to move from '\"+ parentFrame +\"' iframe to \"+childFrame+\" iframe, then to '\"+subChildFrame+\"' iframe\");\n\t\t}\n\t}",
"public static void goTo() {\n Browser.driver.get(\"https://www.abv.bg/\");\n Browser.driver.manage().window().maximize();\n }",
"public void openUrlInBrowser(String URL) {}",
"public OSPFrame getMainFrame();",
"public void goWebSite() {\n\n if (mIsFirst) {\n mSnackbar.setText(getString(R.string.please_wait)).show();\n } else {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mSiteData.getUrl()));\n //intent.putExtra(\"url\", webData.getUrl());\n //startActivity(intent);\n startActivityForResult(intent, 100);\n //showToolbarProgressBar();\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n }",
"public static void processFrameII( int frameIdx, String referringWindow ) {\n if ( selena.getLocation().trim().equals(\"\") || selena.getLocation().trim().equals(\"about:blank\") ) {\n \t return;\n }\n \n System.out.println( \"Processing the frame\" );\n \n //Do clicks on images and embeds within the frame.\n int frameImgCount = 0;\n try { \n frameImgCount = Integer.parseInt( selena.getEval( \"var imgList = window.document.getElementsByTagName('img'); for ( var i=0; i<imgList.length; i++ ) { imgList.item(i).setAttribute('id','img'+i); } imgList.length;\" ).trim() );\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n //System.out.println ( \"frame image count = \" + frameImgCount );\n \n int frameEmbedCount = 0;\n try {\n frameEmbedCount = Integer.parseInt( selena.getEval( \"var embedList = window.document.getElementsByTagName('embed'); for ( var i=0; i<embedList.length; i++ ) { embedList.item(i).setAttribute('id','embed'+i); } embedList.length;\").trim() );\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n //System.out.println( \"frame embed count = \" + frameEmbedCount );\n \n \tint frameIframeCount = 0;\n try { \n frameIframeCount = Integer.parseInt( selena.getEval( \"var iframeList = window.document.getElementsByTagName('iframe'); for ( var i=0; i<iframeList.length; i++ ) { iframeList.item(i).setAttribute('id','iframe'+i); } iframeList.length;\" ).trim() );\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n //System.out.println( \"frame iframe count = \" + frameIframeCount );\n \n //Process Images in the frame.\n // System.out.println( \"Processing frame images.\" );\n for ( int i=0; i<frameImgCount; i++ ) {\n \t String imgId = \"img\"+Integer.toString(i);\n String imgSrc = \"\";\n \t try { \n imgSrc = selena.getEval(\"window.document.getElementById('\"+imgId+\"').getAttribute('src');\");\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n String[] imgPieces = imgSrc.trim().split(\"/\");\n String imgLastPiece = imgPieces[imgPieces.length-1];\n for ( int j=0; j<contentTypes.size(); j++ ) {\n \t try {\n if ( contentTypes.get(j).startsWith(\"image/png\") || contentTypes.get(j).startsWith(\"image/jpeg\") || contentTypes.get(j).startsWith(\"image/gif\") ) {\n String[] pieces = adUrls.get(j).trim().split(\"/\");\n if ( pieces[pieces.length-1].equals( imgLastPiece ) ) {\n \t\t\t// System.out.println( pieces[pieces.length-1] + \", \" + imgLastPiece );\n try {\n \t\t\t selena.getEval(\"window.document.getElementById('\"+imgId+\"').parentNode.setAttribute('target','blank'); window.document.getElementById('\"+imgId+\"').parentNode.parentNode.setAttribute('target','blank'); window.document.getElementById('\"+imgId+\"').click();\");\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n try {\n Thread.sleep( 3000 );\n } catch ( InterruptedException ie ) { ie.printStackTrace(); } \n \n Iterator iter2 = null;\n try { \n iter2 = selena.getWrappedDriver().getWindowHandles().iterator();\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n while ( iter2.hasNext()) {\n String windowName = (String)iter2.next();\n \t\t\t if ( !windowName.equals( winName ) ) {\n try {\n \t\t\t\t selena.selectWindow( windowName );\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n try {\n String landingPageUrl = selena.getLocation().trim();\n System.out.println(\"INSERT INTO landing_page_urls ( ad_url, file_name, content_type, landing_page_url ) VALUES ( '\" + ((String)adUrls.get(j)).trim() + \"', '\" + ((String)fileNames.get(j)).trim() + \"', '\" + ((String)contentTypes.get(j)).trim() + \"', '\" + landingPageUrl + \"' )\");\n \n stmt.executeUpdate(\"INSERT INTO landing_page_urls ( ad_url, file_name, content_type, landing_page_url ) VALUES ( '\" + ((String)adUrls.get(j)).trim() + \"', '\" + ((String)fileNames.get(j)).trim() + \"', '\" + ((String)contentTypes.get(j)).trim() + \"', '\" + landingPageUrl + \"' )\");\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n catch ( SQLException sqle ) { sqle.printStackTrace(); }\n \n try {\n Thread.sleep( 3000 );\n } catch ( InterruptedException ie ) { ie.printStackTrace(); } \n try {\n selena.goBack();\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n try {\n selena.selectWindow( referringWindow );\n selena.getWrappedDriver().switchTo().frame( frameIdx );\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n break;\n }\n }\n break;\n }\n \t\t }\n \t\t} catch ( SeleniumException se ) { se.printStackTrace(); }\n \t }\n \t}\n \n //Process embeds to get and resolve clicktag urls.\n System.out.println( \"Processing frame embeds.\" );\n ArrayList<String> clickTagUrls = new ArrayList<String>();\n ArrayList<Integer> clickTagEmbedIdx = new ArrayList<Integer>();\n \n for ( int i=0; i<frameEmbedCount; i++ ) {\n String embedId = \"embed\"+Integer.toString(i);\n String embedSrc = \"\";\n \t try { \n embedSrc = selena.getEval(\"window.document.getElementById('\"+embedId+\"').getAttribute('src');\");\n \t } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n String[] embedPieces = embedSrc.trim().split(\"/\");\n String embedLastPiece = embedPieces[embedPieces.length-1];\n \t // System.out.println( \"embed last piece = \" + embedLastPiece );\n for ( int j=0; j<contentTypes.size(); j++ ) {\n \t if ( contentTypes.get(j).startsWith(\"application/x-shockwave-flash\") ) {\n \t try {\n String[] pieces = adUrls.get(j).trim().split(\"/\");\n if ( pieces[pieces.length-1].equals( embedLastPiece ) ) {\n \t\t System.out.println( \"frame embed found: \" + pieces[pieces.length-1] + \", \" + embedLastPiece );\n String flashVarsAttribute = \"\";\n try {\n flashVarsAttribute = selena.getEval(\"window.document.getElementById('\"+embedId+\"').getAttribute('flashvars');\").trim();\n \t\t } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n String vars = embedSrc + \";\" + flashVarsAttribute;\n vars = vars.replaceAll(\"clickTag\",\"clicktag\");\n vars = vars.replaceAll(\"CLICKTAG\",\"clicktag\");\n vars = vars.replaceAll(\"ClickTag\",\"clicktag\");\n vars = vars.replaceAll(\"clickTAG\",\"clicktag\");\n vars = vars.replaceAll(\"ClickTAG\",\"clicktag\");\n vars = vars.replaceAll(\"Clicktag\",\"clicktag\");\n String[] varsArray = vars.split(Pattern.quote(\"clicktag\"));\n \n if ( varsArray.length > 1 ) {\n for ( int k=1; k<varsArray.length; k++ ) {\n \t\t\t String[] varPieces = varsArray[k].split(Pattern.quote(\"=\"));\n String clickTagUrl = varPieces[1].trim();\n \t\t\t clickTagUrl = clickTagUrl.replace(\"http%3a//\",\"http://\");\n clickTagUrl = clickTagUrl.replace(\"http%3A//\",\"http://\");\n clickTagUrl = clickTagUrl.replace(\"HTTP%3A//\",\"http://\");\n clickTagUrl = clickTagUrl.replace(\"HTTP%3a//\",\"http://\");\n clickTagUrl = rtrim(clickTagUrl);\n \t\t\t clickTagUrls.add( clickTagUrl ); \n clickTagEmbedIdx.add( new Integer(j) );\n clickTagUrl = clickTagUrl.replaceAll(\"http%3a//\",\"http://\");\n clickTagUrl = clickTagUrl.replaceAll(\"http%3A//\",\"http://\");\n clickTagUrl = clickTagUrl.replaceAll(\"HTTP%3A//\",\"http://\");\n clickTagUrl = clickTagUrl.replaceAll(\"HTTP%3a//\",\"http://\");\n \n System.out.println( \"clickTagUrl = \" + clickTagUrl );\n String[] httpPieces = clickTagUrl.split(\"http://\");\n break;\n \t\t\t }\n \t\t\t}\n break;\n }\n \t } catch ( SeleniumException se ) { se.printStackTrace(); } \n }\n }\n \t }\n \n for ( int i=0; i<clickTagUrls.size(); i++ ) {\n // System.out.println( \"opening frame landing page, \" + clickTagUrls.get(i) );\n int idx = clickTagEmbedIdx.get(i).intValue();\n \n try {\n \t selena.getEval( \"var link = window.document.createElement('a'); link.setAttribute('href','\"+clickTagUrls.get(i)+\"'); link.setAttribute('target','blank'); var bodyItems = window.document.getElementsByTagName('body'); var body = bodyItems.item(0); body.appendChild(link); link.click();\" );\n \t } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n try {\n Thread.sleep( 4000 );\n } catch ( InterruptedException ie ) { ie.printStackTrace(); } \n \t Iterator iter2 = null;\n try {\n iter2 = selena.getWrappedDriver().getWindowHandles().iterator();\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n while ( iter2.hasNext()) {\n String windowName = (String)iter2.next();\n \t\t if ( !windowName.equals( winName ) ) {\n \t\t\t try {\n \t\t\t selena.selectWindow( windowName );\n \t\t\t } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n try {\n String landingPageUrl = selena.getLocation().trim();\n System.out.println(\"INSERT INTO landing_page_urls ( ad_url, file_name, content_type, landing_page_url ) VALUES ( '\" + ((String)adUrls.get(idx)).trim() + \"', '\" + ((String)fileNames.get(idx)).trim() + \"', '\" + ((String)contentTypes.get(idx)).trim() + \"', '\" + landingPageUrl + \"' )\");\n stmt.executeUpdate(\"INSERT INTO landing_page_urls ( ad_url, file_name, content_type, landing_page_url ) VALUES ( '\" + ((String)adUrls.get(idx)).trim() + \"', '\" + ((String)fileNames.get(idx)).trim() + \"', '\" + ((String)contentTypes.get(idx)).trim() + \"', '\" + landingPageUrl + \"' )\");\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n \t\t\t catch ( SQLException sqle ) { sqle.printStackTrace(); }\n \t\t\t try {\n selena.goBack();\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n try {\n \t\t\t selena.selectWindow( referringWindow );\n selena.getWrappedDriver().switchTo().frame( frameIdx );\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n break;\n }\n \t\t }\n break; \n \t }\n \n //here with select frames\n int iFrameCount = 0;\n try {\n \t iFrameCount = Integer.parseInt( selena.getEval(\"window.frames.length\") );\n System.out.println( \"FRAME IFRAME COUNT = \" + iFrameCount );\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n try {\n selena.selectWindow( referringWindow );\n \t } catch ( SeleniumException se ) { se.printStackTrace(); }\n \n for ( int i=0; i<iFrameCount; i++ ) {\n \t try {\n \t\tselena.getWrappedDriver().switchTo().frame(frameIdx).switchTo().frame( i );\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n try {\n System.out.println( \"Got frame\"+Integer.toString(i) + \" = \" + selena.getLocation() );\n } catch ( SeleniumException se ) { se.printStackTrace(); }\n processFrameII( i, referringWindow );\n try {\n selena.selectFrame( \"relative=top\" );\n } catch ( SeleniumException se ) { se.printStackTrace(); } \n }\n \n System.out.println( \"----------------------------------------\" );\n }",
"public boolean clickMyWebinarsLink(){\n\t\tif(util.clickElementByLinkText(\"My Webinars\")==\"Pass\"){\n\t\t\tSystem.out.println(\"Left Frame >> My Webinar link clicked successfully...............\");\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n \t\t\n \t}",
"public String moveToDefaultFrame(String object, String data) {\n\t\tlogger.debug(\"Move to the default window .......\");\n\t\ttry {\n\n\t\t\tdriver.switchTo().defaultContent();\n\t\t\tThread.sleep(3000);\n\n\t\t} catch (Exception e) {\n\n\t\t\treturn Constants.KEYWORD_FAIL + \" -- Not able to move back to default window\" + e.getMessage();\n\t\t}\n\n\t\treturn Constants.KEYWORD_PASS;\n\t}",
"public static void switchToChildWindow() {\n\t\tString mainWindow = driver.getWindowHandle();\n\t\tSet<String> windows = driver.getWindowHandles();\n\t\tfor (String window : windows) {\n\t\t\tif (!window.equals(mainWindow)) {\n\t\t\t\tdriver.switchTo().window(window);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void switchToChildWindow(String parent) throws Exception {\r\n\t\t// get ra tat ca cac tab dang co\r\n\t\tSet<String> allWindows = driver.getWindowHandles();\r\n\t\tThread.sleep(3000);\r\n\t\tfor (String runWindow : allWindows) {\r\n\t\t\tif (!runWindow.equals(parent)) {\r\n\t\t\t\tdriver.switchTo().window(runWindow);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\r\n\t\tdriver.manage().window().maximize();\r\n\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.get(\"https://www.toolsqa.com/iframe-practice-page/\");\r\n\r\n\t\tdriver.switchTo().frame(\"IF2\");\r\n\r\n\t\t// Thread.sleep(2000);\r\n\t\tdriver.findElement(By.linkText(\"Keyboard Events\")).click();\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.switchTo().frame(\"IF1\");\r\n\r\n\t\tSystem.out.println(driver.findElement(By.linkText(\"Software Testing Tutorial\")).getText());\r\n\r\n\t}",
"public void switchToChildWindow(String parent) {\r\n\t\t//get ra tat ca cac tab hoac cua so dang co -->ID duy nhat. Neu dung List thi no se lay ca ID trung\r\n Set<String> allWindows = driver.getWindowHandles();\r\n //for each\r\n for (String ChildWindow : allWindows) {\r\n \t//duyet qua trung\r\n if (!ChildWindow.equals(parent)) {\r\n driver.switchTo().window(ChildWindow);\r\n break;\r\n }\r\n }\r\n \r\n \r\n}",
"public void switchToTopFrame(WebDriver driver, String frameVal) {\n\n\t\tdriver.switchTo().frame(\"topFrame\");\n\t\tlogger.info(\"Switched to top frame\");\n\t}",
"void openNextFrameSet();",
"public void start() {\r\n\t\tfinal Element frame = this.createFrame();\r\n\t\tthis.setFrame(frame);\r\n\r\n\t\tthis.getSupport().start(this, frame);\r\n\r\n\t\t// the reason for the query string is to avoid caching problems...the\r\n\t\t// src attribute is set before the frame is attached this also\r\n\t\t// avoids the nasty clicking noises in ie.\r\n\t\tDOM.setElementProperty(frame, \"src\", this.getServiceEntryPoint() + \"?serializationEngine=Gwt&\" + System.currentTimeMillis());\r\n\r\n\t\tfinal Element body = RootPanel.getBodyElement();\r\n\t\tDOM.appendChild(body, frame);\r\n\t}",
"public static void switchToChildWindow() {\t\t\n\t\tString parent = Constants.driver.getWindowHandle();\n\t\tLOG.info(\"Parent window handle: \" +parent);\n\t\tSet <String> windows = Constants.driver.getWindowHandles();\n\t\tIterator <String> itr = windows.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString child = itr.next();\n\t\t\tif (!child.equals(parent)) {\n\t\t\t\tLOG.info(\"Child window handle: \" +child);\n\t\t\t\tConstants.driver.switchTo().window(child);\n\t\t\t} else {\n\t\t\t\tLOG.error(\"Parent(main) and child window hanldles are same.\");\n\t\t\t}\n\t\t}\n\n\t}",
"public void preloadNewVersion() {\n Timer timer = new Timer() {\n public void run() {\n if (iframe != null) {\n RootPanel.getBodyElement().removeChild(iframe.getElement());\n }\n String currentURL = Window.Location.getHref();\n iframe = new Frame(currentURL);\n iframe.setWidth(\"1px\");\n iframe.setHeight(\"1px\");\n RootPanel.getBodyElement().appendChild(iframe.getElement());\n iframe.setVisible(false);\n }\n };\n timer.schedule(1000 * 60 * 10);\n }",
"@Override\r\n \tpublic void disconnect() {\n \t\tiframe.setSrc(\"\");\r\n\t\tbody = null;\r\n \t}",
"public void setCurrentFrame(JFrame sFrame) {\n\t\tcurrentFrame = sFrame;\n\t}",
"public void openWebBrowser(String stringURL) {\r\n\t\tWebBrowser.openBrowser(stringURL);\r\n\t}",
"public static void main(String[] args) throws Throwable {\n\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.get(\"https://paytm.com/recharge\");\r\n\t\tdriver.manage().window().maximize();\r\n\r\n\t\t//click on login\r\n\t\tdriver.findElement(By.xpath(\"//li[@class='_26Vr']\")).click();\r\n\t\tThread.sleep(5000);\t\r\n\t\t\r\n\t\t//get collection of frames\r\n\t\tList<WebElement>Oframes=driver.findElements(By.tagName(\"iframe\"));\r\n\t\tSystem.out.println(\"no of frames are::\"+Oframes.size());\r\n\t\tdriver.switchTo().frame(0);\r\n\t\t\r\n\t\t///click on login in frame\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"wallet-container-new qr-bg-white\\\"]/qr-code-login/div[2]/div[2]/div[3]/span\")).click();\r\n\t\tThread.sleep(5000);\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(\"pranga2010@gmail.com\");\r\n\t\tThread.sleep(5000);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"test12345\");\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\t//click on login\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"loginForm\\\"]/div/md-content/button/span\")).click();\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\t//come out of frames\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\t//click on close\r\n\t\tdriver.findElement(By.linkText(\"X\")).click();\r\n\t\tThread.sleep(5000);\r\n\t\r\n\t\t//click on Electricity link \r\n\t\tdriver.findElement(By.linkText(\"Electricity\")).click();\r\n\t\tThread.sleep(5000);\r\n\t\tdriver.close();\r\n\t}",
"public static void goToPlaylistChooserWindow()\n {\n PlaylistChooser playlistChooser = new PlaylistChooser();\n playlistChooser.setVisible(true);\n playlistChooser.setFatherWindow(actualWindow, false);\n }",
"private void goToUrl (String url) {\n Intent launchWebview = new Intent(this, ManualWebviewActivity.class);\n launchWebview.putExtra(\"url\", url);\n startActivity(launchWebview);\n }",
"public SmallFrameSet openSubFrames() {\n MockPIFrame oldFrame = startSession();\n\n DriverRequest driverRequest = sendCommand(\"open\", \"frames.html\", \"\");\n oldFrame.expectCommand(\"open\", \"frames.html\", \"\");\n oldFrame.sendResult(\"OK\");\n oldFrame.sendClose();\n\n MockPIFrame subFrame0 =\n new MockPIFrame(DRIVER_URL, sessionId, \"subFrame0Id\", \"top.frames[0]\", \"\");\n MockPIFrame subFrame1 =\n new MockPIFrame(DRIVER_URL, sessionId, \"subFrame1Id\", \"top.frames[1]\", \"\");\n subFrame0.seleniumStart();\n subFrame1.seleniumStart();\n // topFrame opens last, after his subFrames have finished loading\n MockPIFrame topFrame = new MockPIFrame(DRIVER_URL, sessionId, \"frameId\");\n topFrame.seleniumStart();\n\n topFrame.expectCommand(\"getTitle\", \"\", \"\");\n topFrame.sendResult(\"OK,frames.html\");\n\n driverRequest.expectResult(\"OK\");\n SmallFrameSet set = new SmallFrameSet(topFrame, subFrame0, subFrame1);\n return set;\n }",
"public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}",
"public void switchTo(WebDriver grimlockDriver, String tabName) {\n grimlockDriver.switchTo().window(tabName);\n }",
"Frame getFrame();",
"public static void main(String[] args) \n\t{\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/Applications/Mani/Work/chromedriver\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"http://hugelearning.com/iframe-practice-page/\");\n\t\t\n\t\tint j = findFrameNum(driver,By.xpath(\"//h2[@class = 'heading' and text() = 'Frame2']\"));\n\t\t\n\t\tdriver.switchTo().frame(j);\n\t\t\n\t\tString str = driver.findElement(By.xpath(\"//h2[@class = 'heading' and text() = 'Frame2']//following-sibling::h2\")).getText();\n\t\t\n\t\tSystem.out.println(str);\n\t\t\n\t\tdriver.switchTo().defaultContent();\n\t\t\n\t\tj = findFrameNum(driver,By.xpath(\"//input[@name = 'First_Name']\"));\n\t\t\n\t\tdriver.switchTo().frame(j);\n\t\t\n\t\tdriver.findElement(By.xpath(\"//input[@name = 'First_Name']\")).sendKeys(\"Manikanth\");\n\t\t\n\t\tdriver.findElement(By.xpath(\"//input[@name = 'Last_Name']\")).sendKeys(\"Erukulla\");\n\t\t\n\t\tSelect day = new Select (driver.findElement(By.xpath(\"//select[@name = 'Birthday_day']\")));\n\t\t\n\t\tList<WebElement> day_options = day.getOptions();\n\t\t\n\t\tfor (WebElement day_options1 : day_options)\n\t\t{\n\t\t\tSystem.out.println(day_options1.getText());\n\t\t}\n\t\t\n\t\t\n\t}",
"@Test(groups=\"swithorAlert\")\n\tpublic void switchWindow() {\n\t\t\n\t\tWebElement newtabButton = driver.findElement(By.id(\"new-tab-button\"));\n\t\tAssert.assertNotNull(newtabButton, \"New tab button not present\");\n\t\tnewtabButton.click();\n\t\t\n\t\t\n\t\tString orgHandle = driver.getWindowHandle();\n\t\tfor (String handle: driver.getWindowHandles())\n\t\t{\n\t\t\tif(!handle.equals(orgHandle)) {\n\t\t\t\tdriver.switchTo().window(handle);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Switched window Url=\"+driver.getCurrentUrl());\n\t\t\n\t\t// Click on Alert\n\t\t\n\t}",
"private MockPIFrame openSubWindow(MockPIFrame frame1) {\n DriverRequest driverRequest = sendCommand(\"click\", \"openWindow\", \"\");\n frame1.expectCommand(\"click\", \"openWindow\", \"\");\n frame1.sendResult(\"OK\");\n driverRequest.expectResult(\"OK\");\n\n // wait for subWindow to popup\n driverRequest = sendCommand(\"waitForPopUp\", \"subWindow\", \"2000\");\n MockPIFrame subWindow =\n new MockPIFrame(DRIVER_URL, sessionId, \"subWindowId\", \"top\", \"subWindow\");\n subWindow.seleniumStart();\n subWindow.expectCommand(\"getTitle\", \"\", \"\");\n subWindow.sendResult(\"OK,Sub Window\");\n driverRequest.expectResult(\"OK\");\n\n // select the subWindow\n sendCommand(\"selectWindow\", \"subWindow\", \"\").expectResult(\"OK\");\n\n // send the subWindow a type command\n driverRequest = sendCommand(\"type\", \"subWindowLink\", \"foo\");\n subWindow.expectCommand(\"type\", \"subWindowLink\", \"foo\");\n subWindow.sendResult(\"OK\");\n driverRequest.expectResult(\"OK\");\n\n return subWindow;\n }",
"@Override\n public void run() {\n webView.getEngine().load(null);\n frame.setVisible(false);\n }",
"public void Open() {\r\n\t click();\r\n\t }",
"void openUrl (String url);",
"@Test\n public void testSubFrames() {\n openSubFrames();\n }",
"public HTMLContentFrameImpl(WebElement element) {\n super(element);\n }",
"private void toWebViewActivity(){\n Intent toWebViewActivity = new Intent(this, AmazonActivity.class);\n startActivity(toWebViewActivity);\n }",
"void setMainFrame(NewMainFrame mainFrame) {\n this.mainFrame = mainFrame;\n }",
"@Override\n \tpublic void navigate(ParsedURL purl, String frame)\n \t{\n \t\tString[] navigateArgs = getNavigateArgs();\n \t\tif (navigateArgs != null && purl != null)\n \t\t{\n \t\t\tString purlString = purl.toString();\n \t\t\tint numArgs = navigateArgs.length;\n \t\t\tnavigateArgs[numArgs - 1] = purlString;\n \t\t\tStringBuilder sb = new StringBuilder();\n \t\t\tfor (int i = 0; i < numArgs; i++)\n \t\t\t\tsb.append(navigateArgs[i]).append(' ');\n \t\t\tDebug.println(\"navigate: \" + sb);\n \t\t\ttry\n \t\t\t{\n \t\t\t\tProcess p = Runtime.getRuntime().exec(navigateArgs);\n \t\t\t}\n \t\t\tcatch (IOException e)\n \t\t\t{\n \t\t\t\terror(\"navigate() - caught exception: \");\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t\telse\n \t\t\terror(\"navigate() - Can't find browser to navigate to.\");\n \t}",
"public void switchTo() {\n\towner.ioContainer().select(this);\n }",
"void nextFrame(Shopping shoppingF){\n\t\tcustLoginF.reset();\n\t\tcustLoginF.setVisible(true);\n\t}",
"public JFrame getFrame();",
"void nextFrame(Welcome welcomeF, int pageChoice){\n\t\twelcomeF.setVisible(false);\n\t\tif(pageChoice == Globals.SHOPPING_PAGE){\n\t\t\tshoppingF.setVisible(true);\n\t\t\t\n\t\t\t//to fill the shopping tables in the SHOPPING Frame before displaying the frame.\n\t\t\tshoppingF.setTables();\n\t\t\t\n\t\t}\n\t\telse if(pageChoice == Globals.PREV_RECORDS_PAGE){\n\t\t\tprevRecordsF.reset();\n\t\t\tprevRecordsF.setVisible(true);\n\t\t}\n\t\telse if(pageChoice == Globals.CUST_REG_PAGE){\n\t\t\tcustRegF.setVisible(true);\n\t\t}\n\t}"
] | [
"0.7486915",
"0.7355926",
"0.6975613",
"0.6915914",
"0.67663544",
"0.67363876",
"0.6736066",
"0.67319167",
"0.65270174",
"0.65221214",
"0.6517739",
"0.64545405",
"0.63440335",
"0.62327653",
"0.60427535",
"0.60406685",
"0.5995745",
"0.59740657",
"0.5954571",
"0.5832723",
"0.5756249",
"0.57202995",
"0.57097656",
"0.57000136",
"0.56956625",
"0.5687903",
"0.56719065",
"0.5626284",
"0.5545809",
"0.55333865",
"0.55249053",
"0.5517677",
"0.55120414",
"0.55014336",
"0.54951423",
"0.54695934",
"0.5466188",
"0.5439045",
"0.5429518",
"0.5422644",
"0.53926635",
"0.53821945",
"0.53818834",
"0.5368294",
"0.5282971",
"0.52709436",
"0.52626884",
"0.5257263",
"0.52522916",
"0.52407056",
"0.52236366",
"0.52115875",
"0.5190796",
"0.5164871",
"0.5142156",
"0.51418304",
"0.5124952",
"0.51167023",
"0.50873446",
"0.5071651",
"0.5064371",
"0.50475776",
"0.5041029",
"0.50356185",
"0.5030604",
"0.5026384",
"0.50179243",
"0.50134647",
"0.4991023",
"0.4974804",
"0.4974645",
"0.49641764",
"0.4943564",
"0.4912477",
"0.4899087",
"0.48937005",
"0.48702726",
"0.48649204",
"0.48640093",
"0.4862423",
"0.4844908",
"0.48354942",
"0.48265886",
"0.48203275",
"0.48091295",
"0.479431",
"0.47883052",
"0.4787537",
"0.47857806",
"0.4784022",
"0.47754708",
"0.47689587",
"0.4767328",
"0.47580504",
"0.4756289",
"0.4754616",
"0.4754401",
"0.47531796",
"0.4751462",
"0.47513458"
] | 0.7008891 | 2 |
Method to switch control to Parent Frame | public void switchToParentIFrame() {
_eventFiringDriver.switchTo().parentFrame();
System.out.println("control is switched to Parent Frame");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void switchToParentFrame(WebDriver driver) {\n\t\tdriver.switchTo().parentFrame();\n\t}",
"public static void setParent(java.awt.Frame newParent) {\n parent = newParent;\n}",
"public static void changeFrame() {\r\n\t\t\r\n\t}",
"private void switchToFrame() {\n\t\tdriver.switchTo().frame(\"mainpanel\");\n\t}",
"public PDUsPage switchToMainFrame(){\n\t\tswitchToFrame(\"Frame_Main\");\n\t\treturn this;\n\t}",
"private void changeFrame() {\n\t\t\n\t\tselected.setVisible(!selected.isVisible());\n\t}",
"@Override\n public void run() {\n Frame parentFrame = getParentFrame(IFrameSource.FULL_CONTEXT);\n if (parentFrame != null) {\n getFrameList().gotoFrame(parentFrame);\n }\n }",
"public void SwitchToFrame(String handle)\n\t{\n\t}",
"public void switchToParentWindow() throws InterruptedException {\n\t\tSet<String>windowid=driver.getWindowHandles();\n\t\tIterator<String>itr=windowid.iterator();\n\t\tString mainwindow=itr.next();\n\t\tString childwindow=itr.next();\n\t\tdriver.close();\n\t\tdriver.switchTo().window(mainwindow);\n\t\tdriver.switchTo().defaultContent();\n\t\tThread.sleep(5000);\n\t\t\n\t}",
"public static java.awt.Frame getParent() {\n return parent;\n}",
"void setParent(UIComponent parent);",
"public abstract void setParent(UIComponent parent);",
"public void addChildFrame(JFrame frame);",
"public void switchToChildWindow(String parent) throws Exception {\r\n\t\t// get ra tat ca cac tab dang co\r\n\t\tSet<String> allWindows = driver.getWindowHandles();\r\n\t\tThread.sleep(3000);\r\n\t\tfor (String runWindow : allWindows) {\r\n\t\t\tif (!runWindow.equals(parent)) {\r\n\t\t\t\tdriver.switchTo().window(runWindow);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private Frame getFrameParent() {\r\n Frame parent;// = new Frame();\r\n Container container = this;\r\n\r\n while (!(container.getParent() instanceof Frame)) {\r\n container = container.getParent();\r\n }\r\n parent = (Frame) container.getParent();\r\n\r\n return parent;\r\n }",
"public void switchToFrame(WebElement ele) {\n\t\tgetter().switchTo().frame(ele);\r\n\t}",
"public void switchToMainFrame(WebDriver driver) {\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tdriver.switchTo().frame(\"gsft_main\"); // edge_center\r\n\r\n\t}",
"Window getParent();",
"protected void do_mntmParentHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRParentHelpFrame ParentHelpFrame = new DelVecchioMCSRParentHelpFrame();\n\t\tParentHelpFrame.setVisible(true);\n\t}",
"public static void switchToChildWindow() {\t\t\n\t\tString parent = Constants.driver.getWindowHandle();\n\t\tLOG.info(\"Parent window handle: \" +parent);\n\t\tSet <String> windows = Constants.driver.getWindowHandles();\n\t\tIterator <String> itr = windows.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString child = itr.next();\n\t\t\tif (!child.equals(parent)) {\n\t\t\t\tLOG.info(\"Child window handle: \" +child);\n\t\t\t\tConstants.driver.switchTo().window(child);\n\t\t\t} else {\n\t\t\t\tLOG.error(\"Parent(main) and child window hanldles are same.\");\n\t\t\t}\n\t\t}\n\n\t}",
"public void switchToChildWindow(String parent) {\r\n\t\t//get ra tat ca cac tab hoac cua so dang co -->ID duy nhat. Neu dung List thi no se lay ca ID trung\r\n Set<String> allWindows = driver.getWindowHandles();\r\n //for each\r\n for (String ChildWindow : allWindows) {\r\n \t//duyet qua trung\r\n if (!ChildWindow.equals(parent)) {\r\n driver.switchTo().window(ChildWindow);\r\n break;\r\n }\r\n }\r\n \r\n \r\n}",
"public JFrame sprout()\n {\n return super.sprout();\n }",
"public CJFrameClumpSearch(JFrameMain parent) {\n this.parent = parent;\n EventQueue.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n try {\n view = new JFrameClumpSearch();\n view.setVisible(true);\n view.addButtonSearchAL(new BtnListener());\n\n } catch (Exception e) {\n\n }\n }\n });\n }",
"@Override\n public UIPanel getParentPanel() {\n return parentPanel;\n }",
"public AddFrame(MainFrame parent) {\n this.parent = parent;\n initComponents();\n }",
"public void setCurrentFrame(JFrame sFrame) {\n\t\tcurrentFrame = sFrame;\n\t}",
"public void switchToLeftFrame(WebDriver driver) {\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tdriver.switchTo().frame(\"gsft_nav\");// nav_west\r\n\t}",
"public void setParentPanel(UIPanel parent) {\n this.parentPanel = parent;\n updateBounds();\n }",
"public void setScreenParent(StackPaneController sceneController);",
"public void switchToEvisitPageFrame() {\r\n\t\tcontrols.switchToFrame(\"eVisit\", \"CSS_evisit_Iframe\");\r\n\t}",
"public void setParent(State aParent);",
"public void setParent(ILexComponent parent);",
"public void switchFrameToAngelContent()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tSync.waitForFrame(driver, \"AngelContent Frame\", \"AngelContent\", 6);\r\n\t\t}\r\n\t\tcatch(Exception e){}\r\n\t}",
"public void setParent (com.redsaga.hibnatesample.step2.Board _parent) {\n\t\tthis._parent = _parent;\n\t}",
"public OSPFrame getMainFrame();",
"UIComponent getParent();",
"public ControlFrame(String string, WorkbenchControlFrame parent, WorkbenchManager mgr) {\n super(string);\n /* Set Parent Reference for Action Handlers */\n try {\n this.parent = (WorkbenchControlFrame) parent;\n } catch (ClassCastException e) {\n this.parent = null;\n }\n\n workbenchMgr = mgr;\n\n parent.setEnabled(false);\n }",
"public void setOuterFrame(JFrame outerFrame) {\n this.outerFrame = outerFrame;\n }",
"private void setFrame() {\r\n this.getContentPane().setLayout(null);\r\n this.addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent evt) {\r\n close();\r\n }\r\n });\r\n MainClass.frameTool.startup(this, FORM_TITLE, FORM_WIDTH, FORM_HEIGHT, \r\n false, true, false, false, FORM_BACKGROUND_COLOR,\r\n SNAKE_ICON);\r\n }",
"public void openMenu() {\r\n\t\tJFrame current_frame = this;\r\n\t\tContainer content_pane = getContentPane();\r\n\t\ttop_panel = new PicPanel(\"trials.png\");\r\n\t\tmiddle_panel = new PicPanel(\"trials2.png\");\r\n\t\tlower_panel = new PicPanel(\"trials3.png\");\r\n\t\t//add panels to the content pane\r\n\t\tcontent_pane.add(top_panel);\r\n\t\tcontent_pane.add(middle_panel);\r\n\t\tcontent_pane.add(lower_panel);\r\n\t\t//*******\r\n\t\tJLabel control_keys_label = createLabel(\"controlkeys.png\");\r\n\t\tmiddle_panel.add(control_keys_label);\r\n\t\t//****\r\n\t\tJButton return_button = createButton(\"returntomenu.png\");\r\n\t\treturn_button.addActionListener(new ActionListener(){\r\n\t\t public void actionPerformed(ActionEvent e){\r\n\t\t \tcurrent_frame.dispose();\r\n\t\t \tStartMenuScreen start_menu = new StartMenuScreen();\r\n\t\t }\r\n\t\t});\r\n\t\tlower_panel.add(return_button);\r\n\t}",
"public static void switchToParentWindow(String s) {\n\t\tdriver.switchTo().window(s);\n\t}",
"public static void moveToChildFrame(WebDriver driver, String parentFrame, String childFrame) {\n\t\ttry{\n\t\t\tMsLog.debug(\"Move from '\"+parentFrame +\"' iframe to '\"+childFrame+\"' iframe\");\n\t\t\tmoveToDefaultContext(driver);\n\t\t\tmoveToChildFrame(driver, parentFrame);\n\t\t\tmoveToChildFrame(driver, childFrame);\n\t\t}catch(Exception e){\n\t\t\tMsLog.fail(\"Fail to move from '\"+parentFrame +\"' iframe to '\"+childFrame+\"' iframe\",e.toString());\n\t\t}\n\t}",
"void setParent(WidgetParent ip) {\n this.m_parent = ip;\n }",
"public void switchFrameToContent()\r\n\t{\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tSync.waitForFrame(driver, \"ContentWin Frame\", \"contentWin\", 6);\r\n\t\tSync.waitForFrame(driver, \"_yuiResizeMonitor Frame\", \"_yuiResizeMonitor\", 6);\t\t\r\n\t}",
"public void switchFrameToContentFrame()\r\n\t{\r\n\t\ttry{\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tSync.waitForFrame(driver, \"ContentFrame Frame\", \"contentFrame\", 6);\r\n\t\t}\r\n\t\tcatch(Exception e){}\r\n\t}",
"public void refreshFrame() {\n switchWindow();\n this.switchToFrame(\"botFr\");\n }",
"public launchFrame() {\n \n initComponents();\n \n }",
"public void onCancel() {\r\n parentController.switchView();\r\n }",
"public void switchToFrame(int index) {\n\t\tgetter().switchTo().frame(index);\r\n\t}",
"public void routetopage() {\n this.setVisible(true);\n }",
"public FrameControl() {\n initComponents();\n }",
"public void switchTo() {\n\towner.ioContainer().select(this);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(null == frame){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tframe = new CompareWin();\r\n\t\t\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tframe.setFocusable(true);\r\n\t\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}",
"public void switchToFrame(int index){\n\n\t\ttry {\n\t\t\tdriver.switchTo().frame(index);\n\t\t\tLOGGER.info(\"Step : Switched to Frame with index \"+index+\" :Pass\");\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switched to Frame with index \"+index+\" :Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to frame\");\n\t\t\t}\n\t\t}",
"public PApplet getParent() {\n\t\treturn parent;\n\t}",
"public void setApplicationFrame(ApplicationFrame mainFrame) { }",
"public void switchToFrame(String name){\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,60);\n\t\t\twait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(name));\n\t\t\tLOGGER.info(\"Step : Switched to the frame with name\"+name+\" :Pass\");\n\t\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switched to Frame frame with name\"+name+\" :Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to frame\");\n\t\t\t}\n\t\t}",
"public @Override void setParent(View parent) {\n super.setParent(parent);\n \n /* Make sure that the children get loaded.\n * It is necessary to do because children preferences will\n * define the preferences of the parent.\n */\n if (parent != null) {\n if (parent instanceof ViewLayoutState.Parent) {\n setStatusBits(ACTIVE_LAYOUT_STATE);\n } else {\n clearStatusBits(ACTIVE_LAYOUT_STATE);\n }\n \n // Resolving whether active layout state must be resolved prior getChildren()\n getChildren();\n \n } else { // parent is being set to null\n releaseChildren();\n clearStatusBits(ACTIVE_LAYOUT_STATE);\n }\n }",
"public static void switchToChildWindow() {\n\t\tString mainWindow = driver.getWindowHandle();\n\t\tSet<String> windows = driver.getWindowHandles();\n\t\tfor (String window : windows) {\n\t\t\tif (!window.equals(mainWindow)) {\n\t\t\t\tdriver.switchTo().window(window);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public TranslationStartDialog(JFrame parent) {\n super();\n initialize();\n pack();\n setLocationRelativeTo(parent);\n }",
"public static void switch_back_frame() throws CheetahException {\n\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\", \"Attempting to Switch back from frame\",\n\t\t\t\tConstants.LOG_INFO);\n\n\t\ttry {\n\t\t\tCheetahEngine.getDriverInstance().switchTo().defaultContent();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"public void setActiveCircuit(CircuitPanel circuit) {\r\n if(circuitwindows.contains(circuit.getParentFrame())){\r\n // Set application's title\r\n setTitle(\"Logic Circuit Workbench - \" + circuit.getParentFrame().getTitle());\r\n \r\n // Make the circuit active in the Desktop Window Pane\r\n this.circuitPanel = circuit;\r\n try { circuit.getParentFrame().setSelected(true); } \r\n catch (PropertyVetoException ex) { \r\n ErrorHandler.newError(\"Editor Error\",\r\n \"Cannot select circuit \" +\r\n circuit.getParentFrame().getTitle() + \".\", ex); \r\n }\r\n\r\n // Set the appropriate state for all command history buttons\r\n UndoButton.setEnabled(circuitPanel.getCommandHistory().canUndo());\r\n RedoButton.setEnabled(circuitPanel.getCommandHistory().canRedo());\r\n Undo.setEnabled(circuitPanel.getCommandHistory().canUndo());\r\n Redo.setEnabled(circuitPanel.getCommandHistory().canRedo());\r\n \r\n clipboard.setHasSelection(circuitPanel.hasActiveSelection());\r\n \r\n // Set the appropriate state for all simulation buttons\r\n if(circuitPanel.getSimulatorState().equals(SimulatorState.STOPPED)){\r\n StartButton.setEnabled(true);\r\n StartButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-playback-start.png\")));\r\n Run.setEnabled(true);\r\n StopButton.setEnabled(false);\r\n Stop.setEnabled(false);\r\n StepForwardButton.setEnabled(false);\r\n StepForward.setEnabled(false); \r\n } else if(circuitPanel.getSimulatorState().equals(SimulatorState.PLAYING)){\r\n StartButton.setEnabled(true);\r\n StartButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-playback-pause.png\")));\r\n Run.setEnabled(true);\r\n StopButton.setEnabled(true);\r\n Stop.setEnabled(true);\r\n StepForwardButton.setEnabled(false);\r\n StepForward.setEnabled(false); \r\n } else if(circuitPanel.getSimulatorState().equals(SimulatorState.PAUSED)){\r\n StartButton.setEnabled(true);\r\n StartButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-playback-start.png\")));\r\n Run.setEnabled(true);\r\n StopButton.setEnabled(true);\r\n Stop.setEnabled(true);\r\n StepForwardButton.setEnabled(true);\r\n StepForward.setEnabled(true); \r\n }\r\n \r\n // Update Simulator speed slider\r\n SimulatorSpeed.setValue(circuitPanel.getSimulator().getSimulatorSpeed());\r\n \r\n // Is logger window open?\r\n RecordButton.setSelected(getActiveCircuit().getLoggerWindow().isShowing());\r\n Record.setSelected(getActiveCircuit().getLoggerWindow().isShowing());\r\n } else {\r\n ErrorHandler.newError(\"Editor Error\",\r\n \"Error whilst setting an active circuit. \\n \" +\r\n \"Please close and reopen all open circuits.\");\r\n } \r\n }",
"private void close(){\n\t\tparent.setEnabled(true);\n\t\tparent.requestFocus();\n\t\tdispose();\n\t}",
"abstract public void setParent(Command cmd);",
"void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tLoginPanel back;\n\t\t\t\ttry {\n\t\t\t\t\tback = new LoginPanel();\n\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\tframe.setContentPane(back);\n\t\t\t\t\tframe.repaint();\n\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}",
"@Override\n public void setParent(MElementContainer<MUIElement> arg0)\n {\n \n }",
"public void switchToFrame(By locator){\n\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,60);\n\t\t\twait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(locator));\n\t\t\tLOGGER.info(\"Step : Switch to the frame with locator\"+locator+\" :Pass\");\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Step : Switch to the frame with locator\"+locator+\" :Fail\");\n\t\t\t//e.printStackTrace();\n\t\t\tthrow new NotFoundException(\"Exception while switching to frame\");\n\t\t}\n\t}",
"public FirstNewFrame() {\n\t\tjbInit();\n\t}",
"public void setParent(View parent) {\n/* 662 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public MantBHA(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents(); \n }",
"public boolean controleFrame(BorderPane br) {\n\t\treturn true ;\n\t\t\n\t}",
"public FrameResponsableMachine()\n {\n initComponents();\n }",
"public void setParent(Instance parent) {\r\n \t\tthis.parent = parent;\r\n \t}",
"public StartPanel(JFrame theFrame, Group theGroup) {\n super();\n\n myFrame = theFrame;\n myGroup = theGroup;\n\n setup();\n }",
"@Override\n\tpublic void onParentSet() {\n\t\t\n\t}",
"public void windowBecameFront() \n {\n return; \n }",
"public void onFrame(Controller controller) {\n\r\n\t}",
"public void switchToTopFrame(WebDriver driver, String frameVal) {\n\n\t\tdriver.switchTo().frame(\"topFrame\");\n\t\tlogger.info(\"Switched to top frame\");\n\t}",
"public void setParentController(HomeController parent) {\n\t\tthis.parent = parent;\n\t}",
"@Override\n\tpublic void goToUiCobrador() {\n\t\tif(uiHomeCobrador!=null){\n\t\t\tuiHomeCobrador.getHeader().getLblTitulo().setText(constants.cobrador());\n\t\t\tuiHomeCobrador.getHeader().setVisibleBtnMenu(true);\n\t\t\tuiHomeCobrador.getContainer().showWidget(0);\n\t\t\t}\n\t}",
"void setMainFrame(NewMainFrame mainFrame) {\n this.mainFrame = mainFrame;\n }",
"@VTID(7)\r\n void getParent();",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { \n parentFrame.getjButton4().setText(\"View My Alerts\");\n \tparentFrame.setVisible(true);\n \tparentFrame.viewAlert=null;\n \tdispose();\n }",
"int childrenParent () {\r\n\treturn OS.PtWidgetChildBack (handle);\r\n}",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n if(e.getSource()==Volver){\n FrameGeneral marco=(FrameGeneral) SwingUtilities.getWindowAncestor(this);\n marco.remove(this);\n marco.add(new MenuModo());\n marco.setVisible(true);\n }\n \n }",
"public abstract void focusChanged(ReFrame newFrame);",
"public void GoBack(){\n if (prev_hostgui != null){\n this.setVisible(false);\n prev_hostgui.setVisible(true);\n } else{\n this.setVisible(false);\n prev_guestgui.setVisible(true);\n }\n }",
"public void back()\r\n\t{\r\n\t\tparentPanel.setState(GameState.Menu);\r\n parentPanel.initScene(GameState.Menu);\r\n\t\t\t\r\n\t}",
"public void setScreenParent(ScreensController screenParent) {\r\n controller = screenParent;\r\n }",
"private void setIsMainFrame(boolean value) {\n bitField0_ |= 0x00000004;\n isMainFrame_ = value;\n }",
"public void repaint() { if(_parent!=null) _parent.repaint(this); }",
"public MainFrame5(){\r\n inint();\r\n }",
"public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }",
"public PApplet getParent() {\n\t\treturn this.parent;\n\t}",
"private void nexttest(){\n\t\tif (TestListPanel.ktea2yn = true){\n\t\tnextframe = new Ktea2frame();\n\t\tDas2panel.das2fr.setVisible(false);\n\t\t}\n\t\t/*else if (wiscyn = true){\n\t\tnextframe = new Wiscframe();\n\t\tDas2panel.das2fr.setVisible(false);\n\t\t}\n\t\telse if (basc2yn = true){\n\t\tnextframe = new Basc2frame();\n\t\tDas2panel.das2fr.setVisible(false);\n\t\t}\n\t\telse {\n\t\t\n\t\t}*/\n\t\t\n\t}",
"public static void switchBackWindows() throws CheetahException {\n\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\", \"Attempting to Switch Back to parent Window\",\n\t\t\t\tConstants.LOG_INFO);\n\t\tString parentHandle;\n\t\ttry {\n\t\t\tThread.sleep(3000);\n\t\t\tparentHandle = CheetahEngine.handleStack.pop();\n\t\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\", \"Switching to parent Window Handle: \" + parentHandle,\n\t\t\t\t\tConstants.LOG_INFO);\n\t\t\tCheetahEngine.getDriverInstance().switchTo().window(parentHandle);\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\n\t}",
"public void switchToFrame(By locator) {\n String locatorSubString = testHelper.getLocatorString(locator);\n\n driver.get().switchTo().frame(locatorSubString);\n }",
"public void switchToFrame(String idOrName) {\n\t\tgetter().switchTo().frame(idOrName);\r\n\t}",
"@Override\n public void actionPerformed(final ActionEvent e)\n {\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n\n SwingUtilities.invokeLater(new Runnable()\n {\n @Override\n public void run()\n {\n frame.blockGUI();\n navigate(e);\n frame.releaseGUI();\n }\n });\n }\n }).start();\n }"
] | [
"0.7277192",
"0.72527623",
"0.7138659",
"0.6896928",
"0.66516244",
"0.6609655",
"0.65778035",
"0.6539129",
"0.65368545",
"0.6524339",
"0.65216196",
"0.64804995",
"0.63758844",
"0.636952",
"0.6343884",
"0.6338537",
"0.6294325",
"0.62409437",
"0.6191998",
"0.6176861",
"0.6166774",
"0.61518687",
"0.6115253",
"0.60831934",
"0.6048243",
"0.6041857",
"0.60351485",
"0.6032001",
"0.60287374",
"0.6025448",
"0.6007872",
"0.6003667",
"0.60026467",
"0.59789544",
"0.59754306",
"0.5937751",
"0.593175",
"0.5931436",
"0.59087",
"0.5900949",
"0.58931184",
"0.5879027",
"0.5862939",
"0.58494085",
"0.5831372",
"0.5829181",
"0.5827398",
"0.5823695",
"0.581183",
"0.5801034",
"0.57932514",
"0.5786104",
"0.57693005",
"0.5759467",
"0.57331157",
"0.5731747",
"0.5728645",
"0.5728336",
"0.5726455",
"0.572316",
"0.5716263",
"0.57149136",
"0.5696112",
"0.5695807",
"0.56879413",
"0.56761384",
"0.56633186",
"0.5653959",
"0.5642935",
"0.56427795",
"0.56410325",
"0.5636448",
"0.56273067",
"0.5626616",
"0.5620742",
"0.5619544",
"0.5615713",
"0.5613083",
"0.56122273",
"0.5608534",
"0.56065285",
"0.56055194",
"0.5603836",
"0.5599649",
"0.5590962",
"0.55898404",
"0.55884445",
"0.5587637",
"0.558609",
"0.55849254",
"0.55824286",
"0.5580011",
"0.557938",
"0.55787385",
"0.55711037",
"0.5566728",
"0.5557503",
"0.55534315",
"0.5551294",
"0.55500305"
] | 0.8360676 | 0 |
Method to wait for element to appear | public void waitForElementToAppear(By locator,int timeToOut) {
WebDriverWait wait = new WebDriverWait(_eventFiringDriver, timeToOut);
wait.until(ExpectedConditions.visibilityOfElementLocated(locator));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"public void waitForVisibilityOfElement(WebElement element) {\n\t\twait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}",
"public static void waitForVisibility(WebElement element){\n getWait().until(ExpectedConditions.visibilityOf(element));\n }",
"public static void waitUntilElementIsVisible(WebElement element) {\n WebDriverWait webDriverWait = getWebDriverWait();\n webDriverWait.until(ExpectedConditions.visibilityOf(element));\n }",
"protected WebElement waitForElementToBeVisible(WebElement element) {\n actionDriver.moveToElement(element);\n WebDriverWait wait = new WebDriverWait(driver, 5);\n wait.until(ExpectedConditions.visibilityOf(element));\n return element;\n }",
"public void waitElementToBeVisible(WebElement webElement) {\n wait.until(ExpectedConditions.visibilityOf(webElement));\n }",
"public void waitForVisibilityOf(WebElement element) {\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}",
"public static void waitForElementVisiblity(WebElement element) {\n\t\t\t\n\t\t}",
"public static void waitUntilElementIsInvisible(WebElement element) {\n WebDriverWait webDriverWait = getWebDriverWait();\n webDriverWait.until(ExpectedConditions.invisibilityOf(element));\n }",
"public void waitForElementVisibility(WebDriver driver, WebElement element)\n\t\t{\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,20);\n\t\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\t}",
"public void waitForElementVisible(WebElement element) {\r\n\t\ttry {\r\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, timeout);\r\n\t\t\twait.until(ExpectedConditions.visibilityOf(element));\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.info(element.toString() + \" is not present on page\");\r\n\t\t}\r\n\t}",
"void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}",
"public void waitForVisibilityOfWebElement(WebElement webElement){\r\n\t\twait.until(ExpectedConditions.visibilityOf(webElement));\r\n\t}",
"public void waitForElementPresent(By locator){\n \tWebDriverWait wait=new WebDriverWait(driver,20);\n \twait.until(ExpectedConditions.presenceOfElementLocated(locator));\n }",
"public void checkVisibility(WebElement element) {\n wait = new WebDriverWait(driver, 15, 50);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"public void waitForElementVisibility(String locator) {\n \t WebDriverWait wait = new WebDriverWait(driver, 10);\n \t wait.until(ExpectedConditions.visibilityOfElementLocated(autoLocator(locator)));\n }",
"public WebElement waitForDisplay(final WebElement webelement)\n {\n return waitForDisplay(webelement, DEFAULT_TIMEOUT);\n }",
"public void waitForElementVisibility(String locator) {\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locator)));\n }",
"public void waitForElementToVisisble(WebElement elementToCheck){\n\t\ttry {\n\t\t\twait.until(ExpectedConditions.visibilityOf(elementToCheck));\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tLog.error(\"Element not visible\");\n\t\t}\n\t}",
"public void ensureIsDisplayed() {\n (new WebDriverWait(driver, 10))\n .until(ExpectedConditions.presenceOfElementLocated(\n By.className(\"mat-dialog-container\")));\n }",
"@Override\n protected void waitThePageToLoad() {\n WaitUtils.waitUntil(driver, ExpectedConditions.visibilityOf(driver\n .findElement(By.xpath(SEARCH_XPATH))));\n }",
"public void isElementVisible(WebElement elem) {\n try {\n driverWait.until(ExpectedConditions.visibilityOf(elem));\n System.out.println(\"Element is present in the page\");\n } catch (Exception e) {\n Assert.fail(\"Element isn't present in the page\");\n }\n }",
"public void waitForVisibility(By by,int time){\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }",
"public WebElement waitForDisplay(final By by)\n {\n return waitForDisplay(by, DEFAULT_TIMEOUT);\n }",
"public static void waitForElementToBeVisible(WebDriver driver,\n\t\t\tWebElement element) {\n\t\tlogger.info(\"Waiting for an element to be visible \" + element);\n\t\tWebDriverWait wait = new WebDriverWait(driver,\n\t\t\t\tInteger.parseInt(getConfigValues(\"timeOutInSeconds\")));\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}",
"public void waitTillObjectAppears(By locator) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, TIMEOUT_S);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t\t} catch (TimeoutException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void waitForPresenceOfElementToBeLocated(By locator){\r\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(locator));\r\n\t}",
"public static void waitForElementVisible(By by, long time) {\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }",
"public static boolean waitForElement(WebDriver driver, WebElement element) {\r\n boolean statusOfElementToBeReturned = false;\r\n WebDriverWait wait = new WebDriverWait(driver, flipKartMaxElementWait);\r\n try {\r\n WebElement waitElement = wait.until(ExpectedConditions.visibilityOf(element));\r\n if (waitElement.isDisplayed() && waitElement.isEnabled()) {\r\n statusOfElementToBeReturned = true;\r\n }\r\n } catch (Exception ex) {\r\n \tSystem.out.println(\"Unable to find a element\" + ex.getMessage());\r\n }\r\n\t\treturn statusOfElementToBeReturned;\r\n }",
"protected WebElement waitForExpectedElement(final By by) {\n return wait.until(visibilityOfElementLocated(by));\n }",
"private void waitForElement(WebDriver driver, int timeToWaitInSeconds, By ElementLocater) {\n\t\tWebDriverWait wait = new WebDriverWait(driver, timeToWaitInSeconds);\n\t\twait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(ElementLocater));\n\n\t}",
"public static void waitForElement(WebDriver driver, WebElement element) throws Exception {\n\t\tWebDriverWait wait = new WebDriverWait(driver, 80);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\tThread.sleep(1000);\n\t}",
"private void waitforvisibleelement(WebDriver driver2, WebElement signoutimg2) {\n\t\r\n}",
"public boolean waitForVisibilityOfElement(By locator) {\r\n\t\ttry {\r\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\r\n\t\t\treturn true;\r\n\t\t} catch (ElementNotVisibleException e) {\r\n\t\t\tSystem.out.println(\"ElementNotVisibleException\" + e.getMessage());\r\n\t\t\treturn false;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public WebElement wait(WebElement webElement) {\n WebDriverWait webDriverWait = new WebDriverWait(driver, Integer.parseInt(testData.timeout));\n return webDriverWait.until(ExpectedConditions.visibilityOf(webElement));\n }",
"public boolean isElementPresent(WebElement element) {\n wait.until(ExpectedConditions.elementToBeClickable(element));\n// wait.until(ExpectedConditions.visibilityOf(element));\n return element.isDisplayed();\n }",
"@Override\n public boolean isVisible(){\n \n try\t{\n new WebDriverWait(driver, 1)\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.visibilityOfElementLocated(locator));\n \n return true;\n }\n catch (NoSuchElementException ex){\n return false;\n }\n catch (TimeoutException ex){\n return false;\n }\n \n }",
"public boolean waitForVisibility(By targetElement) {\n try {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.visibilityOfElementLocated(targetElement));\n return true;\n } catch (TimeoutException e) {\n error(\"Exception Occurred while waiting for visibility of element with definition :: \" +\n targetElement);\n error(Throwables.getStackTraceAsString(e));\n throw new TimeoutException(Throwables.getStackTraceAsString(e));\n }\n }",
"public void waitForAlertDisplay()\n {\n new WebDriverWait(driver,\n DEFAULT_TIMEOUT, 5000).ignoring(StaleElementReferenceException.class).ignoring(\n WebDriverException.class).\n until(ExpectedConditions.alertIsPresent());\n }",
"public void waitForInvisibilityOfWebElement(By locator){\r\n\t\twait.until(ExpectedConditions.invisibilityOfElementLocated(locator));\r\n\t}",
"public void elementToBeVisible(WebElement element) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 120);\n\t\t\twait.until(ExpectedConditions.visibilityOf (element));\n\t\t} catch (StaleElementReferenceException ex) {\n\t\t\tSystem.out.println(\"Stale Element exception:\" + ex.toString());\n\t\t\tAssert.fail(\"Stale Element exception:\" + ex.toString());\n\t\t} catch (NoSuchElementException ex) {\n\t\t\tSystem.out.println(\"No such element exception:\" + ex.toString());\n\t\t\tAssert.fail(\"No such element exception:\" + ex.toString());\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"Exception in elementToBeVisible method:\" + ex.toString());\n\t\t\tAssert.fail(\"Exception in elementToBeVisible method:\" + ex.toString());\n\t\t}\n\t}",
"protected void waitForElementToDisplay(By locator, int timeInSeconds) {\n\t\twait = new WebDriverWait(driver, timeInSeconds);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t}",
"public WebElement waitTillVisible(final WebElement element) {\n return (new WebDriverWait(webDriver, WAIT_TIME)).until(ExpectedConditions.elementToBeClickable(element));\n }",
"private void waitForElementToBeLoad(String string) {\n\t\n}",
"public WebElement checkVisibilityOf(final WebElement element) {\n return (new WebDriverWait(webDriver, WAIT_TIME)).until(ExpectedConditions.visibilityOf(element));\n }",
"public void waitLoadPage() {\n WebDriverHelper.waitUntil(inputTeamName);\n }",
"public void waitForElementsPresent(By by,int time){\n WebDriverWait wait = new WebDriverWait(driver,time);\n wait.until(ExpectedConditions.presenceOfElementLocated(by));\n }",
"public void waitForContentLoad(String element) {\n // TODO implement generic method to wait until page content is loaded\n\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.xpath(\".//td[contains(., \" + element + \")]\"))));\n }",
"public boolean isElementPresent(WebElement elementName, int timeout){\n //https://github.com/appium/java-client/issues/617\n\t/*try{\n\t WebDriverWait wait = new WebDriverWait(getDriver(), timeout);\n\t wait.until(ExpectedConditions.visibilityOf(elementName));\n\t return true;\n\t}catch(Exception e){\n\t return false;\n\t}*/\n try{\n int counter = 0;\n while(counter < timeout){\n Thread.sleep(1000);\n counter++;\n try{\n if(elementName.isDisplayed()){\n //if(ExpectedConditions.visibilityOf(elementName) !=null ){\n return true;\n }else{\n continue;\n }\n }catch(Exception e){\n continue;\n }\n }\n System.out.println(\"ELEMENT NOT FOUND - \" + elementName + \" AFTER \" + timeout );\n return false;\n }catch(Exception e){\n return false;\n }\n }",
"public void waitForElemnetXpathPresent(String xpath){\r\n\t\t\t\tWebDriverWait wait = new WebDriverWait(Driver.driver,20);\r\n\t\t\t\twait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.xpath(xpath)));\r\n\t\t\t}",
"@Override\n public boolean isPresent(long seconds){\n if (seconds < 0) {\n return false;\n }\n try\t{\n WebElement element = (WebElement) (new WebDriverWait(driver, seconds))\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.presenceOfElementLocated(locator));\n this.element = element;\n return true;\n }\n catch (NoSuchElementException ex){\n this.noSuchElementException = new NoSuchElementException(locator.toString());;\n return false;\n }\n catch (TimeoutException ex){\n this.noSuchElementException = new NoSuchElementException(locator.toString());\n return false;\n }\n }",
"public void waitModalWindow(By waitForElement) {\n\t\tBaseWaitingWrapper.waitForElementToBeVisible(waitForElement, driver);\r\n\t\t\r\n\r\n\t}",
"public void handlingWaitToElement(By locator){\n WebDriverWait wait = new WebDriverWait(appiumDriver, 60);\n wait.until(ExpectedConditions.presenceOfElementLocated(locator));\n }",
"public static void wait_for_element(By locator) throws CheetahException {\n\t\ttry {\n\t\t\tCheetahEngine.logger.logMessage(null, \"SeleniumActions\", \"Locator: \" + locator, Constants.LOG_INFO, false);\n\t\t\tWebDriverWait wait = new WebDriverWait(CheetahEngine.getDriverInstance(), Constants.GLOBAL_TIMEOUT);\n\t\t\tfluent_wait(locator);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private static ExpectedCondition<WebElement> waitForElementToBeDisplayed(final WebElement we) \n\t{\n\t\treturn new ExpectedCondition<WebElement>() \n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * This method will retrieve the element.\n\t\t\t\t\t * \n\t\t\t\t\t * @param driver The driver to set.\n\t\t\t\t\t * @return Returns the webelement.\n\t\t\t\t\t */\n\t\t\t\t\tpublic WebElement apply(WebDriver driver) \n\t\t\t\t\t{\n\t\t\t\t\t\tif(we.isDisplayed()){\n\n\t\t\t\t\t\t\treturn we;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn null;\n\n\t\t\t\t\t}\n\t\t\t\t};\n\t}",
"protected void waitThePageToLoad() {\n ExpectedCondition pageLoadCondition = new ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver driver) {\n return ((JavascriptExecutor) driver).executeScript(\"return document.readyState\").equals(\"complete\");\n }\n };\n WaitUtils.waitUntil(driver, pageLoadCondition);\n }",
"public WebElement waitForDisplay(final By by, int timeoutInSeconds)\n {\n System.out.println(\"Wait for display of \" + by);\n return new WebDriverWait(driver, timeoutInSeconds, DEFAULT_SLEEP_IN_MILLIS)\n .ignoring(StaleElementReferenceException.class).\n until(ExpectedConditions.visibilityOfElementLocated(by));\n }",
"public void waitForPageToLoad() {\n Wait<WebDriver> wait = new WebDriverWait(WebDriverManager.getDriver(), 90);\n wait.until(new Function<WebDriver, Boolean>() {\n public Boolean apply(WebDriver driver) {\n return String\n .valueOf(((JavascriptExecutor) driver).executeScript(\"return document.readyState\"))\n .equals(\"complete\");\n }\n });\n try {\n wait.until(ExpectedConditions.invisibilityOfElementLocated(By.id(\"waitMessage_div\")));\n wait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(\"//div[contains(text(),'Loading')]\")));\n // waitForPageToLoad();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void waitForElementPresence(AndroidDriver<AndroidElement> androidDriver, By element){\r\n\t\tWebDriverWait wait= new WebDriverWait(androidDriver, 30);\r\n\t\twait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(element));\r\n\t}",
"void waitUntilDaysDropdownElementIsVisible() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.divTagSelectDaysHomepageVehiclePlanning(\"7\"));\n\t}",
"public Boolean waitUntilElementAppears(WebDriver driver, final String xpath) throws NumberFormatException, IOException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, 30);\n\t\t\t\t\ttry {\n\t\t\t\t\tExpectedCondition<Boolean> e = new ExpectedCondition<Boolean>() {\n\t\t\t\t public Boolean apply(WebDriver driver) {\t\t\t\t \t\n\t\t\t\t return (driver.findElements(By.xpath(xpath)).size() == 0);\n\t\t\t\t }\n\t\t\t\t };\n\t\t\t\t wait.until(e);}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() == 0) { fileWriterPrinter(\"\\nElement not found!\\nXPATH: \" + xpath); }\n\t\t\t\t\t}\n\t\t\t\t fileWriterPrinter(\"Waiting time for Element appearence: \" + waitTimeConroller(start, 30, xpath) + \" sec\");\n\t\t\t\t return (driver.findElements(By.xpath(xpath)).size() == 0);\n\t\t\t\t}",
"public void waitForElementToBeClickable(WebElement element) {\n wait.until(ExpectedConditions.visibilityOf(element));\n wait.until(ExpectedConditions.elementToBeClickable(element));\n }",
"public void waitForContentLoad() {\n // TODO implement generic method to wait until page content is loaded\n\n // wait.until(...);\n // ...\n }",
"public static void explicitWaitTillVisible(WebDriver driver, int sec, WebElement element) {\r\n\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, sec);\r\n\t\twait.until(ExpectedConditions.visibilityOf(element));\r\n\t}",
"public void waitForElement(String locator) {\n wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(locator)));\n }",
"public void waitUntilLoadingDoesNotExistAndVerifyContainerDisplayed(){\n\t\tverifyContainerDisplayedResultsPage();\r\n\t}",
"public boolean elementIsDisplayed(By locator){\n \twaitForElementPresent(locator);\n \treturn getElement(locator).isDisplayed();\n }",
"public void waitForElement(WebElement element) {\r\n\t\ttry {\r\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, timeout);\r\n\t\t\twait.until(ExpectedConditions.elementToBeClickable(element));\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.info(element.toString() + \" is not present on page or not clickable\");\r\n\t\t}\r\n\r\n\t}",
"public static boolean isDisplayed(final WebElement element) {\n try {\n defaultWait.until(ExpectedConditions.visibilityOf(element));\n return true;\n } catch (Exception exception) {\n Log.info(\"Element not displayed on UI :\" + element.toString() + \" \" + exception.getMessage());\n return false;\n }\n }",
"protected boolean isElementDisplayed(By locator){\n \tboolean displayed;\n \ttry {\n \t\tdisplayed = new WebDriverWait(DRIVER, 10)\n \t\t.until(ExpectedConditions.presenceOfElementLocated(locator)).isDisplayed();\n \t}catch (TimeoutException e){\n \t displayed = false;\t\n \t}\n\n \treturn displayed; \n }",
"public static WebElement waitForElementToBeVisible(By locator, int timeOut){\n\t\tWebDriverWait wait = new WebDriverWait(driver, timeOut);\n\t\treturn wait.until(ExpectedConditions.visibilityOf(getElement(locator)));\n\n\t}",
"public static void waitFor(WebElement element, int timer, WebDriver driver) {\n\n\t\t// Wait for the static element to appear\n\n\t\tWait<WebDriver> exists = new WebDriverWait(driver, timer).withMessage(\"element not visible\");\n\t\texists.until(ExpectedConditions.refreshed(ExpectedConditions.visibilityOf(element)));\n\t\n\n\t}",
"public static void waitForElement(WebElement element, AndroidDriver driver, String elementName, int seconds)\n\t\t\tthrows IOException {\n\t\ttry {\n\t\t\tlogger.info(\"---------Waiting for visibility of element---------\" + element);\n\n\t\t\tWait<AndroidDriver> wait = new FluentWait<AndroidDriver>(driver).withTimeout(seconds, TimeUnit.SECONDS)\n\t\t\t\t\t.pollingEvery(250, TimeUnit.MICROSECONDS).ignoring(NoSuchElementException.class);\n\t\t\t// Assert.assertTrue(wait.until(ExpectedConditions.visibilityOf(element))\n\t\t\t// !=\n\t\t\t// null);\n\t\t\tlogger.info(\"---------Element is visible---------\" + element);\n\t\t} catch (Exception e) {\n\t\t\tMyExtentListners.test.fail(MarkupHelper.createLabel(\"Verify \" + \"\\'\" + elementName + \"\\'\"\n\t\t\t\t\t+ \" is displayed || \" + \"\\'\" + elementName + \"\\'\" + \" is not displayed \", ExtentColor.RED));\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, elementName));\n\t\t\tlogger.info(\"---------Element is not visible---------\" + element);\n\t\t\tthrow e;\n\t\t} catch (AssertionError e) {\n\t\t\tMyExtentListners.test.fail(MarkupHelper.createLabel(\"Verify \" + \"\\'\" + elementName + \"\\'\"\n\t\t\t\t\t+ \" is displayed || \" + \"\\'\" + elementName + \"\\'\" + \" is not displayed \", ExtentColor.RED));\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, elementName));\n\t\t\tlogger.info(\"---------Element is not visible---------\" + element);\n\t\t\tthrow e;\n\t\t}\n\t}",
"public void waitForPageLoaded() {\r\n\r\n\t\tExpectedCondition<Boolean> expectation = new ExpectedCondition<Boolean>() {\r\n\t\t\tpublic Boolean apply(WebDriver driver) {\r\n\t\t\t\treturn ((JavascriptExecutor) driver).executeScript(\"return document.readyState\").equals(\"complete\");\r\n\t\t\t}\r\n\t\t};\r\n\t\tWait<WebDriver> wait = new WebDriverWait(driver, timeout);\r\n\t\twait.until(expectation);\r\n\t}",
"public String waitForElementVisibility(String object, String data) {\n logger.debug(\"Waiting for an element to be visible\");\n int start = 0;\n int time = (int) Double.parseDouble(data);\n try {\n while (true) {\n if(start!=time)\n {\n if (driver.findElements(By.xpath(OR.getProperty(object))).size() == 0) {\n Thread.sleep(1000L);\n start++;\n }\n else {\n break; }\n }else {\n break; } \n }\n } catch (Exception e) {\n return Constants.KEYWORD_FAIL + \"Unable to close browser. Check if its open\" + e.getMessage();\n }\n return Constants.KEYWORD_PASS;\n }",
"public void verifyElementIsVisible(String elementName) {\n wait.forElementToBeDisplayed(5, returnElement(elementName), elementName);\n Assert.assertTrue(\"FAIL: Yellow Triangle not present\", returnElement(elementName).isDisplayed());\n }",
"public WebElement wait_until_MobileElementIs_Visible(By locator) throws Exception {\n try {\n info(\"Waiting for element \" + locator + \" visibility state\");\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n return wait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n } catch (Exception e) {\n error(\"Exception occurred while trying to check visibility of element with definition \" + locator);\n error(Throwables.getStackTraceAsString(e));\n throw new Exception(Throwables.getStackTraceAsString(e));\n }\n }",
"public void waitForVisibilityOfAllWebElements(List<WebElement> webElement){\r\n\t\twait.until(ExpectedConditions.visibilityOfAllElements(webElement));\r\n\t}",
"public void waitForElementToReattachToDOM(final By bySelector)\n {\n // waits for the save to be registered before performing next action.\n System.out.println(\"Wait for element to not be stale \" + bySelector);\n new WebDriverWait(driver, DEFAULT_TIMEOUT, DEFAULT_SLEEP_IN_MILLIS).\n until(ExpectedConditions.not(ExpectedConditions.stalenessOf(waitForDisplay(bySelector))));\n }",
"public boolean waitforelement(int timeout,By by){\n\t\twhile(timeout>0){\n\t\t\tsleep(1);\n\t\t\tList<WebElement> list = driver.findElements(by);\n\t\t\tif(list.size()!=0){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\ttimeout--;\n\t\t}\n\t\tSystem.out.println(\"waiting timeout.... Element not found \" +by.toString());\n\t\treturn false;\n\t}",
"public static boolean displayed(WebElement element){\n waitForVisibility(element);\n return element.isDisplayed();\n }",
"public Boolean isElementPresent(WebElement element) {\r\n\t\ttry {\r\n\t\t\twaitForElementVisible(element);\r\n\t\t\telement.isDisplayed();\r\n\t\t\treturn true;\r\n\t\t} catch (Exception ex) {\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static void awaitFor (By by, int timer)\n\t{\n\t\tawait ().\n\t\t\t\tatMost (timer, SECONDS).\n\t\t\t\tpollDelay (1, SECONDS).\n\t\t\t\tpollInterval (1, SECONDS).\n\t\t\t\tignoreExceptions ().\n\t\t\t\tuntilAsserted (() -> assertThat (getDriver ().findElement (by).isDisplayed ()).\n\t\t\t\t\t\tas (\"Wait for Web Element to be displayed.\").\n\t\t\t\t\t\tisEqualTo (true));\n\t}",
"@Override\n public void waitUntilPageObjectIsLoaded() {\n }",
"@Test\n public void explicitWait() {\n WebDriverWait wait = new WebDriverWait(driver, 10);\n driver.get(\"https://the-internet.herokuapp.com/dynamic_controls\");\n WebElement removeButton = driver.findElement(By.xpath(\"//button[@type='button']\"));\n removeButton.click();\n //WebElement goneMessage=driver.findElement(By.id(\"message\"));\n WebElement goneMessage = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(\"message\")));\n String expectedMessage = \"It's gone!\";\n Assert.assertEquals(goneMessage.getText(), expectedMessage);\n\n }",
"public WebElement visibilityOf(final WebElement element) {\n return (new WebDriverWait(webDriver, DRIVER_WAIT_TIME))\n .until(ExpectedConditions.visibilityOf(element));\n }",
"public void waitUntilElementVisibility(WebDriver driver, int seconds, final String xpath, String elementName, StackTraceElement t) throws IOException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, seconds);\n\t\t\t\t\ttry { wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath))); }\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() == 0) { \n\t\t\t\t\t\t\tfileWriterPrinter(\"\\n\" + elementName + \" is still not visible!\\nXPATH: \" + xpath);\n\t\t\t\t\t\t\tgetScreenShot(t, elementName.replace(\"\\\"\", \"''\") + \" visibility Time-Out\", driver);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t fileWriterPrinter(\"Waiting time for \" + padRight(elementName, 28 - elementName.length()) + \" visibility: \" + waitTimeConroller(start, seconds, elementName) + \" sec\");\n\t\t\t\t\t}",
"public Boolean waitUntilElementPresence(WebDriver driver, int seconds, final String xpath, String elementName, StackTraceElement t) throws IOException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, seconds);\n\t\t\t\t\ttry { wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(xpath))); }\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() == 0) { fileWriterPrinter(\"\\n\" + elementName + \" not found!\\nXPATH: \" + xpath); }\n\t\t\t\t\tgetScreenShot(t, elementName.replace(\"\\\"\", \"''\") + \" presence Time-Out\", driver);\n\t\t\t\t\t}\n\t\t\t\t fileWriterPrinter(\"Waiting time for \" + padRight(elementName, 30 - elementName.length()) + \" presence: \" + waitTimeConroller(start, seconds, elementName) + \" sec\");\n\t\t\t\t return (driver.findElements(By.xpath(xpath)).size() > 0);\n\t\t\t\t}",
"public static void waitToAppear(By by, int timeoutInSeconds)\n\t{\n\t\tnew WebDriverWait(LocalDriverManagerMobile.INSTANCE.getDriver(), timeoutInSeconds).until(new ExpectedCondition<Boolean>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic Boolean apply(WebDriver input)\n\t\t\t{\n\t\t\t\treturn isDisplayed(by);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString()\n\t\t\t{\n\t\t\t\treturn \"element to appear, located by: '\" + by.toString() + \"'.\\n\";\n\t\t\t}\n\t\t});\n\t}",
"public static void verify_element_is_displayed(By locator) throws CheetahException {\n\t\ttry {\n\t\t\twait_for_element(locator);\n\t\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(element);\n\t\t\tdriverUtils.unHighlightElement(element);\n\t\t\tassertEquals(true, element.isDisplayed());\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\n\t\t}\n\n\t}",
"public static void waitForRegistrationButton(){\n DriverManager.waitForElement(Constans.REGISTRATION_BUTTON_LOCATOR);\n }",
"default void waitUntilVisible(double timeoutInSeconds)\n {\n SeleniumAsserts\n .assertThatSoon(timeoutInSeconds, \"Component becomes visible: \" + describe(), () -> this,\n SeleniumMatchers.isVisible());\n }",
"public static boolean waitForElementToAppear(WebDriver driver,\n\t\t\tfinal WebElement element, int timeOutInSeconds,\n\t\t\tint pollingInMilliSeconds) throws Exception {\n\t\ttry {\n\t\t\tlogger.info(\"Wait for Element to Appear using Wait until element is Displayed\");\n\t\t\treturn (new WebDriverWait(driver, timeOutInSeconds,\n\t\t\t\t\tpollingInMilliSeconds))\n\t\t\t\t\t.until(new ExpectedCondition<Boolean>() {\n\n\t\t\t\t\t\tpublic Boolean apply(WebDriver driver) {\n\t\t\t\t\t\t\tlogger.info(\"Waiting for element to be displayed \");\n\t\t\t\t\t\t\treturn element.isDisplayed();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t} catch (NoSuchElementException e) {\n\t\t\tlogger.error(\"The element to be serach is not present in the page->waitForElementToBeHidden->\"\n\t\t\t\t\t+ e.getMessage());\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"The element to be serach is not present in the page->waitForElementToBeHidden->\"\n\t\t\t\t\t\t\t+ e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Some exception in waitForElementToBeHidden\"\n\t\t\t\t\t+ e.getMessage());\n\t\t\tthrow new Exception(\"Some exception in waitForElementToBeHidden\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\n\t}",
"boolean isDisplayed();",
"public static WebElement waitUntilPresenceOfElementLocated(By by) {\n WebDriverWait webDriverWait = getWebDriverWait();\n return webDriverWait.until(ExpectedConditions.presenceOfElementLocated(by));\n }",
"public void waitForElementClickable(String locator) {\n waitForElementVisibility(locator);\n wait.until(ExpectedConditions.elementToBeClickable(By.xpath(locator)));\n }",
"public void waitUntilElementInvisibility(WebDriver driver, int seconds, final String xpath, String elementName, StackTraceElement t) throws IOException {\n\t\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, seconds);\n\t\t\t\t\ttry { wait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(xpath))); }\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tif (driver.findElements(By.xpath(xpath)).size() > 0) { \n\t\t\t\t\t\t\tfileWriterPrinter(\"\\n\" + elementName + \" is still visible!\\nXPATH: \" + xpath);\n\t\t\t\t\t\t\tgetScreenShot(t, elementName.replace(\"\\\"\", \"''\") + \" invisibility Time-Out\", driver);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t fileWriterPrinter(\"Waiting time for \" + padRight(elementName, 26 - elementName.length()) + \" invisibility: \" + waitTimeConroller(start, seconds, elementName) + \" sec\");\n\t\t\t\t\t}",
"public boolean isDisplayed();",
"@And(\"^I wait for page to load completely$\")\n\tpublic void waitForCompleteLoading(){\n\t\tString result=selenium.synchronize();\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}",
"public boolean isElementPresent(WebElement element) {\n try{\n return element.isDisplayed();\n }catch (RuntimeException e){\n return false;\n }\n }"
] | [
"0.79333913",
"0.7829026",
"0.78287756",
"0.7815335",
"0.76938736",
"0.76792586",
"0.76767135",
"0.7636152",
"0.76276106",
"0.7606195",
"0.75775",
"0.7441262",
"0.74290794",
"0.73864543",
"0.7364744",
"0.7293623",
"0.72866344",
"0.725896",
"0.72316545",
"0.7209441",
"0.71849036",
"0.7085025",
"0.7079478",
"0.70759606",
"0.707159",
"0.70470726",
"0.70377785",
"0.70299685",
"0.7013811",
"0.7008341",
"0.69271207",
"0.69268453",
"0.6923959",
"0.69139",
"0.69055605",
"0.69014686",
"0.68861634",
"0.6849302",
"0.6843661",
"0.6841407",
"0.68395317",
"0.68243676",
"0.6787445",
"0.6784019",
"0.6781324",
"0.67508686",
"0.67448455",
"0.6719993",
"0.6719032",
"0.6716462",
"0.6710744",
"0.6708144",
"0.67078376",
"0.6700199",
"0.6681009",
"0.6679852",
"0.66690713",
"0.6663182",
"0.66618073",
"0.66433084",
"0.66378385",
"0.6630441",
"0.6622408",
"0.6616232",
"0.6612449",
"0.6611609",
"0.658461",
"0.6577181",
"0.6568786",
"0.65665877",
"0.6564747",
"0.6563013",
"0.65592957",
"0.65556836",
"0.6548735",
"0.65419406",
"0.65306497",
"0.65260404",
"0.6505861",
"0.6493556",
"0.6492596",
"0.64888406",
"0.647526",
"0.643559",
"0.6432931",
"0.643155",
"0.6425205",
"0.6397155",
"0.6387335",
"0.6379635",
"0.63795817",
"0.6373329",
"0.6371205",
"0.63693154",
"0.63672155",
"0.63619703",
"0.6310278",
"0.62924534",
"0.62803555",
"0.62771416"
] | 0.6556055 | 73 |
Die eigentliche Spielelogik. Das Spielfeld wird hier nicht als zyklisch geschlossen betrachtet. | public interface GameOfLifeLogic {
/**
* Testet, ob die Zelle an der Position (x,y) in der aktuellen Generation lebt.
* @param x Kooridnate
* @param y Koordinate
* @return true genau dann wenn die Zelle an der Position (x,y) in der aktuellen
* Generation lebt. Ansonsten false.
*/
boolean isCellAlive(int x, int y);
/**
* Berechnet nach den Spielregeln die neue Generation aus der startGeneration,
* speichert sie in einem neuen Feld und überschreibt nach der Berechnung die
* alte Generation mit der neuen und setzt das Feld der neuenGeneration wieder
* auf false für alle Positionen.
*/
void nextGeneration();
/**
* Übergibt die Startgeneration.
* @param generation eine der Startgenerationen.
*/
void setStartGeneration(boolean[][] generation);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AbstraktesSpielfeld getSpielfeld() {\n // Hier ein Spielfeld-Objekt erzeugen und zurückliefern.\n return new Spielfeld();\n }",
"public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}",
"public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }",
"public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}",
"public void sendeSpielfeld();",
"public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}",
"public Spielflaeche getSpielflaeche() {return spielflaeche;}",
"protected boolean betreteSpielfeld(){\r\n\t\t\r\n\t\tint neueId;\r\n\t\t\r\n\t\tif(spiel.getBewegungsWert()==6)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<4; i++){\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Startfeld){\r\n\t\t\t\t\tneueId = spieler.getFigur(i).getFreiPosition();\r\n\t\t\t\t\tif(spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tspiel.bewege(i);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}",
"public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }",
"public void mieteZahlen(BesitzrechtFeld feld) {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n Spieler spieler = feld.getSpieler();\n boolean einzahlen = einzahlen(feld.getMiete());\n if (!einzahlen) {\n MonopolyMap.spielerVerloren(spielfigur);\n } else {\n System.out.println(\"Du musst an \" + feld.getSpieler().getSpielfigur() + \" Miete in Höhe von \" + feld.getMiete() + \" zahlen (\" + feld.getFeldname() + \")\");\n spieler.auszahlen(feld.getMiete());\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n\n }",
"public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}",
"public Spieler(String spielfigur) {\n\n this.kontostand = 30000;\n this.spielfigur = spielfigur;\n this.istGefängnis = false;\n\n liste.put(\"braun\", braun);\n liste.put(\"hellblau\", hellblau);\n liste.put(\"pink\", pink);\n liste.put(\"orange\", orange);\n liste.put(\"rot\", rot);\n liste.put(\"gelb\", gelb);\n liste.put(\"grün\", grün);\n liste.put(\"duneklblau\", dunkelblau);\n liste.put(\"bahnhoefe\", bahnhoefe);\n liste.put(\"werke\", werke);\n felderInBesitz = new ArrayList<>();\n\n }",
"public void sendeSpielerWeg(String spieler);",
"public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }",
"public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}",
"public KI(Spieler spieler, Spiel spiel){\r\n\t\tif (spieler == null) throw new RuntimeException(\"Spieler muss vorhanden sein!\");\t\r\n\t\tthis.spieler = spieler;\r\n\r\n\t\tif(spiel==null) throw new RuntimeException (\"Spiel sollte vorhanden sein\");\r\n\t\tthis.spiel=spiel;\r\n\r\n\t\thatUeberlauf=false;\r\n\t}",
"protected boolean laufEinfach(){ \r\n\r\n\t\tint groessteId=spieler.getFigur(0).getPosition().getId();\r\n\t\tint figurId=0; // Figur mit der gr��ten ID\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<4; i++)\r\n\t\t{ \r\n\t\t\tint neueId;\r\n\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\tif(spieler.getFigur(i).getPosition().getTyp() != FeldTyp.Startfeld && groessteId<spieler.getFigur(i).getPosition().getId()){\r\n\t\t\t\tgroessteId=spieler.getFigur(i).getPosition().getId();\r\n\t\t\t\tfigurId=i;\r\n\t\t\t}\r\n\t\t\tneueId = spiel.ueberlauf(neueId, i);\r\n\t\t\tif (spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Endfeld) {\r\n\t\t\t\tif (!spiel.zugGueltigAufEndfeld(neueId, i)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getId() == spieler.getFigur(i).getFreiPosition()){\r\n\t\t\t\t\tif(!spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\tfigurId = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\t\t\t\tif(spieler.getFigur(j).getPosition().getId() == neueId){\r\n\t\t\t\t\t\t\t\tif(!spiel.userIstDumm(neueId+spiel.getBewegungsWert(), j)){\r\n\t\t\t\t\t\t\t\t\tfigurId = j;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tspiel.bewege(figurId);\r\n\t\treturn true;\r\n\t}",
"public void sendeNeuerSpieler(String spieler);",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"public String getSpfl() {\n return spfl;\n }",
"public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}",
"@Before\r\n\tpublic void erstelleSUT() {\n\t\tSpiel spiel = new Spiel();\r\n\r\n\t\t// Für jeden Spieler eine Unternehmenskette, damit eine\r\n\t\t// Konkurrenzsituation entsteht\r\n\t\tukette = new Unternehmenskette(\"KetteNummer1\");\r\n\t\tukette1 = new Unternehmenskette(\"KetteNummer2\");\r\n\t\t// Es werden für Unternehmenskette ein Report erstellt. Pro Runde\r\n\t\t// brauchen wir eigentlich ein Report für jede Kette.\r\n\t\tReport report = new Report(1, ukette);\r\n\t\tReport report1 = new Report(1, ukette1);\r\n\t\tukette.hinzufuegenReport(report);\r\n\t\tukette1.hinzufuegenReport(report1);\r\n\t\t// Dem Spiel werden die Unternehmensketten zugeordnet\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette);\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette1);\r\n\t\t// Ein Standort, an dem die Ketten konkurrieren sollen, wird angelegt\r\n\r\n\t\t// für den Kunden:\r\n\t\t// Praeferenz für ALLE ist Qualität\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tstandort = new Standort(Standorttyp.Standort1);\r\n\t\tfil1 = new Filiale(standort, ukette);\r\n\t\tfil1.setzeMitarbeiter(1);\r\n\t\tfil1.initialisierenKapazitaet();\r\n\t\tfil2 = new Filiale(standort, ukette1);\r\n\t\tfil2.setzeMitarbeiter(1);\r\n\t\tfil2.initialisierenKapazitaet();\r\n\t\tZufall.setzeTestmodus(false);\r\n\t\tstandort.beeinflussenKunden(ukette, 1);\r\n\t\tstandort.beeinflussenKunden(ukette1, 1);\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tProdukt p1 = new Produkt(Produkttyp.TEE, 20);\r\n\t\tProdukt p2 = new Produkt(Produkttyp.KUCHEN, 10);\r\n\t\tp1.setzePreis(1);\r\n\t\tp1.setzeQualitaet(0.56);\r\n\t\tp2.setzePreis(1.2);\r\n\t\tp2.setzeQualitaet(0.6);\r\n\t\tukette.holeLager().einlagern(p1);\r\n\t\tukette.holeLager().einlagern(p2);\r\n\t\tp1.setzePreis(0.8);\r\n\t\tp1.setzeQualitaet(0.5);\r\n\t\tukette1.holeLager().einlagern(p1);\r\n\t\t// Kette1 bietet Kaffee (P:1; Q:0.56) und Kuchen (P:1.2; Q:0.6) an\r\n\t\t// Kette2 bietet Kaffe (P:0.8, Q:0.5) an.\r\n\t}",
"private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}",
"public IzvajalecZdravstvenihStoritev() {\n\t}",
"public Monopoly() {\n\t\tsuper();\n\t\tthis.spieler = new Spielerverwaltung();\n\t\tthis.logik = new Spielverwaltung(spieler,this);\n\t\tpmLaden = new PersistenzLaden();\n\t\tpmSpeichern = new PersistenzSpeichern();\n\t}",
"public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}",
"public void setzeEigenenStein(int spielzug){\t\t\n\t\t//Setze eigenen Stein\n\t\tfor(int i=0; i<6; i++) {\n\t\t\tif(spielfeld[spielzug][i].equals(\"_\")){\n\t\t\t\tspielfeld[spielzug][i] = eigenerStein;\n\t\t\t\teigenerPunkt.setLocation(spielzug, i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t}",
"public void skrivUtSpiller() {\r\n\t\tSystem.out.println(\"Spiller \" + id + \": \" + navn + \", har \" + poengsum + \" poeng\");\r\n\t}",
"private void sterben()\n {\n lebendig = false;\n if(position != null) {\n feld.raeumen(position);\n position = null;\n feld = null;\n }\n }",
"public PlatzVerkaufsWerkzeug()\r\n\t{\r\n\t\t_ui = new PlatzVerkaufsWerkzeugUI();\r\n\t\tregistriereUIAktionen();\r\n\t\t// Am Anfang wird keine Vorstellung angezeigt:\r\n\t\tsetVorstellung(null);\r\n//\t\t_auswahl = new Map<Platz, Boolean>; Alternative mit Map\r\n\t}",
"public void ausgeben() {\n\t\tSystem.out.println(this);\n\t\tIterator<Pruefungsleistung> iter = pruefungsleistungen.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\t}",
"boolean sprawdz_przegrana(){\n for(int i=0;i<figura_jakas.getWspolzedne_figorki().size();i++)\n if(sprawdz_kolizje_z_innymi_klockami(0))\n return true;\n return false;\n }",
"float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}",
"public Spielfelder spielfigurSetzen(int feldNummer) {\n for (int i = 0; i < MonopolyMap.getSpielfelder().size(); i++) {\n Spielfelder get = MonopolyMap.getSpielfelder().get(i);\n if (get.getFeldnummer() == feldNummer) {\n this.aktuellesFeld = feldNummer;\n\n return get;\n }\n\n }\n return null;\n }",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\tpublic String swim() {\n\t\treturn null;\r\n\t}",
"public Salg() {\n\t\tbetalingsform = null;\n\t\tsalgslinjer = new ArrayList<>();\n\t\tthis.setID();\n\t}",
"public void addSteinZuSpielFeld(Stein pStein, int spielerIndex)\n {\n if (!checkLegbarkeit(pStein))\n return;\n //System.out.println(\"QuirkelSpiel: \"+(System.currentTimeMillis() - start) + \" ms for Legbarkeitscheck!\");\n\n\n\n if (aktiveZeile ==null && aktiveSpalte ==null){\n aktiveZeile = pStein.gibZeile();\n aktiveSpalte = pStein.gibSpalte();\n }\n else if (aktiveZeile!=null && aktiveSpalte!=null){\n if (pStein.gibZeile()!=aktiveZeile && pStein.gibSpalte()!=aktiveSpalte) //Stein muss in gleiche Zeile oder Spalte gelegt werden\n return;\n else if (pStein.gibZeile()==aktiveZeile)\n aktiveSpalte = null;\n else\n aktiveZeile =null;\n }\n else if (aktiveZeile!=null){\n if (pStein.gibZeile()!=aktiveZeile) //Stein muss in die gleiche Zeile gelegt werden\n return;\n }\n else\n if (pStein.gibSpalte()!=aktiveSpalte) //Stein muss in die gleiche Spalte gelegt werden\n return;\n\n if (aktiveFarbe ==null && aktivesSymbol ==null){\n aktiveFarbe = pStein.gibFarbString();\n aktivesSymbol = pStein.gibSymbolString();\n }\n else if (aktiveFarbe!=null && aktivesSymbol!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe) && !pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol oder gleiche Farbe haben\n return;\n else if (pStein.gibFarbString().equals(aktiveFarbe))\n aktivesSymbol = null;\n else\n aktiveFarbe =null;\n }\n else if (aktiveFarbe!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe)) //Stein muss gleiche Farbe haben\n return;\n }\n else\n if (!pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol haben\n return;\n\n\n spielfeld.append(pStein); // legt ihn auf das Spielfeld\n symbolMap.get(pStein.gibSymbol()).add(pStein);\n farbenMap.get(pStein.gibSymbol()).add(pStein);\n\n int punkte=0;\n int zwischenPunkte =horizontalePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n zwischenPunkte =senkrechtePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n\n if (punkte==0)\n punkte = 1; //gib auf alle Faelle einen Punkt\n\n while (spielerRing.getContent().gibIndex()!=spielerIndex)\n spielerRing.next();\n\n Spieler spieler = this.spielerRing.getContent();\n spieler.legeStein(pStein,punkte);\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + pStein.toString() + \" gelegt.\");\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + punkte + \" Punkte bekommen.\");\n\n\n //Wiederauffuellen in der gleichen Runde, wenn alle Steine abgelegt worden sind\n if (spieler.gibAnzahlSteine()==0 && beutel.gibAnzahl()>0){\n while (spieler.gibAnzahlSteine()<6 && beutel.gibAnzahl()>0){\n spieler.addStein(beutel.gibStein());\n }\n }\n\n }",
"public void setSpfl(String spfl) {\n this.spfl = spfl;\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public int miete(Spieler spieler){\n\t\treturn logik.miete(spieler);\n\t}",
"public String getDPSeitenangaben(){\n\t\treturn this.m_sDPSeitenangaben;\n\t}",
"public boolean istVoll()\n\t{\n\t return (_spalte0 > 0) && (_spalte1 > 0) && (_spalte2 > 0);\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"protected boolean geheAufEndfeld(){\r\n\t\tint neueId;\r\n\t\tfor(int i=0; i<4; i++)\r\n\t\t{\r\n\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Normalfeld){\r\n\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\tif (spieler.getFigur(i).getPosition().getId() != spieler.getFigur(i).getFreiPosition()) {\r\n\t\t\t\tneueId = spiel.ueberlauf(neueId, i);\r\n\t\t\t\tif(spiel.kannEndfeldErreichen(neueId) && spiel.userIstDumm(neueId, i) == false){\r\n\t\t\t\t\tif(spiel.zugGueltigEndfeld(neueId)){\r\n\t\t\t\t\t\tif(spiel.endfeld(neueId) == neueId){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tspiel.bewege(i);\r\n\t\t\t\t\t\t\treturn true;\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\t}\r\n\t\t} \r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void loese(Schiebepuzzle p) {\n\t\tPoint endPos = new Point(0,0);\n\t\twhile(!p.getLocationOfField(1).equals(endPos)) {\n\t\t\tArrayList<Integer> temp = new ArrayList<>();\n\t\t\tfor(int i = 1; i <= p.maxElement(); i++) {\n\t\t\t\tif(p.istVerschiebar(i)) {\n\t\t\t\t\ttemp.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint index = randInt(temp.size() - 1);\n\t\t\tp.schiebe(temp.get(index));\n\t\t}\t\t\n\t}",
"public Boolean isSitzplatz() {\n\t\treturn this.sitzplatz;\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"public void splGaussJordan() {\n SPL M1 = this;\n\n System.out.println(\"Setelah dilakukan eliminasi Gauss-Jordan:\");\n M1.EliminasiGaussJordan();\n M1.TulisMatriks();\n\n if(!M1.isSolutionExist()) {\n System.out.println(\"SPL tidak memiliki solusi.\");\n this.Solusi = \"SPL tidak memiliki solusi.\";\n } else if (M1.isSingleSolution()) {\n System.out.println(\"SPL memiliki solusi tunggal.\\n\");\n this.Solusi += \"SPL memiliki solusi tunggal.\\n\";\n M1.EliminasiGaussJordan();\n M1.solveSingleSolution();\n } else {\n System.out.println(\"SPL memiliki solusi banyak.\\n\");\n this.Solusi += \"SPL memiliki solusi banyak.\\n\";\n M1.EliminasiGaussJordan();\n M1.solveManySolution();\n }\n }",
"@SuppressWarnings(\"unused\")\n private RundenZielSpeicher() {\n Log.d(TAG, \"RundenzielSpeicher unused.\");\n }",
"@Test\n public void testGPSping() {\n assertEquals(-31.977484, csse.getLat(), PRECISION);\n assertEquals(115.859945, perth.getLon(), PRECISION);\n assertEquals(48.859741, paris.getLat(), PRECISION);\n assertEquals(1565063614,csse.getTime());\n }",
"public void sauvegarderPointPartie (){\n\t\t\n\t\tint menage = (Integer) pointPartieEnCours.get(THEMES.MENAGE);\n\t\tint maths = (Integer) pointPartieEnCours.get(THEMES.MATHS);\n\t\tint francais = (Integer) pointPartieEnCours.get(THEMES.FRANCAIS);\n\t\t\n\t\tmenage += (Integer) level.get(THEMES.MENAGE);\n\t\tmaths += (Integer) level.get(THEMES.MATHS);\n\t\tfrancais += (Integer) level.get(THEMES.FRANCAIS);\n\t\t\n\t\tlevel.remove(THEMES.MENAGE); \n\t\tlevel.remove(THEMES.MATHS); \n\t\tlevel.remove(THEMES.FRANCAIS); \n\t\t\n\t\t\n\t\tlevel.put(THEMES.MENAGE ,menage); \n\t\tlevel.put(THEMES.MATHS ,maths); \n\t\tlevel.put(THEMES.FRANCAIS ,francais); \n\t\t\n\t}",
"boolean EsHemisferioSur()\r\n {\r\n if (getLat() < 29.46)\r\n return true;\r\n else\r\n return false;\r\n }",
"public Spiel(TerraSnowSpleef plugin) {\r\n this.plugin = plugin;\r\n joinCountdown = false;\r\n startCountdown = false;\r\n spiel = false;\r\n sf = new Spielfeld(plugin);\r\n spielerSet = new HashSet<>();\r\n }",
"@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }",
"@Override\n public void perish() {\n \n }",
"public void setVorstellung(Vorstellung vorstellung)\r\n\t{\r\n\t\t\r\n\t\tif (_vorstellung != null && ausgewaehltePlaetze() != null)\r\n\t\t{\r\n\t\tfor(Platz platz : _vorstellung.getKinosaal().getPlaetze())\r\n\t\t{\r\n\t\t\tif(!ausgewaehltePlaetze().contains(platz) && _vorstellung.istPlatzAusgewaehlt(platz))\r\n\t\t\t{\r\n\t\t\t\t_vorstellung.deselektionPlatz(platz); //um vor einem Vorstellungswechsel alle deselektierten Plätze zu deselektieren\r\n\t\t\t}\r\n//\t\t\telse if(ausgewaehltePlaetze().contains(platz) && !_vorstellung.istPlatzAusgewaehlt(platz)) ... nicht nötig, macht der Listener schon\r\n//\t\t\t{\r\n//\t\t\t\t_vorstellung.auswahlPlatz(platz);\t\t\t\t\t\r\n//\t\t\t}\r\n\t\t}\r\n\t\t}\r\n\t\t_vorstellung = vorstellung;\r\n\t\taktualisierePlatzplan();\r\n\t\treagiereAufNeuePlatzAuswahl(ausgewaehltePlaetze()); //wichtig um Preisanzeige etc. zu aktualisieren\r\n\t}",
"public void macheZugRueckgaengig(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(spieler)){\n\t\t\tspielfeld[spalte][zeile] = \"_\";\n\t\t}\n\t\t\t\n\t}",
"public String getSpLocation() {\r\n return spLocation;\r\n }",
"@Override\r\n\tpublic int getGela_kop() {\n\t\treturn super.getGela_kop();\r\n\t}",
"public double getVerdienst()\n {\n return gehalt;\n }",
"public void splGauss() {\n //Mencari solusi SPL menggunakan metode eliminasi Gauss\n //SPL dalam bentuk matriks augmented \n SPL M1 = this;\n\n System.out.println(\"Setelah dilakukan eliminasi Gauss:\");\n M1.EliminasiGauss();\n M1.TulisMatriks();\n\n if(!M1.isSolutionExist()) {\n System.out.println(\"SPL tidak memiliki solusi.\");\n this.Solusi += \"SPL tidak memiliki solusi.\";\n } else if (M1.isSingleSolution()) {\n System.out.println(\"SPL memiliki solusi tunggal.\\n\");\n this.Solusi += \"SPL memiliki solusi tunggal.\\n\";\n M1.EliminasiGauss();\n M1.solveSingleSolution();\n } else {\n System.out.println(\"SPL memiliki solusi banyak.\\n\");\n this.Solusi += \"SPL memiliki solusi banyak.\\n\";\n M1.EliminasiGauss();\n M1.solveManySolution();\n }\n }",
"@Override // prekrytie danej metody predka\r\n public String toString() {\r\n return super.toString()\r\n + \" vaha: \" + String.format(\"%.1f kg,\", dajVahu())\r\n + \" farba: \" + dajFarbu() + \".\";\r\n }",
"public void keyPressed(KeyEvent e) {\n\t\t// Aktuelle Position des Spielers\n\t\tint xPos = spieler.getXPos();\n\t\tint yPos = spieler.getYPos();\n\n\t\t// Frage Tastatureingaben auf den Pfeiltasten ab.\n\t\t// Es wird geprueft, ob der naechste Schritt zulaessig ist.\n\t\t// Bleibt die Figur innerhalb der Grenzen des Arrays?\n\t\t// Wenn ja, ist das naechste Feld begehbar?\n\t\t// Falls beides \"wahr\" ist, dann gehe den naechsten Schritt\n\t\tif (!spielende) {\n\t\t\tif (e.getKeyCode() == KeyEvent.VK_UP) {\n\t\t\t\tif (yPos > 0 && !(level[xPos][yPos - 1] instanceof Wand))\n\t\t\t\t\tspieler.hoch();\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_DOWN) {\n\t\t\t\tif (yPos < HEIGHT - 1 && !(level[xPos][yPos + 1] instanceof Wand))\n\t\t\t\t\tspieler.runter();\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_LEFT) {\n\t\t\t\tif (xPos > 0 && !(level[xPos - 1][yPos] instanceof Wand))\n\t\t\t\t\tspieler.links();\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_RIGHT) {\n\t\t\t\tif (xPos < WIDTH - 1 && !(level[xPos + 1][yPos] instanceof Wand))\n\t\t\t\t\tspieler.rechts();\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_Q) {\n\t\t\t\tMonster m = spieler.angriffsMonster();\n\t\t\t\tif (m != null)\n\t\t\t\t\tm.changeHealth(-BOX / 4);\n\t\t\t// B f�r 'Heiltrank benutzen'\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_B){\n\t\t\t\tint change = spieler.benutzeHeiltrank();\n\t\t\t\t// Heilungseffekt wird verbessert, falls neue Monster durch das Aufheben des Schl�ssels ausgel�st wurden\n\t\t\t\tif (spieler.hatSchluessel())\n\t\t\t\t\tspieler.changeHealth((int)(change*1.5));\n\t\t\t\telse\n\t\t\t\t\tspieler.changeHealth((int)(change*0.5));\n\t\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\n\t\tif (e.getKeyCode() == KeyEvent.VK_SPACE) {\n\t\t\t// Schluessel aufnehmen\n\t\t\tif (level[spieler.getXPos()][spieler.getYPos()] instanceof Schluessel) {\n\t\t\t\tspieler.nimmSchluessel();\n\t\t\t\tlevel[spieler.getXPos()][spieler.getYPos()] = new Boden();\n\t\t\t}\n\t\t\t// Heiltrank aufnehmen\n\t\t\telse if (level[spieler.getXPos()][spieler.getYPos()] instanceof Heiltrank) {\n\t\t\t\tspieler.nimmHeiltrank((Heiltrank) level[spieler.getXPos()][spieler.getYPos()]);\t\t\n\t\t\t\tlevel[spieler.getXPos()][spieler.getYPos()] = new Boden();\n\t\t\t}\n\t\t\t// Schluessel benutzen\n\t\t\tif (level[spieler.getXPos()][spieler.getYPos()] instanceof Tuer) {\n\t\t\t\tif (!((Tuer) level[spieler.getXPos()][spieler.getYPos()]).istOffen() && spieler.hatSchluessel()) {\n\t\t\t\t\t((Tuer) level[spieler.getXPos()][spieler.getYPos()]).setOffen();\n\t\t\t\t\t// Nach dem Oeffnen der Tuer ist der Schluessel wieder weg\n\t\t\t\t\tspieler.entferneSchluessel();\n\t\t\t\t\tif (currentLevel < MAXLEVEL)\n\t\t\t\t\t\tnextLevel();\n\t\t\t\t\telse {\n\t\t\t\t\t\tspielende = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"private boolean checkLegbarkeit(Stein pStein){\n\n if (spielfeld.isEmpty()) //erster Stein, alles ist moeglich\n return true;\n\n //liegt schon ein Stein im Feld?\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){\n Stein stein = spielfeld.getContent();\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte())\n return false;\n spielfeld.next();\n }\n\n //bestimme alle Nachbarsteine\n java.util.List<Stein> oben = new ArrayList<>();\n java.util.List<Stein> rechts = new ArrayList<>();\n java.util.List<Stein> links = new ArrayList<>();\n java.util.List<Stein> unten = new ArrayList<>();\n\n findeNachbarSteine(pStein,oben, Richtung.oben);\n findeNachbarSteine(pStein,rechts, Richtung.rechts);\n findeNachbarSteine(pStein,unten, Richtung.unten);\n findeNachbarSteine(pStein,links, Richtung.links);\n\n if (oben.size()==0 && rechts.size()==0 && links.size()==0 && unten.size()==0) //keine Nachbar, Stein ins Nirvana gelegt\n return false;\n\n if(pruefeAufKonflikt(pStein,oben)) return false;\n if(pruefeAufKonflikt(pStein,rechts)) return false;\n if(pruefeAufKonflikt(pStein,unten)) return false;\n if(pruefeAufKonflikt(pStein,links)) return false;\n\n return true;\n }",
"public String getSpfltpwj() {\n return spfltpwj;\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\r\n public String toString() {\r\n// ritorna una stringa\r\n return \"pollo\";\r\n }",
"@Override\r\n\tpublic double aumentarSueldo() {\n\t\treturn 0;\r\n\t}",
"public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }",
"public void setzeSchiffe() {\n\t\tthis.setzeSchiffe = true;\n\t}",
"public boolean siegMuster(int spalte, int zeile){\n\t\ttry{\n\t\t\tif(spielfeld[spalte-3][zeile].equals(eigenerStein) && spielfeld[spalte-2][zeile].equals(eigenerStein) && spielfeld[spalte-1][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\t//Pruefe links -2\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-2][zeile].equals(eigenerStein) && spielfeld[spalte-1][zeile].equals(eigenerStein) && spielfeld[spalte+1][zeile].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe links -1\n\t\ttry{\n\t\t\tif(spielfeld[spalte-1][zeile].equals(eigenerStein) && spielfeld[spalte+1][zeile].equals(eigenerStein) && spielfeld[spalte+2][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe rechts +3\n\t\ttry{\n\t\t\tif(spielfeld[spalte+1][zeile].equals(eigenerStein) && spielfeld[spalte+2][zeile].equals(eigenerStein) && spielfeld[spalte+3][zeile].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t//Pruefe senkrecht\n\t\ttry{\n\t\t\tif(spielfeld[spalte][zeile-3].equals(eigenerStein) && spielfeld[spalte][zeile-2].equals(eigenerStein) && spielfeld[spalte][zeile-1].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t//Pruefe waagerecht\n\t\t//Pruefe diagonal links -3\n\t\ttry{\n\t\t\tif(spielfeld[spalte-3][zeile-3].equals(eigenerStein) && spielfeld[spalte-2][zeile-2].equals(eigenerStein) && spielfeld[spalte-1][zeile-1].equals(eigenerStein)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\t//Pruefe diagonal links -2\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-2][zeile-2].equals(eigenerStein) && spielfeld[spalte-1][zeile-1].equals(eigenerStein) && spielfeld[spalte+1][zeile+1].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal links -1\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile-1].equals(eigenerStein) && spielfeld[spalte+1][zeile+1].equals(eigenerStein) && spielfeld[spalte+2][zeile+2].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile+1].equals(eigenerStein) && spielfeld[spalte+2][zeile+2].equals(eigenerStein) && spielfeld[spalte+3][zeile+3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +3 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+3][zeile-3].equals(eigenerStein) && spielfeld[spalte+2][zeile-2].equals(eigenerStein) && spielfeld[spalte+3][zeile-3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +2 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+2][zeile-2].equals(eigenerStein) && spielfeld[spalte+1][zeile-1].equals(eigenerStein) && spielfeld[spalte-1][zeile+1].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal rechts +1 runter\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile-1].equals(eigenerStein) && spielfeld[spalte-1][zeile+1].equals(eigenerStein) && spielfeld[spalte-2][zeile+2].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t//Pruefe diagonal links hoch\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile+1].equals(eigenerStein) && spielfeld[spalte-2][zeile+2].equals(eigenerStein) && spielfeld[spalte-3][zeile+3].equals(eigenerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Pruefe waagerecht\n\t\t\t\t//Pruefe links -3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-3][zeile].equals(gegnerStein) && spielfeld[spalte-2][zeile].equals(gegnerStein) && spielfeld[spalte-1][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t//Pruefe links -2\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-2][zeile].equals(gegnerStein) && spielfeld[spalte-1][zeile].equals(gegnerStein) && spielfeld[spalte+1][zeile].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe links -1\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-1][zeile].equals(gegnerStein) && spielfeld[spalte+1][zeile].equals(gegnerStein) && spielfeld[spalte+2][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe rechts +3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte+1][zeile].equals(gegnerStein) && spielfeld[spalte+2][zeile].equals(gegnerStein) && spielfeld[spalte+3][zeile].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t//Pruefe senkrecht\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte][zeile-3].equals(gegnerStein) && spielfeld[spalte][zeile-2].equals(gegnerStein) && spielfeld[spalte][zeile-1].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t//Pruefe waagerecht\n\t\t\t\t//Pruefe diagonal links -3\n\t\t\t\ttry{\n\t\t\t\t\tif(spielfeld[spalte-3][zeile-3].equals(gegnerStein) && spielfeld[spalte-2][zeile-2].equals(gegnerStein) && spielfeld[spalte-1][zeile-1].equals(gegnerStein)){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\n\t\t\t\t//Pruefe diagonal links -2\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-2][zeile-2].equals(gegnerStein) && spielfeld[spalte-1][zeile-1].equals(gegnerStein) && spielfeld[spalte+1][zeile+1].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal links -1\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-1][zeile-1].equals(gegnerStein) && spielfeld[spalte+1][zeile+1].equals(gegnerStein) && spielfeld[spalte+2][zeile+2].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +3\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+1][zeile+1].equals(gegnerStein) && spielfeld[spalte+2][zeile+2].equals(gegnerStein) && spielfeld[spalte+3][zeile+3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +3 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+3][zeile-3].equals(gegnerStein) && spielfeld[spalte+2][zeile-2].equals(gegnerStein) && spielfeld[spalte+3][zeile-3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +2 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+2][zeile-2].equals(gegnerStein) && spielfeld[spalte+1][zeile-1].equals(gegnerStein) && spielfeld[spalte-1][zeile+1].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal rechts +1 runter\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte+1][zeile-1].equals(gegnerStein) && spielfeld[spalte-1][zeile+1].equals(gegnerStein) && spielfeld[spalte-2][zeile+2].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\t\t\t\t\n\t\t\t\t//Pruefe diagonal links hoch\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(spielfeld[spalte-1][zeile+1].equals(gegnerStein) && spielfeld[spalte-2][zeile+2].equals(gegnerStein) && spielfeld[spalte-3][zeile+3].equals(gegnerStein)){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){}\n\t\t\n\t\treturn false;\n\t}",
"public String dajPopis() {\n return super.dajPopis() + \"KUZLO \\nJedna tebou vybrata jednotka ziska 3-nasobnu silu\";\n }",
"private void poetries() {\n\n\t}",
"@Override\r\n\tpublic int getMaxSPLevel() {\n\t\treturn 0;\r\n\t}",
"private boolean analyseQueryBefore(Spieler spieler,Spieler spielerB, Board board) {\r\n\t\t// Switch mit der Spielphase des Spielers\r\n\t\tboolean back = false;\r\n\t\tswitch (spieler.getSpielPhase()) {\r\n\t\t\tcase 0: \t// Werte nur Regel 1 aus\r\n\t\t\t\t\t\tList<Stein> rueckgabe = this.logikCheck.sucheZweiInGleicherReihe(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!rueckgabe.isEmpty() && !rueckgabe.get(0).equals(new Stein(0,0,0, null))) {\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe.get(0));\r\n\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\tcase 1:\t\tfor(Regel regel: uebergreifendeRegeln) {\r\n\t\t\t\t\t\t\tif(regel.getIfTeil().contains(\"eigene Steine\")) {\r\n\t\t\t\t\t\t\t\tList<Stein> getDataBack = this.logikCheck.sucheZweiGleicheReiheUnddrittenSteinDazu(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\t\t\tif(!getDataBack.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tStein stein = getDataBack.get(1);\r\n\t\t\t\t\t\t\t\t\tdataBack.add(stein);\r\n\t\t\t\t\t\t\t\t\tFeld nachbarn = stein.convertToFeld();\r\n\t\t\t\t\t\t\t\t\tList<Feld> moeglicheZuege = nachbarn.allefreienNachbarn(board);\r\n\t\t\t\t\t\t\t\t\tif(!moeglicheZuege.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\tdataBack.add(moeglicheZuege.get(0).convertToStein());\r\n\t\t\t\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tList<Stein> zweiGegner = this.logikCheck.sucheZweiInGleicherReihe(spielerB.getPosiSteine(), board);\r\n\t\t\t\t\t\t\t\tif(!zweiGegner.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tList<Stein> result = this.logikCheck.sucheSteinInderNäheUmGegnerZuBlocken(zweiGegner, spieler);\r\n\t\t\t\t\t\t\t\t\tif(!result.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\tStein stein = result.get(0);\r\n\t\t\t\t\t\t\t\t\t\tdataBack.add(stein);\r\n\t\t\t\t\t\t\t\t\t\tFeld nachbarn = stein.convertToFeld();\r\n\t\t\t\t\t\t\t\t\t\tList<Feld> moeglicheZuege = nachbarn.allefreienNachbarn(board);\r\n\t\t\t\t\t\t\t\t\t\tif(!moeglicheZuege.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataBack.add(moeglicheZuege.get(0).convertToStein());\r\n\t\t\t\t\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\tcase 2:\t\tList<Stein> rueckgabe2 = this.logikCheck.sucheZweiGleicheReiheUnddrittenSteinDazu(spieler.getPosiSteine(), board);\r\n\t\t\t\t\t\tif(!rueckgabe2.isEmpty()) {\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe2.get(0));\r\n\t\t\t\t\t\t\tdataBack.add(rueckgabe2.get(1));\r\n\t\t\t\t\t\t\tback = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault: break;\t\r\n\t\t}\r\n\t\treturn back;\r\n\t}",
"private void analyseQuerySpielPhase0(Board board, Spieler spieler) {\r\n\t\tfor(RegelSpielPhase0 regel: spielphase0) {\r\n\t\t\tif(regel.getIfTeil().contains(\"Frei\") && !board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\tspielphase0.remove(regel);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if(regel.getIfTeil().contains(\"Belegt\") && board.checkAufBelegtFeld(regel.getIfStein().convertToFeld()) &&\r\n\t\t\t\t\t\t!board.checkAufBelegtFeld(regel.getElseStein().convertToFeld())){\r\n\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\tspielphase0.remove(regel);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if(regel.getIfTeil().contains(\"zufall\")) {\r\n\t\t\t\t\r\n\t\t\t\tif(!board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\tthis.dataBack.add(regel.getIfStein());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tregel.erzeugeZufällig();\r\n\t\t\t\t\twhile(board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\t\tregel.erzeugeZufällig();\r\n\t\t\t\t\t\tSystem.out.println(\"Eine zufällige Regel wurde erzeugt.\");\r\n\t\t\t\t\t\tif(!board.checkAufBelegtFeld(regel.getIfStein().convertToFeld())) {\r\n\t\t\t\t\t\t\tthis.dataBack.add(regel.getElseStein());\r\n\t\t\t\t\t\t\tregel.erzeugeZufällig();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"private Spielfeld(int[] mulden) {\n\t\tthis.mulden = mulden;\n\t}",
"protected abstract void setSpl();",
"public void pleitegeierSperren() {\n kontoMap.values().stream()\n .filter(konto -> konto.getKontostand() < 0)\n .forEach(Konto::sperren);\n }",
"public RelaxedPyramidSolitaire() {\n super();\n }",
"private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}",
"public void stampajSpisak() {\n\t\t\n\t\tif (prviFilm != null) {\n\t\t\t\n\t\t\tFilm tekuciFilm = prviFilm;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tSystem.out.println(\"Filmovi: \");\n\t\t\t\n\t\t\twhile (tekuciFilm != null) {\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Film #\" + count + \": '\" + tekuciFilm.naziv + \"'\");\n\t\t\t\t\n\t\t\t\tif (tekuciFilm.sadrzaj == null) {\n\t\t\t\t\tSystem.out.println(\"\\tNema unetih glumaca.\");\n\t\t\t\t} else {\n\t\t\t\t\tGlumac tekuciGlumac = tekuciFilm.sadrzaj;\n\t\t\t\t\t\n\t\t\t\t\twhile (tekuciGlumac != null) {\n\t\t\t\t\t\tSystem.out.println(\"\\t\" + tekuciGlumac);\n\t\t\t\t\t\ttekuciGlumac = tekuciGlumac.veza;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttekuciFilm = tekuciFilm.veza;\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Spisak je prazan.\");\n\t\t}\n\t}",
"public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"public void falschesSpiel(SpielException e);",
"public Pont ertesit(Pont innenlep, Szereplo sz);",
"@SuppressWarnings(\"static-access\")\r\n\tpublic TreeMap<Integer, Double> versementSalaire() {\r\n\t\tTreeMap<Integer, Double> salaires = new TreeMap<Integer, Double>();\r\n\t\tIterator<Integer> iter = this.listeProfs.iterator();\r\n\t\twhile(iter.hasNext()){\r\n\t\t\tsalaires.put(iter.next(), this.SALAIRE);\r\n\t\t}\r\n\t\treturn salaires;\r\n\t}",
"public void afficheSolde() \r\n\t\t\t\t\t\t{ // d�but de la fonction\r\n\t\t\t\t\t\tSystem.out.println(\"Valeur du solde : \" + this.solde);\t\t\r\n\t\t\t\t\t\t}",
"private stendhal() {\n\t}",
"public void kaufen(BesitzrechtFeld feld) {\n try {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n System.out.println(\"Die kosten für: \" + feld.getFeldname() + \" (\" + feld.getFarbe() + \") betragen :\" + feld.getGrundstueckswert());\n System.out.println(\"Möchtest du kaufen? (ja/nein)\");\n String eingabe = br.readLine();\n if (eingabe.trim().toLowerCase().equals(\"status\")) {\n eingabe = meinStatus();\n\n }\n if (eingabe.trim().toLowerCase().equals(\"ja\")) {\n if (einzahlen(feld.getGrundstueckswert())) {\n feld.setGekauft(true);\n feld.setSpieler(this);\n felderInBesitz.add(feld);\n switch (feld.getFarbe()) {\n case \"braun\":\n braun.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + braun.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (braun.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(braun);\n break;\n }\n break;\n case \"hellblau\":\n hellblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + hellblau.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (hellblau.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(hellblau);\n break;\n }\n break;\n case \"pink\":\n pink.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + pink.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (pink.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(pink);\n break;\n }\n break;\n case \"orange\":\n orange.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + orange.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (orange.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(orange);\n break;\n }\n break;\n case \"rot\":\n rot.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + rot.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (rot.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(rot);\n break;\n }\n break;\n case \"gelb\":\n gelb.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + gelb.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (gelb.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(gelb);\n break;\n }\n break;\n case \"grün\":\n grün.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + grün.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (grün.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(grün);\n break;\n }\n break;\n case \"dunkelblau\":\n dunkelblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + dunkelblau.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (dunkelblau.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(dunkelblau);\n break;\n }\n break;\n case \"bahnhof\":\n bahnhoefe.add((Bahnhof) feld);\n System.out.println(\"Du hast den Bahnhof: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + bahnhoefe.size() + \" von 4 Bahnhöfen in deinem Besitz\");\n Bahnhof b = (Bahnhof) feld;\n b.mieteÄndernBahnhof(bahnhoefe);\n\n break;\n case \"werk\":\n werke.add(feld);\n System.out.println(\"Du hast das Werk: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + werke.size() + \" von 2 Werken in deinem Besitz\");\n break;\n default:\n System.out.println(\"Feld konnte keiner Farbe/Kategorie zugeordnet werden\");\n\n }\n\n }\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"protected ElementDoppeltVerkettet gehe(int anzahlSchritte) {\n\t\tElementDoppeltVerkettet aktuell = this;\n\t\tint aS = anzahlSchritte;\n\t\tif (aS < 0) {\n\t\t\twhile (aS < 0 && aktuell.zurück != null) {\n\t\t\t\taktuell = aktuell.zurück;\n\t\t\t\taS++;\n\t\t\t}\n\t\t} else {\n\t\t\twhile (aS > 0 && aktuell.vor != null) { aktuell = (ElementDoppeltVerkettet) aktuell.vor; aS--; }\n\t\t}\n\t\tif (aS == 0) {\n\t\t\treturn aktuell;\n\t\t} else {\n\t\t\tthrow new IndexOutOfBoundsException(\"Die Grenzen der Liste sollten überschritten werden\");\n\t\t}\n\t}",
"public String getSprache() {\n\t\treturn this.sprache;\n\t}",
"public Empfänger() {\t\t\t\t\t// std. Konstruktor\r\n\t\t}",
"private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}",
"private void stopPlaceingShips() {\n\t\tSystem.out.println(\"[DEBUG] Schiffe setzen [ENDE]\");\n\t\tthis.setzeSchiffe = false;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn this.getsTenkhoanquy() + \" : \" + this.fSotienconlai\n\t\t\t\t+ this.sLoaitiente;\n\t}",
"private Position findeNahrung(Position position)\n {\n List<Position> nachbarPositionen = \n feld.nachbarpositionen(position);\n Iterator<Position> iter = nachbarPositionen.iterator();\n while(iter.hasNext()) {\n Position pos = iter.next();\n Object tier = feld.gibObjektAn(pos);\n if(tier instanceof Hase) {\n Hase hase = (Hase) tier;\n if(hase.istLebendig()) { \n hase.sterben();\n futterLevel = HASEN_NAEHRWERT;\n return pos;\n }\n }\n }\n return null;\n }",
"public void setzeHintergrundgrafik( String pfad ) \n {\n ea.edu.FensterE.getFenster().hintergrundSetzen( new Bild(0,0,pfad) );\n }"
] | [
"0.66663414",
"0.65418535",
"0.6441946",
"0.6429189",
"0.63685924",
"0.6295595",
"0.6289002",
"0.624168",
"0.62308353",
"0.616385",
"0.6111535",
"0.6007392",
"0.59046763",
"0.588575",
"0.5856518",
"0.57251775",
"0.5695563",
"0.5663779",
"0.5662357",
"0.56214166",
"0.56212515",
"0.56209594",
"0.5620793",
"0.5579924",
"0.5528871",
"0.5443147",
"0.53666383",
"0.53509",
"0.53451604",
"0.534236",
"0.53215516",
"0.5318009",
"0.52958345",
"0.52935845",
"0.52874833",
"0.5272857",
"0.52366316",
"0.5229307",
"0.51813394",
"0.5181195",
"0.51809657",
"0.51657176",
"0.5155234",
"0.51360077",
"0.5128115",
"0.51268864",
"0.5125031",
"0.5120243",
"0.51165265",
"0.51109886",
"0.51042",
"0.510071",
"0.50962377",
"0.50961655",
"0.5094196",
"0.50915074",
"0.5091461",
"0.50871783",
"0.5086893",
"0.50828654",
"0.5081923",
"0.5075252",
"0.507092",
"0.5068956",
"0.50637156",
"0.50561345",
"0.50521016",
"0.5051215",
"0.5045525",
"0.5040928",
"0.5031825",
"0.5028894",
"0.5028038",
"0.5019737",
"0.5016998",
"0.5015629",
"0.50093746",
"0.50039876",
"0.5001227",
"0.50010335",
"0.499634",
"0.49961594",
"0.4992177",
"0.49909592",
"0.49844867",
"0.4979975",
"0.49791908",
"0.49722323",
"0.49712598",
"0.49702036",
"0.49682716",
"0.49671632",
"0.49659044",
"0.49635",
"0.49583936",
"0.49581113",
"0.4954649",
"0.49536303",
"0.495246",
"0.49487036",
"0.49476066"
] | 0.0 | -1 |
Testet, ob die Zelle an der Position (x,y) in der aktuellen Generation lebt. | boolean isCellAlive(int x, int y); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}",
"public PositionInTheGameBoard()\r\n\t{\r\n\t\tthis.X = new Random().nextInt(PositionInTheGameBoard.max_X);\r\n\t\tthis.Y = new Random().nextInt(PositionInTheGameBoard.max_Y);\r\n\t}",
"@Test\n public void testIsPositionValid() {\n assertFalse(this.board.isPositionValid(new Position(-1, -1)));\n assertFalse(this.board.isPositionValid(new Position(11, 11)));\n for (int line = 0; line < 11; line++) {\n for (int column = 0; column < 11; column++) {\n assertTrue(this.board.isPositionValid(new Position(line, column)));\n }\n }\n }",
"@Test\r\n public void testBoardPosition() {\r\n BoardPosition testBoardPosition = new BoardPosition(new Point(0, 0));\r\n assertEquals(testBoardPosition.getCoordinates().x, 0);\r\n assertEquals(testBoardPosition.getCoordinates().y, 0);\r\n //\tassertEquals(testBoardPosition.getImage(), ); <-- TODO\r\n }",
"void setPosition(){\n Random random =new Random();\n position = new Position(random.nextInt(maxrows),random.nextInt(maxcols));\n\n }",
"@Test\n public void testGetPosition() {\n assertEquals(r1.getPosition(), new Position2D(50, 75));\n assertEquals(r2.getPosition(), new Position2D(-50, 75));\n assertEquals(r3.getPosition(), new Position2D(50, -75));\n assertEquals(r4.getPosition(), new Position2D(-50, -75));\n }",
"@Test\n public void shouldBeAbleToCreatePiecePosition() {\n Assert.assertNotNull(position);\n }",
"@Test\n public void testGeneratePositionsFrom() {\n for (int line = 0; line < 11; line++) {\n for (int column = 0; column < 11; column++) {\n Position position = new Position(line, column);\n assertNotNull(this.board.generatePositionsFrom(position));\n }\n }\n }",
"@Test\n public void testPositionEquals(){\n assertEquals(Maze.position(0,0), Maze.position(0,0));\n assertThat(Maze.position(1, 0), not(Maze.position(0, 0)));\n assertThat(Maze.position(0,0), not(Maze.position(0,1)));\n }",
"public Coordinate generatePosition() {\n Random rng = new Random();\n return new Coordinate(rng.nextFloat(), rng.nextFloat());\n }",
"public void case4_Position() {\r\n Position testPosition = new Position(0,0);\r\n\r\n }",
"@Test\n public final void testNormalSetPositionStart() {\n int expResX = 2;\n int expResY = 3;\n int resultX = ship.getX();\n int resultY = ship.getY();\n assertEquals(expResX, resultX);\n assertEquals(expResY, resultY);\n // Ship s = new Ship(1, true, 4, 5);\n IShip s = createShip(1, true, 4, 5);\n expResX = 4;\n expResY = 5;\n resultX = s.getX();\n resultY = s.getY();\n assertEquals(expResX, resultX);\n assertEquals(expResY, resultY);\n }",
"Tile getPosition();",
"public void setPosicion(){\n ejeX = 0;\n ejeY = 0;\n }",
"@Test\n public void checkingForCorrectBlankIdPosition() {\n BoardManager boardManager = new BoardManager(3, 3);\n Tile tiles[][] = new Tile[Board.NUM_ROWS][Board.NUM_COLS];\n tiles[0][0] = new Tile(0);\n tiles[0][1] = new Tile(7);\n tiles[0][2] = new Tile(1);\n tiles[1][0] = new Tile(8);\n tiles[1][1] = new Tile(3);\n tiles[1][2] = new Tile(2);\n tiles[2][0] = new Tile(6);\n tiles[2][1] = new Tile(5);\n tiles[2][2] = new Tile(4);\n boardManager.getBoard().setTiles(tiles);\n assertEquals(2, boardManager.findXPosition());\n }",
"@Test\r\n\tpublic void testGetNewPosition() {\r\n\t\tBoard board = new Board(validSquareLocations); // board needs to have squares for this to be tested\r\n\t\tint actualNewPosition;\r\n\t\tactualNewPosition = board.getNewPosition(validCurrentPosition, validDieValue);\r\n\t\tassertEquals(actualNewPosition, expectedNewPosition);\r\n\t}",
"public int getX() { return position.x; }",
"public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}",
"private Position getTestPos1() {\r\n Grid grid = GridBuilder.builder()\r\n .withMaxX(10)\r\n .withMaxY(10)\r\n .withMinY(-20)\r\n .withMinY(-20)\r\n .build();\r\n Moveable moveable = MoveableBuilder.builder()\r\n .withGrid(grid)\r\n .withShape(PositionShapeBuilder.builder()\r\n .withPosition(Positions.of(Directions.S, 0, 0, 0))\r\n .build())\r\n .withVelocity(100)\r\n .build();\r\n moveable.moveForward();\r\n moveable.turnRight();\r\n moveable = MoveableBuilder.builder()\r\n .withGrid(grid)\r\n .withShape(PositionShapeBuilder.builder()\r\n .withPosition(moveable.getPosition())\r\n .build())\r\n .withVelocity(50)\r\n .build();\r\n moveable.moveForward();\r\n PositionImpl position = (PositionImpl) moveable.getPosition();\r\n moveable.makeTurn(position.calcAbsoluteAngle() - position.getDirection().getAngle());\r\n return moveable.getPosition();\r\n }",
"Object getPosition();",
"@Test\n public void testCondition1() throws ArgumentOutOfBoundsException\n {\n // Check that position is changed as expected:\n Double[] expected = {5.0, 5.0, 1.0};\n _renderable.position(expected);\n Double actual[] = _renderable.position();\n assertEquals(\"x coordinate did not get set,\", expected[0], actual[0], 0.01);\n assertEquals(\"y coordinate did not get set,\", expected[1], actual[1], 0.01);\n assertEquals(\"z coordinate did not get set,\", expected[2], actual[2], 0.01);\n }",
"private static Position fetchRandomPosition(){\n return new Position(0,0).returnRandomPosition();\n }",
"private void generateRandomPosition() {\r\n int indexX, indexY;\r\n boolean collidesWithPlayers;\r\n playerState.position.x = Integer.MIN_VALUE; // While we trying...\r\n playerState.position.y = Integer.MIN_VALUE;\r\n final ExtensiveMovingObject testObject = new ExtensiveMovingObject( 0.0f, 0.0f, 0.0f, 0.0f, GeneralConsts.WORM_WIDTH, GeneralConsts.WORM_HEIGHT );\r\n int positionGenerationTrialFailureCounter = 0;\r\n do {\r\n do {\r\n indexX = 1 + (int) ( Math.random() * ( map.getWidth () - 1 ) );\r\n indexY = 1 + (int) ( Math.random() * ( map.getHeight() - 1 ) );\r\n if ( positionGenerationTrialFailureCounter++ == MAX_POSITION_GENERATION_TRIAL_FAILURE_COUNT )\r\n if ( map.getWall( indexX, indexY ) == Map.WALL_STONE )\r\n map.setWall( indexX, indexY, Map.WALL_BRICK ); // Not to empty: it can be under water!!\r\n } while( map.getWall( indexX, indexY ) == Map.WALL_STONE ); // Stone can't be cleared: it can be part of swimming pool boundaries. (But if there isn't other places where to start, we clear it!)\r\n testObject.position.x = ( indexX << GeneralConsts.WALL_WIDTH_SHIFT ) + GeneralConsts.WALL_WIDTH / 2;\r\n testObject.position.y = ( indexY << GeneralConsts.WALL_HEIGHT_SHIFT ) + GeneralConsts.WALL_HEIGHT / 2;\r\n collidesWithPlayers = false;\r\n for ( int playerIndex = 0; playerIndex < players.length && !collidesWithPlayers; playerIndex++ )\r\n if ( playerIndex != ownIndex && players[ playerIndex ] != null && testObject.hitsExtensiveObject( players[ playerIndex ].playerState ) )\r\n collidesWithPlayers = true;\r\n try {\r\n Thread.sleep( 0, 100 );\r\n }\r\n catch( InterruptedException ie ) {\r\n }\r\n } while ( collidesWithPlayers );\r\n playerState.position.x = testObject.position.x;\r\n playerState.position.y = testObject.position.y;\r\n map.clearMapForEnteringPlayer( indexX, indexY );\r\n }",
"public int getX(){ return xPosition; }",
"@Test\n void initPosition() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.initPlayer();\n\n assertTrue(p.getPh().getPowerupDeck().getSize() == 2);\n\n Powerup pu = p.getPh().getPowerupDeck().getPowerups().get(0);\n p.initPosition(p.getPh().getPowerupDeck().getPowerups().get(0).getName(), p.getPh().getPowerupDeck().getPowerups().get(0).getColor() );\n\n assertTrue(p.getPh().getPowerupDeck().getSize() == 1 && Board.getSpawnpoint(p.getPlayerPosition().getNum()).getColor() == pu.getColor());\n }",
"public void setCoords() \r\n {\r\n \tthis.coordX = rand.nextInt(10);\r\n \tthis.coordY = rand.nextInt(10);\r\n }",
"public void newCoord() {\n\t\tx = Data.generateRandomX();\n\t\ty = Data.generateRandomY();\n\t}",
"Position createPosition();",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}",
"posXY(int x, int y){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"@Override\n public Position getPosition() {\n return new Position(this.x, this.y);\n }",
"private void posicionInicial(int ancho){\r\n posicionX = ancho;\r\n Random aleatroio = new Random();\r\n int desplazamiento = aleatroio.nextInt(150)+100;\r\n \r\n \r\n cazaTie = new Rectangle2D.Double(posicionX, desplazamiento, anchoEnemigo, alturaEnemigo);\r\n }",
"private void initPosition() {\r\n while (true) {\r\n int x = RandomUtil.nextInt(boardLength);\r\n int y = RandomUtil.nextInt(boardLength);\r\n if (board.isSimple(x, y)) {\r\n heroTeam.setPosition(x, y);\r\n board.setTeamPosition(x, y);\r\n break;\r\n }\r\n }\r\n }",
"@Test\n\tpublic void testCoordinatesOfAPieceNoLongerInGame()\n\t{\n\t\tData d = new Data();\n\t\td.set(1, -1); // set the first white piece to be no longer in play \n\t\tCoordinate c = d.getCoordinate(1);\n\t\t\n\t\tassertNull(c);\t\n\t}",
"public static Point pos(){\r\n\t\tRandom random = new Random();\r\n\t\tint x = 0;\r\n\t\tint y = 0;\r\n\t\t//acts as a 4 sided coin flip\r\n\t\t//this is to decide which side the asteroid will appear\r\n\t\tint pos = random.nextInt(4);\r\n\t\t//west\r\n\t\tif(pos == 0){\r\n\t\t\tx = 0;\r\n\t\t\ty = random.nextInt(601);\r\n\t\t}\r\n\t\t//north\r\n\t\telse if(pos == 1){\r\n\t\t\tx = random.nextInt(801);\r\n\t\t\ty = 0;\r\n\t\t}\r\n\t\t//east\r\n\t\telse if(pos == 2){\r\n\t\t\tx = 800;\r\n\t\t\ty = random.nextInt(601);\r\n\t\t}\r\n\t\t//\r\n\t\telse if(pos == 3){\r\n\t\t\tx = random.nextInt(801);\r\n\t\t\ty = 600;\r\n\t\t}\r\n\t\tPoint p = new Point(x,y);\r\n\t\treturn p;\r\n\t}",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"@Test(expected = IllegalArgumentException.class)\r\n public void case1_Position() {\r\n Position testPosition = new Position(-1, -2);\r\n\r\n }",
"@Test\n public void testDoorPosition() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n assertEquals(new Position((TerrainFactoryImpl.TERRAIN_COLUMNS - 2) * TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n (TerrainFactoryImpl.TERRAIN_ROWS - 2) * TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE),\n TerrainFactoryImpl.DOOR_POSITION);\n level.levelUp(); \n });\n }",
"Vaisseau_positionner createVaisseau_positionner();",
"Position getPosition();",
"Position getPosition();",
"@Test\n public void testPosition(){\n pos = Maze.position(25, 28);\n assertEquals(Maze.Position.class, pos.getClass());\n assertEquals(pos, Maze.position(25, 28));\n }",
"Position_abscisse createPosition_abscisse();",
"@Test\n\t\tpublic void canGiveMinotaurLocation() {\n\t\t\tPoint whereMinotaur = new Pointer(1,3);\n\t\t\tgameLoader.addMinotaur(whereMinotaur);\n\t\t\tPoint expected = whereMinotaur;\n\t\t\tPoint actual = gameSaver.wheresMinotaur();\n\t\t\t\n\t\t\tassertEquals(expected.across(), actual.across());\n\t\t\tassertEquals(expected.down(), actual.down());\n\t\t}",
"int getPosition();",
"private Vector2d generateNewPositionForChild()\n {\n\n Random generator = new Random();\n List<Vector2d> freePositions = new LinkedList<>(); //tutaj przechowywane sa wolne pozycje wokol\n Vector2d position;\n Directions directionToAdd;\n\n for(int i = 0; i<8; i++)\n {\n directionToAdd = new Directions(i); //wykorzystujemy klase directions do generowania pozycji wokol\n position = this.position.add(directionToAdd.move());\n if(map.animalsAt(position).isEmpty())\n {\n freePositions.add(position);\n }\n }\n\n if(freePositions.isEmpty()) //jezeli nie ma wolnych pozycji\n {\n //jesli nie ma wolnych pozycji\n int x = generator.nextInt(8);\n directionToAdd = new Directions(x);\n return this.position.add(directionToAdd.move());\n }\n\n //jezeli mamy wolne pozycje to generujemy dowolna z listy\n int x = generator.nextInt(freePositions.size());\n Vector2d newPosition = freePositions.get(x);\n\n return newPosition;\n }",
"Position getNewPosition();",
"PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }",
"private void setUpStartPosition()\n {\n \tthis.xPos = startTile.xPos;\n this.yPos = startTile.yPos - startTile.tileHeight;\n yPos--;\n \n System.out.println(\"Player is on level \" + level + \n \" at position x: \" + xPos + \", y: \" + yPos); \n }",
"public Position randposition()\r\n\t{\n\t\tRandom random = new Random();\r\n\t\tPosition position = new Position(random.nextInt(7680), random.nextInt(4320), random.nextDouble());\r\n\t\treturn position;\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\r\n public void case2_Position() {\r\n Position testPosition = new Position(6, 7);\r\n\r\n }",
"public Position() {\n xCoord = 0;\n yCoord = 0;\n zCoord = 0;\n }",
"@Override\n public void relocatedWithinBounds() {\n x = random.nextInt(maxX - width);\n y = random.nextInt(maxY - height);\n }",
"public abstract int ranXPos();",
"public Coordinate getPosition();",
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"@Test\n public void testAroundPlayerPositions() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n final List<Position> safePosition = new ArrayList<>();\n safePosition.add(TerrainFactoryImpl.PLAYER_POSITION);\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.PLAYER_POSITION.getY()));\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX(), \n TerrainFactoryImpl.PLAYER_POSITION.getY() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE));\n /*use assertFalse because they have already been removed*/\n assertFalse(terrain.getFreeTiles().stream().map(i -> i.getPosition()).collect(Collectors.toList()).containsAll(safePosition));\n level.levelUp();\n });\n }",
"@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}",
"public Position position();",
"public abstract boolean actualPlace(int row, int col);",
"public Coordinate() { row = col = -1; }",
"public void test1(){\r\n\t\tZug zug1 = st.zugErstellen(3, 2, \"Zug 1\");\r\n\t\tst.blockFahren();\r\n\t\tst.blockFahren();\r\n\t\tZug zug2 = st.zugErstellen(2, 3, \"Zug 2\");\r\n\t\tg.textAusgeben(\"Position Zug1: \"+zug1.getPosition()+\"\\n\"+\"Position Zug2: \"+zug2.getPosition());\r\n\t\tst.fahren();\r\n\t}",
"public int getY(){ return yPosition; }",
"public void setInitialPosition()\n {\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.a2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.b2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.c2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.d2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.e2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.f2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.g2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.h2);\n //Se colocan los peones negros en la séptima fila\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.a7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.b7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.c7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.d7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.e7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.f7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.g7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.h7);\n //Se colocan las torres blancas en a1 y h1\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.a1);\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.h1);\n //Se colocan las torres negras en a8 y h9\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.a8);\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.h8);\n //Se colocan los caballos blancos en b1 y g1\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.b1);\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.g1);\n //Se colocan los caballos negros en b8 y g8\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.b8);\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.g8);\n //Se colocan los alfiles blancos en c1 y f1\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.c1);\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.f1);\n //Se colocan los alfiles negros en c8 y f8\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.c8);\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.f8);\n //Se coloca la dama blanca en d1\n putGenericPiece(GenericPiece.QUEEN,Colour.WHITE,Square.d1);\n //Se coloca la dama negra en d8\n putGenericPiece(GenericPiece.QUEEN,Colour.BLACK,Square.d8);\n //Se coloca el rey blanco en e1\n putGenericPiece(GenericPiece.KING,Colour.WHITE,Square.e1);\n //Se coloca el rey negro en e8\n putGenericPiece(GenericPiece.KING,Colour.BLACK,Square.e8);\n \n //Se permiten los enroques para ambos jugadores\n setCastlingShort(Colour.WHITE,true);\n setCastlingShort(Colour.BLACK,true);\n setCastlingLong(Colour.WHITE,true);\n setCastlingLong(Colour.BLACK,true);\n \n //Se da el turno a las blancas\n setTurn(Colour.WHITE);\n \n gamePositionsHash.clear();\n gamePositionsHash.put(zobristKey.getKey(), 1);\n }",
"public Titik(){\r\n this.x = 0;\r\n this.y = 0;\r\n }",
"@Test\n\tpublic void notEntityAtAGridPostionTest() {\n\t\tAssert.assertTrue(gridSystem.getInPosition(5,5).isEmpty());\n\t}",
"public void resetCoordinates(){\n pos=0;\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE;}\n else{\n this.coordinates[0]=0;}\n if(this.pIndex%3==0){\n this.coordinates[1]=0;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE;} \n }",
"@Override\n public void setPosition(float x, float y) {\n }",
"public void generateRandomPosition(Zone samusZone) {\n\t\t\n\t\tint i = samusZone.getI(), j = samusZone.getJ();\n\t\twhile(i == samusZone.getI() && j == samusZone.getJ()) {\n\t\t\ti = ThreadLocalRandom.current().nextInt(1, 12 + 1);\n\t\t\tj = ThreadLocalRandom.current().nextInt(1, 12 + 1);\n\t\t}\n\t\t\n\t\tsamusZone.getSamus().setI(i);\n\t\tsamusZone.getSamus().setJ(j);\n\t}",
"boolean hasPosition();",
"boolean hasPosition();",
"boolean hasPosition();",
"boolean hasPosition();",
"@Test\n\tpublic void test() {\n\t\tif(D.getPosition()>2 || D.getPosition()<0)\n\t\t{\n\t\t\tfail(\"La position est hors categorie\");\n\t\t}\n\t}",
"@Override\n public int getPosition() {\n return position;\n }",
"@Test\n\tpublic void testIfCoordinatesAreValid()\n\t{\n\t\tData d = new Data();\n\t\tCoordinate c = d.getCoordinate(0); // at index 0 is the king's default location (5, 5)\n\t\tassertEquals(c.getX(), 5);\n\t\tassertEquals(c.getY(), 5);\t\n\t}",
"Point getPosition();",
"Point getPosition();",
"@Test\r\n\tpublic void testLocation() {\r\n\t\tLocation l = new Location(3, 3);\r\n\t\tassertEquals(l.getCol(), 3);\r\n\t\tassertEquals(l.getRow(), 3);\r\n\t}",
"public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}",
"@Test\n public void setGetPosition() {\n final CourseType courseType = new CourseType();\n final Integer POSITION = 5;\n courseType.setPosition(POSITION);\n\n assertSame(POSITION, courseType.getPosition());\n }",
"public void testMovToPos() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n assertTrue(test1.moveToPos(5));\n assertTrue(test1.getValue().inRange(5));\n assertFalse(test1.moveToPos(-5));\n assertFalse(test1.getValue().inRange(-5));\n assertFalse(test1.moveToPos(50));\n assertFalse(test1.getValue().inRange(50));\n }",
"@RepeatedTest(10)\n @Test\n void afterUseMethod_setFly_AmmoShouldChange_nX_nY () {\n double x = ammo.getnX();\n double y = ammo.getnY();\n Point target = unit.getLookTarget().getPosition();\n target.setLocation(new Point(1000,1000));\n\n //when\n ammo.setFly();\n\n //then\n assertThat(ammo.getnX(),not(x));\n assertThat(ammo.getnY(),not(y));\n }",
"@Test\n public void testNotPositionInstanceEquals(){\n Pillar p = new Pillar(0,0);\n assertFalse(Maze.position(0,0).equals(p));\n }",
"public Position sampleRandomUniformPosition();",
"public void testPosition() {\n System.out.println(\"position\");\n BufferedCharSequence instance = null;\n int expResult = 0;\n int result = instance.position();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public int getPos();",
"public int getPos();",
"@Test\n public void testCheckStartAndGoalPosition()throws Exception{\n GenerateLevel generateLevel = new GenerateLevel(20,\n \"XmlFiles/missingStartGoalPos.xml\");\n generateLevel.loadLevel(1);\n assertFalse(generateLevel.checkStartAndGoalPosition());\n }",
"@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}",
"Position_Position createPosition_Position();",
"private void createPosition() {\n\n switch (new Random().nextInt(4)) {\n\n case 0:\n sendString = enemyPositionX.nextInt(Window.WIDTH) + \":-90\";\n break;\n\n case 1:\n sendString = enemyPositionX.nextInt(Window.WIDTH) + \":\" + (Window.HEIGHT + 90);\n break;\n\n case 2:\n sendString = \"-90:\" + enemyPositionY.nextInt(Window.HEIGHT);\n break;\n\n case 3:\n sendString = (Window.WIDTH + 90) + \":\" + enemyPositionY.nextInt(Window.HEIGHT);\n break;\n }\n sendString += \":\" + new Random().nextInt(4);\n sendString += \":\" + new Random().nextInt(2);\n }",
"public Position(int p_X, int p_Y)\n {\n this.x = p_X;\n this.y = p_Y;\n }",
"@Test\n public void testSetLocation_Coordinates() {\n System.out.println(\"setLocation\");\n Coordinates newLocation = new Coordinates(100,100);\n Enemy instance = new SuperEnemy(new Coordinates(220,220));\n instance.setLocation(newLocation);\n Coordinates expResult = new Coordinates(100, 100);\n Coordinates result = instance.getLocation();\n assertEqualsC(expResult,result);\n }",
"@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}",
"@Test\n public void testNullPositionEquals(){\n assertFalse(Maze.position(0,0).equals(null));\n }",
"@Test\r\n\tpublic void testGetPositionX(){\n\t\tWinnerTitle title = new WinnerTitle(1, 0, 0);\r\n\t\ttitle.setPositionX(10);\r\n\t\t\r\n\t\tassertEquals(10, title.getPositionX());\r\n\t}",
"@Test\n\tpublic void testSetPositionWithoutUpdate() {\n\t}",
"@Test\n public void testCondition3() throws ArgumentOutOfBoundsException\n {\n Double[] coordinates = null;\n Double before[] = _renderable.position();\n _renderable.position(coordinates);\n Double after[] = _renderable.position();\n assertEquals(\"position array changed\", before[0], after[0], 0.01);\n assertEquals(\"position array changed\", before[1], after[1], 0.01);\n assertEquals(\"position array changed\", before[2], after[2], 0.01);\n }",
"public void posiziona_bersaglio() {\n do{\n int r = (int) (Math.random() * POSIZIONI_RANDOM);\n bersaglio_x = ((r * DIMENSIONE_PUNTO));\n }while(bersaglio_x<102 || bersaglio_x>LARGHEZZA);\n do{\n int r = (int) (Math.random() * POSIZIONI_RANDOM);\n bersaglio_y = ((r * DIMENSIONE_PUNTO));\n }while(bersaglio_y<102 || bersaglio_y>ALTEZZA);\n //System.out.println (\"x : \"+bersaglio_x+\" y : \"+bersaglio_y);\n }"
] | [
"0.70670575",
"0.69457114",
"0.6870028",
"0.6817717",
"0.6791918",
"0.6788906",
"0.6788175",
"0.6762181",
"0.6607984",
"0.6603622",
"0.659369",
"0.6568655",
"0.65456384",
"0.6538011",
"0.6480627",
"0.6437156",
"0.6433372",
"0.6423876",
"0.64072555",
"0.63860834",
"0.63724387",
"0.6371341",
"0.6368702",
"0.6345763",
"0.63341385",
"0.6320705",
"0.6316978",
"0.63091165",
"0.63001305",
"0.6296412",
"0.62882257",
"0.62756914",
"0.6242516",
"0.6231051",
"0.62166953",
"0.6211227",
"0.6202122",
"0.6191077",
"0.6174217",
"0.6172001",
"0.6160669",
"0.6160669",
"0.6154409",
"0.6154356",
"0.6142151",
"0.61417735",
"0.61395836",
"0.6138652",
"0.6130597",
"0.61206615",
"0.6120177",
"0.611294",
"0.6108124",
"0.61044127",
"0.60985917",
"0.6098507",
"0.6092241",
"0.6091098",
"0.60840803",
"0.608238",
"0.6076319",
"0.6076231",
"0.6072997",
"0.6054607",
"0.60479456",
"0.6042399",
"0.60417163",
"0.6028742",
"0.60239375",
"0.6023412",
"0.60192114",
"0.60192114",
"0.60192114",
"0.60192114",
"0.6015289",
"0.6014952",
"0.60106367",
"0.6008156",
"0.6008156",
"0.60041773",
"0.6001972",
"0.5997454",
"0.5996548",
"0.5981932",
"0.59813726",
"0.5975764",
"0.5970999",
"0.5970998",
"0.5970998",
"0.5968318",
"0.5968014",
"0.5966231",
"0.5961777",
"0.5961638",
"0.59504163",
"0.59502226",
"0.5949671",
"0.5947275",
"0.5947174",
"0.5939713",
"0.5939666"
] | 0.0 | -1 |
copy the resources files to a temp folder | @Before
public void setUp() throws Exception {
testRootDir = new File(System.getProperty("java.io.tmpdir") + "/Zeppelin_Test_" + System.currentTimeMillis());
testRootDir.mkdirs();
LOGGER.info("Create tmp directory: {} as root folder of ZEPPELIN_INTERPRETER_DIR & ZEPPELIN_CONF_DIR", testRootDir.getAbsolutePath());
interpreterDir = new File(testRootDir, "interpreter");
confDir = new File(testRootDir, "conf");
notebookDir = new File(testRootDir, "notebook");
interpreterDir.mkdirs();
confDir.mkdirs();
notebookDir.mkdirs();
FileUtils.copyDirectory(new File("src/test/resources/interpreter"), interpreterDir);
FileUtils.copyDirectory(new File("src/test/resources/conf"), confDir);
System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_CONF_DIR.getVarName(), confDir.getAbsolutePath());
System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_DIR.getVarName(), interpreterDir.getAbsolutePath());
System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_NOTEBOOK_DIR.getVarName(), notebookDir.getAbsolutePath());
System.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_REMOTE_RUNNER.getVarName(), INTERPRETER_SCRIPT);
conf = new ZeppelinConfiguration();
interpreterSettingManager = new InterpreterSettingManager(conf,
mock(AngularObjectRegistryListener.class), mock(RemoteInterpreterProcessListener.class), mock(ApplicationEventListener.class));
interpreterFactory = new InterpreterFactory(interpreterSettingManager);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void copyResources(\n final List<String> resources, final String dir, final BlockingStorage bsto\n ) throws IOException {\n for (final String res : resources) {\n final Path tmp = Files.createTempFile(\n Path.of(res).getFileName().toString(), \".tmp\"\n );\n new JavaResource(String.format(\"example/%s/%s\", dir, res)).copy(tmp);\n bsto.save(new Key.From(res), Files.readAllBytes(tmp));\n Files.delete(tmp);\n }\n }",
"private void copyFiles() {\n if( !USE_EXTERNAL_FILES_DIR ) return;\n boolean ret = mFileUtil.copyFilesAssetToExternalFilesDir( FILE_EXT );\n if(ret) {\n showList();\n showToast(\"copy successful\");\n } else {\n showToast(\"copy faild\");\n }\n}",
"private void executeCopyFiles( final File folderResources, final File folderJava, final File targetJavaAppStub,\n final File jarWithDependsSource )\n throws MojoExecutionException\n {\n this.logger.info( \"Copying files ...\" );\n\n final File jarWithDependsTarget = new File( folderJava, jarWithDependsSource.getName() );\n\n if ( JAVA_APP_STUB.exists() == false )\n {\n throw new MojoExecutionException( \"Could not find Java Application stub at: \"\n + JAVA_APP_STUB.getAbsolutePath() );\n }\n\n copyFile( JAVA_APP_STUB, targetJavaAppStub );\n copyFile( jarWithDependsSource, jarWithDependsTarget );\n\n if ( this.data.getAppIcon() != null )\n {\n copyFile( this.data.getAppIcon(), new File( folderResources, this.data.getAppIcon().getName() ) );\n }\n\n if ( this.data.getAdditionalResources() != null )\n {\n for ( int i = 0, n = this.data.getAdditionalResources().size(); i < n; i++ )\n {\n final String rsrc = (String) this.data.getAdditionalResources().get( i );\n\n final File source = new File( this.data.getBaseDirectory(), rsrc );\n final File target = new File( folderResources, source.getName() );\n\n copyFile( source, target );\n }\n }\n }",
"@Test\n public void testCopyToTempDir() throws IOException {\n File fileA = null;\n\n try {\n fileA = File.createTempFile(\"fileA\", \"fileA\");\n System.out.println(fileA.getAbsolutePath());\n FileOutputStream fos = new FileOutputStream(fileA);\n InputStream sis = new StringInputStream(\"some content\");\n StreamUtil.copy(sis, fos);\n sis.close();\n fos.close();\n\n copyToTempDir(fileA);\n\n File fileACopy = new File(new File(getTempDirPath()), fileA.getName());\n assertTrue(fileACopy.exists());\n assertTrue(fileACopy.isFile());\n } finally {\n boolean deleted = fileA.delete();\n assertTrue(deleted);\n }\n\n File dirB = null;\n\n try {\n dirB = Files.createTempDirectory(\"dirB\").toFile();\n System.out.println(dirB.getAbsolutePath());\n\n copyToTempDir(dirB);\n\n File dirBCopy = new File(new File(getTempDirPath()), dirB.getName());\n assertTrue(dirBCopy.exists());\n assertTrue(dirBCopy.isDirectory());\n } finally {\n boolean deleted = dirB.delete();\n assertTrue(deleted);\n }\n }",
"private void copyHadoopTmpDir() {\n final String tmpDirProperty =\n PluginMiniHBaseClusterSingleton.INSTANCE.getClusterConfiguration().get(\"hadoop.tmp.dir\");\n final File hadoopTmp = new File(tmpDirProperty);\n final File hadoopTmpCopy = new File(new File(_projectBuildDir), \"hadoop-tmp\");\n getLog().info(\"Copying \" + hadoopTmp.toString() + \" to \" + hadoopTmpCopy.toString());\n try {\n FileUtils.copyDirectory(hadoopTmp, hadoopTmpCopy);\n getLog().info(\"Successfully copied hadoop tmp dir.\");\n }\n catch (final IOException e) {\n getLog().warn(\"The Hadoop tmp dir could not be copied to the project's build directory.\", e);\n }\n }",
"private File copyResources(String srcFileName, File sourceDir, File destinationDir) throws MojoExecutionException {\n File srcFile = new File(sourceDir.getAbsolutePath()+File.separator+srcFileName);\n if (srcFile.exists()) {\n getLog().info(\"Copying \"+srcFile.getName()+\"...\");\n try {\n File destFile = new File(destinationDir.getAbsolutePath()+File.separator+srcFile.getName());\n if (srcFile.isDirectory()) {\n FileUtils.copyDirectory(srcFile, destFile, false);\n } else {\n FileUtils.copyFile(srcFile, destFile, false);\n }\n return destFile;\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying resource '\"+srcFile.getName()+\"'\", ex);\n }\n } else {\n getLog().warn(\"No source file '\"+srcFile.getName()+\"' to copy\");\n return null;\n }\n }",
"public static synchronized void initializeArchiveFiles() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initializeArchiveFiles\");\n File sourceFile = new File(System.getProperty(USER_DIR) + File.separator + \"QVCSEnterpriseServer.kbwb\");\n String firstDestinationDirName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n File firstDestinationDirectory = new File(firstDestinationDirName);\n firstDestinationDirectory.mkdirs();\n File firstDestinationFile = new File(firstDestinationDirName + File.separator + \"QVCSEnterpriseServer.kbwb\");\n\n String secondDestinationDirName = firstDestinationDirName + File.separator + SUBPROJECT_DIR_NAME;\n File secondDestinationDirectory = new File(secondDestinationDirName);\n secondDestinationDirectory.mkdirs();\n File secondDestinationFile = new File(secondDestinationDirName + File.separator + \"QVCSEnterpriseServer.kbwb\");\n\n String thirdDestinationDirName = secondDestinationDirName + File.separator + SUBPROJECT2_DIR_NAME;\n File thirdDestinationDirectory = new File(thirdDestinationDirName);\n thirdDestinationDirectory.mkdirs();\n File thirdDestinationFile = new File(thirdDestinationDirName + File.separator + \"ThirdDirectoryFile.kbwb\");\n\n File fourthDestinationFile = new File(firstDestinationDirName + File.separator + \"Server.kbwb\");\n File fifthDestinationFile = new File(firstDestinationDirName + File.separator + \"AnotherServer.kbwb\");\n File sixthDestinationFile = new File(firstDestinationDirName + File.separator + \"ServerB.kbwb\");\n File seventhDestinationFile = new File(firstDestinationDirName + File.separator + \"ServerC.kbwb\");\n try {\n ServerUtility.copyFile(sourceFile, firstDestinationFile);\n ServerUtility.copyFile(sourceFile, secondDestinationFile);\n ServerUtility.copyFile(sourceFile, thirdDestinationFile);\n ServerUtility.copyFile(sourceFile, fourthDestinationFile);\n ServerUtility.copyFile(sourceFile, fifthDestinationFile);\n ServerUtility.copyFile(sourceFile, sixthDestinationFile);\n ServerUtility.copyFile(sourceFile, seventhDestinationFile);\n } catch (IOException ex) {\n Logger.getLogger(TestHelper.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private List<String> copyResources(File targetDirectory, List<FileSet> fileSets) throws MojoExecutionException {\n ArrayList<String> addedFiles = new ArrayList<String>();\n for (FileSet fileSet : fileSets) {\n // Get the absolute base directory for the FileSet\n File sourceDirectory = new File(fileSet.getDirectory());\n\n if (!sourceDirectory.isAbsolute()) {\n sourceDirectory = new File(project.getBasedir(), sourceDirectory.getPath());\n }\n\n if (!sourceDirectory.exists()) {\n // If the requested directory does not exist, log it and carry on\n getLog().warn(\"Specified source directory \" + sourceDirectory.getPath() + \" does not exist.\");\n continue;\n }\n\n List<String> includedFiles = scanFileSet(sourceDirectory, fileSet);\n addedFiles.addAll(includedFiles);\n\n getLog().info(\"Copying \" + includedFiles.size() + \" additional resource\" + (includedFiles.size() > 1 ? \"s\" : \"\"));\n\n for (String destination : includedFiles) {\n File source = new File(sourceDirectory, destination);\n File destinationFile = new File(targetDirectory, destination);\n\n // Make sure that the directory we are copying into exists\n destinationFile.getParentFile().mkdirs();\n\n try {\n FileUtils.copyFile(source, destinationFile);\n destinationFile.setExecutable(fileSet.isExecutable(),false);\n\n } catch (IOException e) {\n throw new MojoExecutionException(\"Error copying additional resource \" + source, e);\n }\n }\n }\n return addedFiles;\n }",
"private File extractResources() {\r\n\t\tif (org.opensourcephysics.display.OSPRuntime.appletMode)\r\n\t\t\treturn null;\r\n\t\tFile descTempDirectory = new File(getTemporaryDir() + \"DescriptionPages/\");\r\n\t\tif (!descTempDirectory.exists()) {\r\n\t\t\tif (!descTempDirectory.mkdirs()) {\r\n\t\t\t\tSystem.err.println(\r\n\t\t\t\t\t\t\"DescriptionPages : Could not create directory : \" + descTempDirectory.getAbsolutePath());\r\n\t\t\t\tJOptionPane.showMessageDialog(openPageButton, Memory.getResource(\"DescriptionPages.CannotExtractFiles\"),\r\n\t\t\t\t\t\tMemory.getResource(\"Error\"), JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// System.err.println (\"Extracting description pages to folder :\r\n\t\t// \"+descTempDirectory.getAbsolutePath());\r\n\t\tfor (String filename : model._getClassEjsResources()) {\r\n\t\t\tif (extractToDirectory(filename, descTempDirectory, false) == null)\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t\textractToDirectory(\"/_ejs_library/css/ejss.css\", descTempDirectory, false); // New in %.3Failure to do this does\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// not invalidate the process\r\n\t\treturn descTempDirectory;\r\n\t}",
"@Test(groups = \"Integration\")\n public void testCopyFileTo() throws Exception {\n File dest = Os.newTempFile(getClass(), \".dest.tmp\");\n File src = Os.newTempFile(getClass(), \".src.tmp\");\n try {\n Files.write(\"abc\", src, Charsets.UTF_8);\n host.copyTo(src, dest);\n assertEquals(\"abc\", Files.readFirstLine(dest, Charsets.UTF_8));\n } finally {\n src.delete();\n dest.delete();\n }\n }",
"public void extractResources(final Collection<Resource> files, final File destinationDir) throws IOException {\n for (String file : CONTROL_RESOURCES) {\n final String path = String.format(\"/control/%s\", file);\n final URL resource = DropwizardMojo.class.getResource(path);\n if (resource != null) {\n final ByteSource source = Resources.asByteSource(resource);\n final File target = new File(destinationDir, path);\n extractResource(source, target, true);\n }\n }\n\n // Extract/filter passed in files\n for (Resource resource : files) {\n final String path = String.format(\"/files/%s\", resource.getTarget());\n final ByteSource source = resource.getSource();\n final File target = new File(destinationDir, path);\n extractResource(source, target, resource.isFilter());\n }\n }",
"private void copyExampleWorkouts() {\n\t\ttry {\n\t\t\tString[] exampleWorkouts = mContext.getAssets().list(\n\t\t\t\t\tIDataProvider.EXAMPLE_WORKOUT_FOLDER);\n\t\t\tfor (String file : exampleWorkouts) {\n\t\t\t\tInputStream in = null;\n\t\t\t\tOutputStream out = null;\n\t\t\t\ttry {\n\t\t\t\t\tin = mContext.getAssets().open(IDataProvider.EXAMPLE_WORKOUT_FOLDER + \"/\" + file);\n\t\t\t\t\tout = new FileOutputStream(mContext.getFilesDir().toString() + \"/\" + file);\n\n\t\t\t\t\t// copy file\n\t\t\t\t\tbyte[] buffer = new byte[1024];\n\t\t\t\t\tint read;\n\t\t\t\t\twhile ((read = in.read(buffer)) != -1) {\n\t\t\t\t\t\tout.write(buffer, 0, read);\n\t\t\t\t\t}\n\n\t\t\t\t\tin.close();\n\t\t\t\t\tin = null;\n\t\t\t\t\tout.flush();\n\t\t\t\t\tout.close();\n\t\t\t\t\tout = null;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.e(\"tag\", \"Failed to copy asset file: \" + file, e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tLog.e(TAG, \"Copying example workouts failed\", e);\n\t\t}\n\t}",
"private void copyComponents(IProgressMonitor monitor, File tmpWarDir, final File targetLibDir) throws ExportException\n\t{\n\t\ttry\n\t\t{\n\t\t\tComponentResourcesExporter.copyDefaultComponentsAndServices(tmpWarDir, exportModel.getExcludedComponentPackages(),\n\t\t\t\texportModel.getExcludedServicePackages());\n\n\t\t\tStringBuilder componentLocations = new StringBuilder();\n\t\t\tcomponentLocations.append(ComponentResourcesExporter.getComponentDirectoryNames(exportModel.getExcludedComponentPackages()));\n\t\t\tcomponentLocations.append(copyUserDefinedComponents(tmpWarDir, exportModel.getExcludedComponentPackages(), monitor));\n\t\t\tcreateSpecLocationsPropertiesFile(new File(tmpWarDir, \"WEB-INF/components.properties\"), componentLocations.toString());\n\n\t\t\tStringBuilder servicesLocations = new StringBuilder();\n\t\t\tservicesLocations.append(ComponentResourcesExporter.getServicesDirectoryNames(exportModel.getExcludedServicePackages()));\n\t\t\tservicesLocations.append(copyUserDefinedServices(tmpWarDir, exportModel.getExcludedServicePackages(), monitor));\n\t\t\tcreateSpecLocationsPropertiesFile(new File(tmpWarDir, \"WEB-INF/services.properties\"), servicesLocations.toString());\n\t\t\tcopyNGLibs(targetLibDir);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tthrow new ExportException(\"Could not copy the components\", e);\n\t\t}\n\t}",
"public void copyAssets(String dist) {\n copyFile(dist, \"pointer.png\");\n copyFile(dist, \"WebElementRecorder.js\");\n }",
"public static File CreateTempFile(String fileName, String resourcePath) throws IOException {\n \n /*if (tempDirectoryPath == null) {\n tempDirectoryPath = Files.createTempDirectory(null);\n System.getSecurityManager().checkDelete(tempDirectoryPath.toFile().toString());\n System.out.println(\"Temp path: \" + tempDirectoryPath);\n System.out.println(\"Temp path: \" + tempDirectoryPath.toString());\n System.out.println(\"Temp path: \" + tempDirectoryPath.toFile().toString());\n }*/\n \n File tempFile = null;\n InputStream input = null;\n OutputStream output = null;\n \n try {\n // Create temporary file\n //tempFile = File.createTempFile(tempDirectoryPath.getFileName() + File.separator + fileName , null);\n //System.out.println(\"Temp file: \" + tempFile);\n tempFile = File.createTempFile(filePrefix + fileName , null);\n tempFile.setReadable(false , false);\n tempFile.setReadable(true , true);\n tempFile.setWritable(true , true);\n tempFile.setExecutable(true , true);\n tempFile.deleteOnExit();\n \n // Read resource and write to temp file\n output = new FileOutputStream(tempFile);\n if (resourcePath != null) {\n input = Main.class.getClassLoader().getResourceAsStream(resourcePath);\n\n byte[] buffer = new byte[1024];\n int read;\n\n if (input == null) {\n Logger.log(\"Resource '\" + fileName + \"' at '\" + resourcePath + \"' not available!\");\n } else {\n while ((read = input.read(buffer)) != -1) {\n output.write(buffer , 0 , read);\n }\n }\n }\n } catch (IOException ex) {\n throw(ex);\n } finally {\n close(input);\n close(output);\n }\n return tempFile;\n }",
"public void copyAssets(View view) {\n log(\"copy assets to fon\");\n try {\n String [] list = getApplicationContext().getAssets().list(\"\");\n if (list.length > 0) {\n for (String file : list) {\n copyAssetFile(file, getApplicationContext());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n log(\"copy finished\");\n log(\"deploy assets start\");\n executeCommand(\"deploy.sh\");\n log(\"deploy assets finished\");\n }",
"private void copyFiles(String Language) {\n try {\n String filepath = mDataPath + \"/tessdata/\" + Language + \".traineddata\";\n AssetManager assetManager = getAssets();\n InputStream instream = assetManager.open(\"tessdata/\"+Language+\".traineddata\");\n OutputStream outstream = new FileOutputStream(filepath);\n byte[] buffer = new byte[1024];\n int read;\n while ((read = instream.read(buffer)) != -1) {\n outstream.write(buffer, 0, read);\n }\n outstream.flush();\n outstream.close();\n instream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static File generateTemp(Path path) {\n File tempFile = null;\n try {\n InputStream in = Files.newInputStream(path);\n String tDir = System.getProperty(\"user.dir\") + File.separator + ASSETS_FOLDER_TEMP_NAME;\n tempFile = new File(tDir + File.separator + path.getFileName());\n try (FileOutputStream out = new FileOutputStream(tempFile)) {\n IOUtils.copy(in, out);\n }\n album.addToImageList(tempFile.getAbsolutePath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return tempFile;\n }",
"@Override\n public void finish() {\n storeProperties();\n // retrieve the full list of files according to the selected mode\n List<org.jajuk.base.File> files = getFiles();\n if (files == null) {\n return;\n }\n // define the target directory\n final Date curDate = new Date();\n // Do not use ':' character in destination directory, it's\n // forbidden under Windows\n final SimpleDateFormat stamp = new SimpleDateFormat(\"yyyyMMdd-HHmm\", Locale.getDefault());\n final String dirName = \"Party-\" + stamp.format(curDate);\n final java.io.File destDir = new java.io.File(((String) data.get(Variable.DEST_PATH)), dirName);\n if (!destDir.mkdir()) {\n Log.warn(\"Could not create destination directory \" + destDir);\n }\n Log.debug(\"Going to copy \" + files.size() + \" files to directory {{\"\n + destDir.getAbsolutePath() + \"}}\");\n // perform the actual copying\n UtilPrepareParty.copyFiles(files, destDir, isTrue(Variable.NORMALIZE_FILENAME),\n isTrue(Variable.ONE_MEDIA_ENABLED) && isTrue(Variable.CONVERT_MEDIA),\n (String) data.get(Variable.ONE_MEDIA), (String) data.get(Variable.CONVERT_COMMAND));\n }",
"@Test\n public void testCopyFileUsingJavaFiles() throws Exception {\n long start = System.nanoTime();\n CopyFile.copyFileUsingJavaFiles(sourceFile, filesDestFile);\n System.out.println(\"Time taken by files using:\" + (System.nanoTime() - start) / 1000);\n }",
"File prepareTempSourceDirectory() throws FileNotFoundException, IOException{\n\t\tFile tempfile = null;\n\t\tFile tempdir = null;\n\t\ttempfile = File.createTempFile(\"temp\", \"Delete\");\n\t\ttempdir = tempfile.getParentFile();\n\t\ttempfile.delete();\n\t\ttempdir = new File(tempdir, \"SAFS_UPDATE\");\n\t\ttempdir.mkdir();\n\n\t\tFile[] files = tempdir.listFiles();\n\t\tif(files != null && files.length > 0){\n\t\t\tfor(File file:files){\n\t\t\t\tif(file.isDirectory()) {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tFileUtilities.deleteDirectoryRecursively(file.getAbsolutePath(), false);\n\t\t\t\t\t}catch(Throwable x){\n\t\t\t\t\t\t// java.lang.NoClassDefFoundError\n\t\t\t\t\t\terrors.println(x.getClass().getName()+\": \"+x.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\ttry{\n\t\t\t\t\t\tfile.delete();\n\t\t\t\t\t}catch(Throwable x){\n\t\t\t\t\t\terrors.println(x.getClass().getName()+\": \"+x.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(tempdir==null || !tempdir.isDirectory()) throw new IOException(\"Cannot deduce a root source directory for HTTP extraction.\");\n\t\treturn tempdir;\n\t}",
"private static void copyFiles(File source, File dest) throws IOException {\n\t\tif(!source.equals(dest))\n\t\t\tFileUtils.copyFile(source, dest);\n\t}",
"public static void copyCat() throws IOException {\n byte[] bytes = Files.readAllBytes(Paths.get(RESOURCES_FOLDER + \"\\\\cat.jpeg\"));\n FileInputStream inputStream = new FileInputStream(RESOURCES_FOLDER + \"\\\\cat.jpeg\");\n FileOutputStream outputStream = new FileOutputStream(COPY_FOLDER + \"\\\\cat_copy.jpeg\");\n// outputStream.write(bytes);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); // cand nu avem nevoie sa cream fisierul - ci doar sa mutam dintr o parte in alta bytes\n byteArrayOutputStream.write(bytes);\n byteArrayOutputStream.writeTo(outputStream);\n inputStream.close();\n byteArrayOutputStream.close();\n outputStream.close();\n }",
"private static void copyFile(File scrFile, File file) {\n\t\r\n}",
"@Before\n\tpublic void init(){\n\t\tthis.sourceFolder =new File(\"/tmp/sourceTmpTest\");\n\t\tif(!sourceFolder.exists()){\n\t\t\tSystem.out.println(\"The source folder doesn't exist, is created now\");\n\t\t\tsourceFolder.mkdir();\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"The source folder already exist\");\n\t\t}\n\n\t\t/* Create source Temporary folder */\n\t\tthis.destinationFolder =new File(\"/tmp/destinationTmpTest\");\n\t\tif(!destinationFolder.exists()){\n\t\t\tSystem.out.println(\"The destination folder doesn't exist, is created now\");\n\t\t\tdestinationFolder.mkdir();\n\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"The destination folder already exist\");\n\t\t}\n\n\t\t/* Create 4 files to test it into the function */\n\t\tfor(int i=0;i<4;i++){\n\t\t\tFile testFile=new File (\"/tmp/sourceTmpTest/img-test_0_000\"+i+\".testexpsim\");\n\t\t\ttry {\n\t\t\t\tif (testFile.createNewFile()){\n\t\t\t\t\tSystem.out.println(\"Source file \"+i +\" is created!\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Source file \"+i +\" already exists.\");\n\t\t\t\t}\n\t\t\t} catch (IOException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void copy(){\n\t\tFileInputStream is = null;\n\t\tFileOutputStream os = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(source);\n\t\t\tos = new FileOutputStream(dest);\n\t\t\tif(dest.exists())\n\t\t\t\tdest.delete();\n\t\t\tint i = -1;\n\t\t\twhile((i = is.read()) != -1)\n\t\t\t\tos.write(i);\n\t\t\tsource.deleteOnExit();\n\t\t} catch (IOException e) {\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t} finally {\n\t\t\tif(is != null)\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (IOException ignored) {}\n\t\t\tif(os != null)\n\t\t\t\ttry {\n\t\t\t\t\tos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t\t\t}\n\t\t}\n\t}",
"private static File prepareTempFolder() {\n File result;\n try {\n result = java.nio.file.Files.createTempDirectory(\n DCOSService.class.getSimpleName()).toFile();\n System.out.println(result.toString());\n\n return result;\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"private void copyCoverageFile(String sourceResourceName, String targetFileName, WorkflowJob job) throws Exception {\n FilePath directory = ensureWorkspaceExists(job);\n\n FilePath dest = directory.child(targetFileName);\n org.apache.commons.io.IOUtils.copy(getClass().getResourceAsStream(sourceResourceName), dest.write());\n }",
"protected File copyURLToFile(String filename) throws IOException {\r\n\t\tURL deltaFileUrl = getClass().getResource(filename);\t\t\r\n\t\tFile tempFile = File.createTempFile(\"test\", \".dlt\");\r\n\t\t_tempFiles.add(tempFile);\r\n\t\tFileUtils.copyURLToFile(deltaFileUrl, tempFile);\t\t\r\n\t\treturn tempFile;\t\r\n\t}",
"private void init() {\n this.excelSpreadSheetWorkBookDestination = excelSource.copyTo(DirectoryReference.TARGETDIRECTORY\n .getFileFromDirectory(new StringBuilder()\n .append(\"PARSED-\")\n .append(\"java-developer-philly-rubric-template_\")\n .append(System.nanoTime())\n .append(\".xlsx\")\n .toString()));\n }",
"public void copyUserLibFiles(File srcDir, File trgDir) {\n //- get the appropriate list of lib files to exclude\n String osName = System.getProperty(\"os.name\");\n String pkgName = this.getClass().getPackage().getName();\n String excludeFile = pkgName + \".unixV2LibExcludeList\";\n if (osName.indexOf(\"Windows\") != -1) {\n excludeFile = pkgName + \".winV2LibExcludeList\";\n } else if (osName.indexOf(\"Mac\") != -1) {\n excludeFile = pkgName + \".macV2LibExcludeList\";\n }\n String verEd = CommonInfoModel.getInstance().getSource().getVersionEdition();\n if (verEd.startsWith(UpgradeConstants.VERSION_3_0)) {\n excludeFile = excludeFile.replaceFirst(\"V2\", \"V3\");\n }\n\n try {\n String excludeF = excludeFile.replace('.', '/') + \".properties\";\n UpgradeFileFilter fs = new UpgradeFileFilter(excludeF);\n File[] l = srcDir.listFiles(fs);\n\n for (File tmpF : l) {\n if (tmpF.isDirectory()) {\n try {\n File tmpDir = new File(trgDir, tmpF.getName());\n tmpDir.mkdir();\n copyDirectory(tmpF, tmpDir);\n logger.log(Level.INFO,\n stringManager.getString(\"upgrade.common.copied_dir\", tmpDir.getName()));\n } catch (IOException ioe) {\n logger.log(Level.SEVERE,\n stringManager.getString(\"upgrade.common.lib_copy_error\", ioe));\n }\n } else {\n try {\n File tmpFile = new File(trgDir, tmpF.getName());\n copyFile(tmpF.getCanonicalPath(), tmpFile.getCanonicalPath());\n logger.log(Level.INFO,\n stringManager.getString(\"upgrade.common.copied_file\", tmpFile.getName()));\n } catch (IOException ioe) {\n logger.log(Level.SEVERE,\n stringManager.getString(\"upgrade.common.lib_copy_error\", ioe));\n }\n }\n }\n } catch (FileNotFoundException e) {\n logger.log(Level.SEVERE,\n stringManager.getString(\"upgrade.common.lib_exclude_error\", e));\n } catch (IOException io) {\n logger.log(Level.SEVERE,\n stringManager.getString(\"upgrade.common.lib_exclude_error\", io));\n } catch (NullPointerException ne) {\n logger.log(Level.SEVERE,\n stringManager.getString(\"upgrade.common.lib_exclude_error\", ne.toString()));\n }\n }",
"@Test\r\n\tpublic void resource_CopyTests() {\n\t\tLibraryNode destLib = ml.createNewLibrary_Empty(\"http://opentravel.org/Test/tx\", \"TL2\", pc.getDefaultProject());\r\n\t\t// Given - a valid resource using mock library provided business object\r\n\t\tLibraryNode srcLib = ml.createNewLibrary(pc, \"ResourceTestLib\");\r\n\t\tBusinessObjectNode bo = null;\r\n\t\tfor (Node n : srcLib.getDescendants_LibraryMembers())\r\n\t\t\tif (n instanceof BusinessObjectNode) {\r\n\t\t\t\tbo = (BusinessObjectNode) n;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\tResourceNode resource = ml.addResource(bo);\r\n\t\tassertTrue(\"Resource created must not be null.\", resource != null);\r\n\t\tml.check(resource);\r\n\t\tml.check(srcLib);\r\n\r\n\t\t// When - copied to destination library\r\n\t\tdestLib.copyMember(resource);\r\n\t\t// Then - source lib is not changed\r\n\t\tassertTrue(srcLib.contains(resource));\r\n\t\tml.check(srcLib);\r\n\t\tml.check(resource);\r\n\t\t// Then - it is copied and is valid\r\n\t\tResourceNode newResource = null;\r\n\t\tfor (Node r : destLib.getDescendants_LibraryMembers())\r\n\t\t\tif (r.getName().equals(resource.getName()))\r\n\t\t\t\tnewResource = (ResourceNode) r;\r\n\t\tassertTrue(destLib.contains(newResource));\r\n\t\tBusinessObjectNode subject = newResource.getSubject();\r\n\t\tml.check(newResource);\r\n\t\tml.check(destLib);\r\n\t}",
"@Override\n protected void setUp() throws Exception {\n super.setUp();\n\n m_TestHelper.copyResourceToTmp(\"regression.arff\");\n }",
"private static Path copyFileFromJar(String path) {\n try {\n Path file = Files.createTempFile(\"configme-\", \"-democonfig.yml\");\n Files.copy(TestUtils.class.getResourceAsStream(path), file, REPLACE_EXISTING);\n return file;\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n }",
"private static void exportResource(String resourcePathName, File outFolder) throws Exception {\n InputStream stream = null;\n try {\n // note that each / is a directory down in the \"jar tree\" been the jar the root of the\n // tree\n stream = DeployManagementModuleFlow.class.getResourceAsStream(resourcePathName);\n if (stream == null) {\n throw new Exception(\"Cannot get resource \\\"\" + resourcePathName\n + \"\\\" from Jar file.\");\n }\n File outFile = new File(outFolder, new File(resourcePathName).getName());\n outFile.getParentFile().mkdirs();\n Files.copy(stream, outFile.toPath());\n } finally {\n if (stream != null) {\n stream.close();\n }\n }\n }",
"private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<fileList.length; i++) \n\t\t\t{ \n\t\t\t\tFile f = new File(dirToZip, fileList[i]); \n\t\t\t\tFileInputStream fis = new FileInputStream(f); \n\t\t\t\tString zEntry = f.getPath();\n\t\t\t\t//System.out.println(\"\\n\" + zEntry);\n\t\t\t\tint start = zEntry.indexOf(uniqueName);\n\t\t\t\tzEntry = zEntry.substring(start + uniqueName.length() + 1, zEntry.length());\n\t\t\t\t//System.out.println(tempDir);\n\t\t\t\t//System.out.println(zEntry + \"\\n\");\n\t\t\t\tZipEntry entry = new ZipEntry(zEntry); \n\t\t\t\trfoFile.putNextEntry(entry); \n\t\t\t\twhile((bytesIn = fis.read(buffer)) != -1) \n\t\t\t\t\trfoFile.write(buffer, 0, bytesIn); \n\t\t\t\tfis.close();\n\t\t\t}\n\t\t\trfoFile.close();\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.compress(): \" + e);\n\t\t}\n\t}",
"private Step copyRemoteFiles() {\n return stepBuilderFactory.get(STEP_COPY_REMOTE_FILES)\n .tasklet(copyRemoteFilesTask)\n .build();\n }",
"private List<String> copyAdditionalBundledClasspathResources(File javaDirectory, String targetDirectoryName, List<FileSet> additionalBundledClasspathResources) throws MojoExecutionException {\n // Create the destination directory\n File destinationDirectory = new File(javaDirectory, targetDirectoryName);\n destinationDirectory.mkdirs();\n\n List<String> addedFilenames = this.copyResources(destinationDirectory, additionalBundledClasspathResources);\n\n return addPath(addedFilenames, targetDirectoryName);\n }",
"private void setUp() {\n if (tempDir != null) {\n tearDown();\n }\n tempDir = new File(OS.getTmpPath() + \"imagecompare\" + System.nanoTime());\n tempDir.mkdir();\n tempDir.deleteOnExit();\n tempFiles.clear();\n log.debug(\"using temp directory \" + tempDir.getAbsolutePath());\n\n }",
"public static void extractResources(File jar, String subdir, File dest) throws IOException {\n if (jar.isDirectory()) {\n if (subdir.startsWith(\"/\")) {\n subdir = subdir.substring(1);\n }\n FileUtility.copyDirectory(new File(jar, subdir), dest);\n } else {\n if (!subdir.startsWith(\"/\")) {\n subdir = \"/\" + subdir;\n }\n tryExtractFolder(jar, subdir, dest);\n }\n }",
"private void createSupportFiles(@NonNull final CommandLineRunner launcher,\n @NonNull final Map<String, String> env)\n throws IOException, InterruptedException, LoggedErrorException {\n File rawFolder = new File(mResOutputDir, SdkConstants.FD_RES_RAW);\n\n SourceSearcher searcher = new SourceSearcher(\n Collections.singletonList(rawFolder), EXT_BC);\n FileGatherer fileGatherer = new FileGatherer();\n searcher.search(fileGatherer);\n\n WaitableExecutor<Void> mExecutor = new WaitableExecutor<Void>();\n\n for (final File bcFile : fileGatherer.getFiles()) {\n String name = bcFile.getName();\n final String objName = name.replaceAll(\"\\\\.bc\", \".o\");\n final String soName = \"librs.\" + name.replaceAll(\"\\\\.bc\", \".so\");\n\n for (final Abi abi : ABIS) {\n if (mAbiFilters != null && !mAbiFilters.contains(abi.mDevice)) {\n continue;\n }\n\n // make sure the dest folders exist\n final File objAbiFolder = new File(mObjOutputDir, abi.mDevice);\n if (!objAbiFolder.isDirectory() && !objAbiFolder.mkdirs()) {\n throw new IOException(\"Unable to create dir \" + objAbiFolder.getAbsolutePath());\n }\n\n final File libAbiFolder = new File(mLibOutputDir, abi.mDevice);\n if (!libAbiFolder.isDirectory() && !libAbiFolder.mkdirs()) {\n throw new IOException(\"Unable to create dir \" + libAbiFolder.getAbsolutePath());\n }\n\n mExecutor.execute(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n File objFile = createSupportObjFile(bcFile, abi, objName, objAbiFolder,\n launcher, env);\n createSupportLibFile(objFile, abi, soName, libAbiFolder, launcher, env);\n return null;\n }\n });\n }\n }\n\n mExecutor.waitForTasksWithQuickFail(true /*cancelRemaining*/);\n }",
"private void setupFiles(){\n\t\t// Copies the default configuration files to the workspace \n\t\ttry{\n\t\t\tBundle bundle = Platform.getBundle(Activator.PLUGIN_ID);\n\t\t\tIPath destBasePath = Platform.getStateLocation(bundle);\n\t\t\tpropertiesFile = destBasePath.append(PreferencesConstants.PROP_BUNDLE_STATE_PATH).toFile();\n\t\t\tif(!propertiesFile.exists()){\n\n\t\t\t\tURI sourceBaseURI = bundle.getEntry(PreferencesConstants.DEFAULT_CONFIG_BUNDLE_PATH).toURI();\n\t\t\t\t//TODO: fix the item below?\n\t\t\t\tEnumeration<URL> entries = bundle.findEntries(PreferencesConstants.DEFAULT_CONFIG_BUNDLE_PATH, null, true);\n\t\t\t\tfor(; entries != null && entries.hasMoreElements();){\n\t\t\t\t\tURL url = entries.nextElement();\n\t\t\t\t\tURI uri = url.toURI();\n\t\t\t\t\tURI relativeURI = sourceBaseURI.relativize(uri);\n\t\t\t\t\tIPath destPath = destBasePath.append(relativeURI.toString());\n\n\t\t\t\t\tif(destPath.hasTrailingSeparator()){\n\t\t\t\t\t\t// it's a folder\n\t\t\t\t\t\tdestPath.toFile().mkdirs();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t// it's a file\n\t\t\t\t\t\tURL contentURL = FileLocator.resolve(url);\n\t\t\t\t\t\tSystemUtils.blt(contentURL.openStream(), new FileOutputStream(destPath.toFile()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//now save the destination paths to the System properties\n\t\t\t//save the report paths\n\t\t\tString reportTemplatePath = destBasePath.append(PreferencesConstants.DEFAULT_REPORT_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_REPORT_TEMPLATE_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE, \n\t\t\t\t\treportTemplatePath);\n\t\t\tSystem.out.println(\"report template file: \" + reportTemplatePath);\t\t\n\t\t\t\n\t\t\tString reportPath = destBasePath.append(PreferencesConstants.DEFAULT_REPORT_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_REPORT_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT, \n\t\t\t\t\treportPath);\t\t\t\n\t\t\tSystem.out.println(\"report file: \" + reportPath);\t\t\t\n\t\t\t\n\t\t\t//save the rule paths\n\t\t\tString ruleSessionPath = destBasePath.append(PreferencesConstants.DEFAULT_RULE_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_RULE_SESSION_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION, \n\t\t\t\t\truleSessionPath);\t\t\t\n\t\t\tSystem.out.println(\"rule session file: \" + ruleSessionPath);\t\t\t\t\t\n\t\t\t\n\t\t\tString ruleSessionOutPath = destBasePath.append(PreferencesConstants.DEFAULT_RULE_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_RULE_SESSION_OUT_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT, \n\t\t\t\t\truleSessionOutPath);\t\t\t\n\t\t\tSystem.out.println(\"rule session out file: \" + ruleSessionOutPath);\t\t\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\t\n\t\t/*\n\t\tString pluginName = Activator.PLUGIN_ID;\n\t\tBundle bundle = Platform.getBundle(pluginName);\n\n\t\tString propFileStr = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.PROP_URL);\n\t\tFile sourcePropFile = new File(propFileStr);\n\n\t\t//propertiesFile = new File(fixedPath);\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tIWorkspaceRoot root = workspace.getRoot();\n\t\tIPath location = root.getLocation();\n\t\t//location.toString()\n\t\t//String path = location.toString() + location.SEPARATOR + \".metadata\" \n\t\t//\t+ location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\t\tString path = location.toString() + location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\t\t//URL entry = Platform.getInstallLocation().getURL();\n\t\t//String path = entry.toString() + location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\n\t\tFile usersResourceDir = new File(path);\n\t\tpropertiesFile = new File(path + PreferencesConstants.PROP_URL);\n\t\tSystem.out.println(\"properties file \" + propertiesFile.getAbsolutePath());\n\t\tFile reportDir;\n\t\tFile ruleDir;\n\t\tif(!usersResourceDir.exists()){\n\t\t\ttry{\n\t\t\t\tSystemUtils.createDirectory(usersResourceDir);\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy the properties file\n\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyFile(sourcePropFile, propertiesFile);\n\t\t\t}\n\t\t\tcatch(IOException e1){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy report directory\n\t\t\tString fixedReportPath = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.DEFAULT_REPORT_PATH);\n\t\t\treportDir = new File(fixedReportPath);\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyDirectory(reportDir, usersResourceDir);\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy rule directory\n\t\t\tString fixedRulePath = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.DEFAULT_RULE_PATH);\n\t\t\truleDir = new File(fixedRulePath);\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyDirectory(ruleDir, usersResourceDir);\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tSystem.out.println(\"success\");\n\t\t}\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_TEMPLATE_URL);\n\t\tSystem.out.println(\"report template file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE));\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_URL.substring(1));\n\t\tSystem.out.println(\"report file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_REPORT));\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_SESSION_URL.substring(1));\n\t\tSystem.out.println(\"rule session file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION));\n\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_SESSION_OUT_URL.substring(1));\n\t\tSystem.out.println(\"rule session file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT));\n\t\t*/\n\t}",
"@Override\n public TaskResult execute(CompilerContext context) {\n File intermediates = ExecutorUtils.createDir(context.getPaths().getBuildDir(), \"intermediates\");\n File resDir = ExecutorUtils.createDir(intermediates, \"res\");\n context.getPaths().setMergedResDir(ExecutorUtils.createDir(resDir, \"merged\"));\n context.getPaths().setTmpPackageName(new File(\n context.getPaths().getDeployDir().getAbsolutePath() + File.separator\n + context.getProject().getProjectName() + \"._ap\"));\n\n PngCruncher cruncher = new AaptCruncher(context.getResources().aapt(), null, null);\n if (!context.getComponentInfo().getExplodedAarLibs().mergeResources(\n context.getPaths().getMergedResDir(), context.getPaths().getResDir(), cruncher)) {\n return TaskResult.generateError(\"Could not merge resources\");\n }\n return TaskResult.generateSuccess();\n }",
"@Override\n public void prepare() {\n //Caching as file resource.\n File file = this.getResource().file;\n logger.info(\"Preparing {} streams for file: {}\", this.getTransferType(), file.getName());\n\n if (this.getTransferType() == ResourceTransferType.OUTBOUND) {\n //Sending\n try {\n buffer = new byte[BUFFER_SIZE];\n sent = 0;\n inputChannel = new FileInputStream(file).getChannel();\n inputBuffer = inputChannel.map(FileChannel.MapMode.READ_ONLY, 0, inputChannel.size());\n } catch (FileNotFoundException e) { //File doesn't exist.\n //Calling a transfer error.\n callError(e);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n //Receiving\n //Checking if file already exists.\n written = 0;\n saved = 0;\n if (getResource().isLocal()) {\n getResource().calcNetworkId();\n if (getResource().getNetworkID().equals(getTunnel().getDestination())) {\n //The file is already stored locally.\n getTunnel().sendMessage(new ResourceTransferControlMessage(this.getTransferId(), -2));\n this.close();\n return;\n }\n }\n\n //Creating or replacing the file.\n buffer = new byte[BUFFER_SIZE * 16];\n if (file.exists()) {\n file.delete();\n }\n try { //Creating new file.\n file.createNewFile();\n outputStream = new FileOutputStream(file);\n } catch (IOException e) {\n //Calling a transfer error.\n callError(e);\n return;\n }\n\n //Requesting the first chunk.\n getTunnel().sendMessage(new ResourceTransferControlMessage(this.getTransferId(), 0));\n }\n }",
"private static File createTempDir() {\n\t\tFile baseDir = new File(\"/opt/tomcat7/temp\");\r\n\t\tString baseName = \"omicseq-TempStorage\" + \"-\";\r\n\r\n\t\tfor (int counter = 0; counter < 10000; counter++) {\r\n\t\t\tFile tempDir = new File(baseDir, baseName + counter);\r\n\t\t\tif (!tempDir.exists()) {\r\n\t\t\t\tif (tempDir.mkdir())\r\n\t\t\t\t\treturn tempDir;\r\n\t\t\t} else\r\n\t\t\t\treturn tempDir;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Test\n public void testCopyFile() throws Exception {\n System.out.println(\"copyFile with existing source image file\");\n String sourcePath = System.getProperty(\"user.dir\")+fSeparator+\"src\"+fSeparator+\"test\"+fSeparator+\n \"java\"+fSeparator+\"resources\"+fSeparator+\"testImg.jpg\";\n File source = new File(sourcePath);\n \n File dest = new File(folder.toString()+fSeparator+\"Images\");\n FilesDao instance = new FilesDao();\n boolean result;\n try{\n instance.copyFile(source, dest);\n File copiedFile = new File(dest+fSeparator+\"testImg.jpg\");\n if(copiedFile.exists())\n result = true;\n else\n result = false;\n }catch(Exception ex){\n result = false;\n }\n boolean expResult = true;\n assertEquals(\"Some message\",expResult,result);\n }",
"public static void copy(String suffix) {\r\n boolean success = false;\r\n boolean doVideo = true;\r\n String imgSrcDir = zipDir0 + \"/R\";\r\n String videoSrcDir = zipDir0 + \"/Video\";\r\n String imgDstDir = rImagesDir0 + \"/Images\" + suffix;\r\n String videoDstDir = rVideoDir0 + \"/Video\" + suffix;\r\n File imgSrcDirFile = new File(imgSrcDir);\r\n File videoSrcDirFile = new File(videoSrcDir);\r\n File imgDstDirFile = new File(imgDstDir);\r\n File videoDstDirFile = new File(videoDstDir);\r\n\r\n // Check and create directories\r\n if(!imgSrcDirFile.isDirectory()) {\r\n System.err.println(\"Not a directory: \" + imgSrcDirFile.getPath());\r\n System.exit(1);\r\n }\r\n if(!videoSrcDirFile.isDirectory()) {\r\n doVideo = false;\r\n }\r\n if(!imgDstDirFile.isDirectory()) {\r\n success = imgDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + imgDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n if(doVideo && !videoDstDirFile.isDirectory()) {\r\n success = videoDstDirFile.mkdir();\r\n if(!success) {\r\n System.err.println(\"Cannot create: \" + videoDstDirFile.getPath());\r\n System.exit(1);\r\n }\r\n }\r\n\r\n // Images\r\n System.out.println(\"\\nCopying images:\");\r\n System.out.println(\"From: \" + imgSrcDirFile.getPath());\r\n System.out.println(\"To: \" + imgDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(imgSrcDirFile, imgDstDirFile, saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + imgSrcDirFile.getPath()\r\n + \"\\n To: \" + imgDstDirFile.getPath() + \"\\n\");\r\n }\r\n\r\n // Video\r\n System.out.println(\"\\nCopying video:\");\r\n if(!doVideo) {\r\n System.out.println(\"No video found\");\r\n return;\r\n }\r\n System.out.println(\"From: \" + videoSrcDirFile.getPath());\r\n System.out.println(\"To: \" + videoDstDirFile.getPath());\r\n success = CopyUtils.copyDirectory(videoSrcDirFile, videoDstDirFile,\r\n saveSuffix);\r\n if(!success) {\r\n System.err.println(\"Copy failed:\\n From: \" + videoSrcDirFile.getPath()\r\n + \"\\n To: \" + videoDstDirFile.getPath() + \"\\n\");\r\n }\r\n }",
"private static void taskContentsFileTransfer() {\n // Transfer text file to temporary file\n try {\n String taskContentsFilePath, taskContents;\n BufferedReader taskContentsLocation = new BufferedReader(new FileReader(FILE_PATH_CONTENT));\n taskContentsFilePath = taskContentsLocation.readLine();\n\n if (taskContentsFilePath != null) {\n BufferedReader taskContentsReader = new BufferedReader(new FileReader(taskContentsFilePath));\n\n taskContents = taskContentsReader.readLine();\n while (taskContents != null) {\n fileContent.add(taskContents);\n taskContents = taskContentsReader.readLine();\n }\n taskContentsReader.close();\n // Clear file\n PrintWriter pw = new PrintWriter(taskContentsFilePath);\n pw.close();\n }\n taskContentsLocation.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public DiskBackedProjectFilePartSet() {\r\n // make two files to use\r\n fileA = TempFileUtil.createTemporaryFile();\r\n fileB = TempFileUtil.createTemporaryFile();\r\n }",
"@VisibleForTesting\n static File copyJavaResourcesOnly(File destinationFolder, File zip64File) throws IOException {\n File cacheDir = new File(destinationFolder, ZIP_64_COPY_DIR);\n File copiedZip = new File(cacheDir, zip64File.getName());\n FileUtils.mkdirs(copiedZip.getParentFile());\n\n try (ZipFile inFile = new ZipFile(zip64File);\n ZipOutputStream outFile =\n new ZipOutputStream(\n new BufferedOutputStream(new FileOutputStream(copiedZip)))) {\n\n Enumeration<? extends ZipEntry> entries = inFile.entries();\n while (entries.hasMoreElements()) {\n ZipEntry zipEntry = entries.nextElement();\n if (!zipEntry.getName().endsWith(SdkConstants.DOT_CLASS)\n && ZipEntryUtils.isValidZipEntryName(zipEntry)) {\n outFile.putNextEntry(new ZipEntry(zipEntry.getName()));\n try {\n ByteStreams.copy(\n new BufferedInputStream(inFile.getInputStream(zipEntry)), outFile);\n } finally {\n outFile.closeEntry();\n }\n }\n }\n }\n return copiedZip;\n }",
"private void copyFile(String source, String destination) throws IOException {\n File inputFile = new File(source);\n File outputFile = new File(destination);\n\t\n BufferedInputStream in = new BufferedInputStream(\n\t\t\t\t new FileInputStream(inputFile));\n BufferedOutputStream out = new BufferedOutputStream(\n\t\t\t\t new FileOutputStream(outputFile));\n int c;\n\tbyte[] tmp = new byte[4096];\n\t\n while ((c = in.read(tmp, 0, 4096)) != -1)\n\t out.write(tmp, 0, c);\n\t\n in.close();\n out.close();\n }",
"@Override\n @Transactional\n public void run(String... args) throws Exception {\n String adminUserFolder = uploadDirectory + \"/79a5bd3f-1ec2-46cf-94b6-8ac23df3f3c9\";\n String userFolder = uploadDirectory + \"/f9d98297-9db9-41a3-86e6-25ab0480fcd8\";\n\n Resource resource = new ClassPathResource(\"/static/images/avatar.png\");\n\n InputStream initialStream = resource.getInputStream();\n File targetFile = new File(\"src/main/resources/targetFile.png\");\n OutputStream outStream = new FileOutputStream(targetFile);\n\n byte[] buffer = new byte[8 * 1024];\n int bytesRead;\n while ((bytesRead = initialStream.read(buffer)) != -1) {\n outStream.write(buffer, 0, bytesRead);\n }\n IOUtils.closeQuietly(initialStream);\n IOUtils.closeQuietly(outStream);\n\n if (!Files.exists(Paths.get(adminUserFolder))) {\n Files.createDirectory(Paths.get(adminUserFolder));\n Files.copy(Paths.get(targetFile.getAbsolutePath()), Paths.get(adminUserFolder + \"/avatar.png\"));\n }\n\n if (!Files.exists(Paths.get(userFolder))) {\n Files.createDirectory(Paths.get(userFolder));\n Files.copy(Paths.get(targetFile.getAbsolutePath()), Paths.get(userFolder + \"/avatar.png\"));\n }\n }",
"public void initialize() throws ResourceInitializationException {\n\n String oPath = (String) getUimaContext().getConfigParameterValue(\"outputFile\");\n if (oPath == null) {\n throw new ResourceInitializationException(\n ResourceInitializationException.CONFIG_SETTING_ABSENT, new Object[] { \"outputFile\" });\n }\n outFile = new File(oPath.trim());\n \n try {\n if(outFile.exists()){\n outFile.delete();\n }\n outFile.createNewFile();\n fileWriter = new FileWriter(outFile,true);\n \n } catch (IOException e) {\n throw new ResourceInitializationException(e);\n }\n }",
"public boolean copy(File fileToLoadOrig, boolean withDuplicate, List<String> passedFiles) {\n //Let us get the current Date\n Date date = new Date();\n LocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n int year = localDate.getYear();\n int month = localDate.getMonthValue();\n int day = localDate.getDayOfMonth();\n\n String destDirectoryPath = year + \"-\" + month + \"-\" + day;\n\n //check if directory is created\n\n File destDirecoty = new File(\"./testing/dest/\" + destDirectoryPath);\n System.out.println(\"the file path:\" + destDirecoty.getAbsolutePath());\n\n if (!destDirecoty.exists()) {\n System.out.println(\"creating a new directory with path:\" + destDirecoty.getAbsolutePath());\n boolean created = destDirecoty.mkdirs();\n System.out.println(\"is file created:\" + created);\n }\n System.out.println(\"Directory is created\");\n //Great, now let us check if the file already in the dirctory\n\n\n boolean duplicateFound = false;\n\n\n File[] sourceFiles = fileToLoadOrig.listFiles();\n\n for (File sourceFile : sourceFiles) {\n //let us get the file extension\n String sourceFileType = \"\";\n int location = sourceFile.getName().lastIndexOf('.');\n if (location > 0) {\n sourceFileType = sourceFile.getName().substring(location + 1);\n }\n //cool, let us go on\n String nestedDirectory;\n switch (sourceFileType) {\n case \"txt\":\n nestedDirectory = \"txt\";\n break;\n case \"pdf\":\n nestedDirectory = \"pdf\";\n break;\n case \"xls\":\n nestedDirectory = \"xls\";\n default:\n nestedDirectory = \"others\";\n }\n\n //check if the type directory is created or not\n File nestedDirecotyFile = new File(destDirecoty.getAbsolutePath()+\"/\" + nestedDirectory);\n System.out.println(\"the file path:\" + nestedDirecotyFile.getAbsolutePath());\n\n if (!nestedDirecotyFile.exists()) {\n System.out.println(\"creating a new directory with path:\" + nestedDirecotyFile.getAbsolutePath());\n boolean created = nestedDirecotyFile.mkdirs();\n System.out.println(\"is file created:\" + created);\n }\n\n\n\n File[] destinationFiles = nestedDirecotyFile.listFiles();\n\n for (File destinationFile : destinationFiles) {\n if (destinationFile.getName().equals(sourceFile.getName())) {\n if (withDuplicate) {\n int maxSeqNum = 0;\n //Let us find the last sequence of the destinationFile\n for (File fileForDuplicate : destinationFiles) {\n String[] fileParts = fileForDuplicate.getName().split(\"_\");\n if (fileParts.length == 2) {\n //got a split\n if (fileParts[0].equals(destinationFile.getName())) {\n maxSeqNum = Math.max(maxSeqNum, Integer.parseInt(fileParts[1]));\n }\n }else{\n new RuntimeException(\"Files were found with multiple _\");\n }\n }\n String newFilePath = sourceFile.getName() + \"_\" + (maxSeqNum + 1);\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + newFilePath));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n } else {\n // let us delete the destinationFile and replace it\n destinationFile.delete();\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + sourceFile.getName()));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }\n break;\n } else {\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + sourceFile.getName()));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }\n }\n\n try {\n FileUtils.copyFile(sourceFile, new File(nestedDirecotyFile.getAbsoluteFile() + \"/\" + sourceFile.getName()));\n passedFiles.add(sourceFile.getAbsolutePath());\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n\n }\n return true;\n }",
"public static void copyTextWithBuffer() throws IOException {\n BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(RESOURCES_FOLDER + \"\\\\lorem_ipsum.txt\"));\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(COPY_FOLDER + \"\\\\copy_lorem.txt\"));\n// bufferedOutputStream.write(bufferedInputStream.readAllBytes());\n bufferedOutputStream.flush();\n bufferedOutputStream.close();\n bufferedInputStream.close();\n\n// int c;\n// while ((c = bufferedInputStream.read()) > -1) {\n// bufferedOutputStream.write(c);\n// }\n\n }",
"@Override\n public void resetStateOfSUT() {\n\n try {\n //FIXME: this fails due to locks on Neo4j. need way to reset it\n //deleteDir(new File(tmpFolder));\n if(!Files.exists(Path.of(tmpFolder))) {\n Files.createDirectories(Path.of(tmpFolder));\n }\n Files.copy(getClass().getClassLoader().getResourceAsStream(\"users.json\"), Path.of(tmpFolder,\"users.json\"), StandardCopyOption.REPLACE_EXISTING);\n Files.copy(getClass().getClassLoader().getResourceAsStream(\"logins.json\"), Path.of(tmpFolder,\"logins.json\"), StandardCopyOption.REPLACE_EXISTING);\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }",
"protected abstract boolean copyCheckedFiles();",
"private void deleteTempFiles() {\n\t\tfor (int i = 0; i < prevPrevTotalBuckets; i++) {\n\t\t\ttry {\n\t\t\t\tString filename = DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode + \"_\"\n\t\t\t\t\t\t+ (passNumber - 1) + \"_\" + i;\n\t\t\t\tFile file = new File(filename);\n\t\t\t\tfile.delete();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private static void copyFile(File in, File out)\n\t{\n\t\ttry\n\t\t{\n\t\t\tFileChannel inChannel = new\tFileInputStream(in).getChannel();\n\t\t\tFileChannel outChannel = new FileOutputStream(out).getChannel();\n\t\t\tinChannel.transferTo(0, inChannel.size(), outChannel);\n\t\t\tinChannel.close();\n\t\t\toutChannel.close();\t\t\t\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.copyFile(): \" + e);\n\t\t}\n\n\t}",
"private static boolean backupAndCopyFile(File templateDir, File toDir, String filename) {\n File to = new File(toDir, filename);\n boolean rv = backupFile(to);\n File from = new File(templateDir, filename);\n boolean rv2 = WorkingDir.copyFile(from, to);\n return rv && rv2;\n }",
"public static int PrepareSecurefiles(Context ctx, ZipFile apkzf) {\r\n ZipEntry fileUnzip;\r\n ZipEntry fileUnzip2;\r\n ZipEntry fileUnzip3;\r\n RandomAccessFile raf = null;\r\n FileLock file_lock = null;\r\n RandomAccessFile raf2 = null;\r\n String Appfiledir = new StringBuilder(String.valueOf(ctx.getFilesDir().getAbsolutePath())).append(\"/prodexdir\").toString();\r\n File Appprofiledir = new File(Appfiledir);\r\n if (!Appprofiledir.isDirectory()) {\r\n Appprofiledir.mkdir();\r\n }\r\n String Cookiefilepath = new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(versionname).toString();\r\n String backupfilepath = new StringBuilder(String.valueOf(Appfiledir)).append(\"/backUp\").toString();\r\n String firstloadfilepath = new StringBuilder(String.valueOf(Appfiledir)).append(\"/firstLoad\").toString();\r\n String Cookiefileinzip = \"assets/\" + versionname;\r\n String Libnameinapk = \"libtosprotection.\" + CPUABI + \".so\";\r\n try {\r\n raf = new RandomAccessFile(Cookiefilepath, \"rw\");\r\n try {\r\n raf = raf.getChannel();\r\n file_lock = raf.lock();\r\n File Cookiefile = new File(Cookiefilepath);\r\n try {\r\n if (Cookiefile.length() != 0) {\r\n int compareResult = Comparetxtinzip(apkzf, Cookiefileinzip, Cookiefile);\r\n if (compareResult == 1) {\r\n File secureDataFile = new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename5).toString());\r\n if (!secureDataFile.exists() || secureDataFile.length() == 0) {\r\n SafeUnzipFile(apkzf, \"assets/\" + securename5, secureDataFile, 0);\r\n } else {\r\n SafeUnzipFile(apkzf, \"assets/\" + securename5, secureDataFile, getFileCRC32(secureDataFile));\r\n }\r\n ZipEntry fileUnzip4 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip4 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString(), fileUnzip4.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip5 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip5 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString(), fileUnzip5.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip6 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip6 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString(), fileUnzip6.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip7 = apkzf.getEntry(Cookiefileinzip);\r\n if (fileUnzip7 != null && !isFileValid(Cookiefilepath, fileUnzip7.getSize())) {\r\n File file = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file);\r\n }\r\n if (file_lock != null) {\r\n try {\r\n file_lock.release();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n RandomAccessFile randomAccessFile = raf;\r\n File file2 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e2) {\r\n e2.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e3) {\r\n e3.printStackTrace();\r\n RandomAccessFile randomAccessFile2 = raf;\r\n File file3 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile3 = raf;\r\n File file4 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e4) {\r\n e4.printStackTrace();\r\n RandomAccessFile randomAccessFile4 = raf;\r\n File file5 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n } catch (IOException e5) {\r\n e5.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e6) {\r\n e6.printStackTrace();\r\n RandomAccessFile randomAccessFile5 = raf;\r\n File file6 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e7) {\r\n e7.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e8) {\r\n e8.printStackTrace();\r\n RandomAccessFile randomAccessFile6 = raf;\r\n File file7 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile7 = raf;\r\n File file8 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e9) {\r\n e9.printStackTrace();\r\n RandomAccessFile randomAccessFile8 = raf;\r\n File file9 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n RandomAccessFile randomAccessFile9 = raf;\r\n File file10 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e10) {\r\n e10.printStackTrace();\r\n RandomAccessFile randomAccessFile10 = raf;\r\n File file11 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e11) {\r\n e11.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e12) {\r\n e12.printStackTrace();\r\n RandomAccessFile randomAccessFile11 = raf;\r\n File file12 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile12 = raf;\r\n File file13 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e13) {\r\n e13.printStackTrace();\r\n RandomAccessFile randomAccessFile13 = raf;\r\n File file14 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n RandomAccessFile randomAccessFile14 = raf;\r\n File file15 = Cookiefile;\r\n return 2;\r\n } else if (compareResult != 0) {\r\n Process.killProcess(Process.myPid());\r\n System.exit(0);\r\n }\r\n }\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString());\r\n int file_count = 0;\r\n while (file_count < MAX_DEX_NUM) {\r\n int deletedexresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count)).toString());\r\n int deletejarresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(CreatenewFileName(securename1, \".\", \"_\" + file_count)).toString());\r\n int deleteodexresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count)).toString());\r\n int deleteflagresult = DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count)).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(\"oat/arm\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count)).toString());\r\n if (ERROR_FILE_NOT_FOUND == deletedexresult && ERROR_FILE_NOT_FOUND == deletejarresult && ERROR_FILE_NOT_FOUND == deleteodexresult) {\r\n break;\r\n }\r\n if (ERROR_EXCEPTION == deletedexresult || ERROR_EXCEPTION == deletejarresult || ERROR_EXCEPTION == deleteodexresult) {\r\n Process.killProcess(Process.myPid());\r\n System.exit(0);\r\n }\r\n file_count++;\r\n }\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename9).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename5).toString());\r\n UnzipFile(apkzf, \"assets/\" + securename5, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename5).toString()));\r\n UnzipFile(apkzf, \"assets/\" + libname, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n File file16 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file16);\r\n for (int file_count2 = 0; file_count2 < file_count; file_count2++) {\r\n int deletedexresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count2)).toString());\r\n int deletejarresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(CreatenewFileName(securename1, \".\", \"_\" + file_count2)).toString());\r\n int deleteodexresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count2)).toString());\r\n int deleteflagresult2 = DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count2)).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(backupfilepath)).append(\"/\").append(\"oat/arm\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count2)).toString());\r\n if (ERROR_FILE_NOT_FOUND == deletedexresult2 && ERROR_FILE_NOT_FOUND == deletejarresult2 && ERROR_FILE_NOT_FOUND == deleteodexresult2) {\r\n break;\r\n }\r\n if (ERROR_EXCEPTION == deletedexresult2 || ERROR_EXCEPTION == deletejarresult2 || ERROR_EXCEPTION == deleteodexresult2) {\r\n Process.killProcess(Process.myPid());\r\n System.exit(0);\r\n }\r\n }\r\n for (int file_count3 = 0; file_count3 < file_count; file_count3++) {\r\n int deletedexresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count3)).toString());\r\n int deletejarresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(CreatenewFileName(securename1, \".\", \"_\" + file_count3)).toString());\r\n int deleteodexresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename0, \".\", \"_\" + file_count3)).toString());\r\n int deleteflagresult3 = DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(\"odexdir\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count3)).toString());\r\n DeleteFile(new StringBuilder(String.valueOf(firstloadfilepath)).append(\"/\").append(\"oat/arm\").append(\"/\").append(CreatenewFileName(securename8, \".\", \"_\" + file_count3)).toString());\r\n if (ERROR_FILE_NOT_FOUND == deletedexresult3 && ERROR_FILE_NOT_FOUND == deletejarresult3 && ERROR_FILE_NOT_FOUND == deleteodexresult3) {\r\n break;\r\n }\r\n if (ERROR_EXCEPTION == deletedexresult3 || ERROR_EXCEPTION == deletejarresult3 || ERROR_EXCEPTION == deleteodexresult3) {\r\n Process.killProcess(Process.myPid());\r\n System.exit(0);\r\n }\r\n }\r\n ZipEntry fileUnzip8 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip8 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString(), fileUnzip8.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip9 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip9 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString(), fileUnzip9.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip10 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip10 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString(), fileUnzip10.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip11 = apkzf.getEntry(Cookiefileinzip);\r\n if (fileUnzip11 != null && !isFileValid(Cookiefilepath, fileUnzip11.getSize())) {\r\n File file17 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file17);\r\n }\r\n if (file_lock != null) {\r\n try {\r\n file_lock.release();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e14) {\r\n e14.printStackTrace();\r\n RandomAccessFile randomAccessFile15 = raf;\r\n File file18 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e15) {\r\n e15.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e16) {\r\n e16.printStackTrace();\r\n RandomAccessFile randomAccessFile16 = raf;\r\n File file19 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile17 = raf;\r\n File file20 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e17) {\r\n e17.printStackTrace();\r\n RandomAccessFile randomAccessFile18 = raf;\r\n File file21 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n } catch (IOException e18) {\r\n e18.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e19) {\r\n e19.printStackTrace();\r\n RandomAccessFile randomAccessFile19 = raf;\r\n File file22 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e20) {\r\n e20.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e21) {\r\n e21.printStackTrace();\r\n RandomAccessFile randomAccessFile20 = raf;\r\n File file23 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile21 = raf;\r\n File file24 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e22) {\r\n e22.printStackTrace();\r\n RandomAccessFile randomAccessFile22 = raf;\r\n File file25 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n RandomAccessFile randomAccessFile23 = raf;\r\n File file26 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e23) {\r\n e23.printStackTrace();\r\n RandomAccessFile randomAccessFile24 = raf;\r\n File file27 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e24) {\r\n e24.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e25) {\r\n e25.printStackTrace();\r\n RandomAccessFile randomAccessFile25 = raf;\r\n File file28 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n RandomAccessFile randomAccessFile26 = raf;\r\n File file29 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e26) {\r\n e26.printStackTrace();\r\n RandomAccessFile randomAccessFile27 = raf;\r\n File file30 = Cookiefile;\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n RandomAccessFile randomAccessFile28 = raf;\r\n File file31 = Cookiefile;\r\n return 0;\r\n } catch (Exception e27) {\r\n e = e27;\r\n raf2 = raf;\r\n File file32 = Cookiefile;\r\n } catch (Throwable th) {\r\n th = th;\r\n raf2 = raf;\r\n File file33 = Cookiefile;\r\n ZipEntry fileUnzip12 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip12 != null && !isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString(), fileUnzip12.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n }\r\n ZipEntry fileUnzip13 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip13 != null && !isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString(), fileUnzip13.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n }\r\n ZipEntry fileUnzip14 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip14 != null && !isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString(), fileUnzip14.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n }\r\n ZipEntry fileUnzip15 = apkzf.getEntry(Cookiefileinzip);\r\n if (fileUnzip15 != null && !isFileValid(Cookiefilepath, fileUnzip15.getSize())) {\r\n File file34 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file34);\r\n }\r\n if (file_lock != null) {\r\n try {\r\n file_lock.release();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e28) {\r\n e28.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e29) {\r\n e29.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e30) {\r\n e30.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e31) {\r\n e31.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n } catch (IOException e32) {\r\n e32.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e33) {\r\n e33.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e34) {\r\n e34.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e35) {\r\n e35.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e36) {\r\n e36.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e37) {\r\n e37.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e38) {\r\n e38.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e39) {\r\n e39.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e40) {\r\n e40.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n throw th;\r\n }\r\n } catch (Exception e41) {\r\n e = e41;\r\n raf2 = raf;\r\n try {\r\n e.printStackTrace();\r\n fileUnzip = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString(), fileUnzip.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n }\r\n }\r\n fileUnzip2 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip2 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString(), fileUnzip2.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n }\r\n }\r\n fileUnzip3 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip3 != null) {\r\n if (!isFileValid(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString(), fileUnzip3.getSize())) {\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n }\r\n }\r\n ZipEntry fileUnzip16 = apkzf.getEntry(Cookiefileinzip);\r\n if (fileUnzip16 != null && !isFileValid(Cookiefilepath, fileUnzip16.getSize())) {\r\n File file35 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file35);\r\n }\r\n if (file_lock != null) {\r\n try {\r\n file_lock.release();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e42) {\r\n e42.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e43) {\r\n e43.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e44) {\r\n e44.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e45) {\r\n e45.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n } catch (IOException e46) {\r\n e46.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e47) {\r\n e47.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e48) {\r\n e48.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e49) {\r\n e49.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e50) {\r\n e50.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e51) {\r\n e51.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n } catch (IOException e52) {\r\n e52.printStackTrace();\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e53) {\r\n e53.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } finally {\r\n if (raf != null) {\r\n try {\r\n raf.close();\r\n } catch (IOException e54) {\r\n e54.printStackTrace();\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n } catch (Throwable th2) {\r\n th = th2;\r\n ZipEntry fileUnzip122 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n ZipEntry fileUnzip132 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n ZipEntry fileUnzip142 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n ZipEntry fileUnzip152 = apkzf.getEntry(Cookiefileinzip);\r\n File file342 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file342);\r\n if (file_lock != null) {\r\n }\r\n throw th;\r\n }\r\n } catch (Throwable th3) {\r\n th = th3;\r\n raf2 = raf;\r\n ZipEntry fileUnzip1222 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + Libnameinapk, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(libname).toString()));\r\n ZipEntry fileUnzip1322 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + securename6, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename6).toString()));\r\n ZipEntry fileUnzip1422 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n UnzipFile(apkzf, \"assets/\" + securename7, new File(new StringBuilder(String.valueOf(Appfiledir)).append(\"/\").append(securename7).toString()));\r\n ZipEntry fileUnzip1522 = apkzf.getEntry(Cookiefileinzip);\r\n File file3422 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file3422);\r\n if (file_lock != null) {\r\n }\r\n throw th;\r\n }\r\n } catch (Exception e55) {\r\n e = e55;\r\n e.printStackTrace();\r\n fileUnzip = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip != null) {\r\n }\r\n fileUnzip2 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip2 != null) {\r\n }\r\n fileUnzip3 = apkzf.getEntry(\"assets/\" + Libnameinapk);\r\n if (fileUnzip3 != null) {\r\n }\r\n ZipEntry fileUnzip162 = apkzf.getEntry(Cookiefileinzip);\r\n File file352 = new File(Cookiefilepath);\r\n UnzipFile(apkzf, Cookiefileinzip, file352);\r\n if (file_lock != null) {\r\n }\r\n return ERROR_FILE_NOT_FOUND;\r\n }\r\n }",
"abstract public void setDataResourcesDir(String path);",
"void copyFolder(OrionCMContext ctx, Long sourceId, Long targetFolderId, List<SolutionParam> solutions) throws PhoenixDataAccessException, IOException;",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmyAssetInstaller.copyAll();\n\n\t\t\t\t\tringProgressDialog.dismiss();\n\t\t\t\t}",
"private void importResourcesIntoSiteMigrate(String toSiteId,\r\n\t String fromSiteId) {\r\n\t// We first get the resources used in co (stored in documentSecurityMap)\r\n\tCOSerialized co =\r\n\t\tosylSiteService\r\n\t\t\t.getUnfusionnedSerializedCourseOutlineBySiteId(fromSiteId);\r\n\tCOModeledServer coModeled = new COModeledServer(co);\r\n\tcoModeled.XML2Model(true);\r\n\tcoModeled.model2XML();\r\n\tco.setContent(coModeled.getSerializedContent());\r\n\r\n\tMap<String, String> documentSecurityMap =\r\n\t\tcoModeled.getDocumentSecurityMap();\r\n\r\n\t// We loop over the resources of the site and copy the referenced ones\r\n\tString valFromSite_ref =\r\n\t\tcontentHostingService.getSiteCollection(fromSiteId);\r\n\tString valToSite_ref =\r\n\t\tcontentHostingService.getSiteCollection(toSiteId);\r\n\tString fromSite_ref =\r\n\t\tcontentHostingService.getReference(valFromSite_ref)\r\n\t\t\t.substring(8);\r\n\tString toSite_ref =\r\n\t\tcontentHostingService.getReference(valToSite_ref).substring(8);\r\n\r\n\tString id_work;\r\n\ttry {\r\n\t id_work = (fromSite_ref);\r\n\t ContentCollection directory =\r\n\t\t contentHostingService.getCollection(id_work);\r\n\r\n\t copyResourcesFromDirectory(directory,\r\n\t\t toSite_ref, documentSecurityMap);\r\n\t} catch (Exception e) {\r\n\t log.error(\"Unable to copy the resources during the site copy\", e);\r\n\t}\r\n }",
"private void cleanTempFolder() {\n File tmpFolder = new File(getTmpPath());\n if (tmpFolder.isDirectory()) {\n String[] children = tmpFolder.list();\n for (int i = 0; i < children.length; i++) {\n if (children[i].startsWith(TMP_IMAGE_PREFIX)) {\n new File(tmpFolder, children[i]).delete();\n }\n }\n }\n }",
"private void addSystemDirFilesToImage() throws IOException {\n File sourceSystemDir = new File(builderContext.sourceTbOptionsDir, \"system.v2\");\n if (!isValidCSMSource(sourceSystemDir)) {\n // Fall back to the system default, ~/Amplio/ACM/system.v2\n sourceSystemDir = new File(AmplioHome.getAppSoftwareDir(), \"system.v2\");\n }\n\n File targetSystemDir = new File(imageDir, \"system\");\n\n // The csm_data.txt file. Control file for the TB.\n File csmData = new File(sourceSystemDir, \"csm_data.txt\");\n FileUtils.copyFileToDirectory(csmData, targetSystemDir);\n\n // Optionally, the source for csm_data.txt file. \n File controlDefFile = new File(sourceSystemDir, \"control_def.txt\");\n if (controlDefFile.exists()) {\n FileUtils.copyFileToDirectory(controlDefFile, targetSystemDir);\n }\n\n // If UF is hidden in the deployment, copy the appropriate 'uf.der' file to 'system/'\n if (deploymentInfo.isUfHidden()) {\n UfKeyHelper ufKeyHelper = new UfKeyHelper(builderContext.project);\n byte[] publicKey = ufKeyHelper.getPublicKeyFor(builderContext.deploymentNo);\n File derFile = new File(targetSystemDir, \"uf.der\");\n try (FileOutputStream fos = new FileOutputStream(derFile);\n DataOutputStream dos = new DataOutputStream(fos)){\n dos.write(publicKey);\n }\n }\n }",
"public static void createTempMapsetName() {\r\n UUID id;\r\n String tmpPrefix;\r\n String tmpSuffix;\r\n String tmpBase;\r\n String tmpFolder;\r\n\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n tmpBase = new String(System.getProperty(\"java.io.tmpdir\"));\r\n if (tmpBase.endsWith(File.separator)) {\r\n tmpFolder = new String(tmpBase + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n else {\r\n tmpFolder = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n m_sGrassTempMapsetFolder = tmpFolder;\r\n\r\n }",
"public static void copyResource(final Resource source, final Resource dest,\n final FilterSetCollection filters, final Vector<FilterChain> filterChains,\n final boolean overwrite, final boolean preserveLastModified,\n final String inputEncoding, final String outputEncoding,\n final Project project)\n throws IOException {\n copyResource(source, dest, filters, filterChains, overwrite, preserveLastModified, false, inputEncoding, outputEncoding, project);\n }",
"private File copyFiles(String filename, String directoryName) throws IOException { //after\n boolean success = false;\n String finalPath = this.rootLocation + \"/\" + directoryName +\"/\"+ filename;\n String tmpPath = this.tmpLocation + \"/\"+ filename;\n File finalFile = new File(finalPath);\n File directory = new File(this.rootLocation + \"/\" +directoryName);\n if (!directory.exists()) {\n directory.mkdir();\n }\n File tmpFile = new File(tmpPath);\n if(tmpFile.exists() && !tmpFile.isDirectory() && directory.exists() && directory.isDirectory()){\n if(finalFile.exists() && !finalFile.isDirectory()){\n finalFile = getNewName(finalPath);\n log.debug(\"compareToFiles -> rename to \"+ finalFile.getName());\n }\n success = copyFileUsingStream(tmpFile, finalFile);\n }\n\n log.debug(\"success copy...\"+success);\n return finalFile;\n }",
"private void copyFile( final File source, final File target )\n throws MojoExecutionException\n {\n if ( source.exists() == false )\n {\n throw new MojoExecutionException( \"Source file '\" + source.getAbsolutePath() + \"' does not exist!\" );\n }\n if ( target.exists() == true )\n {\n throw new MojoExecutionException( \"Target file '\" + source.getAbsolutePath() + \"' already existing!\" );\n }\n\n try\n {\n this.logger.debug( \"Copying file from '\" + source.getAbsolutePath() + \"' to \" + \"'\"\n + target.getAbsolutePath() + \"'.\" );\n PtFileUtil.copyFile( source, target );\n }\n catch ( PtException e )\n {\n throw new MojoExecutionException( \"Could not copy file from '\" + source.getAbsolutePath() + \"' to \" + \"'\"\n + target.getAbsolutePath() + \"'!\", e );\n }\n }",
"public static void unpackFiles() throws IOException {\n if(!new File(\"src/main/resources/tmp\").exists() || (Objects.requireNonNull(new File(\"src/main/resources/tmp\").list()).length != IO.sourceFiles.size())) {\n IO.unzipFiles();\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/ham_Calibration\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.HAM_CAL)).size()) {\n IO.unzipFiles(EmailTypes.HAM_CAL);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/ham_Test\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.HAM_TEST)).size()) {\n IO.unzipFiles(EmailTypes.HAM_TEST);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/ham_Train\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.HAM_TRAIN)).size()) {\n IO.unzipFiles(EmailTypes.HAM_TRAIN);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/spam_Calibration\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.SPAM_CAL)).size()) {\n IO.unzipFiles(EmailTypes.SPAM_CAL);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/spam_Test\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.SPAM_TEST)).size()) {\n IO.unzipFiles(EmailTypes.SPAM_TEST);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/spam_Train\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.SPAM_TRAIN)).size()) {\n IO.unzipFiles(EmailTypes.SPAM_TRAIN);\n } else {\n System.out.println(\"Files already unpacked - skipping\\n\");\n }\n calculateSizes();\n }",
"public static void copyFile(String from, String to) throws IOException{\r\n Path src = Paths.get(from); // set path of source directory from parent function\r\n Path dest = Paths.get(to); // set path of destination directory from parent function\r\n Files.copy(src, dest); //inbuilt function to copy files\r\n \r\n }",
"@Test\n public void testTempDirectory() {\n assertTrue(getTempDirPath().indexOf(File.separator\n\t+ \"TestSpringLockssTestCase\") > -1);\n assertTrue(getTempDirPath().endsWith(\".tmp\"));\n }",
"public static void copyAll(File root, File dest) throws IOException {\n if(root.isDirectory()){\n for(File child : root.listFiles()){\n File childDest = new File(dest, child.getName());\n if(child.isDirectory()){\n if(!childDest.exists() && !childDest.mkdirs())\n throw new IOException(\"Failed to create dir \"+childDest.getPath());\n copyAll(child, childDest);\n }else{\n Files.copy(child.toPath(), childDest.toPath(), StandardCopyOption.COPY_ATTRIBUTES);\n }\n }\n }else{\n File childDest = new File(dest, root.getName());\n if(!dest.exists() && !dest.mkdirs())\n throw new IOException(\"Failed to create dir \"+dest.getPath());\n Files.copy(root.toPath(), childDest.toPath(), StandardCopyOption.COPY_ATTRIBUTES);\n }\n }",
"public static void smartCopyDirectory(String from, String to, IProgressMonitor monitor) {\n \t\ttry {\n \t\t\tFile fromDir = new File(from);\n \t\t\tFile toDir = new File(to);\n \t\n \t\t\tFile[] fromFiles = fromDir.listFiles();\n \t\t\tint fromSize = fromFiles.length;\n \t\n \t\t\tmonitor = ProgressUtil.getMonitorFor(monitor);\n \t\t\tmonitor.beginTask(NLS.bind(Messages.copyingTask, new String[] {from, to}), 550);\n \t\n \t\t\tFile[] toFiles = null;\n \t\n \t\t\t// delete old files and directories from this directory\n \t\t\tif (toDir.exists() && toDir.isDirectory()) {\n \t\t\t\ttoFiles = toDir.listFiles();\n \t\t\t\tint toSize = toFiles.length;\n \t\n \t\t\t\t// check if this exact file exists in the new directory\n \t\t\t\tfor (int i = 0; i < toSize; i++) {\n \t\t\t\t\tString name = toFiles[i].getName();\n \t\t\t\t\tboolean isDir = toFiles[i].isDirectory();\n \t\t\t\t\tboolean found = false;\n \t\t\t\t\tfor (int j = 0; j < fromSize; j++) {\n \t\t\t\t\t\tif (name.equals(fromFiles[j].getName()) && isDir == fromFiles[j].isDirectory())\n \t\t\t\t\t\t\tfound = true;\n \t\t\t\t\t}\n \t\n \t\t\t\t\t// delete file if it can't be found or isn't the correct type\n \t\t\t\t\tif (!found) {\n \t\t\t\t\t\tif (isDir)\n \t\t\t\t\t\t\tPublishUtil.deleteDirectory(toFiles[i], null);\n \t\t\t\t\t\telse\n \t\t\t\t\t\t\ttoFiles[i].delete();\n \t\t\t\t\t}\n \t\t\t\t\tif (monitor.isCanceled())\n \t\t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tif (toDir.isFile())\n \t\t\t\t\ttoDir.delete();\n \t\t\t\ttoDir.mkdir();\n \t\t\t}\n \t\t\tmonitor.worked(50);\n \t\n \t\t\t// cycle through files and only copy when it doesn't exist\n \t\t\t// or is newer\n \t\t\ttoFiles = toDir.listFiles();\n \t\t\tint toSize = toFiles.length;\n \t\t\tint dw = 0;\n \t\t\tif (toSize > 0)\n \t\t\t\tdw = 500 / toSize;\n \t\n \t\t\tfor (int i = 0; i < fromSize; i++) {\n \t\t\t\tFile current = fromFiles[i];\n \t\n \t\t\t\t// check if this is a new or newer file\n \t\t\t\tboolean copy = true;\n \t\t\t\tif (!current.isDirectory()) {\n \t\t\t\t\tString name = current.getName();\n \t\t\t\t\tlong mod = current.lastModified();\n \t\t\t\t\tfor (int j = 0; j < toSize; j++) {\n \t\t\t\t\t\tif (name.equals(toFiles[j].getName()) && mod <= toFiles[j].lastModified())\n \t\t\t\t\t\t\tcopy = false;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\n \t\t\t\tif (copy) {\n \t\t\t\t\tString fromFile = current.getAbsolutePath();\n \t\t\t\t\tString toFile = to;\n \t\t\t\t\tif (!toFile.endsWith(File.separator))\n \t\t\t\t\t\ttoFile += File.separator;\n \t\t\t\t\ttoFile += current.getName();\n \t\t\t\t\tif (current.isFile()) {\n \t\t\t\t\t\tcopyFile(fromFile, toFile);\n \t\t\t\t\t\tmonitor.worked(dw);\n \t\t\t\t\t} else if (current.isDirectory()) {\n \t\t\t\t\t\tmonitor.subTask(NLS.bind(Messages.copyingTask, new String[] {fromFile, toFile}));\n \t\t\t\t\t\tsmartCopyDirectory(fromFile, toFile, ProgressUtil.getSubMonitorFor(monitor, dw));\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif (monitor.isCanceled())\n \t\t\t\t\treturn;\n \t\t\t}\n \t\t\tmonitor.worked(500 - dw * toSize);\n \t\t\tmonitor.done();\n \t\t} catch (Exception e) {\n \t\t\tTrace.trace(Trace.SEVERE, \"Error smart copying directory \" + from + \" - \" + to, e);\n \t\t}\n \t}",
"public static void settleTsFilesAndMods(Map<String, TsFileResource> resourcesToBeSettled) {\n int successCount = 0;\n Map<String, List<TsFileResource>> newTsFileResources = new HashMap<>();\n SettleLog.createSettleLog();\n for (Map.Entry<String, TsFileResource> entry : resourcesToBeSettled.entrySet()) {\n TsFileResource resourceToBeSettled = entry.getValue();\n List<TsFileResource> settledTsFileResources = new ArrayList<>();\n try {\n TsFileAndModSettleTool tsFileAndModSettleTool = TsFileAndModSettleTool.getInstance();\n logger.info(\"Start settling for tsFile : {}\", resourceToBeSettled.getTsFilePath());\n if (tsFileAndModSettleTool.isSettledFileGenerated(resourceToBeSettled)) {\n settledTsFileResources = tsFileAndModSettleTool.findSettledFile(resourceToBeSettled);\n newTsFileResources.put(resourceToBeSettled.getTsFile().getName(), settledTsFileResources);\n } else {\n // Write Settle Log, Status 1\n SettleLog.writeSettleLog(\n resourceToBeSettled.getTsFilePath()\n + SettleLog.COMMA_SEPERATOR\n + SettleCheckStatus.BEGIN_SETTLE_FILE);\n tsFileAndModSettleTool.settleOneTsFileAndMod(resourceToBeSettled, settledTsFileResources);\n // Write Settle Log, Status 2\n SettleLog.writeSettleLog(\n resourceToBeSettled.getTsFilePath()\n + SettleLog.COMMA_SEPERATOR\n + SettleCheckStatus.AFTER_SETTLE_FILE);\n newTsFileResources.put(resourceToBeSettled.getTsFile().getName(), settledTsFileResources);\n }\n\n moveNewTsFile(resourceToBeSettled, settledTsFileResources);\n // Write Settle Log, Status 3\n SettleLog.writeSettleLog(\n resourceToBeSettled.getTsFilePath()\n + SettleLog.COMMA_SEPERATOR\n + SettleCheckStatus.SETTLE_SUCCESS);\n logger.info(\n \"Finish settling successfully for tsFile : {}\", resourceToBeSettled.getTsFilePath());\n successCount++;\n } catch (Exception e) {\n logger.info(\n \"Meet error while settling the tsFile : {}\", resourceToBeSettled.getTsFilePath());\n e.printStackTrace();\n }\n }\n if (resourcesToBeSettled.size() == successCount) {\n SettleLog.closeLogWriter();\n logger.info(\"Finish settling all tsfiles Successfully!\");\n } else {\n logger.info(\n \"Finish Settling, {} tsfiles meet errors.\", (resourcesToBeSettled.size() - successCount));\n }\n }",
"static void writePublicResources(File moduleOutputDir, ModuleDef module,\n TreeLogger compileLogger) throws UnableToCompleteException, IOException {\n ResourceOracleImpl publicResources = module.getPublicResourceOracle();\n for (String pathName : publicResources.getPathNames()) {\n File file = new File(moduleOutputDir, pathName);\n File parent = file.getParentFile();\n if (!parent.isDirectory() && !parent.mkdirs()) {\n compileLogger.log(Type.ERROR, \"cannot create directory: \" + parent);\n throw new UnableToCompleteException();\n }\n Files.asByteSink(file).writeFrom(publicResources.getResourceAsStream(pathName));\n }\n }",
"public static void main(String[] args) throws IOException {\n\t \n\t copyInputFilesToOutputDirectory();\n\t \n\t System.out.println(\"done\"); \n\t \n\t \n\t \n\t}",
"@Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();",
"abstract public String getDataResourcesDir();",
"public static void walk(String args) throws URISyntaxException, IOException {\n URI uri = ResourceWalker.class.getResource(args).toURI();\n if (uri.getScheme().equals(\"jar\")) {\n FileSystems.newFileSystem(uri, Collections.emptyMap());\n }\n Path myPath = Paths.get(uri);\n Files.walkFileTree(myPath, new SimpleFileVisitor<>() {\n @Override\n public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) {\n generateTemp(path);\n return FileVisitResult.CONTINUE;\n }\n });\n if (uri.getScheme().equals(\"jar\")) {\n FileSystems.getFileSystem(uri).close();\n }\n }",
"private void copyResourcesFromDirectory(ContentCollection directory,\r\n\t String toSite_ref, Map<String, String> documentSecurityMap){\r\n \ttry {\r\n \tList<ContentEntity> members = directory.getMemberResources();\r\n \t for (Iterator<ContentEntity> iMbrs = members.iterator(); iMbrs\r\n \t\t .hasNext();) {\r\n \t\tContentEntity next = (ContentEntity) iMbrs.next();\r\n\r\n \t\tString thisEntityRef = next.getId();\r\n\r\n\r\n \t\t//if this is a directory\r\n \t\tif (\"org.sakaiproject.content.types.folder\".equals(next.getResourceType())){\r\n \t\tContentCollection subdirectory =(ContentCollection) next;\r\n\r\n \t\t\t//we get the new destination directory\r\n \t\tString toSubSite_ref = toSite_ref +\r\n \t\t\tthisEntityRef.substring(directory.getId().lastIndexOf(\"/\") + 1);\r\n\r\n \t\t//we call recursively the same function\r\n \t\tcopyResourcesFromDirectory(subdirectory,\r\n \t\t\ttoSubSite_ref, documentSecurityMap);\r\n \t\t}\r\n \t\telse{\r\n \t\tString permission = documentSecurityMap.get(thisEntityRef);\r\n\r\n \t\t// we copy if doc exists in CO or if it is doc references\r\n \t\tif (permission != null || \"org.sakaiproject.citation.impl.CitationList\".equals(next.getResourceType())) {\r\n \t\t contentHostingService.copyIntoFolder(thisEntityRef,\r\n \t\t\t toSite_ref);\r\n \t\t}\r\n \t\t}\r\n \t }\r\n \t} catch (Exception e) {\r\n \t log.error(\"Unable to copy the resources from directory\", e);\r\n \t}\r\n }",
"static void copyFile(File srcFile, File destFile) {\n\t\ttry {\n\t\t\tLong start = System.currentTimeMillis();\n\t\t\tdestFile.createNewFile();\n\t\t\tInputStream oInStream = new FileInputStream(srcFile);\n\t\t\tOutputStream oOutStream = new FileOutputStream(destFile);\n\n\t\t\t// Transfer bytes from in to out\n\t\t\tbyte[] oBytes = new byte[1024];\n\t\t\tint nLength;\n\t\t\tBufferedInputStream oBuffInputStream = \n\t\t\t\t\tnew BufferedInputStream( oInStream );\n\t\t\twhile ((nLength = oBuffInputStream.read(oBytes)) > 0) {\n\t\t\t\toOutStream.write(oBytes, 0, nLength);\n\t\t\t}\n\t\t\toInStream.close();\n\t\t\toOutStream.close();\n\t\t\tLong end = System.currentTimeMillis();\n\t\t\tSystem.out.println((end-start));\n\t\t} catch (IOException e) {\n\t\t\tlogger.info(\"Error in creating the excels :\" +e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void copyPaste(VMResource copiedRes, long targetId, TreeNode treeNode) {\n\n // copy and paste for Folder\n if (copiedRes instanceof VMDirectory) {\n String name = copiedRes.getName();\n if (treeNode != null && isSameNameExist(treeNode, name, true, \"\")) {\n name += \" - Copy\";\n if (copyNumber != 0) {\n name += \" (\" + copyNumber + \")\";\n }\n }\n VMDirectory newDir = new VMDirectory();\n newDir.setName(name);\n ZGCreateDirCommand createDirCommand = new ZGCreateDirCommand(editResourceService, viewHandler, targetId, newDir);\n createDirCommand.addCommandListener(new CommandListener() {\n\n @Override\n public void undoEvent() {\n treeGrid.deselectAllRecords();\n fileTreeNodeFactory.removeVMResource(createDirCommand.getFileId());\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n\n @Override\n public void redoEvent() {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, createDirCommand.getParentId()), createDirCommand.getDirectory(), createDirCommand.getFileId(),\n false);\n getCopiedResources().get(copiedRes).forEach(res -> {\n copyPaste(res, createDirCommand.getDirectory().getId(), null);\n });\n }\n\n @Override\n public void executeEvent() {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, createDirCommand.getParentId()), createDirCommand.getDirectory(), createDirCommand.getFileId(),\n false);\n // copy and paste for child resources\n getCopiedResources().get(copiedRes).forEach(res -> {\n copyPaste(res, createDirCommand.getDirectory().getId(), null);\n });\n }\n\n @Override\n public void bindEvent() {\n viewHandler.clear();\n registerRightClickEvent();\n }\n\n });\n\n CompoundCommand c = new CompoundCommand();\n c.append(createDirCommand);\n manager.execute(c.unwrap());\n\n } else if (copiedRes instanceof VMFile) { // copy and paste for file\n VMFile oldFile = (VMFile) copiedRes;\n editResourceService.getFileContent(oldFile.getId(), new AsyncCallback<byte[]>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(byte[] result) {\n String fileExtension = oldFile.getExtensionStr();\n VMFile newFile = new VMFile();\n // create new file name\n String fileName = oldFile.getName();\n if (treeNode != null && isSameNameExist(treeNode, fileName, false, fileExtension)) {\n fileName += \" - Copy\";\n if (copyNumber != 0) {\n fileName += \" (\" + copyNumber + \")\";\n }\n }\n newFile.setName(fileName);\n // get data from old file\n byte[] datas = new byte[result.length];\n for (int i = 0; i < result.length; i++) {\n datas[i] = (byte) (result[i] & 0xFF);\n }\n // Set file extension\n newFile.setExtensionStr(fileExtension);\n\n // create new file command\n ZGCreateFileCommand createFileCommand = new ZGCreateFileCommand(editResourceService, viewHandler, targetId, newFile, null);\n createFileCommand.addCommandListener(new CommandListener() {\n\n @Override\n public void undoEvent() {\n treeGrid.deselectAllRecords();\n fileTreeNodeFactory.removeVMResource(createFileCommand.getFileId());\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n\n @Override\n public void redoEvent() {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getParentId()), createFileCommand.getFile(), createFileCommand.getFileId(),\n false);\n editResourceService.saveFile(createFileCommand.getFileId(), datas, new AsyncCallback<Void>() {\n\n @Override\n public void onFailure(Throwable caught) {\n GWT.log(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Void result) {\n fileTreeNodeFactory.getFileTreeNode(tree, createFileCommand.getParentId(), createFileCommand.getFile());\n if (treeGrid.anySelected())\n treeGrid.deselectAllRecords();\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n treeGrid.deselectAllRecords();\n treeGrid.selectRecord(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getFileId()));\n }\n });\n }\n\n @Override\n public void executeEvent() {\n // save old file data\n editResourceService.saveFile(createFileCommand.getFileId(), datas, new AsyncCallback<Void>() {\n\n @Override\n public void onFailure(Throwable caught) {\n GWT.log(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Void result) {\n fileTreeNodeFactory.getFileTreeNode(tree, createFileCommand.getParentId(), createFileCommand.getFile());\n if (treeGrid.anySelected())\n treeGrid.deselectAllRecords();\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n treeGrid.deselectAllRecords();\n treeGrid.selectRecord(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getFileId()));\n }\n });\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getParentId()), createFileCommand.getFile(), createFileCommand.getFileId(),\n false);\n }\n\n @Override\n public void bindEvent() {\n viewHandler.clear();\n registerRightClickEvent();\n }\n });\n CompoundCommand c = new CompoundCommand();\n c.append(createFileCommand);\n manager.execute(c.unwrap());\n }\n\n });\n }\n }",
"@Test\n public final void whenConvertingToFile_thenCorrect() throws IOException {\n final Path path = Paths.get(\"src/test/resources/sample.txt\");\n final byte[] buffer = java.nio.file.Files.readAllBytes(path);\n\n final File targetFile = new File(\"src/test/resources/targetFile.tmp\");\n final OutputStream outStream = new FileOutputStream(targetFile);\n outStream.write(buffer);\n\n IOUtils.closeQuietly(outStream);\n }",
"public void resourcesLocation (String folder) {\n staticFileFolder = folder.startsWith (\"/\")? folder.substring (1) : folder;\n }",
"@BeforeAll\n public static void setUp() throws IOException {\n Files.createDirectories(Paths.get(targetPath));\n }",
"public static void copyResource(final Resource source, final Resource dest, final Project project)\n throws IOException {\n copyResource(source, dest, null, null, false,\n false, null, null, project);\n }",
"private void unCompress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint bytesIn;\n\t\t\tZipFile rfoFile = new ZipFile(path + fileName);\n\t\t\tEnumeration<? extends ZipEntry> allFiles = rfoFile.entries();\n\t\t\twhile(allFiles.hasMoreElements())\n\t\t\t{\n\t\t\t\tZipEntry ze = (ZipEntry)allFiles.nextElement();\n\t\t\t\tInputStream is = rfoFile.getInputStream(ze);\n\t\t\t\tString fName = processSeparators(ze.getName());\n\t\t\t\tFile element = new File(tempDir + fName);\n\t\t\t\torg.reprap.Main.ftd.add(element);\n\t\t\t\tFileOutputStream os = new FileOutputStream(element);\n\t\t\t\twhile((bytesIn = is.read(buffer)) != -1) \n\t\t\t\t\tos.write(buffer, 0, bytesIn);\n\t\t\t\tos.close();\n\t\t\t}\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.unCompress(): \" + e);\n\t\t}\n\t}",
"public void copyAll(String src_path, String dest_path) {\n String sub_directory = null;\n for (String device : this.execAdbDevices()) {\n sub_directory = this.deviceid_hostname_map.get(device);\n this.copy(device, src_path, dest_path + File.separator + sub_directory);\n }\n }",
"static void copyFile(File src, File dest) throws IOException {\r\n\t\tFileInputStream fis = new FileInputStream(src);\r\n\t\tFileOutputStream fos = new FileOutputStream (dest);\r\n\t\tbyte[] bytes = new byte[4*1048576];\r\n\t\tint numRead;\r\n\t\twhile ((numRead = fis.read(bytes)) > 0) {\r\n\t\t\tfos.write(bytes, 0, numRead);\r\n\t\t}\r\n\t\tfis.close();\r\n\t\tfos.close();\r\n\t}",
"protected SlotFile copyAndOpen(String fileName) throws IOException {\r\n\t\t\r\n\t\tURL deltaFileUrl = getClass().getResource(fileName);\t\t\r\n\t\tFile tempDeltaFile = File.createTempFile(\"test\", \".dlt\");\r\n\t\t\r\n\t\t_tempFiles.add(tempDeltaFile);\r\n\t\t\r\n\t\tFileUtils.copyURLToFile(deltaFileUrl, tempDeltaFile);\r\n\t\tSlotFile slotFile = new SlotFile(tempDeltaFile.getAbsolutePath(), BinFileMode.FM_EXISTING);\r\n\t\t\r\n\t\treturn slotFile;\r\n\t}",
"public TempFileGenerator(String nameBase, String nameSuffix) throws SOAPIException\r\n {\r\n try{\r\n properties = new Properties(); \r\n properties.load(getClass().getClassLoader().getResourceAsStream(\"soapi.properties\"));\r\n dir = properties.getProperty(\"tempDirectory\"); \r\n }\r\n catch(Exception e)\r\n {\r\n throw new SOAPIException(e);\r\n }\r\n \r\n if (!(new File(dir)).isDirectory()) \r\n dir = \"\";\r\n if (dir == null)\r\n dir = \"\";\r\n init(nameBase, nameSuffix);\r\n }",
"private File getTempFolder(String osBasePath) {\n File baseTempFolder = new File(osBasePath, \"temp\");\n return baseTempFolder;\n }",
"public static void copy(String owner, Path src, Path target) throws CWLException {\r\n final Path finalSrc = toFinalSrcPath(src);\r\n if (src.toFile().exists() && Files.isReadable(src)) {\r\n CopyOption[] options = new CopyOption[] {\r\n StandardCopyOption.COPY_ATTRIBUTES,\r\n StandardCopyOption.REPLACE_EXISTING\r\n };\r\n final Path finalTarget = toFinalTargetPath(src, target);\r\n if (!finalTarget.getParent().toFile().exists()) {\r\n logger.debug(\"mkdir \\\"{}\\\"\", finalTarget.getParent());\r\n mkdirs(owner, finalTarget.getParent());\r\n }\r\n logger.debug(\"copy \\\"{}\\\" to \\\"{}\\\"\", finalSrc, finalTarget);\r\n try {\r\n if (finalSrc.toFile().isDirectory()) {\r\n Files.walkFileTree(finalSrc, new FileVisitor<Path>() {\r\n @Override\r\n public FileVisitResult preVisitDirectory(Path dir,\r\n BasicFileAttributes attrs) throws IOException {\r\n Files.copy(dir, finalTarget.resolve(finalSrc.relativize(dir)),\r\n StandardCopyOption.COPY_ATTRIBUTES);\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\r\n Files.copy(file, finalTarget.resolve(finalSrc.relativize(file)),\r\n StandardCopyOption.COPY_ATTRIBUTES);\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\r\n throw exc;\r\n }\r\n });\r\n } else {\r\n Files.copy(finalSrc, finalTarget, options);\r\n }\r\n } catch (IOException e) {\r\n throw new CWLException(\r\n ResourceLoader.getMessage(\"cwl.io.copy.failed\",\r\n finalSrc.toString(),\r\n finalTarget.toString(),\r\n e.getMessage()),\r\n 255);\r\n }\r\n } else {\r\n throw new CWLException(ResourceLoader.getMessage(\"cwl.io.file.unaccessed\", finalSrc.toString()),\r\n 255);\r\n }\r\n }",
"public static Resource getUserFileResource() throws IOException {\n Path tempFile = Files.createTempFile(\"upload-test-file\", \".jpg\");\n Files.write(tempFile,FileUtils.readFileToByteArray(new File(\"d:/file_test.jpg\"))); \n // \"some test content...\\nline1\\nline2\".getBytes());\n System.out.println(\"uploading: \" + tempFile);\n File file = tempFile.toFile();\n //to upload in-memory bytes use ByteArrayResource instead\n return new FileSystemResource(file);\n }",
"private void copyFolder(File sourceFolder, File destinationFolder) throws IOException {\n //Check if sourceFolder is a directory or file\n //If sourceFolder is file; then copy the file directly to new location\n if (sourceFolder.isDirectory()) {\n //Verify if destinationFolder is already present; If not then create it\n if (!destinationFolder.exists()) {\n destinationFolder.mkdir();\n logAppend(\"Directory created :: \" + destinationFolder);\n nothingDone=false;\n }\n\n //Get all files from source directory\n String files[] = sourceFolder.list();\n\n //Iterate over all files and copy them to destinationFolder one by one\n for (String file : files) {\n\n File srcFile = new File(sourceFolder, file);\n File destFile = new File(destinationFolder, file);\n\n //Recursive function call\n copyFolder(srcFile, destFile);\n }\n } else {\n\n long dateSrc = sourceFolder.lastModified();\n long dateDest = destinationFolder.lastModified();\n\n if (dateSrc > dateDest) {\n //Copy the file content from one place to another\n Files.copy(sourceFolder.toPath(), destinationFolder.toPath(), StandardCopyOption.REPLACE_EXISTING);\n logAppend(\"File copied :: \" + destinationFolder);\n nothingDone=false;\n }\n\n }\n }",
"public void execute() throws MojoExecutionException, MojoFailureException {\n\n File target = new File(getDistfolder());\n\n // only create the target directoty when it doesn't exist\n // no deletion\n if (!target.exists()) {\n target.mkdir();\n } else {\n getLog().warn(\"Using existing target directory \" + target.getAbsolutePath());\n }\n\n getLog().info(\"Target is \" + target);\n\n String excludes2 = getExcludes();\n\n if (excludes2 == null) {\n excludes2 = \"**/.svn/,**/.cvs/\";\n\n getLog().info(\"Configuration for excludes not set. Defaulting to: \\\"\" + excludes2\n + \"\\\". Excludes are ant-fileset-style.\");\n } else {\n if (excludes2.contains(\"__acl\") || excludes2.contains(\"__properties\")) {\n getLog().warn(\"Your excludes \\\"\" + excludes2\n + \"\\\" contains __acl or __properties. You do not want these to be excluded in order to have permissoins and properties work.\");\n }\n }\n\n try {\n String targetLibPath = getTargetLibPath();\n\n if ((null != targetLibPath) && !\"\".equals(targetLibPath)) {\n File targetLibDir = new File(target, targetLibPath);\n\n if (!targetLibDir.exists()) {\n targetLibDir.mkdirs();\n }\n\n if (!targetLibDir.isDirectory()) {\n throw new MojoExecutionException(\"Could not create targetLibdir: \" + targetLibDir.toString());\n }\n\n File jar = new File(jarFile);\n FileUtils.copyFileToDirectory(jar, targetLibDir);\n }\n\n for (Resource resource : srcResources) {\n File source = new File(resource.getDirectory());\n File currentTarget = null;\n\n if (resource.getTargetPath() != null) {\n currentTarget = new File(target, resource.getTargetPath());\n } else {\n currentTarget = target;\n }\n\n String normalized = source.getAbsolutePath();\n int offsetLength = normalized.length();\n\n getLog().debug(\"Normalzed sourcefolder is \" + normalized + \" (Offset is: \" + offsetLength + \")\");\n\n List<String> results = FileUtils.getFileAndDirectoryNames(source, null, excludes2, true, true, true,\n true);\n\n for (String fileName : results) {\n File file = new File(fileName);\n\n String normalizedParent = new File(file.getParent()).getAbsolutePath();\n\n if (offsetLength > normalizedParent.length()) {\n getLog().info(\"Skipping file (its the sourcefolder or a parent of it): \"\n + file.getAbsolutePath());\n getLog().debug(\"Parent: \" + normalizedParent + \" with length \" + normalizedParent.length());\n\n continue;\n }\n\n String relative = file.getParent();\n relative = relative.substring(offsetLength); // cut the target-dir away\n\n getLog().debug(\"Copy \" + file + \" to \" + currentTarget.getPath() + File.separator + relative);\n\n if (file.isFile()) {\n File parent = new File(currentTarget.getPath() + File.separator + relative);\n\n if (!parent.exists()) {\n // create dir if it does not exist\n parent.mkdirs();\n }\n\n FileUtils.copyFileToDirectory(file, parent);\n } else if (file.isDirectory()) {\n // take care about directories (so that empty dirs get created)\n\n File tocreate = new File(currentTarget.getPath() + File.separator + relative + File.separator\n + file.getName());\n getLog().debug(\"Creating dir\" + tocreate.toString());\n tocreate.mkdirs();\n }\n }\n }\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could copy file(s) to directory\", ex);\n }\n }",
"@Override\n public boolean doWork() {\n\n logger.debug(\"CopyCommand->doWork()\");\n\n // Parameter ermitteln\n strSrcFile = getValueForKey(CONST_PARAM_SCRFILE);\n strDestFile = getValueForKey(CONST_PARAM_DESTFILE);\n bIsDirectory = Boolean.parseBoolean(getValueForKey(CONST_PARAM_ISDIRECTORY));\n\n // TODO: richtigen Replaces einfuegen\n VarReplace objVarRepl = new VarReplace();\n strSrcFile = objVarRepl.replacePlaceholder(strSrcFile);\n strDestFile = objVarRepl.replacePlaceholder(strDestFile);\n\n if ((strSrcFile == null) || (strDestFile == null)) {\n return false;\n }\n else if (new File(strSrcFile).isDirectory()) {\n try {\n FileUtils.copyDirectory(new File(strSrcFile), new File(strDestFile));\n }\n catch (IOException ioe) {\n logger.error(\" unable to copy file: \" + ioe.getMessage());\n }\n return true;\n\n }\n else {\n try {\n if (new File(strDestFile).getName().startsWith(\"v\")\n || new File(strDestFile).getName().startsWith(\"z\")) {\n strDestFile = new File(strDestFile).getParent() + File.separator\n + new File(strDestFile).getName().toUpperCase();\n }\n logger.debug(\"srcFile: \" + strSrcFile + \", destFile: \" + strDestFile);\n\n if (!new File(strSrcFile).getParentFile().exists()) {\n logger.debug(\"srcFile parent folder existiert nicht: \" + new File(strSrcFile).getParent());\n }\n\n if (!new File(strSrcFile).exists()) {\n logger.debug(\"srcFile existiert nicht: \" + new File(strSrcFile).getAbsolutePath());\n }\n\n if (!new File(strDestFile).getParentFile().exists()) {\n logger.debug(\"destFile parent folder existstiert nicht: \"\n + new File(strDestFile).getParentFile().getAbsolutePath());\n new File(strDestFile).getParentFile().mkdirs();\n }\n\n FileUtils.copyFile(new File(strSrcFile), new File(strDestFile));\n }\n catch (IOException ioe) {\n\n logger.error(\" unable to copy file: \" + ioe.getMessage());\n\n ioe.printStackTrace();\n\n while (iCounter < 20) {\n\n logger.debug(\"IOException loop: \" + iCounter);\n\n try {\n logger.debug(\"wait 20 seconds\");\n Thread.sleep(TimeUnit.SECONDS.toMillis(20));\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n try {\n FileUtils.copyFile(new File(strSrcFile), new File(strDestFile));\n logger.debug(\"break loop\");\n break;\n }\n catch (IOException e) {\n\n logger.debug(\"again an exception: \" + e.getMessage());\n }\n\n iCounter++ ;\n\n logger.debug(\"try it ounce again\");\n\n }\n\n }\n return true;\n }\n\n }",
"private void migrate (String name)\t{\n\t\ttry{\n\t\t\tFile f1 = new File( sourceDir + name);\n\t\t\t\n\t\t\tif (!f1.exists())\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tFile f2 = new File(targetDir +name);\n\t\t\t\n\t\t InputStream in = new FileInputStream(f1);\n\t\t \n\t\t OutputStream out = new FileOutputStream(f2);\n\n\t\t byte[] buf = new byte[1024];\n\t\t int len;\n\t\t while ((len = in.read(buf)) > 0){\n\t\t out.write(buf, 0, len);\n\t\t }\n\t\t in.close();\n\t\t out.close();\n\t\t System.out.println(\"File copied.\");\n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t System.out.println(ex.getMessage() + \" in the specified directory.\");\n\t\t System.exit(0);\n\t\t }\n\t\t catch(IOException e){\n\t\t System.out.println(e.getMessage()); \n\t\t }\n\t}"
] | [
"0.7063075",
"0.66176504",
"0.646293",
"0.62660253",
"0.62050384",
"0.6117399",
"0.5975509",
"0.59645265",
"0.59293735",
"0.590652",
"0.5906508",
"0.58921343",
"0.58873385",
"0.5876905",
"0.5844196",
"0.5824878",
"0.5759147",
"0.57511055",
"0.5686994",
"0.5651869",
"0.5605041",
"0.5601729",
"0.55862606",
"0.5583249",
"0.55575144",
"0.55418825",
"0.5502905",
"0.5502902",
"0.5488219",
"0.54777706",
"0.5433892",
"0.5432474",
"0.54118145",
"0.5380059",
"0.53406394",
"0.53349406",
"0.5332655",
"0.53319407",
"0.5323869",
"0.5323364",
"0.5309407",
"0.52956724",
"0.5275169",
"0.52643615",
"0.52605605",
"0.5222202",
"0.5212169",
"0.52109027",
"0.52072406",
"0.51915556",
"0.5191523",
"0.5176018",
"0.5155888",
"0.51518625",
"0.51513505",
"0.51228297",
"0.51168144",
"0.5110971",
"0.5092655",
"0.50922835",
"0.5090554",
"0.50770223",
"0.5074309",
"0.5066942",
"0.5060731",
"0.50529885",
"0.5038584",
"0.501825",
"0.5016615",
"0.5016399",
"0.5003749",
"0.4998829",
"0.49981028",
"0.49836594",
"0.4981414",
"0.49796897",
"0.4972357",
"0.49640182",
"0.4959804",
"0.49526602",
"0.49523693",
"0.4947832",
"0.49371827",
"0.49358663",
"0.49339956",
"0.49303257",
"0.4917762",
"0.4911082",
"0.49004102",
"0.49000844",
"0.4898874",
"0.48973718",
"0.48946851",
"0.48920324",
"0.4884076",
"0.4881145",
"0.4879849",
"0.4875832",
"0.48723355",
"0.48708495",
"0.48685306"
] | 0.0 | -1 |
/ You need to pass current activity in order to let Razorpay create CheckoutActivity | public void startPayment() {
double ruppes = Double.parseDouble(price);
final Activity activity = this;
final Checkout co = new Checkout();
try {
JSONObject options = new JSONObject();
options.put("name", getResources().getString(R.string.application_name));
options.put("description", "");
//You can omit the image option to fetch the image from dashboard
options.put("image", getResources().getDrawable(R.mipmap.ic_app_logo));
options.put("currency", "INR");
options.put("amount", ruppes * 100);
JSONObject preFill = new JSONObject();
preFill.put("email", "multipz.paresh@gmail.com");
preFill.put("contact", "8758689113");
options.put("prefill", preFill);
co.open(activity, options);
} catch (Exception e) {
Toast.makeText(activity, "Error in payment: " + e.getMessage(), Toast.LENGTH_SHORT)
.show();
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t Intent intent=new Intent();\n\t\t\t intent.putExtra(\"info\", info);\n\t\t\t intent.putExtra(\"price\", price);\n\t\t\t intent.setClass(WxcOrderActivity.this, WxcPayActivity.class);\n\t\t\t startActivity(intent);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n\n Intent intent=new Intent(Product_cart.this,checkOut.class);\n\n intent.putExtra(\"total\",totalamount);\n intent.putExtra(\"grosstotal\",grosstotal.getText());\n intent.putExtra(\"patientname\",patient.getFullName());\n intent.putExtra(\"patientmobi\",patient.getMobile());\n intent.putExtra(\"patientemail\",patient.getEmail());\n intent.putExtra(\"cusID\",cusID);\n intent.putExtra(\"buttonID\",\"cart\");\n\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n startActivity(intent);\n\n\n\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent intent = new Intent(context, CustomerDueDetails.class);\n\t\t\t\t\tintent.putExtra(\"shopper_id\", \"\"+list.get(position).get_shopper_id());\n\t\t\t\t\tintent.putExtra(\"name\", \"\"+list.get(position).get_shopper_name());\n\t\t\t\t\tintent.putExtra(\"amount\", \"\"+list.get(position).get_outstanding_amount());\n\t\t\t\t\tintent.putExtra(\"order_id\", \"\"+list.get(position).getOrder_id());\n\t\t\t\t\tintent.putExtra(\"strdt\", txt_str_date.getText().toString());\n\n\t\t\t\t\tintent.putExtra(\"enddt\", txt_str_end.getText().toString());\n\n\t\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(AddMemberActivity.this, IndividualSubscription.class);\n if (initial_intent.getParcelableExtra(\"sub_parcel\") != null) {\n SubscriptionParcel sub_parcel = initial_intent.getParcelableExtra(\"sub_parcel\");\n intent.putExtra(\"sub_parcel\", sub_parcel);\n }\n startActivity(intent);\n }",
"@Override\r\n public void onClick(View view) {\r\n Intent paymentsIntent = new Intent(MainActivity.this, PaymentActivity.class);\r\n startActivity(paymentsIntent);\r\n }",
"@Override\n public void onClick(View v) {\n\n\n\n\n Intent intent = getIntent();\n intent.setClass(ConfirmPayActivity.this,FinishedPayActivity.class);\n startActivity(intent);\n }",
"@Override public void onClick(View arg0) {\n Intent intent = new Intent(OweActivity.this, ReceiveMoneyActivity.class);\n startActivity(intent);\n }",
"public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\"description\", \"Consumption charges\");\r\n //You can omit the image option to fetch the image from dashboard\r\n // options.put(\"image\", \"https://rzp-mobile.s3.amazonaws.com/images/rzp.png\");\r\n options.put(\"currency\", \"INR\");\r\n options.put(\"amount\", \"500\");\r\n\r\n // JSONObject preFill = new JSONObject();\r\n // preFill.put(\"email\", \"sm@razorpay.com\");\r\n // preFill.put(\"contact\", \"9876543210\");\r\n\r\n // options.put(\"prefill\", preFill);\r\n\r\n co.open(activity, options);\r\n } catch (Exception e) {\r\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\r\n .show();\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(AddMemberActivity.this, Subscriptions.class);\n if (initial_intent.getParcelableExtra(\"sub_parcel\") != null) {\n SubscriptionParcel sub_parcel = initial_intent.getParcelableExtra(\"sub_parcel\");\n intent.putExtra(\"sub_parcel\", sub_parcel);\n }\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(AddMemberActivity.this, Subscriptions.class);\n if (initial_intent.getParcelableExtra(\"sub_parcel\") != null) {\n SubscriptionParcel sub_parcel = initial_intent.getParcelableExtra(\"sub_parcel\");\n intent.putExtra(\"sub_parcel\", sub_parcel);\n }\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(AddMemberActivity.this, CommunityBoardMain.class);\n if (initial_intent.getParcelableExtra(\"sub_parcel\") != null) {\n SubscriptionParcel sub_parcel = initial_intent.getParcelableExtra(\"sub_parcel\");\n intent.putExtra(\"sub_parcel\", sub_parcel);\n }\n startActivity(intent);\n }",
"private void initiateCCAvenuePurchase() {\n try {\n String strAmount = Double.toString(planToPurchaseDiscountedPrice);\n Intent intent = new Intent(currentActivity, EnterMobileNumberActivity.class);\n //Intent intent = new Intent(currentActivity, WebViewActivity.class);\n //Intent intent = new Intent(currentActivity, PaymentOptionsActivity.class);\n intent.putExtra(AvenuesParams.CURRENCY, currencyCode);\n intent.putExtra(AvenuesParams.AMOUNT, strAmount);\n intent.putExtra(currentActivity.getString(R.string.app_cms_site_name), appCMSSite.getGist().getSiteInternalName());\n intent.putExtra(currentActivity.getString(R.string.app_cms_user_id), getLoggedInUser());\n intent.putExtra(currentActivity.getString(R.string.app_cms_plan_id), planToPurchase);\n intent.putExtra(\"plan_to_purchase_name\", planToPurchaseName);\n intent.putExtra(\"siteId\", appCMSSite.getGist().getSiteInternalName());\n intent.putExtra(\"email\", getLoggedInUserEmail());\n intent.putExtra(\"authorizedUserName\", getLoggedInUser());\n intent.putExtra(\"x-api-token\", apikey);\n intent.putExtra(\"auth_token\", getAuthToken());\n intent.putExtra(\"renewable\", isRenewable);\n intent.putExtra(\"mobile_number\", \"\");\n intent.putExtra(\"api_base_url\", appCMSMain.getApiBaseUrl());\n intent.putExtra(\"si_frequency\", \"2\");\n intent.putExtra(\"si_frequency_type\", renewableFrequency);\n intent.putExtra(\"color_theme\", getAppCMSMain().getBrand().getCta().getPrimary().getBackgroundColor());\n currentActivity.startActivity(intent);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"@Override\n public void onClick(View v) {\n Intent ticketInfo = new Intent(mContext, BusInformationsCard.class);\n\n ticketInfo.putExtra(\"busLine\", getTickets().get(position).getBusLine());\n ticketInfo.putExtra(\"companyName\", getTickets().get(position).getCompany());\n ticketInfo.putExtra(\"driverName\", getTickets().get(position).getName());\n ticketInfo.putExtra(\"driverPhone\", getTickets().get(position).getDriverPhone());\n ticketInfo.putExtra(\"seatNum\", getTickets().get(position).getSeatNum());\n ticketInfo.putExtra(\"leavingTime\", getTickets().get(position).getLeavingTime());\n ticketInfo.putExtra(\"latitude\", getTickets().get(position).getLatitude());\n ticketInfo.putExtra(\"longitude\", getTickets().get(position).getLongitude());\n ticketInfo.putExtra(\"driverId\", getTickets().get(position).getDriverId());\n ticketInfo.putExtra(\"keyId\", getTickets().get(position).getId());\n ticketInfo.putExtra(\"busNum\", getTickets().get(position).getBusNum());\n ticketInfo.putExtra(\"expectedTime\", getTickets().get(position).getExpectedTime());\n\n\n mContext.startActivity(ticketInfo);\n\n\n }",
"@Override\n public void onClick(View v) {\n incidentalIntent = new Intent(getApplicationContext(),IncidentalTaskActivity.class);\n startActivity(incidentalIntent);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.setClass(WxcOrderActivity.this, WxcMainActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getApplicationContext(),\n\t\t\t\t\t\tUpdatesCreatedChain.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(EntranceActivity.this, ExchangeListActivity.class);\n startActivity(intent);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Intent intent = new Intent(this, DisplayBasketActivity.class);\n\n //Select what happens when menu item selected (basket/checkout/empty)\n switch (item.getItemId()) {\n case R.id.action_basket:\n startActivity(intent);\n return true;\n case R.id.action_checkout:\n\n // PayPalConfiguration payPalConfiguration = new PayPalConfiguration().\n //Calculate Costs\n BigDecimal subtotal = PayPalItem.getItemTotal(Basket.getBasketPayPalItems());\n BigDecimal shipping = new BigDecimal(\"9.99\");\n BigDecimal tax = shipping.multiply(new BigDecimal(\"1.2\"));\n PayPalPaymentDetails paymentDetails = new PayPalPaymentDetails(shipping, subtotal, tax);\n BigDecimal amount = subtotal.add(shipping).add(tax);\n\n //Set top level Payment details\n PayPalPayment payment = new PayPalPayment(amount, \"GBP\", \"DipsSausageShop Order\", PayPalPayment.PAYMENT_INTENT_SALE);\n\n\n //Set Address\n ShippingAddress shippingAddress = new ShippingAddress();\n shippingAddress.city(\"Whitchurch\");\n shippingAddress.countryCode(\"GB\");\n shippingAddress.line1(\"38 Micheldever Road\");\n shippingAddress.state(\"Hampshire\");\n shippingAddress.postalCode(\"RG28 7JH\");\n payment.providedShippingAddress(shippingAddress);\n payment.enablePayPalShippingAddressesRetrieval(true);\n //PaymentAc\n\n //Set Details of Payment\n payment.items(Basket.getBasketPayPalItems()).paymentDetails(paymentDetails);\n\n Intent intentPay = new Intent(this, PaymentActivity.class);\n intentPay.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);\n startActivityForResult(intentPay, 0);\n\n return true;\n case R.id.action_empty:\n Basket.emptyBasket();\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"public void onBuyPressed() {\n PayPalPayment payment = new PayPalPayment(new BigDecimal(String.valueOf(totalAmount)), \"USD\", \"Total Price\",\n PayPalPayment.PAYMENT_INTENT_SALE);\n\n Intent intent = new Intent(this, PaymentActivity.class);\n\n // send the same configuration for restart resiliency\n intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, config);\n\n intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);\n\n startActivityForResult(intent, 0);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getApplicationContext(),\n\t\t\t\t\t\tCreateChain.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(mCtx, ClaimPage.class);\n intent.putExtra(\"ClaimID\", String.valueOf(claim.getClaimID()));\n intent.putExtra(\"ClaimNum\", String.valueOf(claim.getClaimNum()));\n intent.putExtra(\"InvoiceNum\", String.valueOf(claim.getInvoiceNum()));\n intent.putExtra(\"offercode\", String.valueOf(claim.getoffercode()));\n intent.putExtra(\"Cus_Name\", String.valueOf(claim.getCus_Name()));\n intent.putExtra(\"Creator\", String.valueOf(claim.getCreator()));\n intent.putExtra(\"creation_date\", String.valueOf(claim.getcreation_date()));\n intent.putExtra(\"Currency\", String.valueOf(claim.getCurrency()));\n intent.putExtra(\"amount\", String.valueOf(claim.getamount()));\n intent.putExtra(\"invoice_date\", String.valueOf(claim.getinvoice_date()));\n intent.putExtra(\"settlement\", String.valueOf(claim.getsettlement()));\n intent.putExtra(\"Overage\", String.valueOf(claim.getOverage()));\n intent.putExtra(\"claim_type\", String.valueOf(claim.getclaim_type()));\n intent.putExtra(\"BillTo\", String.valueOf(claim.getBillTo()));\n intent.putExtra(\"BillToAcc\", String.valueOf(claim.getBillToAcc()));\n intent.putExtra(\"ShipTo\", String.valueOf(claim.getShipTo()));\n intent.putExtra(\"ShipToAcc\", String.valueOf(claim.getShipToAcc()));\n intent.putExtra(\"Processor\", String.valueOf(claim.getProcessor()));\n intent.putExtra(\"request_id\", String.valueOf(claim.getrequestid()));\n intent.putExtra(\"notes\", String.valueOf(claim.getnotes()));\n intent.putExtra(\"approval_level\", String.valueOf(claim.getapproval_level()));\n\n\n mCtx.startActivity(intent);\n\n Log.d(TAG, \"Claim \" + String.valueOf(claim.getClaimNum())+ \" Clicked\");\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(checkInfo())\r\n\t\t\t\t{\r\n\t\t\t\t\tBundle extra = getIntent().getExtras();\r\n\t\t\t\t\tif(extra!=null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString json = extra.getString(\"json\");\r\n\t\t\t\t\t\tType typeObject = new TypeToken<CustomerEntity>(){}.getType();\r\n\t\t\t\t\t\tString customer = JSonHelper.serializerJson(getCustomer(), typeObject);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tIntent it = new Intent(Booking.this, BookingConfirm.class);\r\n\t\t\t\t\t\tit.putExtra(\"json\", json);\r\n\t\t\t\t\t\tit.putExtra(\"customer\", customer);\r\n\t\t\t\t\t\tit.putExtra(\"bonus\",chkBonus.isChecked()?\"150000\":\"0\");\r\n\t\t\t\t\t\tstartActivity(it);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tHelper.showToast(Booking.this, \"Please input all customer infomation!\", true);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onClick(View view) {\n try {\n if (ol_Data.getEnglish().equals(\"Courses\")) {\n\n Intent cour = new Intent(ctx, AllCourses.class);\n cour.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(cour);\n } else if (ol_Data.getEnglish().equals(\"Hijri Calender\")) {\n Intent nq = new Intent(ctx, CaldroidSampleActivity.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"Namaz Alarm\")) {\n Intent nq = new Intent(ctx, Muazzin.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"General Knowledge\")) {\n Intent nq = new Intent(ctx, GK.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }\n } catch (Exception e) {\n Toast.makeText(ctx, \"Error \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }",
"@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, AppMarket.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}",
"@Override\n public void onClick(View v) {\n\n Intent in = new Intent(mContext, SingleItemActivity.class);\n in.putExtra(\"titleMain\", itemSubModel.getName());\n in.putExtra(\"wishListStatus\", itemSubModel.getStatusWishList());\n in.putExtra(\"productId\", itemSubModel.getId());\n\n mContext.startActivity(in);\n//\n }",
"@Override\r\n public void onClick(View arg0) {\n appGlobals.setBusinessType(\"13\");\r\n CheckActivityContainer.changeFragment(R.id.checkmainpage, new CheckStructureActivity());\r\n\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonInappBilling();\n//\t\t\t\tonBuyPressed();\n\t\t\t}",
"@Override\n public void onClick(View view) {\n // Create a new intent\n Intent new_release_intent = new Intent(VietPopActivity.this, MainActivity.class);\n new_release_intent.putExtra(\"uniqueid\",\"from_viet\");\n // Start the new activity\n startActivity(new_release_intent);\n }",
"@Override\n public void onClick(View v) {\n\n\n Intent in = new Intent(mContext, SingleItemActivity.class);\n in.putExtra(\"titleMain\", itemSubModel.getName());\n in.putExtra(\"wishListStatus\", itemSubModel.getStatusWishList());\n in.putExtra(\"productId\", itemSubModel.getId());\n mContext.startActivity(in);\n//\n\n }",
"public void navigateToBaseActivity() throws JSONException {\n\n String merchantKey = jsonObject.getString(\"merchantKey\");\n String amount = jsonObject.getString(\"amount\");\n String email = jsonObject.getString(\"email\");\n String value = jsonObject.getString(\"value\");\n String firstName = jsonObject.getString(\"firstName\");\n String phone = jsonObject.getString(\"phone\");\n String txnId = jsonObject.getString(\"txnId\");\n String sUrl = jsonObject.getString(\"sUrl\");\n String fUrl = jsonObject.getString(\"fUrl\");\n String udf1 = jsonObject.getString(\"udf1\");\n String udf2 = jsonObject.getString(\"udf2\");\n String udf3 = jsonObject.getString(\"udf3\");\n String udf4 = jsonObject.getString(\"udf4\");\n String udf5 = jsonObject.getString(\"udf5\");\n salt = jsonObject.getString(\"salt\");\n int environment;\n if (value.equals(\"test\"))\n environment = PayuConstants.STAGING_ENV;\n else\n environment = PayuConstants.PRODUCTION_ENV;\n String userCredentials = merchantKey + \":\" + email;\n mPaymentParams = new PaymentParams();\n mPaymentParams.setKey(merchantKey);\n mPaymentParams.setAmount(amount);\n mPaymentParams.setProductInfo(\"GoCharge power bank charges\");\n mPaymentParams.setFirstName(firstName);\n mPaymentParams.setEmail(email);\n mPaymentParams.setPhone(phone);\n mPaymentParams.setTxnId(txnId);\n mPaymentParams.setSurl(sUrl);\n mPaymentParams.setFurl(fUrl);\n mPaymentParams.setNotifyURL(mPaymentParams.getSurl()); //for lazy pay\n mPaymentParams.setUdf1(udf1);\n mPaymentParams.setUdf2(udf2);\n mPaymentParams.setUdf3(udf3);\n mPaymentParams.setUdf4(udf4);\n mPaymentParams.setUdf5(udf5);\n mPaymentParams.setUserCredentials(userCredentials);\n payuConfig = new PayuConfig();\n payuConfig.setEnvironment(environment);\n generateHashFromSDK(mPaymentParams, salt);\n\n }",
"@Override\n public void onClick(View v) {\n PageType pageType = PageType.HOME_PAGE;\n CustomerCart customerCart = new CustomerCart();\n boolean wasIncentiveDisplayed = false;\n customerCart.setCartId(Config.CART_ID);\n String wizCartCouponCode = null;\n wizCartClientWrapper.sendTrackingPageView(pageType, customerCart,wasIncentiveDisplayed, wizCartCouponCode);\n }",
"@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent datosSustento = new Intent(context,DatosSustentoActivity.class);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.TIPO_ACCION, DatosSustentoActivity.ACCION_ACTUALIZAR);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_CLIENTE, codigo_cliente);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_PLAN, codigo_plan);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_ACTIVIDAD, codigo_actividad);\t\t\t\t\t\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_SUSTENTO, sustentoTemporal.getCodigoSustento());\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.DESCRIPCION_SUSTENTO, sustentoTemporal.getDescripcionActividad());\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.TIPO_SUSTENTO, sustentoTemporal.getTipoActividad());\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.FECHA_VISITA, sustentoTemporal.getFechaVisita());\t\t\t\t\t\r\n\t\t\t\t\tcontext.startActivity(datosSustento);\r\n\t\t\t\t}",
"@Override\n public List<ReportingMessage> onActivityCreated(Activity activity, Bundle bundle) {\n merchant.trackIncomingIntent(applicationContext, activity.getIntent());\n return null;\n }",
"@Override\n public void onClick(View view) {\n startActivity(new Intent(getActivity(), AwaitingParkingActivity.class));\n }",
"void navigateToCurrentOrder() {\n Intent gotoCurrentOrder = new Intent(this, CurrentOrderActivity.class);\n startActivity(gotoCurrentOrder);\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), BPActivity.class);\n startActivity(i);\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.setClass(activity,CoopReleaseActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}",
"public void callAddcartPage(MenuItem item) {\n\n // declare Intent ojbect to call another activity\n Intent calladdCartPage = new Intent(this,Order_Details.class);\n // startActivity by calling intent object\n startActivity(calladdCartPage);\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tif(null == jobject8 || \"\".equals(jobject8) || \"{}\".equals(jobject8) || \"[]\".equals(jobject8)){ \n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\tif(sp.getBoolean(\"islogin\", false)){\n\t\t\t\t\t\t\tif(isconect){\n\t\t\t\t\t\t\t\tIntent intent=new Intent(getActivity(),Buyactivity1.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"productname\", productname);\n\t\t\t\t\t\t\t\tintent.putExtra(\"beginmoney\", beginmoney);\n\t\t\t\t\t\t\t\tintent.putExtra(\"shouxufei\", shouxufei);\n\t\t\t\t\t\t\t\tintent.putExtra(\"yuqishouyi\", yuqishouyi+\"%\");\n\t\t\t\t\t\t\t\tintent.putExtra(\"licaiqixian\", licaiqixian);\n\t\t\t\t\t\t\t\tintent.putExtra(\"yuqishouyichanshengshijian\", yuqishouyichanshengshijian);\n\t\t\t\t\t\t\t\tintent.putExtra(\"productid\", productid);\n\t\t\t\t\t\t\t\tintent.putExtra(\"fengxiandengji\", fengxiandengji);\n\t\t\t\t\t\t\t\tintent.putExtra(\"iscouldbuy\", iscouldbuy);\n\t\t\t\t\t\t\t\tintent.putExtra(\"explan\", explan);\n\t\t\t\t\t\t\t\tintent.putExtra(\"iscouldedit\", iscouldedit);\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t}else{}\n\n\n\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\tstartActivity(new Intent(getActivity(),Loginactivity.class));\n\t\t\t\t\t\t}\n\n\n\n\n\t\t\t\t\t}",
"@Override\r\n public void onClick(View arg0) {\n appGlobals.setBusinessType(\"18\");\r\n CheckActivityContainer.changeFragment(R.id.checkmainpage, new CheckStructureActivity());\r\n\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tServiceAdditionActivity.setclass(\"rebuy\");\r\n\t\t\t\tstartActivity(new Intent(ServiceActivity.this,ServiceAdditionActivity.class));\r\n\t\t\t}",
"@Override\r\n public void onClick(View arg0) {\n appGlobals.setBusinessType(\"17\");\r\n CheckActivityContainer.changeFragment(R.id.checkmainpage, new CheckStructureActivity());\r\n\r\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(SubmitPaymentActivity.this, PatientHomeActivity.class);\n //start activity\n startActivity(intent);\n }",
"@OnClick(R.id.btnDetailsLKP)\n public void onClickDetailsLKP() {\n Intent i = new Intent(getActivity(), ActivityDetailsLKPSummary.class);\n\n// i.putExtra(ActivityDetailsLKPSummary.PARAM_IS_LKP_INQUIRY, isLKPInquiry);\n// i.putExtra(ActivityDetailsLKPSummary.PARAM_LKP_DATE, this.lkpDate.getTime());\n i.putExtra(ActivityDetailsLKPSummary.PARAM_COLLECTOR_ID, this.collectorCode);\n\n startActivity(i);\n }",
"@Override\r\n public void onClick(View arg0) {\n appGlobals.setBusinessType(\"9\");\r\n CheckActivityContainer.changeFragment(R.id.checkmainpage, new CheckStructureActivity());\r\n\r\n }",
"@Override\r\n public void onClick(View arg0) {\n appGlobals.setBusinessType(\"1\");\r\n CheckActivityContainer.changeFragment(R.id.checkmainpage, new CheckStructureActivity());\r\n\r\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\t\tcase R.id.item0:\n\t\t\t\t// 余额支付\n\t\t\t\torderxq = getIntent().getStringExtra(\"5\");\n\t\t\t\tSystem.out.println(\"---------------xq-\"+orderxq);\n\t\t\t\t System.out.println(\"activity_hd=================================\"+getIntent().getStringExtra(\"activity_hd\"));\n\t\t\t\tIntent intent = new Intent(MyOrderZFActivity.this, TishiCarArchivesActivity.class);\n\t\t\t\tintent.putExtra(\"order_no\",recharge_no);\n\t\t\t\tintent.putExtra(\"order_yue\",\"order_yue\");\n\t\t\t\tintent.putExtra(\"orderxq\",orderxq);\n\t\t\t\tintent.putExtra(\"activity_hd\",getIntent().getStringExtra(\"activity_hd\"));\n\t\t\t\tstartActivity(intent);\n\t\t\t\tfinish();\n//\t\t\t\tToast.makeText(MyOrderZFActivity.this, \"功能正在完善\",Toast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tcase R.id.item1:\n\t\t\t\tbreak;\n\t\t\tcase R.id.item2:// 支付宝\n//\t\t\t\ttype = \"3\";\n\t\t\t\t loadzhidu(recharge_no);\n\t\t\t\tbreak;\n\t\t\tcase R.id.item3:// 微信\n//\t\t\t\ttype = \"5\";\n\t\t\t\tloadweixinzf2(recharge_no);\n\t\t\t\tbreak;\n\t\t\tcase R.id.item4:\n finish();\n\t\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }",
"public void ClickShoppingcart(View view){\n redirectActivity(this,SummaryActivity.class);\n }",
"public void buyNow(View view) {\n String itemURL = null;\n try {\n itemURL = basic.getString(\"viewItemURL\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n Intent viewIntent = new Intent(\"android.intent.action.VIEW\", Uri.parse(itemURL));\n startActivity(viewIntent);\n }",
"public void buttonClicked(View view) {\n Intent intent = new Intent(getApplicationContext(), CompanyDetailsActivity.class);\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n getActivity().startActivity(new Intent(getContext(), InviteRewardsActivity.class));\n }",
"@Override\n public void onClick(View view) {\n Toast.makeText(getActivity(),\"bal\",Toast.LENGTH_SHORT).show();\n Intent intent=new Intent(getActivity(),osmanyhallcapt.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, Detail_Product_Normal.class);\n intent.putExtra(Param_Collection.EXTRA_POST_ID, item.getContent().getPostId().toString());\n intent.putExtra(Param_Collection.EXTRA_POST_PRODUCT_TITLE, item.getActivity());\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getApplicationContext(), ChainInbox.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent t = new Intent(mContext, DailyPlan.class);\r\n\t\t\t\tt.putExtra(\"day\", day);\r\n\t\t\t\tt.putExtra(\"month\", month);\r\n\t\t\t\tt.putExtra(\"year\", year);\r\n\t\t\t\tstartActivity(t);\r\n\t\t\t\tfinish();\r\n\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tBundle params = new Bundle();\n\t\t\t\t\t\t\t\tparams.putString(GMerchantInfoFragment.KEY_MERCHANT_ID, id);\n\t\t\t\t\t\t\t\tparams.putInt(GMerchantActivity.FRAGMENT_MARK, GMerchantActivity.MERCHANT_INFO);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tIntent it = new Intent(getActivity(), GMerchantActivity.class);\n\t\t\t\t\t\t\t\tit.putExtras(params);\n\t\t\t\t\t\t\t\tstartActivity(it);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent r2page = new Intent(v.getContext(), Cherwell_Boathouse.class);\n startActivity(r2page);\n }",
"public void onClickedNet(View view) {\n Class<?> next = \"cage\".equals(ca.getCageType()) ? EnterNetCheckActivity.class : EnvironmentalContainerMenuActivity.class; \n Intent i = new Intent(this, next);\n i.putExtra(\"cageAllocationId\", cageAllocationId);\n startActivity(i);\n }",
"private void goToDoctors() {\n\n Intent intent = new Intent(this, DoctorsActivity.class);\n intent.putExtra(EXTRA_EMAIL, email);\n startActivity(intent);\n\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tServiceAdditionActivity.setclass(\"busness\");\r\n\t\t\t\tstartActivity(new Intent(ServiceActivity.this,ServiceAdditionActivity.class));\r\n\t\t\t}",
"@Override\r\n public void onClick(View view) {\n Log.d(\"WTF Buy stock at ppl detail\", \"0001 data:\" + StockData.getStockData(1).getDescription());\r\n Log.d(\"WTF Buy stock at ppl detail\", \"Current M: \" + CommonAccount.getCurrentAccount().getCurrentCash());\r\n\r\n CommonAccount.getCurrentAccount().stockBuySell(1, 100);\r\n Log.d(\"WTF Buy stock at ppl detail\", \"After M: \" + CommonAccount.getCurrentAccount().getCurrentCash());\r\n\r\n Log.d(\"WTF Buy stock at ppl detail\", \"Amount of 0001:\" + CommonAccount.getCurrentAccount().getStockInventory(1));\r\n\r\n\r\n try {\r\n CommonAccount.updateCurrentAccount(activity_ppl_details.this);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(\"Cannot stock buy\", e.getMessage());\r\n }\r\n\r\n// Intent intent = new Intent(activity_ppl_details.this, activity_ppl_status.class);\r\n// startActivity(intent);\r\n\r\n Intent returnIntent = new Intent();\r\n setResult(RESULT_OK, returnIntent);\r\n\r\n finish();\r\n\r\n }",
"@Override\n public void onClick(View v) {\n routineIntent = new Intent(getApplicationContext(), RoutineTaskActivity.class);\n startActivity(routineIntent);\n }",
"public void startTransactionActivity (String tripName) {\n\n Intent intent = new Intent (MainActivity.this, TransactionsActivity.class);\n intent.putExtra(\"tripName\", tripName);\n startActivity(intent);\n\n\n\n\n\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent intent=new Intent(getActivity(),Productdetailactivity.class);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tintent.putExtra(\"productid\", jobject1.getString(\"Ipro_id\"));\n\t\t\t\t\t\t\tintent.putExtra(\"productname\", jobject1.getString(\"Ipro_name\"));\n\t\t\t\t\t\t\tintent.putExtra(\"buynum\",\"30天购买人数 \"+jobject1.getString(\"purchaseNum\"));\n\t\t\t\t\t\t\tintent.putExtra(\"day\", \"期限(天)\"+jobject1.getString(\"dayDiff\"));\n\t\t\t\t\t\t\tintent.putExtra(\"shouyi\", String.format(\"%.2f\", jobject1.getDouble(\"pctInterest\"))+\"%\");\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\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}",
"private void launchOtherTransaction(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView(R.layout.activity_razorpay);\n Intent intent = getIntent();\n Checkout.preload(getApplicationContext());\n startPayment(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, DemandDetailActivity.class);\n //intent.putExtra(\"id\",String.valueOf(item.getPid()));\n intent.putExtra(\"pid\", String.valueOf(item.getPid()));\n intent.putExtra(\"uid\", String.valueOf(item.getUid()));\n mContext.startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent2 = new Intent(myActivity, ProductDetailInfoActivity.class);\n\t\t\t\tintent2.putExtra(\"id\", product.getId());\n\t\t\t\tintent2.putExtra(\"pro_name\", product.getSubject());\n\t\t\t\t// intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\tmyActivity.startActivity(intent2);\n\t\t\t\tmyActivity.overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(DoctorTodaysAppointment.this,DoctorTodaysAppointmentsForPatient.class);\n intent.putExtra(\"mobile\",doctorMobile);\n intent.putExtra(\"userId\",doctorId);\n startActivity(intent);\n\n }",
"@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, AppManager.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), ANQ.class);\n startActivity(intent);\n\n }",
"public interface PaymentActControl {\n void paymentCallback(int code, String message);\n Activity getActivity();\n}",
"@Override\n public void onClick(View v) {\n\n int totalAmt = (int) Math.ceil(Double.parseDouble(String.valueOf(txtTotalAmount.getText()))); //always rounds up to the nearest whole\n\n try {\n if ((PersistentData.callpermissiongranted)&&(PersistentData.smspermissiongranted))\n {\n\n if (executionComplete && validateFields(v))\n {\n\n //Mobile Money USSD code dialer\n startActivity(new Intent(Intent.ACTION_CALL).setData(Uri.parse(\"tel:*007*1*2*101248*\"+ totalAmt +\"*123456\"+Uri.encode(\"#\"))));\n\n\n // Magic here*/\n\n mHandler.postDelayed(new Runnable() {\n public void run() {\n Log.d(\"CheckOutActivity\",\": paymentconfirmed status \" + PersistentData.paymentConfirmed);\n if(PersistentData.paymentConfirmed){\n Log.d(\"CheckOutActivity\",\": Order Started\");\n RegisterOrder RO = new RegisterOrder();\n RO.execute(\"\");\n Log.d(\"CheckOutActivity\",\": Order Executed\");\n }\n doStuff();\n }\n }, 60000);\n }\n else\n {\n //Incorrect Error handling\n //Toast.makeText(getBaseContext(), \"Your order registration is still in progress.Please await its completion. Siyabonga.\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n checkPermissions();\n }\n }\n catch(Exception ex)\n {\n Toast.makeText(getBaseContext(), ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n\n }",
"public void goBackToCal(){\n Intent cal = new Intent(this, Calender.class);\n cal.putExtra(\"startDate\", fromDate);\n cal.putExtra(\"updatedEvent\", updating);\n startActivity(cal);\n }",
"public void startBuying(View view) {\n\n startActivity(new Intent(this, Shopping_List.class));\n\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context,DetailsActivity.class);\n intent.putExtra(\"commodityId\", commodityListBeanXX.getCommodityId());\n context.startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(getBaseContext(), DebateWriteCommentActivity.class);\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n startOneActivity(EndlessActivity.class);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(v.getContext(), DetailsDepto.class);\n Bundle extras = new Bundle();\n extras.putString(\"EXTRA_IdDepto\", listItemsInmueble.getIDDepto());\n extras.putBoolean(\"logedState\", logedIn);\n extras.putString(\"idDepto\",hasDepto);\n extras.putString(\"idUser\",idUser);\n extras.putString(\"user\", user);\n intent.putExtras(extras);\n v.getContext().startActivity(intent);\n\n\n }",
"@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }",
"void navigateToOrderingCoffee() {\n Intent gotoOrderCoffee = new Intent(this, OrderingCoffeeActivity.class);\n startActivity(gotoOrderCoffee);\n }",
"@Override\n public void onClick(View v) {\n Intent r3page = new Intent(v.getContext(), No1ShipStreet.class);\n startActivity(r3page);\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), HeartRateActivity.class);\n startActivity(i);\n }",
"public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }",
"private void sendUserToConfirmOrderDetailsActivity(String getCurrentUserId, String uFullName, String uPhoneNumber,\n String uTownName, String uEmailAddress, String uDeliveryLocation,\n String deliveryType, String deliveryFee, String productName, String productPrice,\n String productPicture, String productQuantity, String actualAmount,\n String paymentType, String getAmountPaid, String getSenderName,\n String getTransactionId, String getSenderNetwork, String getTransactionPictureUri, String postRegion,\n String postDistrict, String postTown, String postBoxNumber) {\n\n Intent intent = new Intent(OrderProductActivity.this, ConfirmOrderActivity.class);\n intent.putExtra(\"userId\", getCurrentUserId);\n intent.putExtra(\"userFullName\", uFullName);\n intent.putExtra(\"userPhoneNumber\", uPhoneNumber);\n intent.putExtra(\"userTownName\", uTownName);\n intent.putExtra(\"userEmail\", uEmailAddress);\n intent.putExtra(\"userDeliveryLocation\", uDeliveryLocation);\n intent.putExtra(\"deliveryType\", deliveryType);\n intent.putExtra(\"deliveryFee\", deliveryFee);\n intent.putExtra(\"productName\", productName);\n intent.putExtra(\"productPrice\", productPrice);\n intent.putExtra(\"productPicture\", productPicture);\n intent.putExtra(\"productQuantity\", productQuantity);\n intent.putExtra(\"totalAmount\", actualAmount);\n intent.putExtra(\"paymentType\", paymentType);\n intent.putExtra(\"paymentAmountPaid\", getAmountPaid);\n intent.putExtra(\"paymentSenderName\", getSenderName);\n intent.putExtra(\"paymentTransactionId\", getTransactionId);\n intent.putExtra(\"paymentSenderNetwork\", getSenderNetwork);\n intent.putExtra(\"paymentTransactionPicture\", getTransactionPictureUri);\n intent.putExtra(\"pRegion\", postRegion);\n intent.putExtra(\"pDistrict\", postDistrict);\n intent.putExtra(\"pTown\", postTown);\n intent.putExtra(\"pBoxNumber\", postBoxNumber);\n intent.putExtra(\"ProductQuantityAvailable\",pQtyAva);\n startActivity(intent);\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(getActivity(),\r\n\t\t\t\t\t\tTransportationActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent =new Intent();\n\t\t\t\tintent.setClass(mContext, AccountManagerActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(getContext(), Dashboard.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View arg0) {\n Intent email = new Intent(getApplicationContext(), email.class);\n startActivity(email);\n }",
"void navigateToOrderingDonut() {\n Intent gotoOrderDonut = new Intent(this, OrderingDonutActivity.class);\n startActivity(gotoOrderDonut);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent ManageSchedule= new Intent(getBaseContext(),ManageSchedule.class);\n\t\t\t\tManageSchedule.putExtras(bundle);\n\t\t\t\tstartActivity(ManageSchedule);\n\t\t\t\t\n\t\t\t}",
"public void navigateToBaseActivity() {\n\n //merchantKey = \"gtKFFx\"; //Testing\n merchantKey = \"ImrH8w\"; //Live\n //merchantKey = ((EditText) findViewById(R.id.editTextMerchantKey)).getText().toString();\n // String amount = ((EditText) findViewById(R.id.editTextAmount)).getText().toString();\n // String email = ((EditText) findViewById(R.id.editTextEmail)).getText().toString();\n\n // String value = environmentSpinner.getSelectedItem().toString();\n int environment;\n // String TEST_ENVIRONMENT = getResources().getString(R.string.test);\n // if (value.equals(TEST_ENVIRONMENT))\n //environment = PayuConstants.MOBILE_STAGING_ENV;\n // else\n environment = PayuConstants.PRODUCTION_ENV;\n\n userCredentials = merchantKey + \":\" + \"anafali2000@gmail.com\";// + new AppPreferences(PlaceOrderActivity.this).getEmail();\n\n //TODO Below are mandatory params for hash genetation\n mPaymentParams = new PaymentParams();\n /**\n * For Test Environment, merchantKey = \"gtKFFx\"\n * For Production Environment, merchantKey should be your live key or for testing in live you can use \"0MQaQP\"\n */\n mPaymentParams.setKey(merchantKey);\n mPaymentParams.setAmount(String.valueOf(discountedAmount));\n mPaymentParams.setProductInfo(\"FarmFresh24\");\n mPaymentParams.setFirstName(new AppPreferences(PlaceOrderActivity.this).getFname());\n mPaymentParams.setEmail(new AppPreferences(PlaceOrderActivity.this).getEmail());\n\n /*\n * Transaction Id should be kept unique for each transaction.\n * */\n mPaymentParams.setTxnId(\"\" + System.currentTimeMillis());\n\n /**\n * Surl --> Success url is where the transaction response is posted by PayU on successful transaction\n * Furl --> Failre url is where the transaction response is posted by PayU on failed transaction\n */\n mPaymentParams.setSurl(\"https://payu.herokuapp.com/success\");\n mPaymentParams.setFurl(\"https://payu.herokuapp.com/failure\");\n\n /*\n * udf1 to udf5 are options params where you can pass additional information related to transaction.\n * If you don't want to use it, then send them as empty string like, udf1=\"\"\n * */\n mPaymentParams.setUdf1(\"udf1\");\n mPaymentParams.setUdf2(\"udf2\");\n mPaymentParams.setUdf3(\"udf3\");\n mPaymentParams.setUdf4(\"udf4\");\n mPaymentParams.setUdf5(\"udf5\");\n\n /**\n * These are used for store card feature. If you are not using it then user_credentials = \"default\"\n * user_credentials takes of the form like user_credentials = \"merchant_key : user_id\"\n * here merchant_key = your merchant key,\n * user_id = unique id related to user like, email, phone number, etc.\n * */\n mPaymentParams.setUserCredentials(userCredentials);\n\n //TODO Pass this param only if using offer key\n //mPaymentParams.setOfferKey(\"cardnumber@8370\");\n\n //TODO Sets the payment environment in PayuConfig object\n payuConfig = new PayuConfig();\n payuConfig.setEnvironment(environment);\n\n //TODO It is recommended to generate hash from server only. Keep your key and salt in server side hash generation code.\n //generateHashFromServer(mPaymentParams);\n\n /**\n * Below approach for generating hash is not recommended. However, this approach can be used to test in PRODUCTION_ENV\n * if your server side hash generation code is not completely setup. While going live this approach for hash generation\n * should not be used.\n * */\n String salt = \"BBq8CTgS\"; //Live\n // String salt = \"eCwWELxi\"; //Test\n generateHashFromSDK(mPaymentParams, salt);\n\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent();\r\n\t\t\t\ti.putExtra(\"businessname\", businessname);\r\n\t\t\t\ti.putExtra(\"businessid\", businessid);\r\n\t\t\t\ti.putExtra(\"actfrom\", \"TczV3ShopGoodsListAct\");\r\n\t\t\t\ti.setClass(TczV3ShopGoodsListAct.this,\r\n\t\t\t\t\t\tTczV3_Com_SearchAct.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, BuyChildActivty1.class);\n intent.putExtra(\"id\", list.get(position).getTid());\n intent.putExtra(\"title\", list.get(position).getName());\n RUser.id = list.get(position).getTid();\n mContext.startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), NewProductActivity.class);\n startActivity(i);\n }",
"private void openVerificationActivity() {\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(DonationActivity.this, NewsActivity.class);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, ChatActivity.class);\n intent.putExtra(\"hisUid\", post.getRequester_UID());\n intent.putExtra(\"requestPost\", post);\n intent.putExtra(\"cplatformPost\", postData);\n context.startActivity(intent);\n activity.finish();\n }",
"@Override\n public void onClick(View view) {\n Intent intent = AlarmPagerActivity.newIntent(sApplicationContext, mAlarm.getId());\n startActivity(intent);\n }"
] | [
"0.66083413",
"0.6412666",
"0.6380442",
"0.6363135",
"0.6339599",
"0.6330933",
"0.6291237",
"0.62752134",
"0.6263508",
"0.6263508",
"0.6204142",
"0.6194306",
"0.61759615",
"0.6165258",
"0.61124355",
"0.6089142",
"0.60527295",
"0.60496074",
"0.60449266",
"0.60290366",
"0.5961385",
"0.5955997",
"0.5949982",
"0.59407663",
"0.5938441",
"0.5923039",
"0.5919728",
"0.5907764",
"0.5906255",
"0.5903761",
"0.59022444",
"0.5900428",
"0.5880383",
"0.5874191",
"0.58720475",
"0.5870116",
"0.5869922",
"0.58671224",
"0.58567333",
"0.5853363",
"0.5846907",
"0.58385915",
"0.5830713",
"0.58282393",
"0.581722",
"0.5809377",
"0.5804951",
"0.58008647",
"0.5796321",
"0.5792958",
"0.5791973",
"0.5788572",
"0.5784303",
"0.57747674",
"0.57723904",
"0.5772291",
"0.5769304",
"0.57543963",
"0.57372534",
"0.5735874",
"0.5734467",
"0.57312626",
"0.5727737",
"0.57212746",
"0.57200754",
"0.5718262",
"0.57142",
"0.5713611",
"0.57129484",
"0.57112664",
"0.5707788",
"0.57005316",
"0.5697414",
"0.5689354",
"0.5689068",
"0.5667184",
"0.5663565",
"0.5655085",
"0.56516576",
"0.56492925",
"0.56422615",
"0.56420636",
"0.564078",
"0.56357425",
"0.5632494",
"0.5630399",
"0.56289357",
"0.5628828",
"0.56277066",
"0.56186247",
"0.5617607",
"0.56171",
"0.56118214",
"0.56106853",
"0.559975",
"0.5595398",
"0.5591777",
"0.5589857",
"0.5583912",
"0.5583814"
] | 0.5856897 | 38 |
TODO Autogenerated method stub | public void contextDestroyed(ServletContextEvent servletcontextevent)
{
} | {
"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 | public void contextInitialized(ServletContextEvent servletcontextevent)
{
JobContext.getInstance().setContext(servletcontextevent.getServletContext());
} | {
"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 Scanner sc = new Scanner(System.in); System.out.print("Enter value of x : "); int x = sc.nextInt(); | public static void main(String[] args) throws IOException {
meth(42);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\" Please enter a number: \");\n X x = new X(scanner.nextInt());\n x.x();\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\ttry{ \n\t\t\tScanner s = new Scanner (System.in);\n\t\t\tint x = s.nextInt();\n\t\t}catch(InputMismatchException e){\n\t\tSystem.out.println(\"invalid Input\");\t\n\t\t}\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\tchar ch;\n\t\tint x;\n\t\tSystem.out.println(\"Enter any character\");\n\t\tScanner p=new Scanner (System.in);\n\t\tch=p.next().charAt(0);\n\t\tx=(int)ch;\n\t\tSystem.out.println(x);\n\t}",
"private void getInput() {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tn=scan.nextInt();\r\n\r\n\t}",
"@Test\n\tpublic void one()\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"enter the value of a\");\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(\"value of a is: \" +a);\n\t}",
"public static void petsAge() {\n System.out.println(\"What is the age of your pet?\");\n int petAge = sc.nextInt(); \n }",
"public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}",
"private void userChoice(int x) {\n int choice;\n while (true) { // loop for validation\n try {\n choice = Integer.parseInt(sc.next());\n if (choice < 0 || choice > x) {\n System.out.println(\"Error! Please enter a valid number from the option above\");\n } else {\n this.choice = choice;\n return;\n }\n } catch (Exception e) {\n System.out.println(\"Error! Please enter a valid number from the option above\");\n }\n }\n }",
"public static int inputInteger()\n\t{\n\t\treturn(sc.nextInt());\n\t}",
"public static int getInput() {\n Scanner in = new Scanner(System.in);\n\n return in.nextInt();\n }",
"private int getInput()\n {\n int input = 0;\n Scanner scanner = new Scanner(System.in);\n\n try {\n input = scanner.nextInt();\n }\n catch(Exception e) {\n System.out.println(\"Vælg et tal fra menuen.\");\n scanner.nextLine();\n }\n\n return input;\n }",
"public static void main(String[] args) {\n String s = \"\";\n Scanner scanner = new Scanner(System.in);\n int x = scanner.nextInt();\n switch (x) {\n case 1 : s = \"You have chosen a square\";\n break;\n case 2 : s = \"You have chosen a circle\";\n break;\n case 3 : s = \"You have chosen a triangle\";\n break;\n case 4 : s = \"You have chosen a rhombus\";\n break;\n default: s = \"There is no such shape!\";\n break;\n }\n System.out.println(s);\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter the value of n : \");\r\n\t\tint n = sc.nextInt();\r\n\t\tSystem.out.println(\"Entered input is : \"+ n);\r\n\t}",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n\n int count=0;\n\n for(int i=1;i<=10;i++)\n\n {\n System.out.println(\"Enter value: \\t\");\n\n int x=sc.nextInt(); //assign the next integer to x\n\n count=count+x;\n Scanner close;\n\n }\n\n System.out.println(\"The sum is: \"+count);\n\n }",
"public static void main(String[] args) {\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString a = scan.next();\r\n\t\tint x = Integer.parseInt(a);\r\n\t\tList<Integer> list = new ArrayList<>();\r\n\t\twhile (scan.hasNextInt()) {\r\n\t\t\tlist.add(scan.nextInt());\r\n\t\t}\r\n\t\tif (x > list.size()) {\r\n\t\t\tSystem.out.println(\"NIL\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(list.get(list.size() - x));\r\n\t}",
"public static void luckyNumber() {\n System.out.println(\"What is your lucky number? \");\n int luckyNum = sc.nextInt(); \n }",
"public void inputScanner(){\n\t\t Scanner sc=new Scanner(System.in); \n\t \n\t\t System.out.println(\"Enter your rollno\"); \n\t\t int rollno=sc.nextInt(); \n\t\t System.out.println(\"Enter your name\"); \n\t\t String name=sc.next(); \n\t\t System.out.println(\"Enter your fee\"); \n\t\t double fee=sc.nextDouble(); \n\t\t System.out.println(\"Rollno:\"+rollno+\" name:\"+name+\" fee:\"+fee); \n\t\t sc.close(); \n\t}",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(int x) {\n\t\tthis.x = x;\n\t}",
"public void setX(int x){\r\n\t\tthis.x = x;\r\n\t}",
"public static int solicitarSueldo(){\n int sueldo;\r\n Scanner teclado = new Scanner(System.in);\r\n System.out.println(\"Introduce sueldo\");\r\n sueldo= teclado.nextInt();\r\n return sueldo;\r\n }",
"public static void ingresar(int[] x) {\n int i;\n Scanner entrada = new Scanner(System.in);\n for (i = 0; i < N; i++) {\n System.out.println(\"Ingrese un numero para la celda \" + i);\n x[i] = entrada.nextInt();\n \n }\n \n }",
"public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}",
"public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}",
"public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}",
"public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}",
"public int getUserIntInput(String question) {\r\n System.out.print(question);\r\n while (!scanner.hasNextInt()) {\r\n scanner.next();\r\n }\r\n int result = scanner.nextInt();\r\n return result;\r\n }",
"public void setX(int x) {\n this.x = x;\r\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Enter X in Bin: \");\n int x = Integer.parseInt(sc.next(), 2);\n System.out.print(\"Enter X in Oct: \");\n int y = Integer.parseInt(sc.next(), 8);\n System.out.print(\"Enter X in Hex: \");\n int z = Integer.parseInt(sc.next(), 16);\n System.out.println(\"X + Y + Z = \" + (x + z + y));\n }",
"public void setX(final int x) {\n\n this.x = x;\n }",
"public static void main(String[] args) {\n\n\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Testing Int Inputs\");\n System.out.print(\"Enter Number 1: \");\n int number1 = scanner.nextInt();\n System.out.println(number1);\n System.out.println(\"Enter Number 2: \");\n int number2 = scanner.nextInt();\n System.out.println(number2);\n }",
"public void setX(int x) {\n this.x = x;\n }",
"public void setX(int x) {\n this.x = x;\n }",
"public static void main(String[] args) {\n NumberType number = new NumberType();\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter a number:\");\n int temp = input.nextInt();\n number.x = temp;\n number.isEven();\n number.isOdd();\n number.isPositive();\n number.isNegative();\n number.isZero();\n }",
"public int getXint(){\n return (int) x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x){\n this.x = x;\n }",
"public void setX(int x)\n {\n this.x = x;\n }",
"public static void main(String[] args) \n\t{\n\t\tScanner src = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter the number: \");\n\t\tint n = src.nextInt();\n\t\tint temp;\n\t\tsrc.close();\n\t}",
"public void setX(int x) {\n\t\tthis.X = x;\n\t}",
"public static void metodDizi(int x){\n //metodDizi isimli bir metot oluşturuldu.\n System.out.println(x);\n }",
"public static int f_number_user() {\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"Input the number\");\n int number = keyboard.nextInt();\n return number;\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n int x,y;\n x=sc.nextInt();\n y=sc.nextInt();\n int z=x+y;\n System.out.println(\"Sum is \"+z);\n\t}",
"public int getX(){\r\n\t\treturn x;\r\n\t}",
"public void setX(int x)\r\n {\r\n this.x = x;\r\n }",
"public int getX(){\n\t\treturn x;\n\t}",
"public int getX(){\n\t\treturn x;\n\t}",
"protected int getX() {\n\t\treturn x;\n\t}",
"public static void main(String args[])\n {\n Scanner sc= new Scanner(System.in);\n double a=1,b,x=3,i,n,s=0;\n System.out.println(\"enter a number\");\n n=sc.nextInt();\n for(i=1;i<=n;i++)\n {\n a=a*x;\n b=1/a;\n s=s+b;\n x=x+2;\n }\n \n System.out.println(s);\n }",
"public static void main (String[] args) throws java.lang.Exception\r\n\t{\n\t\tScanner sc=new Scanner(System.in);int f=0;\r\n\t\twhile(sc.hasNext()){\r\n\t\tint t=sc.nextInt();\r\n\t\t\r\n\t\tif(t==42) f=1;\r\n\t\tif(f==0) System.out.println(t);\r\n\t\t}\r\n\t}",
"public int xint() {\n\t\treturn (int) x;\n\t}",
"int getX() {\n return x;\n }",
"int getX() {\n return x;\n }",
"protected static int easyIn() {\n // ADDITIONAL CHECKS?\n int a;\n debug(\"Please enter your selection: \");\n scanner = new Scanner(System.in);\n\t\ta = scanner.nextInt();\n return a;\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in); \r\n\t\twhile(sc.hasNext()){\r\n\t\t\tint x=sc.nextInt();\r\n\t\t\tint y=sc.nextInt();\r\n\t\t\tint result=getResult(x,y);\r\n\t\t\tSystem.out.println(result);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public static void main(String[] args)\r\n\t{\nSystem.out.print(\"enter any number: \");\r\nScanner s=new Scanner(System.in);\r\nint a=s.nextInt();\r\nif(a>0)\r\n\r\n{\r\n\tSystem.out.print(\"it is a positive number\");\r\n}\r\n\telse if(a<0)\r\n\t\r\n\t\t{\r\n\t\tSystem.out.println(\"it is a negative number\");\r\n\t\t}\r\n\t\r\n\telse \r\n\t{\r\n\t\tSystem.out.println(\"it is zero\");\r\n\t\t}\r\n\t\r\n}",
"public static void main(String[] args) {\n\tint n;\r\n\tScanner ss=new Scanner(System.in);\r\n\tn=ss.nextInt();\r\n\tif(n>0){\r\n\t\tSystem.out.println(\"positive\");}\r\n\telse if(n<0){\r\n\t\tSystem.out.println(\"negative\");}\r\n\telse{\r\n\t\tSystem.out.println(\"zero\");\r\n\t}\r\n\t \r\n\t }",
"public int Getx(){\n\t\treturn x;\n\t}",
"private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }",
"public int getx() {\n return x;\n }",
"public void enterNumber(int x){\n if(x > fLargest){\n sLargest = fLargest;\n fLargest = x;\n }else if(x > sLargest){\n sLargest = x;\n }\n }",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint x ,y ;\n\t\tSystem.out.println(\"enter your first value\");\n\t\tx= s.nextInt();\n\t\tSystem.out.println(\"enter second value\");\n y = s.nextInt();\n \n// int result = (x + y);\n// System.out.println(\"This is result :\" + result);\n \n System.out.println(\"enter the operator\");\n String operation = s.next();\n \n if(operation.equals(\"+\")) {\n \tSystem.out.println(\"this is the addidtion result \" + (x + y));\n }\n else if(operation.equals(\"-\")) {\n \tSystem.out.println(\"this is the substraction result \" + (x - y));\n }\n else if(operation.equals(\"*\")) {\n \tSystem.out.println(\"this is the multiplication result \" + (x * y));\n }\n else if(operation.equals(\"/\")) {\n \tSystem.out.println(\"this is the division result \" + (x / y));\n }\n else {\n \tSystem.out.println(\"please enter the correct operation\");\n }\n\t}",
"public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\r\n System.out.println(\"Introduzca un entero: \");\r\n int a = scn.nextInt();\r\n System.out.println(\"El numero introducido es el: \" + a);\r\n String b = scn.nextLine();\r\n System.out.println(b);\r\n String c = scn.next();\r\n System.out.println(c);\r\n }",
"double setx(double x) {\n return this.x;\n }",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in); //Scanner 클래스를 이 프로그램에서 사용하기 위한 생성자.\n\t\t\n\t\tdouble x; //사용자가 입력한 x의 값을 저장하기 위한 변수\n\t\tdouble cal; //함수의 계산결과를 저장할 변수\n\t\t\n\t\tSystem.out.print(\"x의 값을 입력하세요: \");\n\t\tx = input.nextDouble();\n\t\t\n\t\tif(x <= 0)\n\t\t{\n\t\t\tcal = x * x * x - 9 * x + 2;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcal = 7 * x + 2;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"계산한 값은 : \" + cal); //계산된 함수의 값을 출력한다.\n\t\t\n\t\tinput.close();\n\t}",
"private static int validateInput() {\n Scanner genericInt = new Scanner(System.in);\n int number = 0;\n if (genericInt.hasNextInt()) {\n number = genericInt.nextInt();\n return number;\n }\n else {\n validateInput();\n }\n return number;\n }",
"public int getX() {\n return x;\r\n }",
"public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n System.out.println(\"½Ð¿é¤JX:\");\n int x = scn.nextInt();\n int y = 0;\n while (true) {\n if (x < -1) {\n y = 3 * (x*x);\n System.out.println(y);\n }else\n if (x <= 1 && x >= -1) {\n y = x *x*x + 3 * x - 3;\n System.out.println(y);\n }else\n \n if (x > 1) {\n y = 2 * x + 3;\n System.out.println(y);\n }\n break;\n }\n }",
"public int getX()\r\n\t{\r\n\t\treturn (int)x;\r\n\t}",
"public static int getInt()\n {\n int num=0;\n while (true)\n {\n Scanner keyboard = new Scanner(System.in);\n try{\n num = keyboard.nextInt();\n return num;\n }\n catch (java.util.InputMismatchException textException)\n {\n System.out.printf(\"result:\");\n }\n }\n }",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int x=sc.nextInt();\n\n int []a=new int[x];\n\n for(int i=0;i<x;i++)\n {\n a[i]=sc.nextInt();\n }\n\n sort(a);\n\n for(int i=0;i<x;i++)\n {\n System.out.print(a[i]);\n System.out.print(\" \");\n }\n }",
"public static void main(String[] args) {\n\n\t\tScanner s= new Scanner (System.in);\n\t\tint val;\n\t\tval=s.nextInt();\n\t\tif(val>0)\n\t\t\tSystem.out.println(\"Positive\");\n\t\telse if(val<0)\n\t\t\tSystem.out.println(\"Negative\");\n\t\telse\n\t\t\tSystem.out.println(\"Zero\");\n\t\ts.close();\t\t\n\t\t\n\t}",
"public void setX(int x ){\n if(x>0){\n this.x=x;\n }\n \n }",
"public static void main(String[] args) {\n\n\t\tint x[][] = new int[4][4];\n\t\tint s=0;\n\t\t\n\t\tScanner Teclado = new Scanner(System.in);\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < x.length; j++) {\t\t\t\n\t\t\t\n\t\t\tSystem.out.printf(\"Ingrese su numero en la posición: %s\",s++);\n\t\t\tx[i][j] = Teclado.nextInt();\n\t\t\t}\n\t\t}\n\t}",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public int getX()\n\t{\n\t\treturn x;\n\t}",
"public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\r\n\t // Write your code here\r\n\t int t=sc.nextInt();\r\n\t while(t-->0)\r\n\t {\r\n\t int x=sc.nextInt();\r\n\t int k=sc.nextInt();\r\n\t while(x!=0)\r\n\t {\r\n\t if(x%k!=0)\r\n\t {\r\n\t x--;\r\n\t if(x%k!=0)\r\n\t {\r\n\t System.out.println(\"NO\");\r\n\t break;\r\n\t }\r\n\t else\r\n\t x=x/k;\r\n\t }\r\n\t else\r\n\t x=x/k;\r\n\t if(x==0)\r\n\t\t \t System.out.println(\"YES\");\r\n\t }\r\n\t }\r\n\t \r\n\t \r\n\t}",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint x = scanner.nextInt();\n\t\tSystem.out.println(\"Gia tri cua x la \" + x);\n\t\t\n\t\tSystem.out.println(\"Vui long nhap gia tri cua y va z :\");\n\t\tlong y = scanner.nextLong();\n\t\tdouble z = scanner.nextDouble();\n\t\tdouble tong = z + y;\n\t\tSystem.out.println(\"Tong gia tri cua y va z la \" + tong);\n\t\t\n\t\tboolean b = scanner.nextBoolean();\n\t\tshort s = scanner.nextShort();\n\t\tString str = scanner.nextLine();\n\t}",
"public int getX(){\n return x;\n }",
"public int getX(){\n return x;\n }",
"public int getX(){\n return x;\n }",
"public int getX() { \n\t\treturn x;\n\t}",
"public int getX()\r\n\t{\r\n\t\treturn x;\r\n\t}",
"public int x() {\n\t\treturn x;\n\t}",
"public static int f_number_user(){\n Scanner keyboard=new Scanner(System.in);\r\n int digits;\r\n System.out.println(\"input the entire number \");\r\n digits=keyboard.nextInt();\r\n return digits;\r\n }",
"public void setInput(double x)\n {\n if(domain.contains(x))\n this.x = x;\n else\n throw new BadParameterException(\"The input value \"+x+\" was rejected \"\n + \"as it is outside of the domain for this input: \"\n + \"[\"+domain.getLeft()+\", \"+domain.getRight()+\"].\");\n }",
"public static void main(String[] args) {\nchar c1,c2,c3;\r\nScanner cr=new Scanner(System.in);\r\nSystem.out.println(\"第一个字符:\");\r\nc1=cr.next().charAt(0);\r\nSystem.out.println(\"第二个字符:\");\r\nc2=cr.next().charAt(0);\r\nSystem.out.println(\"第三个字符:\");\r\nc3=cr.next().charAt(0);\r\nint x=(int)(c1+c2+c3);\r\nSystem.out.println(\"结果为:\"+x);\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}",
"public int getX() {\r\n\t\treturn x;\r\n\t}"
] | [
"0.71584415",
"0.70696807",
"0.7028682",
"0.691669",
"0.6715129",
"0.66090894",
"0.6550252",
"0.65421414",
"0.65162593",
"0.6494086",
"0.6482891",
"0.6470102",
"0.6433037",
"0.63670045",
"0.6306183",
"0.62790895",
"0.6263219",
"0.6247833",
"0.6247833",
"0.6247833",
"0.6247833",
"0.6247833",
"0.62441283",
"0.6215298",
"0.6190369",
"0.6184145",
"0.6184145",
"0.6184145",
"0.6184145",
"0.61654764",
"0.6155239",
"0.6148696",
"0.6147831",
"0.6133677",
"0.612944",
"0.612944",
"0.60881543",
"0.60642916",
"0.60519886",
"0.60519886",
"0.60519886",
"0.60519886",
"0.60458624",
"0.60384536",
"0.6030228",
"0.60295224",
"0.60134673",
"0.6005375",
"0.5989478",
"0.59722406",
"0.59721214",
"0.59721214",
"0.5965913",
"0.59629875",
"0.5952774",
"0.59361184",
"0.59298795",
"0.59298795",
"0.5922404",
"0.59068596",
"0.590298",
"0.5902785",
"0.58967245",
"0.5888881",
"0.5888293",
"0.5878879",
"0.5878063",
"0.5870112",
"0.5867853",
"0.58522576",
"0.5848912",
"0.58462197",
"0.5841028",
"0.5838984",
"0.58378756",
"0.5832209",
"0.58319354",
"0.5827297",
"0.58259624",
"0.5823018",
"0.5823018",
"0.5823018",
"0.5823018",
"0.5823018",
"0.581988",
"0.580101",
"0.5800903",
"0.5800903",
"0.5800903",
"0.57920027",
"0.57913744",
"0.57887036",
"0.5786396",
"0.5769157",
"0.5764562",
"0.57612383",
"0.57612383",
"0.57612383",
"0.57612383",
"0.57612383",
"0.57612383"
] | 0.0 | -1 |
Timestamp when transaction occurred. Required. The format is "YYYYMMDD HH:MM:SS". Examples: "20180305 09:15:00" or "20180201 14:34:30" .google.protobuf.StringValue transaction_date_time = 1; | boolean hasTransactionDateTime(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getTransactionDateTime();",
"com.google.protobuf.StringValueOrBuilder getTransactionDateTimeOrBuilder();",
"public void setTransactionTime(Timestamp value) {\r\n setAttributeInternal(TRANSACTIONTIME, value);\r\n }",
"@ApiModelProperty(example = \"1518811817\", value = \"The transaction time in seconds since epoch.\")\n public Long getTransactionTime() {\n return transactionTime;\n }",
"public String getTimestamp() {\n Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"java.lang.String getTimestamp();",
"java.lang.String getTimestamp();",
"public String getTimestamp() {\n Object ref = timestamp_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n timestamp_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"public com.google.protobuf.Timestamp getTimestamp() {\n if (timestampBuilder_ == null) {\n return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n } else {\n return timestampBuilder_.getMessage();\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Timestamp getTransactionTime() {\r\n return (Timestamp) getAttributeInternal(TRANSACTIONTIME);\r\n }",
"com.google.protobuf.Timestamp getTimestamp();",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.Timestamp getCreateTime() {\n if (createTimeBuilder_ == null) {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n } else {\n return createTimeBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.Timestamp getCreateTime() {\n if (createTimeBuilder_ == null) {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n } else {\n return createTimeBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getTimestamp();",
"String getTimestamp();",
"com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();",
"com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();",
"com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();",
"public String getDateTimeInsertString(java.sql.Timestamp aTimestamp){\r\n return \"'\" + DBUtil.getDBDateTimeString(aTimestamp) + \"'\";\r\n }",
"DateTime getTransactionTime() {\n assertInTransaction();\n return TRANSACTION_INFO.get().transactionTime;\n }",
"public com.google.protobuf.Timestamp getTimestamp() {\n return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n }",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.Timestamp getContainerTimestamp();",
"public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {\n if (createTimeBuilder_ != null) {\n return createTimeBuilder_.getMessageOrBuilder();\n } else {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n }\n }",
"public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {\n if (createTimeBuilder_ != null) {\n return createTimeBuilder_.getMessageOrBuilder();\n } else {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n }\n }",
"com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder();",
"public Builder setCreateTime(com.google.protobuf.Timestamp value) {\n if (createTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n createTime_ = value;\n } else {\n createTimeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000200;\n onChanged();\n return this;\n }",
"public DateTime timestamp() {\n\n\t\tif (timestamp == null) {\n\n\t\t\tfinal DateTimeValue dt = ProtoDateUtil.fromDecimalDateTime(message.getBaseTimeStamp());\n\n\t\t\ttimestamp = new DateTime(dt.getYear(), dt.getMonth(), dt.getDay(), dt.getHour(), dt.getMinute(),\n\t\t\t\t\tdt.getSecond(), dt.getMillis(), ISOChronology.getInstanceUTC());\n\n\t\t}\n\n\t\treturn timestamp;\n\n\t}",
"com.google.protobuf.Timestamp getSendTime();",
"public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {\n if (timestampBuilder_ != null) {\n return timestampBuilder_.getMessageOrBuilder();\n } else {\n return timestamp_ == null ?\n com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n }\n }",
"private String syncTimeStamp(String timestamp){\r\n StringBuilder dateBuilder = new StringBuilder(timestamp);\r\n String time = dateBuilder.toString().split(\"T\")[1].substring(0, 8);\r\n String[] timeArr = time.split(\":\");\r\n String seconds = timeArr[2];\r\n String dd = dateBuilder.toString().split(\"T\")[0].split(\"-\")[2];\r\n String mm = dateBuilder.toString().split(\"T\")[0].split(\"-\")[1];\r\n String yyyy = dateBuilder.toString().split(\"T\")[0].split(\"-\")[0];\r\n int hour = Integer.parseInt(timeArr[0]);\r\n int minutes = Integer.parseInt(timeArr[1]);\r\n minutes += 30;\r\n hour+=5;\r\n if (minutes>=60){\r\n hour += 1;\r\n minutes -= 60;\r\n }\r\n if (hour >= 24){\r\n hour -= 24;\r\n dd = Integer.toString(Integer.parseInt(dd) + 1);\r\n if (Integer.parseInt(dd) < 10)\r\n dd = \"0\" + dd;\r\n }\r\n String minutesString;\r\n if (minutes < 10)\r\n minutesString = \"0\" + Integer.toString(minutes);\r\n else\r\n minutesString = Integer.toString(minutes);\r\n\r\n String hoursString;\r\n if (hour < 10)\r\n hoursString = \"0\" + Integer.toString(hour);\r\n else\r\n hoursString = Integer.toString(hour);\r\n String finalTime = hoursString + \":\" + minutesString + \":\" + seconds;\r\n String finalDate = dd + \"-\" + mm + \"-\" + yyyy;\r\n\r\n return (finalDate + \" \" + finalTime);\r\n }",
"public TransactionBuilder setTimestamp(long timestamp);",
"com.google.protobuf.Timestamp getStartTime();",
"public void setTransactionDate(java.util.Calendar transactionDate) {\r\n this.transactionDate = transactionDate;\r\n }",
"@ZAttr(id=790)\n public void setCreateTimestampAsString(String zimbraCreateTimestamp) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraCreateTimestamp, zimbraCreateTimestamp);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public Builder setCreateTime(com.google.protobuf.Timestamp value) {\n if (createTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n createTime_ = value;\n } else {\n createTimeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();",
"@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getPayTs() {\n\t\treturn payTs;\n\t}",
"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 static String getTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\t//define the format of time stamp\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\treturn sdf.format(cal.getTime());\n\n\t}",
"private void setTimestamp(String timestamp){\n put(SlackParamsConstants.TIMESTAMP, timestamp);\n }",
"com.google.protobuf.ByteString\n getTimeBytes();",
"public String getTimestamp()\n {\n return timestamp;\n }",
"public TimestampDto(boolean confirm_status, String address, long timestamp, String transaction)\n {\n this.confirm_status = confirm_status;\n this.timestamp = timestamp;\n this.address = address;\n this.transaction = transaction;\n }",
"private final LocalDateTime get_TIMESTAMP(int column) {\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 26, charset_[column - 1]).toString();\n return LocalDateTime.parse(timeString, DRDAConstants.DB2_TIMESTAMP_FORMAT);\n// return DateTime.timestampBytesToTimestamp(\n// dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1],\n// agent_.connection_.serverSupportsTimestampNanoseconds());\n }",
"private Timestamp getDatetimeTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime((Date) spDate.getValue());\n\n\t\tCalendar cal_temp = Calendar.getInstance();\n\t\tcal_temp.setTime((Date) spTime.getValue());\n\n\t\tcal.set(Calendar.HOUR_OF_DAY, cal_temp.get(Calendar.HOUR_OF_DAY));\n\t\tcal.set(Calendar.MINUTE, cal_temp.get(Calendar.MINUTE));\n\t\treturn new Timestamp(cal.getTimeInMillis());\n\t}",
"public com.babbler.ws.io.avro.model.BabbleValue.Builder setTimestamp(java.lang.String value) {\n validate(fields()[2], value);\n this.timestamp = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"com.google.protobuf.ByteString getSignedTimeStamp();",
"@ZAttr(id=790)\n public String getCreateTimestampAsString() {\n return getAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }",
"public Date getTransactionDate() {\n\t\treturn transactionDate;\n\t}",
"public String getTimestampString() throws SQLException {\n\t\tloadFromDB();\n\t\treturn DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM)\n\t\t\t\t\t.format(rev_timestamp);\n\t}",
"public static String getTimestamp() {\r\n\t\t\r\n\t\treturn new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t}",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.Timestamp getCreateTime() {\n return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;\n }",
"@java.lang.Override\n public com.google.protobuf.Timestamp getCreateTime() {\n return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;\n }",
"public static String timestampOf(Date date) {\n if (date == null) {\n return null;\n }\n\n return formatDate(date, TIMESTAMP_FORMAT);\n }",
"public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\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 time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n }\n }",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"public com.google.protobuf.Timestamp getCreatedAt() {\n if (createdAtBuilder_ == null) {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n } else {\n return createdAtBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.Timestamp getCreatedAt() {\n if (createdAtBuilder_ == null) {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n } else {\n return createdAtBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.Timestamp getCreatedAt() {\n if (createdAtBuilder_ == null) {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n } else {\n return createdAtBuilder_.getMessage();\n }\n }",
"com.google.protobuf.Timestamp getSubmitTime();",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\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 time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\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 transactionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"UtcT time_stamp () throws BaseException;",
"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}",
"@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }",
"com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();",
"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 Timestamp getTimestamp(String timestampString) {\r\n Timestamp timestamp;\r\n try {\r\n timestamp = SpringContext.getBean(DateTimeService.class).convertToSqlTimestamp(timestampString);\r\n }\r\n catch (ParseException e) {\r\n assertNull(\"Timestamp String was not parseable\", e);\r\n return null;\r\n }\r\n return timestamp;\r\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {\n return getTimestamp();\n }",
"public String getDatetime() {\n return datetime;\n }",
"public TransactionTimestamp() {\n\t\tlatestTimestamp = new AtomicLong(0);\n\t}",
"TimestampOperatorNode(ValueNode date,\n ValueNode time,\n ContextManager cm)\n {\n super(cm);\n leftOperand = date;\n rightOperand = time;\n operator = \"timestamp\";\n methodName = \"getTimestamp\";\n }",
"com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder();",
"@ZAttr(id=790)\n public void setCreateTimestamp(Date zimbraCreateTimestamp) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraCreateTimestamp, zimbraCreateTimestamp==null ? \"\" : DateUtil.toGeneralizedTime(zimbraCreateTimestamp));\n getProvisioning().modifyAttrs(this, attrs);\n }",
"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}"
] | [
"0.76731396",
"0.7242272",
"0.6257143",
"0.58075494",
"0.57416344",
"0.57370156",
"0.57370156",
"0.5705786",
"0.57015324",
"0.57015324",
"0.57015324",
"0.57015324",
"0.57015324",
"0.55535084",
"0.5549064",
"0.5549064",
"0.55474615",
"0.55474615",
"0.554278",
"0.554278",
"0.55227673",
"0.5516594",
"0.5481083",
"0.54398096",
"0.54398096",
"0.5420245",
"0.5420245",
"0.5361846",
"0.53390557",
"0.53390557",
"0.53332484",
"0.53332484",
"0.53332484",
"0.53168297",
"0.52206796",
"0.52046835",
"0.51487744",
"0.51487744",
"0.51487744",
"0.5132132",
"0.51194596",
"0.51194596",
"0.5114372",
"0.5111871",
"0.510089",
"0.5099458",
"0.5092563",
"0.5085098",
"0.508227",
"0.5076337",
"0.5067273",
"0.50554895",
"0.50462765",
"0.5019409",
"0.50142866",
"0.4991097",
"0.49850017",
"0.49843228",
"0.49725646",
"0.4970171",
"0.49671236",
"0.49609184",
"0.493666",
"0.4915685",
"0.49132702",
"0.49092612",
"0.48798868",
"0.48765734",
"0.4873093",
"0.4868975",
"0.48686153",
"0.48686153",
"0.4868072",
"0.4848396",
"0.4841944",
"0.48130384",
"0.4801984",
"0.48009223",
"0.47944364",
"0.47871807",
"0.47871807",
"0.47871807",
"0.47733226",
"0.47699046",
"0.4760045",
"0.4737736",
"0.47261548",
"0.47184536",
"0.47109967",
"0.47060743",
"0.46972582",
"0.4685688",
"0.46780702",
"0.4657723",
"0.4657383",
"0.4653661",
"0.46440592",
"0.46431023",
"0.46366528",
"0.4628618",
"0.46282706"
] | 0.0 | -1 |
Timestamp when transaction occurred. Required. The format is "YYYYMMDD HH:MM:SS". Examples: "20180305 09:15:00" or "20180201 14:34:30" .google.protobuf.StringValue transaction_date_time = 1; | com.google.protobuf.StringValue getTransactionDateTime(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValueOrBuilder getTransactionDateTimeOrBuilder();",
"public void setTransactionTime(Timestamp value) {\r\n setAttributeInternal(TRANSACTIONTIME, value);\r\n }",
"@ApiModelProperty(example = \"1518811817\", value = \"The transaction time in seconds since epoch.\")\n public Long getTransactionTime() {\n return transactionTime;\n }",
"public String getTimestamp() {\n Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"java.lang.String getTimestamp();",
"java.lang.String getTimestamp();",
"public String getTimestamp() {\n Object ref = timestamp_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n timestamp_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"public com.google.protobuf.Timestamp getTimestamp() {\n if (timestampBuilder_ == null) {\n return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n } else {\n return timestampBuilder_.getMessage();\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Timestamp getTransactionTime() {\r\n return (Timestamp) getAttributeInternal(TRANSACTIONTIME);\r\n }",
"com.google.protobuf.Timestamp getTimestamp();",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.Timestamp getCreateTime() {\n if (createTimeBuilder_ == null) {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n } else {\n return createTimeBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.Timestamp getCreateTime() {\n if (createTimeBuilder_ == null) {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n } else {\n return createTimeBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getTimestamp();",
"String getTimestamp();",
"com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();",
"com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();",
"com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();",
"public String getDateTimeInsertString(java.sql.Timestamp aTimestamp){\r\n return \"'\" + DBUtil.getDBDateTimeString(aTimestamp) + \"'\";\r\n }",
"DateTime getTransactionTime() {\n assertInTransaction();\n return TRANSACTION_INFO.get().transactionTime;\n }",
"public com.google.protobuf.Timestamp getTimestamp() {\n return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n }",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.Timestamp getContainerTimestamp();",
"public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {\n if (createTimeBuilder_ != null) {\n return createTimeBuilder_.getMessageOrBuilder();\n } else {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n }\n }",
"public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {\n if (createTimeBuilder_ != null) {\n return createTimeBuilder_.getMessageOrBuilder();\n } else {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n }\n }",
"com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder();",
"public Builder setCreateTime(com.google.protobuf.Timestamp value) {\n if (createTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n createTime_ = value;\n } else {\n createTimeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000200;\n onChanged();\n return this;\n }",
"public DateTime timestamp() {\n\n\t\tif (timestamp == null) {\n\n\t\t\tfinal DateTimeValue dt = ProtoDateUtil.fromDecimalDateTime(message.getBaseTimeStamp());\n\n\t\t\ttimestamp = new DateTime(dt.getYear(), dt.getMonth(), dt.getDay(), dt.getHour(), dt.getMinute(),\n\t\t\t\t\tdt.getSecond(), dt.getMillis(), ISOChronology.getInstanceUTC());\n\n\t\t}\n\n\t\treturn timestamp;\n\n\t}",
"com.google.protobuf.Timestamp getSendTime();",
"public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {\n if (timestampBuilder_ != null) {\n return timestampBuilder_.getMessageOrBuilder();\n } else {\n return timestamp_ == null ?\n com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n }\n }",
"private String syncTimeStamp(String timestamp){\r\n StringBuilder dateBuilder = new StringBuilder(timestamp);\r\n String time = dateBuilder.toString().split(\"T\")[1].substring(0, 8);\r\n String[] timeArr = time.split(\":\");\r\n String seconds = timeArr[2];\r\n String dd = dateBuilder.toString().split(\"T\")[0].split(\"-\")[2];\r\n String mm = dateBuilder.toString().split(\"T\")[0].split(\"-\")[1];\r\n String yyyy = dateBuilder.toString().split(\"T\")[0].split(\"-\")[0];\r\n int hour = Integer.parseInt(timeArr[0]);\r\n int minutes = Integer.parseInt(timeArr[1]);\r\n minutes += 30;\r\n hour+=5;\r\n if (minutes>=60){\r\n hour += 1;\r\n minutes -= 60;\r\n }\r\n if (hour >= 24){\r\n hour -= 24;\r\n dd = Integer.toString(Integer.parseInt(dd) + 1);\r\n if (Integer.parseInt(dd) < 10)\r\n dd = \"0\" + dd;\r\n }\r\n String minutesString;\r\n if (minutes < 10)\r\n minutesString = \"0\" + Integer.toString(minutes);\r\n else\r\n minutesString = Integer.toString(minutes);\r\n\r\n String hoursString;\r\n if (hour < 10)\r\n hoursString = \"0\" + Integer.toString(hour);\r\n else\r\n hoursString = Integer.toString(hour);\r\n String finalTime = hoursString + \":\" + minutesString + \":\" + seconds;\r\n String finalDate = dd + \"-\" + mm + \"-\" + yyyy;\r\n\r\n return (finalDate + \" \" + finalTime);\r\n }",
"public TransactionBuilder setTimestamp(long timestamp);",
"com.google.protobuf.Timestamp getStartTime();",
"public void setTransactionDate(java.util.Calendar transactionDate) {\r\n this.transactionDate = transactionDate;\r\n }",
"@ZAttr(id=790)\n public void setCreateTimestampAsString(String zimbraCreateTimestamp) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraCreateTimestamp, zimbraCreateTimestamp);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public Builder setCreateTime(com.google.protobuf.Timestamp value) {\n if (createTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n createTime_ = value;\n } else {\n createTimeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();",
"@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getPayTs() {\n\t\treturn payTs;\n\t}",
"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 static String getTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\t//define the format of time stamp\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\treturn sdf.format(cal.getTime());\n\n\t}",
"private void setTimestamp(String timestamp){\n put(SlackParamsConstants.TIMESTAMP, timestamp);\n }",
"com.google.protobuf.ByteString\n getTimeBytes();",
"public String getTimestamp()\n {\n return timestamp;\n }",
"public TimestampDto(boolean confirm_status, String address, long timestamp, String transaction)\n {\n this.confirm_status = confirm_status;\n this.timestamp = timestamp;\n this.address = address;\n this.transaction = transaction;\n }",
"private final LocalDateTime get_TIMESTAMP(int column) {\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 26, charset_[column - 1]).toString();\n return LocalDateTime.parse(timeString, DRDAConstants.DB2_TIMESTAMP_FORMAT);\n// return DateTime.timestampBytesToTimestamp(\n// dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1],\n// agent_.connection_.serverSupportsTimestampNanoseconds());\n }",
"private Timestamp getDatetimeTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime((Date) spDate.getValue());\n\n\t\tCalendar cal_temp = Calendar.getInstance();\n\t\tcal_temp.setTime((Date) spTime.getValue());\n\n\t\tcal.set(Calendar.HOUR_OF_DAY, cal_temp.get(Calendar.HOUR_OF_DAY));\n\t\tcal.set(Calendar.MINUTE, cal_temp.get(Calendar.MINUTE));\n\t\treturn new Timestamp(cal.getTimeInMillis());\n\t}",
"public com.babbler.ws.io.avro.model.BabbleValue.Builder setTimestamp(java.lang.String value) {\n validate(fields()[2], value);\n this.timestamp = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"com.google.protobuf.ByteString getSignedTimeStamp();",
"@ZAttr(id=790)\n public String getCreateTimestampAsString() {\n return getAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }",
"public Date getTransactionDate() {\n\t\treturn transactionDate;\n\t}",
"public String getTimestampString() throws SQLException {\n\t\tloadFromDB();\n\t\treturn DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM)\n\t\t\t\t\t.format(rev_timestamp);\n\t}",
"public static String getTimestamp() {\r\n\t\t\r\n\t\treturn new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t}",
"@java.lang.Override\n public com.google.protobuf.Timestamp getCreateTime() {\n return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;\n }",
"@java.lang.Override\n public com.google.protobuf.Timestamp getCreateTime() {\n return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;\n }",
"public static String timestampOf(Date date) {\n if (date == null) {\n return null;\n }\n\n return formatDate(date, TIMESTAMP_FORMAT);\n }",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\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 time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n }\n }",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"public com.google.protobuf.Timestamp getCreatedAt() {\n if (createdAtBuilder_ == null) {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n } else {\n return createdAtBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.Timestamp getCreatedAt() {\n if (createdAtBuilder_ == null) {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n } else {\n return createdAtBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.Timestamp getCreatedAt() {\n if (createdAtBuilder_ == null) {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n } else {\n return createdAtBuilder_.getMessage();\n }\n }",
"com.google.protobuf.Timestamp getSubmitTime();",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\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 time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\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 transactionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"UtcT time_stamp () throws BaseException;",
"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}",
"@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }",
"com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();",
"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 Timestamp getTimestamp(String timestampString) {\r\n Timestamp timestamp;\r\n try {\r\n timestamp = SpringContext.getBean(DateTimeService.class).convertToSqlTimestamp(timestampString);\r\n }\r\n catch (ParseException e) {\r\n assertNull(\"Timestamp String was not parseable\", e);\r\n return null;\r\n }\r\n return timestamp;\r\n }",
"public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {\n return getTimestamp();\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getDatetime() {\n return datetime;\n }",
"public TransactionTimestamp() {\n\t\tlatestTimestamp = new AtomicLong(0);\n\t}",
"TimestampOperatorNode(ValueNode date,\n ValueNode time,\n ContextManager cm)\n {\n super(cm);\n leftOperand = date;\n rightOperand = time;\n operator = \"timestamp\";\n methodName = \"getTimestamp\";\n }",
"com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder();",
"@ZAttr(id=790)\n public void setCreateTimestamp(Date zimbraCreateTimestamp) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraCreateTimestamp, zimbraCreateTimestamp==null ? \"\" : DateUtil.toGeneralizedTime(zimbraCreateTimestamp));\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public static String getGitTimestamp() {\n return StringUtils.defaultIfEmpty(gitProperties.getProperty(GIT_PROPERTIES_COMMIT_TS_KEY),\n StringUtils.EMPTY);\n }"
] | [
"0.72427845",
"0.6254055",
"0.58049357",
"0.57398677",
"0.5735536",
"0.5735536",
"0.57040906",
"0.57007563",
"0.57007563",
"0.57007563",
"0.57007563",
"0.57007563",
"0.55528533",
"0.55472404",
"0.55472404",
"0.55453956",
"0.55453956",
"0.55410606",
"0.55410606",
"0.55206525",
"0.5515137",
"0.5479116",
"0.5439772",
"0.5439772",
"0.5418182",
"0.5418182",
"0.5359873",
"0.53372496",
"0.53372496",
"0.53328663",
"0.53328663",
"0.53328663",
"0.5315518",
"0.521943",
"0.5203368",
"0.5147413",
"0.5147413",
"0.5147413",
"0.51310915",
"0.51196164",
"0.51196164",
"0.5113069",
"0.51112354",
"0.5099689",
"0.50974447",
"0.50922555",
"0.5083456",
"0.508077",
"0.50753295",
"0.50685257",
"0.50554085",
"0.5045659",
"0.50186086",
"0.50140107",
"0.49904698",
"0.49836305",
"0.49820083",
"0.49714378",
"0.4968313",
"0.49647003",
"0.4959549",
"0.49368986",
"0.49143425",
"0.49120837",
"0.49087775",
"0.48812065",
"0.48754194",
"0.48717105",
"0.4868127",
"0.4868127",
"0.48675624",
"0.48673218",
"0.48499125",
"0.48401994",
"0.48115146",
"0.4800356",
"0.47994402",
"0.4792699",
"0.47877717",
"0.47877717",
"0.47877717",
"0.4771849",
"0.47683308",
"0.47584677",
"0.4736894",
"0.47246978",
"0.47170824",
"0.4709638",
"0.47058934",
"0.46967027",
"0.46849072",
"0.46772772",
"0.46567744",
"0.46562687",
"0.4653811",
"0.4643504",
"0.46410853",
"0.46361914",
"0.46295628",
"0.46270293"
] | 0.7673199 | 0 |
Timestamp when transaction occurred. Required. The format is "YYYYMMDD HH:MM:SS". Examples: "20180305 09:15:00" or "20180201 14:34:30" .google.protobuf.StringValue transaction_date_time = 1; | com.google.protobuf.StringValueOrBuilder getTransactionDateTimeOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getTransactionDateTime();",
"public void setTransactionTime(Timestamp value) {\r\n setAttributeInternal(TRANSACTIONTIME, value);\r\n }",
"@ApiModelProperty(example = \"1518811817\", value = \"The transaction time in seconds since epoch.\")\n public Long getTransactionTime() {\n return transactionTime;\n }",
"public String getTimestamp() {\n Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"java.lang.String getTimestamp();",
"java.lang.String getTimestamp();",
"public String getTimestamp() {\n Object ref = timestamp_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n timestamp_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"com.google.protobuf.Timestamp getCreateTime();",
"public com.google.protobuf.Timestamp getTimestamp() {\n if (timestampBuilder_ == null) {\n return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n } else {\n return timestampBuilder_.getMessage();\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Timestamp getTransactionTime() {\r\n return (Timestamp) getAttributeInternal(TRANSACTIONTIME);\r\n }",
"com.google.protobuf.Timestamp getTimestamp();",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.Timestamp getCreateTime() {\n if (createTimeBuilder_ == null) {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n } else {\n return createTimeBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.Timestamp getCreateTime() {\n if (createTimeBuilder_ == null) {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n } else {\n return createTimeBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getTimestamp();",
"String getTimestamp();",
"com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();",
"com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();",
"com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();",
"public String getDateTimeInsertString(java.sql.Timestamp aTimestamp){\r\n return \"'\" + DBUtil.getDBDateTimeString(aTimestamp) + \"'\";\r\n }",
"DateTime getTransactionTime() {\n assertInTransaction();\n return TRANSACTION_INFO.get().transactionTime;\n }",
"public com.google.protobuf.Timestamp getTimestamp() {\n return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n }",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.Timestamp getContainerTimestamp();",
"public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {\n if (createTimeBuilder_ != null) {\n return createTimeBuilder_.getMessageOrBuilder();\n } else {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n }\n }",
"public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {\n if (createTimeBuilder_ != null) {\n return createTimeBuilder_.getMessageOrBuilder();\n } else {\n return createTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : createTime_;\n }\n }",
"com.google.protobuf.TimestampOrBuilder getSendTimeOrBuilder();",
"public Builder setCreateTime(com.google.protobuf.Timestamp value) {\n if (createTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n createTime_ = value;\n } else {\n createTimeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000200;\n onChanged();\n return this;\n }",
"public DateTime timestamp() {\n\n\t\tif (timestamp == null) {\n\n\t\t\tfinal DateTimeValue dt = ProtoDateUtil.fromDecimalDateTime(message.getBaseTimeStamp());\n\n\t\t\ttimestamp = new DateTime(dt.getYear(), dt.getMonth(), dt.getDay(), dt.getHour(), dt.getMinute(),\n\t\t\t\t\tdt.getSecond(), dt.getMillis(), ISOChronology.getInstanceUTC());\n\n\t\t}\n\n\t\treturn timestamp;\n\n\t}",
"com.google.protobuf.Timestamp getSendTime();",
"public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {\n if (timestampBuilder_ != null) {\n return timestampBuilder_.getMessageOrBuilder();\n } else {\n return timestamp_ == null ?\n com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;\n }\n }",
"private String syncTimeStamp(String timestamp){\r\n StringBuilder dateBuilder = new StringBuilder(timestamp);\r\n String time = dateBuilder.toString().split(\"T\")[1].substring(0, 8);\r\n String[] timeArr = time.split(\":\");\r\n String seconds = timeArr[2];\r\n String dd = dateBuilder.toString().split(\"T\")[0].split(\"-\")[2];\r\n String mm = dateBuilder.toString().split(\"T\")[0].split(\"-\")[1];\r\n String yyyy = dateBuilder.toString().split(\"T\")[0].split(\"-\")[0];\r\n int hour = Integer.parseInt(timeArr[0]);\r\n int minutes = Integer.parseInt(timeArr[1]);\r\n minutes += 30;\r\n hour+=5;\r\n if (minutes>=60){\r\n hour += 1;\r\n minutes -= 60;\r\n }\r\n if (hour >= 24){\r\n hour -= 24;\r\n dd = Integer.toString(Integer.parseInt(dd) + 1);\r\n if (Integer.parseInt(dd) < 10)\r\n dd = \"0\" + dd;\r\n }\r\n String minutesString;\r\n if (minutes < 10)\r\n minutesString = \"0\" + Integer.toString(minutes);\r\n else\r\n minutesString = Integer.toString(minutes);\r\n\r\n String hoursString;\r\n if (hour < 10)\r\n hoursString = \"0\" + Integer.toString(hour);\r\n else\r\n hoursString = Integer.toString(hour);\r\n String finalTime = hoursString + \":\" + minutesString + \":\" + seconds;\r\n String finalDate = dd + \"-\" + mm + \"-\" + yyyy;\r\n\r\n return (finalDate + \" \" + finalTime);\r\n }",
"public TransactionBuilder setTimestamp(long timestamp);",
"com.google.protobuf.Timestamp getStartTime();",
"public void setTransactionDate(java.util.Calendar transactionDate) {\r\n this.transactionDate = transactionDate;\r\n }",
"@ZAttr(id=790)\n public void setCreateTimestampAsString(String zimbraCreateTimestamp) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraCreateTimestamp, zimbraCreateTimestamp);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public Builder setCreateTime(com.google.protobuf.Timestamp value) {\n if (createTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n createTime_ = value;\n } else {\n createTimeBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();",
"@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getPayTs() {\n\t\treturn payTs;\n\t}",
"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 static String getTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\t//define the format of time stamp\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\treturn sdf.format(cal.getTime());\n\n\t}",
"private void setTimestamp(String timestamp){\n put(SlackParamsConstants.TIMESTAMP, timestamp);\n }",
"com.google.protobuf.ByteString\n getTimeBytes();",
"public String getTimestamp()\n {\n return timestamp;\n }",
"public TimestampDto(boolean confirm_status, String address, long timestamp, String transaction)\n {\n this.confirm_status = confirm_status;\n this.timestamp = timestamp;\n this.address = address;\n this.transaction = transaction;\n }",
"private final LocalDateTime get_TIMESTAMP(int column) {\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 26, charset_[column - 1]).toString();\n return LocalDateTime.parse(timeString, DRDAConstants.DB2_TIMESTAMP_FORMAT);\n// return DateTime.timestampBytesToTimestamp(\n// dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1],\n// agent_.connection_.serverSupportsTimestampNanoseconds());\n }",
"private Timestamp getDatetimeTimestamp() {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime((Date) spDate.getValue());\n\n\t\tCalendar cal_temp = Calendar.getInstance();\n\t\tcal_temp.setTime((Date) spTime.getValue());\n\n\t\tcal.set(Calendar.HOUR_OF_DAY, cal_temp.get(Calendar.HOUR_OF_DAY));\n\t\tcal.set(Calendar.MINUTE, cal_temp.get(Calendar.MINUTE));\n\t\treturn new Timestamp(cal.getTimeInMillis());\n\t}",
"public com.babbler.ws.io.avro.model.BabbleValue.Builder setTimestamp(java.lang.String value) {\n validate(fields()[2], value);\n this.timestamp = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"com.google.protobuf.ByteString getSignedTimeStamp();",
"@ZAttr(id=790)\n public String getCreateTimestampAsString() {\n return getAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }",
"public Date getTransactionDate() {\n\t\treturn transactionDate;\n\t}",
"public String getTimestampString() throws SQLException {\n\t\tloadFromDB();\n\t\treturn DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM)\n\t\t\t\t\t.format(rev_timestamp);\n\t}",
"public static String getTimestamp() {\r\n\t\t\r\n\t\treturn new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t}",
"public static String timestampOf(Date date) {\n if (date == null) {\n return null;\n }\n\n return formatDate(date, TIMESTAMP_FORMAT);\n }",
"@java.lang.Override\n public com.google.protobuf.Timestamp getCreateTime() {\n return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;\n }",
"@java.lang.Override\n public com.google.protobuf.Timestamp getCreateTime() {\n return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;\n }",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n }\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\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 time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"public com.google.protobuf.Timestamp getCreatedAt() {\n if (createdAtBuilder_ == null) {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n } else {\n return createdAtBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.Timestamp getCreatedAt() {\n if (createdAtBuilder_ == null) {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n } else {\n return createdAtBuilder_.getMessage();\n }\n }",
"public com.google.protobuf.Timestamp getCreatedAt() {\n if (createdAtBuilder_ == null) {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n } else {\n return createdAtBuilder_.getMessage();\n }\n }",
"com.google.protobuf.Timestamp getSubmitTime();",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\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 time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimeBytes() {\n java.lang.Object ref = time_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n time_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTransactionId() {\n java.lang.Object ref = transactionId_;\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 transactionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"UtcT time_stamp () throws BaseException;",
"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}",
"@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }",
"com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();",
"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 Timestamp getTimestamp(String timestampString) {\r\n Timestamp timestamp;\r\n try {\r\n timestamp = SpringContext.getBean(DateTimeService.class).convertToSqlTimestamp(timestampString);\r\n }\r\n catch (ParseException e) {\r\n assertNull(\"Timestamp String was not parseable\", e);\r\n return null;\r\n }\r\n return timestamp;\r\n }",
"public java.lang.String getTime() {\n java.lang.Object ref = time_;\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 time_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {\n return getTimestamp();\n }",
"public String getDatetime() {\n return datetime;\n }",
"public TransactionTimestamp() {\n\t\tlatestTimestamp = new AtomicLong(0);\n\t}",
"TimestampOperatorNode(ValueNode date,\n ValueNode time,\n ContextManager cm)\n {\n super(cm);\n leftOperand = date;\n rightOperand = time;\n operator = \"timestamp\";\n methodName = \"getTimestamp\";\n }",
"com.google.protobuf.TimestampOrBuilder getContainerTimestampOrBuilder();",
"@ZAttr(id=790)\n public void setCreateTimestamp(Date zimbraCreateTimestamp) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraCreateTimestamp, zimbraCreateTimestamp==null ? \"\" : DateUtil.toGeneralizedTime(zimbraCreateTimestamp));\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public static String getGitTimestamp() {\n return StringUtils.defaultIfEmpty(gitProperties.getProperty(GIT_PROPERTIES_COMMIT_TS_KEY),\n StringUtils.EMPTY);\n }"
] | [
"0.7674042",
"0.62540555",
"0.5804022",
"0.57423836",
"0.5737782",
"0.5737782",
"0.57066023",
"0.5701939",
"0.5701939",
"0.5701939",
"0.5701939",
"0.5701939",
"0.5554217",
"0.55498147",
"0.55498147",
"0.5547826",
"0.5547826",
"0.5543703",
"0.5543703",
"0.55191034",
"0.55173165",
"0.54812616",
"0.5440454",
"0.5440454",
"0.54205966",
"0.54205966",
"0.53620285",
"0.5340155",
"0.5340155",
"0.53336143",
"0.53336143",
"0.53336143",
"0.5317023",
"0.5218169",
"0.5204545",
"0.5149149",
"0.5149149",
"0.5149149",
"0.51320696",
"0.5119751",
"0.5119751",
"0.51141113",
"0.51131755",
"0.51011187",
"0.5099188",
"0.50931656",
"0.5086506",
"0.50828093",
"0.5075809",
"0.50673306",
"0.50579524",
"0.5047527",
"0.50203925",
"0.5015327",
"0.49921823",
"0.49857575",
"0.4985343",
"0.49726766",
"0.49703965",
"0.4965945",
"0.49606153",
"0.4935027",
"0.49179375",
"0.4914634",
"0.49108887",
"0.48801365",
"0.4876752",
"0.48738495",
"0.48710167",
"0.4869609",
"0.4869609",
"0.48675323",
"0.48515543",
"0.4842143",
"0.481286",
"0.48007685",
"0.480057",
"0.47945666",
"0.47898424",
"0.47898424",
"0.47898424",
"0.47738808",
"0.47685322",
"0.47586057",
"0.47371143",
"0.4726114",
"0.47179374",
"0.47115982",
"0.47071725",
"0.46971384",
"0.46858117",
"0.46786937",
"0.46577474",
"0.46577013",
"0.46535027",
"0.46443963",
"0.46432036",
"0.46370018",
"0.46307588",
"0.46299434"
] | 0.7243315 | 1 |
Transaction amount in micros. Required. .google.protobuf.DoubleValue transaction_amount_micros = 2; | boolean hasTransactionAmountMicros(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.DoubleValue getTransactionAmountMicros();",
"com.google.protobuf.DoubleValueOrBuilder getTransactionAmountMicrosOrBuilder();",
"public static double microSecondsToMilliSeconds(double num) { return (num/Math.pow(10,3)); }",
"public void setTransactionAmount(java.math.BigDecimal transactionAmount) {\r\n this.transactionAmount = transactionAmount;\r\n }",
"public long priceToMicros(BigDecimal bigDecimal) {\n return MICRO_CONSTANT.multiply(bigDecimal).longValue();\n }",
"public double convert(double amount, Unit u);",
"private double usdToBitcoin(double usd) {\n return usd/(usd + 120);\n }",
"public SenderCharge(Double amount, Currency currency) {\n this.amount = amount;\n this.currency = currency;\n }",
"public Coin(double value, String currency)\n\t{\n\t\tthis.value = value;\n\t\tthis.currency = currency;\n\t}",
"Double somaValoresPorTransactionType(TransactionType transactionType, Integer mes);",
"public void addBitcoins(double amount){\r\n if(amount < 0) throw new IllegalArgumentException(\"Amount may not be less than 0\");\r\n bitcoins += amount;\r\n receivedBitcoins += amount;\r\n }",
"public static long timestampMicros()\n {\n return currentTimeMillis() * 1000;\n }",
"public long getTimeStampMicro(int columnIndex) {\n TimeStampMicroVector vector = (TimeStampMicroVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"com.google.protobuf.ByteString\n getTradeCurrencyBytes();",
"public MoneyRecMoneyConverter(double amount)\r\n\t{\r\n\t\tthis.amount = amount;\r\n\t}",
"public TransactionRecord(int accountNumber, double amount) {\n \n this.accountNumber = accountNumber;\n this.amount = amount;\n }",
"public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }",
"public void setAmount(double value) {\n this.amount = value;\n }",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public io.lightcone.data.types.AmountOrBuilder getAmountOrBuilder() {\n return getAmount();\n }",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void transferMoney(float amount, String transferToNumber) {}",
"public BigDecimal getUnitAmount() {\n return this.unitAmount;\n }",
"public void setUnitAmount(BigDecimal unitAmount) {\n this.unitAmount = unitAmount;\n }",
"BigDecimal getAmount();",
"public Double micrometersPerSecond()\n\t{\n\t\treturn getValue(VelocityUnit.MICROMETERS_PER_SECOND);\n\t}",
"abstract Valuable createMoney(double value);",
"@ApiModelProperty(required = true, value = \"The transaction amount to be delivered to the recipient.\")\n public Double getAmount() {\n return amount;\n }",
"public String getUnitAmountDecimal() {\n return this.unitAmountDecimal;\n }",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public void setTransaction(Double transaction) {\r\n this.transaction = transaction;\r\n }",
"public void setAmount(Double amount) {\r\n this.amount = amount;\r\n }",
"public Coin(double value)\n\t{\n\t\tthis.value = value;\n\t\tthis.currency = DEFAULT_CURRENCY;\n\t}",
"public long getMicros() {\r\n \treturn micros;\r\n }",
"public java.math.BigDecimal getTransactionAmount() {\r\n return transactionAmount;\r\n }",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\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 if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n }\n }",
"public static double fluidOuncesToMillilitres(double num) { return (num*29.574); }",
"public void setAmount(Double amount) {\n this.amount = amount;\n }",
"public void setAmount(double value) {\n this.amount = value;\n }",
"@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }",
"public Money(BigDecimal amount, Currency currency) {\n this.amount = amount.setScale(2, RoundingMode.HALF_UP);\n this.currency = currency;\n }",
"public BigDecimal getUnitAmount() {\n return unitAmount;\n }",
"public double getUSValue(float toUSDollarRatio);",
"public io.lightcone.data.types.AmountOrBuilder getAmountOrBuilder() {\n if (amountBuilder_ != null) {\n return amountBuilder_.getMessageOrBuilder();\n } else {\n return amount_ == null ?\n io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n }\n }",
"public Double terabytesPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.TERABYTES_PER_SEC);\n\t}",
"public Builder setTradeCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }",
"public Money convertToMoney(float amount) {\n return new Money(amount);\n }",
"public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }",
"double getMoney();",
"public static long getMicrosecondsFromSeconds(Long seconds) {\n return TimeUnit.SECONDS.toMicros(seconds);\n }",
"public io.lightcone.data.types.Amount getAmount() {\n if (amountBuilder_ == null) {\n return amount_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n } else {\n return amountBuilder_.getMessage();\n }\n }",
"public Money(float amount) {\n setAmountFloat(amount);\n }",
"public io.lightcone.data.types.Amount getAmount() {\n return amount_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public void setAmount(double value) {\r\n\t\tthis.amount = value;\r\n\t}",
"public void micrometersPerSecond(Double val)\n\t{\n\t\tsetValue(val, VelocityUnit.MICROMETERS_PER_SECOND);\n\t}",
"public static Bytes terabytes(final double terabytes)\n\t{\n\t\treturn gigabytes(terabytes * 1024.0);\n\t}",
"public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}",
"public Double getAmount() {\r\n return amount;\r\n }",
"public void setAmount(double amount) {\n this.amount = amount;\n }",
"public void setAmount(double amount) {\n this.amount = amount;\n }",
"public void setAmount(long value) {\r\n this.amount = value;\r\n }",
"public double calculateTax(double amount){\n return (amount*TAX_4_1000)/1000;\n }",
"public final long convertToMillis(final double rate) {\n return (long) (1000 / rate);\n }",
"public long getTimeMicro(int columnIndex) {\n TimeMicroVector vector = (TimeMicroVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public BankNote(double value, String currency) {\n if (value <= 0 || currency.isEmpty() || currency.equals(null) || currency.isBlank()) {\n throw new IllegalArgumentException(\"Value is 0, or Non currency\");\n }\n this.value = value;\n this.currency = currency;\n this.serialNumber = nextSerialNumber;\n nextSerialNumber++;\n }",
"public java.lang.Long getAmount () {\r\n\t\treturn amount;\r\n\t}",
"public long getAmount() {\r\n return amount;\r\n }",
"public void addTransaction(double amount) {\n this.transactions.add(amount);\n }",
"public void setBitcoins(double Bitcoins){\r\n bitcoins = Bitcoins;\r\n }",
"public BankNote(double value,String currency,long serialNumber) {\n\t\tsuper(value,currency);\n\t\tthis.serialNumber = serialNumber;\n\t}",
"public Coin(double value, String name) {\n this.value = value;\n this.name = name;\n }",
"public static double bytesToMega(long bytes) {\n return normalizeBytes(bytes, MEGABYTE);\n }",
"public long getMoney() {\n return money;\n }",
"public long getTimeStampMicro(String columnName) {\n TimeStampMicroVector vector = (TimeStampMicroVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public void setAmount (double amount) {\r\n\t\tthis.amount = amount;\r\n\t}",
"public long getAmount() {\n\t\treturn amount;\n\t}",
"public long getAmount() {\n return amount;\n }",
"public double getAmount() { return amount; }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount getAmount();",
"public Double getTotalAmountbyTransactionType(String transactionType) throws JsonProcessingException, IOException {\r\n\r\n\t\tlogger.info(\"Logger Name: getTotalAmountbyTransactionType() :: \" + logger.getName());\r\n\t\tlogger.debug(\"Transaction Type : getTotalAmountbyTransactionType() :: \" + transactionType);\r\n\t\tObjectMapper mapper = new ObjectMapper();\r\n\t\tDouble totalAmount = 0.00;\r\n\r\n\t\tlogger.info(\"Open Bank API URL :: getTotalAmountbyTransactionType() :: \"\r\n\t\t\t\t+ TransactionConstant.THIRD_PARTY_REST_API);\r\n\t\tJsonNode root = mapper.readTree(new URL(TransactionConstant.THIRD_PARTY_REST_API));\r\n\r\n\t\t/* Traversing Nested JSON node to get/add the total amount */\r\n\t\ttry {\r\n\t\t\tJsonNode transactionsNodes = root.path(\"transactions\");\r\n\t\t\tfor (JsonNode transactionsNode : transactionsNodes) {\r\n\t\t\t\tJsonNode details = transactionsNode.path(\"details\");\r\n\r\n\t\t\t\t/* When transactionType is null or empty */\r\n\t\t\t\tif (transactionType == null && details.path(\"type\").isNull() == true) {\r\n\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\tDouble tempAmount = value.path(\"amount\").asDouble();\r\n\t\t\t\t\ttotalAmount = totalAmount + tempAmount;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* When transactionType is not null or empty */\r\n\t\t\t\telse if (transactionType != null) {\r\n\r\n\t\t\t\t\tif ((details.path(\"type\").asText()).equalsIgnoreCase(transactionType.trim())) {\r\n\t\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\t\tDouble tempAmount = value.path(\"amount\").asDouble();\r\n\t\t\t\t\t\ttotalAmount = totalAmount + tempAmount;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception : getTotalAmountbyTransactionType() :: \", e);\r\n\t\t}\r\n\t\tlogger.info(\"Response from Service layer :: Total Amount: getTotalAmountbyTransactionType() :: \" + totalAmount);\r\n\t\treturn totalAmount;\r\n\r\n\t}",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setBaseMtmUsd(double value) {\r\n this.baseMtmUsd = value;\r\n }",
"public double getAmount() {\n return amount;\n }",
"public void deposit(double value){\r\n balance += value;\r\n}",
"@ApiModelProperty(required = true, value = \"The amount to transfer from account\")\n @JsonProperty(JSON_PROPERTY_AMOUNT)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public BigDecimal getAmount() {\n return amount;\n }",
"public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }",
"void chargeTf(double amount);",
"public void terabytesPerSecond(Double val)\n\t{\n\t\tsetValue(val, DataRateUnit.TERABYTES_PER_SEC);\n\t}",
"public double getMoney() {\n return money_;\n }",
"public double getMoney() {\n return money_;\n }",
"public int getAmount()\n {\n return this.transactionValue;\n }",
"public io.lightcone.data.types.AmountOrBuilder getAmountFOrBuilder() {\n return getAmountF();\n }",
"@ApiModelProperty(required = true, value = \"Unit Amount Excluding Tax\")\n public Double getUnitAmountExcludingTax() {\n return unitAmountExcludingTax;\n }"
] | [
"0.8482153",
"0.8320195",
"0.5768192",
"0.5405427",
"0.5353421",
"0.5322162",
"0.5284772",
"0.52823055",
"0.5227964",
"0.52005726",
"0.5186299",
"0.51157737",
"0.5110709",
"0.5104246",
"0.506445",
"0.50631964",
"0.5059368",
"0.5047287",
"0.50433826",
"0.5042822",
"0.50046754",
"0.4993537",
"0.49880597",
"0.49875435",
"0.4982266",
"0.4967529",
"0.49413043",
"0.4935975",
"0.4933971",
"0.49191082",
"0.49177596",
"0.49086472",
"0.4907711",
"0.49059",
"0.49016276",
"0.48994026",
"0.4894155",
"0.48916057",
"0.4876304",
"0.487621",
"0.48735604",
"0.4867825",
"0.48675928",
"0.48657805",
"0.48445663",
"0.48430762",
"0.4816383",
"0.48082232",
"0.48042384",
"0.47958177",
"0.4793891",
"0.4788818",
"0.47812647",
"0.47757968",
"0.47757968",
"0.47757968",
"0.47757968",
"0.47731337",
"0.47727317",
"0.47725856",
"0.47549924",
"0.47540152",
"0.47426164",
"0.47426164",
"0.4740487",
"0.47391245",
"0.47357592",
"0.4728205",
"0.47168344",
"0.47121322",
"0.4710837",
"0.4704661",
"0.46991014",
"0.46988586",
"0.46919248",
"0.46900952",
"0.46831894",
"0.46820152",
"0.4677053",
"0.46757615",
"0.46754456",
"0.46669814",
"0.4662622",
"0.46625918",
"0.46619794",
"0.46619794",
"0.46619794",
"0.46619794",
"0.46563724",
"0.4653456",
"0.4652586",
"0.46517658",
"0.46431172",
"0.46393052",
"0.46374604",
"0.46332866",
"0.46294746",
"0.46250278",
"0.46221107",
"0.4617169"
] | 0.6185765 | 2 |
Transaction amount in micros. Required. .google.protobuf.DoubleValue transaction_amount_micros = 2; | com.google.protobuf.DoubleValue getTransactionAmountMicros(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.DoubleValueOrBuilder getTransactionAmountMicrosOrBuilder();",
"boolean hasTransactionAmountMicros();",
"public static double microSecondsToMilliSeconds(double num) { return (num/Math.pow(10,3)); }",
"public void setTransactionAmount(java.math.BigDecimal transactionAmount) {\r\n this.transactionAmount = transactionAmount;\r\n }",
"public long priceToMicros(BigDecimal bigDecimal) {\n return MICRO_CONSTANT.multiply(bigDecimal).longValue();\n }",
"public double convert(double amount, Unit u);",
"private double usdToBitcoin(double usd) {\n return usd/(usd + 120);\n }",
"public SenderCharge(Double amount, Currency currency) {\n this.amount = amount;\n this.currency = currency;\n }",
"public Coin(double value, String currency)\n\t{\n\t\tthis.value = value;\n\t\tthis.currency = currency;\n\t}",
"Double somaValoresPorTransactionType(TransactionType transactionType, Integer mes);",
"public void addBitcoins(double amount){\r\n if(amount < 0) throw new IllegalArgumentException(\"Amount may not be less than 0\");\r\n bitcoins += amount;\r\n receivedBitcoins += amount;\r\n }",
"public static long timestampMicros()\n {\n return currentTimeMillis() * 1000;\n }",
"public long getTimeStampMicro(int columnIndex) {\n TimeStampMicroVector vector = (TimeStampMicroVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"com.google.protobuf.ByteString\n getTradeCurrencyBytes();",
"public MoneyRecMoneyConverter(double amount)\r\n\t{\r\n\t\tthis.amount = amount;\r\n\t}",
"public TransactionRecord(int accountNumber, double amount) {\n \n this.accountNumber = accountNumber;\n this.amount = amount;\n }",
"public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }",
"public void setAmount(double value) {\n this.amount = value;\n }",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public io.lightcone.data.types.AmountOrBuilder getAmountOrBuilder() {\n return getAmount();\n }",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void transferMoney(float amount, String transferToNumber) {}",
"public void setUnitAmount(BigDecimal unitAmount) {\n this.unitAmount = unitAmount;\n }",
"public BigDecimal getUnitAmount() {\n return this.unitAmount;\n }",
"BigDecimal getAmount();",
"public Double micrometersPerSecond()\n\t{\n\t\treturn getValue(VelocityUnit.MICROMETERS_PER_SECOND);\n\t}",
"abstract Valuable createMoney(double value);",
"@ApiModelProperty(required = true, value = \"The transaction amount to be delivered to the recipient.\")\n public Double getAmount() {\n return amount;\n }",
"public String getUnitAmountDecimal() {\n return this.unitAmountDecimal;\n }",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public void setTransaction(Double transaction) {\r\n this.transaction = transaction;\r\n }",
"public void setAmount(Double amount) {\r\n this.amount = amount;\r\n }",
"public Coin(double value)\n\t{\n\t\tthis.value = value;\n\t\tthis.currency = DEFAULT_CURRENCY;\n\t}",
"public long getMicros() {\r\n \treturn micros;\r\n }",
"public java.math.BigDecimal getTransactionAmount() {\r\n return transactionAmount;\r\n }",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\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 if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n }\n }",
"public void setAmount(Double amount) {\n this.amount = amount;\n }",
"public static double fluidOuncesToMillilitres(double num) { return (num*29.574); }",
"public void setAmount(double value) {\n this.amount = value;\n }",
"@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }",
"public Money(BigDecimal amount, Currency currency) {\n this.amount = amount.setScale(2, RoundingMode.HALF_UP);\n this.currency = currency;\n }",
"public BigDecimal getUnitAmount() {\n return unitAmount;\n }",
"public io.lightcone.data.types.AmountOrBuilder getAmountOrBuilder() {\n if (amountBuilder_ != null) {\n return amountBuilder_.getMessageOrBuilder();\n } else {\n return amount_ == null ?\n io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n }\n }",
"public double getUSValue(float toUSDollarRatio);",
"public Builder setTradeCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }",
"public Double terabytesPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.TERABYTES_PER_SEC);\n\t}",
"public Money convertToMoney(float amount) {\n return new Money(amount);\n }",
"public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }",
"double getMoney();",
"public io.lightcone.data.types.Amount getAmount() {\n if (amountBuilder_ == null) {\n return amount_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n } else {\n return amountBuilder_.getMessage();\n }\n }",
"public static long getMicrosecondsFromSeconds(Long seconds) {\n return TimeUnit.SECONDS.toMicros(seconds);\n }",
"public Money(float amount) {\n setAmountFloat(amount);\n }",
"public io.lightcone.data.types.Amount getAmount() {\n return amount_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public void setAmount(double value) {\r\n\t\tthis.amount = value;\r\n\t}",
"public static Bytes terabytes(final double terabytes)\n\t{\n\t\treturn gigabytes(terabytes * 1024.0);\n\t}",
"public void micrometersPerSecond(Double val)\n\t{\n\t\tsetValue(val, VelocityUnit.MICROMETERS_PER_SECOND);\n\t}",
"public Double getAmount() {\r\n return amount;\r\n }",
"public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}",
"public void setAmount(double amount) {\n this.amount = amount;\n }",
"public void setAmount(double amount) {\n this.amount = amount;\n }",
"public void setAmount(long value) {\r\n this.amount = value;\r\n }",
"public double calculateTax(double amount){\n return (amount*TAX_4_1000)/1000;\n }",
"public final long convertToMillis(final double rate) {\n return (long) (1000 / rate);\n }",
"public long getTimeMicro(int columnIndex) {\n TimeMicroVector vector = (TimeMicroVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public BankNote(double value, String currency) {\n if (value <= 0 || currency.isEmpty() || currency.equals(null) || currency.isBlank()) {\n throw new IllegalArgumentException(\"Value is 0, or Non currency\");\n }\n this.value = value;\n this.currency = currency;\n this.serialNumber = nextSerialNumber;\n nextSerialNumber++;\n }",
"public java.lang.Long getAmount () {\r\n\t\treturn amount;\r\n\t}",
"public long getAmount() {\r\n return amount;\r\n }",
"public void addTransaction(double amount) {\n this.transactions.add(amount);\n }",
"public BankNote(double value,String currency,long serialNumber) {\n\t\tsuper(value,currency);\n\t\tthis.serialNumber = serialNumber;\n\t}",
"public void setBitcoins(double Bitcoins){\r\n bitcoins = Bitcoins;\r\n }",
"public Coin(double value, String name) {\n this.value = value;\n this.name = name;\n }",
"public static double bytesToMega(long bytes) {\n return normalizeBytes(bytes, MEGABYTE);\n }",
"public long getMoney() {\n return money;\n }",
"public long getTimeStampMicro(String columnName) {\n TimeStampMicroVector vector = (TimeStampMicroVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public void setAmount (double amount) {\r\n\t\tthis.amount = amount;\r\n\t}",
"public long getAmount() {\n\t\treturn amount;\n\t}",
"public long getAmount() {\n return amount;\n }",
"public double getAmount() { return amount; }",
"public Double getTotalAmountbyTransactionType(String transactionType) throws JsonProcessingException, IOException {\r\n\r\n\t\tlogger.info(\"Logger Name: getTotalAmountbyTransactionType() :: \" + logger.getName());\r\n\t\tlogger.debug(\"Transaction Type : getTotalAmountbyTransactionType() :: \" + transactionType);\r\n\t\tObjectMapper mapper = new ObjectMapper();\r\n\t\tDouble totalAmount = 0.00;\r\n\r\n\t\tlogger.info(\"Open Bank API URL :: getTotalAmountbyTransactionType() :: \"\r\n\t\t\t\t+ TransactionConstant.THIRD_PARTY_REST_API);\r\n\t\tJsonNode root = mapper.readTree(new URL(TransactionConstant.THIRD_PARTY_REST_API));\r\n\r\n\t\t/* Traversing Nested JSON node to get/add the total amount */\r\n\t\ttry {\r\n\t\t\tJsonNode transactionsNodes = root.path(\"transactions\");\r\n\t\t\tfor (JsonNode transactionsNode : transactionsNodes) {\r\n\t\t\t\tJsonNode details = transactionsNode.path(\"details\");\r\n\r\n\t\t\t\t/* When transactionType is null or empty */\r\n\t\t\t\tif (transactionType == null && details.path(\"type\").isNull() == true) {\r\n\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\tDouble tempAmount = value.path(\"amount\").asDouble();\r\n\t\t\t\t\ttotalAmount = totalAmount + tempAmount;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* When transactionType is not null or empty */\r\n\t\t\t\telse if (transactionType != null) {\r\n\r\n\t\t\t\t\tif ((details.path(\"type\").asText()).equalsIgnoreCase(transactionType.trim())) {\r\n\t\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\t\tDouble tempAmount = value.path(\"amount\").asDouble();\r\n\t\t\t\t\t\ttotalAmount = totalAmount + tempAmount;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception : getTotalAmountbyTransactionType() :: \", e);\r\n\t\t}\r\n\t\tlogger.info(\"Response from Service layer :: Total Amount: getTotalAmountbyTransactionType() :: \" + totalAmount);\r\n\t\treturn totalAmount;\r\n\r\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount getAmount();",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setBaseMtmUsd(double value) {\r\n this.baseMtmUsd = value;\r\n }",
"public double getAmount() {\n return amount;\n }",
"@ApiModelProperty(required = true, value = \"The amount to transfer from account\")\n @JsonProperty(JSON_PROPERTY_AMOUNT)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public BigDecimal getAmount() {\n return amount;\n }",
"public void deposit(double value){\r\n balance += value;\r\n}",
"public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }",
"void chargeTf(double amount);",
"public void terabytesPerSecond(Double val)\n\t{\n\t\tsetValue(val, DataRateUnit.TERABYTES_PER_SEC);\n\t}",
"public double getMoney() {\n return money_;\n }",
"public double getMoney() {\n return money_;\n }",
"public int getAmount()\n {\n return this.transactionValue;\n }",
"public io.lightcone.data.types.AmountOrBuilder getAmountFOrBuilder() {\n return getAmountF();\n }",
"@ApiModelProperty(required = true, value = \"Unit Amount Excluding Tax\")\n public Double getUnitAmountExcludingTax() {\n return unitAmountExcludingTax;\n }"
] | [
"0.83198375",
"0.61835426",
"0.5766033",
"0.5407316",
"0.5352794",
"0.53214407",
"0.52837765",
"0.52820086",
"0.52273715",
"0.5199725",
"0.51854384",
"0.51125574",
"0.51089066",
"0.51046044",
"0.5064758",
"0.5063253",
"0.5059779",
"0.50484747",
"0.50445986",
"0.50433767",
"0.5005868",
"0.49928916",
"0.4989049",
"0.49885687",
"0.49824515",
"0.4965898",
"0.4940057",
"0.49371684",
"0.49352604",
"0.4920008",
"0.49179053",
"0.4909658",
"0.49073642",
"0.49034727",
"0.49025068",
"0.49002707",
"0.4892685",
"0.4892443",
"0.48776633",
"0.48769113",
"0.48742265",
"0.48682275",
"0.48678187",
"0.4866378",
"0.48447496",
"0.48433185",
"0.48171347",
"0.48099414",
"0.48031676",
"0.47958672",
"0.47941357",
"0.4787986",
"0.47828048",
"0.47758472",
"0.47758472",
"0.47758472",
"0.47758472",
"0.47748572",
"0.47714588",
"0.47710627",
"0.47543243",
"0.47538325",
"0.4743645",
"0.4743645",
"0.4740896",
"0.47393683",
"0.4735306",
"0.47264653",
"0.47164243",
"0.47129437",
"0.47106925",
"0.47045568",
"0.4698785",
"0.46976396",
"0.46903107",
"0.46891376",
"0.4682042",
"0.4680116",
"0.46784064",
"0.46763214",
"0.4675306",
"0.46666765",
"0.46632278",
"0.4662746",
"0.46624532",
"0.46624532",
"0.46624532",
"0.46624532",
"0.46561962",
"0.4653563",
"0.46526903",
"0.46521884",
"0.46442583",
"0.4637912",
"0.4636367",
"0.46332055",
"0.46292147",
"0.4625269",
"0.46223512",
"0.46177727"
] | 0.8481532 | 0 |
Transaction amount in micros. Required. .google.protobuf.DoubleValue transaction_amount_micros = 2; | com.google.protobuf.DoubleValueOrBuilder getTransactionAmountMicrosOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.DoubleValue getTransactionAmountMicros();",
"boolean hasTransactionAmountMicros();",
"public static double microSecondsToMilliSeconds(double num) { return (num/Math.pow(10,3)); }",
"public void setTransactionAmount(java.math.BigDecimal transactionAmount) {\r\n this.transactionAmount = transactionAmount;\r\n }",
"public long priceToMicros(BigDecimal bigDecimal) {\n return MICRO_CONSTANT.multiply(bigDecimal).longValue();\n }",
"public double convert(double amount, Unit u);",
"private double usdToBitcoin(double usd) {\n return usd/(usd + 120);\n }",
"public SenderCharge(Double amount, Currency currency) {\n this.amount = amount;\n this.currency = currency;\n }",
"public Coin(double value, String currency)\n\t{\n\t\tthis.value = value;\n\t\tthis.currency = currency;\n\t}",
"Double somaValoresPorTransactionType(TransactionType transactionType, Integer mes);",
"public void addBitcoins(double amount){\r\n if(amount < 0) throw new IllegalArgumentException(\"Amount may not be less than 0\");\r\n bitcoins += amount;\r\n receivedBitcoins += amount;\r\n }",
"public static long timestampMicros()\n {\n return currentTimeMillis() * 1000;\n }",
"public long getTimeStampMicro(int columnIndex) {\n TimeStampMicroVector vector = (TimeStampMicroVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"com.google.protobuf.ByteString\n getTradeCurrencyBytes();",
"public MoneyRecMoneyConverter(double amount)\r\n\t{\r\n\t\tthis.amount = amount;\r\n\t}",
"public TransactionRecord(int accountNumber, double amount) {\n \n this.accountNumber = accountNumber;\n this.amount = amount;\n }",
"public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }",
"public void setAmount(double value) {\n this.amount = value;\n }",
"public io.lightcone.data.types.AmountOrBuilder getAmountOrBuilder() {\n return getAmount();\n }",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void transferMoney(float amount, String transferToNumber) {}",
"public BigDecimal getUnitAmount() {\n return this.unitAmount;\n }",
"public void setUnitAmount(BigDecimal unitAmount) {\n this.unitAmount = unitAmount;\n }",
"BigDecimal getAmount();",
"public Double micrometersPerSecond()\n\t{\n\t\treturn getValue(VelocityUnit.MICROMETERS_PER_SECOND);\n\t}",
"abstract Valuable createMoney(double value);",
"@ApiModelProperty(required = true, value = \"The transaction amount to be delivered to the recipient.\")\n public Double getAmount() {\n return amount;\n }",
"public String getUnitAmountDecimal() {\n return this.unitAmountDecimal;\n }",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public void setTransaction(Double transaction) {\r\n this.transaction = transaction;\r\n }",
"public void setAmount(Double amount) {\r\n this.amount = amount;\r\n }",
"public Coin(double value)\n\t{\n\t\tthis.value = value;\n\t\tthis.currency = DEFAULT_CURRENCY;\n\t}",
"public long getMicros() {\r\n \treturn micros;\r\n }",
"public java.math.BigDecimal getTransactionAmount() {\r\n return transactionAmount;\r\n }",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\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 if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n }\n }",
"public void setAmount(Double amount) {\n this.amount = amount;\n }",
"public static double fluidOuncesToMillilitres(double num) { return (num*29.574); }",
"public void setAmount(double value) {\n this.amount = value;\n }",
"@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }",
"public Money(BigDecimal amount, Currency currency) {\n this.amount = amount.setScale(2, RoundingMode.HALF_UP);\n this.currency = currency;\n }",
"public BigDecimal getUnitAmount() {\n return unitAmount;\n }",
"public io.lightcone.data.types.AmountOrBuilder getAmountOrBuilder() {\n if (amountBuilder_ != null) {\n return amountBuilder_.getMessageOrBuilder();\n } else {\n return amount_ == null ?\n io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n }\n }",
"public double getUSValue(float toUSDollarRatio);",
"public Double terabytesPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.TERABYTES_PER_SEC);\n\t}",
"public Builder setTradeCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }",
"public Money convertToMoney(float amount) {\n return new Money(amount);\n }",
"public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }",
"double getMoney();",
"public io.lightcone.data.types.Amount getAmount() {\n if (amountBuilder_ == null) {\n return amount_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n } else {\n return amountBuilder_.getMessage();\n }\n }",
"public static long getMicrosecondsFromSeconds(Long seconds) {\n return TimeUnit.SECONDS.toMicros(seconds);\n }",
"public Money(float amount) {\n setAmountFloat(amount);\n }",
"public io.lightcone.data.types.Amount getAmount() {\n return amount_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public Long getAmount() {\n return amount;\n }",
"public void setAmount(double value) {\r\n\t\tthis.amount = value;\r\n\t}",
"public static Bytes terabytes(final double terabytes)\n\t{\n\t\treturn gigabytes(terabytes * 1024.0);\n\t}",
"public void micrometersPerSecond(Double val)\n\t{\n\t\tsetValue(val, VelocityUnit.MICROMETERS_PER_SECOND);\n\t}",
"public Double getAmount() {\r\n return amount;\r\n }",
"public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}",
"public void setAmount(double amount) {\n this.amount = amount;\n }",
"public void setAmount(double amount) {\n this.amount = amount;\n }",
"public void setAmount(long value) {\r\n this.amount = value;\r\n }",
"public double calculateTax(double amount){\n return (amount*TAX_4_1000)/1000;\n }",
"public final long convertToMillis(final double rate) {\n return (long) (1000 / rate);\n }",
"public long getTimeMicro(int columnIndex) {\n TimeMicroVector vector = (TimeMicroVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public BankNote(double value, String currency) {\n if (value <= 0 || currency.isEmpty() || currency.equals(null) || currency.isBlank()) {\n throw new IllegalArgumentException(\"Value is 0, or Non currency\");\n }\n this.value = value;\n this.currency = currency;\n this.serialNumber = nextSerialNumber;\n nextSerialNumber++;\n }",
"public java.lang.Long getAmount () {\r\n\t\treturn amount;\r\n\t}",
"public long getAmount() {\r\n return amount;\r\n }",
"public void addTransaction(double amount) {\n this.transactions.add(amount);\n }",
"public BankNote(double value,String currency,long serialNumber) {\n\t\tsuper(value,currency);\n\t\tthis.serialNumber = serialNumber;\n\t}",
"public void setBitcoins(double Bitcoins){\r\n bitcoins = Bitcoins;\r\n }",
"public Coin(double value, String name) {\n this.value = value;\n this.name = name;\n }",
"public static double bytesToMega(long bytes) {\n return normalizeBytes(bytes, MEGABYTE);\n }",
"public long getMoney() {\n return money;\n }",
"public long getTimeStampMicro(String columnName) {\n TimeStampMicroVector vector = (TimeStampMicroVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public void setAmount (double amount) {\r\n\t\tthis.amount = amount;\r\n\t}",
"public long getAmount() {\n\t\treturn amount;\n\t}",
"public long getAmount() {\n return amount;\n }",
"public double getAmount() { return amount; }",
"public Double getTotalAmountbyTransactionType(String transactionType) throws JsonProcessingException, IOException {\r\n\r\n\t\tlogger.info(\"Logger Name: getTotalAmountbyTransactionType() :: \" + logger.getName());\r\n\t\tlogger.debug(\"Transaction Type : getTotalAmountbyTransactionType() :: \" + transactionType);\r\n\t\tObjectMapper mapper = new ObjectMapper();\r\n\t\tDouble totalAmount = 0.00;\r\n\r\n\t\tlogger.info(\"Open Bank API URL :: getTotalAmountbyTransactionType() :: \"\r\n\t\t\t\t+ TransactionConstant.THIRD_PARTY_REST_API);\r\n\t\tJsonNode root = mapper.readTree(new URL(TransactionConstant.THIRD_PARTY_REST_API));\r\n\r\n\t\t/* Traversing Nested JSON node to get/add the total amount */\r\n\t\ttry {\r\n\t\t\tJsonNode transactionsNodes = root.path(\"transactions\");\r\n\t\t\tfor (JsonNode transactionsNode : transactionsNodes) {\r\n\t\t\t\tJsonNode details = transactionsNode.path(\"details\");\r\n\r\n\t\t\t\t/* When transactionType is null or empty */\r\n\t\t\t\tif (transactionType == null && details.path(\"type\").isNull() == true) {\r\n\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\tDouble tempAmount = value.path(\"amount\").asDouble();\r\n\t\t\t\t\ttotalAmount = totalAmount + tempAmount;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* When transactionType is not null or empty */\r\n\t\t\t\telse if (transactionType != null) {\r\n\r\n\t\t\t\t\tif ((details.path(\"type\").asText()).equalsIgnoreCase(transactionType.trim())) {\r\n\t\t\t\t\t\tJsonNode value = details.path(\"value\");\r\n\t\t\t\t\t\tDouble tempAmount = value.path(\"amount\").asDouble();\r\n\t\t\t\t\t\ttotalAmount = totalAmount + tempAmount;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception : getTotalAmountbyTransactionType() :: \", e);\r\n\t\t}\r\n\t\tlogger.info(\"Response from Service layer :: Total Amount: getTotalAmountbyTransactionType() :: \" + totalAmount);\r\n\t\treturn totalAmount;\r\n\r\n\t}",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"public void setAmount(Long amount) {\n this.amount = amount;\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount getAmount();",
"public void setBaseMtmUsd(double value) {\r\n this.baseMtmUsd = value;\r\n }",
"public double getAmount() {\n return amount;\n }",
"@ApiModelProperty(required = true, value = \"The amount to transfer from account\")\n @JsonProperty(JSON_PROPERTY_AMOUNT)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public BigDecimal getAmount() {\n return amount;\n }",
"public void deposit(double value){\r\n balance += value;\r\n}",
"public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }",
"void chargeTf(double amount);",
"public void terabytesPerSecond(Double val)\n\t{\n\t\tsetValue(val, DataRateUnit.TERABYTES_PER_SEC);\n\t}",
"public double getMoney() {\n return money_;\n }",
"public double getMoney() {\n return money_;\n }",
"public int getAmount()\n {\n return this.transactionValue;\n }",
"public io.lightcone.data.types.AmountOrBuilder getAmountFOrBuilder() {\n return getAmountF();\n }",
"@ApiModelProperty(required = true, value = \"Unit Amount Excluding Tax\")\n public Double getUnitAmountExcludingTax() {\n return unitAmountExcludingTax;\n }"
] | [
"0.84822875",
"0.6183996",
"0.5766535",
"0.54072315",
"0.53526473",
"0.5322143",
"0.52830243",
"0.52827054",
"0.52280205",
"0.520156",
"0.5185222",
"0.51138324",
"0.5109803",
"0.5104168",
"0.50653416",
"0.50636125",
"0.5060496",
"0.5050084",
"0.504437",
"0.50437766",
"0.50050735",
"0.49937496",
"0.49894434",
"0.49888042",
"0.49833354",
"0.49677852",
"0.4941495",
"0.49385935",
"0.49358603",
"0.491978",
"0.4919568",
"0.49114668",
"0.49082094",
"0.49049726",
"0.49035987",
"0.4900069",
"0.48944247",
"0.48928264",
"0.48792437",
"0.48776707",
"0.48745012",
"0.48691994",
"0.48677456",
"0.48672923",
"0.4845321",
"0.484314",
"0.48174658",
"0.48107898",
"0.4804858",
"0.47956523",
"0.47942224",
"0.4789238",
"0.47834706",
"0.4777883",
"0.4777883",
"0.4777883",
"0.4777883",
"0.47762945",
"0.47725287",
"0.47721907",
"0.47563833",
"0.47550064",
"0.4745232",
"0.4745232",
"0.4742462",
"0.47409528",
"0.47357288",
"0.472717",
"0.4717824",
"0.4714852",
"0.4712818",
"0.4705577",
"0.46999407",
"0.4698296",
"0.46916392",
"0.46901783",
"0.46842182",
"0.46815145",
"0.4679921",
"0.4678261",
"0.46774518",
"0.46686944",
"0.466428",
"0.46641618",
"0.46641618",
"0.46641618",
"0.46641618",
"0.4663748",
"0.46573687",
"0.46555933",
"0.46538812",
"0.46531987",
"0.46447927",
"0.46392465",
"0.46378613",
"0.46349925",
"0.46310464",
"0.4627227",
"0.4623284",
"0.4619004"
] | 0.83204275 | 1 |
Transaction currency code. ISO 4217 threeletter code is used. Required. .google.protobuf.StringValue currency_code = 3; | boolean hasCurrencyCode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getCurrencyCode();",
"com.google.protobuf.StringValueOrBuilder getCurrencyCodeOrBuilder();",
"@ApiModelProperty(required = true, value = \"Use a 3-character alpha or numeric currency code for currency of the sender. You should (unless prohibited by local law / regulation) use the billingCurrencyCode obtained from the Funds Transfer Attribute Inquiry API under Payment Account Attribute Inquiry. <br><br>Refer to <a href=\\\"/request_response_codes#iso_country_and_currency_codes\\\">ISO Codes</a> \")\n public String getTransactionCurrencyCode() {\n return transactionCurrencyCode;\n }",
"public Currency(String code) {\n _code = code;\n UnitFormatImpl.getInstance().getSymbolMap().label(this, code);\n }",
"public String getCurrencyCode() {\n return currencyCode;\n }",
"public void setCurrencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n }",
"public void setCurrencyCode(String currencyCode)\r\n {\r\n m_currencyCode = currencyCode;\r\n }",
"public String getCurrencyCode() {\n\t\treturn currencyCode;\n\t}",
"public String getCurrencyCode() {\n return mCurrencyCode;\n }",
"public Price currencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n return this;\n }",
"public Currency(String code) {\n _toBaseUnit = new Converter(code, false);\n UnitFormat.getInstance().label(this, code);\n }",
"@Override\r\n\tpublic Currency fromString(String code) {\n\t\tCurrency currency = null;\r\n\t\t\r\n\t\tswitch(code.toUpperCase()) {\r\n\t\t\tcase \"EUR\": currency = new Currency(code, \"Euro\"); break;\r\n\t\t\tcase \"USD\": currency = new Currency(code, \"US Dollar\"); break;\r\n\t\t\tcase \"INR\": currency = new Currency(code, \"Rupees\"); break;\r\n\t\t}\r\n\t\t\r\n\t\treturn currency;\r\n\t}",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\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 if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n }\n }",
"public String getAccountCurrencyCode() {\r\n return accountCurrencyCode;\r\n }",
"public void setAccountCurrencyCode(String accountCurrencyCode) {\r\n this.accountCurrencyCode = accountCurrencyCode;\r\n }",
"public Saving currencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n return this;\n }",
"public void setCurrencyCode(final String currencyCode) {\n\t\tthis.currencyCode = currencyCode;\n\t}",
"public Builder setTradeCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }",
"public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\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 if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n }\n }",
"public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Currency findCurrencyByCode(String currency);",
"public Builder setSettlementCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic String getCurrencyCode() {\n\t\treturn null;\n\t}",
"public String getCurrencyCode()\r\n {\r\n return (m_currencyCode);\r\n }",
"@ParameterizedTest\n @ValueSource(strings = {CurrencyTests.EUR})\n public void currencyOk0(final String code)\n {\n final Currency cleanCurrency = Currency.of(code);\n assertEquals(code, cleanCurrency.stringValue(), CurrencyTests.CURRENCY_CODE_NOT_AS_EXPECTED);\n }",
"void setAddTransactionCurrency(String currency);",
"public void setCurrencyID(String value) {\n this.currencyID = value;\n }",
"String getSettlementCurrency();",
"String getTradeCurrency();",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"void setEditTransactionCurrency(String currency);",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getFromCurrencyCode() {\n return fromCurrencyCode;\n }",
"public void setCurrency(String value) {\n setAttributeInternal(CURRENCY, value);\n }",
"public String getCurrency() {\n return this.currency;\n }",
"@ApiModelProperty(value = \"Currency code of the master account organization\")\n public String getCurrencyCode() {\n return currencyCode;\n }",
"@Test\n public void stringValue()\n {\n final Currency currency = Currency.of(CurrencyTests.EUR);\n assertEquals(CurrencyTests.EUR, currency.stringValue(), CurrencyTests.CURRENCY_CODE_NOT_AS_EXPECTED);\n }",
"public String getCurrency() {\r\n return currency;\r\n }",
"public Currency getCurrency() {\n return currencyCode;\n }",
"@ApiModelProperty(required = true, value = \"Sofort currency code. For example, **EUR**.\")\n @JsonProperty(JSON_PROPERTY_CURRENCY_CODE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getCurrencyCode() {\n return currencyCode;\n }",
"public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCurrency()\r\n {\r\n return currency;\r\n }",
"public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}",
"public Builder setTradeCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }",
"public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setCurrency(String currency) {\n this.currency = currency;\n }",
"public void setCurrency(String currency) {\n this.currency = currency;\n }",
"public Builder setCurrency(Pokemon.Currency value) {\n if (currencyBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n currency_ = value;\n onChanged();\n } else {\n currencyBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000400;\n return this;\n }",
"public String getCurrency() {\n return currency;\n }",
"public String getCurrency() {\n return currency;\n }",
"public String getCurrency() {\n return currency;\n }",
"public String getCurrency() {\n return currency;\n }",
"@GET\r\n\t@Path(\"/code/{currencycode}\")\r\n\tpublic String getCountryByCurrencyCode(@PathParam(\"currencycode\") final Currency currency) {\r\n\t\treturn currency.getCountry();\r\n\t}",
"public void setTradeCode(String value) {\n this.tradeCode = value;\n }",
"com.google.protobuf.ByteString\n getTradeCurrencyBytes();",
"public Builder setCurrencyID(String value) {\n validate(fields()[10], value);\n this.currencyID = value;\n fieldSetFlags()[10] = true;\n return this; \n }",
"public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }",
"public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }",
"public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }",
"public void setCurrency(java.lang.String currency) {\r\n this.currency = currency;\r\n }",
"public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n if (currencyBuilder_ != null) {\n return currencyBuilder_.getMessageOrBuilder();\n } else {\n return currency_;\n }\n }",
"com.google.ads.googleads.v6.resources.CurrencyConstantOrBuilder getCurrencyConstantOrBuilder();",
"public void setCurrency(java.lang.String currency) {\n this.currency = currency;\n }",
"public Builder setSettlementCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }",
"public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}",
"TokenlyCurrency getCurrencyType();",
"com.google.ads.googleads.v6.resources.CurrencyConstant getCurrencyConstant();",
"public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }",
"public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }",
"public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }",
"public Pokemon.Currency getCurrency() {\n if (currencyBuilder_ == null) {\n return currency_;\n } else {\n return currencyBuilder_.getMessage();\n }\n }",
"public static Symbol currency(String text)\r\n\t{\r\n\t\tint linepos = line_;\r\n\t\tint charpos = char_;\r\n\t\tint colpos = col_;\r\n\t\tscan(text);\r\n\t\tint idx = text.indexOf('.');\r\n\t\ttext = text.substring(1);\r\n\t\ttext = (idx == -1) ? text + \".00\" : text;\r\n\t\tToken token = new Token(fname, text, linepos, charpos, colpos);\r\n\t\treturn new Symbol(sym.CURRENCY, linepos, colpos, token);\r\n\t}",
"Currency getCurrency();",
"@ParameterizedTest\n @ValueSource(strings = {\"EU~\", \"ZZZ\"})\n public void ccurrencyIllegalParameters(final String code)\n {\n assertThrows(IllegalArgumentException.class, () ->\n {\n /* final Currency cleanCurrency = */ Currency.of(code);\n }, CurrencyTests.ILLEGAL_ARGUMENT\n );\n }",
"public void setCurrency(CurrencyUnit currency) {\r\n this.currency = currency;\r\n }",
"protected String getCurrencyFromParameters(final FlightPriceRQ flightPriceRQ)\n\t{\n\t\treturn flightPriceRQ.getParameters().getCurrCodes().getCurrCode().get(0).getValue();\n\t}",
"com.google.protobuf.ByteString\n getSettlementCurrencyBytes();",
"void setCurrency(Currency currency);",
"public Builder setTradeCode(String value) {\n validate(fields()[6], value);\n this.tradeCode = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public String getCurrencyPair() {\n return _ccyPair;\n }",
"public void setCurrencyCd(String value) {\n setAttributeInternal(CURRENCYCD, value);\n }",
"public String getPaymentCurrency() {\n return _paymentCurrency;\n }",
"public String parseCurrency(NumberFormatTestData tuple) {\n return null;\n }",
"public void setCoinCode(String coinCode) {\n this.coinCode = coinCode;\n }",
"public java.lang.String getCurrency() {\r\n return currency;\r\n }",
"@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}",
"public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }",
"public String getCurrencyID() {\n return currencyID;\n }",
"public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n return currency_;\n }",
"public String getCurrency() {\n return (String) getAttributeInternal(CURRENCY);\n }",
"protected String getCurrency() {\n return currency;\n }",
"public java.lang.String getCurrency() {\n return currency;\n }",
"private CountryCodeEnum(String description, String code) {\r\n this.description = description;\r\n this.code = code;\r\n }",
"public String getCurrencyID() {\n return currencyID;\n }",
"protected void setCurrency(String currency) {\n this.currency = currency;\n }",
"Pokemon.CurrencyOrBuilder getCurrencyOrBuilder();",
"public String getCurrencyid() {\n return currencyid;\n }",
"public String getCoutryName(String code) {\n\t\tString countryName = code;\n\t\tif (code.length() == 3) {\n\t\t\tcountryName = jsonCountryAlpha3.getString(code);\n\t\t} else if (code.length() == 2) {\n\t\t\tcountryName = jsonCountryAlpha2.getString(code);\n\t\t}\n\t\tif (countryName == null) {\n\t\t\treturn code;\n\t\t}\n\t\treturn countryName;\n\t}",
"@Test\n public void currencyTest() {\n assertEquals(\"GBP\", authResponse.getCurrency());\n }"
] | [
"0.83611816",
"0.7903055",
"0.7156137",
"0.6887933",
"0.6476998",
"0.64571303",
"0.6445779",
"0.6426755",
"0.64091545",
"0.63997144",
"0.6294459",
"0.6287554",
"0.6268075",
"0.62678385",
"0.62564254",
"0.62167406",
"0.62085074",
"0.61603504",
"0.6149655",
"0.6085452",
"0.6080013",
"0.60659724",
"0.605769",
"0.6056007",
"0.6045909",
"0.6043178",
"0.60282815",
"0.6026044",
"0.5962711",
"0.5930592",
"0.59178615",
"0.5847766",
"0.5847308",
"0.5847181",
"0.5800758",
"0.578708",
"0.57642055",
"0.57466686",
"0.57401437",
"0.5731436",
"0.5725479",
"0.57230043",
"0.5685659",
"0.56727606",
"0.56675583",
"0.5664748",
"0.5663899",
"0.5663899",
"0.56541616",
"0.5627519",
"0.5627519",
"0.5627519",
"0.5627519",
"0.56135017",
"0.5610411",
"0.5606576",
"0.5601576",
"0.5600885",
"0.5600885",
"0.5600885",
"0.55937874",
"0.5592737",
"0.5571117",
"0.5563707",
"0.55634344",
"0.5550312",
"0.55472356",
"0.5534556",
"0.5513563",
"0.5513563",
"0.5513563",
"0.55130345",
"0.5496632",
"0.54900825",
"0.54711324",
"0.5465345",
"0.5437366",
"0.54230195",
"0.54134715",
"0.54030675",
"0.5390796",
"0.53692174",
"0.5357292",
"0.53558016",
"0.534114",
"0.53373176",
"0.5321063",
"0.5313655",
"0.53094214",
"0.5289426",
"0.52732664",
"0.5264088",
"0.5263199",
"0.5247755",
"0.52407086",
"0.52403224",
"0.5239087",
"0.523362",
"0.5231518",
"0.5230821"
] | 0.5440217 | 76 |
Transaction currency code. ISO 4217 threeletter code is used. Required. .google.protobuf.StringValue currency_code = 3; | com.google.protobuf.StringValue getCurrencyCode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValueOrBuilder getCurrencyCodeOrBuilder();",
"@ApiModelProperty(required = true, value = \"Use a 3-character alpha or numeric currency code for currency of the sender. You should (unless prohibited by local law / regulation) use the billingCurrencyCode obtained from the Funds Transfer Attribute Inquiry API under Payment Account Attribute Inquiry. <br><br>Refer to <a href=\\\"/request_response_codes#iso_country_and_currency_codes\\\">ISO Codes</a> \")\n public String getTransactionCurrencyCode() {\n return transactionCurrencyCode;\n }",
"public Currency(String code) {\n _code = code;\n UnitFormatImpl.getInstance().getSymbolMap().label(this, code);\n }",
"public String getCurrencyCode() {\n return currencyCode;\n }",
"public void setCurrencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n }",
"public void setCurrencyCode(String currencyCode)\r\n {\r\n m_currencyCode = currencyCode;\r\n }",
"public String getCurrencyCode() {\n\t\treturn currencyCode;\n\t}",
"public String getCurrencyCode() {\n return mCurrencyCode;\n }",
"public Price currencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n return this;\n }",
"public Currency(String code) {\n _toBaseUnit = new Converter(code, false);\n UnitFormat.getInstance().label(this, code);\n }",
"@Override\r\n\tpublic Currency fromString(String code) {\n\t\tCurrency currency = null;\r\n\t\t\r\n\t\tswitch(code.toUpperCase()) {\r\n\t\t\tcase \"EUR\": currency = new Currency(code, \"Euro\"); break;\r\n\t\t\tcase \"USD\": currency = new Currency(code, \"US Dollar\"); break;\r\n\t\t\tcase \"INR\": currency = new Currency(code, \"Rupees\"); break;\r\n\t\t}\r\n\t\t\r\n\t\treturn currency;\r\n\t}",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\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 if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n }\n }",
"public String getAccountCurrencyCode() {\r\n return accountCurrencyCode;\r\n }",
"public void setAccountCurrencyCode(String accountCurrencyCode) {\r\n this.accountCurrencyCode = accountCurrencyCode;\r\n }",
"public Saving currencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n return this;\n }",
"public void setCurrencyCode(final String currencyCode) {\n\t\tthis.currencyCode = currencyCode;\n\t}",
"public Builder setTradeCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }",
"public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\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 if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n }\n }",
"public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Currency findCurrencyByCode(String currency);",
"public Builder setSettlementCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic String getCurrencyCode() {\n\t\treturn null;\n\t}",
"public String getCurrencyCode()\r\n {\r\n return (m_currencyCode);\r\n }",
"@ParameterizedTest\n @ValueSource(strings = {CurrencyTests.EUR})\n public void currencyOk0(final String code)\n {\n final Currency cleanCurrency = Currency.of(code);\n assertEquals(code, cleanCurrency.stringValue(), CurrencyTests.CURRENCY_CODE_NOT_AS_EXPECTED);\n }",
"void setAddTransactionCurrency(String currency);",
"public void setCurrencyID(String value) {\n this.currencyID = value;\n }",
"String getSettlementCurrency();",
"String getTradeCurrency();",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"void setEditTransactionCurrency(String currency);",
"public String getFromCurrencyCode() {\n return fromCurrencyCode;\n }",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setCurrency(String value) {\n setAttributeInternal(CURRENCY, value);\n }",
"public String getCurrency() {\n return this.currency;\n }",
"@ApiModelProperty(value = \"Currency code of the master account organization\")\n public String getCurrencyCode() {\n return currencyCode;\n }",
"@Test\n public void stringValue()\n {\n final Currency currency = Currency.of(CurrencyTests.EUR);\n assertEquals(CurrencyTests.EUR, currency.stringValue(), CurrencyTests.CURRENCY_CODE_NOT_AS_EXPECTED);\n }",
"public String getCurrency() {\r\n return currency;\r\n }",
"public Currency getCurrency() {\n return currencyCode;\n }",
"@ApiModelProperty(required = true, value = \"Sofort currency code. For example, **EUR**.\")\n @JsonProperty(JSON_PROPERTY_CURRENCY_CODE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getCurrencyCode() {\n return currencyCode;\n }",
"public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCurrency()\r\n {\r\n return currency;\r\n }",
"public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}",
"public Builder setTradeCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }",
"public void setCurrency(String currency) {\n this.currency = currency;\n }",
"public void setCurrency(String currency) {\n this.currency = currency;\n }",
"public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setCurrency(Pokemon.Currency value) {\n if (currencyBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n currency_ = value;\n onChanged();\n } else {\n currencyBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000400;\n return this;\n }",
"public String getCurrency() {\n return currency;\n }",
"public String getCurrency() {\n return currency;\n }",
"public String getCurrency() {\n return currency;\n }",
"public String getCurrency() {\n return currency;\n }",
"@GET\r\n\t@Path(\"/code/{currencycode}\")\r\n\tpublic String getCountryByCurrencyCode(@PathParam(\"currencycode\") final Currency currency) {\r\n\t\treturn currency.getCountry();\r\n\t}",
"public void setTradeCode(String value) {\n this.tradeCode = value;\n }",
"com.google.protobuf.ByteString\n getTradeCurrencyBytes();",
"public Builder setCurrencyID(String value) {\n validate(fields()[10], value);\n this.currencyID = value;\n fieldSetFlags()[10] = true;\n return this; \n }",
"public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }",
"public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }",
"public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }",
"public void setCurrency(java.lang.String currency) {\r\n this.currency = currency;\r\n }",
"public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n if (currencyBuilder_ != null) {\n return currencyBuilder_.getMessageOrBuilder();\n } else {\n return currency_;\n }\n }",
"com.google.ads.googleads.v6.resources.CurrencyConstantOrBuilder getCurrencyConstantOrBuilder();",
"public void setCurrency(java.lang.String currency) {\n this.currency = currency;\n }",
"public Builder setSettlementCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }",
"public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}",
"TokenlyCurrency getCurrencyType();",
"com.google.ads.googleads.v6.resources.CurrencyConstant getCurrencyConstant();",
"public Pokemon.Currency getCurrency() {\n if (currencyBuilder_ == null) {\n return currency_;\n } else {\n return currencyBuilder_.getMessage();\n }\n }",
"public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }",
"public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }",
"public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }",
"public static Symbol currency(String text)\r\n\t{\r\n\t\tint linepos = line_;\r\n\t\tint charpos = char_;\r\n\t\tint colpos = col_;\r\n\t\tscan(text);\r\n\t\tint idx = text.indexOf('.');\r\n\t\ttext = text.substring(1);\r\n\t\ttext = (idx == -1) ? text + \".00\" : text;\r\n\t\tToken token = new Token(fname, text, linepos, charpos, colpos);\r\n\t\treturn new Symbol(sym.CURRENCY, linepos, colpos, token);\r\n\t}",
"Currency getCurrency();",
"@ParameterizedTest\n @ValueSource(strings = {\"EU~\", \"ZZZ\"})\n public void ccurrencyIllegalParameters(final String code)\n {\n assertThrows(IllegalArgumentException.class, () ->\n {\n /* final Currency cleanCurrency = */ Currency.of(code);\n }, CurrencyTests.ILLEGAL_ARGUMENT\n );\n }",
"public void setCurrency(CurrencyUnit currency) {\r\n this.currency = currency;\r\n }",
"boolean hasCurrencyCode();",
"protected String getCurrencyFromParameters(final FlightPriceRQ flightPriceRQ)\n\t{\n\t\treturn flightPriceRQ.getParameters().getCurrCodes().getCurrCode().get(0).getValue();\n\t}",
"com.google.protobuf.ByteString\n getSettlementCurrencyBytes();",
"void setCurrency(Currency currency);",
"public Builder setTradeCode(String value) {\n validate(fields()[6], value);\n this.tradeCode = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public String getCurrencyPair() {\n return _ccyPair;\n }",
"public void setCurrencyCd(String value) {\n setAttributeInternal(CURRENCYCD, value);\n }",
"public String getPaymentCurrency() {\n return _paymentCurrency;\n }",
"public String parseCurrency(NumberFormatTestData tuple) {\n return null;\n }",
"public void setCoinCode(String coinCode) {\n this.coinCode = coinCode;\n }",
"public java.lang.String getCurrency() {\r\n return currency;\r\n }",
"@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}",
"public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }",
"public String getCurrencyID() {\n return currencyID;\n }",
"public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n return currency_;\n }",
"public String getCurrency() {\n return (String) getAttributeInternal(CURRENCY);\n }",
"protected String getCurrency() {\n return currency;\n }",
"public java.lang.String getCurrency() {\n return currency;\n }",
"private CountryCodeEnum(String description, String code) {\r\n this.description = description;\r\n this.code = code;\r\n }",
"protected void setCurrency(String currency) {\n this.currency = currency;\n }",
"public String getCurrencyID() {\n return currencyID;\n }",
"Pokemon.CurrencyOrBuilder getCurrencyOrBuilder();",
"public String getCurrencyid() {\n return currencyid;\n }",
"public String getCoutryName(String code) {\n\t\tString countryName = code;\n\t\tif (code.length() == 3) {\n\t\t\tcountryName = jsonCountryAlpha3.getString(code);\n\t\t} else if (code.length() == 2) {\n\t\t\tcountryName = jsonCountryAlpha2.getString(code);\n\t\t}\n\t\tif (countryName == null) {\n\t\t\treturn code;\n\t\t}\n\t\treturn countryName;\n\t}",
"@Test\n public void currencyTest() {\n assertEquals(\"GBP\", authResponse.getCurrency());\n }"
] | [
"0.7903073",
"0.7155747",
"0.68872994",
"0.64763236",
"0.6457549",
"0.6446277",
"0.6425788",
"0.6408134",
"0.6399803",
"0.62942165",
"0.62880486",
"0.6266234",
"0.62660277",
"0.62557954",
"0.62172675",
"0.62088907",
"0.61607504",
"0.6149287",
"0.6083584",
"0.6078163",
"0.6065956",
"0.60572785",
"0.605515",
"0.6044928",
"0.6043565",
"0.6028159",
"0.60261863",
"0.59609425",
"0.59289366",
"0.59154624",
"0.584755",
"0.58466727",
"0.58449155",
"0.5799749",
"0.5786291",
"0.57650226",
"0.57469684",
"0.5739224",
"0.5730954",
"0.5726499",
"0.57206863",
"0.5684903",
"0.56719005",
"0.5666545",
"0.56638366",
"0.56638366",
"0.5662455",
"0.5654639",
"0.56265444",
"0.56265444",
"0.56265444",
"0.56265444",
"0.5613727",
"0.5611433",
"0.5603942",
"0.5601983",
"0.5600498",
"0.5600498",
"0.5600498",
"0.55939406",
"0.5591606",
"0.55700636",
"0.556378",
"0.5562457",
"0.5549032",
"0.55462354",
"0.55334425",
"0.55122256",
"0.5511793",
"0.5511793",
"0.5511793",
"0.5494183",
"0.5488831",
"0.547082",
"0.54653865",
"0.5439528",
"0.54366463",
"0.542049",
"0.54137117",
"0.54040295",
"0.5388563",
"0.53681266",
"0.5356178",
"0.53540415",
"0.5342588",
"0.533612",
"0.5319288",
"0.53138494",
"0.5309001",
"0.52885514",
"0.52714753",
"0.5263403",
"0.52618784",
"0.5248766",
"0.5240428",
"0.5239963",
"0.52390015",
"0.52333283",
"0.52326465",
"0.523043"
] | 0.8361015 | 0 |
Transaction currency code. ISO 4217 threeletter code is used. Required. .google.protobuf.StringValue currency_code = 3; | com.google.protobuf.StringValueOrBuilder getCurrencyCodeOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getCurrencyCode();",
"@ApiModelProperty(required = true, value = \"Use a 3-character alpha or numeric currency code for currency of the sender. You should (unless prohibited by local law / regulation) use the billingCurrencyCode obtained from the Funds Transfer Attribute Inquiry API under Payment Account Attribute Inquiry. <br><br>Refer to <a href=\\\"/request_response_codes#iso_country_and_currency_codes\\\">ISO Codes</a> \")\n public String getTransactionCurrencyCode() {\n return transactionCurrencyCode;\n }",
"public Currency(String code) {\n _code = code;\n UnitFormatImpl.getInstance().getSymbolMap().label(this, code);\n }",
"public String getCurrencyCode() {\n return currencyCode;\n }",
"public void setCurrencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n }",
"public void setCurrencyCode(String currencyCode)\r\n {\r\n m_currencyCode = currencyCode;\r\n }",
"public String getCurrencyCode() {\n\t\treturn currencyCode;\n\t}",
"public String getCurrencyCode() {\n return mCurrencyCode;\n }",
"public Price currencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n return this;\n }",
"public Currency(String code) {\n _toBaseUnit = new Converter(code, false);\n UnitFormat.getInstance().label(this, code);\n }",
"@Override\r\n\tpublic Currency fromString(String code) {\n\t\tCurrency currency = null;\r\n\t\t\r\n\t\tswitch(code.toUpperCase()) {\r\n\t\t\tcase \"EUR\": currency = new Currency(code, \"Euro\"); break;\r\n\t\t\tcase \"USD\": currency = new Currency(code, \"US Dollar\"); break;\r\n\t\t\tcase \"INR\": currency = new Currency(code, \"Rupees\"); break;\r\n\t\t}\r\n\t\t\r\n\t\treturn currency;\r\n\t}",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getTradeCurrency() {\n Object ref = tradeCurrency_;\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 if (bs.isValidUtf8()) {\n tradeCurrency_ = s;\n }\n return s;\n }\n }",
"public String getAccountCurrencyCode() {\r\n return accountCurrencyCode;\r\n }",
"public void setAccountCurrencyCode(String accountCurrencyCode) {\r\n this.accountCurrencyCode = accountCurrencyCode;\r\n }",
"public Saving currencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n return this;\n }",
"public void setCurrencyCode(final String currencyCode) {\n\t\tthis.currencyCode = currencyCode;\n\t}",
"public Builder setTradeCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }",
"public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\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 if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n }\n }",
"public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n settlementCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Currency findCurrencyByCode(String currency);",
"public Builder setSettlementCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic String getCurrencyCode() {\n\t\treturn null;\n\t}",
"public String getCurrencyCode()\r\n {\r\n return (m_currencyCode);\r\n }",
"@ParameterizedTest\n @ValueSource(strings = {CurrencyTests.EUR})\n public void currencyOk0(final String code)\n {\n final Currency cleanCurrency = Currency.of(code);\n assertEquals(code, cleanCurrency.stringValue(), CurrencyTests.CURRENCY_CODE_NOT_AS_EXPECTED);\n }",
"void setAddTransactionCurrency(String currency);",
"public void setCurrencyID(String value) {\n this.currencyID = value;\n }",
"String getSettlementCurrency();",
"String getTradeCurrency();",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"void setEditTransactionCurrency(String currency);",
"public String getFromCurrencyCode() {\n return fromCurrencyCode;\n }",
"public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setCurrency(String value) {\n setAttributeInternal(CURRENCY, value);\n }",
"public String getCurrency() {\n return this.currency;\n }",
"@ApiModelProperty(value = \"Currency code of the master account organization\")\n public String getCurrencyCode() {\n return currencyCode;\n }",
"@Test\n public void stringValue()\n {\n final Currency currency = Currency.of(CurrencyTests.EUR);\n assertEquals(CurrencyTests.EUR, currency.stringValue(), CurrencyTests.CURRENCY_CODE_NOT_AS_EXPECTED);\n }",
"public String getCurrency() {\r\n return currency;\r\n }",
"public Currency getCurrency() {\n return currencyCode;\n }",
"@ApiModelProperty(required = true, value = \"Sofort currency code. For example, **EUR**.\")\n @JsonProperty(JSON_PROPERTY_CURRENCY_CODE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getCurrencyCode() {\n return currencyCode;\n }",
"public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCurrency()\r\n {\r\n return currency;\r\n }",
"public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}",
"public Builder setTradeCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }",
"public void setCurrency(String currency) {\n this.currency = currency;\n }",
"public void setCurrency(String currency) {\n this.currency = currency;\n }",
"public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setCurrency(Pokemon.Currency value) {\n if (currencyBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n currency_ = value;\n onChanged();\n } else {\n currencyBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000400;\n return this;\n }",
"public String getCurrency() {\n return currency;\n }",
"public String getCurrency() {\n return currency;\n }",
"public String getCurrency() {\n return currency;\n }",
"public String getCurrency() {\n return currency;\n }",
"@GET\r\n\t@Path(\"/code/{currencycode}\")\r\n\tpublic String getCountryByCurrencyCode(@PathParam(\"currencycode\") final Currency currency) {\r\n\t\treturn currency.getCountry();\r\n\t}",
"public void setTradeCode(String value) {\n this.tradeCode = value;\n }",
"com.google.protobuf.ByteString\n getTradeCurrencyBytes();",
"public Builder setCurrencyID(String value) {\n validate(fields()[10], value);\n this.currencyID = value;\n fieldSetFlags()[10] = true;\n return this; \n }",
"public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }",
"public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }",
"public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }",
"public void setCurrency(java.lang.String currency) {\r\n this.currency = currency;\r\n }",
"public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n if (currencyBuilder_ != null) {\n return currencyBuilder_.getMessageOrBuilder();\n } else {\n return currency_;\n }\n }",
"com.google.ads.googleads.v6.resources.CurrencyConstantOrBuilder getCurrencyConstantOrBuilder();",
"public void setCurrency(java.lang.String currency) {\n this.currency = currency;\n }",
"public Builder setSettlementCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }",
"public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}",
"TokenlyCurrency getCurrencyType();",
"com.google.ads.googleads.v6.resources.CurrencyConstant getCurrencyConstant();",
"public Pokemon.Currency getCurrency() {\n if (currencyBuilder_ == null) {\n return currency_;\n } else {\n return currencyBuilder_.getMessage();\n }\n }",
"public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }",
"public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }",
"public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }",
"public static Symbol currency(String text)\r\n\t{\r\n\t\tint linepos = line_;\r\n\t\tint charpos = char_;\r\n\t\tint colpos = col_;\r\n\t\tscan(text);\r\n\t\tint idx = text.indexOf('.');\r\n\t\ttext = text.substring(1);\r\n\t\ttext = (idx == -1) ? text + \".00\" : text;\r\n\t\tToken token = new Token(fname, text, linepos, charpos, colpos);\r\n\t\treturn new Symbol(sym.CURRENCY, linepos, colpos, token);\r\n\t}",
"Currency getCurrency();",
"@ParameterizedTest\n @ValueSource(strings = {\"EU~\", \"ZZZ\"})\n public void ccurrencyIllegalParameters(final String code)\n {\n assertThrows(IllegalArgumentException.class, () ->\n {\n /* final Currency cleanCurrency = */ Currency.of(code);\n }, CurrencyTests.ILLEGAL_ARGUMENT\n );\n }",
"public void setCurrency(CurrencyUnit currency) {\r\n this.currency = currency;\r\n }",
"boolean hasCurrencyCode();",
"protected String getCurrencyFromParameters(final FlightPriceRQ flightPriceRQ)\n\t{\n\t\treturn flightPriceRQ.getParameters().getCurrCodes().getCurrCode().get(0).getValue();\n\t}",
"com.google.protobuf.ByteString\n getSettlementCurrencyBytes();",
"void setCurrency(Currency currency);",
"public Builder setTradeCode(String value) {\n validate(fields()[6], value);\n this.tradeCode = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public String getCurrencyPair() {\n return _ccyPair;\n }",
"public void setCurrencyCd(String value) {\n setAttributeInternal(CURRENCYCD, value);\n }",
"public String getPaymentCurrency() {\n return _paymentCurrency;\n }",
"public String parseCurrency(NumberFormatTestData tuple) {\n return null;\n }",
"public void setCoinCode(String coinCode) {\n this.coinCode = coinCode;\n }",
"public java.lang.String getCurrency() {\r\n return currency;\r\n }",
"@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}",
"public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }",
"public String getCurrencyID() {\n return currencyID;\n }",
"public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n return currency_;\n }",
"public String getCurrency() {\n return (String) getAttributeInternal(CURRENCY);\n }",
"protected String getCurrency() {\n return currency;\n }",
"public java.lang.String getCurrency() {\n return currency;\n }",
"private CountryCodeEnum(String description, String code) {\r\n this.description = description;\r\n this.code = code;\r\n }",
"protected void setCurrency(String currency) {\n this.currency = currency;\n }",
"public String getCurrencyID() {\n return currencyID;\n }",
"Pokemon.CurrencyOrBuilder getCurrencyOrBuilder();",
"public String getCurrencyid() {\n return currencyid;\n }",
"public String getCoutryName(String code) {\n\t\tString countryName = code;\n\t\tif (code.length() == 3) {\n\t\t\tcountryName = jsonCountryAlpha3.getString(code);\n\t\t} else if (code.length() == 2) {\n\t\t\tcountryName = jsonCountryAlpha2.getString(code);\n\t\t}\n\t\tif (countryName == null) {\n\t\t\treturn code;\n\t\t}\n\t\treturn countryName;\n\t}",
"@Test\n public void currencyTest() {\n assertEquals(\"GBP\", authResponse.getCurrency());\n }"
] | [
"0.8360335",
"0.7156203",
"0.68874085",
"0.64764065",
"0.64577687",
"0.64464253",
"0.6425954",
"0.6408566",
"0.6400191",
"0.6294255",
"0.6287751",
"0.6266531",
"0.6266241",
"0.6256026",
"0.6217702",
"0.6209118",
"0.61608493",
"0.6149455",
"0.6084033",
"0.6078651",
"0.6066575",
"0.60577816",
"0.6054799",
"0.6045235",
"0.6043795",
"0.6028406",
"0.6026519",
"0.5961551",
"0.5929217",
"0.59167856",
"0.5848085",
"0.58464056",
"0.58462346",
"0.57999617",
"0.57861865",
"0.5763986",
"0.5746248",
"0.5739124",
"0.57309425",
"0.5725293",
"0.5722165",
"0.5684729",
"0.5672592",
"0.5667215",
"0.56639427",
"0.56639427",
"0.56638914",
"0.56541765",
"0.56264615",
"0.56264615",
"0.56264615",
"0.56264615",
"0.56141114",
"0.56106216",
"0.56050414",
"0.5602029",
"0.56001693",
"0.56001693",
"0.56001693",
"0.5593985",
"0.55916053",
"0.5570493",
"0.55639064",
"0.5563154",
"0.5549208",
"0.5545928",
"0.55335104",
"0.5512135",
"0.55118966",
"0.55118966",
"0.55118966",
"0.5494768",
"0.54892665",
"0.547105",
"0.5465398",
"0.5440061",
"0.5436069",
"0.5421869",
"0.54134804",
"0.5403082",
"0.53890544",
"0.5368114",
"0.5355933",
"0.5354346",
"0.53412986",
"0.5336248",
"0.5319366",
"0.5312647",
"0.53091043",
"0.5288476",
"0.527162",
"0.5263052",
"0.5262063",
"0.52481985",
"0.5240379",
"0.5240305",
"0.5238327",
"0.5233565",
"0.52313954",
"0.52301604"
] | 0.7902406 | 1 |
The resource name of conversion action to report conversions to. Required. .google.protobuf.StringValue conversion_action = 4; | boolean hasConversionAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getConversionAction();",
"com.google.protobuf.StringValueOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionActionOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionAction getConversionAction();",
"public void setConversionTypeName(String conversionTypeName) {\r\n this.conversionTypeName = conversionTypeName;\r\n }",
"private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}",
"public void setConversionTypeName(java.lang.String conversionTypeName) {\n this.conversionTypeName = conversionTypeName;\n }",
"public String getAction() {\n Object ref = action_;\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 action_ = s;\n return s;\n }\n }",
"public String getAction() {\n Object ref = action_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n action_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"private static String getConversionString(List<Term> conversion) {\n StringBuilder stepsString = new StringBuilder();\n stepsString.append(\"Conversion: \\n\");\n for (int i = 0; i < conversion.size(); i++) {\n stepsString.append(conversion.get(i));\n\n if (i < conversion.size() - 1) {\n stepsString.append(\" = \\n\");\n }\n }\n\n return stepsString.toString();\n }",
"public void addConversion(QName name, StringConversion conv)\n throws JiBXException {\n if (m_formatMap.put(name, conv) != null) {\n throw new JiBXException(\"Duplicate conversion defined with name \" +\n name);\n }\n }",
"public String getConversionTypeName() {\r\n return conversionTypeName;\r\n }",
"public String getConverterMessage() {\n \n return this.converterMessage;\n }",
"public String makeConversion(String value);",
"public void setConversionCategoryName(String conversionCategoryName) {\r\n this.conversionCategoryName = conversionCategoryName;\r\n }",
"public void setConversion(StringConversion conv)\n throws JiBXException {\n if (m_convertMap.put(conv.getTypeName(), conv) != null) {\n throw new JiBXException(\"Duplicate conversion defined for type \" +\n conv.getTypeName());\n }\n }",
"public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public AskConversionMessage(MessageBuilder messageBuilder, ResourceType convertedType, List<ResourceType> availableConversions, int numToConvert) {\n super(messageBuilder);\n this.convertedType = convertedType;\n this.availableConversions = availableConversions;\n this.numToConvert = numToConvert;\n }",
"public java.lang.String getConversionTypeName() {\n return conversionTypeName;\n }",
"String convertTransition(Transition instanceValue);",
"public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public StringConversion getNamedConversion(QName name) {\n StringConversion conv = (StringConversion)m_formatMap.get(name);\n if (conv == null && m_context != null) {\n conv = m_context.getNamedConversion(name);\n }\n return conv;\n }",
"public java.lang.String getActionClassName() {\n java.lang.Object ref = actionClassName_;\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 actionClassName_ = s;\n }\n return s;\n }\n }",
"public Uni<String> transform(Action action) {\n JsonObject message = new JsonObject();\n message.put(\"application\", action.getApplication());\n message.put(\"account_id\", action.getEvent().getAccountId());\n message.put(\"timestamp\", action.getTimestamp().toString());\n message.put(\"message\", createMessage(action));\n\n return Uni.createFrom().item(message.encode());\n }",
"FaxJob2HTTPRequestConverterConfigurationConstants(String value) {\n this.value = value;\n }",
"public java.lang.String getActionClassName() {\n java.lang.Object ref = actionClassName_;\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 actionClassName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public abstract String getIntentActionString();",
"@Override\r\n\tpublic String getText(Object object) {\r\n\t\tString label = ((Action) object).getKind();\r\n\t\treturn label == null || label.length() == 0 ? getString(\"_UI_Action_type\")\r\n\t\t\t\t: getString(\"_UI_Action_type\") + \" \" + label;\r\n\t}",
"public void setDefaultConversion(QName name, StringConversion conv)\n throws JiBXException {\n addConversion(name, conv);\n setConversion(conv);\n }",
"public StringConversion getSpecificConversion(String name) {\n StringConversion conv = (StringConversion)m_convertMap.get(name);\n if (conv == null && m_context != null) {\n conv = m_context.getSpecificConversion(name);\n }\n return conv;\n }",
"public String getConversionCategoryName() {\r\n return conversionCategoryName;\r\n }",
"public void setNamedConversion(QName name, StringConversion conv)\n throws JiBXException {\n addConversion(name, conv);\n }",
"public final Instruction conversion_op() throws RecognitionException {\r\n Instruction inst = null;\r\n\r\n\r\n Token CONVERSION_OP67=null;\r\n Type t1 =null;\r\n\r\n Type t2 =null;\r\n\r\n Constant variable66 =null;\r\n\r\n Constant expression68 =null;\r\n\r\n\r\n\r\n Constant dest;\r\n String converOp;\r\n int opcode = InstType.converInst;\r\n List<Type> types = new ArrayList<Type>();\r\n List<Constant> operands = new ArrayList<Constant>();\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:418:5: ( variable '=' CONVERSION_OP t1= scalar_type expression TO t2= scalar_type )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:418:7: variable '=' CONVERSION_OP t1= scalar_type expression TO t2= scalar_type\r\n {\r\n pushFollow(FOLLOW_variable_in_conversion_op2294);\r\n variable66=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,47,FOLLOW_47_in_conversion_op2296); \r\n\r\n CONVERSION_OP67=(Token)match(input,CONVERSION_OP,FOLLOW_CONVERSION_OP_in_conversion_op2298); \r\n\r\n pushFollow(FOLLOW_scalar_type_in_conversion_op2302);\r\n t1=scalar_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_conversion_op2304);\r\n expression68=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,TO,FOLLOW_TO_in_conversion_op2306); \r\n\r\n pushFollow(FOLLOW_scalar_type_in_conversion_op2310);\r\n t2=scalar_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n dest = variable66; converOp=(CONVERSION_OP67!=null?CONVERSION_OP67.getText():null); types.add(t1); types.add(t2); operands.add(expression68);\r\n\r\n }\r\n\r\n\r\n inst = instFactory.createOperationInst(dest, opcode, operands, types, converOp);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return inst;\r\n }",
"public void setActionInfo(String actionInfo);",
"@Test\n\tpublic void testConversion() {\n\n\t\tTimeConversion tc = new TimeConversion();\n\t\tString converted = null;\n\t\ttry {\n\t\t\tconverted = tc.conversion(JunitConstants.INPUT_TIMESTAMP, JunitConstants.INP_DROPDOWNITEM,\n\t\t\t\t\tJunitConstants.OUT_DROPDOWNITEM);\n\t\t} catch (InternalException e) {\n\t\t\tTimeConvertServlet.LOGGER.log(Level.SEVERE, Constants.EXCEPTION_MSG, e);\n\t\t}\n\t\tassertEquals(JunitConstants.EXPECTED_OUTPUT, converted);\n\n\t}",
"public String getChangeAction()\r\n\t{\r\n\t\treturn changeAction;\r\n\t}",
"public String getDocAction() \n{\nreturn (String)get_Value(\"DocAction\");\n}",
"@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }",
"@JsonGetter(\"type\")\n public String getServerActionConverter() {\n String serverActionValue = getType() != null ? getType() : getServerAction();\n return serverActionValue != null ? serverActionValue : \"server\";\n }",
"public void setConversionValue(Double conversionValue) {\r\n this.conversionValue = conversionValue;\r\n }",
"private TypeDictionaryDicoActionQualificatifActivite(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"public void setAction(String action) { this.action = action; }",
"private String getTitleString(String actionStr)\n\t\t{\n\t\t\treturn (actionStr + \" \" + PATTERN_STR.toLowerCase() + \" : \" + filterKind + \" \" + FILTER_STR);\n\t\t}",
"public StringConverter()\n {\n \n }",
"@Test\n public void convertPredefined() {\n final IStringConverter<Predicate<MidiDevice.Info>> converter = new StringToMidiDevicePredicateConverter();\n assertEquals(\"Incorrect conversion\", Devices.podXt, converter.convert(\"PodXT\"));\n assertEquals(\"Incorrect conversion\", Devices.podXt, converter.convert(\"podxt\"));\n assertEquals(\"Incorrect conversion\", Devices.audioBox44Vsl, converter.convert(\"AudioBox44Vsl\"));\n assertEquals(\"Incorrect conversion\", Devices.audioBox44Vsl, converter.convert(\"audiobox44vsl\"));\n }",
"public String conversion() {\n try {\n transactionFailure = null;\n amountConverted = converterFacade.conversion(fromCurrencyCode,\n toCurrencyCode, amountToConvert);\n } catch (Exception e) {\n handleException(e);\n }\n return jsf22Bugfix();\n }",
"@Override\r\n protected boolean validateAction() {\n Set inputNames = getInputNames();\r\n Iterator inputNamesIterator = inputNames.iterator();\r\n String inputName;\r\n IActionParameter actionParameter;\r\n while (inputNamesIterator.hasNext()) {\r\n inputName = (String) inputNamesIterator.next();\r\n actionParameter = getInputParameter(inputName);\r\n message(Messages.getString(\"TestComponent.DEBUG_INPUT_DESCRIPTION\", inputName, actionParameter.getType())); //$NON-NLS-1$\r\n }\r\n\r\n Set outputNames = getOutputNames();\r\n Iterator outputNamesIterator = outputNames.iterator();\r\n String outputName;\r\n while (outputNamesIterator.hasNext()) {\r\n outputName = (String) outputNamesIterator.next();\r\n actionParameter = getOutputItem(outputName);\r\n message(Messages.getString(\"TestComponent.DEBUG_OUTPUT_DESCRIPTION\", outputName, actionParameter.getType())); //$NON-NLS-1$\r\n }\r\n\r\n Set resourceNames = getResourceNames();\r\n Iterator resourceNamesIterator = resourceNames.iterator();\r\n String resourceName;\r\n IActionSequenceResource actionResource;\r\n while (resourceNamesIterator.hasNext()) {\r\n resourceName = (String) resourceNamesIterator.next();\r\n actionResource = getResource(resourceName);\r\n message(Messages\r\n .getString(\r\n \"TestComponent.DEBUG_RESOURCE_DESCRIPTION\", resourceName, actionResource.getMimeType(), PentahoSystem.getApplicationContext().getSolutionPath(actionResource.getAddress()))); //$NON-NLS-1$\r\n try {\r\n String content = getResourceAsString(actionResource);\r\n message(Messages.getString(\r\n \"TestComponent.DEBUG_RESOURCE_CONTENTS\", ((content == null) ? \"null\" : content.substring(0, 100)))); //$NON-NLS-1$ //$NON-NLS-2$\r\n } catch (Exception e) {\r\n message(Messages.getString(\"TestComponent.ERROR_0005_RESOURCE_NOT_LOADED\", e.getMessage())); //$NON-NLS-1$\r\n }\r\n }\r\n\r\n return true;\r\n }",
"public String getAccessibleActionDescription(int i) {\n if (i == 0) {\n // [[[PENDING: WDW -- need to provide a localized string]]]\n return \"click\";\n } else {\n return null;\n }\n }",
"public Action(String name) {\n this.name = name;\n }",
"public StringConvert getConverter() {\n return converter;\n }",
"static String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}",
"StringOperation createStringOperation();",
"CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }",
"public Builder setActionBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n action_ = value;\n onChanged();\n return this;\n }",
"public void setConversionTypeId(java.lang.Long conversionTypeId) {\n this.conversionTypeId = conversionTypeId;\n }",
"protected abstract Action stringToAction(String stringAction);",
"public String getAction() {\n return action;\n }",
"public void setAction(String str) {\n\t\taction = str;\n\t}",
"protected void sequence_Conversion(ISerializationContext context, Conversion semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CONVERSION__TYPE) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CONVERSION__TYPE));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CONVERSION__EXPRESSION) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CONVERSION__EXPRESSION));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getConversionAccess().getTypeTypeParserRuleCall_1_0(), semanticObject.getType());\r\n\t\tfeeder.accept(grammarAccess.getConversionAccess().getExpressionExpressionParserRuleCall_3_0(), semanticObject.getExpression());\r\n\t\tfeeder.finish();\r\n\t}",
"public ConstError(CompositeEntity container, String name) throws NameDuplicationException, IllegalActionException {\r\n\t\tsuper(container, name);\r\n\t\tvalue = new StringParameter(this, \"value\");\r\n severity = new StringParameter(this, \"severity\");\r\n severity.setExpression(Severity.FATAL.toString());\r\n severity.addChoice(Severity.FATAL.toString());\r\n severity.addChoice(Severity.NON_FATAL.toString());\r\n\r\n\t\t// Set the type constraint.\r\n\t\toutput.setTypeAtLeast(value);\r\n\t}",
"IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);",
"@ApiModelProperty(value = \"Count of conversions, formatted\")\r\n public String getConversionCountFormatted() {\r\n return conversionCountFormatted;\r\n }",
"@SkylarkModule(\n name = \"feedback.action\",\n doc = \"An action that will be executed in a feedback workflow or on_finish hook\",\n category = SkylarkModuleCategory.TOP_LEVEL_TYPE,\n documented = false)\npublic interface Action {\n\n void run(SkylarkContext<?> context) throws ValidationException, RepoException;\n\n String getName();\n\n /** Returns a key-value ist of the options the action was instantiated with. */\n ImmutableSetMultimap<String, String> describe();\n}",
"public void setAction (String action) {\n this.action = action;\n }",
"public String getActionInfo() {\n\n String\taction\t= getAction();\n\n if (ACTION_AppsProcess.equals(action)) {\n return \"Process:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_DocumentAction.equals(action)) {\n return \"DocumentAction=\" + getDocAction();\n } else if (ACTION_AppsReport.equals(action)) {\n return \"Report:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_AppsTask.equals(action)) {\n return \"Task:AD_Task_ID=\" + getAD_Task_ID();\n } else if (ACTION_SetVariable.equals(action)) {\n return \"SetVariable:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_SubWorkflow.equals(action)) {\n return \"Workflow:MPC_Order_Workflow_ID=\" + getMPC_Order_Workflow_ID();\n } else if (ACTION_UserChoice.equals(action)) {\n return \"UserChoice:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_UserWorkbench.equals(action)) {\n return \"Workbench:?\";\n } else if (ACTION_UserForm.equals(action)) {\n return \"Form:AD_Form_ID=\" + getAD_Form_ID();\n } else if (ACTION_UserWindow.equals(action)) {\n return \"Window:AD_Window_ID=\" + getAD_Window_ID();\n }\n\n /*\n * else if (ACTION_WaitSleep.equals(action))\n * return \"Sleep:WaitTime=\" + getWaitTime();\n */\n return \"??\";\n\n }",
"private void convertString(AssignStatContext c, List<String> ssa) {\n\t\tString content = c.StringLiteral().getText();\n\t\tcontent = content.substring(1, content.length() - 1);\n\t\tString id = c.ID().getText();\n\t\tString newId = this.generateNewName(id);\n\t\tStringRepresentation rep = new StringRepresentation(newId, content);\n\t\tssa.addAll(rep.getConstraints());\n\t\t\n\t}",
"public String getConvertedValue() {\r\n return convertedValue;\r\n }",
"Builder addPotentialAction(String value);",
"com.google.protobuf.StringValue getCustomValue();",
"public void setAction(String action);",
"public SaveConstitutionInformationAction() {\n }",
"private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }",
"public String getActionType() {\n return actionType;\n }",
"public void setConversionDate(LocalDate conversionDate) {\r\n this.conversionDate = conversionDate;\r\n }",
"@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}",
"String getOnAction();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"public void testEnumUsingToString() throws Exception\n {\n assertEquals(\"\\\"c2\\\"\", MAPPER.writeValueAsString(AnnotatedTestEnum.C2));\n }",
"com.google.protobuf.ByteString\n getActionBytes();",
"public static void setEventLabel(String action){\n static_label.setText(action + \" \");\n }",
"public interface ActionInputParameter {\n\n\tString MIN = \"min\";\n\n\tString MAX = \"max\";\n\n\tString STEP = \"step\";\n\n\tString MIN_LENGTH = \"minLength\";\n\n\tString MAX_LENGTH = \"maxLength\";\n\n\tString PATTERN = \"pattern\";\n\n\tString READONLY = \"readonly\";\n\n\t/**\n\t * Raw field value, without conversion.\n\t *\n\t * @return value\n\t */\n\tObject getValue();\n\n\t/**\n\t * Formatted field value to be used as preset value (e.g. using ConversionService).\n\t *\n\t * @return formatted value\n\t */\n\tString getValueFormatted();\n\n\t/**\n\t * Type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t *\n\t * @return input field type\n\t */\n\tType getHtmlInputFieldType();\n\n\t/**\n\t * Set the type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t * \n\t * @param type the {@link Type} to set\n\t */\n\tvoid setHtmlInputFieldType(Type type);\n\n\t/**\n\t * Parameter has input constraints (like range, step etc.)\n\t *\n\t * @return true for input constraints\n\t * @see #getInputConstraints()\n\t */\n\tboolean hasInputConstraints();\n\n\t/**\n\t * Gets possible values for this parameter.\n\t *\n\t * @param actionDescriptor in case that access to the other parameters is necessary to determine the possible values.\n\t * @param <T> This is the type parameter\n\t * @return possible values or empty array\n\t */\n\t<T> List<Suggest<T>> getPossibleValues(ActionDescriptor<? extends ActionInputParameter> actionDescriptor);\n\n\t/**\n\t * Establish possible values for this parameter\n\t * \n\t * @param possibleValues possible values for this parameter.\n\t */\n\tvoid setPossibleValues(List<? extends Suggest<?>> possibleValues);\n\n\t/**\n\t * Retrieve the suggest type\n\t * \n\t * @return the {@link SuggestType}\n\t */\n\tSuggestType getSuggestType();\n\n\t/**\n\t * Sets the suggest type\n\t * \n\t * @param type the {@link SuggestType} to set.\n\t */\n\tvoid setSuggestType(SuggestType type);\n\n\t/**\n\t * Parameter is an array or collection, think {?val*} in uri template.\n\t *\n\t * @return true for collection or array\n\t */\n\tboolean isArrayOrCollection();\n\n\t/**\n\t * Is this action input parameter required, based on the presence of a default value, the parameter annotations and the kind of input\n\t * parameter.\n\t *\n\t * @return true if required\n\t */\n\tboolean isRequired();\n\n\t/**\n\t * If parameter is an array or collection, the default values.\n\t *\n\t * @return values\n\t * @see #isArrayOrCollection()\n\t */\n\tObject[] getValues();\n\n\t/**\n\t * Does the parameter have a value?\n\t *\n\t * @return true if a value is present\n\t */\n\tboolean hasValue();\n\n\t/**\n\t * Name of parameter.\n\t *\n\t * @return the name of parameter.\n\t */\n\tString getParameterName();\n\n\t/**\n\t * Type of parameter.\n\t *\n\t * @return the type of parameter.\n\t */\n\tClass<?> getParameterType();\n\n\t/**\n\t * Gets input constraints.\n\t *\n\t * @return constraints where the key is one of {@link ActionInputParameter#MAX} etc. and the value is a string or number, depending on\n\t * the input constraint.\n\t * @see ActionInputParameter#MAX\n\t * @see ActionInputParameter#MIN\n\t * @see ActionInputParameter#MAX_LENGTH\n\t * @see ActionInputParameter#MIN_LENGTH\n\t * @see ActionInputParameter#STEP\n\t * @see ActionInputParameter#PATTERN\n\t * @see ActionInputParameter#READONLY\n\t */\n\tMap<String, Object> getInputConstraints();\n\n\tString getName();\n\n\tvoid setReadOnly(boolean readOnly);\n\n\tvoid setRequired(boolean required);\n\n\tParameterType getType();\n\n\tboolean isReadOnly();\n\n\tboolean isIgnored();\n\n\tvoid setValue(final Object value);\n\n}",
"@ApiModelProperty(required = true, value = \"The action type to be applied. When UPDATE_INTEREST_SETTINGS action type is used, all the existing deposit accounts will be updated with the latest interest-related fields at the end of day job execution\")\n @JsonProperty(JSON_PROPERTY_ACTION)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public ActionEnum getAction() {\n return action;\n }",
"private void setExternalConversion(int conversionType) {\n\n //Vector of conversions.\n Vector<String[]> conversions = new Vector<String[]>();\n\n String line;\n\n //Create a buffered reader to read in the file.\n BufferedReader in = new BufferedReader(new StringReader(conversionsText));\n\n //Read in every line to memory.\n try {\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t conversions.add(line.split(\",\"));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n Iterator<String[]> iter = conversions.iterator();\n String[] temp = new String[4];\n\n //Iterate through the vector to find the correct conversion function.\n while (iter.hasNext()) {\n temp = (String[]) iter.next();\n\n if (Integer.parseInt(temp[0]) == conversionType) {\n \n break;\n }\n }\n\n //Create the expression from the conversion that was chosen from the file.\n Expression exp = new Expression(temp[3]);\n externalConversion = exp;\n\n }",
"private static String getActionFromMessageAttributes(MessageInfo msgInfo) {\n String action = null;\n if (msgInfo != null\n && msgInfo.getExtensionAttributes() != null) {\n String attr = getAction(msgInfo);\n if (attr != null) {\n action = attr;\n msgInfo.setProperty(ACTION, action);\n }\n }\n return action;\n }",
"public void setConvertedValue(String convertedValue) {\r\n this.convertedValue = convertedValue;\r\n }",
"public void setDocAction (String DocAction)\n{\nif (DocAction.equals(\"AP\") || DocAction.equals(\"CL\") || DocAction.equals(\"PR\") || DocAction.equals(\"IN\") || DocAction.equals(\"CO\") || DocAction.equals(\"--\") || DocAction.equals(\"RC\") || DocAction.equals(\"RJ\") || DocAction.equals(\"RA\") || DocAction.equals(\"WC\") || DocAction.equals(\"XL\") || DocAction.equals(\"RE\") || DocAction.equals(\"PO\") || DocAction.equals(\"VO\"));\n else throw new IllegalArgumentException (\"DocAction Invalid value - Reference = DOCACTION_AD_Reference_ID - AP - CL - PR - IN - CO - -- - RC - RJ - RA - WC - XL - RE - PO - VO\");\nif (DocAction == null) throw new IllegalArgumentException (\"DocAction is mandatory\");\nif (DocAction.length() > 2)\n{\nlog.warning(\"Length > 2 - truncated\");\nDocAction = DocAction.substring(0,2);\n}\nset_Value (\"DocAction\", DocAction);\n}",
"public com.google.protobuf.ByteString\n getActionClassNameBytes() {\n java.lang.Object ref = actionClassName_;\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 actionClassName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"org.hl7.fhir.String addNewValueString();",
"public interface HTTPTriggerConverter {\n\t/** Return value if conversion did not succeed. */\n\tpublic static final Trigger NOT_CONVERTED = new Trigger(){}; \n\t/** Try to convert the input to a trigger. If this fails, then return {@link HTTPTriggerConverter.NOT_CONVERTED}*/\n\tpublic Trigger convert(URI uri, String request); \n}",
"StringConstant createStringConstant();",
"public void setCaseAction(java.lang.String newCaseAction) {\n\tcaseAction = newCaseAction;\n}",
"public interface IRenameTableAction\r\n{\r\n @Convert (TableConverter.class)\r\n\t@Attribute (\"oldTableName\")\tGenericAttributeValue<String> getOldTableName();\r\n\r\n\t@Attribute (\"newTableName\") GenericAttributeValue<String> getNewTableName();\r\n\r\n\r\n}",
"public final void ruleConversion() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2517:2: ( ( ( rule__Conversion__Group__0 ) ) )\r\n // InternalGo.g:2518:2: ( ( rule__Conversion__Group__0 ) )\r\n {\r\n // InternalGo.g:2518:2: ( ( rule__Conversion__Group__0 ) )\r\n // InternalGo.g:2519:3: ( rule__Conversion__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getConversionAccess().getGroup()); \r\n }\r\n // InternalGo.g:2520:3: ( rule__Conversion__Group__0 )\r\n // InternalGo.g:2520:4: rule__Conversion__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Conversion__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getConversionAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Override\n public String getName() {return \"Waiting For Turn Phase\";}",
"public String getAction() {\r\n\t\treturn action;\r\n\t}",
"static String getReadableDefinedAction(byte combinedAction, TaskDetail detail) {\n int numFingers = combinedAction / 8;\n int action = combinedAction % 8;\n if (numFingers > 5) {\n return null;\n }\n String toReturn;\n if (numFingers == 0) {\n toReturn = \"\";\n } else {\n toReturn = String.format(Locale.getDefault(), \" %d %s \", numFingers, context.getString(R.string.finger));\n }\n switch (action) {\n case TAP:\n toReturn += context.getString(R.string.tap);\n break;\n case MOVE:\n toReturn += context.getString(R.string.move);\n break;\n case LONG_TAP:\n toReturn += context.getString(R.string.longPress);\n break;\n case MOVE_LEFT:\n toReturn += context.getString(R.string.moveLeft);\n break;\n case MOVE_RIGHT:\n toReturn += context.getString(R.string.moveRight);\n break;\n case MOVE_UP:\n toReturn += context.getString(R.string.moveUp);\n break;\n case MOVE_DOWN:\n toReturn += context.getString(R.string.moveDown);\n break;\n case DOUBLE_TAP:\n toReturn += context.getString(R.string.doubleTap);\n break;\n }\n if (numFingers == 0) {\n return toReturn;\n }\n return toReturn + \" --- \" + detail.getDescription();\n }"
] | [
"0.8495716",
"0.8332193",
"0.7192547",
"0.7081307",
"0.5879626",
"0.5726138",
"0.5720096",
"0.57141876",
"0.567119",
"0.560727",
"0.5480832",
"0.5447838",
"0.53865945",
"0.5326599",
"0.53018534",
"0.51951617",
"0.51488405",
"0.5143328",
"0.505833",
"0.5054317",
"0.5045093",
"0.502812",
"0.50130534",
"0.50062186",
"0.49815977",
"0.49628723",
"0.4950687",
"0.49397448",
"0.49237376",
"0.4922467",
"0.48836133",
"0.4879283",
"0.4862223",
"0.48376355",
"0.48301128",
"0.48192734",
"0.47695535",
"0.47606394",
"0.47519147",
"0.47093564",
"0.46986812",
"0.4683421",
"0.46740523",
"0.46500438",
"0.45904365",
"0.45842665",
"0.45551476",
"0.45519522",
"0.45506078",
"0.4549583",
"0.45412874",
"0.45341504",
"0.45316863",
"0.4530605",
"0.45294437",
"0.45222083",
"0.44979298",
"0.44957262",
"0.449435",
"0.44929445",
"0.44737756",
"0.44710773",
"0.44704777",
"0.44703487",
"0.4465538",
"0.44649833",
"0.4458657",
"0.44578052",
"0.44476497",
"0.44312507",
"0.44302657",
"0.44267714",
"0.44232368",
"0.44231075",
"0.44191292",
"0.4417386",
"0.44073355",
"0.44073355",
"0.44073355",
"0.44073355",
"0.4407231",
"0.44065925",
"0.4398252",
"0.4396927",
"0.4390161",
"0.43890265",
"0.43814287",
"0.43812308",
"0.43752122",
"0.43739307",
"0.43730715",
"0.43727523",
"0.43726945",
"0.43726653",
"0.43701476",
"0.43650922",
"0.43619308",
"0.43600044",
"0.43573698"
] | 0.5988356 | 5 |
The resource name of conversion action to report conversions to. Required. .google.protobuf.StringValue conversion_action = 4; | com.google.protobuf.StringValue getConversionAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValueOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionActionOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionAction getConversionAction();",
"boolean hasConversionAction();",
"boolean hasConversionAction();",
"public void setConversionTypeName(String conversionTypeName) {\r\n this.conversionTypeName = conversionTypeName;\r\n }",
"private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}",
"public void setConversionTypeName(java.lang.String conversionTypeName) {\n this.conversionTypeName = conversionTypeName;\n }",
"public String getAction() {\n Object ref = action_;\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 action_ = s;\n return s;\n }\n }",
"public String getAction() {\n Object ref = action_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n action_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"private static String getConversionString(List<Term> conversion) {\n StringBuilder stepsString = new StringBuilder();\n stepsString.append(\"Conversion: \\n\");\n for (int i = 0; i < conversion.size(); i++) {\n stepsString.append(conversion.get(i));\n\n if (i < conversion.size() - 1) {\n stepsString.append(\" = \\n\");\n }\n }\n\n return stepsString.toString();\n }",
"public void addConversion(QName name, StringConversion conv)\n throws JiBXException {\n if (m_formatMap.put(name, conv) != null) {\n throw new JiBXException(\"Duplicate conversion defined with name \" +\n name);\n }\n }",
"public String getConversionTypeName() {\r\n return conversionTypeName;\r\n }",
"public String getConverterMessage() {\n \n return this.converterMessage;\n }",
"public String makeConversion(String value);",
"public void setConversionCategoryName(String conversionCategoryName) {\r\n this.conversionCategoryName = conversionCategoryName;\r\n }",
"public void setConversion(StringConversion conv)\n throws JiBXException {\n if (m_convertMap.put(conv.getTypeName(), conv) != null) {\n throw new JiBXException(\"Duplicate conversion defined for type \" +\n conv.getTypeName());\n }\n }",
"public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public AskConversionMessage(MessageBuilder messageBuilder, ResourceType convertedType, List<ResourceType> availableConversions, int numToConvert) {\n super(messageBuilder);\n this.convertedType = convertedType;\n this.availableConversions = availableConversions;\n this.numToConvert = numToConvert;\n }",
"public java.lang.String getConversionTypeName() {\n return conversionTypeName;\n }",
"String convertTransition(Transition instanceValue);",
"public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public StringConversion getNamedConversion(QName name) {\n StringConversion conv = (StringConversion)m_formatMap.get(name);\n if (conv == null && m_context != null) {\n conv = m_context.getNamedConversion(name);\n }\n return conv;\n }",
"public java.lang.String getActionClassName() {\n java.lang.Object ref = actionClassName_;\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 actionClassName_ = s;\n }\n return s;\n }\n }",
"public Uni<String> transform(Action action) {\n JsonObject message = new JsonObject();\n message.put(\"application\", action.getApplication());\n message.put(\"account_id\", action.getEvent().getAccountId());\n message.put(\"timestamp\", action.getTimestamp().toString());\n message.put(\"message\", createMessage(action));\n\n return Uni.createFrom().item(message.encode());\n }",
"FaxJob2HTTPRequestConverterConfigurationConstants(String value) {\n this.value = value;\n }",
"public java.lang.String getActionClassName() {\n java.lang.Object ref = actionClassName_;\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 actionClassName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public abstract String getIntentActionString();",
"@Override\r\n\tpublic String getText(Object object) {\r\n\t\tString label = ((Action) object).getKind();\r\n\t\treturn label == null || label.length() == 0 ? getString(\"_UI_Action_type\")\r\n\t\t\t\t: getString(\"_UI_Action_type\") + \" \" + label;\r\n\t}",
"public void setDefaultConversion(QName name, StringConversion conv)\n throws JiBXException {\n addConversion(name, conv);\n setConversion(conv);\n }",
"public StringConversion getSpecificConversion(String name) {\n StringConversion conv = (StringConversion)m_convertMap.get(name);\n if (conv == null && m_context != null) {\n conv = m_context.getSpecificConversion(name);\n }\n return conv;\n }",
"public String getConversionCategoryName() {\r\n return conversionCategoryName;\r\n }",
"public void setNamedConversion(QName name, StringConversion conv)\n throws JiBXException {\n addConversion(name, conv);\n }",
"public final Instruction conversion_op() throws RecognitionException {\r\n Instruction inst = null;\r\n\r\n\r\n Token CONVERSION_OP67=null;\r\n Type t1 =null;\r\n\r\n Type t2 =null;\r\n\r\n Constant variable66 =null;\r\n\r\n Constant expression68 =null;\r\n\r\n\r\n\r\n Constant dest;\r\n String converOp;\r\n int opcode = InstType.converInst;\r\n List<Type> types = new ArrayList<Type>();\r\n List<Constant> operands = new ArrayList<Constant>();\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:418:5: ( variable '=' CONVERSION_OP t1= scalar_type expression TO t2= scalar_type )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:418:7: variable '=' CONVERSION_OP t1= scalar_type expression TO t2= scalar_type\r\n {\r\n pushFollow(FOLLOW_variable_in_conversion_op2294);\r\n variable66=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,47,FOLLOW_47_in_conversion_op2296); \r\n\r\n CONVERSION_OP67=(Token)match(input,CONVERSION_OP,FOLLOW_CONVERSION_OP_in_conversion_op2298); \r\n\r\n pushFollow(FOLLOW_scalar_type_in_conversion_op2302);\r\n t1=scalar_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_conversion_op2304);\r\n expression68=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,TO,FOLLOW_TO_in_conversion_op2306); \r\n\r\n pushFollow(FOLLOW_scalar_type_in_conversion_op2310);\r\n t2=scalar_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n dest = variable66; converOp=(CONVERSION_OP67!=null?CONVERSION_OP67.getText():null); types.add(t1); types.add(t2); operands.add(expression68);\r\n\r\n }\r\n\r\n\r\n inst = instFactory.createOperationInst(dest, opcode, operands, types, converOp);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return inst;\r\n }",
"public void setActionInfo(String actionInfo);",
"@Test\n\tpublic void testConversion() {\n\n\t\tTimeConversion tc = new TimeConversion();\n\t\tString converted = null;\n\t\ttry {\n\t\t\tconverted = tc.conversion(JunitConstants.INPUT_TIMESTAMP, JunitConstants.INP_DROPDOWNITEM,\n\t\t\t\t\tJunitConstants.OUT_DROPDOWNITEM);\n\t\t} catch (InternalException e) {\n\t\t\tTimeConvertServlet.LOGGER.log(Level.SEVERE, Constants.EXCEPTION_MSG, e);\n\t\t}\n\t\tassertEquals(JunitConstants.EXPECTED_OUTPUT, converted);\n\n\t}",
"public String getChangeAction()\r\n\t{\r\n\t\treturn changeAction;\r\n\t}",
"public String getDocAction() \n{\nreturn (String)get_Value(\"DocAction\");\n}",
"@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }",
"@JsonGetter(\"type\")\n public String getServerActionConverter() {\n String serverActionValue = getType() != null ? getType() : getServerAction();\n return serverActionValue != null ? serverActionValue : \"server\";\n }",
"public void setConversionValue(Double conversionValue) {\r\n this.conversionValue = conversionValue;\r\n }",
"private TypeDictionaryDicoActionQualificatifActivite(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"public void setAction(String action) { this.action = action; }",
"private String getTitleString(String actionStr)\n\t\t{\n\t\t\treturn (actionStr + \" \" + PATTERN_STR.toLowerCase() + \" : \" + filterKind + \" \" + FILTER_STR);\n\t\t}",
"public StringConverter()\n {\n \n }",
"@Test\n public void convertPredefined() {\n final IStringConverter<Predicate<MidiDevice.Info>> converter = new StringToMidiDevicePredicateConverter();\n assertEquals(\"Incorrect conversion\", Devices.podXt, converter.convert(\"PodXT\"));\n assertEquals(\"Incorrect conversion\", Devices.podXt, converter.convert(\"podxt\"));\n assertEquals(\"Incorrect conversion\", Devices.audioBox44Vsl, converter.convert(\"AudioBox44Vsl\"));\n assertEquals(\"Incorrect conversion\", Devices.audioBox44Vsl, converter.convert(\"audiobox44vsl\"));\n }",
"public String conversion() {\n try {\n transactionFailure = null;\n amountConverted = converterFacade.conversion(fromCurrencyCode,\n toCurrencyCode, amountToConvert);\n } catch (Exception e) {\n handleException(e);\n }\n return jsf22Bugfix();\n }",
"@Override\r\n protected boolean validateAction() {\n Set inputNames = getInputNames();\r\n Iterator inputNamesIterator = inputNames.iterator();\r\n String inputName;\r\n IActionParameter actionParameter;\r\n while (inputNamesIterator.hasNext()) {\r\n inputName = (String) inputNamesIterator.next();\r\n actionParameter = getInputParameter(inputName);\r\n message(Messages.getString(\"TestComponent.DEBUG_INPUT_DESCRIPTION\", inputName, actionParameter.getType())); //$NON-NLS-1$\r\n }\r\n\r\n Set outputNames = getOutputNames();\r\n Iterator outputNamesIterator = outputNames.iterator();\r\n String outputName;\r\n while (outputNamesIterator.hasNext()) {\r\n outputName = (String) outputNamesIterator.next();\r\n actionParameter = getOutputItem(outputName);\r\n message(Messages.getString(\"TestComponent.DEBUG_OUTPUT_DESCRIPTION\", outputName, actionParameter.getType())); //$NON-NLS-1$\r\n }\r\n\r\n Set resourceNames = getResourceNames();\r\n Iterator resourceNamesIterator = resourceNames.iterator();\r\n String resourceName;\r\n IActionSequenceResource actionResource;\r\n while (resourceNamesIterator.hasNext()) {\r\n resourceName = (String) resourceNamesIterator.next();\r\n actionResource = getResource(resourceName);\r\n message(Messages\r\n .getString(\r\n \"TestComponent.DEBUG_RESOURCE_DESCRIPTION\", resourceName, actionResource.getMimeType(), PentahoSystem.getApplicationContext().getSolutionPath(actionResource.getAddress()))); //$NON-NLS-1$\r\n try {\r\n String content = getResourceAsString(actionResource);\r\n message(Messages.getString(\r\n \"TestComponent.DEBUG_RESOURCE_CONTENTS\", ((content == null) ? \"null\" : content.substring(0, 100)))); //$NON-NLS-1$ //$NON-NLS-2$\r\n } catch (Exception e) {\r\n message(Messages.getString(\"TestComponent.ERROR_0005_RESOURCE_NOT_LOADED\", e.getMessage())); //$NON-NLS-1$\r\n }\r\n }\r\n\r\n return true;\r\n }",
"public StringConvert getConverter() {\n return converter;\n }",
"public String getAccessibleActionDescription(int i) {\n if (i == 0) {\n // [[[PENDING: WDW -- need to provide a localized string]]]\n return \"click\";\n } else {\n return null;\n }\n }",
"public Action(String name) {\n this.name = name;\n }",
"static String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}",
"StringOperation createStringOperation();",
"CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }",
"public void setConversionTypeId(java.lang.Long conversionTypeId) {\n this.conversionTypeId = conversionTypeId;\n }",
"public Builder setActionBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n action_ = value;\n onChanged();\n return this;\n }",
"protected abstract Action stringToAction(String stringAction);",
"protected void sequence_Conversion(ISerializationContext context, Conversion semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CONVERSION__TYPE) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CONVERSION__TYPE));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CONVERSION__EXPRESSION) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CONVERSION__EXPRESSION));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getConversionAccess().getTypeTypeParserRuleCall_1_0(), semanticObject.getType());\r\n\t\tfeeder.accept(grammarAccess.getConversionAccess().getExpressionExpressionParserRuleCall_3_0(), semanticObject.getExpression());\r\n\t\tfeeder.finish();\r\n\t}",
"public String getAction() {\n return action;\n }",
"public void setAction(String str) {\n\t\taction = str;\n\t}",
"public ConstError(CompositeEntity container, String name) throws NameDuplicationException, IllegalActionException {\r\n\t\tsuper(container, name);\r\n\t\tvalue = new StringParameter(this, \"value\");\r\n severity = new StringParameter(this, \"severity\");\r\n severity.setExpression(Severity.FATAL.toString());\r\n severity.addChoice(Severity.FATAL.toString());\r\n severity.addChoice(Severity.NON_FATAL.toString());\r\n\r\n\t\t// Set the type constraint.\r\n\t\toutput.setTypeAtLeast(value);\r\n\t}",
"IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);",
"@ApiModelProperty(value = \"Count of conversions, formatted\")\r\n public String getConversionCountFormatted() {\r\n return conversionCountFormatted;\r\n }",
"public void setAction (String action) {\n this.action = action;\n }",
"@SkylarkModule(\n name = \"feedback.action\",\n doc = \"An action that will be executed in a feedback workflow or on_finish hook\",\n category = SkylarkModuleCategory.TOP_LEVEL_TYPE,\n documented = false)\npublic interface Action {\n\n void run(SkylarkContext<?> context) throws ValidationException, RepoException;\n\n String getName();\n\n /** Returns a key-value ist of the options the action was instantiated with. */\n ImmutableSetMultimap<String, String> describe();\n}",
"private void convertString(AssignStatContext c, List<String> ssa) {\n\t\tString content = c.StringLiteral().getText();\n\t\tcontent = content.substring(1, content.length() - 1);\n\t\tString id = c.ID().getText();\n\t\tString newId = this.generateNewName(id);\n\t\tStringRepresentation rep = new StringRepresentation(newId, content);\n\t\tssa.addAll(rep.getConstraints());\n\t\t\n\t}",
"public String getActionInfo() {\n\n String\taction\t= getAction();\n\n if (ACTION_AppsProcess.equals(action)) {\n return \"Process:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_DocumentAction.equals(action)) {\n return \"DocumentAction=\" + getDocAction();\n } else if (ACTION_AppsReport.equals(action)) {\n return \"Report:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_AppsTask.equals(action)) {\n return \"Task:AD_Task_ID=\" + getAD_Task_ID();\n } else if (ACTION_SetVariable.equals(action)) {\n return \"SetVariable:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_SubWorkflow.equals(action)) {\n return \"Workflow:MPC_Order_Workflow_ID=\" + getMPC_Order_Workflow_ID();\n } else if (ACTION_UserChoice.equals(action)) {\n return \"UserChoice:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_UserWorkbench.equals(action)) {\n return \"Workbench:?\";\n } else if (ACTION_UserForm.equals(action)) {\n return \"Form:AD_Form_ID=\" + getAD_Form_ID();\n } else if (ACTION_UserWindow.equals(action)) {\n return \"Window:AD_Window_ID=\" + getAD_Window_ID();\n }\n\n /*\n * else if (ACTION_WaitSleep.equals(action))\n * return \"Sleep:WaitTime=\" + getWaitTime();\n */\n return \"??\";\n\n }",
"public String getConvertedValue() {\r\n return convertedValue;\r\n }",
"Builder addPotentialAction(String value);",
"com.google.protobuf.StringValue getCustomValue();",
"public void setAction(String action);",
"public SaveConstitutionInformationAction() {\n }",
"private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }",
"public void setConversionDate(LocalDate conversionDate) {\r\n this.conversionDate = conversionDate;\r\n }",
"public String getActionType() {\n return actionType;\n }",
"@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}",
"String getOnAction();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"public void testEnumUsingToString() throws Exception\n {\n assertEquals(\"\\\"c2\\\"\", MAPPER.writeValueAsString(AnnotatedTestEnum.C2));\n }",
"com.google.protobuf.ByteString\n getActionBytes();",
"public static void setEventLabel(String action){\n static_label.setText(action + \" \");\n }",
"public interface ActionInputParameter {\n\n\tString MIN = \"min\";\n\n\tString MAX = \"max\";\n\n\tString STEP = \"step\";\n\n\tString MIN_LENGTH = \"minLength\";\n\n\tString MAX_LENGTH = \"maxLength\";\n\n\tString PATTERN = \"pattern\";\n\n\tString READONLY = \"readonly\";\n\n\t/**\n\t * Raw field value, without conversion.\n\t *\n\t * @return value\n\t */\n\tObject getValue();\n\n\t/**\n\t * Formatted field value to be used as preset value (e.g. using ConversionService).\n\t *\n\t * @return formatted value\n\t */\n\tString getValueFormatted();\n\n\t/**\n\t * Type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t *\n\t * @return input field type\n\t */\n\tType getHtmlInputFieldType();\n\n\t/**\n\t * Set the type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t * \n\t * @param type the {@link Type} to set\n\t */\n\tvoid setHtmlInputFieldType(Type type);\n\n\t/**\n\t * Parameter has input constraints (like range, step etc.)\n\t *\n\t * @return true for input constraints\n\t * @see #getInputConstraints()\n\t */\n\tboolean hasInputConstraints();\n\n\t/**\n\t * Gets possible values for this parameter.\n\t *\n\t * @param actionDescriptor in case that access to the other parameters is necessary to determine the possible values.\n\t * @param <T> This is the type parameter\n\t * @return possible values or empty array\n\t */\n\t<T> List<Suggest<T>> getPossibleValues(ActionDescriptor<? extends ActionInputParameter> actionDescriptor);\n\n\t/**\n\t * Establish possible values for this parameter\n\t * \n\t * @param possibleValues possible values for this parameter.\n\t */\n\tvoid setPossibleValues(List<? extends Suggest<?>> possibleValues);\n\n\t/**\n\t * Retrieve the suggest type\n\t * \n\t * @return the {@link SuggestType}\n\t */\n\tSuggestType getSuggestType();\n\n\t/**\n\t * Sets the suggest type\n\t * \n\t * @param type the {@link SuggestType} to set.\n\t */\n\tvoid setSuggestType(SuggestType type);\n\n\t/**\n\t * Parameter is an array or collection, think {?val*} in uri template.\n\t *\n\t * @return true for collection or array\n\t */\n\tboolean isArrayOrCollection();\n\n\t/**\n\t * Is this action input parameter required, based on the presence of a default value, the parameter annotations and the kind of input\n\t * parameter.\n\t *\n\t * @return true if required\n\t */\n\tboolean isRequired();\n\n\t/**\n\t * If parameter is an array or collection, the default values.\n\t *\n\t * @return values\n\t * @see #isArrayOrCollection()\n\t */\n\tObject[] getValues();\n\n\t/**\n\t * Does the parameter have a value?\n\t *\n\t * @return true if a value is present\n\t */\n\tboolean hasValue();\n\n\t/**\n\t * Name of parameter.\n\t *\n\t * @return the name of parameter.\n\t */\n\tString getParameterName();\n\n\t/**\n\t * Type of parameter.\n\t *\n\t * @return the type of parameter.\n\t */\n\tClass<?> getParameterType();\n\n\t/**\n\t * Gets input constraints.\n\t *\n\t * @return constraints where the key is one of {@link ActionInputParameter#MAX} etc. and the value is a string or number, depending on\n\t * the input constraint.\n\t * @see ActionInputParameter#MAX\n\t * @see ActionInputParameter#MIN\n\t * @see ActionInputParameter#MAX_LENGTH\n\t * @see ActionInputParameter#MIN_LENGTH\n\t * @see ActionInputParameter#STEP\n\t * @see ActionInputParameter#PATTERN\n\t * @see ActionInputParameter#READONLY\n\t */\n\tMap<String, Object> getInputConstraints();\n\n\tString getName();\n\n\tvoid setReadOnly(boolean readOnly);\n\n\tvoid setRequired(boolean required);\n\n\tParameterType getType();\n\n\tboolean isReadOnly();\n\n\tboolean isIgnored();\n\n\tvoid setValue(final Object value);\n\n}",
"private void setExternalConversion(int conversionType) {\n\n //Vector of conversions.\n Vector<String[]> conversions = new Vector<String[]>();\n\n String line;\n\n //Create a buffered reader to read in the file.\n BufferedReader in = new BufferedReader(new StringReader(conversionsText));\n\n //Read in every line to memory.\n try {\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t conversions.add(line.split(\",\"));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n Iterator<String[]> iter = conversions.iterator();\n String[] temp = new String[4];\n\n //Iterate through the vector to find the correct conversion function.\n while (iter.hasNext()) {\n temp = (String[]) iter.next();\n\n if (Integer.parseInt(temp[0]) == conversionType) {\n \n break;\n }\n }\n\n //Create the expression from the conversion that was chosen from the file.\n Expression exp = new Expression(temp[3]);\n externalConversion = exp;\n\n }",
"@ApiModelProperty(required = true, value = \"The action type to be applied. When UPDATE_INTEREST_SETTINGS action type is used, all the existing deposit accounts will be updated with the latest interest-related fields at the end of day job execution\")\n @JsonProperty(JSON_PROPERTY_ACTION)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public ActionEnum getAction() {\n return action;\n }",
"public void setConvertedValue(String convertedValue) {\r\n this.convertedValue = convertedValue;\r\n }",
"private static String getActionFromMessageAttributes(MessageInfo msgInfo) {\n String action = null;\n if (msgInfo != null\n && msgInfo.getExtensionAttributes() != null) {\n String attr = getAction(msgInfo);\n if (attr != null) {\n action = attr;\n msgInfo.setProperty(ACTION, action);\n }\n }\n return action;\n }",
"public void setDocAction (String DocAction)\n{\nif (DocAction.equals(\"AP\") || DocAction.equals(\"CL\") || DocAction.equals(\"PR\") || DocAction.equals(\"IN\") || DocAction.equals(\"CO\") || DocAction.equals(\"--\") || DocAction.equals(\"RC\") || DocAction.equals(\"RJ\") || DocAction.equals(\"RA\") || DocAction.equals(\"WC\") || DocAction.equals(\"XL\") || DocAction.equals(\"RE\") || DocAction.equals(\"PO\") || DocAction.equals(\"VO\"));\n else throw new IllegalArgumentException (\"DocAction Invalid value - Reference = DOCACTION_AD_Reference_ID - AP - CL - PR - IN - CO - -- - RC - RJ - RA - WC - XL - RE - PO - VO\");\nif (DocAction == null) throw new IllegalArgumentException (\"DocAction is mandatory\");\nif (DocAction.length() > 2)\n{\nlog.warning(\"Length > 2 - truncated\");\nDocAction = DocAction.substring(0,2);\n}\nset_Value (\"DocAction\", DocAction);\n}",
"org.hl7.fhir.String addNewValueString();",
"public interface HTTPTriggerConverter {\n\t/** Return value if conversion did not succeed. */\n\tpublic static final Trigger NOT_CONVERTED = new Trigger(){}; \n\t/** Try to convert the input to a trigger. If this fails, then return {@link HTTPTriggerConverter.NOT_CONVERTED}*/\n\tpublic Trigger convert(URI uri, String request); \n}",
"public com.google.protobuf.ByteString\n getActionClassNameBytes() {\n java.lang.Object ref = actionClassName_;\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 actionClassName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setCaseAction(java.lang.String newCaseAction) {\n\tcaseAction = newCaseAction;\n}",
"StringConstant createStringConstant();",
"public interface IRenameTableAction\r\n{\r\n @Convert (TableConverter.class)\r\n\t@Attribute (\"oldTableName\")\tGenericAttributeValue<String> getOldTableName();\r\n\r\n\t@Attribute (\"newTableName\") GenericAttributeValue<String> getNewTableName();\r\n\r\n\r\n}",
"public final void ruleConversion() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2517:2: ( ( ( rule__Conversion__Group__0 ) ) )\r\n // InternalGo.g:2518:2: ( ( rule__Conversion__Group__0 ) )\r\n {\r\n // InternalGo.g:2518:2: ( ( rule__Conversion__Group__0 ) )\r\n // InternalGo.g:2519:3: ( rule__Conversion__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getConversionAccess().getGroup()); \r\n }\r\n // InternalGo.g:2520:3: ( rule__Conversion__Group__0 )\r\n // InternalGo.g:2520:4: rule__Conversion__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Conversion__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getConversionAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Override\n public String getName() {return \"Waiting For Turn Phase\";}",
"public String getAction() {\r\n\t\treturn action;\r\n\t}",
"public String getAction() {\n return this.action;\n }"
] | [
"0.8332717",
"0.7193433",
"0.7081656",
"0.5989033",
"0.5989033",
"0.5881266",
"0.57257766",
"0.57218",
"0.57124656",
"0.566941",
"0.5608527",
"0.54829365",
"0.54488236",
"0.53877485",
"0.5328007",
"0.5303931",
"0.5197265",
"0.5147149",
"0.514474",
"0.5059155",
"0.5054707",
"0.50433654",
"0.5029576",
"0.5011196",
"0.5007268",
"0.49807984",
"0.49608803",
"0.4949029",
"0.49376813",
"0.49245787",
"0.49239084",
"0.48849642",
"0.48808822",
"0.48636004",
"0.48373342",
"0.4830847",
"0.48184505",
"0.4768146",
"0.47613797",
"0.4752158",
"0.4711197",
"0.46974197",
"0.46826103",
"0.46724957",
"0.4651579",
"0.4590244",
"0.45847896",
"0.4555031",
"0.45511442",
"0.45498613",
"0.45496452",
"0.45403084",
"0.4533303",
"0.4531168",
"0.45309108",
"0.45294163",
"0.45217693",
"0.44965538",
"0.44962367",
"0.4494109",
"0.44935486",
"0.4472841",
"0.4471433",
"0.44697472",
"0.44697204",
"0.44661868",
"0.44640088",
"0.44599977",
"0.4456994",
"0.44476885",
"0.4430325",
"0.44297254",
"0.44254607",
"0.44252905",
"0.44220865",
"0.44171813",
"0.4415996",
"0.4408235",
"0.4408235",
"0.4408235",
"0.4408235",
"0.4406821",
"0.4404964",
"0.43975616",
"0.43970776",
"0.43903852",
"0.43885088",
"0.43830365",
"0.43803152",
"0.43735886",
"0.43730527",
"0.4372721",
"0.43721354",
"0.43719333",
"0.43718874",
"0.4369603",
"0.4367028",
"0.4360028",
"0.43582827",
"0.43556702"
] | 0.84963316 | 0 |
The resource name of conversion action to report conversions to. Required. .google.protobuf.StringValue conversion_action = 4; | com.google.protobuf.StringValueOrBuilder getConversionActionOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getConversionAction();",
"com.google.ads.googleads.v6.resources.ConversionActionOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionAction getConversionAction();",
"boolean hasConversionAction();",
"boolean hasConversionAction();",
"public void setConversionTypeName(String conversionTypeName) {\r\n this.conversionTypeName = conversionTypeName;\r\n }",
"private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}",
"public void setConversionTypeName(java.lang.String conversionTypeName) {\n this.conversionTypeName = conversionTypeName;\n }",
"public String getAction() {\n Object ref = action_;\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 action_ = s;\n return s;\n }\n }",
"public String getAction() {\n Object ref = action_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n action_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"private static String getConversionString(List<Term> conversion) {\n StringBuilder stepsString = new StringBuilder();\n stepsString.append(\"Conversion: \\n\");\n for (int i = 0; i < conversion.size(); i++) {\n stepsString.append(conversion.get(i));\n\n if (i < conversion.size() - 1) {\n stepsString.append(\" = \\n\");\n }\n }\n\n return stepsString.toString();\n }",
"public void addConversion(QName name, StringConversion conv)\n throws JiBXException {\n if (m_formatMap.put(name, conv) != null) {\n throw new JiBXException(\"Duplicate conversion defined with name \" +\n name);\n }\n }",
"public String getConversionTypeName() {\r\n return conversionTypeName;\r\n }",
"public String getConverterMessage() {\n \n return this.converterMessage;\n }",
"public String makeConversion(String value);",
"public void setConversionCategoryName(String conversionCategoryName) {\r\n this.conversionCategoryName = conversionCategoryName;\r\n }",
"public void setConversion(StringConversion conv)\n throws JiBXException {\n if (m_convertMap.put(conv.getTypeName(), conv) != null) {\n throw new JiBXException(\"Duplicate conversion defined for type \" +\n conv.getTypeName());\n }\n }",
"public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public AskConversionMessage(MessageBuilder messageBuilder, ResourceType convertedType, List<ResourceType> availableConversions, int numToConvert) {\n super(messageBuilder);\n this.convertedType = convertedType;\n this.availableConversions = availableConversions;\n this.numToConvert = numToConvert;\n }",
"public java.lang.String getConversionTypeName() {\n return conversionTypeName;\n }",
"String convertTransition(Transition instanceValue);",
"public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public StringConversion getNamedConversion(QName name) {\n StringConversion conv = (StringConversion)m_formatMap.get(name);\n if (conv == null && m_context != null) {\n conv = m_context.getNamedConversion(name);\n }\n return conv;\n }",
"public java.lang.String getActionClassName() {\n java.lang.Object ref = actionClassName_;\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 actionClassName_ = s;\n }\n return s;\n }\n }",
"public Uni<String> transform(Action action) {\n JsonObject message = new JsonObject();\n message.put(\"application\", action.getApplication());\n message.put(\"account_id\", action.getEvent().getAccountId());\n message.put(\"timestamp\", action.getTimestamp().toString());\n message.put(\"message\", createMessage(action));\n\n return Uni.createFrom().item(message.encode());\n }",
"FaxJob2HTTPRequestConverterConfigurationConstants(String value) {\n this.value = value;\n }",
"public java.lang.String getActionClassName() {\n java.lang.Object ref = actionClassName_;\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 actionClassName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public abstract String getIntentActionString();",
"@Override\r\n\tpublic String getText(Object object) {\r\n\t\tString label = ((Action) object).getKind();\r\n\t\treturn label == null || label.length() == 0 ? getString(\"_UI_Action_type\")\r\n\t\t\t\t: getString(\"_UI_Action_type\") + \" \" + label;\r\n\t}",
"public void setDefaultConversion(QName name, StringConversion conv)\n throws JiBXException {\n addConversion(name, conv);\n setConversion(conv);\n }",
"public StringConversion getSpecificConversion(String name) {\n StringConversion conv = (StringConversion)m_convertMap.get(name);\n if (conv == null && m_context != null) {\n conv = m_context.getSpecificConversion(name);\n }\n return conv;\n }",
"public String getConversionCategoryName() {\r\n return conversionCategoryName;\r\n }",
"public void setNamedConversion(QName name, StringConversion conv)\n throws JiBXException {\n addConversion(name, conv);\n }",
"public final Instruction conversion_op() throws RecognitionException {\r\n Instruction inst = null;\r\n\r\n\r\n Token CONVERSION_OP67=null;\r\n Type t1 =null;\r\n\r\n Type t2 =null;\r\n\r\n Constant variable66 =null;\r\n\r\n Constant expression68 =null;\r\n\r\n\r\n\r\n Constant dest;\r\n String converOp;\r\n int opcode = InstType.converInst;\r\n List<Type> types = new ArrayList<Type>();\r\n List<Constant> operands = new ArrayList<Constant>();\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:418:5: ( variable '=' CONVERSION_OP t1= scalar_type expression TO t2= scalar_type )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:418:7: variable '=' CONVERSION_OP t1= scalar_type expression TO t2= scalar_type\r\n {\r\n pushFollow(FOLLOW_variable_in_conversion_op2294);\r\n variable66=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,47,FOLLOW_47_in_conversion_op2296); \r\n\r\n CONVERSION_OP67=(Token)match(input,CONVERSION_OP,FOLLOW_CONVERSION_OP_in_conversion_op2298); \r\n\r\n pushFollow(FOLLOW_scalar_type_in_conversion_op2302);\r\n t1=scalar_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_conversion_op2304);\r\n expression68=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,TO,FOLLOW_TO_in_conversion_op2306); \r\n\r\n pushFollow(FOLLOW_scalar_type_in_conversion_op2310);\r\n t2=scalar_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n dest = variable66; converOp=(CONVERSION_OP67!=null?CONVERSION_OP67.getText():null); types.add(t1); types.add(t2); operands.add(expression68);\r\n\r\n }\r\n\r\n\r\n inst = instFactory.createOperationInst(dest, opcode, operands, types, converOp);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return inst;\r\n }",
"public void setActionInfo(String actionInfo);",
"@Test\n\tpublic void testConversion() {\n\n\t\tTimeConversion tc = new TimeConversion();\n\t\tString converted = null;\n\t\ttry {\n\t\t\tconverted = tc.conversion(JunitConstants.INPUT_TIMESTAMP, JunitConstants.INP_DROPDOWNITEM,\n\t\t\t\t\tJunitConstants.OUT_DROPDOWNITEM);\n\t\t} catch (InternalException e) {\n\t\t\tTimeConvertServlet.LOGGER.log(Level.SEVERE, Constants.EXCEPTION_MSG, e);\n\t\t}\n\t\tassertEquals(JunitConstants.EXPECTED_OUTPUT, converted);\n\n\t}",
"public String getChangeAction()\r\n\t{\r\n\t\treturn changeAction;\r\n\t}",
"public String getDocAction() \n{\nreturn (String)get_Value(\"DocAction\");\n}",
"@Test @SpecAssertion(id = \"432-A1\", section=\"4.3.2\")\n public void testConversion(){\n Assert.fail();\n }",
"@JsonGetter(\"type\")\n public String getServerActionConverter() {\n String serverActionValue = getType() != null ? getType() : getServerAction();\n return serverActionValue != null ? serverActionValue : \"server\";\n }",
"public void setConversionValue(Double conversionValue) {\r\n this.conversionValue = conversionValue;\r\n }",
"private TypeDictionaryDicoActionQualificatifActivite(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"public void setAction(String action) { this.action = action; }",
"private String getTitleString(String actionStr)\n\t\t{\n\t\t\treturn (actionStr + \" \" + PATTERN_STR.toLowerCase() + \" : \" + filterKind + \" \" + FILTER_STR);\n\t\t}",
"public StringConverter()\n {\n \n }",
"@Test\n public void convertPredefined() {\n final IStringConverter<Predicate<MidiDevice.Info>> converter = new StringToMidiDevicePredicateConverter();\n assertEquals(\"Incorrect conversion\", Devices.podXt, converter.convert(\"PodXT\"));\n assertEquals(\"Incorrect conversion\", Devices.podXt, converter.convert(\"podxt\"));\n assertEquals(\"Incorrect conversion\", Devices.audioBox44Vsl, converter.convert(\"AudioBox44Vsl\"));\n assertEquals(\"Incorrect conversion\", Devices.audioBox44Vsl, converter.convert(\"audiobox44vsl\"));\n }",
"public String conversion() {\n try {\n transactionFailure = null;\n amountConverted = converterFacade.conversion(fromCurrencyCode,\n toCurrencyCode, amountToConvert);\n } catch (Exception e) {\n handleException(e);\n }\n return jsf22Bugfix();\n }",
"@Override\r\n protected boolean validateAction() {\n Set inputNames = getInputNames();\r\n Iterator inputNamesIterator = inputNames.iterator();\r\n String inputName;\r\n IActionParameter actionParameter;\r\n while (inputNamesIterator.hasNext()) {\r\n inputName = (String) inputNamesIterator.next();\r\n actionParameter = getInputParameter(inputName);\r\n message(Messages.getString(\"TestComponent.DEBUG_INPUT_DESCRIPTION\", inputName, actionParameter.getType())); //$NON-NLS-1$\r\n }\r\n\r\n Set outputNames = getOutputNames();\r\n Iterator outputNamesIterator = outputNames.iterator();\r\n String outputName;\r\n while (outputNamesIterator.hasNext()) {\r\n outputName = (String) outputNamesIterator.next();\r\n actionParameter = getOutputItem(outputName);\r\n message(Messages.getString(\"TestComponent.DEBUG_OUTPUT_DESCRIPTION\", outputName, actionParameter.getType())); //$NON-NLS-1$\r\n }\r\n\r\n Set resourceNames = getResourceNames();\r\n Iterator resourceNamesIterator = resourceNames.iterator();\r\n String resourceName;\r\n IActionSequenceResource actionResource;\r\n while (resourceNamesIterator.hasNext()) {\r\n resourceName = (String) resourceNamesIterator.next();\r\n actionResource = getResource(resourceName);\r\n message(Messages\r\n .getString(\r\n \"TestComponent.DEBUG_RESOURCE_DESCRIPTION\", resourceName, actionResource.getMimeType(), PentahoSystem.getApplicationContext().getSolutionPath(actionResource.getAddress()))); //$NON-NLS-1$\r\n try {\r\n String content = getResourceAsString(actionResource);\r\n message(Messages.getString(\r\n \"TestComponent.DEBUG_RESOURCE_CONTENTS\", ((content == null) ? \"null\" : content.substring(0, 100)))); //$NON-NLS-1$ //$NON-NLS-2$\r\n } catch (Exception e) {\r\n message(Messages.getString(\"TestComponent.ERROR_0005_RESOURCE_NOT_LOADED\", e.getMessage())); //$NON-NLS-1$\r\n }\r\n }\r\n\r\n return true;\r\n }",
"public String getAccessibleActionDescription(int i) {\n if (i == 0) {\n // [[[PENDING: WDW -- need to provide a localized string]]]\n return \"click\";\n } else {\n return null;\n }\n }",
"public Action(String name) {\n this.name = name;\n }",
"public StringConvert getConverter() {\n return converter;\n }",
"static String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}",
"StringOperation createStringOperation();",
"CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }",
"public Builder setActionBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n action_ = value;\n onChanged();\n return this;\n }",
"public void setConversionTypeId(java.lang.Long conversionTypeId) {\n this.conversionTypeId = conversionTypeId;\n }",
"protected abstract Action stringToAction(String stringAction);",
"public String getAction() {\n return action;\n }",
"public void setAction(String str) {\n\t\taction = str;\n\t}",
"protected void sequence_Conversion(ISerializationContext context, Conversion semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CONVERSION__TYPE) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CONVERSION__TYPE));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CONVERSION__EXPRESSION) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CONVERSION__EXPRESSION));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getConversionAccess().getTypeTypeParserRuleCall_1_0(), semanticObject.getType());\r\n\t\tfeeder.accept(grammarAccess.getConversionAccess().getExpressionExpressionParserRuleCall_3_0(), semanticObject.getExpression());\r\n\t\tfeeder.finish();\r\n\t}",
"public ConstError(CompositeEntity container, String name) throws NameDuplicationException, IllegalActionException {\r\n\t\tsuper(container, name);\r\n\t\tvalue = new StringParameter(this, \"value\");\r\n severity = new StringParameter(this, \"severity\");\r\n severity.setExpression(Severity.FATAL.toString());\r\n severity.addChoice(Severity.FATAL.toString());\r\n severity.addChoice(Severity.NON_FATAL.toString());\r\n\r\n\t\t// Set the type constraint.\r\n\t\toutput.setTypeAtLeast(value);\r\n\t}",
"IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);",
"public void setAction (String action) {\n this.action = action;\n }",
"@ApiModelProperty(value = \"Count of conversions, formatted\")\r\n public String getConversionCountFormatted() {\r\n return conversionCountFormatted;\r\n }",
"@SkylarkModule(\n name = \"feedback.action\",\n doc = \"An action that will be executed in a feedback workflow or on_finish hook\",\n category = SkylarkModuleCategory.TOP_LEVEL_TYPE,\n documented = false)\npublic interface Action {\n\n void run(SkylarkContext<?> context) throws ValidationException, RepoException;\n\n String getName();\n\n /** Returns a key-value ist of the options the action was instantiated with. */\n ImmutableSetMultimap<String, String> describe();\n}",
"public String getActionInfo() {\n\n String\taction\t= getAction();\n\n if (ACTION_AppsProcess.equals(action)) {\n return \"Process:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_DocumentAction.equals(action)) {\n return \"DocumentAction=\" + getDocAction();\n } else if (ACTION_AppsReport.equals(action)) {\n return \"Report:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_AppsTask.equals(action)) {\n return \"Task:AD_Task_ID=\" + getAD_Task_ID();\n } else if (ACTION_SetVariable.equals(action)) {\n return \"SetVariable:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_SubWorkflow.equals(action)) {\n return \"Workflow:MPC_Order_Workflow_ID=\" + getMPC_Order_Workflow_ID();\n } else if (ACTION_UserChoice.equals(action)) {\n return \"UserChoice:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_UserWorkbench.equals(action)) {\n return \"Workbench:?\";\n } else if (ACTION_UserForm.equals(action)) {\n return \"Form:AD_Form_ID=\" + getAD_Form_ID();\n } else if (ACTION_UserWindow.equals(action)) {\n return \"Window:AD_Window_ID=\" + getAD_Window_ID();\n }\n\n /*\n * else if (ACTION_WaitSleep.equals(action))\n * return \"Sleep:WaitTime=\" + getWaitTime();\n */\n return \"??\";\n\n }",
"private void convertString(AssignStatContext c, List<String> ssa) {\n\t\tString content = c.StringLiteral().getText();\n\t\tcontent = content.substring(1, content.length() - 1);\n\t\tString id = c.ID().getText();\n\t\tString newId = this.generateNewName(id);\n\t\tStringRepresentation rep = new StringRepresentation(newId, content);\n\t\tssa.addAll(rep.getConstraints());\n\t\t\n\t}",
"Builder addPotentialAction(String value);",
"public String getConvertedValue() {\r\n return convertedValue;\r\n }",
"com.google.protobuf.StringValue getCustomValue();",
"public void setAction(String action);",
"public SaveConstitutionInformationAction() {\n }",
"private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }",
"public String getActionType() {\n return actionType;\n }",
"public void setConversionDate(LocalDate conversionDate) {\r\n this.conversionDate = conversionDate;\r\n }",
"@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}",
"String getOnAction();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"StringValue createStringValue();",
"com.google.protobuf.ByteString\n getActionBytes();",
"public void testEnumUsingToString() throws Exception\n {\n assertEquals(\"\\\"c2\\\"\", MAPPER.writeValueAsString(AnnotatedTestEnum.C2));\n }",
"public static void setEventLabel(String action){\n static_label.setText(action + \" \");\n }",
"public interface ActionInputParameter {\n\n\tString MIN = \"min\";\n\n\tString MAX = \"max\";\n\n\tString STEP = \"step\";\n\n\tString MIN_LENGTH = \"minLength\";\n\n\tString MAX_LENGTH = \"maxLength\";\n\n\tString PATTERN = \"pattern\";\n\n\tString READONLY = \"readonly\";\n\n\t/**\n\t * Raw field value, without conversion.\n\t *\n\t * @return value\n\t */\n\tObject getValue();\n\n\t/**\n\t * Formatted field value to be used as preset value (e.g. using ConversionService).\n\t *\n\t * @return formatted value\n\t */\n\tString getValueFormatted();\n\n\t/**\n\t * Type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t *\n\t * @return input field type\n\t */\n\tType getHtmlInputFieldType();\n\n\t/**\n\t * Set the type of parameter when used in html-like contexts (e.g. Siren, Uber, XHtml)\n\t * \n\t * @param type the {@link Type} to set\n\t */\n\tvoid setHtmlInputFieldType(Type type);\n\n\t/**\n\t * Parameter has input constraints (like range, step etc.)\n\t *\n\t * @return true for input constraints\n\t * @see #getInputConstraints()\n\t */\n\tboolean hasInputConstraints();\n\n\t/**\n\t * Gets possible values for this parameter.\n\t *\n\t * @param actionDescriptor in case that access to the other parameters is necessary to determine the possible values.\n\t * @param <T> This is the type parameter\n\t * @return possible values or empty array\n\t */\n\t<T> List<Suggest<T>> getPossibleValues(ActionDescriptor<? extends ActionInputParameter> actionDescriptor);\n\n\t/**\n\t * Establish possible values for this parameter\n\t * \n\t * @param possibleValues possible values for this parameter.\n\t */\n\tvoid setPossibleValues(List<? extends Suggest<?>> possibleValues);\n\n\t/**\n\t * Retrieve the suggest type\n\t * \n\t * @return the {@link SuggestType}\n\t */\n\tSuggestType getSuggestType();\n\n\t/**\n\t * Sets the suggest type\n\t * \n\t * @param type the {@link SuggestType} to set.\n\t */\n\tvoid setSuggestType(SuggestType type);\n\n\t/**\n\t * Parameter is an array or collection, think {?val*} in uri template.\n\t *\n\t * @return true for collection or array\n\t */\n\tboolean isArrayOrCollection();\n\n\t/**\n\t * Is this action input parameter required, based on the presence of a default value, the parameter annotations and the kind of input\n\t * parameter.\n\t *\n\t * @return true if required\n\t */\n\tboolean isRequired();\n\n\t/**\n\t * If parameter is an array or collection, the default values.\n\t *\n\t * @return values\n\t * @see #isArrayOrCollection()\n\t */\n\tObject[] getValues();\n\n\t/**\n\t * Does the parameter have a value?\n\t *\n\t * @return true if a value is present\n\t */\n\tboolean hasValue();\n\n\t/**\n\t * Name of parameter.\n\t *\n\t * @return the name of parameter.\n\t */\n\tString getParameterName();\n\n\t/**\n\t * Type of parameter.\n\t *\n\t * @return the type of parameter.\n\t */\n\tClass<?> getParameterType();\n\n\t/**\n\t * Gets input constraints.\n\t *\n\t * @return constraints where the key is one of {@link ActionInputParameter#MAX} etc. and the value is a string or number, depending on\n\t * the input constraint.\n\t * @see ActionInputParameter#MAX\n\t * @see ActionInputParameter#MIN\n\t * @see ActionInputParameter#MAX_LENGTH\n\t * @see ActionInputParameter#MIN_LENGTH\n\t * @see ActionInputParameter#STEP\n\t * @see ActionInputParameter#PATTERN\n\t * @see ActionInputParameter#READONLY\n\t */\n\tMap<String, Object> getInputConstraints();\n\n\tString getName();\n\n\tvoid setReadOnly(boolean readOnly);\n\n\tvoid setRequired(boolean required);\n\n\tParameterType getType();\n\n\tboolean isReadOnly();\n\n\tboolean isIgnored();\n\n\tvoid setValue(final Object value);\n\n}",
"@ApiModelProperty(required = true, value = \"The action type to be applied. When UPDATE_INTEREST_SETTINGS action type is used, all the existing deposit accounts will be updated with the latest interest-related fields at the end of day job execution\")\n @JsonProperty(JSON_PROPERTY_ACTION)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public ActionEnum getAction() {\n return action;\n }",
"private void setExternalConversion(int conversionType) {\n\n //Vector of conversions.\n Vector<String[]> conversions = new Vector<String[]>();\n\n String line;\n\n //Create a buffered reader to read in the file.\n BufferedReader in = new BufferedReader(new StringReader(conversionsText));\n\n //Read in every line to memory.\n try {\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t conversions.add(line.split(\",\"));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n Iterator<String[]> iter = conversions.iterator();\n String[] temp = new String[4];\n\n //Iterate through the vector to find the correct conversion function.\n while (iter.hasNext()) {\n temp = (String[]) iter.next();\n\n if (Integer.parseInt(temp[0]) == conversionType) {\n \n break;\n }\n }\n\n //Create the expression from the conversion that was chosen from the file.\n Expression exp = new Expression(temp[3]);\n externalConversion = exp;\n\n }",
"private static String getActionFromMessageAttributes(MessageInfo msgInfo) {\n String action = null;\n if (msgInfo != null\n && msgInfo.getExtensionAttributes() != null) {\n String attr = getAction(msgInfo);\n if (attr != null) {\n action = attr;\n msgInfo.setProperty(ACTION, action);\n }\n }\n return action;\n }",
"public void setConvertedValue(String convertedValue) {\r\n this.convertedValue = convertedValue;\r\n }",
"public void setDocAction (String DocAction)\n{\nif (DocAction.equals(\"AP\") || DocAction.equals(\"CL\") || DocAction.equals(\"PR\") || DocAction.equals(\"IN\") || DocAction.equals(\"CO\") || DocAction.equals(\"--\") || DocAction.equals(\"RC\") || DocAction.equals(\"RJ\") || DocAction.equals(\"RA\") || DocAction.equals(\"WC\") || DocAction.equals(\"XL\") || DocAction.equals(\"RE\") || DocAction.equals(\"PO\") || DocAction.equals(\"VO\"));\n else throw new IllegalArgumentException (\"DocAction Invalid value - Reference = DOCACTION_AD_Reference_ID - AP - CL - PR - IN - CO - -- - RC - RJ - RA - WC - XL - RE - PO - VO\");\nif (DocAction == null) throw new IllegalArgumentException (\"DocAction is mandatory\");\nif (DocAction.length() > 2)\n{\nlog.warning(\"Length > 2 - truncated\");\nDocAction = DocAction.substring(0,2);\n}\nset_Value (\"DocAction\", DocAction);\n}",
"org.hl7.fhir.String addNewValueString();",
"public com.google.protobuf.ByteString\n getActionClassNameBytes() {\n java.lang.Object ref = actionClassName_;\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 actionClassName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setCaseAction(java.lang.String newCaseAction) {\n\tcaseAction = newCaseAction;\n}",
"StringConstant createStringConstant();",
"public interface HTTPTriggerConverter {\n\t/** Return value if conversion did not succeed. */\n\tpublic static final Trigger NOT_CONVERTED = new Trigger(){}; \n\t/** Try to convert the input to a trigger. If this fails, then return {@link HTTPTriggerConverter.NOT_CONVERTED}*/\n\tpublic Trigger convert(URI uri, String request); \n}",
"public interface IRenameTableAction\r\n{\r\n @Convert (TableConverter.class)\r\n\t@Attribute (\"oldTableName\")\tGenericAttributeValue<String> getOldTableName();\r\n\r\n\t@Attribute (\"newTableName\") GenericAttributeValue<String> getNewTableName();\r\n\r\n\r\n}",
"public final void ruleConversion() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2517:2: ( ( ( rule__Conversion__Group__0 ) ) )\r\n // InternalGo.g:2518:2: ( ( rule__Conversion__Group__0 ) )\r\n {\r\n // InternalGo.g:2518:2: ( ( rule__Conversion__Group__0 ) )\r\n // InternalGo.g:2519:3: ( rule__Conversion__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getConversionAccess().getGroup()); \r\n }\r\n // InternalGo.g:2520:3: ( rule__Conversion__Group__0 )\r\n // InternalGo.g:2520:4: rule__Conversion__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Conversion__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getConversionAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Override\n public String getName() {return \"Waiting For Turn Phase\";}",
"public String getAction() {\r\n\t\treturn action;\r\n\t}",
"public String getAction() {\n return this.action;\n }"
] | [
"0.84958446",
"0.7192062",
"0.7081494",
"0.5987819",
"0.5987819",
"0.5877476",
"0.57255274",
"0.5718006",
"0.5715869",
"0.5672912",
"0.5607488",
"0.54799557",
"0.54467505",
"0.5386128",
"0.5324998",
"0.53006583",
"0.5194119",
"0.51504886",
"0.51418024",
"0.50574136",
"0.5054368",
"0.5046727",
"0.5026735",
"0.50133705",
"0.5007184",
"0.49816006",
"0.4963277",
"0.49522993",
"0.49406773",
"0.492241",
"0.49206045",
"0.48835403",
"0.4878386",
"0.48613295",
"0.48390457",
"0.48283863",
"0.4820928",
"0.47716606",
"0.47591445",
"0.47529823",
"0.47082055",
"0.46993107",
"0.46846566",
"0.46740633",
"0.4648434",
"0.4587676",
"0.4583598",
"0.4556502",
"0.4553035",
"0.45503226",
"0.45488515",
"0.45407417",
"0.4533825",
"0.4531914",
"0.45301858",
"0.45280328",
"0.45230144",
"0.45000318",
"0.44961774",
"0.44937307",
"0.44931048",
"0.447352",
"0.44716027",
"0.4471397",
"0.44711244",
"0.44675186",
"0.44653365",
"0.44591212",
"0.44588706",
"0.44481567",
"0.4432312",
"0.44302675",
"0.4427729",
"0.4424793",
"0.44216844",
"0.4420939",
"0.4419051",
"0.44084346",
"0.44084346",
"0.44084346",
"0.44084346",
"0.44079316",
"0.44073802",
"0.43993917",
"0.4397355",
"0.43918675",
"0.43869665",
"0.43821502",
"0.438049",
"0.43756962",
"0.4374757",
"0.43746552",
"0.4373042",
"0.4372769",
"0.4371022",
"0.43693402",
"0.43645826",
"0.43623954",
"0.43622792",
"0.4359468"
] | 0.83316284 | 1 |
Transaction order id. Accessible only to customers on the allowlist. .google.protobuf.StringValue order_id = 5; | boolean hasOrderId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getOrderId();",
"public String getOrderID() {\n\t\treturn this.token.get(\"orderID\").toString();\n\t}",
"public String getOrderid() {\n return orderid;\n }",
"public String getOrderId() {\n Object ref = orderId_;\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 if (bs.isValidUtf8()) {\n orderId_ = s;\n }\n return s;\n }\n }",
"public String getOrderId() {\n Object ref = orderId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n orderId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"com.google.protobuf.StringValueOrBuilder getOrderIdOrBuilder();",
"String getOrderId();",
"public String getOrderID() {return orderID;}",
"public String getOrderId(JsonObject order) {\r\n\t\tint orderID = 0;\r\n\t\tString customerId = order.get(\"customerId\").getAsString();\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\tquery = \"SELECT * FROM home_heating_fuel_orders\" + \" WHERE customerID = '\" + customerId + \"';\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\torderID = Math.max(rs.getInt(\"orderID\"), orderID);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn orderID + \"\";\r\n\t}",
"public int getId() {\n return orderID;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"@ApiModelProperty(example = \"123456\", value = \"Client order ID if supplied by client.\")\n public String getOrderId() {\n return orderId;\n }",
"public Long getOrderid() {\r\n return orderid;\r\n }",
"public Integer\t\tgetOrderID();",
"public String getOrderId() {\n\t\treturn orderId;\n\t}",
"public String getOrderID() {\n return this.orderID;\n }",
"public Integer getOrderId() {\n return orderId;\n }",
"public int getOrderID() \r\n\t{\r\n\t\treturn orderID;\r\n\t}",
"public void setOrderId(int value) {\n this.orderId = value;\n }",
"public Builder setOrderId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n orderId_ = value;\n onChanged();\n return this;\n }",
"public String getOrderidentifier() {\n\t\treturn orderidentifier;\n\t}",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"public int getOrderId() {\n return orderId;\n }",
"public com.google.protobuf.ByteString\n getOrderIdBytes() {\n Object ref = orderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n orderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getOrdersId() {\n return ordersId;\n }",
"public Long getOrderId() {\n return orderId;\n }",
"public Long getOrderId() {\n return orderId;\n }",
"com.google.protobuf.ByteString\n getOrderIdBytes();",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"private int getOrderId() {\n int orderId;\n try {\n if (orderIdField.getText().isEmpty()) {\n orderId = -1;\n }\n else {\n orderId = Integer.parseInt(orderIdField.getText());\n }\n } catch (NumberFormatException exc) {\n orderId = -1;\n }\n return orderId;\n }",
"String getOrderStatusId();",
"public void writeOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n session.setAttribute(\"orderId\", \"\" + orderId);\n }",
"public com.google.protobuf.ByteString\n getOrderIdBytes() {\n Object ref = orderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n orderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setOrderid(Long orderid) {\r\n this.orderid = orderid;\r\n }",
"java.lang.String getTxId();",
"public int getOrderID() {\n return orderID;\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId;\n }",
"public Order(int _orderId){\n this.orderId = _orderId;\n }",
"public void readOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n Object orderIdParam = session.getAttribute(\"orderId\");\n orderId = null;\n if(orderIdParam != null) {\n orderId = Integer.parseInt(orderIdParam.toString().trim());\n }\n }",
"public void setOrderid(String orderid) {\n this.orderid = orderid == null ? null : orderid.trim();\n }",
"public Integer getOrderItemId() {\n return orderItemId;\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"String getTransactionID();",
"public void setOrderId(String orderId) {\n\t\tthis.orderId = orderId;\n\t}",
"@JsonProperty(\"OrderId\")\n public String getOrderId() {\n return orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public String getOrderexcuteidentifier() {\n\t\treturn orderexcuteidentifier;\n\t}",
"public void setOrderID(String orderID) {\n\t\tORDER_ID = orderID;\n\t}",
"public int getXX_MaterialTransferOrder_ID() \r\n {\r\n return get_ValueAsInt(\"XX_MaterialTransferOrder_ID\");\r\n \r\n }",
"public String getOrderno() {\n return orderno;\n }",
"public String getOrderno() {\n return orderno;\n }",
"void paymentOrder(long orderId);",
"public Builder setOrderIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n orderId_ = value;\n onChanged();\n return this;\n }",
"public io.dstore.values.IntegerValue getOrderPersonId() {\n if (orderPersonIdBuilder_ == null) {\n return orderPersonId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : orderPersonId_;\n } else {\n return orderPersonIdBuilder_.getMessage();\n }\n }",
"public ThreeDSecureRequest addOrderId(String orderId) {\n this.orderId = orderId;\n return this;\n }",
"public String orderNumberById(String orderId) {\n return orderById(orderId, orderNumber);\n }",
"public String getOrderNo() {\n return orderNo;\n }",
"public String getOrderNumber() {\n return orderNumber;\n }",
"public Input getOrderID() throws RemoteException\n\t{\n\t\t if (orderID != null)\n\t\t \treturn orderID;\n\t\t orderID = new LabelInput(getTransfer().getOrderID());\n\t\t return orderID;\n\t}",
"String getTransactionId();",
"String getTransactionId();",
"public void setOrder_code_id(java.lang.Integer order_code_id) {\n this.order_code_id = order_code_id;\n }",
"public int getOrderID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORDERID$0, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getOrderID() {\r\n return emporderID;\r\n }",
"public int getOrder_code_id() {\n return order_code_id;\n }",
"@Column(name = \"order_id\", precision = 10)\n @GeneratedValue\n @Id\n public Integer getOrderId() {\n return orderId;\n }",
"@ApiModelProperty(required = true, value = \"internal domestic payment order identifier\")\n public String getId() {\n return id;\n }",
"public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }",
"public long getOrderNumber()\n {\n return _orderNumber;\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n }\n }",
"io.dstore.values.IntegerValueOrBuilder getOrderPersonIdOrBuilder();",
"public void setOrderNumber(int value) {\n this.orderNumber = value;\n }",
"public void setOrder_code_id(int order_code_id) {\n this.order_code_id = order_code_id;\n }",
"long getTxid();",
"private void recordOrderID(OrderID inOrderID)\n {\n String currentOrderIDList = getProperty(\"orderIDs\");\n currentOrderIDList += \",\" + inOrderID.getValue();\n setProperty(\"orderIDs\",\n currentOrderIDList);\n }",
"public void setTransactionid(long value) {\n this.transactionid = value;\n }",
"public String getOrderNum() {\n return orderNum;\n }",
"public void setOrderno(String orderno) {\n this.orderno = orderno;\n }",
"public Long getOrderNo () {\r\n\t\treturn orderNo;\r\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The payment order id of the transfer transaction, customizable\")\n @JsonProperty(JSON_PROPERTY_PAYMENT_ORDER_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getPaymentOrderId() {\n return paymentOrderId;\n }",
"String getOrderTypeId();",
"public String getOrdernum() {\n return ordernum;\n }",
"public static final String generateOrderId() {\n return generateOrderId(RANDOM.nextInt(1000));\n }",
"public String getSOrderID() {\n return sOrderID;\n }",
"public int getOrderNumber() {\n return orderNumber;\n }",
"public io.dstore.values.IntegerValueOrBuilder getOrderPersonIdOrBuilder() {\n if (orderPersonIdBuilder_ != null) {\n return orderPersonIdBuilder_.getMessageOrBuilder();\n } else {\n return orderPersonId_ == null ?\n io.dstore.values.IntegerValue.getDefaultInstance() : orderPersonId_;\n }\n }",
"String getAcctgTransEntrySeqId();",
"public String orderById(String orderId) {\n String path = mgmtOrdersPath + orderId;\n\n return sendRequest(getResponseType, systemUserAuthToken(), path, allResult, statusCode200);\n }",
"public Short getOrderNo() {\n return orderNo;\n }",
"public io.dstore.values.IntegerValue getOrderPersonId() {\n return orderPersonId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : orderPersonId_;\n }",
"public io.dstore.values.IntegerValueOrBuilder getOrderPersonIdOrBuilder() {\n return getOrderPersonId();\n }",
"public String getBusinessOrderId() {\n return businessOrderId;\n }",
"public void setTransactionId(int value) {\n this.transactionId = value;\n }"
] | [
"0.7440339",
"0.7175705",
"0.69362205",
"0.6801977",
"0.6779678",
"0.6763738",
"0.6754015",
"0.6732774",
"0.67165536",
"0.66973644",
"0.66911566",
"0.66911566",
"0.66911566",
"0.66199553",
"0.65983814",
"0.6571603",
"0.6550742",
"0.6521391",
"0.6511657",
"0.6479932",
"0.6452691",
"0.6446929",
"0.64463514",
"0.63905436",
"0.63407487",
"0.6338449",
"0.63116217",
"0.6310934",
"0.6310934",
"0.631042",
"0.6309732",
"0.6309732",
"0.6293113",
"0.6293113",
"0.62871325",
"0.62798226",
"0.62684584",
"0.62551177",
"0.6254077",
"0.6244642",
"0.624319",
"0.6239648",
"0.62113655",
"0.6208533",
"0.6178871",
"0.616531",
"0.6154736",
"0.6154736",
"0.6140143",
"0.6088431",
"0.60865563",
"0.6081945",
"0.6081945",
"0.6076711",
"0.6052901",
"0.6048212",
"0.60428",
"0.60428",
"0.6029565",
"0.59908134",
"0.5959668",
"0.59544635",
"0.5935033",
"0.5924777",
"0.5916985",
"0.59164757",
"0.5914125",
"0.5914125",
"0.59125066",
"0.58804494",
"0.5878366",
"0.5874424",
"0.58681965",
"0.5859888",
"0.5859012",
"0.5854461",
"0.58425885",
"0.5835003",
"0.58236426",
"0.5812813",
"0.58015364",
"0.57861596",
"0.57793266",
"0.57682407",
"0.5755338",
"0.5731414",
"0.5726669",
"0.5724845",
"0.5724264",
"0.5723959",
"0.5709236",
"0.56949127",
"0.5690496",
"0.56885755",
"0.5664825",
"0.5661351",
"0.56585276",
"0.5653804",
"0.5650924",
"0.5646653",
"0.56424147"
] | 0.0 | -1 |
Transaction order id. Accessible only to customers on the allowlist. .google.protobuf.StringValue order_id = 5; | com.google.protobuf.StringValue getOrderId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOrderID() {\n\t\treturn this.token.get(\"orderID\").toString();\n\t}",
"public String getOrderid() {\n return orderid;\n }",
"public String getOrderId() {\n Object ref = orderId_;\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 if (bs.isValidUtf8()) {\n orderId_ = s;\n }\n return s;\n }\n }",
"public String getOrderId() {\n Object ref = orderId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n orderId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"com.google.protobuf.StringValueOrBuilder getOrderIdOrBuilder();",
"String getOrderId();",
"public String getOrderID() {return orderID;}",
"public String getOrderId(JsonObject order) {\r\n\t\tint orderID = 0;\r\n\t\tString customerId = order.get(\"customerId\").getAsString();\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\tquery = \"SELECT * FROM home_heating_fuel_orders\" + \" WHERE customerID = '\" + customerId + \"';\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\torderID = Math.max(rs.getInt(\"orderID\"), orderID);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn orderID + \"\";\r\n\t}",
"public int getId() {\n return orderID;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"@ApiModelProperty(example = \"123456\", value = \"Client order ID if supplied by client.\")\n public String getOrderId() {\n return orderId;\n }",
"public Long getOrderid() {\r\n return orderid;\r\n }",
"public Integer\t\tgetOrderID();",
"public String getOrderId() {\n\t\treturn orderId;\n\t}",
"public String getOrderID() {\n return this.orderID;\n }",
"public Integer getOrderId() {\n return orderId;\n }",
"public int getOrderID() \r\n\t{\r\n\t\treturn orderID;\r\n\t}",
"public void setOrderId(int value) {\n this.orderId = value;\n }",
"public Builder setOrderId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n orderId_ = value;\n onChanged();\n return this;\n }",
"public String getOrderidentifier() {\n\t\treturn orderidentifier;\n\t}",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"public int getOrderId() {\n return orderId;\n }",
"public com.google.protobuf.ByteString\n getOrderIdBytes() {\n Object ref = orderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n orderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getOrdersId() {\n return ordersId;\n }",
"com.google.protobuf.ByteString\n getOrderIdBytes();",
"public Long getOrderId() {\n return orderId;\n }",
"public Long getOrderId() {\n return orderId;\n }",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"private int getOrderId() {\n int orderId;\n try {\n if (orderIdField.getText().isEmpty()) {\n orderId = -1;\n }\n else {\n orderId = Integer.parseInt(orderIdField.getText());\n }\n } catch (NumberFormatException exc) {\n orderId = -1;\n }\n return orderId;\n }",
"String getOrderStatusId();",
"public void writeOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n session.setAttribute(\"orderId\", \"\" + orderId);\n }",
"public com.google.protobuf.ByteString\n getOrderIdBytes() {\n Object ref = orderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n orderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setOrderid(Long orderid) {\r\n this.orderid = orderid;\r\n }",
"java.lang.String getTxId();",
"public int getOrderID() {\n return orderID;\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId;\n }",
"public Order(int _orderId){\n this.orderId = _orderId;\n }",
"public void readOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n Object orderIdParam = session.getAttribute(\"orderId\");\n orderId = null;\n if(orderIdParam != null) {\n orderId = Integer.parseInt(orderIdParam.toString().trim());\n }\n }",
"public void setOrderid(String orderid) {\n this.orderid = orderid == null ? null : orderid.trim();\n }",
"public Integer getOrderItemId() {\n return orderItemId;\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"String getTransactionID();",
"public void setOrderId(String orderId) {\n\t\tthis.orderId = orderId;\n\t}",
"@JsonProperty(\"OrderId\")\n public String getOrderId() {\n return orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public String getOrderexcuteidentifier() {\n\t\treturn orderexcuteidentifier;\n\t}",
"public void setOrderID(String orderID) {\n\t\tORDER_ID = orderID;\n\t}",
"public int getXX_MaterialTransferOrder_ID() \r\n {\r\n return get_ValueAsInt(\"XX_MaterialTransferOrder_ID\");\r\n \r\n }",
"public String getOrderno() {\n return orderno;\n }",
"public String getOrderno() {\n return orderno;\n }",
"void paymentOrder(long orderId);",
"public Builder setOrderIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n orderId_ = value;\n onChanged();\n return this;\n }",
"public io.dstore.values.IntegerValue getOrderPersonId() {\n if (orderPersonIdBuilder_ == null) {\n return orderPersonId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : orderPersonId_;\n } else {\n return orderPersonIdBuilder_.getMessage();\n }\n }",
"public ThreeDSecureRequest addOrderId(String orderId) {\n this.orderId = orderId;\n return this;\n }",
"public String orderNumberById(String orderId) {\n return orderById(orderId, orderNumber);\n }",
"public String getOrderNo() {\n return orderNo;\n }",
"public Input getOrderID() throws RemoteException\n\t{\n\t\t if (orderID != null)\n\t\t \treturn orderID;\n\t\t orderID = new LabelInput(getTransfer().getOrderID());\n\t\t return orderID;\n\t}",
"public String getOrderNumber() {\n return orderNumber;\n }",
"String getTransactionId();",
"String getTransactionId();",
"public void setOrder_code_id(java.lang.Integer order_code_id) {\n this.order_code_id = order_code_id;\n }",
"public int getOrderID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORDERID$0, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getOrderID() {\r\n return emporderID;\r\n }",
"public int getOrder_code_id() {\n return order_code_id;\n }",
"@ApiModelProperty(required = true, value = \"internal domestic payment order identifier\")\n public String getId() {\n return id;\n }",
"@Column(name = \"order_id\", precision = 10)\n @GeneratedValue\n @Id\n public Integer getOrderId() {\n return orderId;\n }",
"public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }",
"public long getOrderNumber()\n {\n return _orderNumber;\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n }\n }",
"io.dstore.values.IntegerValueOrBuilder getOrderPersonIdOrBuilder();",
"public void setOrderNumber(int value) {\n this.orderNumber = value;\n }",
"public void setOrder_code_id(int order_code_id) {\n this.order_code_id = order_code_id;\n }",
"long getTxid();",
"private void recordOrderID(OrderID inOrderID)\n {\n String currentOrderIDList = getProperty(\"orderIDs\");\n currentOrderIDList += \",\" + inOrderID.getValue();\n setProperty(\"orderIDs\",\n currentOrderIDList);\n }",
"public void setTransactionid(long value) {\n this.transactionid = value;\n }",
"public String getOrderNum() {\n return orderNum;\n }",
"public void setOrderno(String orderno) {\n this.orderno = orderno;\n }",
"public Long getOrderNo () {\r\n\t\treturn orderNo;\r\n\t}",
"String getOrderTypeId();",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The payment order id of the transfer transaction, customizable\")\n @JsonProperty(JSON_PROPERTY_PAYMENT_ORDER_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getPaymentOrderId() {\n return paymentOrderId;\n }",
"public String getOrdernum() {\n return ordernum;\n }",
"public static final String generateOrderId() {\n return generateOrderId(RANDOM.nextInt(1000));\n }",
"public String getSOrderID() {\n return sOrderID;\n }",
"public io.dstore.values.IntegerValueOrBuilder getOrderPersonIdOrBuilder() {\n if (orderPersonIdBuilder_ != null) {\n return orderPersonIdBuilder_.getMessageOrBuilder();\n } else {\n return orderPersonId_ == null ?\n io.dstore.values.IntegerValue.getDefaultInstance() : orderPersonId_;\n }\n }",
"public int getOrderNumber() {\n return orderNumber;\n }",
"String getAcctgTransEntrySeqId();",
"public String orderById(String orderId) {\n String path = mgmtOrdersPath + orderId;\n\n return sendRequest(getResponseType, systemUserAuthToken(), path, allResult, statusCode200);\n }",
"public Short getOrderNo() {\n return orderNo;\n }",
"public io.dstore.values.IntegerValue getOrderPersonId() {\n return orderPersonId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : orderPersonId_;\n }",
"public io.dstore.values.IntegerValueOrBuilder getOrderPersonIdOrBuilder() {\n return getOrderPersonId();\n }",
"public String getBusinessOrderId() {\n return businessOrderId;\n }",
"public void setTransactionId(int value) {\n this.transactionId = value;\n }"
] | [
"0.7176258",
"0.6936226",
"0.68029934",
"0.6780539",
"0.67664105",
"0.67544764",
"0.67322296",
"0.67158747",
"0.669736",
"0.66911215",
"0.66911215",
"0.66911215",
"0.6620747",
"0.65984195",
"0.65720767",
"0.6550963",
"0.6521243",
"0.6511794",
"0.6479718",
"0.64538735",
"0.64479476",
"0.6445911",
"0.6390123",
"0.63405895",
"0.63382995",
"0.63111985",
"0.6311169",
"0.6310772",
"0.6310772",
"0.63086885",
"0.63086885",
"0.6292899",
"0.6292899",
"0.628887",
"0.6281779",
"0.6267301",
"0.62550926",
"0.6253867",
"0.6244211",
"0.62428975",
"0.623878",
"0.6210663",
"0.6209852",
"0.6178345",
"0.6164853",
"0.61537886",
"0.61537886",
"0.6139907",
"0.60876155",
"0.60862327",
"0.60816056",
"0.60816056",
"0.60767996",
"0.60516465",
"0.6048015",
"0.6042251",
"0.6042251",
"0.60283977",
"0.59921086",
"0.59626555",
"0.59531206",
"0.5934942",
"0.59240675",
"0.5916205",
"0.5915927",
"0.59121954",
"0.59121954",
"0.59105843",
"0.58817464",
"0.58777875",
"0.58747464",
"0.586765",
"0.5861842",
"0.5859817",
"0.58540505",
"0.58417094",
"0.58346224",
"0.58271843",
"0.5812424",
"0.5799888",
"0.57861",
"0.5778029",
"0.5768992",
"0.5755099",
"0.57297367",
"0.5726063",
"0.572458",
"0.57243395",
"0.57237315",
"0.57094055",
"0.5694033",
"0.56919026",
"0.5689464",
"0.5665127",
"0.5661462",
"0.56579465",
"0.56561446",
"0.56537855",
"0.5647224",
"0.5640722"
] | 0.74424666 | 0 |
Transaction order id. Accessible only to customers on the allowlist. .google.protobuf.StringValue order_id = 5; | com.google.protobuf.StringValueOrBuilder getOrderIdOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getOrderId();",
"public String getOrderID() {\n\t\treturn this.token.get(\"orderID\").toString();\n\t}",
"public String getOrderid() {\n return orderid;\n }",
"public String getOrderId() {\n Object ref = orderId_;\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 if (bs.isValidUtf8()) {\n orderId_ = s;\n }\n return s;\n }\n }",
"public String getOrderId() {\n Object ref = orderId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n orderId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getOrderId();",
"public String getOrderID() {return orderID;}",
"public String getOrderId(JsonObject order) {\r\n\t\tint orderID = 0;\r\n\t\tString customerId = order.get(\"customerId\").getAsString();\r\n\t\tString query = \"\";\r\n\t\tStatement stmt = null;\r\n\t\ttry {\r\n\t\t\tif (DBConnector.conn != null) {\r\n\t\t\t\tquery = \"SELECT * FROM home_heating_fuel_orders\" + \" WHERE customerID = '\" + customerId + \"';\";\r\n\t\t\t\tstmt = DBConnector.conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\torderID = Math.max(rs.getInt(\"orderID\"), orderID);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Conn is null\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn orderID + \"\";\r\n\t}",
"public int getId() {\n return orderID;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"public String getOrderId() {\n return orderId;\n }",
"@ApiModelProperty(example = \"123456\", value = \"Client order ID if supplied by client.\")\n public String getOrderId() {\n return orderId;\n }",
"public Long getOrderid() {\r\n return orderid;\r\n }",
"public Integer\t\tgetOrderID();",
"public String getOrderId() {\n\t\treturn orderId;\n\t}",
"public String getOrderID() {\n return this.orderID;\n }",
"public Integer getOrderId() {\n return orderId;\n }",
"public int getOrderID() \r\n\t{\r\n\t\treturn orderID;\r\n\t}",
"public void setOrderId(int value) {\n this.orderId = value;\n }",
"public String getOrderidentifier() {\n\t\treturn orderidentifier;\n\t}",
"public Builder setOrderId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n orderId_ = value;\n onChanged();\n return this;\n }",
"public void setOrderId(Integer orderId) {\n this.orderId = orderId;\n }",
"public int getOrderId() {\n return orderId;\n }",
"public com.google.protobuf.ByteString\n getOrderIdBytes() {\n Object ref = orderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n orderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"com.google.protobuf.ByteString\n getOrderIdBytes();",
"public Long getOrderId() {\n return orderId;\n }",
"public Long getOrderId() {\n return orderId;\n }",
"public String getOrdersId() {\n return ordersId;\n }",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"public void setOrderID(java.lang.String param){\n \n this.localOrderID=param;\n \n\n }",
"private int getOrderId() {\n int orderId;\n try {\n if (orderIdField.getText().isEmpty()) {\n orderId = -1;\n }\n else {\n orderId = Integer.parseInt(orderIdField.getText());\n }\n } catch (NumberFormatException exc) {\n orderId = -1;\n }\n return orderId;\n }",
"String getOrderStatusId();",
"public void writeOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n session.setAttribute(\"orderId\", \"\" + orderId);\n }",
"public com.google.protobuf.ByteString\n getOrderIdBytes() {\n Object ref = orderId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n orderId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setOrderid(Long orderid) {\r\n this.orderid = orderid;\r\n }",
"java.lang.String getTxId();",
"public int getOrderID() {\n return orderID;\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId;\n }",
"public Order(int _orderId){\n this.orderId = _orderId;\n }",
"public void readOrderId() {\n FacesContext fc = FacesContext.getCurrentInstance();\n HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);\n Object orderIdParam = session.getAttribute(\"orderId\");\n orderId = null;\n if(orderIdParam != null) {\n orderId = Integer.parseInt(orderIdParam.toString().trim());\n }\n }",
"public void setOrderid(String orderid) {\n this.orderid = orderid == null ? null : orderid.trim();\n }",
"public Integer getOrderItemId() {\n return orderItemId;\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"public void setOrderId(String orderId) {\n this.orderId = orderId == null ? null : orderId.trim();\n }",
"String getTransactionID();",
"public void setOrderId(String orderId) {\n\t\tthis.orderId = orderId;\n\t}",
"@JsonProperty(\"OrderId\")\n public String getOrderId() {\n return orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public String getOrderexcuteidentifier() {\n\t\treturn orderexcuteidentifier;\n\t}",
"public void setOrderID(String orderID) {\n\t\tORDER_ID = orderID;\n\t}",
"public int getXX_MaterialTransferOrder_ID() \r\n {\r\n return get_ValueAsInt(\"XX_MaterialTransferOrder_ID\");\r\n \r\n }",
"public String getOrderno() {\n return orderno;\n }",
"public String getOrderno() {\n return orderno;\n }",
"void paymentOrder(long orderId);",
"public Builder setOrderIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n orderId_ = value;\n onChanged();\n return this;\n }",
"public io.dstore.values.IntegerValue getOrderPersonId() {\n if (orderPersonIdBuilder_ == null) {\n return orderPersonId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : orderPersonId_;\n } else {\n return orderPersonIdBuilder_.getMessage();\n }\n }",
"public ThreeDSecureRequest addOrderId(String orderId) {\n this.orderId = orderId;\n return this;\n }",
"public String orderNumberById(String orderId) {\n return orderById(orderId, orderNumber);\n }",
"public String getOrderNo() {\n return orderNo;\n }",
"public Input getOrderID() throws RemoteException\n\t{\n\t\t if (orderID != null)\n\t\t \treturn orderID;\n\t\t orderID = new LabelInput(getTransfer().getOrderID());\n\t\t return orderID;\n\t}",
"String getTransactionId();",
"String getTransactionId();",
"public String getOrderNumber() {\n return orderNumber;\n }",
"public void setOrder_code_id(java.lang.Integer order_code_id) {\n this.order_code_id = order_code_id;\n }",
"public int getOrderID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORDERID$0, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getOrderID() {\r\n return emporderID;\r\n }",
"public int getOrder_code_id() {\n return order_code_id;\n }",
"@ApiModelProperty(required = true, value = \"internal domestic payment order identifier\")\n public String getId() {\n return id;\n }",
"@Column(name = \"order_id\", precision = 10)\n @GeneratedValue\n @Id\n public Integer getOrderId() {\n return orderId;\n }",
"public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }",
"public long getOrderNumber()\n {\n return _orderNumber;\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n }\n }",
"io.dstore.values.IntegerValueOrBuilder getOrderPersonIdOrBuilder();",
"public void setOrderNumber(int value) {\n this.orderNumber = value;\n }",
"public void setOrder_code_id(int order_code_id) {\n this.order_code_id = order_code_id;\n }",
"long getTxid();",
"private void recordOrderID(OrderID inOrderID)\n {\n String currentOrderIDList = getProperty(\"orderIDs\");\n currentOrderIDList += \",\" + inOrderID.getValue();\n setProperty(\"orderIDs\",\n currentOrderIDList);\n }",
"public void setTransactionid(long value) {\n this.transactionid = value;\n }",
"public String getOrderNum() {\n return orderNum;\n }",
"public void setOrderno(String orderno) {\n this.orderno = orderno;\n }",
"String getOrderTypeId();",
"public Long getOrderNo () {\r\n\t\treturn orderNo;\r\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The payment order id of the transfer transaction, customizable\")\n @JsonProperty(JSON_PROPERTY_PAYMENT_ORDER_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getPaymentOrderId() {\n return paymentOrderId;\n }",
"public String getOrdernum() {\n return ordernum;\n }",
"public static final String generateOrderId() {\n return generateOrderId(RANDOM.nextInt(1000));\n }",
"public String getSOrderID() {\n return sOrderID;\n }",
"public io.dstore.values.IntegerValueOrBuilder getOrderPersonIdOrBuilder() {\n if (orderPersonIdBuilder_ != null) {\n return orderPersonIdBuilder_.getMessageOrBuilder();\n } else {\n return orderPersonId_ == null ?\n io.dstore.values.IntegerValue.getDefaultInstance() : orderPersonId_;\n }\n }",
"public int getOrderNumber() {\n return orderNumber;\n }",
"String getAcctgTransEntrySeqId();",
"public String orderById(String orderId) {\n String path = mgmtOrdersPath + orderId;\n\n return sendRequest(getResponseType, systemUserAuthToken(), path, allResult, statusCode200);\n }",
"public Short getOrderNo() {\n return orderNo;\n }",
"public io.dstore.values.IntegerValue getOrderPersonId() {\n return orderPersonId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : orderPersonId_;\n }",
"public io.dstore.values.IntegerValueOrBuilder getOrderPersonIdOrBuilder() {\n return getOrderPersonId();\n }",
"public String getBusinessOrderId() {\n return businessOrderId;\n }",
"public void setTransactionId(int value) {\n this.transactionId = value;\n }"
] | [
"0.7442389",
"0.7175509",
"0.69351166",
"0.680224",
"0.6779799",
"0.6754502",
"0.6731429",
"0.6715503",
"0.66968006",
"0.6689778",
"0.6689778",
"0.6689778",
"0.6618885",
"0.6597474",
"0.65717137",
"0.65494645",
"0.65202224",
"0.65104014",
"0.64789337",
"0.64509946",
"0.64452595",
"0.6444742",
"0.6387329",
"0.633969",
"0.6337423",
"0.63112766",
"0.6309762",
"0.6309762",
"0.63094896",
"0.6309109",
"0.6309109",
"0.62918115",
"0.62918115",
"0.6287652",
"0.62824285",
"0.6266266",
"0.6254254",
"0.6251489",
"0.62467045",
"0.6242196",
"0.62361676",
"0.6209153",
"0.62083334",
"0.61753035",
"0.6164053",
"0.61508995",
"0.61508995",
"0.61427987",
"0.60850155",
"0.6084982",
"0.60792595",
"0.60792595",
"0.60769314",
"0.6049454",
"0.6048976",
"0.6040848",
"0.6040848",
"0.60277617",
"0.5989839",
"0.5962111",
"0.5950491",
"0.5933661",
"0.59229285",
"0.5915527",
"0.5915097",
"0.5915097",
"0.5914598",
"0.59085715",
"0.5880514",
"0.58801615",
"0.5874178",
"0.5867661",
"0.5862073",
"0.5858165",
"0.5852032",
"0.58413035",
"0.5836937",
"0.5827923",
"0.5809297",
"0.57982695",
"0.5788416",
"0.5778482",
"0.5768855",
"0.5753679",
"0.5727261",
"0.57252",
"0.57249266",
"0.57242376",
"0.57222646",
"0.57094353",
"0.56944734",
"0.5691275",
"0.568852",
"0.56669474",
"0.56592697",
"0.5657057",
"0.56548965",
"0.5653379",
"0.5647863",
"0.56411463"
] | 0.676572 | 5 |
Store attributes of the transaction. Accessible only to customers on the allowlist. .google.ads.googleads.v4.common.StoreAttribute store_attribute = 6; | boolean hasStoreAttribute(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute();",
"com.google.ads.googleads.v4.common.StoreAttributeOrBuilder getStoreAttributeOrBuilder();",
"public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}",
"public int storeAttribute(String key, String value);",
"protected void setStore(String store) {\n this.store = store;\n }",
"public boolean isStore() { return _store; }",
"protected String getStore() {\n return store;\n }",
"private void storeAttribute(final Attr attribute) {\n if (attribute.getNamespaceURI() != null\r\n && attribute.getNamespaceURI().equals(\r\n XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) {\r\n // Default namespace xmlns=\"uri goes here\"\r\n if (attribute.getNodeName().equals(XMLConstants.XMLNS_ATTRIBUTE)) {\r\n putInCache(DEFAULT_NS, attribute.getNodeValue());\r\n } else {\r\n // The defined prefixes are stored here\r\n putInCache(attribute.getLocalName(), attribute.getNodeValue());\r\n }\r\n }\r\n }",
"public String getTransactionAttribute() {\n\treturn this.transactionAttribute;\n }",
"public DtxStore getStore() {\n return dtxStore;\n }",
"public Long getStoreId() {\r\n return storeId;\r\n }",
"public ArrayList<Customer> inStore()\r\n\t{\r\n\t\treturn inStore;\r\n\t}",
"public Long getStoreId() {\n return storeId;\n }",
"protected SLEXMMAttribute(SLEXMMStorageMetaModel storage) {\n\t\tsuper(storage);\n\t}",
"public T getStore() {\r\n\t\treturn store;\r\n\t}",
"public int getStoreID() { return storeID; }",
"public Integer getStoreId() {\n return storeId;\n }",
"public Integer getStoreId() {\n return storeId;\n }",
"public Short getStoreCount() {\n return storeCount;\n }",
"public void setStoreCount(Short storeCount) {\n this.storeCount = storeCount;\n }",
"public void storeAttribute(final String attributeLocator, final String variableName);",
"public void setAutoStore(boolean autoStore) {\n this.autoStore = autoStore;\n }",
"public String saveStore() {\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\n\t\tMerchantStore store = null;\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tstore = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\t//validation\n/*\t\t\tif (StringUtils.isBlank(merchantProfile.getTemplateModule())) {\n\t\t\t\tsuper.setErrorMessage(\"errors.store.emptytemplate\");\n\t\t\t\treturn INPUT;\n\t\t\t} */\n\n\t\t\tif (store == null) {\n\t\t\t\tstore = new MerchantStore();\n\t\t\t\tstore.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\t\t\t}else {\n\t\t\t\tstore.setTemplateModule(merchantProfile.getTemplateModule());\n\t\t\t}\n\t\t\t\n\n\n\t\t\tjava.util.Date dt = new java.util.Date();\n\n\t\t\tStringBuffer languages = new StringBuffer();\n\t\t\tList langs = this.getSupportedLanguages();\n\t\t\tif (langs != null && langs.size() > 0) {\n\t\t\t\tint sz = 0;\n\t\t\t\tIterator i = langs.iterator();\n\n\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\tString lang = (String) i.next();\n\t\t\t\t\tlanguages.append(lang);\n\n\t\t\t\t\tif (sz < langs.size() - 1) {\n\t\t\t\t\t\tlanguages.append(\";\");\n\t\t\t\t\t}\n\t\t\t\t\tsz++;\n\n\t\t\t\t}\n\t\t\t\tstore.setSupportedlanguages(languages.toString());\n\t\t\t} else {\n\t\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(),\n\t\t\t\t\t\tLabelUtil.getInstance().getText(\n\t\t\t\t\t\t\t\t\"message.confirmation.languagerequired\"));\n\t\t\t\tstore.setSupportedlanguages(Constants.ENGLISH_CODE);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\tstore.setStorename(merchantProfile.getStorename());\n\t\t\tstore.setStoreemailaddress(merchantProfile.getStoreemailaddress());\n\t\t\tstore.setStoreaddress(merchantProfile.getStoreaddress());\n\t\t\tstore.setStorecity(merchantProfile.getStorecity());\n\t\t\tstore.setStorepostalcode(merchantProfile.getStorepostalcode());\n\t\t\tstore.setCountry(merchantProfile.getCountry());\n\t\t\tstore.setZone(merchantProfile.getZone());\n\t\t\tstore.setCurrency(merchantProfile.getCurrency());\n\t\t\t\n\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getWeightunitcode())) {\n\t\t\t\tstore.setWeightunitcode(merchantProfile.getWeightunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getSeizeunitcode())) {\n\t\t\t\tstore.setSeizeunitcode(merchantProfile.getSeizeunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tstore.setStorelogo(merchantProfile.getStorelogo());\n\t\t\tstore.setStorephone(merchantProfile.getStorephone());\n\t\t\tstore.setBgcolorcode(merchantProfile.getBgcolorcode());\n\t\t\tstore.setContinueshoppingurl(merchantProfile\n\t\t\t\t\t.getContinueshoppingurl());\n\t\t\tstore.setUseCache(merchantProfile.isUseCache());\n\t\t\tstore.setDomainName(merchantProfile.getDomainName());\n\n\t\t\tstore.setMerchantId(merchantid.intValue());\n\t\t\tstore.setLastModified(new java.util.Date(dt.getTime()));\n\n\t\t\tif (!StringUtils.isNumeric(merchantProfile.getZone())) {\n\t\t\t\tstore.setStorestateprovince(merchantProfile\n\t\t\t\t\t\t.getStorestateprovince());\n\t\t\t\tctx.setZoneid(0);\n\t\t\t} else {// get the value from zone\n\t\t\t\tctx.setZoneid(Integer.parseInt(merchantProfile.getZone()));\n\t\t\t\tMap zones = RefCache.getInstance().getAllZonesmap(\n\t\t\t\t\t\tLanguageUtil.getLanguageNumberCode(ctx.getLang()));\n\t\t\t\tZone z = (Zone) zones.get(Integer.parseInt(merchantProfile\n\t\t\t\t\t\t.getZone()));\n\t\t\t\tif (z != null) {\n\t\t\t\t\tstore.setStorestateprovince(z.getZoneName());// @todo,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// localization\n\t\t\t\t} else {\n\t\t\t\t\tstore.setStorestateprovince(\"N/A\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!StringUtils.isBlank(this.getInBusinessSince())) {\n\t\t\t\tDate businessDate = DateUtil.getDate(this.getInBusinessSince());\n\t\t\t\tstore.setInBusinessSince(businessDate);\n\t\t\t}\n\n\t\t\tsuper.prepareSelections(store.getCountry());\n\t\t\tmservice.saveOrUpdateMerchantStore(store);\n\n\t\t\tsuper.getContext().setExistingStore(true);\n\n\t\t\t// refresh context\n\n\t\t\tctx.setCountryid(merchantProfile.getCountry());\n\t\t\tctx.setSizeunit(merchantProfile.getSeizeunitcode());\n\t\t\tctx.setWeightunit(merchantProfile.getWeightunitcode());\n\t\t\tLanguageHelper.setLanguages(languages.toString(), ctx);\n\t\t\tctx.setCurrency(merchantProfile.getCurrency());\n\n\t\t\t// refresh the locale\n\t\t\tMap countries = RefCache.getAllcountriesmap(LanguageUtil\n\t\t\t\t\t.getLanguageNumberCode(ctx.getLang()));\n\t\t\tCountry c = (Country) countries.get(merchantProfile.getCountry());\n\t\t\tLocale locale = new Locale(\"en\", c.getCountryIsoCode2());\n\t\t\tActionContext.getContext().setLocale(locale);\n\t\t\tMap sessions = ActionContext.getContext().getSession();\n\t\t\tsessions.put(\"WW_TRANS_I18N_LOCALE\", locale);\n\n\n\t\t\tMessageUtil.addMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"message.confirmation.success\"));\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e);\n\t\t\tsuper.setTechnicalMessage();\n\t\t}\n\n\t\treturn SUCCESS;\n\n\t}",
"public void setTemplateStore(TemplateStore store) {\n \t\tfTemplateStore= store;\n \t}",
"public Customer persist() {\n\n TransactionWriteRequest writeRequest = new TransactionWriteRequest();\n writeRequest.addPut(customerEvent.getData());\n writeRequest.addPut(customerEvent);\n mapper.transactionWrite(writeRequest);\n\n return customerEvent.getData();\n }",
"public String getStoreNoList() {\n return storeNoList;\n }",
"public HashMap getClassWithAttr() {\n return storingClassWithAttr;\n }",
"protected AccountStore getAccountStore() {\n return accountStore;\n }",
"@Override\r\n\tpublic void persist(Seat seatHoldState, SeatState value) {\n\t\t\r\n\t}",
"public void setStoreId(Integer storeId) {\n this.storeId = storeId;\n }",
"public String getStore_location()\n {\n \treturn store_location;\n }",
"public final void mT__73() throws RecognitionException {\n try {\n int _type = T__73;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:141:7: ( 'store' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:141:9: 'store'\n {\n match(\"store\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void setStoreName(String storeName) {\r\n this.storeName = storeName;\r\n }",
"private Taxi storeTaxi(Taxi taxi){\n taxiRestService.createTaxi(taxi);\n return taxi;\n }",
"public void setStoreId(Long storeId) {\r\n this.storeId = storeId;\r\n }",
"void setActivityStore(ActivityStore activityStore) {\n this.activityStore = activityStore;\n }",
"private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }",
"public void setStoreName(String storeName) {\n this.storeName = storeName;\n }",
"public void setStoreNoList(String storeNoList) {\n this.storeNoList = storeNoList;\n }",
"public void setStoreId(Long storeId) {\n this.storeId = storeId;\n }",
"public void setAttribute(List<Attribute> attribute) {\n\t\tthis.attribute = attribute;\n\t}",
"protected abstract boolean keepEntities(boolean attribute);",
"public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }",
"public void setAttributes (List<GenericAttribute> attributes) {\n this.attributes = attributes;\n }",
"public String getStoreName() {\r\n return storeName;\r\n }",
"public String getStoreName() {\n return storeName;\n }",
"public alluxio.proto.journal.File.SetAttributeEntry getSetAttribute() {\n return setAttribute_;\n }",
"public alluxio.proto.journal.File.SetAttributeEntryOrBuilder getSetAttributeOrBuilder() {\n return setAttribute_;\n }",
"private void storeEventAttributes(EventGVO event, UIObject sender, String listenerType, String appId,\n String windowId, String eventSessionId) {\n String srcId = getComponentId(sender);\n String srcName = getComponentName(sender);\n Object srcValue = getComponentValue(sender, appId, windowId, srcId);\n String srcListener = listenerType;\n\n storeData(eventSessionId, event.getSourceId(), srcId);\n storeData(eventSessionId, event.getSourceName(), srcName);\n storeData(eventSessionId, event.getSourceValue(), srcValue);\n storeData(eventSessionId, event.getSourceListenerType(), srcListener);\n }",
"@Override\n\tpublic void saveCustomer(AMOUNT theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// save the customer ... \n\t\tcurrentSession.save(theCustomer);\n\t}",
"@JsonProperty(\"store_id\")\n public String getStoreId() {\n return storeId;\n }",
"public void setStore_price(java.lang.String store_price) {\n this.store_price = store_price;\n }",
"public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }",
"public void setTripleStoreAttrFinder(final TripleStoreAttributeFinderModule tripleStoreAttrFinder) {\r\n this.tripleStoreAttrFinder = tripleStoreAttrFinder;\r\n }",
"public void storeAttribute(final String elementLocator, final String attributeName, final String variableName);",
"AdditionalAttributes setAttribute(String name, Object value, boolean force);",
"public void setStoreName(String storeName) {\n\t\tthis.storeName = storeName;\n\t}",
"public static Store getStore(ServletConfig config, String storeAttribute) throws ServletException {\n\t\tif(config == null) {\n\t\t\tthrow new ServletException(\"ServletConfig parameter is null. This sometimes happens when the init() method of a servlet is overridden without calling its super implementation.\");\n\t\t}\n\t\treturn (Store) config.getServletContext().getAttribute(storeAttribute);\n\t}",
"public String getStoreName() {\n return (String) get(\"store_name\");\n }",
"public void setIsStoredInCache(boolean isStoredInCache) {\r\n if (isStoredInCache) {\r\n storeInCache();\r\n } else {\r\n storeInObject();\r\n }\r\n }",
"public String getStore_name()\n {\n \treturn store_name;\n }",
"public final Instruction store_op() throws RecognitionException {\r\n Instruction inst = null;\r\n\r\n\r\n Type t1 =null;\r\n\r\n Constant e1 =null;\r\n\r\n Type t2 =null;\r\n\r\n Constant e2 =null;\r\n\r\n int align60 =0;\r\n\r\n\r\n\r\n Constant dest = null;\r\n int opcode;\r\n boolean isVolatile = false;\r\n List<Type> types = new ArrayList<Type>();\r\n List<Constant> operands = new ArrayList<Constant>();\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:5: ( ( VOLATILE )? 'store' t1= first_class_type e1= expression ',' t2= pointer_type e2= expression ( ',' align )? )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:7: ( VOLATILE )? 'store' t1= first_class_type e1= expression ',' t2= pointer_type e2= expression ( ',' align )?\r\n {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:7: ( VOLATILE )?\r\n int alt51=2;\r\n int LA51_0 = input.LA(1);\r\n\r\n if ( (LA51_0==VOLATILE) ) {\r\n alt51=1;\r\n }\r\n switch (alt51) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:8: VOLATILE\r\n {\r\n match(input,VOLATILE,FOLLOW_VOLATILE_in_store_op2118); \r\n\r\n isVolatile=true;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n match(input,82,FOLLOW_82_in_store_op2124); \r\n\r\n opcode = InstType.storeInst;\r\n\r\n pushFollow(FOLLOW_first_class_type_in_store_op2139);\r\n t1=first_class_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_store_op2143);\r\n e1=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n types.add(t1); operands.add(e1);\r\n\r\n match(input,44,FOLLOW_44_in_store_op2146); \r\n\r\n pushFollow(FOLLOW_pointer_type_in_store_op2155);\r\n t2=pointer_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_store_op2159);\r\n e2=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n types.add(t2); operands.add(e2);\r\n\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:383:5: ( ',' align )?\r\n int alt52=2;\r\n int LA52_0 = input.LA(1);\r\n\r\n if ( (LA52_0==44) ) {\r\n alt52=1;\r\n }\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:383:6: ',' align\r\n {\r\n match(input,44,FOLLOW_44_in_store_op2168); \r\n\r\n pushFollow(FOLLOW_align_in_store_op2170);\r\n align60=align();\r\n\r\n state._fsp--;\r\n\r\n\r\n operands.add(valueFactory.createConstantValue(SimpleConstantValue.intConst, align60 + \"\"));\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n inst = instFactory.createLoadStoreInst(dest, opcode, operands, types, isVolatile);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return inst;\r\n }",
"public void handleStore()\r\n {\r\n //\r\n }",
"com.google.protobuf.ByteString getAttributeBytes();",
"public String getStoreName() {\r\n\t\treturn storeName;\r\n\t}",
"public void setAttributes(Attributes attributes) {\n this.attributes = attributes;\n }",
"@JsonProperty(\"store_id\")\n public void setStoreId(String storeId) {\n this.storeId = storeId;\n }",
"public alluxio.proto.journal.KeyValue.CreateStoreEntryOrBuilder getCreateStoreOrBuilder() {\n return createStore_;\n }",
"void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }",
"void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store.\")\n\n public String getStoreId() {\n return storeId;\n }",
"public interface Store {\n\n void put(String accountId, Account account);\n Account get(String accountId);\n void delete(String accountId);\n\n}",
"public void store(Block fb) throws Exception {\r\n\t\tsuper.store(fb);\r\n\t}",
"@Override\n\tpublic void saveAttribute(URI resource, String attrName, Object attrValue)\n\t\t\tthrows StorageSecuirtyException, ResourceAccessException {\n\t\t\n\t}",
"public void onStore(boolean b);",
"public String getStoreName() {\n\t\treturn storeName;\n\t}",
"@Override\n Store apply(@Required Store store);",
"public Map<String, Set<String>> getAttributes() {\n return attributes;\n }",
"public Store(String storeName, String streetAddress, String cityAddress, String stateAddress) {\n this.storeName = storeName;\n this.streetAddress = streetAddress;\n this.cityAddress = cityAddress;\n this.stateAddress = stateAddress;\n }",
"public void setStoredem(java.lang.Integer newStoredem)\n\t\tthrows java.rmi.RemoteException;",
"public boolean isAttributeWritesCached();",
"public boolean useStoreChains() {\n\t\treturn mUseStoreChains;\n\t}",
"public boolean isStoreIBEligibilityInd() {\n return storeIBEligibilityInd;\n }",
"public boolean hasStoreId() {\n return genClient.cacheHasKey(CacheKey.storeId);\n }",
"public TreeStore<SVGElementModel> getStore() {\n \t\treturn store;\n \t}",
"public void store() {\n session=(HttpSession)getPageContext().getSession();\n session.setAttribute(\"remoteUser\", getRemoteUser());\n session.setAttribute(\"authCode\", getAuthCode());\n }",
"public final synchronized void setDeleteOnStore() {\n\t\tif ( hasDeleteOnStore() == false)\n\t\t\tsetFlag(DeleteOnStore, true);\n\t}",
"public boolean save(Datastore store) {\n return save(store, false);\n }",
"private void store()\tthrows DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:store()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbStore(getModel());\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}",
"public String getAttributes() {\n return attributes;\n }",
"public String getAttributes() {\n return attributes;\n }",
"@Override\n\tprotected boolean setSaveAttributes() throws Exception {\n\t\treturn false;\n\t}",
"public void StoreData(DataStore ds)\n {\n ((DataStore2)ds).setPin();\n\tSystem.out.println(\"Account 2:The set PIN is \" + ((DataStore2)ds).getPin() );\n ((DataStore2)ds).setUid();\n\tSystem.out.println(\"Account 2:The set User ID is \" + ((DataStore2)ds).getUid() );\n ((DataStore2)ds).setBalance();\n\tSystem.out.println(\"Account 2:The Balance is \" + ((DataStore2)ds).getBalance() );\n }",
"boolean isInclusiveTaxCalculationInUse(String storeCode, Address address);",
"public java.lang.String getStore_price() {\n return store_price;\n }",
"public Double getTransaction() {\r\n return transaction;\r\n }",
"public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }",
"public interface Store {\n\n}",
"final DynamoDBAttributeType attributeType() {\n return this.attributeType;\n }",
"public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}"
] | [
"0.7147404",
"0.69697165",
"0.57886904",
"0.5549215",
"0.5543615",
"0.54561216",
"0.5362217",
"0.5342781",
"0.53228694",
"0.5298988",
"0.5245834",
"0.5228669",
"0.5217962",
"0.5188606",
"0.51692426",
"0.5145281",
"0.51359296",
"0.51359296",
"0.50922644",
"0.5065246",
"0.5033184",
"0.5022455",
"0.49603096",
"0.4948413",
"0.49212337",
"0.48662737",
"0.48230177",
"0.48065287",
"0.47942457",
"0.4793982",
"0.47769797",
"0.47647935",
"0.47553557",
"0.47529832",
"0.47512394",
"0.47473028",
"0.47410274",
"0.47169974",
"0.470957",
"0.4699893",
"0.46897152",
"0.46835116",
"0.46764326",
"0.4676217",
"0.46656272",
"0.4650773",
"0.4631529",
"0.46306494",
"0.46005276",
"0.45972133",
"0.45952022",
"0.45924047",
"0.45684072",
"0.45672822",
"0.45659837",
"0.4556156",
"0.45523632",
"0.4550226",
"0.45374823",
"0.45369992",
"0.45362836",
"0.4532454",
"0.45301506",
"0.45233622",
"0.4517455",
"0.4517116",
"0.45139566",
"0.45125383",
"0.4504705",
"0.4504705",
"0.4494562",
"0.44874644",
"0.44819352",
"0.44815713",
"0.44713205",
"0.44619206",
"0.44617903",
"0.44553584",
"0.44529173",
"0.4450796",
"0.44490153",
"0.44468236",
"0.4445507",
"0.44344288",
"0.44327077",
"0.4429315",
"0.44292662",
"0.44254348",
"0.44036448",
"0.4395494",
"0.4395494",
"0.4382698",
"0.43793127",
"0.43722373",
"0.43719578",
"0.43684426",
"0.43633398",
"0.43549395",
"0.43526128",
"0.43512025"
] | 0.6236814 | 2 |
Store attributes of the transaction. Accessible only to customers on the allowlist. .google.ads.googleads.v4.common.StoreAttribute store_attribute = 6; | com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.ads.googleads.v4.common.StoreAttributeOrBuilder getStoreAttributeOrBuilder();",
"boolean hasStoreAttribute();",
"public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}",
"public int storeAttribute(String key, String value);",
"protected void setStore(String store) {\n this.store = store;\n }",
"public boolean isStore() { return _store; }",
"protected String getStore() {\n return store;\n }",
"private void storeAttribute(final Attr attribute) {\n if (attribute.getNamespaceURI() != null\r\n && attribute.getNamespaceURI().equals(\r\n XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) {\r\n // Default namespace xmlns=\"uri goes here\"\r\n if (attribute.getNodeName().equals(XMLConstants.XMLNS_ATTRIBUTE)) {\r\n putInCache(DEFAULT_NS, attribute.getNodeValue());\r\n } else {\r\n // The defined prefixes are stored here\r\n putInCache(attribute.getLocalName(), attribute.getNodeValue());\r\n }\r\n }\r\n }",
"public String getTransactionAttribute() {\n\treturn this.transactionAttribute;\n }",
"public DtxStore getStore() {\n return dtxStore;\n }",
"public Long getStoreId() {\r\n return storeId;\r\n }",
"public ArrayList<Customer> inStore()\r\n\t{\r\n\t\treturn inStore;\r\n\t}",
"public Long getStoreId() {\n return storeId;\n }",
"protected SLEXMMAttribute(SLEXMMStorageMetaModel storage) {\n\t\tsuper(storage);\n\t}",
"public T getStore() {\r\n\t\treturn store;\r\n\t}",
"public int getStoreID() { return storeID; }",
"public Integer getStoreId() {\n return storeId;\n }",
"public Integer getStoreId() {\n return storeId;\n }",
"public Short getStoreCount() {\n return storeCount;\n }",
"public void setStoreCount(Short storeCount) {\n this.storeCount = storeCount;\n }",
"public void storeAttribute(final String attributeLocator, final String variableName);",
"public void setAutoStore(boolean autoStore) {\n this.autoStore = autoStore;\n }",
"public String saveStore() {\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\n\t\tMerchantStore store = null;\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tstore = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\t//validation\n/*\t\t\tif (StringUtils.isBlank(merchantProfile.getTemplateModule())) {\n\t\t\t\tsuper.setErrorMessage(\"errors.store.emptytemplate\");\n\t\t\t\treturn INPUT;\n\t\t\t} */\n\n\t\t\tif (store == null) {\n\t\t\t\tstore = new MerchantStore();\n\t\t\t\tstore.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\t\t\t}else {\n\t\t\t\tstore.setTemplateModule(merchantProfile.getTemplateModule());\n\t\t\t}\n\t\t\t\n\n\n\t\t\tjava.util.Date dt = new java.util.Date();\n\n\t\t\tStringBuffer languages = new StringBuffer();\n\t\t\tList langs = this.getSupportedLanguages();\n\t\t\tif (langs != null && langs.size() > 0) {\n\t\t\t\tint sz = 0;\n\t\t\t\tIterator i = langs.iterator();\n\n\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\tString lang = (String) i.next();\n\t\t\t\t\tlanguages.append(lang);\n\n\t\t\t\t\tif (sz < langs.size() - 1) {\n\t\t\t\t\t\tlanguages.append(\";\");\n\t\t\t\t\t}\n\t\t\t\t\tsz++;\n\n\t\t\t\t}\n\t\t\t\tstore.setSupportedlanguages(languages.toString());\n\t\t\t} else {\n\t\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(),\n\t\t\t\t\t\tLabelUtil.getInstance().getText(\n\t\t\t\t\t\t\t\t\"message.confirmation.languagerequired\"));\n\t\t\t\tstore.setSupportedlanguages(Constants.ENGLISH_CODE);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\tstore.setStorename(merchantProfile.getStorename());\n\t\t\tstore.setStoreemailaddress(merchantProfile.getStoreemailaddress());\n\t\t\tstore.setStoreaddress(merchantProfile.getStoreaddress());\n\t\t\tstore.setStorecity(merchantProfile.getStorecity());\n\t\t\tstore.setStorepostalcode(merchantProfile.getStorepostalcode());\n\t\t\tstore.setCountry(merchantProfile.getCountry());\n\t\t\tstore.setZone(merchantProfile.getZone());\n\t\t\tstore.setCurrency(merchantProfile.getCurrency());\n\t\t\t\n\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getWeightunitcode())) {\n\t\t\t\tstore.setWeightunitcode(merchantProfile.getWeightunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getSeizeunitcode())) {\n\t\t\t\tstore.setSeizeunitcode(merchantProfile.getSeizeunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tstore.setStorelogo(merchantProfile.getStorelogo());\n\t\t\tstore.setStorephone(merchantProfile.getStorephone());\n\t\t\tstore.setBgcolorcode(merchantProfile.getBgcolorcode());\n\t\t\tstore.setContinueshoppingurl(merchantProfile\n\t\t\t\t\t.getContinueshoppingurl());\n\t\t\tstore.setUseCache(merchantProfile.isUseCache());\n\t\t\tstore.setDomainName(merchantProfile.getDomainName());\n\n\t\t\tstore.setMerchantId(merchantid.intValue());\n\t\t\tstore.setLastModified(new java.util.Date(dt.getTime()));\n\n\t\t\tif (!StringUtils.isNumeric(merchantProfile.getZone())) {\n\t\t\t\tstore.setStorestateprovince(merchantProfile\n\t\t\t\t\t\t.getStorestateprovince());\n\t\t\t\tctx.setZoneid(0);\n\t\t\t} else {// get the value from zone\n\t\t\t\tctx.setZoneid(Integer.parseInt(merchantProfile.getZone()));\n\t\t\t\tMap zones = RefCache.getInstance().getAllZonesmap(\n\t\t\t\t\t\tLanguageUtil.getLanguageNumberCode(ctx.getLang()));\n\t\t\t\tZone z = (Zone) zones.get(Integer.parseInt(merchantProfile\n\t\t\t\t\t\t.getZone()));\n\t\t\t\tif (z != null) {\n\t\t\t\t\tstore.setStorestateprovince(z.getZoneName());// @todo,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// localization\n\t\t\t\t} else {\n\t\t\t\t\tstore.setStorestateprovince(\"N/A\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!StringUtils.isBlank(this.getInBusinessSince())) {\n\t\t\t\tDate businessDate = DateUtil.getDate(this.getInBusinessSince());\n\t\t\t\tstore.setInBusinessSince(businessDate);\n\t\t\t}\n\n\t\t\tsuper.prepareSelections(store.getCountry());\n\t\t\tmservice.saveOrUpdateMerchantStore(store);\n\n\t\t\tsuper.getContext().setExistingStore(true);\n\n\t\t\t// refresh context\n\n\t\t\tctx.setCountryid(merchantProfile.getCountry());\n\t\t\tctx.setSizeunit(merchantProfile.getSeizeunitcode());\n\t\t\tctx.setWeightunit(merchantProfile.getWeightunitcode());\n\t\t\tLanguageHelper.setLanguages(languages.toString(), ctx);\n\t\t\tctx.setCurrency(merchantProfile.getCurrency());\n\n\t\t\t// refresh the locale\n\t\t\tMap countries = RefCache.getAllcountriesmap(LanguageUtil\n\t\t\t\t\t.getLanguageNumberCode(ctx.getLang()));\n\t\t\tCountry c = (Country) countries.get(merchantProfile.getCountry());\n\t\t\tLocale locale = new Locale(\"en\", c.getCountryIsoCode2());\n\t\t\tActionContext.getContext().setLocale(locale);\n\t\t\tMap sessions = ActionContext.getContext().getSession();\n\t\t\tsessions.put(\"WW_TRANS_I18N_LOCALE\", locale);\n\n\n\t\t\tMessageUtil.addMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"message.confirmation.success\"));\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e);\n\t\t\tsuper.setTechnicalMessage();\n\t\t}\n\n\t\treturn SUCCESS;\n\n\t}",
"public void setTemplateStore(TemplateStore store) {\n \t\tfTemplateStore= store;\n \t}",
"public Customer persist() {\n\n TransactionWriteRequest writeRequest = new TransactionWriteRequest();\n writeRequest.addPut(customerEvent.getData());\n writeRequest.addPut(customerEvent);\n mapper.transactionWrite(writeRequest);\n\n return customerEvent.getData();\n }",
"public String getStoreNoList() {\n return storeNoList;\n }",
"public HashMap getClassWithAttr() {\n return storingClassWithAttr;\n }",
"protected AccountStore getAccountStore() {\n return accountStore;\n }",
"@Override\r\n\tpublic void persist(Seat seatHoldState, SeatState value) {\n\t\t\r\n\t}",
"public void setStoreId(Integer storeId) {\n this.storeId = storeId;\n }",
"public String getStore_location()\n {\n \treturn store_location;\n }",
"public final void mT__73() throws RecognitionException {\n try {\n int _type = T__73;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:141:7: ( 'store' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:141:9: 'store'\n {\n match(\"store\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void setStoreName(String storeName) {\r\n this.storeName = storeName;\r\n }",
"private Taxi storeTaxi(Taxi taxi){\n taxiRestService.createTaxi(taxi);\n return taxi;\n }",
"public void setStoreId(Long storeId) {\r\n this.storeId = storeId;\r\n }",
"void setActivityStore(ActivityStore activityStore) {\n this.activityStore = activityStore;\n }",
"private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }",
"public void setStoreName(String storeName) {\n this.storeName = storeName;\n }",
"public void setStoreNoList(String storeNoList) {\n this.storeNoList = storeNoList;\n }",
"public void setStoreId(Long storeId) {\n this.storeId = storeId;\n }",
"public void setAttribute(List<Attribute> attribute) {\n\t\tthis.attribute = attribute;\n\t}",
"protected abstract boolean keepEntities(boolean attribute);",
"public void setAttributes (List<GenericAttribute> attributes) {\n this.attributes = attributes;\n }",
"public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }",
"public String getStoreName() {\r\n return storeName;\r\n }",
"public String getStoreName() {\n return storeName;\n }",
"public alluxio.proto.journal.File.SetAttributeEntry getSetAttribute() {\n return setAttribute_;\n }",
"public alluxio.proto.journal.File.SetAttributeEntryOrBuilder getSetAttributeOrBuilder() {\n return setAttribute_;\n }",
"private void storeEventAttributes(EventGVO event, UIObject sender, String listenerType, String appId,\n String windowId, String eventSessionId) {\n String srcId = getComponentId(sender);\n String srcName = getComponentName(sender);\n Object srcValue = getComponentValue(sender, appId, windowId, srcId);\n String srcListener = listenerType;\n\n storeData(eventSessionId, event.getSourceId(), srcId);\n storeData(eventSessionId, event.getSourceName(), srcName);\n storeData(eventSessionId, event.getSourceValue(), srcValue);\n storeData(eventSessionId, event.getSourceListenerType(), srcListener);\n }",
"@Override\n\tpublic void saveCustomer(AMOUNT theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// save the customer ... \n\t\tcurrentSession.save(theCustomer);\n\t}",
"@JsonProperty(\"store_id\")\n public String getStoreId() {\n return storeId;\n }",
"public void setStore_price(java.lang.String store_price) {\n this.store_price = store_price;\n }",
"public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }",
"public void setTripleStoreAttrFinder(final TripleStoreAttributeFinderModule tripleStoreAttrFinder) {\r\n this.tripleStoreAttrFinder = tripleStoreAttrFinder;\r\n }",
"public void storeAttribute(final String elementLocator, final String attributeName, final String variableName);",
"AdditionalAttributes setAttribute(String name, Object value, boolean force);",
"public void setStoreName(String storeName) {\n\t\tthis.storeName = storeName;\n\t}",
"public static Store getStore(ServletConfig config, String storeAttribute) throws ServletException {\n\t\tif(config == null) {\n\t\t\tthrow new ServletException(\"ServletConfig parameter is null. This sometimes happens when the init() method of a servlet is overridden without calling its super implementation.\");\n\t\t}\n\t\treturn (Store) config.getServletContext().getAttribute(storeAttribute);\n\t}",
"public void setIsStoredInCache(boolean isStoredInCache) {\r\n if (isStoredInCache) {\r\n storeInCache();\r\n } else {\r\n storeInObject();\r\n }\r\n }",
"public String getStoreName() {\n return (String) get(\"store_name\");\n }",
"public String getStore_name()\n {\n \treturn store_name;\n }",
"public final Instruction store_op() throws RecognitionException {\r\n Instruction inst = null;\r\n\r\n\r\n Type t1 =null;\r\n\r\n Constant e1 =null;\r\n\r\n Type t2 =null;\r\n\r\n Constant e2 =null;\r\n\r\n int align60 =0;\r\n\r\n\r\n\r\n Constant dest = null;\r\n int opcode;\r\n boolean isVolatile = false;\r\n List<Type> types = new ArrayList<Type>();\r\n List<Constant> operands = new ArrayList<Constant>();\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:5: ( ( VOLATILE )? 'store' t1= first_class_type e1= expression ',' t2= pointer_type e2= expression ( ',' align )? )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:7: ( VOLATILE )? 'store' t1= first_class_type e1= expression ',' t2= pointer_type e2= expression ( ',' align )?\r\n {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:7: ( VOLATILE )?\r\n int alt51=2;\r\n int LA51_0 = input.LA(1);\r\n\r\n if ( (LA51_0==VOLATILE) ) {\r\n alt51=1;\r\n }\r\n switch (alt51) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:8: VOLATILE\r\n {\r\n match(input,VOLATILE,FOLLOW_VOLATILE_in_store_op2118); \r\n\r\n isVolatile=true;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n match(input,82,FOLLOW_82_in_store_op2124); \r\n\r\n opcode = InstType.storeInst;\r\n\r\n pushFollow(FOLLOW_first_class_type_in_store_op2139);\r\n t1=first_class_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_store_op2143);\r\n e1=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n types.add(t1); operands.add(e1);\r\n\r\n match(input,44,FOLLOW_44_in_store_op2146); \r\n\r\n pushFollow(FOLLOW_pointer_type_in_store_op2155);\r\n t2=pointer_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_store_op2159);\r\n e2=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n types.add(t2); operands.add(e2);\r\n\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:383:5: ( ',' align )?\r\n int alt52=2;\r\n int LA52_0 = input.LA(1);\r\n\r\n if ( (LA52_0==44) ) {\r\n alt52=1;\r\n }\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:383:6: ',' align\r\n {\r\n match(input,44,FOLLOW_44_in_store_op2168); \r\n\r\n pushFollow(FOLLOW_align_in_store_op2170);\r\n align60=align();\r\n\r\n state._fsp--;\r\n\r\n\r\n operands.add(valueFactory.createConstantValue(SimpleConstantValue.intConst, align60 + \"\"));\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n inst = instFactory.createLoadStoreInst(dest, opcode, operands, types, isVolatile);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return inst;\r\n }",
"public void handleStore()\r\n {\r\n //\r\n }",
"com.google.protobuf.ByteString getAttributeBytes();",
"public void setAttributes(Attributes attributes) {\n this.attributes = attributes;\n }",
"public String getStoreName() {\r\n\t\treturn storeName;\r\n\t}",
"@JsonProperty(\"store_id\")\n public void setStoreId(String storeId) {\n this.storeId = storeId;\n }",
"public alluxio.proto.journal.KeyValue.CreateStoreEntryOrBuilder getCreateStoreOrBuilder() {\n return createStore_;\n }",
"void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }",
"void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store.\")\n\n public String getStoreId() {\n return storeId;\n }",
"public interface Store {\n\n void put(String accountId, Account account);\n Account get(String accountId);\n void delete(String accountId);\n\n}",
"@Override\n\tpublic void saveAttribute(URI resource, String attrName, Object attrValue)\n\t\t\tthrows StorageSecuirtyException, ResourceAccessException {\n\t\t\n\t}",
"public void store(Block fb) throws Exception {\r\n\t\tsuper.store(fb);\r\n\t}",
"public void onStore(boolean b);",
"@Override\n Store apply(@Required Store store);",
"public String getStoreName() {\n\t\treturn storeName;\n\t}",
"public Map<String, Set<String>> getAttributes() {\n return attributes;\n }",
"public Store(String storeName, String streetAddress, String cityAddress, String stateAddress) {\n this.storeName = storeName;\n this.streetAddress = streetAddress;\n this.cityAddress = cityAddress;\n this.stateAddress = stateAddress;\n }",
"public boolean isAttributeWritesCached();",
"public void setStoredem(java.lang.Integer newStoredem)\n\t\tthrows java.rmi.RemoteException;",
"public boolean useStoreChains() {\n\t\treturn mUseStoreChains;\n\t}",
"public boolean isStoreIBEligibilityInd() {\n return storeIBEligibilityInd;\n }",
"public boolean hasStoreId() {\n return genClient.cacheHasKey(CacheKey.storeId);\n }",
"public TreeStore<SVGElementModel> getStore() {\n \t\treturn store;\n \t}",
"public void store() {\n session=(HttpSession)getPageContext().getSession();\n session.setAttribute(\"remoteUser\", getRemoteUser());\n session.setAttribute(\"authCode\", getAuthCode());\n }",
"public final synchronized void setDeleteOnStore() {\n\t\tif ( hasDeleteOnStore() == false)\n\t\t\tsetFlag(DeleteOnStore, true);\n\t}",
"public boolean save(Datastore store) {\n return save(store, false);\n }",
"private void store()\tthrows DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:store()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbStore(getModel());\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}",
"public String getAttributes() {\n return attributes;\n }",
"public String getAttributes() {\n return attributes;\n }",
"@Override\n\tprotected boolean setSaveAttributes() throws Exception {\n\t\treturn false;\n\t}",
"public void StoreData(DataStore ds)\n {\n ((DataStore2)ds).setPin();\n\tSystem.out.println(\"Account 2:The set PIN is \" + ((DataStore2)ds).getPin() );\n ((DataStore2)ds).setUid();\n\tSystem.out.println(\"Account 2:The set User ID is \" + ((DataStore2)ds).getUid() );\n ((DataStore2)ds).setBalance();\n\tSystem.out.println(\"Account 2:The Balance is \" + ((DataStore2)ds).getBalance() );\n }",
"boolean isInclusiveTaxCalculationInUse(String storeCode, Address address);",
"public java.lang.String getStore_price() {\n return store_price;\n }",
"public Double getTransaction() {\r\n return transaction;\r\n }",
"public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }",
"public interface Store {\n\n}",
"public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}",
"final DynamoDBAttributeType attributeType() {\n return this.attributeType;\n }"
] | [
"0.696926",
"0.6236757",
"0.5789828",
"0.5550558",
"0.5543073",
"0.54545665",
"0.5360283",
"0.53442603",
"0.5322519",
"0.52962303",
"0.52434146",
"0.5226398",
"0.52155256",
"0.5188875",
"0.51671237",
"0.514236",
"0.5133449",
"0.5133449",
"0.50894296",
"0.5062795",
"0.50354683",
"0.5021922",
"0.4958078",
"0.4947705",
"0.49199986",
"0.4862771",
"0.48249313",
"0.4805518",
"0.47937784",
"0.47930035",
"0.47745425",
"0.47638434",
"0.4754018",
"0.4752136",
"0.4750092",
"0.47480077",
"0.47397524",
"0.471563",
"0.4706491",
"0.46987966",
"0.46931252",
"0.4684298",
"0.46788874",
"0.46769238",
"0.4663248",
"0.46483904",
"0.46336126",
"0.46332794",
"0.46019432",
"0.4595451",
"0.45938906",
"0.4590672",
"0.4569902",
"0.4569697",
"0.45682907",
"0.45597395",
"0.45511496",
"0.45489484",
"0.45383242",
"0.45351288",
"0.45335844",
"0.45307237",
"0.45287943",
"0.45235577",
"0.45205143",
"0.4515128",
"0.45140767",
"0.45114166",
"0.45050773",
"0.45050773",
"0.44926798",
"0.4486868",
"0.4482228",
"0.44807613",
"0.4470669",
"0.44608724",
"0.44596347",
"0.44578764",
"0.4451252",
"0.44511008",
"0.44493765",
"0.44456786",
"0.4444366",
"0.44334212",
"0.44319457",
"0.4430317",
"0.44282",
"0.442598",
"0.44037652",
"0.4397668",
"0.4397668",
"0.4384579",
"0.43786025",
"0.43696994",
"0.43690297",
"0.43652964",
"0.4361021",
"0.43539894",
"0.4353524",
"0.43532905"
] | 0.7146523 | 0 |
Store attributes of the transaction. Accessible only to customers on the allowlist. .google.ads.googleads.v4.common.StoreAttribute store_attribute = 6; | com.google.ads.googleads.v4.common.StoreAttributeOrBuilder getStoreAttributeOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute();",
"boolean hasStoreAttribute();",
"public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}",
"public int storeAttribute(String key, String value);",
"protected void setStore(String store) {\n this.store = store;\n }",
"public boolean isStore() { return _store; }",
"protected String getStore() {\n return store;\n }",
"private void storeAttribute(final Attr attribute) {\n if (attribute.getNamespaceURI() != null\r\n && attribute.getNamespaceURI().equals(\r\n XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) {\r\n // Default namespace xmlns=\"uri goes here\"\r\n if (attribute.getNodeName().equals(XMLConstants.XMLNS_ATTRIBUTE)) {\r\n putInCache(DEFAULT_NS, attribute.getNodeValue());\r\n } else {\r\n // The defined prefixes are stored here\r\n putInCache(attribute.getLocalName(), attribute.getNodeValue());\r\n }\r\n }\r\n }",
"public String getTransactionAttribute() {\n\treturn this.transactionAttribute;\n }",
"public DtxStore getStore() {\n return dtxStore;\n }",
"public Long getStoreId() {\r\n return storeId;\r\n }",
"public ArrayList<Customer> inStore()\r\n\t{\r\n\t\treturn inStore;\r\n\t}",
"public Long getStoreId() {\n return storeId;\n }",
"protected SLEXMMAttribute(SLEXMMStorageMetaModel storage) {\n\t\tsuper(storage);\n\t}",
"public T getStore() {\r\n\t\treturn store;\r\n\t}",
"public int getStoreID() { return storeID; }",
"public Integer getStoreId() {\n return storeId;\n }",
"public Integer getStoreId() {\n return storeId;\n }",
"public Short getStoreCount() {\n return storeCount;\n }",
"public void setStoreCount(Short storeCount) {\n this.storeCount = storeCount;\n }",
"public void storeAttribute(final String attributeLocator, final String variableName);",
"public void setAutoStore(boolean autoStore) {\n this.autoStore = autoStore;\n }",
"public String saveStore() {\n\t\tsuper.setPageTitle(\"label.menu.group.store\");\n\n\t\tMerchantStore store = null;\n\t\ttry {\n\n\t\t\tContext ctx = (Context) super.getServletRequest().getSession()\n\t\t\t\t\t.getAttribute(ProfileConstants.context);\n\t\t\tInteger merchantid = ctx.getMerchantid();\n\n\t\t\tMerchantService mservice = (MerchantService) ServiceFactory\n\t\t\t\t\t.getService(ServiceFactory.MerchantService);\n\t\t\tstore = mservice.getMerchantStore(merchantid.intValue());\n\t\t\t\n\t\t\t//validation\n/*\t\t\tif (StringUtils.isBlank(merchantProfile.getTemplateModule())) {\n\t\t\t\tsuper.setErrorMessage(\"errors.store.emptytemplate\");\n\t\t\t\treturn INPUT;\n\t\t\t} */\n\n\t\t\tif (store == null) {\n\t\t\t\tstore = new MerchantStore();\n\t\t\t\tstore.setTemplateModule(CatalogConstants.DEFAULT_TEMPLATE);\n\t\t\t}else {\n\t\t\t\tstore.setTemplateModule(merchantProfile.getTemplateModule());\n\t\t\t}\n\t\t\t\n\n\n\t\t\tjava.util.Date dt = new java.util.Date();\n\n\t\t\tStringBuffer languages = new StringBuffer();\n\t\t\tList langs = this.getSupportedLanguages();\n\t\t\tif (langs != null && langs.size() > 0) {\n\t\t\t\tint sz = 0;\n\t\t\t\tIterator i = langs.iterator();\n\n\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\tString lang = (String) i.next();\n\t\t\t\t\tlanguages.append(lang);\n\n\t\t\t\t\tif (sz < langs.size() - 1) {\n\t\t\t\t\t\tlanguages.append(\";\");\n\t\t\t\t\t}\n\t\t\t\t\tsz++;\n\n\t\t\t\t}\n\t\t\t\tstore.setSupportedlanguages(languages.toString());\n\t\t\t} else {\n\t\t\t\tMessageUtil.addErrorMessage(super.getServletRequest(),\n\t\t\t\t\t\tLabelUtil.getInstance().getText(\n\t\t\t\t\t\t\t\t\"message.confirmation.languagerequired\"));\n\t\t\t\tstore.setSupportedlanguages(Constants.ENGLISH_CODE);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\tstore.setStorename(merchantProfile.getStorename());\n\t\t\tstore.setStoreemailaddress(merchantProfile.getStoreemailaddress());\n\t\t\tstore.setStoreaddress(merchantProfile.getStoreaddress());\n\t\t\tstore.setStorecity(merchantProfile.getStorecity());\n\t\t\tstore.setStorepostalcode(merchantProfile.getStorepostalcode());\n\t\t\tstore.setCountry(merchantProfile.getCountry());\n\t\t\tstore.setZone(merchantProfile.getZone());\n\t\t\tstore.setCurrency(merchantProfile.getCurrency());\n\t\t\t\n\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getWeightunitcode())) {\n\t\t\t\tstore.setWeightunitcode(merchantProfile.getWeightunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tif (!StringUtils.isBlank(merchantProfile.getSeizeunitcode())) {\n\t\t\t\tstore.setSeizeunitcode(merchantProfile.getSeizeunitcode()\n\t\t\t\t\t\t.trim());\n\t\t\t}\n\t\t\tstore.setStorelogo(merchantProfile.getStorelogo());\n\t\t\tstore.setStorephone(merchantProfile.getStorephone());\n\t\t\tstore.setBgcolorcode(merchantProfile.getBgcolorcode());\n\t\t\tstore.setContinueshoppingurl(merchantProfile\n\t\t\t\t\t.getContinueshoppingurl());\n\t\t\tstore.setUseCache(merchantProfile.isUseCache());\n\t\t\tstore.setDomainName(merchantProfile.getDomainName());\n\n\t\t\tstore.setMerchantId(merchantid.intValue());\n\t\t\tstore.setLastModified(new java.util.Date(dt.getTime()));\n\n\t\t\tif (!StringUtils.isNumeric(merchantProfile.getZone())) {\n\t\t\t\tstore.setStorestateprovince(merchantProfile\n\t\t\t\t\t\t.getStorestateprovince());\n\t\t\t\tctx.setZoneid(0);\n\t\t\t} else {// get the value from zone\n\t\t\t\tctx.setZoneid(Integer.parseInt(merchantProfile.getZone()));\n\t\t\t\tMap zones = RefCache.getInstance().getAllZonesmap(\n\t\t\t\t\t\tLanguageUtil.getLanguageNumberCode(ctx.getLang()));\n\t\t\t\tZone z = (Zone) zones.get(Integer.parseInt(merchantProfile\n\t\t\t\t\t\t.getZone()));\n\t\t\t\tif (z != null) {\n\t\t\t\t\tstore.setStorestateprovince(z.getZoneName());// @todo,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// localization\n\t\t\t\t} else {\n\t\t\t\t\tstore.setStorestateprovince(\"N/A\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!StringUtils.isBlank(this.getInBusinessSince())) {\n\t\t\t\tDate businessDate = DateUtil.getDate(this.getInBusinessSince());\n\t\t\t\tstore.setInBusinessSince(businessDate);\n\t\t\t}\n\n\t\t\tsuper.prepareSelections(store.getCountry());\n\t\t\tmservice.saveOrUpdateMerchantStore(store);\n\n\t\t\tsuper.getContext().setExistingStore(true);\n\n\t\t\t// refresh context\n\n\t\t\tctx.setCountryid(merchantProfile.getCountry());\n\t\t\tctx.setSizeunit(merchantProfile.getSeizeunitcode());\n\t\t\tctx.setWeightunit(merchantProfile.getWeightunitcode());\n\t\t\tLanguageHelper.setLanguages(languages.toString(), ctx);\n\t\t\tctx.setCurrency(merchantProfile.getCurrency());\n\n\t\t\t// refresh the locale\n\t\t\tMap countries = RefCache.getAllcountriesmap(LanguageUtil\n\t\t\t\t\t.getLanguageNumberCode(ctx.getLang()));\n\t\t\tCountry c = (Country) countries.get(merchantProfile.getCountry());\n\t\t\tLocale locale = new Locale(\"en\", c.getCountryIsoCode2());\n\t\t\tActionContext.getContext().setLocale(locale);\n\t\t\tMap sessions = ActionContext.getContext().getSession();\n\t\t\tsessions.put(\"WW_TRANS_I18N_LOCALE\", locale);\n\n\n\t\t\tMessageUtil.addMessage(super.getServletRequest(), LabelUtil\n\t\t\t\t\t.getInstance().getText(\"message.confirmation.success\"));\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e);\n\t\t\tsuper.setTechnicalMessage();\n\t\t}\n\n\t\treturn SUCCESS;\n\n\t}",
"public void setTemplateStore(TemplateStore store) {\n \t\tfTemplateStore= store;\n \t}",
"public Customer persist() {\n\n TransactionWriteRequest writeRequest = new TransactionWriteRequest();\n writeRequest.addPut(customerEvent.getData());\n writeRequest.addPut(customerEvent);\n mapper.transactionWrite(writeRequest);\n\n return customerEvent.getData();\n }",
"public String getStoreNoList() {\n return storeNoList;\n }",
"public HashMap getClassWithAttr() {\n return storingClassWithAttr;\n }",
"protected AccountStore getAccountStore() {\n return accountStore;\n }",
"@Override\r\n\tpublic void persist(Seat seatHoldState, SeatState value) {\n\t\t\r\n\t}",
"public void setStoreId(Integer storeId) {\n this.storeId = storeId;\n }",
"public String getStore_location()\n {\n \treturn store_location;\n }",
"public final void mT__73() throws RecognitionException {\n try {\n int _type = T__73;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:141:7: ( 'store' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:141:9: 'store'\n {\n match(\"store\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"private Taxi storeTaxi(Taxi taxi){\n taxiRestService.createTaxi(taxi);\n return taxi;\n }",
"public void setStoreName(String storeName) {\r\n this.storeName = storeName;\r\n }",
"public void setStoreId(Long storeId) {\r\n this.storeId = storeId;\r\n }",
"void setActivityStore(ActivityStore activityStore) {\n this.activityStore = activityStore;\n }",
"private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }",
"public void setStoreName(String storeName) {\n this.storeName = storeName;\n }",
"public void setStoreNoList(String storeNoList) {\n this.storeNoList = storeNoList;\n }",
"public void setStoreId(Long storeId) {\n this.storeId = storeId;\n }",
"public void setAttribute(List<Attribute> attribute) {\n\t\tthis.attribute = attribute;\n\t}",
"protected abstract boolean keepEntities(boolean attribute);",
"public void setAttributes (List<GenericAttribute> attributes) {\n this.attributes = attributes;\n }",
"public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }",
"public String getStoreName() {\r\n return storeName;\r\n }",
"public String getStoreName() {\n return storeName;\n }",
"public alluxio.proto.journal.File.SetAttributeEntry getSetAttribute() {\n return setAttribute_;\n }",
"public alluxio.proto.journal.File.SetAttributeEntryOrBuilder getSetAttributeOrBuilder() {\n return setAttribute_;\n }",
"private void storeEventAttributes(EventGVO event, UIObject sender, String listenerType, String appId,\n String windowId, String eventSessionId) {\n String srcId = getComponentId(sender);\n String srcName = getComponentName(sender);\n Object srcValue = getComponentValue(sender, appId, windowId, srcId);\n String srcListener = listenerType;\n\n storeData(eventSessionId, event.getSourceId(), srcId);\n storeData(eventSessionId, event.getSourceName(), srcName);\n storeData(eventSessionId, event.getSourceValue(), srcValue);\n storeData(eventSessionId, event.getSourceListenerType(), srcListener);\n }",
"@Override\n\tpublic void saveCustomer(AMOUNT theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// save the customer ... \n\t\tcurrentSession.save(theCustomer);\n\t}",
"@JsonProperty(\"store_id\")\n public String getStoreId() {\n return storeId;\n }",
"public void setStore_price(java.lang.String store_price) {\n this.store_price = store_price;\n }",
"public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }",
"public void setTripleStoreAttrFinder(final TripleStoreAttributeFinderModule tripleStoreAttrFinder) {\r\n this.tripleStoreAttrFinder = tripleStoreAttrFinder;\r\n }",
"public void storeAttribute(final String elementLocator, final String attributeName, final String variableName);",
"AdditionalAttributes setAttribute(String name, Object value, boolean force);",
"public void setStoreName(String storeName) {\n\t\tthis.storeName = storeName;\n\t}",
"public static Store getStore(ServletConfig config, String storeAttribute) throws ServletException {\n\t\tif(config == null) {\n\t\t\tthrow new ServletException(\"ServletConfig parameter is null. This sometimes happens when the init() method of a servlet is overridden without calling its super implementation.\");\n\t\t}\n\t\treturn (Store) config.getServletContext().getAttribute(storeAttribute);\n\t}",
"public void setIsStoredInCache(boolean isStoredInCache) {\r\n if (isStoredInCache) {\r\n storeInCache();\r\n } else {\r\n storeInObject();\r\n }\r\n }",
"public String getStoreName() {\n return (String) get(\"store_name\");\n }",
"public String getStore_name()\n {\n \treturn store_name;\n }",
"public final Instruction store_op() throws RecognitionException {\r\n Instruction inst = null;\r\n\r\n\r\n Type t1 =null;\r\n\r\n Constant e1 =null;\r\n\r\n Type t2 =null;\r\n\r\n Constant e2 =null;\r\n\r\n int align60 =0;\r\n\r\n\r\n\r\n Constant dest = null;\r\n int opcode;\r\n boolean isVolatile = false;\r\n List<Type> types = new ArrayList<Type>();\r\n List<Constant> operands = new ArrayList<Constant>();\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:5: ( ( VOLATILE )? 'store' t1= first_class_type e1= expression ',' t2= pointer_type e2= expression ( ',' align )? )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:7: ( VOLATILE )? 'store' t1= first_class_type e1= expression ',' t2= pointer_type e2= expression ( ',' align )?\r\n {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:7: ( VOLATILE )?\r\n int alt51=2;\r\n int LA51_0 = input.LA(1);\r\n\r\n if ( (LA51_0==VOLATILE) ) {\r\n alt51=1;\r\n }\r\n switch (alt51) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:379:8: VOLATILE\r\n {\r\n match(input,VOLATILE,FOLLOW_VOLATILE_in_store_op2118); \r\n\r\n isVolatile=true;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n match(input,82,FOLLOW_82_in_store_op2124); \r\n\r\n opcode = InstType.storeInst;\r\n\r\n pushFollow(FOLLOW_first_class_type_in_store_op2139);\r\n t1=first_class_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_store_op2143);\r\n e1=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n types.add(t1); operands.add(e1);\r\n\r\n match(input,44,FOLLOW_44_in_store_op2146); \r\n\r\n pushFollow(FOLLOW_pointer_type_in_store_op2155);\r\n t2=pointer_type();\r\n\r\n state._fsp--;\r\n\r\n\r\n pushFollow(FOLLOW_expression_in_store_op2159);\r\n e2=expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n types.add(t2); operands.add(e2);\r\n\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:383:5: ( ',' align )?\r\n int alt52=2;\r\n int LA52_0 = input.LA(1);\r\n\r\n if ( (LA52_0==44) ) {\r\n alt52=1;\r\n }\r\n switch (alt52) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:383:6: ',' align\r\n {\r\n match(input,44,FOLLOW_44_in_store_op2168); \r\n\r\n pushFollow(FOLLOW_align_in_store_op2170);\r\n align60=align();\r\n\r\n state._fsp--;\r\n\r\n\r\n operands.add(valueFactory.createConstantValue(SimpleConstantValue.intConst, align60 + \"\"));\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n inst = instFactory.createLoadStoreInst(dest, opcode, operands, types, isVolatile);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return inst;\r\n }",
"public void handleStore()\r\n {\r\n //\r\n }",
"com.google.protobuf.ByteString getAttributeBytes();",
"public void setAttributes(Attributes attributes) {\n this.attributes = attributes;\n }",
"public String getStoreName() {\r\n\t\treturn storeName;\r\n\t}",
"@JsonProperty(\"store_id\")\n public void setStoreId(String storeId) {\n this.storeId = storeId;\n }",
"public alluxio.proto.journal.KeyValue.CreateStoreEntryOrBuilder getCreateStoreOrBuilder() {\n return createStore_;\n }",
"void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }",
"void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store.\")\n\n public String getStoreId() {\n return storeId;\n }",
"public interface Store {\n\n void put(String accountId, Account account);\n Account get(String accountId);\n void delete(String accountId);\n\n}",
"@Override\n\tpublic void saveAttribute(URI resource, String attrName, Object attrValue)\n\t\t\tthrows StorageSecuirtyException, ResourceAccessException {\n\t\t\n\t}",
"public void store(Block fb) throws Exception {\r\n\t\tsuper.store(fb);\r\n\t}",
"public void onStore(boolean b);",
"@Override\n Store apply(@Required Store store);",
"public String getStoreName() {\n\t\treturn storeName;\n\t}",
"public Map<String, Set<String>> getAttributes() {\n return attributes;\n }",
"public boolean isAttributeWritesCached();",
"public Store(String storeName, String streetAddress, String cityAddress, String stateAddress) {\n this.storeName = storeName;\n this.streetAddress = streetAddress;\n this.cityAddress = cityAddress;\n this.stateAddress = stateAddress;\n }",
"public void setStoredem(java.lang.Integer newStoredem)\n\t\tthrows java.rmi.RemoteException;",
"public boolean useStoreChains() {\n\t\treturn mUseStoreChains;\n\t}",
"public boolean isStoreIBEligibilityInd() {\n return storeIBEligibilityInd;\n }",
"public boolean hasStoreId() {\n return genClient.cacheHasKey(CacheKey.storeId);\n }",
"public TreeStore<SVGElementModel> getStore() {\n \t\treturn store;\n \t}",
"public void store() {\n session=(HttpSession)getPageContext().getSession();\n session.setAttribute(\"remoteUser\", getRemoteUser());\n session.setAttribute(\"authCode\", getAuthCode());\n }",
"public final synchronized void setDeleteOnStore() {\n\t\tif ( hasDeleteOnStore() == false)\n\t\t\tsetFlag(DeleteOnStore, true);\n\t}",
"public boolean save(Datastore store) {\n return save(store, false);\n }",
"private void store()\tthrows DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:store()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbStore(getModel());\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}",
"public String getAttributes() {\n return attributes;\n }",
"public String getAttributes() {\n return attributes;\n }",
"@Override\n\tprotected boolean setSaveAttributes() throws Exception {\n\t\treturn false;\n\t}",
"public void StoreData(DataStore ds)\n {\n ((DataStore2)ds).setPin();\n\tSystem.out.println(\"Account 2:The set PIN is \" + ((DataStore2)ds).getPin() );\n ((DataStore2)ds).setUid();\n\tSystem.out.println(\"Account 2:The set User ID is \" + ((DataStore2)ds).getUid() );\n ((DataStore2)ds).setBalance();\n\tSystem.out.println(\"Account 2:The Balance is \" + ((DataStore2)ds).getBalance() );\n }",
"boolean isInclusiveTaxCalculationInUse(String storeCode, Address address);",
"public java.lang.String getStore_price() {\n return store_price;\n }",
"public Double getTransaction() {\r\n return transaction;\r\n }",
"public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }",
"public interface Store {\n\n}",
"final DynamoDBAttributeType attributeType() {\n return this.attributeType;\n }",
"public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}"
] | [
"0.71456164",
"0.62361044",
"0.5789067",
"0.5549117",
"0.55423963",
"0.5454528",
"0.53603125",
"0.53434116",
"0.53228647",
"0.52969426",
"0.5243081",
"0.5227904",
"0.52152026",
"0.5187791",
"0.516717",
"0.5142713",
"0.5133103",
"0.5133103",
"0.5089063",
"0.50624454",
"0.50337076",
"0.50223225",
"0.49584034",
"0.49483037",
"0.49208388",
"0.48639777",
"0.4823422",
"0.48061898",
"0.47936147",
"0.4791877",
"0.4774589",
"0.4763289",
"0.475269",
"0.4752663",
"0.4749146",
"0.47466058",
"0.47414052",
"0.47142547",
"0.4707794",
"0.46978006",
"0.46921286",
"0.46853778",
"0.46788526",
"0.4677213",
"0.4662623",
"0.46477705",
"0.46319154",
"0.46314913",
"0.46011224",
"0.45965892",
"0.459293",
"0.45911562",
"0.4570281",
"0.45690337",
"0.4566417",
"0.45587638",
"0.45496798",
"0.45468846",
"0.45375335",
"0.4534262",
"0.45335746",
"0.45303437",
"0.45290762",
"0.45228612",
"0.45192677",
"0.45143458",
"0.45123747",
"0.45113885",
"0.45037103",
"0.45037103",
"0.44921255",
"0.44867212",
"0.44815376",
"0.44810632",
"0.44709226",
"0.4460801",
"0.44588646",
"0.44564933",
"0.44507334",
"0.4450592",
"0.44492614",
"0.44466168",
"0.44442198",
"0.44328895",
"0.44314152",
"0.44301417",
"0.44293138",
"0.44248447",
"0.44037157",
"0.43969387",
"0.43969387",
"0.43844655",
"0.4378485",
"0.4370923",
"0.4369645",
"0.43668684",
"0.43629944",
"0.43533912",
"0.43531123",
"0.4352442"
] | 0.6968078 | 1 |
Value of the custom variable for each transaction. Accessible only to customers on the allowlist. .google.protobuf.StringValue custom_value = 7; | boolean hasCustomValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getCustomValue();",
"com.google.protobuf.StringValueOrBuilder getCustomValueOrBuilder();",
"DeclaredCustomsValueAmountType getDeclaredCustomsValueAmount();",
"public java.lang.String getCustom() {\r\n return custom;\r\n }",
"public String getProposedTransactionValue() {\n return proposedTransactionValue;\n }",
"public void setCustom(java.lang.String custom) {\r\n this.custom = custom;\r\n }",
"private void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"public int getAmount()\n {\n return this.transactionValue;\n }",
"@Transient\n @JsonIgnore\n public String getValueWithVariableValues() {\n return insertVariableValues(value);\n }",
"@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}",
"public static void setCustomTransactionParameter(String key, String value) {\n if (active) {\n TransactionAccess.setTransactionParameter(key, value);\n }\n }",
"public String getValue() { return value; }",
"public void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"Money getItemValue();",
"public String getJP_BankAccount_Value();",
"public String getValue () { return value; }",
"@Override\n\tpublic String getValue() {\n\t\treturn value;\n\t}",
"public MessageRequestOfUserModelNuLtuh91 getValue() {\n return localValue;\n }",
"private TypeDictionaryDicoActionQualificatifActivite(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"private RefinementPhases(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"@Override\n public String getValue() {\n return value;\n }",
"public String getCustomData() {\r\n\t\treturn customData;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn value;\r\n\t}",
"@Override\r\n\tpublic Serializable getValue() {\n\t\treturn this.code;\r\n}",
"@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"public void setValue3(String value3) { this.value3 = value3; }",
"@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public void setJP_BankAccount_Value (String JP_BankAccount_Value);",
"String getValue()\n {\n return value.toString();\n }",
"Integer getBusinessValue();",
"@Override\r\n public int getSpecialValue() {\n int num = this.getCombatLevel();\r\n num += this.levelChangeAgainstCultistPlayer;\r\n \r\n return num;\r\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public int getValue() {\n\t\treturn 3;\n\t}",
"public String getValue(){\n\t\treturn _value;\n\t}",
"public String getValue() {\n return value;\n }",
"@Override\n public String getValue() {\n return this.value.toString();\n }",
"public String getValue3() { return this.value3; }",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"public int getValue() \n {\n return value;\n }",
"public String getValue()\n {\n return value;\n }",
"public int getValue(){\n return value;\n }",
"public String getValue(){\n return this.value;\n }",
"private void addTransactions(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureTransactionsIsMutable();\n transactions_.add(value);\n }",
"@Override\n public int getSpecialValue() {\n return maxBonus;\n }",
"com.google.protobuf.ByteString\n getValueBytes();",
"com.google.protobuf.ByteString\n getValueBytes();",
"com.google.protobuf.ByteString\n getValueBytes();",
"public int getValue() {\n return value_;\n }",
"public WriteMessage(int accountNum, int value)\n {\n this.accountNum = accountNum;\n this.value = value;\n }",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"public String getValue() {\r\n return value;\r\n }",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"public void addValue() {\n addValue(1);\n }",
"com.google.protobuf.ByteString\n getVarValueBytes();",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"AdditionalValuesType getAdditionalValues();",
"@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}",
"public int getValue(){\n\t\treturn value;\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"com.google.protobuf.ByteString\n getValueBytes();",
"com.google.protobuf.ByteString\n getValueBytes();",
"int getMoneyValue();",
"int getMoneyValue();",
"String getValueAsString();",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public void setCardValue(String value) {\n this.Cvalue = value;\n }",
"public void setVar198(java.lang.CharSequence value) {\n this.var198 = value;\n }",
"public String getValue()\n {\n return value;\n }"
] | [
"0.6815295",
"0.6452737",
"0.597579",
"0.5646798",
"0.5607313",
"0.5540768",
"0.5427384",
"0.53031474",
"0.53031474",
"0.52469945",
"0.52416503",
"0.5236815",
"0.5227037",
"0.5173926",
"0.51112574",
"0.51044947",
"0.51044947",
"0.51044947",
"0.51044947",
"0.51044947",
"0.51044947",
"0.5102784",
"0.5088462",
"0.5080776",
"0.5070981",
"0.5069573",
"0.50693053",
"0.5061145",
"0.5046495",
"0.5046191",
"0.5037745",
"0.5037457",
"0.50313944",
"0.5026955",
"0.50054413",
"0.49843553",
"0.49843553",
"0.4970165",
"0.4957561",
"0.49484873",
"0.49456072",
"0.49434927",
"0.49434927",
"0.4929581",
"0.4929581",
"0.4929581",
"0.49119276",
"0.49111947",
"0.4900705",
"0.49000868",
"0.489351",
"0.4890198",
"0.4890198",
"0.4890198",
"0.4890198",
"0.4890198",
"0.4890198",
"0.4890198",
"0.4890198",
"0.4890198",
"0.4890198",
"0.48894653",
"0.48856592",
"0.48836544",
"0.48825034",
"0.48824072",
"0.48822752",
"0.4876579",
"0.4876579",
"0.4876579",
"0.487162",
"0.4868762",
"0.48676452",
"0.4865251",
"0.48601988",
"0.48601988",
"0.48601988",
"0.48527157",
"0.48494044",
"0.48429862",
"0.48429862",
"0.48429862",
"0.48429862",
"0.48429862",
"0.48415273",
"0.48402694",
"0.48369783",
"0.48347366",
"0.48347366",
"0.48347366",
"0.48339295",
"0.48339295",
"0.48326227",
"0.48326227",
"0.48321468",
"0.4814311",
"0.4814311",
"0.4813853",
"0.4809823",
"0.47997496"
] | 0.50294787 | 33 |
Value of the custom variable for each transaction. Accessible only to customers on the allowlist. .google.protobuf.StringValue custom_value = 7; | com.google.protobuf.StringValue getCustomValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValueOrBuilder getCustomValueOrBuilder();",
"DeclaredCustomsValueAmountType getDeclaredCustomsValueAmount();",
"public java.lang.String getCustom() {\r\n return custom;\r\n }",
"public String getProposedTransactionValue() {\n return proposedTransactionValue;\n }",
"public void setCustom(java.lang.String custom) {\r\n this.custom = custom;\r\n }",
"private void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"public int getAmount()\n {\n return this.transactionValue;\n }",
"@Transient\n @JsonIgnore\n public String getValueWithVariableValues() {\n return insertVariableValues(value);\n }",
"@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}",
"public static void setCustomTransactionParameter(String key, String value) {\n if (active) {\n TransactionAccess.setTransactionParameter(key, value);\n }\n }",
"public String getValue() { return value; }",
"public void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"Money getItemValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public String getJP_BankAccount_Value();",
"public String getValue () { return value; }",
"public MessageRequestOfUserModelNuLtuh91 getValue() {\n return localValue;\n }",
"@Override\n\tpublic String getValue() {\n\t\treturn value;\n\t}",
"private TypeDictionaryDicoActionQualificatifActivite(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"private RefinementPhases(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"public String getCustomData() {\r\n\t\treturn customData;\r\n\t}",
"@Override\n public String getValue() {\n return value;\n }",
"@Override\r\n\tpublic Serializable getValue() {\n\t\treturn this.code;\r\n}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn value;\r\n\t}",
"boolean hasCustomValue();",
"@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"public void setValue3(String value3) { this.value3 = value3; }",
"@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public void setJP_BankAccount_Value (String JP_BankAccount_Value);",
"String getValue()\n {\n return value.toString();\n }",
"Integer getBusinessValue();",
"@Override\r\n public int getSpecialValue() {\n int num = this.getCombatLevel();\r\n num += this.levelChangeAgainstCultistPlayer;\r\n \r\n return num;\r\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public int getValue() {\n\t\treturn 3;\n\t}",
"public String getValue(){\n\t\treturn _value;\n\t}",
"public String getValue() {\n return value;\n }",
"@Override\n public String getValue() {\n return this.value.toString();\n }",
"public String getValue3() { return this.value3; }",
"public int getValue() \n {\n return value;\n }",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"public int getValue(){\n return value;\n }",
"public String getValue()\n {\n return value;\n }",
"@Override\n public int getSpecialValue() {\n return maxBonus;\n }",
"public String getValue(){\n return this.value;\n }",
"private void addTransactions(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureTransactionsIsMutable();\n transactions_.add(value);\n }",
"com.google.protobuf.ByteString\n getValueBytes();",
"com.google.protobuf.ByteString\n getValueBytes();",
"com.google.protobuf.ByteString\n getValueBytes();",
"public int getValue() {\n return value_;\n }",
"public WriteMessage(int accountNum, int value)\n {\n this.accountNum = accountNum;\n this.value = value;\n }",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"public String getValue() {\r\n return value;\r\n }",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"public void addValue() {\n addValue(1);\n }",
"com.google.protobuf.ByteString\n getVarValueBytes();",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"AdditionalValuesType getAdditionalValues();",
"@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}",
"public int getValue(){\n\t\treturn value;\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"int getMoneyValue();",
"int getMoneyValue();",
"com.google.protobuf.ByteString\n getValueBytes();",
"com.google.protobuf.ByteString\n getValueBytes();",
"String getValueAsString();",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public void setCardValue(String value) {\n this.Cvalue = value;\n }",
"public void setVar198(java.lang.CharSequence value) {\n this.var198 = value;\n }",
"@Override\n public int getAmount() {\n return 1;\n }"
] | [
"0.6450714",
"0.59769666",
"0.56488705",
"0.5606821",
"0.5543664",
"0.54273754",
"0.53021914",
"0.53021914",
"0.52480966",
"0.5240197",
"0.5235418",
"0.522792",
"0.5172181",
"0.5111663",
"0.51037174",
"0.51028335",
"0.51028335",
"0.51028335",
"0.51028335",
"0.51028335",
"0.51028335",
"0.50879717",
"0.50790113",
"0.5069661",
"0.5069552",
"0.50688386",
"0.5059988",
"0.50479037",
"0.5044999",
"0.50375897",
"0.5036383",
"0.5030939",
"0.50292313",
"0.5026609",
"0.5003265",
"0.49858153",
"0.49858153",
"0.49688733",
"0.49558875",
"0.49492174",
"0.49467468",
"0.49442095",
"0.49442095",
"0.49298918",
"0.49298918",
"0.49298918",
"0.49141696",
"0.4909986",
"0.48992646",
"0.4898987",
"0.48936206",
"0.4889916",
"0.48889908",
"0.48889908",
"0.48889908",
"0.48889908",
"0.48889908",
"0.48889908",
"0.48889908",
"0.48889908",
"0.48889908",
"0.48889908",
"0.48841617",
"0.48841408",
"0.48838618",
"0.48811543",
"0.48803678",
"0.48743165",
"0.48743165",
"0.48743165",
"0.48719776",
"0.48681477",
"0.48665348",
"0.48637167",
"0.48577052",
"0.48577052",
"0.48577052",
"0.48521733",
"0.48477587",
"0.4841393",
"0.4841393",
"0.4841393",
"0.4841393",
"0.4841393",
"0.48411334",
"0.48409557",
"0.48377326",
"0.48337674",
"0.48337674",
"0.48337674",
"0.48337102",
"0.48337102",
"0.48318133",
"0.48318133",
"0.4829733",
"0.48150393",
"0.48150393",
"0.48116082",
"0.48089612",
"0.48007062"
] | 0.6813348 | 0 |
Value of the custom variable for each transaction. Accessible only to customers on the allowlist. .google.protobuf.StringValue custom_value = 7; | com.google.protobuf.StringValueOrBuilder getCustomValueOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getCustomValue();",
"DeclaredCustomsValueAmountType getDeclaredCustomsValueAmount();",
"public java.lang.String getCustom() {\r\n return custom;\r\n }",
"public String getProposedTransactionValue() {\n return proposedTransactionValue;\n }",
"public void setCustom(java.lang.String custom) {\r\n this.custom = custom;\r\n }",
"private void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"public int getAmount()\n {\n return this.transactionValue;\n }",
"@Transient\n @JsonIgnore\n public String getValueWithVariableValues() {\n return insertVariableValues(value);\n }",
"@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}",
"public static void setCustomTransactionParameter(String key, String value) {\n if (active) {\n TransactionAccess.setTransactionParameter(key, value);\n }\n }",
"public String getValue() { return value; }",
"public void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"Money getItemValue();",
"public String getJP_BankAccount_Value();",
"public String getValue () { return value; }",
"@Override\n\tpublic String getValue() {\n\t\treturn value;\n\t}",
"public MessageRequestOfUserModelNuLtuh91 getValue() {\n return localValue;\n }",
"private TypeDictionaryDicoActionQualificatifActivite(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"private RefinementPhases(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"public String getCustomData() {\r\n\t\treturn customData;\r\n\t}",
"@Override\n public String getValue() {\n return value;\n }",
"@Override\r\n\tpublic Serializable getValue() {\n\t\treturn this.code;\r\n}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn value;\r\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"boolean hasCustomValue();",
"public void setValue3(String value3) { this.value3 = value3; }",
"@java.lang.Override\n public com.google.protobuf.ByteString getValue() {\n return value_;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public void setJP_BankAccount_Value (String JP_BankAccount_Value);",
"String getValue()\n {\n return value.toString();\n }",
"Integer getBusinessValue();",
"@Override\r\n public int getSpecialValue() {\n int num = this.getCombatLevel();\r\n num += this.levelChangeAgainstCultistPlayer;\r\n \r\n return num;\r\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public int getValue() {\n\t\treturn 3;\n\t}",
"public String getValue(){\n\t\treturn _value;\n\t}",
"public String getValue() {\n return value;\n }",
"@Override\n public String getValue() {\n return this.value.toString();\n }",
"public String getValue3() { return this.value3; }",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"public int getValue() \n {\n return value;\n }",
"public String getValue()\n {\n return value;\n }",
"private void addTransactions(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureTransactionsIsMutable();\n transactions_.add(value);\n }",
"public int getValue(){\n return value;\n }",
"@Override\n public int getSpecialValue() {\n return maxBonus;\n }",
"public String getValue(){\n return this.value;\n }",
"com.google.protobuf.ByteString\n getValueBytes();",
"com.google.protobuf.ByteString\n getValueBytes();",
"com.google.protobuf.ByteString\n getValueBytes();",
"public int getValue() {\n return value_;\n }",
"public WriteMessage(int accountNum, int value)\n {\n this.accountNum = accountNum;\n this.value = value;\n }",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"public String getValue() {\r\n return value;\r\n }",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"com.google.protobuf.ByteString getValue();",
"public void addValue() {\n addValue(1);\n }",
"com.google.protobuf.ByteString\n getVarValueBytes();",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }",
"@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}",
"AdditionalValuesType getAdditionalValues();",
"public int getValue(){\n\t\treturn value;\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"int getMoneyValue();",
"int getMoneyValue();",
"com.google.protobuf.ByteString\n getValueBytes();",
"com.google.protobuf.ByteString\n getValueBytes();",
"String getValueAsString();",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public void setCardValue(String value) {\n this.Cvalue = value;\n }",
"public void setVar198(java.lang.CharSequence value) {\n this.var198 = value;\n }",
"@Override\n public int getAmount() {\n return 1;\n }"
] | [
"0.6816216",
"0.59761626",
"0.5649891",
"0.56075644",
"0.5543993",
"0.54287714",
"0.53036183",
"0.53036183",
"0.5247746",
"0.5241396",
"0.5236526",
"0.52272975",
"0.5173392",
"0.51129967",
"0.5104577",
"0.5104577",
"0.5104577",
"0.5104577",
"0.5104577",
"0.5104577",
"0.5103631",
"0.50890857",
"0.5080308",
"0.50706005",
"0.50694954",
"0.50676775",
"0.5060559",
"0.50487745",
"0.5046335",
"0.503869",
"0.50375277",
"0.50305897",
"0.5028667",
"0.5026163",
"0.5004692",
"0.4987247",
"0.4987247",
"0.49695098",
"0.4957061",
"0.49475458",
"0.4946539",
"0.49436513",
"0.49436513",
"0.49293667",
"0.49293667",
"0.49293667",
"0.49116543",
"0.49105015",
"0.4900036",
"0.4899994",
"0.48935637",
"0.48902935",
"0.48902935",
"0.48902935",
"0.48902935",
"0.48902935",
"0.48902935",
"0.48902935",
"0.48902935",
"0.48902935",
"0.48902935",
"0.48882714",
"0.4884946",
"0.4882526",
"0.4882418",
"0.48823136",
"0.48818097",
"0.48759454",
"0.48759454",
"0.48759454",
"0.48701322",
"0.48690176",
"0.48678383",
"0.48644704",
"0.48599115",
"0.48599115",
"0.48599115",
"0.48511285",
"0.48483267",
"0.48421794",
"0.48421794",
"0.48421794",
"0.48421794",
"0.48421794",
"0.48417094",
"0.48407212",
"0.48356774",
"0.48355508",
"0.48355508",
"0.48355508",
"0.48331916",
"0.48331916",
"0.48331907",
"0.48331907",
"0.4832391",
"0.4814435",
"0.4814435",
"0.48130035",
"0.4809614",
"0.48011208"
] | 0.6452826 | 1 |
FIXME think of better way to handle parameters, currently serviceparameters is already taken by service objects Holds the raw map of parameters from suite and test input Adds or updates the raw map | void add( Map< String, Object > paramMap ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map getParameters();",
"Map<String, String> getParameters();",
"Map<String, Object> getParameters();",
"Map<String, Object> getParameters();",
"public interface ParameterService\r\n{\r\n\r\n\t/**\r\n\t * Get a parameter by parameter name, including parameter values.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameterName\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic ParameterModel getParameter(String serviceProviderCode, String parameterName, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all parameters of an agency.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getParametersBySPC(String serviceProviderCode, String callerID) throws AAException,\r\n\t\t\tRemoteException;\r\n\r\n\t/**\r\n\t * Get all parameters of an agency, returned one page by one page.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param queryFormat\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic AADataPage getParametersBySPC(String serviceProviderCode, QueryFormat queryFormat, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get reference parameters by agency, paramName,tableName and fieldName.\r\n\t * \r\n\t * @param model\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getRefParameters(ParameterModel model) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all available reference parameters of the theme name.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param themeName\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getAvailableRefParameters(String serviceProviderCode, String themeName, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all available reference parameters of the theme name, by\r\n\t * paramName,tableName and fieldName.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param themeName\r\n\t * @param model\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getAvailableRefParameters(String serviceProviderCode, String themeName, ParameterModel model,\r\n\t\t\tString callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Create a parameter.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameter\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic ParameterModel createParameter(String serviceProviderCode, ParameterModel parameter, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Update a parameter with underlying parameter value list.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameter\r\n\t * @param callerID\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic void updateParameter(String serviceProviderCode, ParameterModel parameter, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Create a parameter value.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameterName\r\n\t * @param parameterValue\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic ParameterValueModel createParameterValue(String serviceProviderCode, String parameterName,\r\n\t\t\tString parameterValue, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Remove a parameter value by PK.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameterName\r\n\t * @param parameterValue\r\n\t * @param callerID\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic void removeParameterValue(String serviceProviderCode, String parameterName, String parameterValue,\r\n\t\t\tString callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all tables in the database schema, listed alphabetically.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param callerID\r\n\t * @return Collection of String (table name)\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getTables(String serviceProviderCode, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all tables in the database schema, listed alphabetically, returned\r\n\t * one page by one page.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param queryFormat\r\n\t * @param callerID\r\n\t * @return Collection of String (table name)\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic AADataPage getTables(String serviceProviderCode, QueryFormat queryFormat, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all fields associated to the table, listed alphabetically.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param tableName\r\n\t * @param callerID\r\n\t * @return Collection of String (field name)\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getFieldsByTable(String serviceProviderCode, String tableName, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n}",
"private void SetParameters(XmlTest test){\r\n\t\t for (Map.Entry<String,String> entry : TestsParamList.get(test.getName()).entrySet()){\r\n\t\t\t test.addParameter(entry.getKey(), entry.getValue());\r\n\t\t }\r\n\t}",
"public static void setupServicesAndParameters(){\n\t\t//replace services in use, e.g.:\n\t\t/*\n\t\tMap<String, ArrayList<String>> systemInterviewServicesMap = new HashMap<>();\n\t\t\n\t\t//CONTROL DEVICES\n\t\tArrayList<String> controlDevice = new ArrayList<String>();\n\t\t\tcontrolDevice.add(MyDeviceControlService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.CONTROL, controlDevice);\n\t\t\n\t\t//BANKING\n\t\tArrayList<String> banking = new ArrayList<String>();\n\t\t\tbanking.add(MyBankingService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.BANKING, banking);\n\t\t\t\n\t\tInterviewServicesMap.loadCustom(systemInterviewServicesMap);\n\t\t*/\n\t\t\n\t\t//defaults\n\t\tStart.setupServicesAndParameters();\n\t\t\n\t\t//add\n\t\t//e.g.: ParameterConfig.setHandler(PARAMETERS.ALARM_NAME, Config.parentPackage + \".parameters.AlarmName\");\n\t}",
"ParamMap createParamMap();",
"Map<String, String[]> getParameterMap();",
"public Hashtable<ID, StructuredDocument<?>> getServiceParams() {\n Hashtable<ID, StructuredDocument<?>> copy = new Hashtable<ID, StructuredDocument<?>>();\n\n for (Map.Entry<ID, StructuredDocument<?>> anEntry : serviceParams.entrySet()) {\n Element<?> e = anEntry.getValue();\n StructuredDocument<?> newDoc = StructuredDocumentUtils.copyAsDocument(e);\n\n copy.put(anEntry.getKey(), newDoc);\n }\n\n return copy;\n }",
"protected void setupParameters() {\n \n \n\n }",
"public interface IParameters {\n\n /**\n * 设置请求参数\n * @param params\n */\n void params(Map<String, String> params);\n\n /**\n *设置请求参数\n * @param key\n * @param val\n */\n void addParams(String key, String val);\n}",
"void updateParamMap (List<BindParameter> bindParams);",
"public abstract Map<String,List<Parameter>> getWorkflowParameters();",
"public interface AlgorithmParamService\n{\n ReturnData addParam(AlgorithmParam param);\n void deleteAllParam(Integer nodeId);\n ReturnData deleteParam(Integer paramId);\n ReturnData updateParam(AlgorithmParam param);\n Boolean judgeName(List<AlgorithmParam> addParams,List<AlgorithmParam> updateParams);\n List<AlgorithmParam> findNodeParam(Integer nodeId);\n Boolean judgeAddName(AlgorithmParam param);\n Boolean judgeUpdateName(AlgorithmParam param);\n}",
"public void putInMap(Map<String, Object> paramMap) {\n\t\tparamMap.put(\"wms_cre_credit_service_type_id\", this.wms_cre_credit_service_type_id);\n\t\tparamMap.put(\"wms_cre_credit_head_id\", this.wms_cre_credit_head_id);\n\t\tparamMap.put(\"pre_wms_cre_credit_head_id\", this.pre_wms_cre_credit_head_id);\n\t\tparamMap.put(\"old_wms_cre_credit_head_id\", this.old_wms_cre_credit_head_id);\n\t\tparamMap.put(\"wms_cre_credit_notary_warn_id\", this.wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"pre_wms_cre_credit_notary_warn_id\", this.pre_wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"old_wms_cre_credit_notary_warn_id\", this.old_wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"bill_code\", this.bill_code);\n\t\tparamMap.put(\"operating_time\", this.operating_time);\n\t\tparamMap.put(\"operating_time_str\", this.operating_time_str);\n\t\tparamMap.put(\"the_number\", this.the_number);\n\t\tparamMap.put(\"create_user_id\", this.create_user_id);\n\t\tparamMap.put(\"create_user_name\", this.create_user_name);\n\t\tparamMap.put(\"create_timestamp\", this.create_timestamp);\n\t\tparamMap.put(\"create_timestamp_str\", this.create_timestamp_str);\n\t\tparamMap.put(\"last_update_user_id\", this.last_update_user_id);\n\t\tparamMap.put(\"last_update_timestamp\", this.last_update_timestamp);\n\t\tparamMap.put(\"last_update_timestamp_str\", this.last_update_timestamp_str);\n\t\tparamMap.put(\"enable_flag\", this.enable_flag);\n\t\tparamMap.put(\"isExcludePKFlag\", this.isExcludePKFlag);\n\t}",
"public void setServiceParams(Hashtable<ID, ? extends Element<?>> params) {\n serviceParams.clear();\n\n if (params == null) {\n return;\n }\n\n for (Map.Entry<ID, ? extends Element<?>> anEntry : params.entrySet()) {\n Element<?> e = anEntry.getValue();\n StructuredDocument<?> newDoc = StructuredDocumentUtils.copyAsDocument(e);\n\n serviceParams.put(anEntry.getKey(), newDoc);\n }\n\n incModCount();\n }",
"public interface ServiceInput {\n // base interface for all inputs\n // Generally the attributes that go in this base are RequestContext that has context information like user details, authorizations, calling application details etc).\n // This information is generally setup by the filters that intercept the request and set on ThreadLocal. The REST entry points\n // can grab them using util methods to pass on to create the input\n //\n\n // At this point I am having this class as a marker interface to communicate the idea. If we proceed in this direction, we could create a base class that has such\n // attributes.\n}",
"private Map<String, Object> buildResourcesParameters() {\n Map<String, Object> parameters = new HashMap<String, Object>();\n \n parameters.put(\"portalSiteSelectedNodes\", getSelectedResources(StagingService.SITES_PORTAL_PATH));\n parameters.put(\"groupSiteSelectedNodes\", getSelectedResources(StagingService.SITES_GROUP_PATH));\n parameters.put(\"userSiteSelectedNodes\", getSelectedResources(StagingService.SITES_USER_PATH));\n parameters.put(\"siteContentSelectedNodes\", getSelectedResources(StagingService.CONTENT_SITES_PATH));\n parameters.put(\"applicationCLVTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_CLV_PATH));\n parameters.put(\"applicationSearchTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_SEARCH_PATH));\n parameters.put(\"documentTypeTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_DOCUMENT_TYPE_PATH));\n parameters.put(\"metadataTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_METADATA_PATH));\n parameters.put(\"taxonomySelectedNodes\", getSelectedResources(StagingService.ECM_TAXONOMY_PATH));\n parameters.put(\"querySelectedNodes\", getSelectedResources(StagingService.ECM_QUERY_PATH));\n parameters.put(\"driveSelectedNodes\", getSelectedResources(StagingService.ECM_DRIVE_PATH));\n parameters.put(\"scriptSelectedNodes\", getSelectedResources(StagingService.ECM_SCRIPT_PATH));\n parameters.put(\"actionNodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_ACTION_PATH));\n parameters.put(\"nodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_NODETYPE_PATH));\n parameters.put(\"registrySelectedNodes\", getSelectedResources(StagingService.REGISTRY_PATH));\n parameters.put(\"viewTemplateSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_TEMPLATES_PATH));\n parameters.put(\"viewConfigurationSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_CONFIGURATION_PATH));\n parameters.put(\"userSelectedNodes\", getSelectedResources(StagingService.USERS_PATH));\n parameters.put(\"groupSelectedNodes\", getSelectedResources(StagingService.GROUPS_PATH));\n parameters.put(\"roleSelectedNodes\", getSelectedResources(StagingService.ROLE_PATH));\n \n parameters.put(\"selectedResources\", selectedResources);\n parameters.put(\"selectedOptions\", selectedOptions);\n \n return parameters;\n }",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"private void getConfigParameters(String[] parameters, Map<String, String> params,\n String testName) {\n for (int i = 0; i < parameters.length; i++) {\n params.put(parameters[i], null);\n }\n Log.v(TAG, \"[\" + testName + \"] \" + \"params.size() = \" + params.size());\n File f = new File(CONFIG_FILE);\n assertTrue(testName + \" test file not exists: \" + CONFIG_FILE, f.exists());\n // test suite\n XmlParser parser = new XmlParser(CONFIG_FILE);\n Node testSuiteNode = parser.getRootNode();\n String testSuiteName = parser.getAttrValue(testSuiteNode, \"name\");\n Log.v(TAG, \"[\" + testName + \"] \" + \"testSuiteName = \" + testSuiteName);\n // test case\n Node testCaseNode = null;\n String testCaseName = null;\n NodeList nodeListTestCase = parser.getNodeList(testSuiteNode, \"TestCase\");\n for (int i = 0; i < nodeListTestCase.getLength(); i++) {\n testCaseNode = nodeListTestCase.item(i);\n String tempTestCaseName = parser.getAttrValue(testCaseNode, \"name\");\n Log.v(TAG, \"[\" + testName + \"] \" + \"testCaseName = \" + tempTestCaseName);\n if (0 == tempTestCaseName.compareTo(TAG)) {\n testCaseName = tempTestCaseName;\n break;\n }\n }\n // test\n NodeList nodeList = parser.getNodeList(testCaseNode, \"Test\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n Node testNode = nodeList.item(i);\n String tempTestName = parser.getAttrValue(testNode, \"name\");\n Log.v(TAG, \"[\" + testName + \"] \" + \"testName = \" + tempTestName);\n if (0 == tempTestName.compareTo(testName)) {\n for (int j = 0; j < params.size(); j++) {\n String attrValue = parser.getAttrValue(parser.getNodeByName(testNode,\n parameters[j]), \"value\");\n params.put(parameters[j], attrValue);\n Log.v(TAG, \"[\" + testName + \"] \" + \"param = \" + parameters[j] + \" value = \"\n + params.get(parameters[j]));\n }\n break;\n }\n }\n }",
"void setParameters(Map<String, String[]> parameters);",
"@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}",
"protected Map<String, String> getStatisticsServiceParameters(IPluginConfig config) {\n if (!config.containsKey(STATISTICS_SERVICE_PARAMETER_NAMES) || !config.containsKey(STATISTICS_SERVICE_PARAMETER_VALUES)) {\n return new HashMap<String, String>();\n }\n\n String[] parameterNames = config.getStringArray(STATISTICS_SERVICE_PARAMETER_NAMES);\n String[] parameterValues = config.getStringArray(STATISTICS_SERVICE_PARAMETER_VALUES);\n\n if (parameterNames == null || parameterValues == null || parameterNames.length != parameterValues.length) {\n log.warn(\"Service parameter names/values are misconfigured\");\n return new HashMap<String, String>();\n }\n\n Map<String, String> statisticsServiceParameters = new HashMap<String, String>();\n for (int i = 0; i < parameterNames.length; i++) {\n statisticsServiceParameters.put(parameterNames[i], parameterValues[i]);\n }\n\n return statisticsServiceParameters;\n }",
"public Map getParameterMap() {\n return params;\n }",
"private Map<String, Object> getSubServiceMap() {\n\t\tlog.info(\"*****Inside getSubservice method **\");\n\t\tMap<String, Object> serviceMap = null;\n\n\t\ttry {\n\n\t\t\tserviceMap = new HashMap<String, Object>();\n\t\t\tserviceMap.put(ResourceResolverFactory.SUBSERVICE, \"sam\");\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tStringWriter errors = new StringWriter();\n\t\t\te.printStackTrace(new PrintWriter(errors));\n\t\t\tlog.info(\"errors ***\" + errors.toString());\n\t\t}\n\t\tlog.info(\"*****getSubservice Method End**\");\n\t\t\n\t\treturn serviceMap;\n\n\t}",
"public void getParameters(Parameters parameters) {\n\n }",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"@Override\n\t\tpublic Map getParameterMap() {\n\t\t\treturn null;\n\t\t}",
"@Override\n public void setParameterMap(Map arg0) {\n\n }",
"@Override //Client\n public void prepareAMServiceData(ClusterDescription clusterSpec,\n Map<String, ByteBuffer> serviceData) {\n \n }",
"private void processInputs( Map inputs ) {\n\n\t\tINPUTS = new CommandInputParameter[ inputs.size() ];\n\n\t\tint counter = 0;\n\n\t\tfor( Object attribute : inputs.keySet() ){\n\n\t\t\tINPUTS[ counter ] = new CommandInputParameter();\n\n\t\t\tif ( attribute.equals(\"id\") ) {\n\t\t\t\tINPUTS[counter].setid( (String) inputs.get( attribute ) );\n\t\t\t}\n\n\t\t\tif ( attribute.equals(\"type\") ) {\n\t\t\t\tINPUTS[counter].settype( (String) inputs.get( attribute ) );\n\t\t\t}\n\n\t\t}\n\t}",
"public Map getParameters() {\r\n\t\treturn parameters;\r\n\t}",
"protected void processContextParameters()\n {\n JBossWebMetaData local = metaDataLocal.get();\n JBossWebMetaData shared = metaDataShared.get();\n\n Map<String, String> overrideParams = new HashMap<String, String>();\n\n List<ParamValueMetaData> params = local.getContextParams();\n if (params != null)\n {\n for (ParamValueMetaData param : params)\n {\n overrideParams.put(param.getParamName(), param.getParamValue());\n }\n }\n params = shared.getContextParams();\n if (params != null)\n {\n for (ParamValueMetaData param : params)\n {\n if (overrideParams.get(param.getParamName()) == null)\n {\n overrideParams.put(param.getParamName(), param.getParamValue());\n }\n }\n }\n\n for (String key : overrideParams.keySet())\n {\n context.addParameter(key, overrideParams.get(key));\n }\n\n }",
"@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }",
"public abstract void setWorkflowParameters(Map<String,List<Parameter>> lParams);",
"public abstract ImmutableMap<String, ParamInfo> getParamInfos();",
"public Map getParameterMap()\r\n {\r\n Map copyMap = new HashMap(this.parameters.size());\r\n copyMap.putAll(this.parameters);\r\n return copyMap;\r\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }",
"@Override\r\n protected Map<String, String> getParams() {\n\r\n Map<String, String> params = new HashMap<String, String>();\r\n params.put(\"name\", name);\r\n params.put(\"product\", product);\r\n params.put(\"email\", email);\r\n params.put(\"phone\", phone);\r\n params.put(\"quantity\", quantity);\r\n params.put(\"price\", price);\r\n params.put(\"address\", address);\r\n\r\n return params;\r\n }",
"public void addToParameterNameValuePairs(entity.LoadParameter element);",
"private static Map<String, Object> handleParams(WMElement params) {\n Map<String, Object> res = new HashMap<>();\n int i = 0;\n for (; i < params.ConvertToIdentifier().GetNumberChildren(); i++) {\n WMElement curParam = params.ConvertToIdentifier().GetChild(i);\n String curParamName = curParam.GetAttribute();\n if (!curParam.GetValueType().equalsIgnoreCase(\"id\")) {\n res.put(curParamName, curParam.GetValueAsString());\n }\n else {\n List<Pair<String, String>> extraFeatures = new ArrayList<>();\n for (int j = 0; j < curParam.ConvertToIdentifier().GetNumberChildren(); j++) {\n WMElement curFeature = curParam.ConvertToIdentifier().GetChild(j);\n extraFeatures.add(new ImmutablePair<>(curFeature.GetAttribute(),\n curFeature.GetValueAsString()));\n }\n\n res.put(curParamName, extraFeatures);\n }\n }\n return res;\n }",
"public void populateParameterValues() {\n // Query for process step parameter values\n Map<String, Object> paramValBindVars = new HashMap<String, Object>();\n paramValBindVars.put(\"processStepId\", processStepId);\n List<Row> paramValues = DataHelper.queryVO(ProcessController.ENGINE_AM_CONFIG, ProcessController.ENGINE_AM_NAME, PROC_STEP_PARAM_VAL_EXEC_VO_INSTANCE_NAME, PROC_STEP_PARAM_VALUE_VC, paramValBindVars);\n\n // Populate each parameter value with a mapping or a constant value\n for (Row paramValue : paramValues) {\n if ( paramValue.getAttribute(\"ProcessStepParameterCode\")!= null ) {\n String paramCode = (String) paramValue.getAttribute(\"ProcessStepParameterCode\");\n //String paramTypeCode = (String) paramValue.getAttribute(\"ProcessStepParameterTypeCode\");\n String mapping = (String) paramValue.getAttribute(\"ProcessParameterCode\");\n //String procParamTypeCode = (String) paramValue.getAttribute(\"ProcessParameterTypeCode\");\n\n // if parameter is mapped to a constant, then assume its value exists in one of the four data type\n // fields, even though the parameter's data type is unknown\n Object paramVal = null;\n if ( mapping==null ) {\n paramVal = (String) paramValue.getAttribute(\"ParameterValueString\");\n if ( paramVal==null ) {\n paramVal = (BigDecimal) paramValue.getAttribute(\"ParameterValueNumber\");\n if ( paramVal==null ) {\n paramVal = (Date) paramValue.getAttribute(\"ParameterValueDate\");\n if ( paramVal==null ) {\n paramVal = (Timestamp) paramValue.getAttribute(\"ParameterValueTimestamp\");\n if ( paramVal==null ) {\n String val = (String) (paramValue.getAttribute(\"ParameterValueString\"));\n paramVal = new Boolean(val.toLowerCase());\n }\n }\n }\n }\n }\n\n parameterValues.put(paramCode, new ParameterValue(mapping, paramVal));\n }\n }\n }",
"public void updateBusinessData(Map<String,Object> params) throws Exception;",
"@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\n protected Map<String,String> getParams(){\n return postParameters;\n }",
"public Map getParameters()\n\t{\n\t\tMap returnValue = null;\n\n\t\tif (params == null)\n\t\t{\n\t\t\treturnValue = new HashMap();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = params;\n\t\t}\n\n\t\treturn returnValue;\n\t}",
"public interface CtlService {\n\n\tList<Map<String, Object>> getCtlInfByEquNum(Map<String, Object> map) throws Exception;\n\n\n\n}",
"public void getParameters(Parameters parameters) {\n\n\t}",
"@Override\n\tpublic Map getParameterMap() {\n\t\treturn null;\n\t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n params.put(\"resortName\", resortName);\n params.put(\"latitude\", String.valueOf(lat));\n params.put(\"longitude\", String.valueOf(lon));\n\n\n return params;\n }",
"public void putInMap(Map<String, Object> paramMap)\n {\n paramMap.put(\"wms_cre_rev_info_comp_id\", this.wms_cre_rev_info_comp_id);\n paramMap.put(\"wms_cre_credit_head_id\", this.wms_cre_credit_head_id);\n paramMap.put(\"wms_cre_credit_line_customer_change_head_id\", this.wms_cre_credit_line_customer_change_head_id);\n paramMap.put(\"has_enterprise\", this.has_enterprise);\n paramMap.put(\"enterprise_reason\", this.enterprise_reason);\n paramMap.put(\"company_type\", this.company_type);\n paramMap.put(\"register_money\", this.register_money);\n paramMap.put(\"operation_state\", this.operation_state);\n paramMap.put(\"date_of_issue\", this.date_of_issue);\n paramMap.put(\"date_of_issue_str\", this.date_of_issue_str);\n paramMap.put(\"issue_begin_date\", this.issue_begin_date);\n paramMap.put(\"issue_begin_date_str\", this.issue_begin_date_str);\n paramMap.put(\"issue_end_date\", this.issue_end_date);\n paramMap.put(\"issue_end_date_str\", this.issue_end_date_str);\n paramMap.put(\"shareholders_num\", this.shareholders_num);\n paramMap.put(\"way_of_contribution\", this.way_of_contribution);\n paramMap.put(\"is_inspection\", this.is_inspection);\n paramMap.put(\"is_same_organ_code\", this.is_same_organ_code);\n paramMap.put(\"is_inspection_organ_code\", this.is_inspection_organ_code);\n paramMap.put(\"is_same_other\", this.is_same_other);\n paramMap.put(\"is_taxpayer\", this.is_taxpayer);\n paramMap.put(\"pay_taxes_status\", this.pay_taxes_status);\n paramMap.put(\"comp_remark\", this.comp_remark);\n }",
"private Map<String, String> paramHandler(Map<String, String> params){\n\t\t\n\t\treturn params;\n\t}",
"private Map<String,Object> buildParamsMap(Map<String, Object> map, HostelDTO hostelDTO){\r\n\t\tmap.put(\"hostelName\", hostelDTO.getHostelName());\r\n\t\tmap.put(\"adrStreet\", hostelDTO.getAdrStreet());\r\n\t\tmap.put(\"adrCity\", hostelDTO.getAdrCity());\r\n\t\tmap.put(\"adrState\", hostelDTO.getAdrState());\r\n\t\tmap.put(\"adrPostalCode\", hostelDTO.getAdrPostalCode());\r\n\t\tmap.put(\"adrCountry\", hostelDTO.getAdrCountry());\r\n\t\tmap.put(\"phone\", hostelDTO.getPhone());\r\n\t\tmap.put(\"email\", hostelDTO.getEmail());\r\n\t\tmap.put(\"facebook\", hostelDTO.getFacebook());\r\n\t\tmap.put(\"web\", hostelDTO.getWeb());\r\n\t\tmap.put(\"checkInTime\", hostelDTO.getCheckInTime());\r\n\t\tmap.put(\"checkOutTime\", hostelDTO.getCheckOutTime());\r\n\t\tmap.put(\"smoking\", hostelDTO.getSmoking());\r\n\t\tmap.put(\"alcohol\", hostelDTO.getAlcohol());\r\n\t\tmap.put(\"orderCancellationHoursLimit\", hostelDTO.getOrderCancellationHoursLimit());\r\n\t\tmap.put(\"cancellationFeePercant\", hostelDTO.getCancellationFeePercant());\t\r\n\t\treturn map;\r\n\t}",
"public static Map<String, String> getParameters() {\r\n return null;\r\n }",
"public interface IInputService {\n public int insertHiddenDanger(HiddenDanger hiddenDanger);\n public int insertInput(Input input);\n public int insertCheckTableDetail(CheckTableDetail checkTableDetail);\n public Map<String,Object> getDetailHiddenDanger(Integer hiddenDangerId);\n public Map<String,Object> getDetailInput(String inputId);\n public PageInfo<Map<String,Object>> getListInput(Integer pageNum,Integer pageSize);\n public List<Map<String,Object>> getAllListInput();\n public int toRectify(HiddenDanger hiddenDanger);\n public int rectify(HiddenDanger hiddenDanger);\n public PageInfo<Map<String,Object>> getHiddenDangerList(String status,int pageNum,int pageSize);\n public PageInfo<Map<String, Object>> getHiddenDangerListTimeOut(int pageNum,int pageSize);\n public List<Map<String,Object>> getNumberHiddenDanger();\n public List<Map<String,Object>> getNumberHiddenDangerTimeOut();\n\n //由inputId和二级指标id获得所有二级指标内容\n public Map<String,Object> getAllCheckDetail(@Param(\"inputId\") String inputId, @Param(\"secondId\") Integer secondId);\n\n //撤回隐患\n public int withdrawHiddenDanger(Integer hiddenDangerId);\n}",
"public abstract void configureBean(Map<String, String[]> requestParamsMap);",
"public void setParameterMap(Map parametersMap)\r\n {\r\n // create a new HashMap\r\n this.parameters = new HashMap(parametersMap.size());\r\n\r\n // copy the parameters\r\n addParameterMap(parametersMap);\r\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }",
"public Map<String, String> getParameters() {\r\n return _parameters;\r\n }",
"public void getParameters(Parameters param)\r\n {\r\n Enumeration keys=keys();\r\n while (keys.hasMoreElements())\r\n {\r\n String keyName=(String) keys.nextElement();\r\n if (param.containsKey(keyName))\r\n put(keyName, param.get(keyName));\r\n }\r\n }",
"public void setParameterNameValuePairs(entity.LoadParameter[] value);",
"private String buildParams(){\n HashMap<String,String> items = new HashMap<>();\n if(paramValid(param1name,param1value))\n items.put(param1name,param1value);\n if(paramValid(param2name,param2value))\n items.put(param2name,param2value);\n if(paramValid(param3name,param3value))\n items.put(param3name,param3value);\n return JsonOutput.toJson(items);\n }",
"@Override\r\n\tpublic void setParameters(Map<String, String[]> parameters){\n\t\tthis.parameters=parameters;\r\n\t}",
"public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}",
"private void initParameters() {\n Annotation[][] paramsAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < paramsAnnotations.length; i++) {\n if (paramsAnnotations[i].length == 0) {\n contentBuilder.addUnnamedParam(i);\n } else {\n for (Annotation annotation : paramsAnnotations[i]) {\n Class<?> annotationType = annotation.annotationType();\n if (annotationType.equals(PathParam.class)\n && pathBuilder != null) {\n PathParam param = (PathParam) annotation;\n pathBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(QueryParam.class)) {\n QueryParam param = (QueryParam) annotation;\n queryBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(HeaderParam.class)) {\n HeaderParam param = (HeaderParam) annotation;\n headerBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(NamedParam.class)) {\n NamedParam param = (NamedParam) annotation;\n contentBuilder.addNamedParam(param.value(), i);\n } else {\n contentBuilder.addUnnamedParam(i);\n }\n }\n }\n }\n }",
"@Parameters\n public static Collection<Object[]> testParameters() {\n Collection<Object[]> params = new ArrayList<Object[]>();\n\n for (OPT opt: OPT.values()) {\n Object[] par = new Object[2];\n par[0] = opt;\n par[1] = opt.name();\n\n params.add( par );\n }\n\n return params;\n }",
"public void readParameters()\n {\n readParameters(getData());\n }",
"void setParameters() {\n\t\t\n\t}",
"@Parameterized.Parameters(name = \"{0}_{1}\")\n public static Collection inputs()\n {\n getEnvironmentVariables();\n return inputsCommon();\n }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> parameters = new HashMap<String, String>();\n return parameters;\n }",
"Map<ParameterKeys, Object> process(final Map<ParameterKeys, Object> params) throws NullPointerException, IllegalArgumentException;",
"private ValueMap<Input, OWLValue> buildInputValueMap(Process process, String datasetURL, HashMap<String, String> bindings, OWLKnowledgeBase kb) {\n\t\tValueMap<Input, OWLValue> inputs = new ValueMap<Input, OWLValue>();\n\n\t\tString value;\n\t\tString uri;\n\t\tboolean error = false;\n\t\tfor (Input input : process.getInputs()) {\n\t\t\turi = input.getURI().toASCIIString();\n\n\t\t\tSystem.out.println(\"getting value for parameter: \" + uri);\n\n\t\t\tif (uri.contains(\"url\") || uri.contains(\"URL\")\n\t\t\t\t\t|| uri.contains(\"fileLoc\"))\n\t\t\t\tinputs.setValue(input, kb.createDataValue(datasetURL));\n\n\t\t\telse {\n\t\t\t\tvalue = bindings.get(input.getURI().toASCIIString());\n\n\t\t\t\tif (value != null)\n\t\t\t\t\tinputs.setValue(input, kb.createDataValue(value));\n\t\t\t\telse\n\t\t\t\t\terror = true;\n\t\t\t}\n\t\t}\n\n\t\tif (error)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn inputs;\n\t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"pasien\", pasien);\n\n return params;\n }",
"private HashMap<String, Object> createBasicParameters(\n ReportContent reportContent) {\n HashMap<String, Object> parameter = new HashMap<String, Object>();\n parameter.put(\"RESULT_ALTERNATIVES\",\n reportContent.getResultAlternatives());\n parameter.put(\"GOAL_NAME\", reportContent.getGoalName());\n parameter.put(\"RESULT_ALTERNATIVE_CRITERION_MATRIX\",\n reportContent.getResultAlternativeCriterionMatrix());\n parameter.put(\"RESULT_CRITERIA\", reportContent.getResultCriteria());\n parameter.put(\"RESULT_CONSISTENCY_RATIO\",\n reportContent.getResultConsistencyRatio());\n parameter.put(\"RESULT_CRITICAL_CONSISTENCY_RATIO\",\n Double.toString(this.criticalCr));\n\n return parameter;\n }",
"Map<Long, Map<String, Parametro>> getParametrosConfigMap();",
"public interface PointAService {\r\n\r\n\t/**\r\n\t * Initialisation function called directly after construction\r\n\t * \r\n\t * @param pParams\r\n\t * Map containing parameters specified in PointAConfig.xml\r\n\t */\r\n\tpublic void init(Map<String, String> pParams, Application pApp) throws Exception;\r\n}",
"public Parameters(Map<String, String[]> map) {\n\t\trequireNonNull(map, \"Parameters map not speicifed\");\n\t\tthis.store = new ParametersMap(map);\n\t}",
"public void SetInputParameters(AbstractParameterDictionary params) throws Exception {\n\t\t//String paramsClass = params.getClass().getSimpleName();\n\t\t\n\t\tthis.inputParameters = params;\n\t}",
"public abstract HashMap<String, String> generateParameterMap(String snpName,\n List<ModelOption> modelOptions,\n DbSnpSourceOption dbSnpOption,\n GeneSourceOption geneSourceOption,\n int basePairRadius);",
"public Map getParams() {\n\t\treturn _params;\n\t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"reg_No\", regNo);\n params.put(\"manufacturer\", manufacture);\n params.put(\"model_Variant\", modelVar);\n params.put(\"PrevPolicyNo\", prevPolicyNo);\n params.put(\"mobile\", mobile);\n params.put(\"inspection_id\", pref.getInspectioID());\n\n Log.e(TAG, \"Posting params: \" + params.toString());\n\n return params;\n }",
"public LinkedHashMap<String, FunctionParameter> inputParameters(){\n return new LinkedHashMap<String, FunctionParameter>();\n }",
"protected Map<String, Object> getConfigurationParameters(){\n\t\treturn configurationParameters;\n\t}",
"final void getParameters()\r\n {\r\n hostName=getParameter(\"hostname\");\r\n\tIPAddress=getParameter(\"IPAddress\");\r\n\tString num=getParameter(\"maxSearch\");\r\n\tString arg=getParameter(\"debug\");\r\n\tserver=getParameter(\"server\");\r\n\tindexName=getParameter(\"indexName\");\r\n\tString colour=getParameter(\"bgColour\");\r\n\r\n\tif(colour==null)\r\n\t{\r\n\t bgColour=Color.lightGray;\r\n }\r\n else\r\n\t{\r\n\t try\r\n\t {\r\n\t bgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t bgColour=Color.lightGray;\r\n\t }\r\n\t}\r\n\t\r\n\tcolour=getParameter(\"fgColour\");\r\n\tif(colour==null)\r\n\t{\r\n\t fgColour=Color.black;\r\n\t}\r\n\telse\r\n\t{\r\n\t try\r\n\t {\r\n\t fgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t fgColour=Color.black;\r\n\t }\r\n\t}\r\n\r\n\t//Check for missing parameters.\r\n\tif(hostName==null && server==null)\r\n\t{\r\n\t statusArea.setText(\"Error-no host/server\");\r\n\t hostName=\"none\";\r\n\t}\r\n\r\n\tmaxSearch=(num == null) ? MAX_NUMBER_PAGES : Integer.parseInt(num);\r\n }",
"public abstract void addParameter(String key, Object value);",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"todo\");\n params.put(\"task\", task);\n params.put(\"startTime\", startTime);\n params.put(\"endTime\", endTime);\n params.put(\"created_for\", created_for);\n params.put(\"created_by\",created_by);\n\n\n return params;\n }",
"public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }",
"private Dictionary<String, Object> copyServiceProperties(\n final ServiceReference serviceReference) {\n final Dictionary<String, Object> props = new Hashtable<>();\n for (String key : serviceReference.getPropertyKeys()) {\n props.put(key, serviceReference.getProperty(key));\n }\n props.put(PostOperation.PROP_OPERATION_NAME,\n serviceReference.getProperty(SlingPostOperation.PROP_OPERATION_NAME));\n props.put(Constants.SERVICE_DESCRIPTION, \"Proxy for \"\n + serviceReference);\n return props;\n }",
"public interface SpecimenService\r\n{\r\n static void setInstance(SpecimenService serviceImpl)\r\n {\r\n ServiceRegistry.get().registerService(SpecimenService.class, serviceImpl);\r\n }\r\n\r\n static SpecimenService get()\r\n {\r\n return ServiceRegistry.get().getService(SpecimenService.class);\r\n }\r\n\r\n /** Does a search for matching GlobalUniqueIds */\r\n ParticipantVisit getSampleInfo(Container studyContainer, User user, String globalUniqueId) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Date date) throws SQLException;\r\n\r\n Set<ParticipantVisit> getSampleInfo(Container studyContainer, User user, String participantId, Double visit) throws SQLException;\r\n\r\n String getCompletionURLBase(Container studyContainer, CompletionType type);\r\n\r\n Set<Pair<String, Date>> getSampleInfo(Container studyContainer, User user, boolean truncateTime) throws SQLException;\r\n\r\n Set<Pair<String, Double>> getSampleInfo(Container studyContainer, User user) throws SQLException;\r\n\r\n Lsid getSpecimenMaterialLsid(@NotNull Container studyContainer, @NotNull String id);\r\n\r\n void importSpecimens(User user, Container container, List<Map<String, Object>> rows, boolean merge) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenImportStrategyFactory(SpecimenImportStrategyFactory factory);\r\n\r\n Collection<SpecimenImportStrategyFactory> getSpecimenImportStrategyFactories();\r\n\r\n void registerSpecimenTransform(SpecimenTransform transform);\r\n\r\n Collection<SpecimenTransform> getSpecimenTransforms(Container container);\r\n\r\n @Nullable\r\n SpecimenTransform getSpecimenTransform(String name);\r\n\r\n PipelineJob createSpecimenReloadJob(Container container, User user, SpecimenTransform transform, @Nullable ActionURL url) throws SQLException, IOException, ValidationException;\r\n\r\n void registerSpecimenChangeListener(SpecimenChangeListener listener);\r\n\r\n @Nullable\r\n TableInfo getTableInfoVial(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimen(Container container);\r\n\r\n @Nullable\r\n TableInfo getTableInfoSpecimenEvent(Container container);\r\n\r\n SpecimenTablesTemplate getSpecimenTablesTemplate();\r\n\r\n Domain getSpecimenVialDomain(Container container, User user);\r\n\r\n Domain getSpecimenEventDomain(Container container, User user);\r\n\r\n Map<String, String> getSpecimenImporterTsvColumnMap();\r\n\r\n SpecimenRequestCustomizer getRequestCustomizer();\r\n\r\n void registerRequestCustomizer(SpecimenRequestCustomizer customizer);\r\n\r\n /** Hooks to allow other modules to control a few items about how specimens are treated */\r\n interface SpecimenRequestCustomizer\r\n {\r\n /** @return whether or not a specimen request must include at least one vial */\r\n boolean allowEmptyRequests();\r\n\r\n /** @return null if users should always supply a destination site for a given request, or the site's id if they should all be the same */\r\n Integer getDefaultDestinationSiteId();\r\n\r\n /** @return true if reports shouldn't give the option to group based on primary, additive, or derivative types */\r\n boolean omitTypeGroupingsWhenReporting();\r\n\r\n /** @return whether the current user can make changes to the status of the request */\r\n boolean canChangeStatus(User user);\r\n\r\n /** @return true if a variety of warning types including vial status, the inclusion of vials spanning multiple locations, and more should be suppressed in the UI */\r\n boolean hideRequestWarnings();\r\n\r\n /** @return a message to show the user after a request has been submitted */\r\n HtmlString getSubmittedMessage(Container c, int requestId);\r\n }\r\n\r\n interface SampleInfo\r\n {\r\n String getParticipantId();\r\n Double getSequenceNum();\r\n String getSampleId();\r\n }\r\n\r\n enum CompletionType\r\n {\r\n SpecimenGlobalUniqueId,\r\n ParticipantId,\r\n VisitId,\r\n LabId\r\n }\r\n}",
"private Map<String, Element> populate(URL url) \n\t{\n\t\t// LinkedHashMap maintains insertion order when iterating over the keys or elements.\n\t\tMap<String, Element> fields = new LinkedHashMap<String, Element>();\n\n\t\tpiseMarshaller = initPiseMarshaller(url);\n\t\tfor (String param : piseMarshaller.getExtendedVisibleSet())\n\t\t{\n\t\t\tif (userSupplied.keySet().contains(param))\n\t\t\t{\n\t\t\t\t//log.debug(\"user supplied \" + param + \" so not adding to this.parameters\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString value = null;\n\t\t\tString type = piseMarshaller.getType(param);\n\n\t\t\t// Add the parameters of type InFile and Sequence with value = empty string to indicate that the user hasn't set a value (yet).\n\t\t\tif (type.equals(\"InFile\") || type.equals(\"Sequence\"))\n\t\t\t{\n\t\t\t\tfields.put(param, new Element(\"\", true, piseMarshaller.getType(param)));\n\t\t\t\t//log.debug(\"populate: \" + param + \"=''\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If there is a default value for the param ...\n\t\t\tString vdef = piseMarshaller.getVdef(param);\n\t\t\tif (vdef != null)\n\t\t\t{\n\t\t\t\t// Get rid of leading and trailing quotes if any.\n\t\t\t\tvdef = vdef.trim();\n\t\t\t\tif (vdef.startsWith(\"\\\"\"))\n\t\t\t\t{\n\t\t\t\t\tvdef = vdef.replaceFirst(\"\\\"\", \"\");\n\t\t\t\t}\n\t\t\t\tif (vdef.endsWith(\"\\\"\"))\n\t\t\t\t{\n\t\t\t\t\tvdef = vdef.substring(0, vdef.length() - 1);\n\t\t\t\t}\n\t\t\t\tvalue = vdef;\n\t\t\t} else if (type != null && type.equals(\"Switch\"))\n\t\t\t{\n\t\t\t\tvalue = \"0\";\n\t\t\t} else\n\t\t\t{\n\t\t\t\tvalue = \"\";\n\t\t\t}\n\t\t\tfields.put(param, new Element(value, true, type));\n\t\t\t//log.debug(\"populate: \" + param + \"=\" + \"'\" + value + \"'\");\n\t\t}\n\t\treturn fields;\n\t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"id\", id);\n params.put(\"type\", type);\n\n Log.d(TAG, \"getParams: \"+params);\n\n\n\n return params;\n }",
"void putServiceNameServiceInfos(net.zyuiop.ovhapi.api.objects.services.Service param0, java.lang.String serviceName) throws java.io.IOException;",
"@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }",
"@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }",
"public void setParameterService(ParameterService parameterService) {\r\n this.parameterService = parameterService;\r\n }",
"public interface IKnowledgepointService extends IService<Knowledgepoint> {\n public List<Knowledgepoint> selectTopTenByName(Map<String, Object> params);\n}",
"ParamMapEntry createParamMapEntry();",
"private DependencyManager(Map<TypedKey<?>, Object> inputs)\n\t{\n\t\tmap.putAll(inputs);\n\t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"complex_id\",complex_id);\n Log.d(TAG, \"complex_id: \"+params);\n\n return params;\n }"
] | [
"0.64219075",
"0.63387734",
"0.6253677",
"0.6253677",
"0.6239296",
"0.6226396",
"0.6212858",
"0.6199062",
"0.60099924",
"0.5946355",
"0.590738",
"0.5851968",
"0.58482426",
"0.5842956",
"0.57947826",
"0.5785134",
"0.57808733",
"0.5780152",
"0.57587194",
"0.57369196",
"0.5712184",
"0.57120454",
"0.5706638",
"0.570046",
"0.5688096",
"0.5680382",
"0.5675466",
"0.5674189",
"0.5663262",
"0.56508696",
"0.56267565",
"0.5624447",
"0.56098264",
"0.5593564",
"0.55887574",
"0.55754316",
"0.55709934",
"0.55707425",
"0.5555458",
"0.5552305",
"0.5542753",
"0.5541362",
"0.5517609",
"0.5510798",
"0.55007994",
"0.5496317",
"0.5489955",
"0.5480726",
"0.5474645",
"0.54512846",
"0.5447279",
"0.5447165",
"0.54468113",
"0.5424185",
"0.5421284",
"0.541022",
"0.53961253",
"0.53926134",
"0.53924096",
"0.5384414",
"0.538335",
"0.53785115",
"0.5366684",
"0.5364986",
"0.5363205",
"0.5359838",
"0.53531545",
"0.5317248",
"0.5305074",
"0.53026104",
"0.5293986",
"0.52916396",
"0.5289669",
"0.52874494",
"0.5286622",
"0.528474",
"0.5281759",
"0.5274024",
"0.52724856",
"0.5271121",
"0.5268433",
"0.52648085",
"0.5258581",
"0.52425754",
"0.52412",
"0.52355134",
"0.52254045",
"0.52250427",
"0.5223953",
"0.5213759",
"0.52136177",
"0.52100384",
"0.5203989",
"0.520243",
"0.520243",
"0.5201112",
"0.52001816",
"0.51976955",
"0.5196646",
"0.51937276"
] | 0.557918 | 35 |
Holds the raw map of parameters from suite and test input Clears the map | void clear(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}",
"protected void resetParams() {\n\t\treport.report(\"Resetting Test Parameters\");\n\t\t// numberOfRecoverys = 0;\n\t\tstreams = new ArrayList<StreamParams>();\n\t\tlistOfStreamList = new ArrayList<ArrayList<StreamParams>>();\n\t}",
"@Override\n public Map<String, String> getInputArgs() {\n Log.w(TAG, \"Test input args is not supported.\");\n return new HashMap<>();\n }",
"@Override\n\t\tpublic Map getParameterMap() {\n\t\t\treturn null;\n\t\t}",
"@Override\n\tpublic Map getParameterMap() {\n\t\treturn null;\n\t}",
"public Map getParameters();",
"private void SetParameters(XmlTest test){\r\n\t\t for (Map.Entry<String,String> entry : TestsParamList.get(test.getName()).entrySet()){\r\n\t\t\t test.addParameter(entry.getKey(), entry.getValue());\r\n\t\t }\r\n\t}",
"public static void resetParams()\n {\n Debug = false;\n SpecOption = false;\n MyspecOption = false;\n Spec2Option = false;\n Myspec2Option = false;\n SpecFile = \"\";\n WriteASTFlag = false;\n LabelFlag = false;\n ReportLabelsFlag = false;\n LabelRoot = \"Lbl_\";\n FairnessOption = \"\";\n FairAlgorithm = false;\n CheckTermination = false;\n NoOld = false;\n Nocfg = false;\n NoDoneDisjunct = false;\n optionsInFile = false;\n versionOption = null;\n inputVersionNumber = PcalParams.versionWeight;\n PcalTLAGen.wrapColumn = 78;\n PcalTLAGen.ssWrapColumn = 45;\n tlaPcalMapping = null ;\n \n }",
"private void getConfigParameters(String[] parameters, Map<String, String> params,\n String testName) {\n for (int i = 0; i < parameters.length; i++) {\n params.put(parameters[i], null);\n }\n Log.v(TAG, \"[\" + testName + \"] \" + \"params.size() = \" + params.size());\n File f = new File(CONFIG_FILE);\n assertTrue(testName + \" test file not exists: \" + CONFIG_FILE, f.exists());\n // test suite\n XmlParser parser = new XmlParser(CONFIG_FILE);\n Node testSuiteNode = parser.getRootNode();\n String testSuiteName = parser.getAttrValue(testSuiteNode, \"name\");\n Log.v(TAG, \"[\" + testName + \"] \" + \"testSuiteName = \" + testSuiteName);\n // test case\n Node testCaseNode = null;\n String testCaseName = null;\n NodeList nodeListTestCase = parser.getNodeList(testSuiteNode, \"TestCase\");\n for (int i = 0; i < nodeListTestCase.getLength(); i++) {\n testCaseNode = nodeListTestCase.item(i);\n String tempTestCaseName = parser.getAttrValue(testCaseNode, \"name\");\n Log.v(TAG, \"[\" + testName + \"] \" + \"testCaseName = \" + tempTestCaseName);\n if (0 == tempTestCaseName.compareTo(TAG)) {\n testCaseName = tempTestCaseName;\n break;\n }\n }\n // test\n NodeList nodeList = parser.getNodeList(testCaseNode, \"Test\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n Node testNode = nodeList.item(i);\n String tempTestName = parser.getAttrValue(testNode, \"name\");\n Log.v(TAG, \"[\" + testName + \"] \" + \"testName = \" + tempTestName);\n if (0 == tempTestName.compareTo(testName)) {\n for (int j = 0; j < params.size(); j++) {\n String attrValue = parser.getAttrValue(parser.getNodeByName(testNode,\n parameters[j]), \"value\");\n params.put(parameters[j], attrValue);\n Log.v(TAG, \"[\" + testName + \"] \" + \"param = \" + parameters[j] + \" value = \"\n + params.get(parameters[j]));\n }\n break;\n }\n }\n }",
"private void reset() {\n\t\tfiles = new HashMap<>();\n\t\tparams = new HashMap<>();\n\t}",
"public static Map<String, String> getParameters() {\r\n return null;\r\n }",
"Map<String, String> getParameters();",
"Map<String, String[]> getParameterMap();",
"private void setup()\n\t{\n\t\tif(values == null)\n\t\t\tvalues = new HashMap<>();\n\t\telse\n\t\t\tvalues.clear();\n\t}",
"@Test\n public void test1(){\n Map map = us.selectAll(1, 1);\n System.out.println(map);\n }",
"@Parameterized.Parameters(name = \"{0}_{1}\")\n public static Collection inputs()\n {\n getEnvironmentVariables();\n return inputsCommon();\n }",
"protected void setupParameters() {\n \n \n\n }",
"Map<String, Object> getParameters();",
"Map<String, Object> getParameters();",
"public void setUp()\n {\n map = new Map(5, 5, null);\n }",
"public Map getParameterMap() {\n return params;\n }",
"@Before\n public void initialize()\n {\n map = new MapAdapter();\n }",
"private void processInputs( Map inputs ) {\n\n\t\tINPUTS = new CommandInputParameter[ inputs.size() ];\n\n\t\tint counter = 0;\n\n\t\tfor( Object attribute : inputs.keySet() ){\n\n\t\t\tINPUTS[ counter ] = new CommandInputParameter();\n\n\t\t\tif ( attribute.equals(\"id\") ) {\n\t\t\t\tINPUTS[counter].setid( (String) inputs.get( attribute ) );\n\t\t\t}\n\n\t\t\tif ( attribute.equals(\"type\") ) {\n\t\t\t\tINPUTS[counter].settype( (String) inputs.get( attribute ) );\n\t\t\t}\n\n\t\t}\n\t}",
"public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }",
"public Map getParameterMap()\r\n {\r\n Map copyMap = new HashMap(this.parameters.size());\r\n copyMap.putAll(this.parameters);\r\n return copyMap;\r\n }",
"@Override\n public void setParameterMap(Map arg0) {\n\n }",
"ParamMap createParamMap();",
"private void clearLocals() {\n this.map = null;\n this.inputName = null;\n }",
"private Map<String, Element> populate(URL url) \n\t{\n\t\t// LinkedHashMap maintains insertion order when iterating over the keys or elements.\n\t\tMap<String, Element> fields = new LinkedHashMap<String, Element>();\n\n\t\tpiseMarshaller = initPiseMarshaller(url);\n\t\tfor (String param : piseMarshaller.getExtendedVisibleSet())\n\t\t{\n\t\t\tif (userSupplied.keySet().contains(param))\n\t\t\t{\n\t\t\t\t//log.debug(\"user supplied \" + param + \" so not adding to this.parameters\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString value = null;\n\t\t\tString type = piseMarshaller.getType(param);\n\n\t\t\t// Add the parameters of type InFile and Sequence with value = empty string to indicate that the user hasn't set a value (yet).\n\t\t\tif (type.equals(\"InFile\") || type.equals(\"Sequence\"))\n\t\t\t{\n\t\t\t\tfields.put(param, new Element(\"\", true, piseMarshaller.getType(param)));\n\t\t\t\t//log.debug(\"populate: \" + param + \"=''\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If there is a default value for the param ...\n\t\t\tString vdef = piseMarshaller.getVdef(param);\n\t\t\tif (vdef != null)\n\t\t\t{\n\t\t\t\t// Get rid of leading and trailing quotes if any.\n\t\t\t\tvdef = vdef.trim();\n\t\t\t\tif (vdef.startsWith(\"\\\"\"))\n\t\t\t\t{\n\t\t\t\t\tvdef = vdef.replaceFirst(\"\\\"\", \"\");\n\t\t\t\t}\n\t\t\t\tif (vdef.endsWith(\"\\\"\"))\n\t\t\t\t{\n\t\t\t\t\tvdef = vdef.substring(0, vdef.length() - 1);\n\t\t\t\t}\n\t\t\t\tvalue = vdef;\n\t\t\t} else if (type != null && type.equals(\"Switch\"))\n\t\t\t{\n\t\t\t\tvalue = \"0\";\n\t\t\t} else\n\t\t\t{\n\t\t\t\tvalue = \"\";\n\t\t\t}\n\t\t\tfields.put(param, new Element(value, true, type));\n\t\t\t//log.debug(\"populate: \" + param + \"=\" + \"'\" + value + \"'\");\n\t\t}\n\t\treturn fields;\n\t}",
"public Map getParameters()\n\t{\n\t\tMap returnValue = null;\n\n\t\tif (params == null)\n\t\t{\n\t\t\treturnValue = new HashMap();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = params;\n\t\t}\n\n\t\treturn returnValue;\n\t}",
"public void clearParams() {\n setParams((String[]) null);\n }",
"public static void fill(Map<String,String> in, Map<String,String> out) {\n\t\tinsert(in,ENV_APPID,out);\n\t\tinsert(in,ENV_JAR,out);\n\t\tinsert(in,ENV_JAR_PATH,out);\n\t\tinsert(in,ENV_CLASSPATH,out);\n\t\tinsert(in,ENV_NAME,out);\n\t\tinsert(in,ENV_ZK_URI,out);\n\t\tinsert(in,ENV_HDFS_URI,out);\n\t\tinsert(in,BROKER_URI,out);\n\t\tinsert(in,BROKER_ZK_URI,out);\n\t\t\n\t\t//also put the classpath in the right var:\n\t\tif(in.containsKey(ENV_CLASSPATH))\n\t\t\tout.put(\"CLASSPATH\", in.get(ENV_CLASSPATH));\n\t}",
"public Map<String, String> params() {\n return Collections.unmodifiableMap(params);\n }",
"void setup(Map<String, Object> cfg);",
"@Override\n\tpublic void setInputMap(HashMap<String, Controller> map)\n\t{\n\t\tthis.map = map;\n\t}",
"@Override\n\tpublic void prepare(Map<String, String> mapping) {\n\t\t\n\t\tfor (Entry<String, String> en : mapping.entrySet()) {\n\t\t\tString key = en.getKey();\n\t\t\tString value = System.getenv(en.getValue());\n\t\t\tif (value != null) {\n\t\t\t\tLOG.debug(\"Env {}: {}\", en.getValue(), redactValue(key, value));\n\t\t\t\tputParameter(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Override with system properties\n\t\t\n\t\tfor (Entry<String, String> en : mapping.entrySet()) {\n\t\t\tString key = en.getKey();\n\t\t\tString value = System.getProperty(key);\n\t\t\tif (value != null) {\n\t\t\t\tLOG.debug(\"Sys {}: {}\", key, redactValue(key, value));\n\t\t\t\tputParameter(key, value);\n\t\t\t}\n\t\t}\n }",
"private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}",
"void setParameters(Map<String, String[]> parameters);",
"@Override\n public Map<String, Object> getConfigParams() {\n return null;\n }",
"public LinkedHashMap<String, FunctionParameter> inputParameters(){\n return new LinkedHashMap<String, FunctionParameter>();\n }",
"@Parameters\n public static Collection<Object[]> testParameters() {\n Collection<Object[]> params = new ArrayList<Object[]>();\n\n for (OPT opt: OPT.values()) {\n Object[] par = new Object[2];\n par[0] = opt;\n par[1] = opt.name();\n\n params.add( par );\n }\n\n return params;\n }",
"@Before\n public void setUp() {\n dict = new Dictionary();\n\n\n }",
"private DependencyManager(Map<TypedKey<?>, Object> inputs)\n\t{\n\t\tmap.putAll(inputs);\n\t}",
"public void setInstanceOfMapForTesting(){\n instanceOfMap = null;\n }",
"public Map getParams() {\n\t\treturn _params;\n\t}",
"public Map getParameters() {\r\n\t\treturn parameters;\r\n\t}",
"public Map<String, Object> getRunParams() {\n return this.runParams;\n }",
"@Before\r\n\tpublic void setUp() {\r\n\t\tthis.httpURLBuilder = new HttpURLBuilder();\r\n\t\tthis.httpURLBuilder.setHost(\"localhost\");\r\n\t\tthis.httpURLBuilder.setParam(\"name\", \"value\");\r\n\t\tthis.httpURLBuilder.setPath(\"/xampp\");\r\n\t\tthis.httpURLBuilder.setPort(80);\r\n\t\tthis.httpURLBuilder.setSecure(false);\r\n\t\tthis.map = new ListMap<>();\r\n\t\tthis.map.putValue(\"key\", \"value\");\r\n\t}",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"public Parameters(Map<String, String[]> map) {\n\t\trequireNonNull(map, \"Parameters map not speicifed\");\n\t\tthis.store = new ParametersMap(map);\n\t}",
"private Map<String, Object> dealWithMap(Map<String, Object> paramMap)\n {\n Set<String> set = new HashSet<String>();\n for (String colName : defaultValColArr)\n {\n set.add(colName);\n }\n for (String colName : pkColArr)\n {\n set.add(colName);\n }\n Iterator<String> iterator = set.iterator();\n while (iterator.hasNext())\n {\n String colName = iterator.next();\n if (paramMap.get(colName) == null)\n {\n paramMap.remove(colName);\n }\n }\n return paramMap;\n }",
"public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\thash_map();\n\t\t//textread();\n\t\t\n\t\t/*\n\n\t\tFileReader fromfile = new FileReader(\"E:\\\\OnlineJob\\\\PWD.txt\");\n\t\tBufferedReader bufferReader = new BufferedReader(fromfile);\n\t\t\n\t\tString textFromfile =null;\n\t\twhile ((textFromfile = bufferReader.readLine())!= null) {\n\t\t\tSystem.out.println(textFromfile);\n\t\t}\n\t\tfromfile.close();\n\t\tbufferReader.close();\n\t}\n\t\n\tpublic static void textread() {\n\t\t\n\t\tScanner userinput = new Scanner(System.in);\n\t\tSystem.out.println(\"Learning Java from?\");\n\t\tString variable = userinput.nextLine();\n\t\tSystem.out.println(variable);\n\t\tuserinput.close();\n\t\t} */\n\tpublic static void hash_map() {\n\t\tHashMap<Integer, String> testmp = new HashMap<Integer, String>(); \n\t\ttestmp.put(1, \"Param\");\n\t\ttestmp.put(2, \"Selvi\");\n\t\ttestmp.put(3,\"\" );\n\t\ttestmp.put(4, \"Ragha\");\n\t\t//testmp.put(4, 100);\n\t\t//testmp.put(4,250);\n\t\tSystem.out.println(\"Elements of Map:\");\n\t\ttestmp.remove(6);\n\t\tSystem.out.println(testmp.containsKey(6));\n\t\tSystem.out.println(testmp);\n\t\tSystem.out.println(testmp.keySet());\n\t\tSystem.out.println(testmp.values());\n\t\tSystem.out.println(testmp.isEmpty());\n\t\t\n\t}\n\n\t\n}",
"public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}",
"public void readParameters()\n {\n readParameters(getData());\n }",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"public void reset()\n {\n Iterator i;\n\n i = params.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n\n i = options.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n }",
"private Map<String, Object> dealWithMap(Map<String, Object> paramMap) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor (String colName : defaultValColArr) {\n\t\t\tset.add(colName);\n\t\t}\n\t\tfor (String colName : pkColArr) {\n\t\t\tset.add(colName);\n\t\t}\n\t\tIterator<String> iterator = set.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tString colName = iterator.next();\n\t\t\tif(paramMap.get(colName) == null) {\n\t\t\t\tparamMap.remove(colName);\n\t\t\t}\n\t\t}\n\t\treturn paramMap;\n\t}",
"void clearMap() {\n STRING_STATISTICS.clear();\n }",
"private Map<String,Object> buildParamsMap(Map<String, Object> map, HostelDTO hostelDTO){\r\n\t\tmap.put(\"hostelName\", hostelDTO.getHostelName());\r\n\t\tmap.put(\"adrStreet\", hostelDTO.getAdrStreet());\r\n\t\tmap.put(\"adrCity\", hostelDTO.getAdrCity());\r\n\t\tmap.put(\"adrState\", hostelDTO.getAdrState());\r\n\t\tmap.put(\"adrPostalCode\", hostelDTO.getAdrPostalCode());\r\n\t\tmap.put(\"adrCountry\", hostelDTO.getAdrCountry());\r\n\t\tmap.put(\"phone\", hostelDTO.getPhone());\r\n\t\tmap.put(\"email\", hostelDTO.getEmail());\r\n\t\tmap.put(\"facebook\", hostelDTO.getFacebook());\r\n\t\tmap.put(\"web\", hostelDTO.getWeb());\r\n\t\tmap.put(\"checkInTime\", hostelDTO.getCheckInTime());\r\n\t\tmap.put(\"checkOutTime\", hostelDTO.getCheckOutTime());\r\n\t\tmap.put(\"smoking\", hostelDTO.getSmoking());\r\n\t\tmap.put(\"alcohol\", hostelDTO.getAlcohol());\r\n\t\tmap.put(\"orderCancellationHoursLimit\", hostelDTO.getOrderCancellationHoursLimit());\r\n\t\tmap.put(\"cancellationFeePercant\", hostelDTO.getCancellationFeePercant());\t\r\n\t\treturn map;\r\n\t}",
"public abstract Map<String,List<Parameter>> getWorkflowParameters();",
"Map<String, Object> getFilterScratchpad();",
"public void setRunParams(final Map<String, Object> runParams0) {\n this.runParams = runParams0;\n }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> parameters = new HashMap<String, String>();\n return parameters;\n }",
"public void removeVars(){\n this.values = new HashMap<>();\n }",
"public ProductionPowerInput() {\n this.productionPowerInput = new HashMap<>();\n }",
"public abstract ImmutableMap<String, ParamInfo> getParamInfos();",
"private void mapSetUp() {\n\t\tfor (int i = 0; i < allChar.length; i++) {\n\t\t\tmap.put(allChar[i], shuffledChar[i]);\n\t\t}\n\t}",
"@Before\n public void setUp() throws Exception {\n solution2.count = 0;\n solution4.map.clear();\n }",
"public synchronized static void initConfig(ISuite suite) {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tfor (CatPawConfigProperty prop : CatPawConfigProperty.values()) {\n\t\t\t// Check if parameter is here\n\t\t\tif (suite.getParameter(prop.getName()) != null && suite.getParameter(prop.getName()) != \"\") {\n\t\t\t\tinitialValues.put(prop, suite.getParameter(prop.getName()));\n\t\t\t}\n\t\t}\n\t\tinitConfig(initialValues);\n\n\t}",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"@Override\n protected TreeMap<String, String> getCommonParamMap() {\n TreeMap commonParam = new TreeMap();\n commonParam.put(\"clintInfo\", getClientInfo());\n if(!TextUtils.isEmpty(SharedPreferencesUtil.getString(KeelApplication.getApplicationConext(),\"sessionid\"))){\n commonParam.put(\"sessionid\", SharedPreferencesUtil.getString(KeelApplication.getApplicationConext(),\"sessionid\"));\n }\n// commonParam.put(\"platformType\", \"2\");\n// commonParam.put(\"ver\", version);\n return commonParam;\n }",
"public void setGuiHashMap() {\n\n gameMap.setGetGuiHashMapParameter(\"author\",\"Default authorName\");\n gameMap.setGetGuiHashMapParameter(\"warn\",\"Default warning\");\n gameMap.setGetGuiHashMapParameter(\"image\",\"Default image\");\n gameMap.setGetGuiHashMapParameter(\"wrap\",\"Default wrapping\");\n gameMap.setGetGuiHashMapParameter(\"scroll\",\"Default scrolling\");\n }",
"public void setParameterMap(Map parametersMap)\r\n {\r\n // create a new HashMap\r\n this.parameters = new HashMap(parametersMap.size());\r\n\r\n // copy the parameters\r\n addParameterMap(parametersMap);\r\n }",
"private HashMap<String, String> returnCorrectMap(String...parameters) {\n\n\t\tHashMap<String, String> map = null;\n\n\t\ttry {\n\n\t\t\tmap = generateHashMapFromStringList(parameters);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn map;\n\t}",
"private void resetParams() {\n lowerYear = 1999;\n upperYear = 2020;\n yearRestriction = false;\n\n lowerProblem = 1;\n upperProblem = 60;\n problemRestriction = false;\n partTwo = false;\n }",
"public void clearMap() {\n this.mSimpleTargetIndexMap.clear();\n this.mSimpleTargetGroupChannelMap.clear();\n this.mChannelImageNumMap.clear();\n this.mChannelImageViewMap.clear();\n this.mChannelBitmapMap.clear();\n }",
"public abstract void setWorkflowParameters(Map<String,List<Parameter>> lParams);",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"string\", \"ChannelMapSet\", channelMapSet == null ? null : channelMapSet.getValue());\n }",
"final void getParameters()\r\n {\r\n hostName=getParameter(\"hostname\");\r\n\tIPAddress=getParameter(\"IPAddress\");\r\n\tString num=getParameter(\"maxSearch\");\r\n\tString arg=getParameter(\"debug\");\r\n\tserver=getParameter(\"server\");\r\n\tindexName=getParameter(\"indexName\");\r\n\tString colour=getParameter(\"bgColour\");\r\n\r\n\tif(colour==null)\r\n\t{\r\n\t bgColour=Color.lightGray;\r\n }\r\n else\r\n\t{\r\n\t try\r\n\t {\r\n\t bgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t bgColour=Color.lightGray;\r\n\t }\r\n\t}\r\n\t\r\n\tcolour=getParameter(\"fgColour\");\r\n\tif(colour==null)\r\n\t{\r\n\t fgColour=Color.black;\r\n\t}\r\n\telse\r\n\t{\r\n\t try\r\n\t {\r\n\t fgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t fgColour=Color.black;\r\n\t }\r\n\t}\r\n\r\n\t//Check for missing parameters.\r\n\tif(hostName==null && server==null)\r\n\t{\r\n\t statusArea.setText(\"Error-no host/server\");\r\n\t hostName=\"none\";\r\n\t}\r\n\r\n\tmaxSearch=(num == null) ? MAX_NUMBER_PAGES : Integer.parseInt(num);\r\n }",
"private void setUp() {\n\t\tString allLetter = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. 0123456789\";\n\t\tallChar = allLetter.toCharArray();\n\t\tshuffledChar = shuffle(allLetter.toCharArray());\n\t\tmap = new HashMap<Character, Character>();\n\t\tmapSetUp();\n\t}",
"@Before\n public void setUp() {\n searchMap = SearchMap.getInstance();\n }",
"public NuanceMixDlgSettings inputParameters(Map<String, Object> inputParameters) {\n this.inputParameters = inputParameters;\n return this;\n }",
"protected final void setParameters(Map<String, String> parameters) {\n m_parameters = parameters;\n if (m_parameters == null) {\n m_parameters = new HashMap<String, String>();\n }\n }",
"void clearTypedParameters();",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n params.put(\"resortName\", resortName);\n params.put(\"latitude\", String.valueOf(lat));\n params.put(\"longitude\", String.valueOf(lon));\n\n\n return params;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"ubaid\", globalVar.getUbaid());\n\n return params;\n }",
"void setParameters() {\n\t\t\n\t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }",
"protected void reset(ExitQuestionsMap dto) {}",
"private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}",
"public void init() {\n\n\t\tif (optionFields == null) {\n\t\t\toptionFields = new HashMap<String, MetaVal>();\n\t\t}\n\t\tif (inputFields == null) {\n\t\t\tinputFields = new HashMap<String, MetaVal>();\n\t\t}\n\t\tif (outputFields == null) {\n\t\t\toutputFields = new HashMap<String, MetaVal>();\n\t\t}\n\n\t\t// repository xml key tag, metavalue default, web tag, and size are set here\n\t\t// OPTIONS\n\t\toptionFields.put(TAG_OPTION_DOMINANT_BUSINESS, new MetaVal(\"yes\", \"ReturnDominantBusiness:\", 0));\n\t\toptionFields.put(TAG_OPTION_INCLUDE_CENSUS, new MetaVal(\"false\", \"GrpCensus\", 0));\n\n\n\t\t// INPUTS\n\t\tinputFields.put(TAG_INPUT_BUSINESS_NAME, new MetaVal(\"\", \"comp\", 50));\n\t\tinputFields.put(TAG_INPUT_ADDRESS_LINE1, new MetaVal(\"\", \"a1\", 50));\n\t\tinputFields.put(TAG_INPUT_ADDRESS_LINE2, new MetaVal(\"\", \"a2\", 20));\n\t\tinputFields.put(TAG_INPUT_CITY, new MetaVal(\"\", \"city\", 50));\n\t\tinputFields.put(TAG_INPUT_STATE, new MetaVal(\"\", \"state\", 3));\n\t\tinputFields.put(TAG_INPUT_POSTAL_CODE, new MetaVal(\"\", \"postal\", 10));\n\t\tinputFields.put(TAG_INPUT_COUNTRY, new MetaVal(\"US\", \"ctry\", 50));\n\t\tinputFields.put(TAG_INPUT_PHONE, new MetaVal(\"\", \"phone\", 12));\n\t\tinputFields.put(TAG_INPUT_ADDRESS_KEY, new MetaVal(\"\", \"mak\", 50));\n\t\tinputFields.put(TAG_INPUT_STOCK_TICKER, new MetaVal(\"\", \"stock\", 10));\n\t\tinputFields.put(TAG_INPUT_WEB_ADDRESS, new MetaVal(\"\", \"web\", 50));\n\n\t\t// OUTPUTS\n\t\toutputFields.put(TAG_OUTPUT_RESULTS, new MetaVal(\"MD_Results\", \"Results\", 50));\n\t\toutputFields.put(TAG_OUTPUT_COMPANY_NAME, new MetaVal(\"MD_CompanyName\", \"CompanyName\", 50));\n\t\toutputFields.put(TAG_OUTPUT_ADDRESS_LINE1, new MetaVal(\"MD_AddressLine1\", \"AddressLine1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SUITE, new MetaVal(\"MD_Suite\", \"Suite\", 50));\n\t\toutputFields.put(TAG_OUTPUT_CITY, new MetaVal(\"MD_City\", \"City\", 50));\n\t\toutputFields.put(TAG_OUTPUT_STATE, new MetaVal(\"MD_State\", \"State\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_COUNTRY_NAME, new MetaVal(\"MD_CountryName\", \"CountryName\", 50));\n\t\toutputFields.put(TAG_OUTPUT_COUNTRY_CODE, new MetaVal(\"MD_CountryCode\", \"CountryCode\", 50));\n\t\toutputFields.put(TAG_OUTPUT_EIN, new MetaVal(\"MD_EIN\", \"EIN\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_POSTAL_CODE, new MetaVal(\"MD_PostalCode\", \"PostalCode\", 10));\n\t\toutputFields.put(TAG_OUTPUT_LOCATION_TYPE, new MetaVal(\"MD_LocationType\", \"LocationType\", 50));\n// outputFields.put(TAG_OUTPUT_FEMALE_OWNED, new MetaVal(\"MD_FemaleOwned\", \"FemaleOwned\", 50));\n// outputFields.put(TAG_OUTPUT_SMALL_BUSINESS, new MetaVal(\"MD_SmallBusiness\", \"SmallBusiness\", 50));\n// outputFields.put(TAG_OUTPUT_HOME_BASED_BUSINESS, new MetaVal(\"MD_HomeBasedBusiness\", \"HomeBasedBusiness\", 50));\n\t\toutputFields.put(TAG_OUTPUT_PHONE, new MetaVal(\"MD_Phone\", \"Phone\", 50));\n// outputFields.put(TAG_OUTPUT_LOCAL_EMPLOYEES_ESTIMATE, new MetaVal(\"MD_LocalEmployeesEstimate\", \"LocalEmployeesEstimate\",\n// 50));\n// outputFields.put(TAG_OUTPUT_LOCAL_SALES_ESTIMATE, new MetaVal(\"MD_LocalSalesEstimate\", \"LocalSalesEstimate\", 50));\n\t\toutputFields.put(TAG_OUTPUT_EMPLOYEES_ESTIMATE, new MetaVal(\"MD_TotalEmployeesEstimate\", \"EmployeesEstimate\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SALES_ESTIMATE, new MetaVal(\"MD_TotalSalesEstimate\", \"SalesEstimate\", 50));\n\t\toutputFields.put(TAG_OUTPUT_STOCK_TICKER, new MetaVal(\"MD_StockTicker\", \"StockTicker\", 50));\n\t\toutputFields.put(TAG_OUTPUT_WEB_ADDRESS, new MetaVal(\"MD_WebAddress\", \"WebAddress\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_CODE, new MetaVal(\"MD_SICCode1\", \"SICCode1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_DESCRIPTION, new MetaVal(\"MD_SICDescription1\", \"SICDescription1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_CODE2, new MetaVal(\"MD_SICCode2\", \"SICCode2\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_DESCRIPTION2, new MetaVal(\"MD_SICDescription2\", \"SICDescription2\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_CODE3, new MetaVal(\"MD_SICCode3\", \"SICCode3\", 50));\n\t\toutputFields.put(TAG_OUTPUT_SIC_DESCRIPTION3, new MetaVal(\"MD_SICDescription3\", \"SICDescription3\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_CODE, new MetaVal(\"MD_NAICSCode1\", \"NAICSCode1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_DESCRIPTION, new MetaVal(\"MD_NAICSDescription1\", \"NAICSDescription1\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_CODE2, new MetaVal(\"MD_NAICSCode2\", \"NAICSCode2\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_DESCRIPTION2, new MetaVal(\"MD_NAICSDescription2\", \"NAICSDescription2\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_CODE3, new MetaVal(\"MD_NAICSCode3\", \"NAICSCode3\", 50));\n\t\toutputFields.put(TAG_OUTPUT_NAICS_DESCRIPTION3, new MetaVal(\"MD_NAICSDescription3\", \"NAICSDescription3\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_CENSUS_BLOCK, new MetaVal(\"MD_CensusBlock\", \"CensusBlock\", 50));\n\t\toutputFields.put(TAG_OUTPUT_CENSUS_TRACT, new MetaVal(\"MD_CensusTract\", \"CensusTract\", 50));\n\t\toutputFields.put(TAG_OUTPUT_COUNTY_FIPS, new MetaVal(\"MD_CountyFIPS\", \"CountyFIPS\", 50));\n\t\toutputFields.put(TAG_OUTPUT_COUNTY_NAME, new MetaVal(\"MD_CountyName\", \"CountyName\", 50));\n\t\toutputFields.put(TAG_OUTPUT_DELIVERY_INDICATOR, new MetaVal(\"MD_DeliveryIndicator\", \"DeliveryIndicator\", 50));\n\t\toutputFields.put(TAG_OUTPUT_LATITUDE, new MetaVal(\"MD_Latitude\", \"Latitude\", 50));\n\t\toutputFields.put(TAG_OUTPUT_LONGITUDE, new MetaVal(\"MD_Longitude\", \"Longitude\", 50));\n\t\toutputFields.put(TAG_OUTPUT_MD_ADDRESS_KEY, new MetaVal(\"MD_MelissaAddressKey\", \"MelissaAddressKey\", 50));\n\t\toutputFields.put(TAG_OUTPUT_MD_ADDRESS_KEY_BASE, new MetaVal(\"MD_MelissaAddressKeyBase\", \"MelissaAddressKeyBase\", 50));\n\t\toutputFields.put(TAG_OUTPUT_PLUS_4, new MetaVal(\"MD_Plus4\", \"Plus4\", 50));\n\t\toutputFields.put(TAG_OUTPUT_PLACE_NAME, new MetaVal(\"MD_PlaceName\", \"PlaceName\", 50));\n\t\toutputFields.put(TAG_OUTPUT_PLACE_CODE, new MetaVal(\"MD_PlaceCode\", \"PlaceCode\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_FIRST_NAME_1, new MetaVal(\"MD_FirstName1\", \"NameFirst\", 50));\n\t\toutputFields.put(TAG_OUTPUT_LAST_NAME_1, new MetaVal(\"MD_LastName1\", \"NameLast\", 50));\n\t\toutputFields.put(TAG_OUTPUT_GENDER_1, new MetaVal(\"MD_Gender1\", \"Gender\", 50));\n\t\toutputFields.put(TAG_OUTPUT_TITLE_1, new MetaVal(\"MD_Title1\", \"Title\", 50));\n\t\toutputFields.put(TAG_OUTPUT_EMAIL_1, new MetaVal(\"MD_Email1\", \"Email\", 50));\n\n\t\toutputFields.put(TAG_OUTPUT_FIRST_NAME_2, new MetaVal(\"MD_FirstName2\", \"NameFirst\", 50));\n\t\toutputFields.put(TAG_OUTPUT_LAST_NAME_2, new MetaVal(\"MD_LastName2\", \"NameLast\", 50));\n\t\toutputFields.put(TAG_OUTPUT_GENDER_2, new MetaVal(\"MD_Gender2\", \"Gender\", 50));\n\t\toutputFields.put(TAG_OUTPUT_TITLE_2, new MetaVal(\"MD_Title2\", \"Title\", 50));\n\t\toutputFields.put(TAG_OUTPUT_EMAIL_2, new MetaVal(\"MD_Email2\", \"Email\", 50));\n\n\t}",
"public ProductionPowerInput(Map<ResourceType, Integer> input) {\n Map<Resource, Integer> tmpInput = new HashMap<>();\n input.forEach( (k,v) -> tmpInput.put(ResourceType.getResourceClass(k), v));\n productionPowerInput = tmpInput;\n }",
"@Override\r\n\tpublic void setParameters(Map<String, String[]> parameters){\n\t\tthis.parameters=parameters;\r\n\t}",
"@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }",
"public List<Map> getAllParameters() {\n List<Map> allProductParameters = new ArrayList<Map>();\n if (processorParametres != null) allProductParameters.add(processorParametres);\n if (sellerParametres != null) allProductParameters.add(sellerParametres);\n if (storageParametres != null) allProductParameters.add(storageParametres);\n\n return allProductParameters;\n }",
"public void SetInputParameters(AbstractParameterDictionary params) throws Exception {\n\t\t//String paramsClass = params.getClass().getSimpleName();\n\t\t\n\t\tthis.inputParameters = params;\n\t}",
"public void setup(Context context) throws IOException, InterruptedException{\n results = new HashMap<String, HashMap<String,Double[]>>();\n }",
"protected Map<String, Object> getConfigurationParameters(){\n\t\treturn configurationParameters;\n\t}"
] | [
"0.6021905",
"0.60106486",
"0.59420925",
"0.59206825",
"0.5909475",
"0.5883539",
"0.58140075",
"0.58139074",
"0.57475847",
"0.5745682",
"0.5731471",
"0.57199895",
"0.5681015",
"0.5667845",
"0.5659342",
"0.56467116",
"0.55991364",
"0.5516771",
"0.5516771",
"0.5480858",
"0.54727715",
"0.5471772",
"0.54644614",
"0.5463727",
"0.54502815",
"0.54474884",
"0.5391179",
"0.5385975",
"0.53686786",
"0.5366428",
"0.53458077",
"0.5343397",
"0.5321719",
"0.53101707",
"0.53077424",
"0.5279761",
"0.52731013",
"0.52406895",
"0.5239441",
"0.52233154",
"0.52208364",
"0.5212221",
"0.5188405",
"0.5186909",
"0.51853824",
"0.51835763",
"0.5171165",
"0.5169006",
"0.51663786",
"0.5160689",
"0.51587373",
"0.5155355",
"0.5150708",
"0.5149941",
"0.5149174",
"0.51432633",
"0.51414555",
"0.5138671",
"0.51298505",
"0.5128706",
"0.5126681",
"0.51060647",
"0.50966567",
"0.50823665",
"0.506542",
"0.50628626",
"0.50558066",
"0.50530165",
"0.50409985",
"0.5040511",
"0.5021479",
"0.5019811",
"0.50196177",
"0.50158",
"0.5007712",
"0.50035465",
"0.4993528",
"0.49925783",
"0.49925783",
"0.49925783",
"0.49925783",
"0.4982005",
"0.4980213",
"0.49783376",
"0.49782756",
"0.49749392",
"0.4969728",
"0.496452",
"0.49561736",
"0.49531645",
"0.49431968",
"0.4937941",
"0.4929534",
"0.49249056",
"0.4924336",
"0.49228647",
"0.49226582",
"0.49136746",
"0.49123746",
"0.49113464",
"0.49110755"
] | 0.0 | -1 |
no need for transaction annotation | public interface MenuInstanceRepo extends JpaRepository<MenuInstance,Long> {
public List<MenuInstance> findByMenuNameContains(String menuName);
public MenuInstance findByMenuTypeAndMenuForDate(String menuType, LocalDate menuForDate);
public List<MenuInstance> findByMenuType(String menuType);
public List<MenuInstance> findByMenuTypeAndMenuForDateAfter(String menuType, LocalDate fromDate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void commitTx() {\n \n }",
"@Override\n\tpublic void onTransactionStart() {}",
"Transaction createTransaction();",
"Transaction getCurrentTransaction();",
"@Override\n public void startTx() {\n \n }",
"Transaction getTransaction() { \r\n return tx;\r\n }",
"void readOnlyTransaction();",
"public void beginTransaction() {\n\r\n\t}",
"void startTransaction();",
"public void commit(){\n \n }",
"public void authorizeTransaction() {}",
"void beginTransaction();",
"@Transactional\n\tpublic void myMethod2() {\n\n\t}",
"@Override\n public void rollbackTx() {\n \n }",
"IDbTransaction beginTransaction();",
"Transaction save(Transaction transaction);",
"public void commitTransaction() {\n\r\n\t}",
"Transaction beginTx();",
"public void beginTransaction() throws Exception;",
"@Override\n public void commit() {\n }",
"public void forceCommitTx()\n{\n}",
"public void rollbackTx()\n\n{\n\n}",
"@Override\n\tpublic void commit() {\n\n\t}",
"void commitTransaction();",
"public void createTransaction(Transaction trans);",
"protected abstract Transaction createAndAdd();",
"@Transactional\npublic interface VideoDao extends CrudRepository<Video, Long> {\n}",
"void commit(Transaction transaction);",
"@Transactional\r\n\tpublic void addUser(){\r\n\t}",
"public int startTransaction();",
"@Transactional\npublic interface TxExabiscompetencesCrosssubjectDAO extends CrudRepository<TxExabiscompetencesCrosssubject, Long> {\n}",
"@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tSignatureBean signatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsInJhd0tleVZhbHVlcyI6WyIxIiwiMSJdLCJyYXdLZXlUeXBlTmFtZXMiOlsiamF2YS5sYW5nLkludGVnZXIiLCJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tMasterBEnt masterBEnt = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQUVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoiZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> detailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29tcCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAiLCJyYXdLZXlWYWx1ZXMiOlsiMSIsIjEiXSwicmF3S2V5VHlwZU5hbWVzIjpbImphdmEubGFuZy5JbnRlZ2VyIiwiamF2YS5sYW5nLkludGVnZXIiXX0\");\r\n\t\t\t\tMasterBComp masterBComp = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAuZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIiwiMSJdLCJyYXdLZXlUeXBlTmFtZXMiOlsiamF2YS5sYW5nLkludGVnZXIiLCJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> compDetailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29tcCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAubWFzdGVyQkNvbXBDb21wIiwicmF3S2V5VmFsdWVzIjpbIjEiLCIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciIsImphdmEubGFuZy5JbnRlZ2VyIl19\");\r\n\t\t\t\tMasterBCompComp masterBCompComp = PlayerManagerTest.this.manager.getBySignature(signatureBean);\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAubWFzdGVyQkNvbXBDb21wLmRldGFpbEFFbnRDb2wiLCJyYXdLZXlWYWx1ZXMiOlsiMSIsIjEiXSwicmF3S2V5VHlwZU5hbWVzIjpbImphdmEubGFuZy5JbnRlZ2VyIiwiamF2YS5sYW5nLkludGVnZXIiXX0\");\r\n\t\t\t\tCollection<DetailAEnt> compCompDetailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tAssert.assertThat(\"masterBEnt.getMasterBComp(), sameInstance(masterBComp)\", masterBEnt.getMasterBComp(), sameInstance(masterBComp));\r\n\t\t\t\tAssert.assertThat(\"masterBEnt.getMasterBComp().getMasterBCompComp(), sameInstance(masterBCompComp)\", masterBEnt.getMasterBComp().getMasterBCompComp(), sameInstance(masterBCompComp));\r\n\t\t\t\t\r\n\t\t\t\tAssert.assertThat(\"masterBComp.getMasterBCompComp(), sameInstance(masterBCompComp)\", masterBComp.getMasterBCompComp(), sameInstance(masterBCompComp));\r\n\t\t\t\tAssert.assertThat(\"detailAEntCol, not(sameInstance(compDetailAEntCol))\", detailAEntCol, not(sameInstance(compDetailAEntCol)));\r\n\t\t\t\tAssert.assertThat(\"detailAEntCol, not(sameInstance(compCompDetailAEntCol))\", detailAEntCol, not(sameInstance(compCompDetailAEntCol)));\r\n\t\t\t\tAssert.assertThat(\"compDetailAEntCol, not(sameInstance(compCompDetailAEntCol))\", compDetailAEntCol, not(sameInstance(compCompDetailAEntCol)));\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Repository\n@Transactional\npublic interface DemoDao {\n\n public void insert(Map map);\n\n}",
"@Override\n\tpublic void joinTransaction() {\n\t\t\n\t}",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"@Transactional\npublic interface RouteJPA extends JpaRepository<RouteEntity, String> {\n\n}",
"@Transactional\npublic interface StudentRepository extends JpaRepository<Student,Long> {\n}",
"@Transactional\npublic interface OperationDaoI extends BaseDaoI<Operation> {\n\n void saveOperation(Operation operation);\n}",
"@Test\n @Transactional\n //@Rollback(value = false)\n void getCategoryList() {\n }",
"public Transaction() {\n }",
"void commit() {\n }",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\n\t}",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\t\t\n\t}",
"@Transactional\npublic interface TransactionRepository extends JpaRepository<TransactionDao, Integer> {\n\n List<TransactionDao> findAll();\n}",
"@Transactional\npublic interface PredecessorReleaseMapDAO extends\n CrudRepository<PredecessorReleaseMap, Long> {\n\n\n}",
"public void commit() {\n }",
"public Transaction getTransaction()\n {\n return transaction;\n }",
"public interface TransactionReadOnly {\n boolean isReadyOnly(String sql);\n\n}",
"public interface TransactionRepository extends CrudRepository<Transaction> {\r\n\r\n}",
"public void completeOrderTransaction(Transaction trans){\n }",
"@Override\n\t@Transactional(propagation=Propagation.REQUIRED)\n\tpublic String test() {\n\t\n\t\treturn \"Spring-Jersey Integration\";\n\t}",
"public void commit();",
"@Transactional\npublic interface FoodRepository extends CrudRepository<Food, Long> {\n\n}",
"@Transactional\npublic interface OpinionDao extends CrudRepository< Opinion, OpinionPK> {\n}",
"public interface BookCustomerService {\n public List<BookCustomerInfoQuery> query(BookCustomer customer);\n\n public BookCustomer queryOne(BookCustomer customer);\n\n public void insert(BookCustomer customer) throws Exception;\n\n\n public void deleteById(BookCustomer bookCustomer);\n\n @Transactional\n public BaseResult insertOrder(String areaId,String price,String payType,String phone,String date,String person,String startTime,String endTime) throws Exception;\n ;\n}",
"public interface TransactionDAO {\n \n String addTransaction(Long userId, String transaction) throws Exception;\n \n String showTransaction(Long userId, String transactionId) throws Exception;\n \n String listTransactions(Long userId) throws Exception;\n \n String sumTransactions(Long userId) throws Exception;\n \n}",
"@Transactional\npublic interface ProjectStageActionMovementRepository extends JpaRepository<ProjectStageActionMovement,Long> {\n}",
"@Test\r\n\t@Transactional\r\n\tpublic void test(){\n\t\t\r\n\t\tList<Foo> foos = dao.findAll();\r\n\t\tfor (Foo foo : foos) {\r\n\t\t\tSystem.out.println( foo.getName() );\r\n\t\t}\r\n\t}",
"void commit();",
"void commit();",
"@Transactional\n DataRistorante insert(DataRistorante risto);",
"public interface Transaction {\n void Execute();\n}",
"@Ignore\n @Test @Transactional\n\tpublic void testRenderMyPage()\n\t{\n\t}",
"public abstract void commit();",
"protected Transaction getTransaction() {\n return sessionFactory.getCurrentSession().getTransaction();\n }",
"@Repository\n@Transactional\npublic interface PointOfInterestDao extends CrudRepository<PointOfInterest, Integer> {\n}",
"protected abstract Object getTransactionObject() throws TransactionInfrastructureException;",
"void sendTransactionToServer()\n \t{\n \t\t//json + sql magic\n \t}",
"public void commitEntity();",
"public interface UserService extends Service<User> {\n\n @Transactional(isolation = Isolation.SERIALIZABLE)\n boolean addTour(long userId, long tourId);\n\n @Transactional(isolation = Isolation.SERIALIZABLE)\n boolean deleteTour(long userId, long tourId);\n\n @Transactional(isolation = Isolation.SERIALIZABLE)\n List<Tour> tourList(long userId);\n}",
"public interface EthTransactionPendingDao {\n\n EthTransactionPending save(EthTransactionPending ethTransactionPending);\n\n List<EthTransactionPending> getTransactions(long limit);\n\n void delete(String hash);\n}",
"@Override\n\tpublic void rollBack() {\n\n\t}",
"@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\tMasterAEnt masterAEnt = (MasterAEnt) ss.get(MasterAEnt.class, 1);\r\n\t\t\t\t//doing lazy-load\r\n\t\t\t\tmasterAEnt.getDetailAEntCol().size();\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest.this\r\n\t\t\t\t\t.manager\r\n\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(true));\r\n\t\t\t\t\r\n\t\t\t\tSignatureBean signatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQUVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoiZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> detailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\tArrayList<DetailAEnt> detailAEntCuttedCol = new ArrayList<>();\r\n\t\t\t\tdetailAEntCuttedCol.add(new ArrayList<>(detailAEntCol).get(0));\r\n\t\t\t\tdetailAEntCuttedCol.add(new ArrayList<>(detailAEntCol).get(1));\r\n\t\t\t\tPlayerSnapshot<Collection<DetailAEnt>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(detailAEntCuttedCol);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}",
"public VerifyTransactionImpl() {\n super();\n }",
"@Transactional\npublic interface ProteinDatabaseManagement {\n /**\n * Persists protein Id search database. This database could be available for everyone in case experiment param is null\n **/\n long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);\n\n long updateDatabaseDetails(long actor, long database, String databaseName, long databaseType);\n\n\n void deleteDatabase(long actor, long db);\n\n long getMaxDatabaseSize();\n\n void specifyProteinDatabaseContent(long userId, long proteinDb, String contentUrl);\n\n void markDatabasesInProgress(Iterable<Long> dbs);\n\n void updateDatabaseSharing(long actor, boolean bPublic, long databaseId);\n\n DuplicateResponse duplicateDatabase(long actor, long database);\n\n class DuplicateResponse{\n public final Long id;\n public final String errorMessage;\n\n public DuplicateResponse(Long id, String errorMessage) {\n this.id = id;\n this.errorMessage = errorMessage;\n }\n }\n}",
"@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\tMasterAEnt masterAEnt = (MasterAEnt) ss.get(MasterAEnt.class, 1);\r\n\t\t\t\t//doing lazy-load\r\n\t\t\t\tmasterAEnt.getDetailAEntCol().size();\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest.this\r\n\t\t\t\t\t.manager\r\n\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(true));\r\n\t\t\t\t\r\n\t\t\t\tSignatureBean signatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQUVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoiZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> detailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\tArrayList<DetailAEnt> detailAEntCuttedCol = new ArrayList<>();\r\n\t\t\t\tdetailAEntCuttedCol.add(new ArrayList<>(detailAEntCol).get(1));\r\n\t\t\t\tdetailAEntCuttedCol.add(new ArrayList<>(detailAEntCol).get(2));\r\n\t\t\t\tPlayerSnapshot<Collection<DetailAEnt>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(detailAEntCuttedCol);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}",
"public interface OrderService {\n @Transactional\n void processOrder(Orders orders);\n}",
"@Transactional\npublic interface ProjectStageMovementRepository extends JpaRepository<ProjectStageMovement, Long> {\n}",
"@Transactional\npublic interface DispenseDrugService extends OpenmrsService{\n @Transactional(readOnly = true)\n List<DispenseDrug> getAllMyDispensedDrugs();\n\n @Transactional(readOnly = true)\n DispenseDrug getMyDispensedDrug(Integer myDispenseDrugId);\n\n DispenseDrug saveMyDispensedDrug(DispenseDrug dispenseDrug);\n\n DispenseDrug updateMyDispensedDrug(DispenseDrug dispenseDrug);\n\n void purgeMyDispensedDrug(DispenseDrug dispenseDrug);\n\n /*@Transactional(readOnly = true)\n List<DispenseDrug> showDrugOrderByTime();*/\n}",
"@Override\r\n\t@Transactional\r\n\tpublic void doService() {\n\t\tTbookingrecord booking = new Tbookingrecord();\r\n\t\tbooking.setId(Long.valueOf(31622L));\r\n\t\tbooking.setInstrumentid(2);\r\n\t\tbooking.setUserid(3);\r\n\t\tmappper.insertSelective(booking);\r\n\t\tlogger.debug(booking);\r\n\t\t//int i = 1/0;\r\n\t}",
"@Transactional\npublic interface PostDao extends CrudRepository<Post, Long> {\n\n Post findById(Long id);\n\n}",
"public interface TransactionBubble<T> {\n\n T doInTransaction(Session session, Injector injector);\n}",
"public interface TransactionBo {\n\n String save();\n}",
"public interface TransactionDAO\n{\n public void addTransaction(Transaction transaction);\n public Transaction findById(Integer id);\n public List<Transaction> getAll();\n}",
"@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\r\n\t\t\t\tMasterAEnt masterAEnt = (MasterAEnt) ss.get(MasterAEnt.class, 1);\r\n\t\t\t\t//doing lazy-load\r\n\t\t\t\tmasterAEnt.getDetailAEntCol().size();\r\n\t\t\t\t\r\n\t\t\t\tPlayerManagerTest.this\r\n\t\t\t\t\t.manager\r\n\t\t\t\t\t.overwriteConfigurationTemporarily(\r\n\t\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t\t.clone()\r\n\t\t\t\t\t\t\t\t\t\t.configSerialiseBySignatureAllRelationship(true));\r\n\t\t\t\t\r\n\t\t\t\tSignatureBean signatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQUVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoiZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> detailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\tPlayerSnapshot<Collection<DetailAEnt>> playerSnapshot = PlayerManagerTest.this.manager.createPlayerSnapshot(detailAEntCol);\r\n\t\t\t\t\r\n\t\t\t\tFileOutputStream fos;\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfos = new FileOutputStream(generatedFileResult);\r\n\t\t\t\t\tPlayerManagerTest\r\n\t\t\t\t\t\t.this\r\n\t\t\t\t\t\t\t.manager\r\n\t\t\t\t\t\t\t\t.getConfig()\r\n\t\t\t\t\t\t\t\t\t.getObjectMapper()\r\n\t\t\t\t\t\t\t\t\t\t.writerWithDefaultPrettyPrinter()\r\n\t\t\t\t\t\t\t\t\t\t\t.writeValue(fos, playerSnapshot);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tthrow new RuntimeException(\"Unexpected\", e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}",
"boolean getTransactional();",
"public int orderCountByUser(int userId)throws ApplicationEXContainer.ApplicationCanNotChangeException{\n int count;\n try(Connection connection = MySQLDAOFactory.getConnection();\n AutoRollback autoRollback = new AutoRollback(connection)){\n count = orderDao.orderCountByUser(connection,userId);\n autoRollback.commit();\n } catch (SQLException | NamingException | DBException throwables) {\n LOGGER.error(throwables.getMessage());\n throw new ApplicationEXContainer.ApplicationCanNotChangeException(throwables.getMessage(),throwables);\n }\n return count;\n}",
"@Repository\n@Transactional(propagation = Propagation.REQUIRED)\npublic interface AccountCalendarService extends AbstractEntityService<AccountCalendar> {\n\n}",
"public boolean isTransactional()\n {\n return _isTransactional;\n }",
"IDbTransaction beginTransaction(IsolationLevel il);",
"public interface TransactionRepository extends CrudRepository<Transaction, Integer> {\n}",
"@Override\r\n\t\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\r\n\t\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\t\tsqlLogInspetor.enable();\r\n\r\n\t\t\t\t\tMasterAEnt masterAEnt = (MasterAEnt) ss.get(MasterAEnt.class, 1);\r\n\t\t\t\t\tmasterAEnt.setBlobLazyB(null);\r\n\t\t\t\t\targ0.flush();\r\n\t\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}",
"public void openTheTransaction() {\n openTransaction();\n }",
"@Transactional\npublic interface IShortMessageService {\n\n @Transactional(readOnly=true)\n public List<ShortMessageDto> getAll();\n\n @Transactional(readOnly=true)\n public ShortMessageDto getById(Long messageId);\n\n @Transactional(readOnly=true)\n public List<ShortMessageDto> getLatest10();\n\n public Long add(String messageBody);\n\n public void update(ShortMessageDto messageDto);\n\n public void delete(Long messageID);\n\n}",
"@Transactional\npublic interface ReportEntryDAO {\n public List<ReportEntry> findItems(final Integer sem_id, final Integer dept_id, final Integer teacher_id);\n public void create(ReportEntry reportEntry);\n\n void update(ReportEntry reportEntry);\n ReportEntry find(final Integer id);\n\n public void delete(final int id);\n\n}",
"public TransactionalElement<E> commit();",
"private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }",
"@Override\n\tpublic Transaction update(Transaction transaction) {\n\t\treturn null;\n\t}",
"@Mapper\npublic interface ApiDataDao {\n\n @Transactional(readOnly = false)\n public void insert(ApiData apiData);\n\n}",
"public void transactionStarted() {\n transactionStart = true;\n }",
"@Override\n\tpublic EntityTransaction getTransaction() {\n\t\treturn null;\n\t}"
] | [
"0.70924306",
"0.68867373",
"0.68425107",
"0.68123144",
"0.6798979",
"0.6691571",
"0.6672019",
"0.66673946",
"0.6625511",
"0.661579",
"0.6613115",
"0.6612499",
"0.6601889",
"0.6597945",
"0.654614",
"0.6518117",
"0.65100724",
"0.6487693",
"0.6477772",
"0.64650905",
"0.6463362",
"0.6422957",
"0.6384176",
"0.63824606",
"0.6365171",
"0.6360833",
"0.6351985",
"0.6331934",
"0.6296414",
"0.6279559",
"0.6274226",
"0.6259211",
"0.6257748",
"0.6248154",
"0.6230264",
"0.6227499",
"0.6200825",
"0.6173244",
"0.6171188",
"0.61595845",
"0.6153373",
"0.61529565",
"0.61476624",
"0.6146081",
"0.6142715",
"0.6140524",
"0.61393964",
"0.6121992",
"0.6120479",
"0.61190563",
"0.6116649",
"0.61085325",
"0.6101934",
"0.60992795",
"0.609425",
"0.6091222",
"0.6085731",
"0.6084087",
"0.60835654",
"0.60835654",
"0.6079747",
"0.6078226",
"0.60777414",
"0.6071757",
"0.607007",
"0.60692656",
"0.6062358",
"0.6051908",
"0.60508955",
"0.60488594",
"0.60458905",
"0.60424805",
"0.60388917",
"0.6038691",
"0.60377705",
"0.603737",
"0.6036277",
"0.60285145",
"0.6026748",
"0.60249275",
"0.6013919",
"0.6010188",
"0.60079604",
"0.59946305",
"0.5993044",
"0.59908944",
"0.597063",
"0.59659636",
"0.595787",
"0.5951949",
"0.5945981",
"0.59438574",
"0.5943184",
"0.59249705",
"0.5924293",
"0.5923121",
"0.5919725",
"0.589932",
"0.5887215",
"0.5886202",
"0.58843535"
] | 0.0 | -1 |
TODO: This method really should be private again. | public void updatePath() {
String oldPath = this.path;
if (materializePath()) {
PageAlias.create(this, oldPath);
updateChildPaths();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override public int describeContents() { return 0; }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"public void method_4270() {}",
"@Override\n protected void prot() {\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\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n protected void getExras() {\n }",
"@Override\n protected void init() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n public int describeContents()\n {\n return 0;\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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}",
"private void kk12() {\n\n\t}",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"private Unescaper() {\n\n\t}",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"protected abstract Set method_1559();",
"@Override\n public void init() {\n }",
"protected boolean func_70041_e_() { return false; }",
"@Override\r\n public int describeContents() {\r\n return 0;\r\n }",
"@Override\n void init() {\n }",
"private static void iterator() {\n\t\t\r\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public void init() {}",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"private void init() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private Util() { }",
"@Override\n public Object preProcess() {\n return null;\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}"
] | [
"0.56944215",
"0.56834906",
"0.56009674",
"0.5577064",
"0.55636215",
"0.5509648",
"0.5494166",
"0.5430393",
"0.54183173",
"0.54002476",
"0.5393578",
"0.53759253",
"0.5371317",
"0.5367053",
"0.526984",
"0.52680403",
"0.52680403",
"0.52680403",
"0.52680403",
"0.52680403",
"0.52680403",
"0.5252554",
"0.5221826",
"0.5203018",
"0.5195061",
"0.5194332",
"0.5186836",
"0.51474875",
"0.5140444",
"0.51318395",
"0.51318395",
"0.5131142",
"0.5108869",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.51071095",
"0.5101502",
"0.5096021",
"0.5094583",
"0.5094583",
"0.5085776",
"0.508388",
"0.5067846",
"0.50674087",
"0.5066353",
"0.50639844",
"0.5060991",
"0.5054403",
"0.50495076",
"0.504643",
"0.5026869",
"0.5026778",
"0.5025601",
"0.5015436",
"0.50144583",
"0.50119495",
"0.5011203",
"0.5010357",
"0.5008258",
"0.49915445",
"0.49892068",
"0.4988126",
"0.49863392",
"0.498375",
"0.498375",
"0.498375",
"0.498375",
"0.498375",
"0.4980328",
"0.4974704",
"0.4973708",
"0.49663252",
"0.49658555",
"0.49658555"
] | 0.0 | -1 |
Implementation of the Lifecycle interface | public void onSave() {
setCreationDate(new Date());
PageAlias.create(this, null);
updateChildPaths();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Lifecycle extends Startable, Stopable {\r\n\r\n}",
"LifecycleState lifecycleState();",
"LifecycleState lifecycleState();",
"@Override\n\tLifecycle on();",
"@Override\n\tprotected void startInternal() throws LifecycleException {\n\t\t\n\t}",
"public interface BaseLifecycleObserver extends LifecycleObserver {\n @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)\n void onCrete();\n\n/* @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)\n void onResume();\n\n @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)\n void onPause();\n\n @OnLifecycleEvent(Lifecycle.Event.ON_STOP)\n void onStop();*/\n\n @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)\n void onDestroy();\n}",
"public Lifecycle(Object source) {\n super(source);\n }",
"public interface Lifecycle {\n\n /**\n * Called when an MBean is started\n *\n * @throws Exception if something went wrong.\n */\n void start() throws Exception;\n\n /**\n * Called when an MBean is stopped\n */\n void stop();\n}",
"public interface LifecycleEventListener {\n\n /**\n * Called when host (activity/service) receives resume event (e.g. {@link Activity#onResume}\n */\n void onHostResume();\n\n /**\n * Called when host (activity/service) receives pause event (e.g. {@link Activity#onPause}\n */\n void onHostPause();\n\n /**\n * Called when host (activity/service) receives destroy event (e.g. {@link Activity#onDestroy}\n */\n void onHostDestroy();\n\n}",
"@Override\n public synchronized void start() {\n\n lifecycleState = LifecycleState.START;\n }",
"public AbstractLifecycleMetaData()\n {\n }",
"interface Lifecycle {\n\n\t\t/**\n\t\t * Assign a {@link Runnable} to be invoked when the channel is closed.\n\t\t *\n\t\t * @param onClose the close event handler\n\t\t * @return {@literal this}\n\t\t */\n\t\tLifecycle close(Runnable onClose);\n\n\t\t/**\n\t\t * Assign a {@link Runnable} to be invoked when reads have become idle for the given timeout.\n\t\t *\n\t\t * @param idleTimeout the idle timeout\n\t\t * @param onReadIdle the idle timeout handler\n\t\t * @return {@literal this}\n\t\t */\n\t\tLifecycle readIdle(long idleTimeout, Runnable onReadIdle);\n\n\t\t/**\n\t\t * Assign a {@link Runnable} to be invoked when writes have become idle for the given timeout.\n\t\t *\n\t\t * @param idleTimeout the idle timeout\n\t\t * @param onWriteIdle the idle timeout handler\n\t\t * @return {@literal this}\n\t\t */\n\t\tLifecycle writeIdle(long idleTimeout, Runnable onWriteIdle);\n\t}",
"public String getLifecycle() {\n return lifecycle;\n }",
"public abstract void lifeCycle();",
"public void setLifecycle(String lifecycle) {\n this.lifecycle = lifecycle;\n }",
"public interface CanalLifeCycle {\n void start();\n\n void stop();\n\n boolean isStart();\n}",
"protected void setUpLifecycle() throws Exception\n {\n lifecycleFactory = (LifecycleFactory) FactoryFinder\n .getFactory(FactoryFinder.LIFECYCLE_FACTORY);\n lifecycle = lifecycleFactory\n .getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);\n }",
"public Lifecycle getLifecycle() {\n return Lifecycle.SERVER;\n }",
"@Override\n public void onStart() {\n Log.e(TAG, \"detect the lifecycleowner--- started\");\n }",
"public interface LifecyclePolicy {\n\t/**\n\t * Invoked when the server failed to start, or it could not be determined that the server has started.\n\t *\n\t * @param redisServer\n\t * the server which failed to start\n\t */\n\tvoid failedToStart(RedisServer redisServer);\n\n\t/**\n\t * Invoked when the server failed to stop, or it could not be determined that the server has stopped.\n\t *\n\t * @param redisServer\n\t * the server which failed to start\n\t * @param cause\n\t * the cause\n\t * @throws FailedToStopException\n\t * optionally thrown by the implementing class\n\t */\n\tvoid failedToStop(RedisServer redisServer, Throwable cause) throws FailedToStopException;\n\n\t/**\n\t * Get a {@code ProcessDestroyer} that can be used to destroy a redis server outside of its normal lifecycle. This\n\t * is useful for destroying a redis server process when the JVM terminates, for example. An implementation should\n\t * return {@link NullProcessDestroyer#INSTANCE} if no special behaviour is needed.\n\t *\n\t * @return a {@code ProcessDestroyer} instance\n\t */\n\tProcessDestroyer getProcessDestroyer();\n}",
"public interface AppLifecycles {\n void attachBaseContext(Context base);\n\n void onCreate(Application application);\n\n void onTerminate(Application application);\n}",
"public static LifecycleContext getLifecycleContext()\n {\n return context;\n }",
"public interface AppLifecycles {\n\n void attachBaseContext(@NonNull Context base);\n\n void onCreate(@NonNull Application application);\n\n void onTerminate(@NonNull Application application);\n}",
"StatePacBuilder lifecycleState(LifecycleState lifecycleState);",
"public T caseLifecycle(Lifecycle object) {\n\t\treturn null;\n\t}",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t}",
"public LifecycleState getLifecycleState() {\n\t\treturn null;\n\t}",
"public static void startLifecycle()\n throws LifecycleException\n {\n try {\n ThreadLifecycle.getInstance().getCCLPolicy().bindCCL();\n \n synchronized( Lifecycle.class ) {\n // if xchains is currently running, then throw a lifecycle exception.\n if( isRunning() ) {\n throw new LifecycleException(\"Start Lifecycle called while xchains is running.\");\n }\n\n try {\n // create a new Lifecycle context.\n context = new LifecycleContext();\n context.setClassLoader(new LifecycleClassLoader(Thread.currentThread().getContextClassLoader()));\n\n // scan for the lifecycle listeners.\n startLifecycleSteps();\n // Clear the scanner cache now that all the lifecycles are done using it.\n ScannerLifecycle.getInstance().clearCache();\n }\n catch( LifecycleException le ) {\n context = null;\n throw le;\n }\n catch( Throwable t ) {\n context = null;\n throw new LifecycleException(\"Could not start the lifecycle due to a throwable.\", t);\n }\n }\n\n }\n finally {\n ThreadLifecycle.getInstance().getCCLPolicy().unbindCCL();\n }\n }",
"public interface ILifeCycle {\n <T> LifecycleTransformer<T> doBindToLifecycle();\n}",
"public void onStartImpl() {\n }",
"@Override\n\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t}",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"private static void startLifecycleSteps()\n throws LifecycleException\n {\n // Create a scanner to find the lifecycle steps in the current classpath.\n LifecycleStepScanner scanner = new LifecycleStepScanner(context);\n try {\n scanner.scan();\n lifecycleStepList = scanner.getLifecycleStepList();\n }\n catch( ScanException se ) {\n throw new LifecycleException(\"An exception was thrown while scanning for lifecycle steps.\", se);\n }\n\n if( log.isInfoEnabled() ) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found \").append(lifecycleStepList.size()).append(\" lifecycle steps:\\n\");\n for( LifecycleStep lifecycleStep : lifecycleStepList ) {\n message.append(\" \").append(lifecycleStep.getQName()).append(\"\\n\");\n }\n log.info(message.toString());\n }\n\n // Start all the found lifecycle steps.\n ListIterator<LifecycleStep> iterator = lifecycleStepList.listIterator();\n try {\n while( iterator.hasNext() ) {\n LifecycleStep lifecycleStep = iterator.next();\n\n if( log.isInfoEnabled() ) {\n log.info(\"Starting Lifecycle Step '\"+lifecycleStep.getQName()+\"'.\");\n }\n lifecycleStep.startLifecycle(context, Lifecycle.configDocumentContext);\n if( log.isInfoEnabled() ) {\n log.info(\"Finished Lifecycle Step '\"+lifecycleStep.getQName()+\"'.\");\n }\n }\n }\n catch( LifecycleException le ) {\n if( log.isErrorEnabled() ) {\n log.error(\"Stopping the lifecycle startup due to a lifecycle exception.\", le);\n }\n iterator.previous();\n while( iterator.hasPrevious() ) {\n LifecycleStep lifecycleStep = iterator.previous();\n try {\n lifecycleStep.stopLifecycle(context);\n }\n catch( Throwable t ) {\n if( log.isWarnEnabled() ) {\n log.warn(\"An exception was thrown while stopping a lifecycle exception.\", t);\n }\n }\n }\n\n // clear the lifecycle step list.\n lifecycleStepList.clear();\n\n // we should throw the lifecycle exception here.\n throw le;\n } \n finally {\n // make sure the configuration DOM gets garbage collected, no reason to keep it around once everyone is configured.\n Lifecycle.configDocumentContext = null;\n }\n \n }",
"List<LifecycleCallbackItem> getLifecycleCallbacks();",
"@Override\n public void start() {\n System.out.println(\"smart life cycle start\");\n flag = true;\n }",
"@Override\n\tprotected void stopInternal() throws LifecycleException {\n\t\t\n\t}",
"@Override\n public void onStart() {\n \n }",
"@Override\n public void onStart() {\n \n }",
"public void onStart() {\n }",
"public void run() {\n boolean debug = debugLifecycle;\r\n if (debug) {\r\n System.out.println(\"Created : \" + getName()); \r\n }\r\n try {\r\n alive.incrementAndGet();\r\n super.run();\r\n } finally {\r\n alive.decrementAndGet();\r\n if (debug) {\r\n System.out.println(\"Exiting : \" + getName());\r\n }\r\n }\r\n }",
"@Test\n public void lifecycleStatusTest() {\n // TODO: test lifecycleStatus\n }",
"@Override\n\tpublic void onStart() {\n\n\t}",
"@Override\n\tpublic void onStart() {\n\n\t}",
"@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tStoreActivity.getInstance().addActivity(this);\n\t}",
"@Override\n public void onStart()\n {\n }",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}",
"public abstract void started();",
"@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tSystem.out.println(\"Método onStart\");\n\t}",
"public void onStart() {\n\t\t\n\t}",
"public void onStart() {\n }",
"public void onStartRunning();",
"public interface MvpView extends LifecycleOwner {\n}",
"@EncoderThread\n protected abstract void onStart();",
"@Override\n\t\tprotected void onStart() {\n\t\t\tsuper.onStart();\n\t\t}",
"@Override\n\t\t\tpublic void onStart()\n\t\t\t{\n\t\t\t\tsuper.onStart();\n\t\t\t}",
"public interface DatabaseLifecycleHandler {\n\n\t/**\n\t * <p>\n\t * Method for DDL or DML\n\t * \n\t * @param db\n\t * database\n\t * @param oldVersion\n\t * current version of database\n\t * @param newVersion\n\t * new version of database\n\t * @param upgrade\n\t * if true is an upgrade operation, otherwise it's a\n\t * downgrade operation.\n\t */\n\tvoid onUpdate(SQLiteDatabase db, int oldVersion, int newVersion, boolean upgrade);\n\n\t/**\n\t * Invoked after execution of DDL necessary to create database.\n\t * \n\t * @param database\n\t */\n\tvoid onCreate(SQLiteDatabase database);\n\n\t/**\n\t * Invoked during database configuration.\n\t * \n\t * @param database\n\t */\n\tvoid onConfigure(SQLiteDatabase database);\n}",
"@Override\n public void onStart() {\n\n }",
"public interface DatabaseLifecycleHandler {\n\n\t/**\n\t * <p>\n\t * Method for DDL or DML.\n\t *\n\t * @param database database\n\t * @param oldVersion current version of database\n\t * @param newVersion new version of database\n\t * @param upgrade if true is an upgrade operation, otherwise it's a\n\t * downgrade operation.\n\t */\n\tvoid onUpdate(SQLiteDatabase database, int oldVersion, int newVersion, boolean upgrade);\n\n\t/**\n\t * Invoked after execution of DDL necessary to create database.\n\t *\n\t * @param database the database\n\t */\n\tvoid onCreate(SQLiteDatabase database);\n\n\t/**\n\t * Invoked during database configuration.\n\t *\n\t * @param database the database\n\t */\n\tvoid onConfigure(SQLiteDatabase database);\n}",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\t// super.onRestoreInstanceState(outState);\n\n\t\tif (D)\n\t\t\tLog.e(TAG, \"++ ON START ++\");\n\t}",
"void onStart() {\n\n }",
"void beforeStart() throws PersistenceException;",
"@Override\n public void start() {}",
"@Override\n public void start() {\n }",
"@Override\r\n\tpublic void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\r\n\tpublic void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"void onStart(@Observes Startup event, ApplicationLifecycle app) {\n\n\t\tif (!newstore)\n\t\t\tapp.markAsRestart();\n\t\t\n\t}",
"@Override\n\tprotected void onResumed() {\n\t\t\n\t}",
"public interface LifeCycleHandler {\n\n\tvoid beginning() throws Exception;\n\n\tvoid ending() throws Exception;\n\n}",
"public interface FragmentLifecycle {\n\n void onPauseFragment();\n void onResumeFragment();\n}",
"@Override\n protected void Start() {\n }",
"public void initialise() throws ActionLifecycleException;",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\n\tprotected void onStart() {\n\t\tSystem.out.println(\"onStart\");\n\t}",
"@Override\r\n public void onStart() {\n super.onStart();\r\n }",
"@Override\n public void start() { }",
"@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tLog.d(TAG, \"onStart() - ThreeActivity - Activity становиться видимым\");\n\t}",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t}",
"@Override\r\n\tpublic void onStart(ITestContext arg0) {\n\t\t\r\n\t}"
] | [
"0.73905104",
"0.70567787",
"0.70567787",
"0.70481277",
"0.69080603",
"0.68865526",
"0.6794212",
"0.67850816",
"0.6776358",
"0.6749472",
"0.66852504",
"0.66040194",
"0.6583234",
"0.6430323",
"0.63860893",
"0.63659406",
"0.63401407",
"0.6309077",
"0.6257618",
"0.62468475",
"0.6214684",
"0.62144905",
"0.61527574",
"0.61492485",
"0.6132643",
"0.61234236",
"0.6080072",
"0.6028083",
"0.59945846",
"0.59817857",
"0.59478515",
"0.5897748",
"0.5897748",
"0.5897748",
"0.5897748",
"0.5897748",
"0.5897748",
"0.5897748",
"0.5897748",
"0.5897748",
"0.5885362",
"0.58778644",
"0.5865307",
"0.584706",
"0.58281523",
"0.58281523",
"0.5823332",
"0.58225155",
"0.5788046",
"0.57752734",
"0.57752734",
"0.57744",
"0.57545376",
"0.5745551",
"0.5745551",
"0.5741794",
"0.57403576",
"0.5714834",
"0.5709912",
"0.5698779",
"0.5690803",
"0.5681754",
"0.56756157",
"0.5663952",
"0.5652237",
"0.56418604",
"0.56321716",
"0.5628505",
"0.5625243",
"0.5623591",
"0.5607293",
"0.5599941",
"0.5593693",
"0.5593693",
"0.55917907",
"0.5572149",
"0.55698276",
"0.55697846",
"0.5552851",
"0.55503553",
"0.55475265",
"0.55475265",
"0.55475265",
"0.55475265",
"0.55475265",
"0.5546884",
"0.5546884",
"0.5546884",
"0.5546884",
"0.5546884",
"0.5537023",
"0.55233467",
"0.55228126",
"0.55138326",
"0.5507285",
"0.5507285",
"0.5507285",
"0.5507285",
"0.5507285",
"0.5507285",
"0.549996"
] | 0.0 | -1 |
Constructs a new SRD. | public StreamRecorderDisplay() {
initialize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ADSR()\n\t{\n\t\tthis(1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 0.0f);\n\t}",
"public CSSTidier() {\n\t}",
"public RDR_RDR() { \r\n this(new DefaultModelClassFactory());\r\n }",
"public static TalonSRX createTalonSRX(int id){\n TalonSRX talon = new TalonSRX(id);\n //talon.configSupplyCurrentLimit(currLim);\n return talon;\n }",
"Strobo createStrobo();",
"Schulleiter createSchulleiter();",
"Schueler createSchueler();",
"Schule createSchule();",
"public SRWDatabasePool() {\n }",
"public ObjXportStusRecord() {\n\t\tsuper(ObjXportStus.OBJ_XPORT_STUS);\n\t}",
"public LFSR(String seed, int tap) {\n // PUT YOUR CODE HERE\n }",
"public Builder stid(String stid) {\n obj.setStid(stid);\n return this;\n }",
"public StudentResource() {\n }",
"public SLL()\r\n\t{\r\n\t\tstart = null;\r\n\t\tend = null;\r\n\t\tsize = 0;\r\n\t}",
"public DevicesStAXBuilder() {\n super();\n inputFactory = XMLInputFactory.newInstance();\n }",
"public AbstractSRLabeler(JointFtrXml[] xmls, StringTrainSpace[] spaces, Object[] lexica)\n\t{\n\t\tsuper(xmls, spaces, lexica);\n\t}",
"public RDR_RDR(ModelClassFactory factory) {\r\n super(factory);\r\n init(factory);\r\n }",
"public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}",
"public synchronized Resource createResource(QName str) throws ModelException {\n\n // check whether we have it in the registry\n Resource r = (Resource)rmap.get(str);\n // System.err.println(\"Creating resource: \" + str + \", in rmap=\" + r);\n\n if(r == null) {\n r = new ResourceImpl(/*getUnusedNodeID(),*/ str);\n rmap.put(str, r);\n }\n return r;\n }",
"@Override\n\tpublic IDnaStrand getInstance(String source) {\n\t\treturn new LinkStrand(source);\n\t}",
"Stone create();",
"public Strawberries() {\r\n\t\tsuper(price, nutrition, name);\r\n\t}",
"public SVCustom build(){\n if(this.disks < 1) return new SVCustom();\n SVCustom s = new SVCustom(new Point(100, (int)Math.pow(2, this.disks)*104 - 52));\n int left[] = new int[]{0,1};\n int right[] = new int[]{1,2};\n int bottom[] = new int[]{0,2};\n SierpinskiTriangle t = new SierpinskiTriangle(0,this.disks,this.disks-1, left, right, bottom, buildInitial(this.disks));\n s.setAttribute(\"font-family\", \"Arial\");\n s.addContent(t, \"Triangle\");\n return s;\n }",
"public SDARTSBean (String lspURL, String startsDTDURL, String sdlipDTDURL)\r\n throws SDLIPException {\r\n ClientTransportModule.register(sdlip.SDLIP.NameServerURISchema, \"sdlip.helpers.ClientCorbaTransport\");\r\n tm = ClientTransportModule.create (lspURL);\r\n //tm.setDBG(new DBG (DBG.VERBOSE));\r\n this.startsDTDURL = startsDTDURL;\r\n this.sdlipDTDURL = sdlipDTDURL;\r\n\r\n // INITIALIZE XMLWRITER\r\n XMLWriter.addSystemDocType(\"STARTS\",startsDTDURL);\r\n XMLWriter.addSystemDocType\r\n (STARTS.NAMESPACE_NAME + \":smeta-attributes\",startsDTDURL);\r\n XMLWriter.addSystemDocType\r\n (STARTS.NAMESPACE_NAME + \":scontent-summary\",startsDTDURL);\r\n XMLWriter.addSystemDocType(\"SearchResult\",sdlipDTDURL);\r\n XMLWriter.addSystemDocType(\"subcols\",sdlipDTDURL);\r\n XMLWriter.addSystemDocType(\"subcolInfo\",sdlipDTDURL);\r\n XMLWriter.addSystemDocType(\"SDLIPInterface\",sdlipDTDURL);\r\n XMLWriter.addSystemDocType(\"redirect\",sdlipDTDURL);\r\n XMLWriter.addSystemDocType(\"propList\",sdlipDTDURL);\r\n }",
"public WASMRI() {\n Debugger.debug(0,\"Creating RAPInterface\");\n }",
"public IDnaStrand getInstance(String source);",
"public StStatutesub() {\n }",
"public Stamp()\n {\n // initialise instance variables\n id = genID();\n name = defaultname();\n rarity = 'u';\n value = 0.00; \n }",
"public RngObject() {\n\t\t\n\t}",
"public Diaryresource() {\r\n\t}",
"public SawLPFInstRT(){\r\n\t\tthis(44100, 1000);\r\n\t}",
"public static TalonSRX createTalonSRX(int id, boolean inverted){\n TalonSRX talon = new TalonSRX(id);\n talon.setInverted(inverted);\n //talon.configSupplyCurrentLimit(currLim);\n return talon;\n }",
"@Override\n\tpublic AbstractReine createReine() {\n\t\treturn new ReineSN();\n\t}",
"public SapFactoryImpl() {\n super();\n }",
"Device_Resource createDevice_Resource();",
"public Student build() { \n\t return new Student(this); \n\t }",
"public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"Network_Resource createNetwork_Resource();",
"public S_RESOURCEObj() {\r\n }",
"public AbstractSRLabeler(JointFtrXml[] xmls, StringTrainSpace[] spaces, StringModel[] models, Object[] lexica)\n\t{\n\t\tsuper(xmls, spaces, models, lexica);\n\t}",
"protected abstract S createDefault();",
"public SRAType createSRAgent(String id, String value) {\n\t\tSRAType sra = mappingFactory.createSRAType();\n\t\tsra.setId(id);\n\t\tsra.setValue(value);\n\t\treturn sra;\n\t}",
"public IRSensorSubsystem() {\n\n }",
"public static void createSimple() throws Exception {\n\t\t// create a sesame memory sail\n\t\tMemoryStore memoryStore = new MemoryStore();\n\n\t\t// create a lucenesail to wrap the memorystore\n\t\tLuceneSail lucenesail = new LuceneSail();\t\t\n\t\t// set this parameter to let the lucene index store its data in ram\n\t\tlucenesail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, \"true\");\n\t\t// set this parameter to store the lucene index on disk\n\t\t// lucenesail.setParameter(LuceneSail.LUCENE_DIR_KEY, \"./data/mydirectory\");\n\t\t\n\t\t// wrap memorystore in a lucenesail\n\t\tlucenesail.setDelegate(memoryStore);\n\t\t\n\t\t// create a Repository to access the sails\n\t\tSailRepository repository = new SailRepository(lucenesail);\n\t\trepository.initialize();\n\t\t\n\t\t// add some test data, the FOAF ont\n\t\tSailRepositoryConnection connection = repository.getConnection();\n\t\tconnection.begin();\n\t\ttry {\n//\t\t\tconnection.setAutoCommit(false);\n\t\t\tFile file = new File(\"/Users/sschenk/Downloads/foaf.rdfs\");\n\t\t\tSystem.out.println(file.exists());\n\t\t\tconnection.add(\n\t\t\t\t\tfile,\n\t\t\t\t\t\"\", \n\t\t\t\t\tRDFFormat.RDFXML);\n\t\t\tconnection.commit();\n\t\t\t\n\t\t\t// search for all resources that mention \"person\"\n\t\t\tString queryString = \"PREFIX search: <\"+LuceneSailSchema.NAMESPACE+\"> \\n\" +\n\t\t\t\t\t\"SELECT ?x ?score ?snippet WHERE {?x search:matches ?match. \\n\" +\n\t\t\t\t\t\"?match search:query \\\"person\\\"; \\n\" +\n\t\t\t\t\t\"search:score ?score; \\n\" +\n\t\t\t\t\t\"search:snippet ?snippet. }\" ;\n\t\t\tSystem.out.println(\"Running query: \\n\"+queryString);\n\t\t\tTupleQuery query = connection.prepareTupleQuery(QueryLanguage.SPARQL, queryString);\n\t\t\tTupleResult result = query.evaluate();\n\t\t\ttry { \n\t\t\t\t// print the results\n\t\t\t\twhile (result.hasNext()){\n\t\t\t\t\tBindingSet bindings = result.next();\n\t\t\t\t\tSystem.out.println(\"found match: \");\n\t\t\t\t\tfor (Binding binding : bindings) {\n\t\t\t\t\t\tSystem.out.println(\" \"+binding.getName()+\": \"+binding.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tresult.close();\n\t\t\t}\n\t\t} finally {\n\t\t\tconnection.close();\n\t\t\trepository.shutDown();\n\t\t}\n\t\t\n\t}",
"public ShopsRecord() {\n super(Shops.SHOPS);\n }",
"public Soil()\n\t{\n\n\t}",
"public ScribbleFactoryImpl()\n {\n\t\tsuper();\n\t}",
"public ResourceFactory(){}",
"public StudentRecord() {}",
"public LineStroker() {\n }",
"public GSRandom() {\r\n\t\t\r\n\t}",
"Resource create(Session session, IRI identifier, IRI type);",
"public XSDataCrystal() {\n super();\n }",
"public SearchConditionSB() {\r\n }",
"public RailRoad() {}",
"Service_Resource createService_Resource();",
"Segment createSegment();",
"public ConsommersResource() {\r\n }",
"public SalesRecord() {\n super(Sales.SALES);\n }",
"public Resource() {\n }",
"public Resource() {\n }",
"public Student(String name, String SSN) {\n this.name = name;\n this.SSN = SSN;\n System.out.println(\"Student: \" + name + \", email: \" + generateEmail(name) + \", ID: \" + generateID(SSN));\n }",
"public GoogleFluTrendResource() {\n }",
"public Srv() {\n super(Epc.NAMESPACE, \"srv\");\n }",
"public StudyClass(int internID, int classNum, String name, short sks, \r\n String[] roomConstraint, TimeConstraint timeConstraint){\r\n internalId = internID;\r\n this.classNum = classNum;\r\n className = name;\r\n this.sks = sks;\r\n this.roomConstraint = roomConstraint; \r\n this.tConstraint = timeConstraint;\r\n }",
"DL createDL();",
"public static SRSLF04S_OA getInstance()\n {\n return new SRSLF04S_OA();\n }",
"private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }",
"private ResourceFactory() {\r\n\t}",
"private Builder() {\n super(edu.pa.Rat.SCHEMA$);\n }",
"public Statement createStatement(Resource s, Property p, RDFNode o) {\n \t\treturn new NamedGraphStatement(s, p, o, this);\n \t}",
"private SourceRconPacketFactory() {\n }",
"public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public Nurse()\r\n {\r\n firstName = \"\";\r\n familyName = \"\";\r\n ID = IDCreator;\r\n\t\t\tIDCreator++;\r\n }",
"public MdrCreater()\n {\n super();\n client = new RawCdrAccess();\n }",
"public ResourceDowntimeRecord() {}",
"public static void createSimple() throws Exception {\n\t\t// create a sesame memory sail\n\t\tMemoryStore memoryStore = new MemoryStore();\n\n\t\t// create a lucenesail to wrap the memorystore\n\t\tLuceneSail lucenesail = new LuceneSail();\n\t\tlucenesail.setParameter(LuceneSail.INDEX_CLASS_KEY, SolrIndex.class.getName());\n\t\tlucenesail.setParameter(SolrIndex.SERVER_KEY, \"embedded:\");\n\n\t\t// wrap memorystore in a lucenesail\n\t\tlucenesail.setBaseSail(memoryStore);\n\n\t\t// create a Repository to access the sails\n\t\tSailRepository repository = new SailRepository(lucenesail);\n\t\trepository.initialize();\n\n\t\ttry ( // add some test data, the FOAF ont\n\t\t\t\tSailRepositoryConnection connection = repository.getConnection()) {\n\t\t\tconnection.begin();\n\t\t\tconnection.add(SolrSailExample.class.getResourceAsStream(\"/org/openrdf/sail/lucene/examples/foaf.rdfs\"), \"\",\n\t\t\t\t\tRDFFormat.RDFXML);\n\t\t\tconnection.commit();\n\n\t\t\t// search for resources that mention \"person\"\n\t\t\tString queryString = \"PREFIX search: <\" + LuceneSailSchema.NAMESPACE + \"> \\n\"\n\t\t\t\t\t+ \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \\n\" + \"SELECT * WHERE { \\n\"\n\t\t\t\t\t+ \"?subject search:matches ?match . \\n\" + \"?match search:query \\\"person\\\" ; \\n\"\n\t\t\t\t\t+ \" search:property ?property ; \\n\" + \" search:score ?score ; \\n\"\n\t\t\t\t\t+ \" search:snippet ?snippet . \\n\" + \"?subject rdf:type ?type . \\n\" + \"} LIMIT 3 \\n\"\n\t\t\t\t\t+ \"BINDINGS ?type { \\n\" + \" (<http://www.w3.org/2002/07/owl#Class>) \\n\" + \"}\";\n\t\t\ttupleQuery(queryString, connection);\n\n\t\t\t// search for property \"name\" with domain \"person\"\n\t\t\tqueryString = \"PREFIX search: <\" + LuceneSailSchema.NAMESPACE + \"> \\n\"\n\t\t\t\t\t+ \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \\n\" + \"SELECT * WHERE { \\n\"\n\t\t\t\t\t+ \"?subject rdfs:domain ?domain . \\n\" + \"?subject search:matches ?match . \\n\"\n\t\t\t\t\t+ \"?match search:query \\\"chat\\\" ; \\n\" + \" search:score ?score . \\n\"\n\t\t\t\t\t+ \"?domain search:matches ?match2 . \\n\" + \"?match2 search:query \\\"person\\\" ; \\n\"\n\t\t\t\t\t+ \" search:score ?score2 . \\n\" + \"} LIMIT 5\";\n\t\t\ttupleQuery(queryString, connection);\n\n\t\t\t// search in subquery and filter results\n\t\t\tqueryString = \"PREFIX search: <\" + LuceneSailSchema.NAMESPACE + \"> \\n\" + \"SELECT * WHERE { \\n\"\n\t\t\t\t\t+ \"{ SELECT * WHERE { \\n\" + \" ?subject search:matches ?match . \\n\"\n\t\t\t\t\t+ \" ?match search:query \\\"person\\\" ; \\n\" + \" search:property ?property ; \\n\"\n\t\t\t\t\t+ \" search:score ?score ; \\n\" + \" search:snippet ?snippet . \\n\" + \"} } \\n\"\n\t\t\t\t\t+ \"FILTER(CONTAINS(STR(?subject), \\\"Person\\\")) \\n\" + \"} \\n\" + \"\";\n\t\t\ttupleQuery(queryString, connection);\n\n\t\t\t// search for property \"homepage\" with domain foaf:Person\n\t\t\tqueryString = \"PREFIX search: <\" + LuceneSailSchema.NAMESPACE + \"> \\n\"\n\t\t\t\t\t+ \"PREFIX foaf: <http://xmlns.com/foaf/0.1/> \\n\"\n\t\t\t\t\t+ \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \\n\"\n\t\t\t\t\t+ \"CONSTRUCT { ?x rdfs:domain foaf:Person } \\n\" + \"WHERE { \\n\" + \"?x rdfs:domain foaf:Person . \\n\"\n\t\t\t\t\t+ \"?x search:matches ?match . \\n\" + \"?match search:query \\\"homepage\\\" ; \\n\"\n\t\t\t\t\t+ \" search:property ?property ; \\n\" + \" search:score ?score ; \\n\"\n\t\t\t\t\t+ \" search:snippet ?snippet . \\n\" + \"} LIMIT 3 \\n\";\n\t\t\tgraphQuery(queryString, connection);\n\t\t} finally {\n\t\t\trepository.shutDown();\n\t\t}\n\t}",
"private Student createStudent(Element studentNode) {\n String serialNumber = studentNode.getAttribute(\"serialNumber\");\n Student b = new Student();\n b.setSerialNumber(serialNumber);\n\n b.setName(getTextFromTagName(studentNode, \"name\"));\n b.setGroup(Integer.valueOf(getTextFromTagName(studentNode, \"group\")));\n b.setId(Long.valueOf(getTextFromTagName(studentNode, \"id\")));\n\n return b;\n }",
"public SARSA(int nStates, int nActions, long rngSeed) {\n\t\tsuper(nStates, nActions);\n\n\t\trng=new Random(rngSeed);\n\t\tthis.e = new DenseDoubleMatrix2D( nStates, nActions );\n\t\tthis.q = new DenseDoubleMatrix2D( nStates, nActions );\n\t}",
"public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }",
"public BuildingResource() {\n }",
"public MyDslFactoryImpl()\n {\n super();\n }",
"public Item(int sn, double w)\r\n\t/*\r\n\t * \t\tsn - serial number\r\n\t * \t\tw - weight\r\n\t */\r\n\t{\r\n\t\tserialNum = sn;\r\n\t\tweight = w;\r\n\t}",
"public SDARTSBean (String lspURL) throws SDLIPException {\r\n this (lspURL, STARTS.STARTS_DTD_URL, STARTS.SDLIP_DTD_URL);\r\n }",
"private Builder() {\n super(net.explorys.samhat.z12.r837.X837Pro_2420D_REF_SupervisingProviderSecondaryIdentification.SCHEMA$);\n }",
"public SawLPFInstRT(int sampleRate){\r\n\t\tthis(sampleRate, 1000);\r\n\t}",
"public SisRol() {\n\t}",
"public Model(String r, String s, String p) {\r\n\t\tsetRank(r);\r\n\t\tsetSite(s);\r\n\t\tsetPeople(p);\t\t\r\n\t}",
"public SCMLReader() {}",
"public S create() {\n\t\tS style = createDefault();\n\t\tint id = nextID();\n\t\tstyle.setId(id);\n\t\taddStyle(style);\n\t\treturn style;\n\t}",
"public Builder() {\n this(Graphs.<N, E>createUndirected());\n }",
"public _ROSpec(int id, int priority, Trigger startTrigger,\n\t\t\tTrigger stopTrigger, String readerName,\n\t\t\tLLRPReaderSharedResources llrpsr) {\n\t\tthis(id, priority, startTrigger, stopTrigger, null, readerName, llrpsr);\n\t}",
"public PSRelation()\n {\n }",
"public AbstractSRLabeler(JointFtrXml[] xmls, StringModel[] models, Object[] lexica)\n\t{\n\t\tsuper(xmls, models, lexica);\n\t}",
"public Performer() \r\n {\r\n name = \"Sally\";\r\n ID = 111;\r\n type = \"\";\r\n }",
"public Sc2Gears4DM() {\n\t}",
"protected Study() {\n \n \t\tthis.id = Integer.MIN_VALUE;\n \t\tthis.name = \"\";\n \t\tthis.description = \"\";\n \t\tthis.studyType = \"\";\n \t\tthis.validity = \"\";\n \t\tthis.creationDate = new Date();\n //\t\tthis.studyMatrices = new ArrayList<Integer>();\n \t}",
"public Gps_dataResource() {\n }",
"public Rook()\n {\n super();\n }",
"public SONETRouter(String address){\n\t\tsuper(address);\n\t}",
"protected DPP createDPP() {\n\t\tDPP dpp = new DPP();\n\t\tdpp.add(null, OP_CREATE, ST_CREATED);\n\t\t// dpp.add(ST_CREATED, ..., ...);\n\t\treturn dpp;\n\t}"
] | [
"0.5979124",
"0.58891886",
"0.58225524",
"0.5801452",
"0.56969935",
"0.56760114",
"0.5636511",
"0.54299194",
"0.54233325",
"0.5404687",
"0.5402577",
"0.5392736",
"0.5389936",
"0.5383779",
"0.5374008",
"0.53624547",
"0.53545564",
"0.5320183",
"0.53149486",
"0.53025025",
"0.52718097",
"0.5258132",
"0.5234771",
"0.52252066",
"0.5181234",
"0.51678437",
"0.51525885",
"0.5141262",
"0.5132041",
"0.5125836",
"0.5121508",
"0.5116111",
"0.5113084",
"0.5105764",
"0.5102691",
"0.5101883",
"0.5098314",
"0.5097818",
"0.50836134",
"0.50803715",
"0.5076531",
"0.50602037",
"0.5047965",
"0.50445944",
"0.5032912",
"0.5031003",
"0.5028497",
"0.5026526",
"0.5021599",
"0.49861088",
"0.49829748",
"0.49706405",
"0.49572906",
"0.49434626",
"0.49397054",
"0.49305066",
"0.492396",
"0.49145305",
"0.49123907",
"0.49117076",
"0.49117076",
"0.49112657",
"0.49095532",
"0.49005008",
"0.48940632",
"0.48852137",
"0.48684543",
"0.486461",
"0.4863576",
"0.4863124",
"0.48611686",
"0.4859042",
"0.48563018",
"0.4855101",
"0.48493344",
"0.48488232",
"0.4842058",
"0.48364586",
"0.4836386",
"0.48291135",
"0.4828293",
"0.48265374",
"0.48246476",
"0.48230642",
"0.48218563",
"0.48136896",
"0.48079455",
"0.4804622",
"0.48035353",
"0.47946078",
"0.47921857",
"0.47872686",
"0.4785475",
"0.47843754",
"0.47780138",
"0.47776967",
"0.4776996",
"0.4774631",
"0.4771214",
"0.47708175",
"0.47701842"
] | 0.0 | -1 |
Begins listening for streams. | private void listen() {
//Grap port/ip from UI
String ip = m_ipField.getText().trim();
try {
ip = InetAddress.getByName(ip).getHostAddress(); //Validate IP Address
} catch (UnknownHostException ex) {
Logger.getLogger(StreamRecorderDisplay.class.getName()).log(Level.SEVERE, "Poorly formatted IP Address: " + m_ipField.getText(), ex);
}
int port = Integer.valueOf(m_portField.getText().trim());
//Start detector
m_dataDetector = new MulticastDataDetector(ip, port);
m_dataDetector.addMulticastDataDetectionListener(this);
new Thread(m_dataDetector).start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startListening() {\r\n\t\tlisten.startListening();\r\n\t}",
"public void startListening();",
"@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}",
"public void streamSubscriberStart(ISubscriberStream stream);",
"public void startListeningForConnection() {\n startInsecureListeningThread();\n }",
"void onListeningStarted();",
"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 }",
"@Override\n public void start(ClientStreamListener listener) {\n listener.onReady();\n }",
"public void startListening() {\n\twhile (true) {\n\t try {\n\t\tSocket s = socket.accept();\n\n\t\tnew TCPSessionClient(s, this.clients);\n\t } // end of try\n\n\t catch (IOException e) {\n\t\te.printStackTrace();\n\t } // end of catch\n\t} // end of while\n }",
"public void listen() throws IOException {\n listen(Thread.currentThread());\n }",
"public void startListening()\n {\n if (!listening) {\n sensorManager.requestTriggerSensor(listener, motion);\n listening = true;\n }\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlisten();\n\t\t\t\t}",
"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 }",
"void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }",
"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\n public void start(ClientStreamListener listener) {\n checkState(this.listener == null, \"stream already started\");\n this.listener = checkNotNull(listener, \"listener\");\n }",
"public void startListener() throws IOException {\n\t\tthis.listener = new ServerSocket(this.port);\n\n Runnable serverThread = new Runnable() {\n @Override\n public void run() {\n try {\n System.out.println(\"Waiting for clients to connect...\");\n\n while (true) {\n \t// Wait for connections\n Socket newSocket = listener.accept();\n\n // Init new peer and add it to our list\n PeerCommunicator newCommunication = new PeerCommunicator(id, \"\", newSocket);\n activePeers.add(newCommunication);\n\n // Span new thread\n Thread clientThread = new Thread(new ReceivedConnection(newCommunication, fm));\n clientThread.start();\n }\n } catch (Exception e) {\n System.err.println(\"Unable to process incoming client\");\n e.printStackTrace();\n }\n }\n };\n\n // Start it up\n (new Thread(serverThread)).start();\n\n // Once everything's good, mark server as running\n //this.status = Status.RUNNING;\n\t}",
"@Override\n\tpublic void streamingServiceStarted(int arg0) {\n\t\t\n\t}",
"public void start() throws IOException {\n\t\tserverSocket = new ServerSocket(port);\n\t\tserverCallbacks.forEach(c -> c.onServerStarted(this, port));\n\t}",
"public void start() {\n System.err.println(\"Server will listen on \" + server.getAddress());\n server.start();\n }",
"public static void start() {\n enableIncomingMessages(true);\n }",
"public void start() {\n\t\tconnection.start((sender, message) -> message.accept(new Visitor(sender)));\n\t\tloadData();\n\t}",
"public void startServer()\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Listen\");\n\t\t\tif(listenInitialValuesRequest)\n\t\t\t{\n\t\t\t\tlistenInitialValuesRequest();\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void start() {\n\t\tscavenger.start();\r\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\twhile (!serverSocket.isClosed()) {\r\n\t\t\t\t\tSocket socket = null;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tsocket = serverSocket.accept();\r\n\t\t\t\t\t\tscavenger.addSocket(socket);\r\n\t\t\t\t\t\tnew SynchronousSocketThread(socket).start();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\t}",
"private void startListen() {\n try {\n listeningSocket = new ServerSocket(listeningPort);\n } catch (IOException e) {\n throw new RuntimeException(\"Cannot open listeningPort \" + listeningPort, e);\n }\n }",
"private void listen() {\n\t\ttry {\n\t\t\tServerSocket servSocket = new ServerSocket(PORT);\n\t\t\tSocket clientSocket;\n\t\t\twhile(true) {\n\t\t\t\tclientSocket = servSocket.accept();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error - Could not open connection\");\n\t\t}\n\t\t\n\t}",
"public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }",
"public void listen()\n {\n service = new BService (this.classroom, \"tcp\");\n service.register();\n service.setListener(this);\n }",
"public void start() {\n \tif (mediaChangedListener != null) {\n \t\tmediaChangedListener.onStarted();\n \t}\n mMediaPlayer.start();\n }",
"public void onStart() {\n\t new Thread() {\n\t @Override public void run() {\n\t receive();\n\t }\n\t }.start();\n\t }",
"public void run(){\n\t\t\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tSocket s = listener.accept();\n\t\t\t\tnew ServerConnection(chatServ, s).start();\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn; // stop listening\n\t\t\t}\n\t\t}\n\t}",
"public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}",
"public static void startServer() {\n clientListener.startListener();\n }",
"@Override\r\n\tpublic void start() {\n\t\tmediaPlayer.start();\r\n\t}",
"public void start() {\n if ( this.messageListenerContainer == null ) {\n logger.info( \"Listener container is still not assembled. Doing it now for topic {}\", this.topic );\n init();\n }\n logger.info( \"Starting listener: {}\", this.messageListenerContainer );\n this.messageListenerContainer.start();\n }",
"private void resumeListening() {\n Thread listener = new Thread() {\n @Override\n public void run() {\n try {\n mListenerSocket = new ServerSocket();\n mListenerSocket.setReuseAddress(true);\n mListenerSocket.bind(new InetSocketAddress(LOCAL_PORT));\n while (true) {\n Socket connSocket = mListenerSocket.accept();\n Scanner sc = new Scanner(connSocket.getInputStream());\n String encMsg = sc.nextLine();\n connSocket.close();\n sc.close();\n Message msg = mHandler.obtainMessage();\n msg.obj = encMsg;\n mHandler.sendMessage(msg);\n }\n } catch (IOException e) {\n Log.d(\"LANConnection\", \"Stopping listener thread due to error\", e);\n }\n }\n };\n listener.start();\n }",
"@Override\r\n protected void onStart() {\r\n super.onStart();\r\n adapter.startListening();\r\n }",
"@Override\n\tpublic boolean IsListening() {\n\t\treturn listening;\n\t}",
"@Override\n protected void onStart() {\n super.onStart();\n adapter.startListening();\n }",
"public static void startStream(Context context) {\n Intent intent = new Intent(context, BandCollectionService.class);\n intent.putExtra(BAND_ACTION, BandAction.START_STREAM);\n context.startService(intent);\n }",
"public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket s= ss.accept();\n\t\t\t\tif (DEBUG) System.out.println(s.getInetAddress() + \":\" + s.getPort() + \" connected\");\n\t\t\t\tPlayerHandler ph= new PlayerHandler(s); \n\t\t\t\tph.start();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace(); // Default\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}",
"@Override protected void onStart()\n {\n super.onStart();\n adapter.startListening();\n }",
"public SuperPeer listen() {\n try {\n this.log(String.format(\"Listening on %s...\", this));\n while (true) {\n // accept an incoming connection\n Socket peerSocket = this.server.accept();\n PeerHandler ph = new PeerHandler(this, peerSocket);\n ph.start();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return this;\n }",
"public void startRunning(){\n\t\ttry{\n\t\t\tserver = new ServerSocket(6789, 100);\n\t\t\t//int Port Number int 100 connections max (backlog / queue link)\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\twaitForConnection();\n\t\t\t\t\tsetupStreams();\n\t\t\t\t\twhileChatting();\n\t\t\t\t\t//connect and have conversation\n\t\t\t\t}catch(EOFException eofe){\n\t\t\t\t\tshowMessage(\"\\n Punk Ass Bitch.\");\n\t\t\t\t}finally{\n\t\t\t\t\tcloseChat();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}\n\t}",
"protected void start() throws IOException {\r\n\t\tif (smscListener == null) {\r\n\t\t\tSystem.out.print(\"Enter port number> \");\r\n\t\t\tint port = Integer.parseInt(keyboard.readLine());\r\n\t\t\tSystem.out.print(\"Starting listener... \");\r\n\t\t\tsmscListener = new SMSCListenerImpl(port, true);\r\n\t\t\tprocessors = new PDUProcessorGroup();\r\n\t\t\tmessageStore = new ShortMessageStore();\r\n\t\t\tdeliveryInfoSender = new DeliveryInfoSender();\r\n\t\t\tdeliveryInfoSender.start();\r\n\t\t\tusers = new Table(usersFileName);\r\n\t\t\tfactory = new SimulatorPDUProcessorFactory(processors, messageStore, deliveryInfoSender, users);\r\n\t\t\tfactory.setDisplayInfo(displayInfo);\r\n\t\t\tsmscListener.setPDUProcessorFactory(factory);\r\n\t\t\tsmscListener.start();\r\n\t\t\tSystem.out.println(\"started.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Listener is already running.\");\r\n\t\t}\r\n\t}",
"@Override\n public void addListener(StreamListener listener) {\n streamListeners.add(listener);\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 synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }",
"public static void startChatServer() {\n\t\tbyte[] buffer = new byte[1024];\n\t\tStreamConnectionNotifier cn = null;\n\t\ttry {\n\t\t\tLocalDevice local = LocalDevice.getLocalDevice();\n\t\t\tlocal.setDiscoverable(DiscoveryAgent.GIAC);\n\t\t\tcn = (StreamConnectionNotifier) Connector.open(INSECURE_URL);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tOutputThread t = null;\n\t\t\tStreamConnection sock = null;\n\t\t\tInputStream is = null;\n\t\t\tOutputStream os = null;\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"accepting connection:\");\n\t\t\t\tsock = cn.acceptAndOpen();\n\t\t\t\tSystem.out.println(\"accept!: \" + Charset.defaultCharset());\n\t\t\t\tis = sock.openInputStream();\n\t\t\t\tos = sock.openOutputStream();\n\n\t\t\t\tt = new OutputThread(os);\n\t\t\t\tt.start();\n\n\t\t\t\twhile (t.isAlive()) {\n\t\t\t\t\t//TODO: use timeout read?\n\t\t\t\t\tint len = is.read(buffer);\n\t\t\t\t\t// printAsHex(buffer, len);\n\t\t\t\t\tif (len > 0) {\n\t\t\t\t\t\tSystem.out.println(\"received message(\" + len + \"): \" + new String(buffer, 0, len));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//TODO: check connection is live or not,\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tt.interrupt();\n\t\t\t\tt = null;\n\t\t\t\ttry {\n\t\t\t\t\tsock.close();\n\t\t\t\t\tcn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t//\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void listenForConnection() throws IOException {\n\twhile(true) {\n System.out.println(\"Waiting for connection...\");\n // Wait for client to connect\n Socket cli = server.accept();\n if(connlist.size() < MAX_CONN) {\n\t\t// if numCli is less then 100\n initConnection(cli);\n }\n\t}\n }",
"public void streamBroadcastStart(IBroadcastStream stream);",
"public void startInbound();",
"private void listen() {\n System.out.println(\"launch listen task\");\n listenTask = new AsyncTask<Void, String, IOException>() {\n @Override\n protected IOException doInBackground(Void... params) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()))) {\n String line;\n while ((line = in.readLine()) != null) {\n System.out.println(\"receive \" + line);\n publishProgress(line);\n }\n } catch (SocketException e) {\n if (e.toString().equals(\"java.net.SocketException: Socket closed\")) {\n //that's what will happen when task.cancel() is called.\n System.out.println(\"listening is stopped as socket is closed\");\n return null;\n } else {\n e.printStackTrace();\n return e;\n }\n } catch (IOException e) {\n e.printStackTrace();\n return e;\n }\n return null;\n }\n\n @Override\n protected void onProgressUpdate(String... values) {\n handler.accept(new Message(MsgType.SERVER, values[0]));\n }\n\n @Override\n protected void onPostExecute(IOException e) {\n if (e == null) {\n handler.accept(new Message(MsgType.INFO, \"listening finished\"));\n } else {\n handler.accept(new Message(MsgType.ERROR,\n \"exception while listening\" + \"\\n\" + e.toString()));\n }\n }\n\n @Override\n protected void onCancelled() {\n super.onCancelled();\n }\n };\n //the listen task will last for a quite long time (blocking) and thus should run in a parallel pool.\n listenTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }",
"@Override\n public void onReady() {\n assertTrue(stream.isReady());\n onReadyCalled = true;\n }",
"public void streamPublishStart(IBroadcastStream stream);",
"public void streamRecordStart(IBroadcastStream stream);",
"protected abstract void startListener();",
"private void startStreams() {\n InputStream inputStream = process.getInputStream();\n bufferedInputStream = new BufferedReader(new InputStreamReader(inputStream));\n InputStream errorStream = process.getErrorStream();\n bufferedErrorStream = new BufferedReader(new InputStreamReader(errorStream));\n }",
"public void StartListening()\n\t{\n\t\tif (true == mbHasAccelerometer && false == mbListening)\n\t\t{\n\t\t\tmbListening = true;\n\t\t\t\n\t\t\tfinal AccelerometerNativeInterface accelerometerNI = this;\n\t\t\tRunnable task = new Runnable()\n\t\t\t{ \n\t\t\t\t@Override public void run() \n\t\t\t\t{\n\t\t\t\t\tSensorManager sensorManager = (SensorManager)CSApplication.get().getActivityContext().getSystemService(Activity.SENSOR_SERVICE);\n\t\t\t\t\tsensorManager.registerListener(accelerometerNI, sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), SensorManager.SENSOR_DELAY_GAME);\t\n\t\t\t\t}\n\t\t\t};\n\t\t\tCSApplication.get().scheduleUIThreadTask(task);\n\t\t};\n\t}",
"protected void serverStarted()\n {\n System.out.println(\"Server listening for connections on port \" + getPort());\n }",
"@Deprecated\n public final void startListen() {\n startListening();\n }",
"public void startListening(){\n if (listeningThread == null) {\n listeningThread = new Thread(new Runnable() {\n @Override\n public void run() {\n while (!Thread.interrupted()) {\n try {\n serverSocket = new ServerSocket(port);\n Socket remoteClientSocket = serverSocket.accept();\n clients.add(new RemoteClient(UUID.randomUUID().toString(), remoteClientSocket));\n\n // Read the client's message\n //ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(remoteClientSocket.getInputStream()));\n //Object raw = ois.readObject();\n int vol = 0;\n Scanner s = new Scanner(new BufferedReader(new InputStreamReader(remoteClientSocket.getInputStream())));\n if (s.hasNextLine()) {\n vol = Integer.parseInt(s.nextLine());\n System.out.println(\"[Server] Message from client: \" + vol);\n\n }\n\n\n int maxLoud = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, vol, 0);\n\n PrintWriter pw = new PrintWriter(new OutputStreamWriter(remoteClientSocket.getOutputStream()));\n pw.println(\"set to\" +vol);\n pw.flush();\n\n\n remoteClientSocket.close();\n serverSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }\n });\n listeningThread.start();\n\n }\n }",
"protected void serverStarted()\r\n {\r\n System.out.println\r\n (\"Server listening for connections on port \" + getPort());\r\n }",
"public static void start() {\n assert sListener == null;\n sListener = new ResourceListener();\n ResourceManager.getInstance().addListener(sListener);\n }",
"public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}",
"@Override\n protected void startListener(){\n Socket socket = null;\n while (isRunning()){\n socket = acceptSocket();\n if (socket == null) {\n continue;\n }\n \n try {\n handleConnection(socket);\n } catch (Throwable ex) {\n getLogger().log(Level.FINE, \n \"selectorThread.handleConnectionException\",\n ex);\n try {\n socket.close(); \n } catch (IOException ioe){\n // Do nothing\n }\n continue;\n }\n } \n }",
"public void start() {\n this.messenger.start();\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 void listen() throws IOException {\n\t\twhile(true){\n\t\t\tserverReader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t\tString responseFromServer = serverReader.readLine();\n\t\t\tJOptionPane.showMessageDialog(null, responseFromServer);\n\t\t}\n\t}",
"public void run() {\t\r\n\ttry {\r\n\t System.out.println(\"Creating input pipe\");\r\n\t // create the input pipe\r\n\t pipeIn = pipeSvc.createInputPipe(pipeAdv,this);\r\n\t} \r\n\tcatch (Exception e) {\r\n\t System.out.println(\"Error creating input pipe.\");\r\n\t return;\r\n\t}\r\n\tif (pipeIn == null) {\r\n\t System.out.println(\"Error: cannot open InputPipe\");\r\n\t System.exit(-1);\r\n\t}\r\n\tSystem.out.println(\"Listener waiting for messages...\");\r\n\ttry {\r\n\t Thread.sleep(Integer.MAX_VALUE);\r\n\t} catch (Exception e) {\r\n\t System.out.println(\"Program interrupted\");\r\n\t}\r\n }",
"public void run() {\n running = true;\n System.out.println(\"Server started on port: \" + port);\n manageClients();\n receive();\n startConsole();\n }",
"public void start() {\n\t\tif (serverStarted.get()) {\n\t\t\tthrow new IllegalStateException(\"Server already started. \" + toString());\n\t\t}\n\t\tCallable<Boolean> task;\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(port);\n\t\t\tserverSocket.setSoTimeout(soTimeout);\n\t\t\tport = serverSocket.getLocalPort();\n\t\t\tnotifyListener(\"Server started. \" + toString());\n\t\t\tserverStarted.set(true);\n\t\t\ttask = new Callable<Boolean>() {\n\t\n\t\t\t\tpublic Boolean call() {\n\t\t\t\t\tnotifyListener(\"Starting server thread. \" + toString());\n\t\t\t\t\tstopFlag.set(false);\n\t\t\t\t\twhile (!stopFlag.get()) {\n\t\t\t\t\t\tSocket connection = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconnection = serverSocket.accept();\n\t\t\t\t\t\t\tnotifyListener(\"Connection accepted on port. \" + toString());\n\t\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t\t\tnotifyListener(\"Connection closed on port. \" + toString());\n\t\t\t\t\t\t\tpingCounter.incrementAndGet();\n\t\t\t\t\t\t} catch (SocketTimeoutException e) {\n\t\t\t\t\t\t\tnotifyListener(\"Server accept timed out. Retrying. \" + toString());\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tnotifyListener(\"Server accept caused exception [message=\" + e.getMessage() + \"]. Retrying. \" + toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tnotifyListener(\"Server socket closed. \" + toString());\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t};\n\t\t} catch (IOException e) {\n\t\t\tstopFlag.set(true);\n\t\t\tthrow new IllegalStateException(\"Unable to open socket on port. \" + toString(), e);\n\t\t}\n\t\tserverActivity = scheduler.submit(task);\n\t\tnotifyListener(\"Waiting for server to fully complete start. \" + toString());\n\t\tfor (;;) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(100);\n\t\t\t\tif (isStarted()) {\n\t\t\t\t\tnotifyListener(\"Server started. \" + toString());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\n\t\t\t}\n\t\t}\n\t}",
"public void startListener(){\n new Thread(() -> this.run()).start();\n }",
"public void startListening(){\n\t\t// viewerFilter =\n\t\t// cv.getConfigurer().getControlFieldProvider().createFilter();\n\t\tcv.getConfigurer().getControlFieldProvider().addChangeListener(this);\n\t}",
"public void startRunning(){\r\n\t\ttry{\r\n\t\t\twhile( true ){\r\n\t\t\t\tserver = new ServerSocket(PORT);\r\n\t\t\t\ttry{\r\n\t\t\t\t\twaitForClient(1);\r\n\t\t\t\t\twaitForClient(2);\r\n\t\t\t\t\tnew ServerThread(connectionClient1, connectionClient2, this).start();\r\n\t\t\t\t}\r\n\t\t\t\tcatch( EOFException e ){\r\n\t\t\t\t\tshowMessage(\"\\nServer ended the connection\");\r\n\t\t\t\t}\r\n\t\t\t\tfinally {\r\n\t\t\t\t\tserver.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch( IOException e ){\r\n\t\t}\r\n\t}",
"public void start()\n throws IOException, StunException\n {\n localSocket = new IceUdpSocketWrapper(\n new SafeCloseDatagramSocket(serverAddress));\n\n stunStack.addSocket(localSocket);\n stunStack.addRequestListener(serverAddress, this);\n\n }",
"public void listen(Boolean enable)\n {\n if (mEnable) {\n Log.d(LOGTAG,\"Enable listening: \" + Boolean.toString(enable));\n if (enable) mBS.listen();\n else mBS.disconnect();\n }\n }",
"public void start() throws IOException {\n ThreadExecutor.registerClient(this.getClass().getName());\n tcpServer.startServer();\n }",
"protected void started() {\n for(MinMaxListener listener : listeners) {\n listener.started();\n }\n }",
"protected void sendStartStdInSignal() {\n\t\tDownstreamMessageEvent dme = new DownstreamMessageEvent(channel, Channels.future(channel), STREAM_IN_READY, channel.getRemoteAddress());\n\t\t//channel.getPipeline().sendDownstream(dme);\n\t\tSystem.out.println(\"Sending STDIN READY\");\n\t\tchannel.write(STREAM_IN_READY).awaitUninterruptibly();\n\t\tSystem.out.println(\"Sent STDIN READY\");\n\t}",
"private void start() {\n windowForCommunication.append(\"Awaiting client connection...\" + \"\\n\");\n\n //check if client is connected, if yes, add the following text to the chat window, then enable communication\n if (clientSocket.isConnected()) {\n windowForCommunication.append(\"Connection is established. Type 'stopconnection' to stop connection\" + \"\\n\");\n textField.setEditable(true);\n }\n\n //Begin communication, end if \"stopconnection\" is typed by Server/Client. If it is, call closeStreams method.\n try {\n String userInput;\n\n while((userInput = input.readLine()) != null) {\n if(userInput.contains(\"stopconnection\")){\n closeStreams();\n break;\n }\n\n displayMessage(userInput + \"\\n\");\n\n }\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }",
"public void listen() {\n DeviceManager cpuUsage = new CPUUsageManager();\n cpuUsage.printStatus();\n \n }",
"@Override\n\tpublic boolean listen(Track tracks, int begin, int end) {\n\t\treturn false;\n\t}",
"private void startListening() {\n if (mEnabledByEmulator && mEnabledByUser) {\n if (DEBUG) Log.d(TAG, \"+++ Sensor \" + getEmulatorFriendlyName() + \" is started.\");\n mSenMan.registerListener(mListener, mSensor, SensorManager.SENSOR_DELAY_FASTEST);\n }\n }",
"@Override\n\tprotected void start() {\n\t\tif (Cfg.DEBUG) {\n\t\t\tCheck.log(TAG + \" (actualStart)\");\n\t\t}\n\t\treadChatMessages();\n\t}",
"private void startSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.startListening();\n }\n }",
"@Override\n\tpublic void run() {\n\t\trespond();\n\t\tlisten();\n\t}",
"public void startServer(){\r\n try {\r\n\r\n while(true){\r\n\r\n s = sc.accept();\r\n new ServerThread(s).start();\r\n }\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n try {\r\n sc.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"@Override\n public void startListening() {\n //Download proj upon connection response from cs\n RxBus.INSTANCE\n .listen(DownloadProjectUseCase.Request.class)\n .subscribe(request -> {\n this.projectForDownload = request.projectForDownload;\n downloadProject(request.projectForDownload);\n });\n\n //Retry download proj when there is a problem\n RxBus.INSTANCE\n .listen(RetryCacheProblemUseCase.Request.class)\n .subscribe(request -> {\n downloadProject(projectForDownload);\n });\n\n }",
"public abstract void listen(ServiceConfig serviceConfig) throws IOException;",
"private void listen() {\n try {\n this.console.println(MapControl.checkListen(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public synchronized void start()\n {\n if (!started && open) {\n line.start();\n started = true;\n if (getTimeLeft() > 0) {\n // If we haven't finished playback of bytes already written, we\n // should start the tracker again.\n timeTracker.start();\n }\n }\n }",
"@Override\n\tpublic void streamingServiceStalled(int arg0) {\n\t\t\n\t}",
"protected void serverStarted()\n {\n // System.out.println\n // (\"Server listening for connections on port \" + getPort());\n }",
"private void startServer() throws IOException {\n while (true) {\n System.out.println(\"[1] Waiting for connection...\");\n\n client = server.accept();\n System.out.println(\"[2] Connection accepted from: \" + client.getInetAddress());\n\n in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n out = new PrintStream(client.getOutputStream(), true);\n\n while (!in.ready()) ;\n\n String line = in.readLine();\n ManageConnections connection = new ManageConnectionsFactory().getConnection(line);\n\n connection.goConnect(client, in, out);\n }\n }",
"private void createAndListen() {\n\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\n\t\treceiveClients();\n\n\t\tbeginLogging();\n\t}",
"public void run() {\r\n\t\ttry {\r\n\t\t\tListenForHandshakes();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void setupStreams() throws IOException {\n\t\toutput = new ObjectOutputStream(Connection.getOutputStream());\n\t\toutput.flush();\n\t\tinput = new ObjectInputStream(Connection.getInputStream()); \n\t\tshowMessage(\"\\n Streams have successfully connected.\");\n\t}",
"void onListeningFinished();"
] | [
"0.74752",
"0.74664354",
"0.728501",
"0.7073202",
"0.6987898",
"0.6824796",
"0.6813456",
"0.68130463",
"0.6734114",
"0.6698314",
"0.6680626",
"0.6653685",
"0.65484405",
"0.6547685",
"0.6393027",
"0.63818085",
"0.6297372",
"0.62746286",
"0.6255821",
"0.6195905",
"0.61108243",
"0.60760057",
"0.60643876",
"0.60274595",
"0.60103226",
"0.59707993",
"0.595903",
"0.5951997",
"0.593701",
"0.59231013",
"0.58984464",
"0.58837193",
"0.5863006",
"0.5825428",
"0.58086634",
"0.57875913",
"0.5772234",
"0.5772182",
"0.5763966",
"0.5763503",
"0.5761324",
"0.5752845",
"0.57504004",
"0.57472366",
"0.5737895",
"0.5737804",
"0.57347476",
"0.5730499",
"0.56963015",
"0.5687588",
"0.56823266",
"0.56703234",
"0.56608754",
"0.56553555",
"0.565226",
"0.5609039",
"0.5608135",
"0.5606724",
"0.5606609",
"0.55984133",
"0.55883783",
"0.5583773",
"0.55830246",
"0.5582031",
"0.5556044",
"0.55496997",
"0.554604",
"0.5544801",
"0.553868",
"0.55184066",
"0.55128294",
"0.5508132",
"0.55023825",
"0.54954135",
"0.5491973",
"0.54902333",
"0.54879385",
"0.54781795",
"0.54706264",
"0.5468695",
"0.54656696",
"0.5455983",
"0.5453521",
"0.5441951",
"0.54268676",
"0.5423682",
"0.54218465",
"0.5410747",
"0.5382966",
"0.5374129",
"0.53725445",
"0.5372214",
"0.53719234",
"0.53645545",
"0.53486747",
"0.5342779",
"0.5335044",
"0.53246117",
"0.5310095",
"0.53061116"
] | 0.53527683 | 94 |
Launches and sets the display visible. | public void launch() {
m_frame.pack();
m_frame.setVisible(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showDisplay() {\n this.display.displayScreen();\n }",
"public void display() {\r\n\t\tsetVisible(true);\r\n\t}",
"public void setVisible()\n\t{\n\t\tMainController.getInstance().setVisible(name, true);\n\t}",
"public void setActiveDisplayVisible(boolean visible) {\r\n\t\tactiveDisplay.setVisible(visible);\r\n\t}",
"public void display() {\n\t\tthis.setVisible(true);\n\t}",
"public void launch(boolean showHide){\n\t\tvisibility = showHide;\t\n\t\tSetupWindow(visibility);\n\t\n\t}",
"public void start() {\n\t\t setVisible(true);\n\t}",
"public void makeVisible()\n {\n wall.makeVisible();\n roof.makeVisible();\n window.makeVisible();\n }",
"public void setVisible()\r\n\t{\r\n\t\tthis.setVisible(true);\r\n\t}",
"public static void setVisible (boolean isVisible)\n\t{\n\t\tm_console.setVisible (isVisible);\n\t}",
"public void setVisible(boolean visible) {\n window.setVisible(visible);\n }",
"@Override\n public void show() {\n displayWindow.addWindowFocusListener(this);\n displayWindow.setVisible(true);\n }",
"public void show() {\n visible=true;\n }",
"public void showIt(){\n this.setVisible(true);\n }",
"public void setVisible(){\n frame.setVisible(true);\n }",
"public void display() {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ProviderMenu().setVisible(true);\n\n }\n });\n }",
"public void setWindowVisible()\n {\n lobbyWindowFrame.setVisible(true);\n }",
"public void display() {\n dialog.setVisible(true);\n }",
"public void makeVisible() {\n if (isVisible()) {\n return;\n }\n pack();\n setVisible(true);\n }",
"public void display() {\r\n subAwardDlgWindow.setVisible(true);\r\n }",
"public void show(){\n developmentGroup.setVisible(true);\n }",
"public void setVisible(boolean visible)\n {\n frame.setVisible(visible);\n }",
"private static void start()\r\n\t{\r\n\t\tif(isRunning)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tisRunning = true;\r\n\t\t\r\n\t\tdisplay = new Display();\r\n\t\trun();\r\n\t}",
"public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }",
"public void runDisplay()\n\t{\n\t\tscFrame = new SpellCheckFrame();\n\t\tscFrame.setVisible(true);\n\t}",
"public void display() {\r\n \tsetLocation((int)parent.getLocationOnScreen().getX() + (parent.getWidth()/2) - (getWidth()/2), (int)parent.getLocationOnScreen().getY() + (parent.getHeight()/2) - (getHeight()/2));\r\n \tsetVisible(true);\r\n }",
"void setVisibleGlassPanel(Visibility visible);",
"public void showWindow() {\n\t\tupdate();\n\t\tsetVisible(true);\n\t}",
"private void setDisplay() {\n\t\tDisplayOpt.add(\"-sd\");\n\t\tDisplayOpt.add(\"/sd\");\n\t\tDisplayOpt.add(\"showdetails\");\n\n\t}",
"public void setVisible(boolean b) {\n\t\tframe.setVisible(b);\t\n\t}",
"public static void toggleVisibility ()\n\t{\n\t\tboolean isVisible = m_console.isVisible ();\n\t\tm_console.setVisible (!isVisible);\n\t}",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"public void setVisible(boolean bool)\r\n\t{\r\n\t\tsuper.setVisible(bool);\r\n\t\tif(bool == true)\r\n\t\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000);\r\n\t\t\tlblServerFound.setVisible(true);\r\n\t\t\tbtnClose.setVisible(true);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\t\r\n\r\n\t}",
"void setVisible(boolean visible);",
"void setVisible(boolean visible);",
"public void showUI(boolean isVisible) {\r\n \r\n psui.setVisible(isVisible);\r\n }",
"public final void setDisplay(Display display) {\r\n\t\tthis.display = display;\r\n\t}",
"private void makeGUIVisible(){\n gameState = GameState.LOAD;\n notifyObservers();\n }",
"public void setVisible(boolean visible) {\n\t\tframe.setVisible(visible);\n\t}",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"public void showOnScreen(final int screen)\r\n {\n\r\n AccessController.doPrivileged(new PrivilegedAction<Object>()\r\n {\r\n public Object run()\r\n {\r\n \tapph.setScreen(screen);\r\n \treturn null;\r\n }\r\n });\r\n }",
"public void setVisible(Boolean visible);",
"public void setDisplayed(boolean show);",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n myrlayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"public void showCompositeManager() {\n if (this.compManager == null) {\n compManager = new com.nrims.managers.CompositeManager(ui);\n }\n compManager.setVisible(true);\n }",
"public final void showScreen(final Screen screen){\n if(this.currentScreen != null){\n if(this.currentScreen == this.runtime){\n this.onHideRuntime();\n }\n this.currentScreen.hide();\n }\n\n this.currentScreen = screen;\n\n if(this.currentScreen == this.runtime){\n this.onShowRuntime();\n }\n this.currentScreen.show();\n\n }",
"public void display() {\n startPreview();\n }",
"@SuppressWarnings(\"unused\")\n void setVisible(boolean visible);",
"public void display() \r\n {\r\n ((GrantsByPIForm) getControlledUI()).setVisible(true);\r\n }",
"public void setVisible(boolean visible);",
"public void setVisible(boolean newVisible)\n {\n this.visible = newVisible;\n conditionallyRepaint();\n }",
"private void makeDeviceVisible() {\r\n final Intent becomeDiscoverable = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\r\n becomeDiscoverable.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 0);\r\n this.startActivityForResult(becomeDiscoverable, BECOME_DISCOVERABLE_REQUEST_ID);\r\n }",
"public void setDisplay(Display display) {\n\t\tthis.display = display;\n\t}",
"public void start() {\n\t\tSystem.out.println(\"Starting new application\");\n\t\texec.init(this);\n\t\tthread = new Thread(this);\n\t\trunning = true;\n\t\tgd.setFullScreenWindow(screen.getFrame());\n\t\tscreen.getFrame().setVisible(true);\n\t\tthread.start();\n\t}",
"public void setVisible(boolean is_visible){\n\t\tswingComponent.setVisible(is_visible);\n\t}",
"@Override\r\n\tpublic void setVisible(boolean visible) {\r\n\t\tsuper.setVisible(visible);\r\n\r\n\t\tif (visible) {\r\n\t\t\tupdateView();\r\n\r\n\t\t\tlogoffHandler.reset();\r\n\t\t\tif (TerminalConfig.isAutoLogoffEnable()) {\r\n\t\t\t\tautoLogoffTimer.start();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// ticketListUpdateTimer.stop();\r\n\t\t\tautoLogoffTimer.stop();\r\n\t\t}\r\n\t}",
"public void show() {\n\t\tif (ENABLED) {\n\t\t\tframe.setVisible(true);\n\t\t}\n\t}",
"@VisibleForTesting\n public void setAssistantVisible(boolean z) {\n updateBiometricListeningState();\n }",
"public void setVisible(boolean visible)\n\t{\n\t\tsuper.setVisible(visible);\n\t\trequestFocus();\n\t}",
"public void setVisible(boolean b) {\n\t\t\n\t}",
"public void launch() {\r\n\t\tthis.setLocation(200, 200);\r\n\t\tthis.setSize(COLS * BLOCK_SIZE, ROWS * BLOCK_SIZE);\r\n\t\tthis.addKeyListener(new KeyMonitor());\r\n\t\tthis.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.setVisible(true);\r\n\t\t\r\n\t\tnew Thread(PaintThread).start();\r\n\t\t\r\n\t}",
"void setIsVisible(boolean visible) {\r\n this.isVisible = visible;\r\n this.getComponent().setVisible(isVisible);\r\n }",
"public void setVisible(Boolean isVisible);",
"public void show() {\n\t\thidden = false;\n\t}",
"public void setDisplay(Boolean display) {\n this.display = display;\n }",
"@Override\n public void setVisible(boolean arg0)\n {\n \n }",
"void init() {\n setVisible(true);\n\n }",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n mapView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"public void launchStartupScreen() {\n\t\tnew StartUpScreen(this);\n\t}",
"public void setVisible(boolean b) {\n\t\tLoginSystem l = new LoginSystem();\r\n\r\n\t}",
"public void visible() {\n\n setSize(canvasW, canvasH);\n setResizable(false);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setVisible(true);\n }",
"public void begin() {\n\t\tview.setVisible(true);\n\t}",
"public void setDisplay(Display dspl) {\n this.display = dspl;\n }",
"@Override\n\tpublic void setVisible(boolean b) {\n\t\t\n\t}",
"public void setVisible(boolean visible)\n {\n this.visible = visible;\n }",
"private static void createWindow(){\n try{\n\n displayMode = new DisplayMode(1600 ,900);\n Display.setDisplayMode(displayMode);\n\n /*\n Display.setDisplayMode(getDisplayMode(1920 ,1080,false));\n if(displayMode.isFullscreenCapable()){\n Display.setFullscreen(true);\n }else{\n Display.setFullscreen(false);\n }\n */\n Display.setTitle(\"CubeKraft\");\n Display.create();\n }catch (Exception e){\n for(StackTraceElement s: e.getStackTrace()){\n System.out.println(s.toString());\n }\n }\n }",
"public void setVisible(boolean visible) {\n\t\t// when the visible becomes true to false, ExtraLife restarts.\n\t\tif(visible == false && this.visible == true) {\n\t\t\tif(restartTimer != null) {\n\t\t\t\trestartTimer.cancel();\n\t\t\t}\n\t\t\trestartTimer = new Timer();\n\t\t\trestartTimer(0);\n\t\t}\n\t\tthis.visible = visible;\n\t}",
"public void routetopage() {\n this.setVisible(true);\n }",
"public void launchMainScreen() {\n\t\tmainWindow = new MainGameScreen(this);\n\t}",
"void setWaitScreen(boolean set) {\n // findViewById(R.id.screen_main).setVisibility(set ? View.GONE : View.VISIBLE);\n // findViewById(R.id.screen_wait).setVisibility(set ? View.VISIBLE : View.GONE);\n }",
"public void setVisible(boolean value) {\n\t\tvisible = value;\n\t}",
"void setWaitScreen(boolean set) {\n\t\t// findViewById(R.id.screen_main).setVisibility(set ? View.GONE :\n\t\t// View.VISIBLE);\n\t\t// findViewById(R.id.screen_wait).setVisibility(set ? View.VISIBLE :\n\t\t// View.GONE);\n\t}",
"public void display() {\r\n try {\r\n if( mdiForm.getFrame(CoeusGuiConstants.SPONSORHIERARCHY_BASE_WINDOW) == null ){\r\n mdiForm.putFrame(CoeusGuiConstants.SPONSORHIERARCHY_BASE_WINDOW, maintainSponsorHierarchyBaseWindow);\r\n mdiForm.getDeskTopPane().add(maintainSponsorHierarchyBaseWindow);\r\n maintainSponsorHierarchyBaseWindow.setSelected(true);\r\n maintainSponsorHierarchyBaseWindow.setVisible(true);\r\n }\r\n }catch (java.beans.PropertyVetoException propertyVetoException) {\r\n propertyVetoException.printStackTrace();\r\n }\r\n }",
"public void setDisplay(boolean val) {\n \tdisplay = val; \n }",
"public void setVisible(boolean visible) {\r\n this.visible = visible;\r\n }",
"public void setVisible (boolean visible) {\n this.visible = visible;\n }",
"public void update(){\n\t\tthis.setVisible(true);\n\t}",
"public void setVisible(boolean visible){\r\n\t\tthis.visible = visible;\r\n\t}",
"public void setVisible(boolean val);",
"public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}",
"@Override\n\tpublic void setVisible(boolean vis) {\n\t\t\n\t}",
"private synchronized void setVisible(boolean b)\n {\n Platform.runLater(() ->\n {\n this.temperatureView.setVisible(b);\n StackPane parentPane = (StackPane) this.temperatureView.getParent();\n GridPane parentGrid = (GridPane) parentPane.getParent();\n\n monitorWidgetVisibility(parentGrid, parentPane);\n });\n if (b && this.townName != null)\n {\n updateWeather(this.townName);\n }\n }",
"public void show(){\n initializeTouchpad();\n initializeButtons();\n initializeShieldBar();\n }",
"public void ifWin() {\n WinMenu.setVisible(true);\n }",
"public void show() {\n hidden = false;\n }"
] | [
"0.77555406",
"0.7431365",
"0.7325094",
"0.7255537",
"0.7184713",
"0.7016801",
"0.69986665",
"0.6977889",
"0.69640166",
"0.69044405",
"0.6863489",
"0.68275905",
"0.6776833",
"0.66595995",
"0.6622341",
"0.6600761",
"0.65775377",
"0.6550241",
"0.65206414",
"0.6492529",
"0.64904016",
"0.6475741",
"0.64689654",
"0.6465588",
"0.64544547",
"0.6434739",
"0.6425449",
"0.6422419",
"0.6392286",
"0.6386709",
"0.63844913",
"0.6373321",
"0.6373321",
"0.6373321",
"0.6373321",
"0.6373321",
"0.6373321",
"0.63467526",
"0.6337124",
"0.6337124",
"0.6320042",
"0.631257",
"0.63051605",
"0.6301889",
"0.6284934",
"0.62814933",
"0.6278755",
"0.62687063",
"0.62669665",
"0.6256957",
"0.62501794",
"0.6243875",
"0.6237079",
"0.6207208",
"0.6204647",
"0.6193747",
"0.61912507",
"0.618606",
"0.6180221",
"0.6180127",
"0.6174822",
"0.61587375",
"0.6158361",
"0.61495924",
"0.6149179",
"0.61352885",
"0.6125677",
"0.61255765",
"0.61214346",
"0.61211824",
"0.611522",
"0.6111395",
"0.60898614",
"0.6089438",
"0.6075571",
"0.60728997",
"0.6064582",
"0.6061455",
"0.6053783",
"0.6048051",
"0.60470617",
"0.6043758",
"0.6042824",
"0.6038292",
"0.6032296",
"0.6029588",
"0.60285455",
"0.60285115",
"0.6027205",
"0.60193783",
"0.6015824",
"0.6010007",
"0.6006498",
"0.59972453",
"0.5981912",
"0.5976196",
"0.5975859",
"0.5973856",
"0.5967578",
"0.5962496"
] | 0.6032253 | 85 |
Initializes the display components for this class. | private void initialize() {
m_frame = new JFrame("Video Recorder");
m_frame.setResizable(false);
m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
m_frame.setLayout(new BorderLayout());
m_frame.add(buildContentPanel(), BorderLayout.CENTER);
JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));
JButton startButton = new JButton("Start");
startButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent ae) {
listen();
}
});
buttonPanel.add(startButton);
m_connectionLabel = new JLabel("Disconnected");
m_connectionLabel.setOpaque(true);
m_connectionLabel.setBackground(Color.RED);
m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));
m_connectionLabel.setPreferredSize(new Dimension(100, 26));
m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);
buttonPanel.add(m_connectionLabel);
m_frame.add(buttonPanel, BorderLayout.PAGE_END);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Display() {\n initComponents();\n }",
"private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}",
"private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}",
"private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}",
"private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }",
"public RegisterDisplay() {\n initComponents();\n }",
"private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"private void setupDisplay() {\n sizeFirstField_.setText(Double.toString(af_.SIZE_FIRST));\n numFirstField_.setText(Double.toString(af_.NUM_FIRST));\n sizeSecondField_.setText(Double.toString(af_.SIZE_SECOND));\n numSecondField_.setText(Double.toString(af_.NUM_SECOND));\n cropSizeField_.setText(Double.toString(af_.CROP_SIZE));\n thresField_.setText(Double.toString(af_.THRES));\n channelField1_.setText(af_.CHANNEL1);\n channelField2_.setText(af_.CHANNEL2);\n }",
"protected void initializeComponents() {\n\t\t/* Create fonts for information nodes */\n\t\tFont titleFont = Font.font(\"Arial\", FontWeight.BOLD, 18);\n\t\tFont descriptionFont = Font.font(\"Arial\", 14);\n\t\t/* Configure information nodes */\n\t\tconfigureTitle(titleFont);\n\t\tconfigureDescription(descriptionFont);\n\t\tconfigureIconContainer();\n\t\tconfigureWindow();\n\t\t/* set scene */\n\n\t\tgetContent().add(notificationContainer);\n\t}",
"protected void initialize()\n {\n uiFactory.configureUIComponent(this, UI_PREFIX);\n\n initializeFields();\n initializeLabels();\n initLayout();\n }",
"public void InitializeComponents(){\n\n\n screen = new JPanel();\n screen.setLayout(null);\n screen.setBackground(Color.BLUE);\n this.getContentPane().add(screen);\n ScreenComps();\n\n }",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n //SEARCH PANE COMPONENTS\n initSearchComponents();\n \n //RESULTS PANE COMPONENTS\n initResultComponents();\n \n // CRAWLER CONTROLS\n initCrawlerControlsComponents();\n \n // KEYWORD BAR\n initKeywordBarComponents();\n \n //WORKER CONTROLS\n initWorkerComponents();\n \n //URL COMPONENTS\n initURLMenuComponents();\n\n //BASE LAYOUT COMPONENTS\n initBaseLayout();\n }",
"private void initialize() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setBounds(new Rectangle(0, 0, 393, 177));\r\n\t\tthis.add(getBasePanel(), BorderLayout.CENTER);\r\n\r\n\t}",
"public void initComponents() {\n\t\taddButton = new JButton(addFlightText);\n\t\tdelayButton = new JButton(delayFlightText);\n\t\tquitButton = new JButton(quitText);\n\t\t// TODO: Add button instanciations for other operations\n\n\t\t// Initialize display area\n\t\tdisplayArea = new JTextArea(LINE_COUNT, LINE_SIZE);\n\t\tdisplayArea.setEditable(false);\n\t\tscrollPane = new JScrollPane(displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t}",
"private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}",
"public void init() {\n initComponents();\n initData();\n }",
"private void init() {\n\t\t\n\t\tdisplay = new Display(title, width, height);\n\t\tdisplay.getFrame().addKeyListener(keyManager);\n\t\tdisplay.getFrame().addMouseListener(mouseManager);\n\t\tdisplay.getFrame().addMouseMotionListener(mouseManager);\n\t\t\n\t\t//Adding the mouseManager to the canvas reduces glitches\n\t\tdisplay.getCanvas().addMouseListener(mouseManager); \n\t\tdisplay.getCanvas().addMouseMotionListener(mouseManager);\n\t\t\n\t\t\n\t\tVisuals.init();\n\n\t\tManager.init(this); // Setting up our manager singleton\n\n\t\tgameCamera = new GameCamera(0, 0);\n\t\tgameTimer = new GameTimer();\n\n\t\tgameState = new GameState();\n\t\t//We want to initialise the states we may switch to for easy access\n\t\t//The main menu state\n\t\tState menuState = new MenuState();\n\t\t//The state for the settings menu\n\t\tState settingState = new SettingState();\n\t\t\n\t\tState.setState(gameState); //This sets the state of the program to our game\n\t\t\n\t}",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(300, 200);\n this.setPreferredSize(new java.awt.Dimension(450, 116));\n this.add(getListPanel(), java.awt.BorderLayout.CENTER);\n this.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n }",
"private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }",
"private void initComponents() {\n\t\t\tpreviewLabel = new JLabel();\n\t\t\tpreview2Label = new JLabel();\n\t\t\tdescLabel = new JLabel();\n\n\t\t\t//======== this ========\n\t\t\tsetLayout(new MigLayout(\n\t\t\t\t\"insets 0,hidemode 3\",\n\t\t\t\t// columns\n\t\t\t\t\"[left]\",\n\t\t\t\t// rows\n\t\t\t\t\"[]0\" +\n\t\t\t\t\"[]\"));\n\n\t\t\t//---- previewLabel ----\n\t\t\tpreviewLabel.setText(\"preview\");\n\t\t\tadd(previewLabel, \"cell 0 0\");\n\t\t\tadd(preview2Label, \"cell 0 0\");\n\n\t\t\t//---- descLabel ----\n\t\t\tdescLabel.setText(\"description\");\n\t\t\tdescLabel.putClientProperty(\"FlatLaf.styleClass\", \"small\");\n\t\t\tdescLabel.setEnabled(false);\n\t\t\tadd(descLabel, \"cell 0 1\");\n\t\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t\t}",
"private void initComponents() {\n rootLayout = new Grid();\n rootLayout.setWidth(new Extent(100, Extent.PERCENT));\n rootLayout.setSize(2);\n add(rootLayout);\n Empsn_Label= new nextapp.echo2.app.Label();\n Empsn_Label.setText(\"N_TIME_BEAR.EMPSN\");\n rootLayout.add(Empsn_Label);\n \n Empsn_DscField = new dsc.echo2app.component.DscField();\n Empsn_DscField.setId(\"Empsn_DscField\");\n Empsn_DscField.setWidth(new Extent(4, Extent.CM));\n rootLayout.add(Empsn_DscField);\n \n\t}",
"private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }",
"public ImageDisplay()\n\t{\n initComponents();\n }",
"public void init() {\n setLayout(new BorderLayout());\n }",
"private void initialize() {\n\t\tjLabel3 = new JLabel();\n\t\tjLabel = new JLabel();\n\t\tthis.setLayout(null);\n\t\tthis.setBounds(new java.awt.Rectangle(0, 0, 486, 377));\n\t\tjLabel.setText(PluginServices.getText(this,\n\t\t\t\t\"Areas_de_influencia._Introduccion_de_datos\") + \":\");\n\t\tjLabel.setBounds(5, 20, 343, 21);\n\t\tjLabel3.setText(PluginServices.getText(this, \"Cobertura_de_entrada\")\n\t\t\t\t+ \":\");\n\t\tjLabel3.setBounds(6, 63, 190, 21);\n\t\tthis.add(jLabel, null);\n\t\tthis.add(jLabel3, null);\n\t\tthis.add(getLayersComboBox(), null);\n\t\tthis.add(getSelectedOnlyCheckBox(), null);\n\t\tthis.add(getMethodSelectionPanel(), null);\n\t\tthis.add(getResultSelectionPanel(), null);\n\t\tthis.add(getExtendedOptionsPanel(), null);\n\t\tconfButtonGroup();\n\t\tlayersComboBox.setSelectedIndex(0);\n\t\tinitSelectedItemsJCheckBox();\n\t\tdistanceBufferRadioButton.setSelected(true);\n\t\tlayerFieldsComboBox.setEnabled(false);\n\t\tverifyTypeBufferComboEnabled();\n\t}",
"public void init()\n {\n buildUI(getContentPane());\n }",
"private void initComponents() {\n\t\tfiltersPanel = new FiltersPanel(mainView);\n\t\tdetailsPanel = new DetailsPanel();\n\t\t\n\t\tthis.setStylePrimaryName(\"variantdisplay\");\n\t\tthis.addWest(filtersPanel, 240);\n\n\t\tvarTable = new VarTable(this, colModel);\n\n\t\t\n\t\t//details panel listens to variant selection events generated by the varTable\n\t\tvarTable.addVariantSelectionListener(detailsPanel); \n\t\tvarManager.addListener(this);\n\t\tcolModel.addListener(this);\n\t\tfiltersPanel.addListener(this);\n\t\t\n\t\tthis.addSouth(detailsPanel, 300.0);\n\t\tthis.add(varTable);\n\t}",
"private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }",
"private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}",
"private void initComponents() {\n LOOGER.info(\"Get init components\");\n this.loadButton = new JButton(\"Load\");\n this.fillButton = new JButton(\"Fill\");\n this.deleteButton = new JButton(\"Delete\");\n this.setLayout(new FlowLayout());\n LOOGER.info(\"components exit\");\n }",
"private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}",
"private void initialize() {\r\n this.setSize(new Dimension(800,600));\r\n this.setContentPane(getJPanel());\r\n\r\n List<String> title = new ArrayList<String>();\r\n title.add(\"Select\");\r\n title.add(\"Field Id\");\r\n title.add(\"Field Name\");\r\n title.add(\"Field Type\");\r\n title.add(\"Image\");\r\n\r\n List<JComponent> componentList = new ArrayList<JComponent>();\r\n componentList.add(checkInit);\r\n componentList.add(fieldIdInit);\r\n componentList.add(filedNameInit);\r\n componentList.add(fieldTypeInit);\r\n componentList.add(imageButton);\r\n\r\n String []arrColumn = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n String []arrTitle = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n // init grid\r\n grid = new GridUtils(pageSheet, title, componentList, arrColumn, preButton, afterButton, 5, arrTitle);\r\n // set title\r\n grid.setPageInfo(pageInfoLbl);\r\n \r\n searchDetailList();\r\n \r\n initComboBox();\r\n \r\n setTitle(\"Page Select page\");\r\n\t}",
"private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }",
"private void initialize() {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setBounds(new Rectangle(0, 0, 943, 615));\n this.setPreferredSize(new Dimension(890,570));\n this.setMinimumSize(new Dimension(890,570));\n\n\t\tm_GraphControlGradient = new GraphControl();\n\t\tm_GraphControlGradient.setBounds(new Rectangle(4, 16, 461, 285));\n\t\tm_GraphControlGradient.setControlsEnabled(false);\n\n\t\tm_GraphControlFlowRate = new GraphControl();\n\t\tm_GraphControlFlowRate.setBounds(new Rectangle(3, 16, 462, 241));\n\t\tm_GraphControlFlowRate.setControlsEnabled(false);\n\n\t\tthis.add(getJbtnPreviousStep(), null);\n\t\tthis.add(getJpanelGradientProfile(), null);\n\t\tthis.add(getJpanelFlowProfile(), null);\n\t\tthis.setVisible(true);\n\t\tthis.add(getJbtnHelp(), null);\n\t\tthis.add(getJpanelStep5(), null);\n\t\t\n\t\tthis.tmOutputModel.addTableModelListener(this);\n\t\tthis.addComponentListener(this);\n\t}",
"public Display()\n {\n setSize(W, H);\n setBackground(Color.BLACK);\n }",
"private void initialize() {\n this.setLayout(new CardLayout());\n this.setName(Constant.messages.getString(\"ports.options.title\"));\n this.add(getPanelPortScan(), getPanelPortScan().getName());\n }",
"private void initComponents() {\n\n scenePanel = new javax.swing.JPanel();\n\n setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.PAGE_AXIS));\n\n scenePanel.setLayout(new javax.swing.BoxLayout(scenePanel, javax.swing.BoxLayout.LINE_AXIS));\n add(scenePanel);\n }",
"private void initComponents() {\n\t\tthis.setTitle(\"Boggle\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setMinimumSize(new Dimension(600, 575));\n\t\t\n\t\tinitMenuBar();\n\t\tinitDiceGridPanel();\n\t\tinitInputPanel();\n\t\tinitInfoPanel();\n\t\taddPanels();\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300,200);\n\t\tthis.add(getJPanel(), java.awt.BorderLayout.CENTER);\n\t\tthis.add(getJPanel1(), java.awt.BorderLayout.SOUTH);\n\t}",
"public void initialize() {\n\t\ttoolBar.setDrawingPanel(this.drawingPanel);\r\n\t\t//component initialize\r\n\t\tmenuBar.initialize();\r\n\t\ttoolBar.initialize();\r\n\t\tdrawingPanel.initialize();\r\n\t\t\r\n\t}",
"protected void init() {\n super.init();\n prefetchCount.setPreferredSize(new Dimension(100,25));\n useTx.setPreferredSize(new Dimension(100,25));\n\n mainPanel.add(receiveTimeout);\n mainPanel.add(prefetchCount);\n mainPanel.add(purgeQueue);\n mainPanel.add(autoAck);\n mainPanel.add(readResponse);\n mainPanel.add(useTx);\n }",
"private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setBounds(new Rectangle(0, 0, 780, 530));\n\t\tthis.add(getJPanel_table(), BorderLayout.CENTER);\n\t\tthis.add(getJPanel_button(), BorderLayout.EAST);\n\t}",
"private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }",
"private void initialize() {\r\n\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\tgridBagConstraints1.gridx = 0;\r\n\t\tgridBagConstraints1.gridy = 1;\r\n\t\tlaunchSubLabel = new JLabel();\r\n\t\tlaunchSubLabel.setText(Message.getMessage(\"reportmaker.process.sublabel\"));\r\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\tgridBagConstraints.gridx = 0;\r\n\t\tgridBagConstraints.gridy = 0;\r\n\t\tthis.setSize(800, 400);\r\n\t\tthis.setLayout(new GridBagLayout());\r\n\t\tthis.setPreferredSize(new Dimension(800, 400));\r\n\t\tthis.setBackground(Color.white);\r\n\t\tthis.add(getLaunchButton(), gridBagConstraints);\r\n\r\n\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\tgridBagConstraints2.insets = new Insets(50, 0, 0, 0);\r\n\t\tgridBagConstraints2.gridx = 0;\r\n\t\tgridBagConstraints2.gridy = 2;\r\n\t\tthis.add(getViewButton(), gridBagConstraints2);\r\n\t\tthis.add(launchSubLabel, gridBagConstraints1);\r\n\t}",
"private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}",
"private void init() {\n\t\tdisplay = new Display(title, width, height);\n\t\tdisplay.getFrame().addKeyListener(keyManager); //lets us access keyboard\n\t\tdisplay.getFrame().addMouseListener(mouseManager);\n\t\tdisplay.getFrame().addMouseMotionListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseMotionListener(mouseManager);\n\t\tAssets.init();\n\t\t\n\t\tgameCamera = new GameCamera(this, 0,0);\n\t\thandler = new Handler(this);\n\t\t\n\t\tgameState = new GameState(handler);\n\t\tmenuState = new MenuState(handler);\n\t\tsettingState = new SettingState(handler);\n\t\tmapState = new mapState(handler);\n\t\tmansionState = new mansionState(handler);\n\t\tparkState = new parkState(handler);\n\t\tjazzState = new jazzState(handler);\n\t\tmansionGardenState = new mansionGardenState(handler);\n\t\tmansionArcadeState = new mansionArcadeState(handler);\n\t\tmansionStudyState = new mansionStudyState(handler);\n\t\tjazzPRoomState = new jazzPRoomState(handler);\n\t\tState.setState(menuState);\n\t}",
"public void init() {\n\t\tsetSize(500,300);\n\t}",
"private void initialize() {\n\tif (setup == false) {\n\t elementList.add(new GUISlider());\n\t elementList.add(new GUIChart());\n\t elementList.add(new GUIStatsDisplay());\n\t elementList.add(new GUIPID());\n\t elementList.add(new GUITimer());\n\t elementList.add(new GUINumericUpDown());\n\t setup = true;\n\t}\n }",
"private void initComponents() {\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 }",
"private void initComponents() {\n\n setBackground(java.awt.Color.lightGray);\n setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\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, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 294, Short.MAX_VALUE)\n );\n }",
"public void initComponents();",
"public void init() {\r\n\t\t/*\r\n\t\t * Initialize panel for base\r\n\t\t */\r\n\t\tbaseList = GameMap.getBaseList();\r\n\t\tthis.add(new BaseInfoPanel(baseList.getFirst(), controlPanel));\r\n\t}",
"private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }",
"public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}",
"public void init() {\n fIconkit = new Iconkit(this);\n\n\t\tsetLayout(new BorderLayout());\n\n fView = createDrawingView();\n\n Panel attributes = createAttributesPanel();\n createAttributeChoices(attributes);\n add(\"North\", attributes);\n\n Panel toolPanel = createToolPalette();\n createTools(toolPanel);\n add(\"West\", toolPanel);\n\n add(\"Center\", fView);\n Panel buttonPalette = createButtonPanel();\n createButtons(buttonPalette);\n add(\"South\", buttonPalette);\n\n initDrawing();\n setBufferedDisplayUpdate();\n setupAttributes();\n }",
"private void initialize() {\r\n this.setSize(new Dimension(374, 288));\r\n this.setContentPane(getJPanel());\r\n this.setResizable(false);\r\n this.setModal(true);\r\n this.setTitle(\"颜色选择面板\");\r\n addJPanel();\r\n\t}",
"private void initMyComponents() {\n this.jPanel1.setLayout(new BoxLayout(this.jPanel1, BoxLayout.Y_AXIS));\n this.jPanel1.add(controller.getPressureController().getEMeasureBasicView());\n this.jPanel1.add(controller.getTemperatureController().getEMeasureBasicView());\n this.controller.getPressureController().getListeners().add(this);\n this.controller.getTemperatureController().getListeners().add(this);\n this.jComboBox1.setModel(new DefaultComboBoxModel(FluidKind.values()));\n this.changeResponce();\n }",
"public MainScreen() {\n initComponents();\n \n }",
"private void initilize()\n\t{\n\t\tdimXNet = project.getNoC().getNumRotX();\n\t\tdimYNet = project.getNoC().getNumRotY();\n\t\t\n\t\taddProperties();\n\t\taddComponents();\n\t\tsetVisible(true);\n\t}",
"public StreamRecorderDisplay() {\n initialize();\n }",
"private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setPreferredSize(new java.awt.Dimension(686, 530));\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, 699, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 541, Short.MAX_VALUE)\n );\n\n pack();\n }",
"private void initialize() {\n\ttry {\n\t\t// user code begin {1}\n\t\t// user code end\n\t\tsetName(\"PlatformInfoPanel\");\n\t\tsetLayout(null);\n\t\tsetSize(353, 240);\n\t\tadd(getPnlOS(), getPnlOS().getName());\n\t\tadd(getPnlJava(), getPnlJava().getName());\n\t} catch (java.lang.Throwable ivjExc) {\n\t\thandleException(ivjExc);\n\t}\n\t// user code begin {2}\n\tgetTxtOSName().setText(System.getProperty(\"os.name\"));\n\tgetTxtOSArchitecture().setText(System.getProperty(\"os.arch\"));\n\tgetTxtOSVersion().setText(System.getProperty(\"os.version\"));\n\tgetTxtOSLocale().setText(java.util.Locale.getDefault().toString());\n\tgetTxtJavaVersion().setText(System.getProperty(\"java.version\"));\n\tgetTxtJavaVMVersion().setText(System.getProperty(\"java.vm.version\"));\n\t// user code end\n}",
"private void initComponents() {\n\n\t\tallSpellsPanel = new javax.swing.JPanel();\n\n\t\tsetBackground(new java.awt.Color(255, 255, 255));\n\t\tsetLayout(new java.awt.BorderLayout());\n\n\t\tallSpellsPanel.setBackground(new java.awt.Color(255, 255, 255));\n\t\tallSpellsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\n\t\t\t\tnew javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0),\n\t\t\t\t\t\t1, true), \"Spells\"));\n\t\tallSpellsPanel.setLayout(new java.awt.FlowLayout(\n\t\t\t\tjava.awt.FlowLayout.LEFT));\n\t\tadd(allSpellsPanel, java.awt.BorderLayout.CENTER);\n\t}",
"public void initialize(){\n\t screens.put(ScreenType.Game, new GameScreen(this));\n screens.put(ScreenType.Menu, new MenuScreen(this));\n }",
"private void init() {\n initComponents();\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(calendarPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(calendarPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));\n setVisible(true);\n setLocationRelativeTo(null);\n }",
"private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}",
"public void init()\n\t\t{\n\t\t\t//Makes Lists\n\t\t\tmakeLists();\n\n\t\t\t//layout for GUI\n\t\t\tGridLayout layout = new GridLayout(2,4, 5 ,5);\n\t\t\tsetLayout(layout);\n\n\t\t\t//add panels to window\n\t\t\tadd(Panel_1);\n\t\t\tadd(Panel_2);\n\t\t\tadd(Panel_3);\n\t\t\tadd(Panel_4);\n\n\t\t\t//create buttons\n\t\t\tCalculateButton = new JButton(\"Calculate\");\n\t\t ExitButton = new JButton(\"Exit\");\n\n\t\t\t//connect event handlers to buttons\n\t\t CalculateButton.addActionListener(new ButtonListener());\n\t\t ExitButton.addActionListener(new ButtonListener());\n\n\t\t\t//add buttons to window\n\t\t add(CalculateButton);\n\t\t add(ExitButton);\n\n\t\t //make window visible\n\t\t\tsetVisible(true);\n\t\t}",
"private void initComponents() {\n\t\tstage = new Stage();\n\t\tHBox root = new HBox();\n\t\troot.setPadding(new Insets(10));\n\t\troot.setAlignment(Pos.CENTER);\n\t\tlabel = new Label(\" \");\n\t\tlabel.setPrefWidth(144);\n\t\tlabel.setFont(new Font(\"Arial\", 80.0));\n\t\tlabel.setAlignment(Pos.CENTER);\n\t\troot.getChildren().add(label);\n\t\tScene scene = new Scene(root);\n\t\tstage.setScene(scene);\n\t\tstage.setTitle(\"Count Guest\");\n\t\tstage.sizeToScene();\n\t}",
"private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}",
"private void initialize() {\r\n\r\n\t\ttitleFont = new Font(\"宋体\", Font.BOLD + Font.PLAIN, 16);\r\n\t\tfont = new Font(\"宋体\", Font.PLAIN, 12);\r\n\t\ttry {\r\n\t\t\tcolor = new Color(Integer.parseInt(\"D3D3D3\", 16));\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// codes to deal with this exception\r\n\t\t}\r\n\t\tdaojLabel = new JLabel();\r\n\t\tdaojLabel.setBounds(new Rectangle(255, 33, 15, 18));\r\n\t\tdaojLabel.setText(\"到\");\r\n\t\tdaojLabel.setFont(font);\r\n\t\tdaojLabel.setForeground(color);\r\n\t\tcxsjjLabel = new JLabel();\r\n\t\tcxsjjLabel.setBounds(new Rectangle(92, 33, 59, 18));\r\n\t\tcxsjjLabel.setText(\"查询时间:\");\r\n\t\tcxsjjLabel.setFont(font);\r\n\t\tcxsjjLabel.setForeground(color);\r\n\t\t// 设置导航panel\r\n\t\tnavigatePanel = new JPanel();\r\n\t\tnavigatePanel.setLayout(null);\r\n\t\tnavigatePanel.add(this.getProjButton());\r\n\t\tnavigatePanel.add(this.getNextjButton());\r\n\t\tnavigatePanel.setBounds(new Rectangle(95, 510, 788, 20));\r\n\t\tColor color = new Color(35, 35, 35);\r\n\t\t// navigatePanel.setBackground(Color.GRAY);\r\n\t\tnavigatePanel.setBackground(color);\r\n\t\tthis.add(navigatePanel);\r\n\r\n\t\tthis.setSize(976, 601);\r\n\t\tthis.setLayout(null);\r\n\t\tthis.add(cxsjjLabel, null);\r\n\t\tthis.add(getBegjTextField(), null);\r\n\t\tthis.add(daojLabel, null);\r\n\t\tthis.add(getEndjTextField(), null);\r\n\t\tthis.add(getCxjButton(), null);\r\n\r\n\t\tgetylcs = new GetYlcs();\r\n\t\tthis.add(getMainjPanel(), null);\r\n\r\n\t}",
"@SuppressWarnings(\"static-access\")\n\tprivate void init() {\n\t\tdisplay= new Display(title,width,height);\n\t\tdisplay.getFrame().addMouseListener(mouseManager);\n\t\tdisplay.getFrame().addMouseMotionListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseMotionListener(mouseManager);\n\n\t\t\n\t\t//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Declarare imagini~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n Assets.init();\n \n\t\tgameState= new GameState(this);\n\t\tgameStateAI= new GameStateAI(this);\n\t\tmenuState = new MenuState(this);\n\t\tsettingsState= new SettingsState(this);\n\t\tState.setState(menuState);\t\n\t\t\n\t\n\t}",
"public HoaDonJPanel() {\n initComponents(); \n this.init();\n }",
"private void init() {\n\t\n\t\tthis.setSize(DEFAULT_W, DEFAULT_H);\n\t\tthis.setLocation(DEFAULT_X, DEFAULT_X);\n\t\tthis.setTitle(DEFAULT_TITLE);\n\n\t}",
"private void initialize() {\r\n label = new JLabel();\r\n panel = new JPanel();\r\n }",
"private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}",
"public void initializeDisplayBaseInfo() {\n DisplayInfo newDisplayInfo;\n DisplayManagerInternal displayManagerInternal = this.mWmService.mDisplayManagerInternal;\n if (!(displayManagerInternal == null || (newDisplayInfo = displayManagerInternal.getDisplayInfo(this.mDisplayId)) == null)) {\n this.mDisplayInfo.copyFrom(newDisplayInfo);\n }\n updateBaseDisplayMetrics(this.mDisplayInfo.logicalWidth, this.mDisplayInfo.logicalHeight, this.mDisplayInfo.logicalDensityDpi);\n this.mInitialDisplayWidth = this.mDisplayInfo.logicalWidth;\n this.mInitialDisplayHeight = this.mDisplayInfo.logicalHeight;\n this.mInitialDisplayDensity = this.mDisplayInfo.logicalDensityDpi;\n this.mInitialDisplayCutout = this.mDisplayInfo.displayCutout;\n }",
"private void initializeUI() {\n MedUtils.displayMedInfo(coverArt, playBinding.thumbIv, playBinding.titleTv,\n playBinding.subtitleTv, selectedMed);\n\n playBinding.playPauseBt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n switch (MediaPlayerService.getState()) {\n case Constants.STATE_PLAY:\n mediaPlayerService.pauseAction();\n break;\n case Constants.STATE_PAUSE:\n mediaPlayerService.playAction();\n break;\n case Constants.STATE_NOT_INIT:\n startMediaPlayerService();\n break;\n }\n }\n });\n\n playBinding.stopBt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mediaPlayerService.stopAction();\n }\n });\n }",
"private void initComponents() {\n\t\tlblTitle = new javax.swing.JLabel();\n\t\tlblTitle.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n\t\tjSeparator1 = new javax.swing.JSeparator();\n\n\t\tlblTitle.setFont(getTitleFont());\n\t\tlblTitle.setForeground(getTitleColor());\n\t\tlblTitle.setText(com.floreantpos.POSConstants.TITLE);\n\n\t\tsetLayout(new BorderLayout(5, 5));\n\t\tadd(lblTitle);\n\t\tadd(jSeparator1, BorderLayout.SOUTH);\n\n\t\tsetPreferredSize(PosUIManager.getSize(300, 60));\n\t}",
"@Override\n\tpublic void init() {\n\t\tmaterialImages = new JButton[MaterialState.materialLibrary.size()];\n\t\tmaterialNames = new JLabel[MaterialState.materialLibrary.size()];\n\t\tmaterialAmounts = new JLabel[MaterialState.materialLibrary.size()];\n\t\tmaterialColours = new JLabel[MaterialState.materialLibrary.size()];\n\n\t\ttotalRating = 0;\n\t\ttotalToxic = 0;\n\t\ttotalNegative = 0;\n\t\ttotalDamage = 0;\n\n\t}",
"public void initialize(){\n\t\ttoolBar.setDrawingPanel(drawingPanel);\n\t\t// component initialization\n\t\tmenuBar.initialize();\t\n\t\ttoolBar.initialize();\t\n\t\tdrawingPanel.initialize();\n\t\t\n\t\t\n\t}",
"private void initComponents(){\n\t\n\t\tthis.setLayout(null);\n\t\t\n\t\tscreensize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\n\t\tlogo = new JLabel(getLogoIcon(), JLabel.CENTER); // 500x50\n\t\t\n\t\toptionList = new JComboBox();\n\t\t\n\t\tcreate = new JButton(\"Create\");\n\t\tclose = new JButton(\"Close\");\n\t\t\n\t\tcreate.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tcreateActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\t\n\t\tclose.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tcloseActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"private void initialize() {\n\t\troot = new Group();\n\t\tgetProperties();\n\t\tsetScene();\n\t\tsetStage();\n\t\tsetGUIComponents();\n\t}",
"public void initComponent(){\n\t\t\n\t\tpanelMiddle.setCaption(\"PROSES:\");\n\t\t\n\t\t//INIT COMPONENT BAWAH\t\n\t\tlabelNotes.setContentMode(ContentMode.HTML);\n\t\tlabelNotes.setValue(\"Notes: <br> Perubahan pada Calender Kerja akan mempengaruhi seluruh sistem <br>.\" );\n\t}",
"public final void initialize() {\n platformComponent.initialize(getPlatformWindow());\n initializeImpl();\n setVisible(target.isVisible());\n }",
"protected void init() {\r\n\t\tsetBackground(Color.black);\r\n\t\tsetForeground(Color.white);\r\n\t\taddMouseListener(this);\r\n\t\taddMouseMotionListener(this);\r\n\t\tcreateSelection();\r\n\t\tsel.addListener(this);\r\n\t\tcreateSection();\r\n\t\tsection.addListener(this);\r\n\t\tsetOpaque(true);\r\n\t\tremoveAll();\r\n\t}",
"private void makeDisplay() {\n\n\t\t// setLayout to be a BoxLayout\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\t// call these methods ???? to be defined later\n\n\t\taddOscServerAddressPanel();\n\t\taddGlobalControlPanel();\n\t\taddFirstSynthPanel();\n\t\taddSecondSynthPanel();\n\t\taddThirdSynthPanel();\n\t}",
"public void init() {\n\t\t//initializing graphics area\n \tcanvas = new FacePamphletCanvas();\n \tadd(canvas);\n \t\n\t\taddInteractors();\n\t\taddActionListeners();\n }",
"private void initComponents() {\n\n\t\tsceneMonitor = new javax.swing.JCheckBox();\n\n\t\tsceneMonitor.setText(\"Enable scene monitor:\");\n\t\tsceneMonitor.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);\n\t\tsceneMonitor.setName(\"sceneMonitor\"); // NOI18N\n\t\tsceneMonitor.setSelected(prefs.getShowSceneMonitor());\n\t\tsceneMonitor.addItemListener(new java.awt.event.ItemListener() {\n\t\t\tpublic void itemStateChanged(java.awt.event.ItemEvent evt) {\n\t\t\t\tsceneMonitorItemStateChanged(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tthis.setLayout(layout);\n\t\tlayout.setHorizontalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(sceneMonitor)\n\t\t\t\t\t\t.addContainerGap(223, Short.MAX_VALUE))\n\t\t);\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(sceneMonitor)\n\t\t\t\t\t\t.addContainerGap(271, Short.MAX_VALUE))\n\t\t);\n\t}",
"private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}",
"public ClockDisplay()\r\n\t{\t\t\r\n\t\t\r\n\t\tthis.numberDisplay1 = new NumberDisplay();\r\n\t}",
"private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}",
"private void initComponents() {\r\n\t\trand = new Random();\r\n\t\tfetchProfiles();\r\n\t\tgetPeopleFromFile();\r\n\t}",
"public RaceBasePanel()\n\t{\n\t\tinitComponents();\n\t\tinitComponentContents();\n\t}",
"public TetrisGUI() {\r\n initializeFields();\r\n }",
"public static void initComponents() {\n\n StyleConstants.setFontSize(headingStyle, 12);\n StyleConstants.setBold(headingStyle, true);\n StyleConstants.setFontFamily(headingStyle, \"Monospaced\");\n\n StyleConstants.setFontSize(black, 10);\n StyleConstants.setFontFamily(black, \"Monospaced\");\n\n StyleConstants.setFontSize(red, 10);\n StyleConstants.setFontFamily(red, \"Monospaced\");\n StyleConstants.setForeground(red, Color.red);\n\n StyleConstants.setFontSize(green, 10);\n StyleConstants.setFontFamily(green, \"Monospaced\");\n StyleConstants.setForeground(green, Color.blue);\n\n try {\n textPane.setCharacterAttributes(headingStyle, true);\n documentModel.insertString(documentModel.getLength(), \"Logging started ...\\n\\n\", headingStyle);\n } catch (BadLocationException ble) {\n System.out.println(\"Bad location for text insert on logpanel.\");\n }\n }",
"private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}",
"public UI() {\n initComponents();\n }",
"private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}",
"private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}"
] | [
"0.7763886",
"0.7326923",
"0.7315568",
"0.7280585",
"0.7268261",
"0.7266104",
"0.72490513",
"0.721703",
"0.7213793",
"0.7209455",
"0.72047776",
"0.7147526",
"0.7147526",
"0.71149665",
"0.7070168",
"0.7053635",
"0.70336145",
"0.70206237",
"0.7016963",
"0.7013765",
"0.70092183",
"0.6979541",
"0.6979524",
"0.6961588",
"0.69534534",
"0.6948481",
"0.69248414",
"0.6884648",
"0.6883166",
"0.68511915",
"0.684464",
"0.68421954",
"0.68409544",
"0.6826523",
"0.68259394",
"0.6812538",
"0.6790245",
"0.67773604",
"0.677619",
"0.6775086",
"0.6765484",
"0.676455",
"0.6763154",
"0.675757",
"0.6734584",
"0.67345685",
"0.67215353",
"0.67187554",
"0.67115784",
"0.67021257",
"0.6699341",
"0.6698877",
"0.6698809",
"0.6688244",
"0.6686905",
"0.6678128",
"0.6673005",
"0.6671967",
"0.66716814",
"0.66640186",
"0.6662846",
"0.6658594",
"0.6654891",
"0.66506034",
"0.6648829",
"0.6646637",
"0.66192406",
"0.6614739",
"0.6613009",
"0.66040105",
"0.66022474",
"0.66020936",
"0.6601798",
"0.6598237",
"0.659665",
"0.6595977",
"0.6592717",
"0.6588952",
"0.6584243",
"0.65755725",
"0.6565976",
"0.6562923",
"0.6561878",
"0.6558303",
"0.655658",
"0.65531355",
"0.6548424",
"0.6547256",
"0.6546989",
"0.6546455",
"0.6543175",
"0.6539361",
"0.65376496",
"0.6537046",
"0.6530859",
"0.6529308",
"0.65274876",
"0.6526222",
"0.6518644",
"0.6513922",
"0.6512104"
] | 0.0 | -1 |
Changes to disconnected status. | private void disconnected() {
m_connectionLabel.setBackground(Color.RED);
m_connectionLabel.setText("Disconnected");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void disconnected(String reason) {}",
"@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}",
"public void handleDisconnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Failed to connect to \" + tallyDeviceName);\n\n }",
"@Override\n\tpublic void onDisconnected() {\n\t\tmConnectionStatus.setText(R.string.disconnected);\n\t}",
"@Override\n public void gattDisconnected() {\n mConnected = false;\n updateConnectionState(R.string.disconnected);\n mDataField.setText(R.string.no_data);\n getActivity().invalidateOptionsMenu();\n sCapSwitch.setChecked(false);\n sCapSwitch.setEnabled(false);\n }",
"public void disconnect()\n {\n isConnected = false;\n }",
"public void setDisconnected()\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tsetConnected(false);\n\t\t\t\tclearUserNames();\n\t\t\t\tprint(\"\\nConnection has been lost. Try reconnecting.\\n\");\n\t\t\t\tmainFrame.revalidate();\n\t\t \t\tmainFrame.repaint();\n\t\t\t}\n\t\t});\n\t}",
"void onDisconnected();",
"protected void onDisconnect() {}",
"@Override\n\t\t\tpublic void disconnected() {\n\t\t\t\ttoast(\"IOIO disconnected\");\n\t\t\t}",
"public void onDisconnected() {\n\t\t\r\n\t}",
"boolean getDisconnect();",
"protected void processDisconnection(){}",
"void onDisconnect(DisconnectReason reason, String errorMessage);",
"public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }",
"void onDisconnectFailure();",
"protected void onRobotDisconnect (boolean bbUserNotify)\r\n\t{\r\n\t\tUI_RefreshConnStatus ();\r\n\t}",
"void onDisconnect();",
"void onDisconnect();",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.597 -0500\", hash_original_method = \"6CA7282E928AA840C6D25E995C5EBFEA\", hash_generated_method = \"EE2364AE0179C423F2BD973FF5B92F49\")\n \nprivate void replyDisconnected(int status) {\n Message msg = mSrcHandler.obtainMessage(CMD_CHANNEL_DISCONNECTED);\n msg.arg1 = status;\n msg.obj = this;\n msg.replyTo = mDstMessenger;\n mSrcHandler.sendMessage(msg);\n }",
"void onDisconnectSuccess();",
"abstract protected void onDisconnection();",
"@Override\n public void Disconnect() {\n bReConnect = true;\n }",
"public void onDeviceDisconnected() {\n btButton.setText(\"Disconnnected\");\n }",
"public void disconnect() {}",
"@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}",
"void onDisconnect( String errorMsg );",
"protected void onDisconnected(long hconv)\n {\n }",
"public void setOffline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = false;\n this.statusLed.setStatus(\"warning\");\n this.setOutputPower(0);\n this.channel.updateOutput();\n }\n }",
"protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}",
"@Override\npublic boolean isDisconnected(NodeIDType node) {\n\treturn false;\n}",
"public void disconnect() {\n\t\t\n\t}",
"public void disconnect() {\r\n\t\trunning = false;\r\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\t// Display the connection status\n\t\tToast.makeText(this, \"Disconnected. Please re-connect.\", Toast.LENGTH_SHORT).show();\n\t}",
"public void reconnected() { }",
"public void disconnect() {if(mEnable) mBS.disconnect();}",
"protected void disconnect() {\n\t\tif (false == DOM.getElementPropertyBoolean(this.getFrame(), \"__connected\")) {\r\n\t\t\tthis.onUnableToConnect();\r\n\t\t} else {\r\n\t\t\tthis.restart();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\n\t}",
"boolean hasDisconnect();",
"public void onDisconnected() {\n\n }",
"public void onDisconnected() {\n\n }",
"void disconnect(String reason);",
"public void socketDisconnected(PacketChannel pc, boolean failed);",
"@Override\n public void onDisconnected() {\n }",
"@Override\n\tpublic void connectionStatusChanged(int connectedState, String reason) {\n\n\t}",
"public void disconnectedFrom(ServerDescriptor desc);",
"public void onDisconnected() {\r\n // Display the connection status\r\n Toast.makeText(this, \"Disconnected. Please re-connect.\",\r\n Toast.LENGTH_SHORT).show();\r\n }",
"public boolean getDisconnect() {\n return disconnect_;\n }",
"public void onDisconnect(Controller controller) {\n\t\tSystem.out.println(\"Disconnected\");\r\n\t}",
"public void onDisconnect(Controller controller) {\n\t\tSystem.out.println(\"Disconnected\");\r\n\t}",
"@Override\n\tpublic void disconnect() {\n\t\t\n\t}",
"@Override\n\tpublic void disconnect() {\n\t\t\n\t}",
"public void disconnect() {\n\t\tdisconnect(true);\n\t}",
"@Override public void onDisconnected() {\n }",
"@Override\n\tpublic void disconnect() {\n\n\t}",
"@Override\n\tpublic void disconnect() {\n\n\t}",
"protected void beforeDisconnect() {\n // Empty implementation.\n }",
"protected void afterDisconnect() {\n // Empty implementation.\n }",
"public boolean getDisconnect() {\n return disconnect_;\n }",
"public void doOnDisconnect() {\n\t\t// Shut off any sensors that are on\n\t\tMainActivity.this.runOnUiThread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\n\t\t\t\tresetAllOperations();\n\n\t\t\t\t\n\t\t\t\t// Make sure the LEDs go off\n\t\t\t\tif (droneApp.myDrone.isConnected) {\n\t\t\t\t\tdroneApp.myDrone.setLEDs(0, 0, 0);\n\t\t\t\t}\n\n\n\t\t\t\t// Only try and disconnect if already connected\n\t\t\t\tif (droneApp.myDrone.isConnected) {\n\t\t\t\t\tdroneApp.myDrone.disconnect();\n\t\t\t\t}\n\n\t\t\t\t// Remind people how to connect\n\t\t\t\ttvConnectInfo.setVisibility(TextView.VISIBLE);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tprotected void onNetworkDisConnected() {\n\n\t}",
"public void setDisconnect(boolean disconnect) {\n this.disconnect = disconnect;\n }",
"@Override\n public void onDisconnected() {\n }",
"@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\n\t\t\t\t\tSystem.out.println(\"CONNECTION HAS BEEN LOST.\");\r\n\t\t\t\t}",
"void disconnect() throws CCommException, IllegalStateException;",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"@Override\n\tprotected boolean handleDisconnect(Connection conn) {\n\t\treturn true;\n\t}",
"@Override\n public void onAgentDisconnect(long agentId, Status state) {\n }",
"@Override\r\n\tpublic void disconnect();",
"void clientDisconnected(Client client, DisconnectInfo info);",
"public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}",
"public void disconnectedFromHost();",
"public void goneOffline()\n\t{\n\t\tgetMainWindow().displayOfflineSymbol();\n\t\tmainWindow.displayMessage(Resources.getString(\"msg_disconnected\"));\n\t\tcloseAllRoomWindows();\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\tToast.makeText(context, \"Disconnected. Please re-connect.\",Toast.LENGTH_SHORT).show();\n\t}",
"public static boolean hasDisconnected() {\n return sHasDisconnected;\n }",
"@Override\r\n\t\tpublic void onDisconnect(Connection connection) {\n\r\n\t\t}",
"public void showDisconnectedFoeMessage() {\n\t\tsetStatusBar(FOE_DISC_MSG);\n\t}",
"@Override\n\tpublic void channelInactive(ChannelHandlerContext ctx) throws Exception {\n\t\tsuper.channelInactive(ctx);\n\t\tif(connectListener != null) {\n\t\t\tconnectListener.onDisconnect(ctx.channel());\n\t\t}\n\t}",
"@Override\n public void disconnect() {\n\n }",
"@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\n\t\t\t\t}",
"public void setOffline() {\r\n \t for (Utente u: utenti) { \r\n \t\t u.setStatus(\"OFFLINE\");\r\n \t }\r\n }",
"@Override\n\tpublic void disconnected(String text) {\n\t\t\n\t}",
"@Override\n public boolean disconnectFromSensor() {\n return false;\n }",
"@Override\n public void setConnectionStatus( int status )\n {\n }",
"@Override\n\t\t\tpublic void onNetworkDisconnected() {\n\t\t\t\t\n\t\t\t}",
"private void connectionClosed() {\n if (this.state != SessionState.DISCONNECTING) {\n // this came unexpected\n connectionClosed(new VertxException(\"Connection closed\"));\n }\n }",
"@Override\n public void onDisconnect(BinaryLogClient client) {\n }",
"void channelInactive() throws Exception;",
"void channelInactive() throws Exception;",
"@SubscribeEvent\n public void onFMLNetworkClientDisconnectionFromServer(ClientDisconnectionFromServerEvent event) {\n hypixel = false;\n bedwars = false;\n }",
"public void handleDisconnect(){\r\n consoleAppend(this.getName() + \" disconnected.\");\r\n clientThreads.remove(getIndex(this.getName()));\r\n sendToAll(this.getName() + \" disconnected.\");\r\n sendCTToAll(new ControlToken(ControlToken.REMOVECODE, this.getName()));\r\n }",
"private void notifyOnDisconnected(@Nullable Exception error) {\n\n\t\tif (notificationListeners != null) {\n\t\t\tfor (NotificationListener listener : notificationListeners) {\n\t\t\t\tlistener.onDisconnectedFromSyncServer(error);\n\t\t\t}\n\t\t}\n\n\t\tBusProvider.postOnMainThread(new SyncServerConnectionStatusEvent(SyncServerConnectionStatusEvent.Status.DISCONNECTED, error));\n\t}",
"@Override\n public void disconnected(final OfficeConnectionEvent event) {\n\n // Make the task executor unavailable.\n taskExecutor.setAvailable(false);\n\n // When it comes from an expected behavior (we have put\n // the field to true before calling a function), just reset\n // the disconnectExpected value to false. When we didn't expect\n // the disconnection, we must restart the office process, which\n // will cancel any task that may be running.\n if (!disconnectExpected.compareAndSet(true, false)) {\n\n // Here, we didn't expect this disconnection. We must restart\n // the office process, canceling any task that may be running.\n LOGGER.warn(\"Connection lost unexpectedly; attempting restart\");\n if (currentFuture != null) {\n currentFuture.cancel(true);\n }\n officeProcessManager.restartDueToLostConnection();\n }\n }",
"public void markConnectionStateDelete() throws JNCException {\n markLeafDelete(\"connectionState\");\n }"
] | [
"0.74061394",
"0.69924045",
"0.6975639",
"0.68562984",
"0.68026966",
"0.67592597",
"0.67439985",
"0.67152435",
"0.66364694",
"0.66202986",
"0.6593723",
"0.65877473",
"0.6560885",
"0.6548319",
"0.65444624",
"0.6530783",
"0.6493522",
"0.6490441",
"0.6490441",
"0.645446",
"0.64471424",
"0.6440025",
"0.63958544",
"0.63907206",
"0.638822",
"0.63724065",
"0.6364141",
"0.6364141",
"0.6364141",
"0.6358067",
"0.63551515",
"0.6323905",
"0.63146514",
"0.6308258",
"0.63081765",
"0.6299654",
"0.6298324",
"0.6287071",
"0.6274021",
"0.62704253",
"0.6266009",
"0.6256186",
"0.62524843",
"0.62524843",
"0.6247983",
"0.6217771",
"0.6205836",
"0.6204337",
"0.61925966",
"0.61916125",
"0.6176945",
"0.61739427",
"0.61739427",
"0.6172604",
"0.6172604",
"0.6165355",
"0.6162131",
"0.6136054",
"0.6136054",
"0.61334926",
"0.61216146",
"0.61202186",
"0.61038435",
"0.6102034",
"0.6085387",
"0.6075307",
"0.60654104",
"0.6057751",
"0.60330915",
"0.60330915",
"0.60330915",
"0.60330915",
"0.602262",
"0.6021616",
"0.6017846",
"0.6013133",
"0.60111314",
"0.5989141",
"0.5986553",
"0.59790236",
"0.5971367",
"0.5969351",
"0.5963196",
"0.59534794",
"0.59480625",
"0.59471923",
"0.5940872",
"0.5939334",
"0.59260833",
"0.5924769",
"0.5924008",
"0.5923185",
"0.59151685",
"0.5912778",
"0.5912778",
"0.58943415",
"0.589345",
"0.5875926",
"0.5875437",
"0.5863771"
] | 0.73772633 | 1 |
Changes to connected status. | private void connected() {
m_connectionLabel.setBackground(Color.GREEN);
m_connectionLabel.setText("Connected");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private synchronized void UI_RefreshConnStatus ()\r\n\t{\r\n\t\tTCPClient used=null;\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\tused=_roboCOM;\r\n\t\t}\r\n\t\tLog.e(TAG, \"Is conection Active ACCE : \" + isConnectionActive());\r\n\t\t\r\n\t\tif (!isConnecting())\r\n\t\t{\r\n\t\t\tif (old_conn_status==-2) return;\r\n\t\t\told_conn_status=-2;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (used!=null)\r\n\t\t{\r\n\t\t\tif (old_conn_status!=used.getConnStatus())\r\n\t\t\t{\r\n\t\t\t\told_conn_status=used.getConnStatus();\r\n\t\t\t\tLog.e(TAG,\"Connections Status ACCE : \" + used.getConnStatusStr());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void connectionStatusChanged(int connectedState, String reason) {\n\n\t}",
"void connected();",
"public void setConnected(boolean connected);",
"@Override\n public void setConnectionStatus( int status )\n {\n }",
"@Override\n public void connected() {\n jLabel5.setText(\"已连接\");\n }",
"public Boolean getConnected() { return this.connected; }",
"private void updateConnectedFlags() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeInfo = connMgr.getActiveNetworkInfo();\n if (activeInfo != null && activeInfo.isConnected()) {\n wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;\n mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;\n } else {\n wifiConnected = false;\n mobileConnected = false;\n }\n wifiConnected = true;\n mobileConnected = true;\n System.out.println(\"Change 3\");\n }",
"public void setConnected(boolean c) {\n this.connected = c;\n }",
"private void updateConnectedState() {\n NetworkInfo activeNetworkInfo = this.mConnectivityManager.getActiveNetworkInfo();\n this.mIsNetworkConnected = activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"@Override\n public boolean isConnected()\n {\n return connected;\n }",
"void notifyConnectionStateChanged(State state);",
"@Override\n public boolean isConnected() {\n return connected;\n }",
"void onIceConnectionChange(boolean connected);",
"public boolean isConnected(){\n return connected;\n }",
"public void setConnected(boolean connected) {\r\n this.connected = connected;\r\n }",
"public boolean isConnected(){\r\n\t\treturn connected;\r\n\t}",
"@Override\n public void linkStatusChanged(String connectorId, boolean connected) {\n }",
"public Boolean connected() {\n return this.connected;\n }",
"public boolean isConnected() {\r\n\treturn connected;\r\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 }",
"public boolean isConnected() {\n \t\treturn connected;\n \t}",
"@Override\n public void gattConnected() {\n mConnected = true;\n updateConnectionState(R.string.connected);\n getActivity().invalidateOptionsMenu();\n }",
"public static void changeConnectionStatus(Boolean isConnected) {\n \tconnected=isConnected;//change variable\n \t\tif(isConnected){//if connection established\n \t\t\tLog.i(\"Debug\",\"successfully connected to server\");//log\n \t\t\t//conBtn.setText(\"DISCONNECT\");//change Buttontext\n \t\t}else{\n \t\t\tLog.i(\"Debug\",\"disconnected from Server!\");//log\n \t\t\t//conBtn.setText(\"CONNECT\");//change Buttontext\n \t\t}\n \t}",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected()\n {\n return connected;\n }",
"@Override\n\tpublic void connectionStateChanged(boolean connected, boolean connectionLost) {\n\t\t\n\t}",
"public boolean isConnected() {\r\n return connected;\r\n }",
"public void setConnected(boolean connected) {\n\t\tthis.connected = connected;\n\t}",
"public void reconnected() { }",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"@Override\n\tpublic void connectionStatusChanged(int connectedState, String reason) {\n\t\tif (mLoginDialog != null && mLoginDialog.isShowing())\n\t\t\tmLoginDialog.dismiss();\n\t\tif (mLoginOutTimeProcess != null && mLoginOutTimeProcess.running) {\n\t\t\tmLoginOutTimeProcess.stop();\n\t\t\tmLoginOutTimeProcess = null;\n\t\t}\n\t\tif (connectedState == XXService.CONNECTED) {\n\t\t\tsave2Preferences();\n\t\t\tstartActivity(new Intent(this, MainActivity.class));\n\t\t\tfinish();\n\t\t} else if (connectedState == XXService.DISCONNECTED)\n\t\t\tT.showLong(LoginActivity.this, getString(R.string.request_failed)\n\t\t\t\t\t+ reason);\n\t}",
"public boolean isConnected() {\n return connected;\n }",
"public boolean isConnected() {\n return connected;\n }",
"public boolean isConnected() {\n return connected;\n }",
"public boolean isConnected() {\n return connected;\n }",
"public boolean isConnected() {\n return connected;\n }",
"public void setConnected(boolean connected) {\n isConnected = connected;\n }",
"public void setConnStatus(boolean conn) {\n jMessageEntry.setEnabled(conn);\n jSendButton.setEnabled(conn);\n jMenuItemOtherPartyInfo.setEnabled(conn);\n jMenuSaveCertInfo.setEnabled(conn);\n jMenuItemDisconnect.setEnabled(conn);\n if (conn) {\n setStatus(\"Connected to \" + convo.getOtherID());\n } else {\n setStatus(\"Not connected\");\n }\n\n }",
"public boolean isConnected() {\n\t\treturn connected;\n\t}",
"public boolean isConnected() {\n\t\treturn connected;\n\t}",
"protected abstract boolean isConnected();",
"protected void notifyConnection() {\n connectionListeners.forEach(listener-> listener.connectionChange(this, isConnected()));\n }",
"public static void serverConnected() {\r\n jButton5.setEnabled(false);\r\n jButton4.setEnabled(false);\r\n jButton6.setEnabled(true);\r\n jButton1.setEnabled(true);\r\n jTextField1.setEnabled(true);\r\n log(\"GREEN\", \"[Status] - Connected !\");\r\n }",
"public boolean isConnected(){\n return isConnected;\n }",
"public void setOnline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = true;\n this.statusLed.setStatus(\"ok\");\n this.updateOscilloscopeData();\n }\n }",
"public static boolean isConnected()\r\n\t{\r\n\t\t return Globals.connected ;\r\n\t}",
"protected void handleConnected(){\n sendCommand(createLoginIvarsSettingString(requestedIvarStates));\n ivarStates = (BitSet)requestedIvarStates.clone();\n \n super.handleConnected();\n }",
"public boolean isConnected() {\n return this.connected;\n }",
"public boolean isConnected() {\n return this.connected;\n }",
"public void statusChanged() {\n\t\tif(!net.getArray().isEmpty()) {\n\t\t\tigraj.setEnabled(true);\n\t\t}else\n\t\t\tigraj.setEnabled(false);\n\t\t\n\t\tupdateKvota();\n\t\tupdateDobitak();\n\t}",
"public boolean isConnected()\n {\n return isConnected;\n }",
"public void setConnected(int client, boolean connected) {\n final int c = client;\n final boolean conn = connected;\n \n Runnable doUpdate = new Runnable() {\n public void run() {\n JLabel statusLabel = (JLabel) cstatus.get(c);\n if (conn) {\n statusLabel.setText(\"Connected\");\n statusLabel.setForeground(new Color(25, 90, 25));\n } else {\n statusLabel.setText(\"Disconnected\");\n statusLabel.setForeground(new Color(90, 25, 25));\n }\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }",
"public void setConnStatus(String text){\n connStatus.setText(text);\n }",
"public void handleStatusUpdated() {\n copyWifiStates();\n notifyListenersIfNecessary();\n }",
"@Override\r\n\tpublic boolean isConnected() {\n\t\treturn false;\r\n\t}",
"public void goOnline()\n\t{\t\t\n\t\ttry {\n\t\t\tchatConnection.openConnection(connectionconfig);\n\t\t\tgetMainWindow().displayOnlineSymbol();\n\t\t\tconfig_ok = true;\n\t\t} catch (Exception e) {\n\t\t\tconfig_ok = false;\n\t\t\tcreateConnectionConfigurationDialog(e.getMessage());\n\t\t\t\n\t\t}\n\t}",
"public boolean connectionChange()\n {\n if(isDestroyed) throw new RuntimeException(\"pvaClientMultiChannel was destroyed\");\n for(int i=0; i<numChannel; ++i) {\n PvaClientChannel pvaClientChannel = pvaClientChannelArray[i];\n Channel channel = pvaClientChannel.getChannel();\n ConnectionState stateNow = channel.getConnectionState();\n boolean connectedNow = stateNow==ConnectionState.CONNECTED ? true : false;\n if(connectedNow!=isConnected[i]) return true;\n }\n return false;\n }",
"public void handleConnectingState() {\n\n setProgressBarVisible(true);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Connecting to \" + tallyDeviceName);\n\n }",
"public void switchStatus() {\n if (ioStatus.get() == EdgeStatus.INPUT) {\n ioStatus.set(EdgeStatus.OUTPUT);\n } else {\n ioStatus.set(EdgeStatus.INPUT);\n }\n }",
"public void connectedTo(ServerDescriptor desc);",
"@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}",
"public void setConnected(boolean connected) {\n boolean oldValue = mConnected;\n mConnected = connected;\n pcs.firePropertyChange(PROP_CONNECTED, oldValue, mConnected);\n }",
"public boolean isConnected() {\n return isConnected;\n }",
"void onStatusChanged(Status newStatus);",
"public boolean allConnected()\n {\n if(isDestroyed) throw new RuntimeException(\"pvaClientMultiChannel was destroyed\");\n return (numConnected==numChannel) ? true : false;\n }",
"public boolean isConnected() {\n return mConnected;\n }",
"public boolean isConnected() {\n if (mState == STATE_CONNECTED) {\n return true;\n }\n return false;\n }",
"private void updateUserStatus(boolean online)\n {\n }",
"public void setConnected(boolean connected) {\n boolean oConnected = isConnected();\n this.connected = connected;\n firePropertyChange(PROPNAME_CONNECTED, oConnected, this.connected);\n }",
"private static void addConnectStateToUser(String userId) {\n DatabaseReference userStatusDatabaseRef =\n userInfoRef.child(userId);\n\n // Create a reference to the special '.info/connected' path in\n // Realtime Database. This path returns `true` when connected\n // and `false` when disconnected.\n DatabaseReference firebaseConnectionRef= FirebaseDatabase.getInstance().getReference(\".info/connected\");\n firebaseConnectionRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n boolean connected = snapshot.getValue(Boolean.class);\n //only if the user is connected (not connected users will be handled in the disconnect event listener\n if (connected) {\n // If we are currently connected, then use the 'onDisconnect()'\n // method to add a set which will only trigger once this\n // client has disconnected by closing the app,\n // losing internet, or any other means.\n HashMap<String, Object> offlineUpdateMap = new HashMap<String, Object>() {{\n put(\"status\", OFFLINE_STATE);\n }};\n userStatusDatabaseRef.onDisconnect().updateChildren(offlineUpdateMap);\n\n\n // We can now safely set ourselves as 'online' knowing that the\n // server will mark us as offline once we lose connection.\n HashMap<String, Object> onlineUpdateMap = new HashMap<String, Object>() {{\n put(\"status\", ONLINE_STATE);\n }};\n userStatusDatabaseRef.updateChildren(onlineUpdateMap);\n\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }",
"public String getConnectionStatus() {\n\t\treturn this.connectionStatus;\n\t}",
"protected void onRobotConnect (boolean bbUserNotify)\r\n\t{\r\n\t\tsetCOMStatus (true);\r\n\t\tUI_RefreshConnStatus ();\r\n\t}",
"boolean isConnected() {\n \t\tif (fConnected == null)\n \t\t\treturn false;\n \t\treturn !fConnected.isEmpty();\n \t}",
"public int getState() {\n\treturn APPStates.CONTROLLER_CONNECTED_BS;\n}",
"void connected(InetAddress address, boolean isMine);",
"void notifyConnected(MessageSnapshot snapshot);",
"public boolean getIsConnected() {\n return isConnected;\n }",
"public void updateStatus(ConnectionStatus status, ConnectionError error, String errorMsg) {\n \t\tthis.connectionStatus = status;\n \t\tif (callback != null) {\n \t\t\tcallback.connectionCallback(status, error, errorMsg);\n \t\t\tif(this.connectionStatus == ConnectionStatus.DISCONNECTED) {\n \t\t\t\tcallback = null;\n \t\t\t}\n \t\t}\n \t}",
"public void handleConnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(true);\n setMessageText(\"Connected to \" + tallyDeviceName);\n\n // Waits for 2 seconds so that the user\n // can see the message and then exits the\n // activity\n timerHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n\n exitActivity();\n\n }\n\n }, 2000);\n\n }",
"void onConnected() {\n closeFab();\n\n if (pendingConnection != null) {\n // it'd be null for dummy connection\n historian.connect(pendingConnection);\n }\n\n connections.animate().alpha(1);\n ButterKnife.apply(allViews, ENABLED, true);\n startActivity(new Intent(this, ControlsActivity.class));\n }",
"private void updateSensorStatus(boolean isConnected) {\n \t\t\n \t\t// get the parts of the text to use\n \t\tCharSequence mStartText = getText(R.string.readings_ui_lbl_sensor_status);\n \t\tSpannableString mConnectedValue;\n \t\tForegroundColorSpan mColourSpan;\n \t\t\n \t\t// get the right words and colours for the connected status\n \t\tif(isConnected) {\n \t\t\tmConnectedValue = new SpannableString(getString(R.string.readings_ui_lbl_sensor_status_connected));\n \t\t\tmColourSpan = new ForegroundColorSpan(Color.GREEN);\n \t\t} else {\n \t\t\tmConnectedValue = new SpannableString(getString(R.string.readings_ui_lbl_sensor_status_disconnected));\n \t\t\tmColourSpan = new ForegroundColorSpan(Color.RED);\n \t\t}\n \t\t\n \t\t// apply the colour\n \t\tmConnectedValue.setSpan(mColourSpan, 0, mConnectedValue.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE);\n \t\t\n \t\t// combine the two parts and set the text of the view\n \t\tsensorStatusView.setText(TextUtils.concat(mStartText, \" \", mConnectedValue));\n \t}",
"@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)\n {\n \n Channel connectedChannel = e.getChannel();\n allChannels.add(connectedChannel);\n \n msg = StringAppender.mergeToStr(connectedMsg, e.getChannel().getLocalAddress().toString(), \" , Connections:\", String.valueOf(allChannels.size()));\n logger.info(msg);\n \n }",
"private void setOnline(String urlConfig) {\n switch (status) {\n case SERVER_DOWN:\n case URL_UNSET:\n logger.debug(\"Status changing from \" + status + \" to \"\n + Status.SERVER_UP);\n broadcastMessage(urlConfig);\n status = Status.SERVER_UP;\n break;\n default:\n logger.debug(\"SetOnline: Status not changed from \" + status);\n // no action\n }\n }",
"public void changeAndNotify(String newStatus){\r\n\t\tstatus = newStatus;\r\n\t\tSystem.out.println(\"new status is: \"+ status);\r\n\t\tthis.notifyAllObservers(status);\r\n\t}",
"boolean hasStatusChanged();",
"@Override\n public void stateChanged(\n final CuratorFramework client, final ConnectionState newState\n ) {\n }"
] | [
"0.74405247",
"0.73721683",
"0.714159",
"0.7062711",
"0.7039476",
"0.7027778",
"0.6938011",
"0.69206244",
"0.69046843",
"0.68620855",
"0.6841576",
"0.6824791",
"0.6821809",
"0.6771974",
"0.6735546",
"0.67289966",
"0.6722211",
"0.67077184",
"0.6699852",
"0.6696822",
"0.66928047",
"0.6680066",
"0.66451234",
"0.6612001",
"0.6568905",
"0.6568905",
"0.6568905",
"0.6568905",
"0.6568905",
"0.6538666",
"0.65356475",
"0.65306675",
"0.65272784",
"0.6521403",
"0.65155774",
"0.65155774",
"0.65155774",
"0.65155774",
"0.65155774",
"0.65155774",
"0.65155774",
"0.65155774",
"0.65101826",
"0.6488227",
"0.64754",
"0.64754",
"0.64754",
"0.64754",
"0.64754",
"0.6461375",
"0.6456411",
"0.6440469",
"0.6440469",
"0.6433509",
"0.6432456",
"0.64268446",
"0.6426573",
"0.6419302",
"0.6404038",
"0.63685423",
"0.63566965",
"0.63566965",
"0.6293208",
"0.62924343",
"0.62910706",
"0.6286228",
"0.6253825",
"0.62524235",
"0.6235973",
"0.6219531",
"0.6204621",
"0.6191686",
"0.6170489",
"0.61507285",
"0.61507285",
"0.61431396",
"0.614062",
"0.6128315",
"0.6121496",
"0.6106579",
"0.61044973",
"0.6102529",
"0.60713696",
"0.6053147",
"0.6036679",
"0.6033813",
"0.60326225",
"0.6030963",
"0.6022872",
"0.59902775",
"0.5988121",
"0.59725475",
"0.5967053",
"0.59669405",
"0.5965261",
"0.5957844",
"0.593252",
"0.590877",
"0.5906432",
"0.59003353"
] | 0.7095315 | 3 |
Assembles and returns the JPanel with the main controls and content on it. | private JPanel buildContentPanel() {
JPanel content = new JPanel();
content.setLayout(new GridBagLayout());
m_ipField = new JTextField(10);
m_ipField.setText(m_defaultIp);
m_portField = new JTextField(5);
m_portField.setText(m_defaultPort);
// First Column
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = 0;
gbc.gridy = 0;
gbc.insets = new Insets(2, 2, 2, 2);
content.add(new JLabel("IP:"), gbc);
// Second Column
gbc.gridx = 1;
gbc.gridy = 0;
content.add(m_ipField, gbc);
// Third Column
gbc.gridx = 2;
gbc.gridy = 0;
gbc.gridwidth = 1;
content.add(new JLabel("Port:"), gbc);
// Fourth Column
gbc.gridx = 3;
content.add(m_portField, gbc);
// Separator
gbc.gridx = 0;
gbc.gridy = 2;
gbc.gridwidth = 5;
gbc.fill = GridBagConstraints.HORIZONTAL;
content.add(new JSeparator(), gbc);
return content;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\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 JComponent buildContentPane() {\r\n contentPane = new ContentPanel(new BorderLayout());\r\n contentPane.add(buildToolBar(), BorderLayout.NORTH);\r\n contentPane.add(buildMainPanel(), BorderLayout.CENTER);\r\n return contentPane;\r\n }",
"private Component buildMainPanel() {\r\n \tDPanel mainPanel = new DPanel();\r\n \tJLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon(\"happycow.jpg\"));\r\n \tmainPanel.add(backGroundLabel);\r\n \tsetCurrentContentPane(mainPanel);\r\n \thome = mainPanel;\r\n return home;\r\n }",
"private SizedJPanel getMainPanel() {\n if (mainPanel == null) {\n mainPanel = new GuiMainPanel(this, config.paths.getValue(),\n config.outFile.getValue(), config.isOboToOwl.getValue());\n }\n return mainPanel;\n }",
"private void buildContentPane() {\n\t\t// The JPanel that will become the content pane\n\t\tJPanel cp = new JPanel();\n\t\tcp.setLayout(new BoxLayout(cp, BoxLayout.PAGE_AXIS));\n\n\t\tlanguagePanel = initLanguagePanel();\n\t\tcp.add(languagePanel);\n\n\t\tinputPanel = initInputPanel();\n\t\tcp.add(inputPanel);\n\n\t\tJPanel btnPanel = initBtnPanel();\n\t\tcp.add(btnPanel);\n\n\t\toutputPanel = initOutputPanel();\n\t\tcp.add(outputPanel);\n\n\t\tJPanel picturePanel = initPicturePanel();\n\t\tif(picturePanel == null) {\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_SMALL_HEIGHT);\n\t\t}\n\t\telse {\n\t\t\tcp.add(picturePanel);\n\t\t}\n\n\t\tLanguage selectedLang = languagePanel.getSelectedLanguage();\n\t\tsetLanguage(selectedLang);\n\n\t\tframe.setContentPane(cp);\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 }",
"private JPanel buildMainPanel() {\n\t\t\n\t\tint row;\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel main;\n\t\tJLabel label;\t\t\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tmain = new JPanel(layout);\n\t\trow = 0;\t\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_CURRENT_CONFIGURATION)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.EAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.MED_INSETS);\n\t\tGUIUtils.add(main, label = new JLabel(userPrefs.getConfiguration()), \n\t\t\t\tlayout, constraints, row++, 1, 1, 1, GridBagConstraints.WEST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tlabel.setForeground(Color.BLUE);\t\t\n\t\tGUIUtils.add(main, new JSeparator(), layout, constraints, row++, 0, 1, \n\t\t\t\t2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, \n\t\t\t\tGUIUtils.MED_INSETS);\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_CONFIGURATION_NAME)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.NORTHEAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(main, new JScrollPane(configurationName = \n\t\t\t\tnew JTextField(20)), layout, constraints, row++, 1, 1, 1, \n\t\t\t\tGridBagConstraints.WEST, GridBagConstraints.NONE, \n\t\t\t\tGUIUtils.SMALL_INSETS);\t\t\n\t\tGUIUtils.add(main, new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_MAKE_DEFAULT)),\n\t\t\t\tlayout, constraints, row, 0, 1, 1, GridBagConstraints.EAST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\tGUIUtils.add(main, makeDefault = new JCheckBox(), layout, \n\t\t\t\tconstraints, row++, 1, 1, 1, GridBagConstraints.WEST, \n\t\t\t\tGridBagConstraints.NONE, GUIUtils.SMALL_INSETS);\n\t\treturn main;\n\t}",
"protected JPanel getContents() {\r\n\t\tif (contents == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints38 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints38.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints38.gridy = 0;\r\n\t\t\tgridBagConstraints38.weightx = 1.0;\r\n\t\t\tgridBagConstraints38.weighty = 1.0;\r\n\t\t\tgridBagConstraints38.gridx = 0;\r\n\t\t\tGridBagConstraints gridBagConstraints37 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints37.gridx = 0;\r\n\t\t\tgridBagConstraints37.insets = new Insets(3, 3, 3, 3);\r\n\t\t\tgridBagConstraints37.fill = GridBagConstraints.VERTICAL;\r\n\t\t\tgridBagConstraints37.weightx = 1.0;\r\n\t\t\tgridBagConstraints37.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints37.gridy = 1;\r\n\t\t\tcontents = new JPanel();\r\n\t\t\tcontents.setLayout(new GridBagLayout());\r\n\t\t\tcontents.setSize(new Dimension(317, 263));\r\n\t\t\tcontents.add(getRefresh(), gridBagConstraints37);\r\n\t\t\tcontents.add(getJTabbedPane(), gridBagConstraints38);\r\n\t\t}\r\n\t\treturn contents;\r\n\t}",
"public JPanel buildPanel() {\n\t\tsetLayout(new BorderLayout());\n\t\tsetBackground(ClientConstants.LIGHT_YELLOW);\n\t\tJLabel graphPlotLabel = new JLabel(ClientConstants.GRAPH_PLOT, JLabel.CENTER);\n\t\tgraphPlotLabel.setFont(ClientConstants.TEXT_FONT);\n\t\tadd(graphPlotLabel, BorderLayout.NORTH);\n\t\tsetLayout(new BorderLayout());\n\t\taffectiveGraphPlot = new AffectivePlot();\n\t\tClientDataSingleton.getInstance().setAffectivePlot(affectiveGraphPlot);\n\t\taffectiveGraphPlot.setBackground(Color.WHITE);\n\t\tadd(affectiveGraphPlot);\n\t\treturn this;\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 }",
"public Container createContentPane()\r\n\t{\r\n\t\t//add items to lvl choice\r\n\t\tfor(int g=1; g<21; g++)\r\n\t\t{\r\n\t\t\tcharLvlChoice.addItem(String.valueOf(g));\r\n\t\t}\r\n\r\n\t\t//add stuff to panels\r\n\t\tinputsPanel.setLayout(new GridLayout(2,2,3,3));\r\n\t\tdisplayPanel.setLayout(new GridLayout(1,1,8,8));\r\n\t\tinputsPanel.add(runButton);\r\n\t\tinputsPanel.add(clearButton);\r\n\t\t\ttimesPanel.add(timesLabel);\r\n\t\t\ttimesPanel.add(runTimesField);\r\n\t\tinputsPanel.add(timesPanel);\r\n\t\t\tlevelPanel.add(levelLabel);\r\n\t\t\tlevelPanel.add(charLvlChoice);\r\n\t\tinputsPanel.add(levelPanel);\r\n\t\t\trunTimesField.setText(\"1\");\r\n\t\tdisplay.setEditable(false);\r\n\r\n\t\trunButton.addActionListener(this);\r\n\t\tclearButton.addActionListener(this);\r\n\r\n\t\tdisplay.setBackground(Color.black);\r\n\t\tdisplay.setForeground(Color.white);\r\n\r\n\t\tsetTabsAndStyles(display);\r\n\t\tdisplay = addTextToTextPane();\r\n\t\t\tJScrollPane scrollPane = new JScrollPane(display);\r\n\t\t\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\t\tscrollPane.setPreferredSize(new Dimension(500, 200));\r\n\t\tdisplayPanel.add(scrollPane);\r\n\r\n\t\t//create Container and set attributes\r\n\t\tContainer c = getContentPane();\r\n\t\t\tc.setLayout(new BorderLayout());\r\n\t\t\tc.add(inputsPanel, BorderLayout.NORTH);\r\n\t\t\tc.add(displayPanel, BorderLayout.CENTER);\r\n\r\n\t\treturn c;\r\n\t}",
"private void buildGUI() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(LineBorder.createGrayLineBorder());\n\t\tadd(panel);\n\t\t\n\t\taddRootPaneListener();\n\t\taddLoginComp();\n\t\taddButtons();\n\t\taddTitle();\n\t}",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 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 getMainPanel() {\n if (mainPanel == null) {\n GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\n gridBagConstraints1.gridx = 0;\n gridBagConstraints1.insets = new Insets(2, 2, 2, 2);\n gridBagConstraints1.anchor = GridBagConstraints.EAST;\n gridBagConstraints1.gridy = 1;\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.fill = GridBagConstraints.BOTH;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0D;\n gridBagConstraints.insets = new Insets(2, 2, 2, 2);\n gridBagConstraints.gridx = 0;\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridBagLayout());\n mainPanel.add(getConfigurationScrollPane(), gridBagConstraints);\n mainPanel.add(getButtonPanel(), gridBagConstraints1);\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, 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}",
"public abstract void createContents(Panel mainPanel);",
"private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }",
"JPanel guiPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new BorderLayout());\n tabbedPane = new JTabbedPane();\n tabbedPane.addTab(\"Light\", lightPanel());\n tabbedPane.addTab(\"Background\", backgroundPanel());\n tabbedPane.addTab(\"Fog\", fogPanel());\n tabbedPane.addTab(\"Sound\", soundPanel());\n panel.add(\"Center\", tabbedPane);\n\n panel.add(\"South\", configPanel());\n return panel;\n }",
"protected JComponent doMakeContents() {\n // Run super.doMakeContents()\n // It does some initialization on private components that we can't get at\n JComponent parentContents = super.doMakeContents();\n Element chooserNode = getXmlNode();\n \n String pathFromXml =\n XmlUtil.getAttribute(chooserNode, ATTR_PATH, (String)null);\n if (pathFromXml != null && Paths.get(pathFromXml).toFile().exists()) {\n setPath(pathFromXml);\n }\n \n JComponent typeComponent = new JPanel();\n if (XmlUtil.getAttribute(chooserNode, ATTR_DSCOMP, true)) {\n typeComponent = getDataSourcesComponent();\n }\n \n if (defaultDataSourceName != null) {\n typeComponent = new JLabel(defaultDataSourceName);\n McVGuiUtils.setLabelBold((JLabel) typeComponent, true);\n McVGuiUtils.setComponentHeight(typeComponent, new JComboBox());\n }\n \n // Create the different panels... extending classes can override these\n topPanel = getTopPanel();\n centerPanel = getCenterPanel();\n bottomPanel = getBottomPanel();\n \n JPanel innerPanel = centerPanel;\n if (topPanel != null && bottomPanel != null) {\n innerPanel = McVGuiUtils.topCenterBottom(topPanel, centerPanel, bottomPanel);\n } else if (topPanel != null) {\n innerPanel = McVGuiUtils.topBottom(topPanel, centerPanel, McVGuiUtils.Prefer.BOTTOM);\n } else if (bottomPanel != null) {\n innerPanel = McVGuiUtils.topBottom(centerPanel, bottomPanel, McVGuiUtils.Prefer.TOP);\n }\n // Start building the whole thing here\n JPanel outerPanel = new JPanel();\n \n JLabel typeLabel = McVGuiUtils.makeLabelRight(getDataSourcesLabel());\n \n JLabel statusLabelLabel = McVGuiUtils.makeLabelRight(\"\");\n \n McVGuiUtils.setLabelPosition(statusLabel, Position.RIGHT);\n McVGuiUtils.setComponentColor(statusLabel, TextColor.STATUS);\n \n JButton helpButton = McVGuiUtils.makeImageButton(ICON_HELP, \"Show help\");\n helpButton.setActionCommand(GuiUtils.CMD_HELP);\n helpButton.addActionListener(this);\n \n JButton refreshButton = McVGuiUtils.makeImageButton(ICON_REFRESH, \"Refresh\");\n refreshButton.setActionCommand(GuiUtils.CMD_UPDATE);\n refreshButton.addActionListener(this);\n \n McVGuiUtils.setButtonImage(loadButton, ICON_ACCEPT_SMALL);\n McVGuiUtils.setComponentWidth(loadButton, Width.DOUBLE);\n \n // This is how we know if the action was initiated by a button press\n loadButton.addActionListener(e -> {\n buttonPressed = true;\n Misc.runInABit(1000, () -> buttonPressed = false);\n });\n \n GroupLayout layout = new GroupLayout(outerPanel);\n outerPanel.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(LEADING)\n .addGroup(TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(helpButton)\n .addGap(GAP_RELATED)\n .addComponent(refreshButton)\n .addPreferredGap(RELATED)\n .addComponent(loadButton))\n .addGroup(LEADING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(LEADING)\n .addComponent(innerPanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(typeLabel)\n .addGap(GAP_RELATED)\n .addComponent(typeComponent))\n .addGroup(layout.createSequentialGroup()\n .addComponent(statusLabelLabel)\n .addGap(GAP_RELATED)\n .addComponent(statusLabel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(BASELINE)\n .addComponent(typeLabel)\n .addComponent(typeComponent))\n .addPreferredGap(UNRELATED)\n .addComponent(innerPanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(UNRELATED)\n .addGroup(layout.createParallelGroup(BASELINE)\n .addComponent(statusLabelLabel)\n .addComponent(statusLabel))\n .addPreferredGap(UNRELATED)\n .addGroup(layout.createParallelGroup(BASELINE)\n .addComponent(loadButton)\n .addComponent(refreshButton)\n .addComponent(helpButton))\n .addContainerGap())\n );\n outerPanel.addAncestorListener(this);\n return outerPanel;\n }",
"public JComponent createContentPanel() {\n\t\tFormLayout layout = new FormLayout(\"p,3dlu,p,3dlu\", // cols //$NON-NLS-1$\n\t\t\t\t\"p,10dlu,p,10dlu\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\tCellConstraints cc = new CellConstraints();\n\t\tJEditorPane l=new JEditorPane(\"text/html\",Messages.getString(\"LicenseDialog.Email\"));\n\t\tl.setEditable(false);\n\t\tl.setOpaque(false);\n\t\tl.setFont(l.getFont().deriveFont(Font.PLAIN));\n\t\tJLabel emailLabel=new JLabel(Messages.getString(\"LicenseDialog.EmailLabel\")+\":\");\n\t\t//emailLabel.setFont(emailLabel.getFont().deriveFont(Font.PLAIN));\n\t\tbuilder.add(l,cc.xyw(1,1, 4));\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(emailLabel,email);\n\t\tbuilder.nextLine(2);\n\n\t\tJComponent result = builder.getPanel();\n\t\treturn result;\n\t}",
"private JPanel getContent()\r\n\t{\r\n\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setLayout(new GridBagLayout());\r\n\t\t\t\t\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\t\t\r\n\t\tc.insets = new Insets(10, 5, 0, 5);\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx =1.0;\r\n\t\tc.gridy = 0;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new CustLabel(\"Risikostrategie für die Bestellung\"),c);\r\n\t\t\r\n\t\tc.gridy = 1;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new OrderRiskPane(),c);\r\n\t\t\r\n\t\tc.insets.top=30;\t\r\n\t\tc.gridy = 2;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new CustLabel(\"Überstunden\"),c);\r\n\t\t\r\n\t\tc.insets.top=10;\t\r\n\t\tc.gridy = 3;\r\n\t\tc.gridx = 0;\r\n\t\tpane.add(new OvertimePane(),c);\r\n\t\t\r\n\t\treturn pane;\r\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 JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\r\n\t\t\tJTabbedPane mainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\tmainTabbedPane.setBounds(10, 29, 606, 331);\r\n\t\t\tjContentPane.add(mainTabbedPane);\r\n\t\t\tmainTabbedPane.addTab(\"Verify\", null, getVerifyPanel(), null);\r\n\t\t\tmainTabbedPane.addTab(\"Add/Capture\", null, getCapturePanel(), null);\r\n\t\t\tmainTabbedPane.addTab(\"Train\", null, getTrainPanel(), null);\r\n\t\t\t// mainTabbedPane.addTab(\"Train Data Editor\", null,\r\n\t\t\t// getTrainTestDataEditorPanel(), null);\r\n\t\t\tjContentPane.add(getStatusLabel());\r\n\t\t\tjContentPane.add(getAboutLabel());\r\n\r\n\t\t\tJLabel lblMouseGestureRecognition = new JLabel(\"Mouse Gesture Recognition\");\r\n\t\t\tlblMouseGestureRecognition.setFont(new Font(\"Arial\", Font.BOLD, 15));\r\n\t\t\tlblMouseGestureRecognition.setBounds(410, 11, 206, 27);\r\n\t\t\tjContentPane.add(lblMouseGestureRecognition);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"private void buildUI() {\n initComponents();\n\n FormLayout layout = new FormLayout(\"3dlu, pref:grow, 3dlu\",\n \"3dlu, pref, 3dlu, pref, 3dlu, fill:0:grow\");\n\n PanelBuilder builder = new PanelBuilder(layout);\n CellConstraints cc = new CellConstraints();\n\n // Toolbar\n JPanel toolbar = createToolBar();\n toolbar.setOpaque(false);\n builder.add(toolbar, cc.xy(2, 2));\n builder.addSeparator(null, cc.xyw(1, 4, 2));\n\n // Main panel in scroll pane\n JPanel mainPanel = buildMainPanel();\n mainPanel.setOpaque(false);\n JScrollPane scrollPane = new JScrollPane(mainPanel);\n scrollPane.setOpaque(false);\n scrollPane.getVerticalScrollBar().setUnitIncrement(10);\n UIUtil.removeBorder(scrollPane);\n builder.add(scrollPane, cc.xyw(1, 6, 2));\n\n uiComponent = builder.getPanel();\n }",
"private JPanel getJContentPane() {\r\n\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\t\t\tjContentPane.setSize(new Dimension(600, 320));\r\n\t\t\tjContentPane.add(getEkitCoreEditorHTMLPanel(), null);\r\n\t\t\tjContentPane.add(getJToolBarEditorHTML(), null);\r\n\t\t\tjContentPane.add(getJButtonAcceptHTML(), null);\r\n\t\t\tjContentPane.add(getJButtonCancelHTML(), null);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"private void buildComponents() {\r\n buildJMenuBar();\r\n setJMenuBar( gameBar );\r\n\r\n buildScorePanel();\r\n buildInfoPanel();\r\n\r\n getContentPane().add( scorePanel, \"North\" );\r\n getContentPane().add( infoPanel, \"South\" );\r\n }",
"private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\t\t\tjContentPane.add(getLblNewLabel());\r\n\t\t\tjContentPane.add(getBoton3());\r\n\t\t\tjContentPane.add(getBoton2());\r\n\t\t\tjContentPane.add(getPanel());\r\n\r\n\t\t\tJButton botonOfertas = new JButton();\r\n\t\t\tbotonOfertas.setText(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainGUI.botonOfertas.text_1\")); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\tbotonOfertas.addActionListener(new ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\tVector<RuralHouse> houses = getBusinessLogic().getAllRuralHouses();\r\n\t\t\t\t\tif (houses.isEmpty()) {\r\n\t\t\t\t\t\tshowDialog(\"No hay casas rurales\");\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tAllHouses ah = new AllHouses(getBusinessLogic(), houses);\r\n\t\t\t\t\t\tah.setVisible(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tbotonOfertas.setBounds(0, 191, 479, 65);\r\n\t\t\tjContentPane.add(botonOfertas);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"private JPanel getJPanel()\n\t{\n\t\tif (jPanel == null)\n\t\t{\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setLayout(new BorderLayout());\n\t\t\tBorder bdr = BorderFactory.createTitledBorder(\"\");\n\t \tjPanel.setBorder(bdr);\n\t\t\tjPanel.add(getRPFilesPanel(), BorderLayout.CENTER);\n\t\t\tjPanel.add(getJPathPanel(), BorderLayout.NORTH);\n\t\t}\n\t\treturn jPanel;\n\t}",
"private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.add(getJTextArea(), null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getJEditorPane(), null);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}",
"private JPanel getAllPanel() {\n if (allPanel == null) {\n // use tabs to structure the the three panels\n allPanel = new JPanel(new BorderLayout(10, 10));\n JTabbedPane tabbedPane = getTabbedPane();\n allPanel.add(tabbedPane, BorderLayout.CENTER);\n JPanel controlPanel = createControlPanel();\n allPanel.add(controlPanel, BorderLayout.PAGE_END);\n }\n return allPanel;\n }",
"public JPanel menuPanel() {\n\t\tJPanel mpanel = new JPanel(null);\n\t\tmpanel.setBounds(0, 100, 700, 300);\n\t\tmpanel.setBackground(Color.PINK);\n\t\tFont lblfont = new Font(\"SansSerif\", Font.BOLD, 30);\n\t\t\n\t\tworkerBtn = new JButton(workerpic);\n\t\tvisitorBtn = new JButton(visitorpic);\n\t\tworkerBtn.addActionListener(this);\n\t\tvisitorBtn.addActionListener(this);\n\t\tvisitorBtn.setBounds(100, 50, 150, 200);\n\t\tworkerBtn.setBounds(450, 50, 150, 200);\n\t\t\n\t\tlblworker.setBounds(450, 0, 150, 50);\n\t\tlblvisitor.setBounds(100, 0, 150, 50);\n\t\tlblworker.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblvisitor.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblworker.setFont(lblfont);\n\t\tlblvisitor.setFont(lblfont);\n\t\tmpanel.add(lblworker);\n\t\tmpanel.add(lblvisitor);\n\t\tmpanel.add(visitorBtn);\n\t\tmpanel.add(workerBtn);\n\t\treturn mpanel;\n\t}",
"protected void addComponents() {\n JPanel contentPanel = new JPanel();\n contentPanel.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n c.insets = new Insets(5, 5, 5, 5);\n\n addFront(contentPanel, c);\n addBack(contentPanel, c);\n addTag(contentPanel, c);\n\n addButtons(contentPanel, c);\n\n add(contentPanel);\n }",
"private void setContentPanelComponents(){\n\t\tcontentPanel = new JPanel();\n\t\tcontentPanel.setLayout(new BorderLayout());\n\t\tcontentPanel.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tgetContentPane().add(contentPanel, BorderLayout.NORTH);\n\t\t\n\t\t//--------------------------\n\t\tJPanel payrollDatePanel= new JPanel();\n\t\tpayrollDatePanel.setLayout(new GridLayout(0,2,5,5));\n\t\tpayrollDatePanel.setPreferredSize(new Dimension(0,20));\n\t\tpayrollDatePanel.setOpaque(false);\n\t\t\n\t\tlblPayrollDate = new JLabel(\"Payroll Date: \");\n\t\tlblPayrollDate.setForeground(Color.WHITE);\n\t\tlblPayrollDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpayrollDatePanel.add(lblPayrollDate);\n\t\t\n\t\t\n\t\tpayrollDateComboBox = new JComboBox<String>();\n\t\tpayrollDatePanel.add(payrollDateComboBox);\n\t\n\t\t\n\t\tcontentPanel.add(payrollDatePanel,BorderLayout.NORTH);\n\t\t//--------------------------\n\t\t\n\t\n\t\tJPanel textAreaPanel= new JPanel();\n\t\ttextAreaPanel.setPreferredSize(new Dimension(0, 95));\n\t\ttextAreaPanel.setLayout(null);\n\t\ttextAreaPanel.setOpaque(false);\n\t\t\n\t\t\n\t\tcontentPanel.add(textAreaPanel,BorderLayout.CENTER);\n\t\t\n\t\tJLabel lblComments = new JLabel(\"Comments:\");\n\t\tlblComments.setForeground(Color.WHITE);\n\t\tlblComments.setBounds(10, 11, 75, 14);\n\t\ttextAreaPanel.add(lblComments);\n\t\t\n\t\tcommentTextArea = new JTextArea();\n\t\tcommentTextArea.setBounds(87, 14, 100, 75);\n\t\ttextAreaPanel.add(commentTextArea);\n\t}",
"public JPanel buildContentPane() {\n\t\r\n\tconvert.addActionListener(this);\r\n\t\r\n\t//Ajout des objet au panel\r\n\t\r\n\tsouth.add(convert, BorderLayout.WEST);\r\n\tsouth.add(far, BorderLayout.EAST);\r\n\tnorth.add(temp, BorderLayout.WEST);\r\n\tnorth.add(cel, BorderLayout.EAST);\r\n\tpanel.add(north, BorderLayout.NORTH);\r\n\tpanel.add(south, BorderLayout.SOUTH);\r\n\t\r\n\treturn panel;\r\n\t\r\n}",
"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}",
"private void createComponents() {\n view = new JPanel(new GridBagLayout());\n\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 1;\n constraints.fill = GridBagConstraints.BOTH;\n\n view.add(new JPanel(), constraints);\n\n constraints.gridy = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 1;\n constraints.weighty = 4;\n constraints.weightx = 6;\n view.add(renderMain(), constraints);\n\n constraints.gridx = 2;\n constraints.weightx = 1;\n constraints.weighty = 1;\n view.add(new JPanel(), constraints);\n\n constraints.gridx = 0;\n constraints.gridy = 2;\n view.add(renderBottom(), constraints);\n\n registerEvents();\n }",
"private JPanel getJContentPane() {\n if (jContentPane == null) {\n jContentPane = new JPanel();\n jContentPane.setLayout(new BorderLayout());\n jContentPane.add(getCsvFilePanel(), BorderLayout.NORTH);\n jContentPane.add(getResultPane(), BorderLayout.CENTER);\n }\n return jContentPane;\n }",
"public Component getContentPanel() {\n\t\tsetDetailedDescription(helpType);\n\t\tsetExitButton();\n\t\tsetPanelOverview();\n\t\tsetFont();\n\n\t\treturn contentPanel;\n\t}",
"private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getTlbNavigate(), BorderLayout.NORTH);\r\n\t\t\tjContentPane.add(getPnlCenter(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }",
"public JComponent createTopPanel() {\n\n\t//\tcontent();\n\t\tfields = new JTextField[NBR_FIELDS];\n\t\tmyTable = new PalletTable(db);\n\t\ttable = new JTable(myTable);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(750, 100));\n table.setFillsViewportHeight(true);\n\t\tscroll = new JScrollPane(table);\n\t//\tcontent();\n\t\tmainPanel= new JPanel();\n\t\tmainPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridy=0;\n\t\tmainPanel.add(scroll,c);\n\t\tc.gridy=1;\n\t\tmainPanel.add(content(),c);\n\t\t//scroll.setPreferredSize(new Dimension(300,250));\n\t\treturn mainPanel;\n\t}",
"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}",
"private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getJPanel(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"private Component doInit() {\n\t\tJXPanel panel = new JXPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// create a label\n\t\tfinal JXLabel label = new JXLabel();\n\t\tlabel.setFont(new Font(\"Segoe UI\", Font.BOLD, 14));\n\t\tlabel.setText(\"task pane item 1 : a label\");\n\t\tlabel.setIcon(Images.NetworkDisconnected.getIcon(32, 32));\n\t\tlabel.setHorizontalAlignment(JXLabel.LEFT);\n\t\tlabel.setBackgroundPainter(getPainter());\n\n\t\t// tweak with the UI defaults for the taskpane and taskpanecontainer\n\t\tchangeUIdefaults();\n\n\t\t// create a taskpanecontainer\n\t\tJXTaskPaneContainer taskpanecontainer = new JXTaskPaneContainer();\n\n\t\t// create a taskpane, and set it's title and icon\n\t\tJXTaskPane taskpane = new JXTaskPane();\n\t\ttaskpane.setTitle(\"My Tasks\");\n\t\ttaskpane.setIcon(Images.Quit.getIcon(24, 24));\n\n\t\t// add various actions and components to the taskpane\n\t\ttaskpane.add(label);\n\t\ttaskpane.add(new AbstractAction() {\n\t\t\tprivate static final long serialVersionUID = -7314920635669764914L;\n\t\t\t{\n\t\t\t\tputValue(Action.NAME, \"task pane item 2 : an action\");\n\t\t\t\tputValue(Action.SHORT_DESCRIPTION, \"perform an action\");\n\t\t\t\tputValue(Action.SMALL_ICON,\n\t\t\t\t\t\tImages.NetworkConnected.getIcon(32, 32));\n\t\t\t}\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"an action performed\");\n\t\t\t}\n\t\t});\n\n\t\t// add the task pane to the taskpanecontainer\n\t\ttaskpanecontainer.add(taskpane);\n\n\t\t// set the transparency of the JXPanel to 50% transparent\n\t\tpanel.setAlpha(0.7f);\n\n\t\tpanel.add(taskpanecontainer, BorderLayout.CENTER);\n\t\tpanel.setPreferredSize(new Dimension(250, 200));\n\n\t\treturn panel;\n\t}",
"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 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 }",
"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 createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }",
"private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(new BorderLayout());\n\t\t\tjContentPane.setBorder(javax.swing.BorderFactory.createEmptyBorder(\n\t\t\t\t\t5, 5, 5, 5));\n\t\t\tjContentPane.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n\t\t\tjContentPane.add(getScrollPane(), java.awt.BorderLayout.CENTER);\n\t\t}\n\t\treturn jContentPane;\n\t}",
"private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getPanelCrearCuenta(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"private JPanel getJContentPane() {\r\n if (jContentPane == null) {\r\n jContentPane = new JPanel();\r\n jContentPane.setLayout(new BorderLayout());\r\n jContentPane.add(getJPanelLeft(), BorderLayout.WEST);\r\n jContentPane.add(getJPanelRight(), BorderLayout.CENTER);\r\n }\r\n return jContentPane;\r\n }",
"private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\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 }",
"private void buildGUI() throws IOException {\n jPanel = new JPanel() {\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(img2, 0, 0, null);\n }\n };\n jPanel.setVisible(true);\n jPanel.setLayout(null);\n jPanel.getAutoscrolls();\n jPanel.setBounds(100, 0, screenResolution.getWidth() - 100, screenResolution.getHeight());\n this.add(jPanel);\n\n buildJPanelSide();\n chatGUI();\n\n this.validate();\n this.repaint();\n }",
"private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getJPanelCambiarPassword(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n contentPanel = new javax.swing.JPanel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n contentPanel.setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout contentPanelLayout = new javax.swing.GroupLayout(contentPanel);\n contentPanel.setLayout(contentPanelLayout);\n contentPanelLayout.setHorizontalGroup(\n contentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 393, Short.MAX_VALUE)\n );\n contentPanelLayout.setVerticalGroup(\n contentPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 307, Short.MAX_VALUE)\n );\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 .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(contentPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(contentPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n }",
"private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tPassLabel = new JLabel();\n\t\t\tPassLabel.setBounds(new Rectangle(75, 170, 100, 30));\n\t\t\tPassLabel.setText(\"Password : \");\n\t\t\tNameLabel = new JLabel();\n\t\t\tNameLabel.setBounds(new Rectangle(75, 120, 100, 30));\n\t\t\tNameLabel.setText(\"Name : \");\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(null);\n\t\t\tjContentPane.add(NameLabel, null);\n\t\t\tjContentPane.add(PassLabel, null);\n\t\t\tjContentPane.add(getNameTextField(), null);\n\t\t\tjContentPane.add(getPasswordField(), null);\n\t\t\tjContentPane.add(getLoginButton(), null);\n\t\t\tjContentPane.add(getClearButton(), null);\n\t\t\t\n\t\t}\n\t\treturn jContentPane;\n\t}",
"private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }",
"protected void addComponentsToPane() {\n mainPanel = new JPanel(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n\n\n gameField = new GameField(this);\n gameField.setPreferredSize(new Dimension(screenWidth / 3, screenHeight / 2));\n gameField.setBorder(BorderFactory.createLineBorder(Color.black));\n\n gameFieldPanel = new JPanel();\n LayoutManager overlay = new OverlayLayout(gameFieldPanel);\n gameFieldPanel.setLayout(overlay);\n gameFieldPanel.add(gameField);\n\n// gameCharsFieldPanel.setOpaque(true);\n// gameCharsFieldPanel.setPreferredSize(new Dimension(screenWidth/3, screenHeight/3));\n// gameFieldPanel.add(gameCharsFieldPanel);\n\n drawX = new DrawX();\n gameFieldPanel.add(drawX);\n\n drawO = new DrawO();\n gameFieldPanel.add(drawO);\n\n c.fill = GridBagConstraints.HORIZONTAL;\n c.gridwidth = 3;\n c.gridx = 0;\n c.gridy = 0;\n mainPanel.add(gameFieldPanel, c);\n\n// addLinesButton = new JButton(\"Draw Lines\");\n// c.fill = GridBagConstraints.HORIZONTAL;\n//// c.gridwidth = 3;\n// c.gridx = 0;\n// c.gridy = 1;\n// mainPanel.add(addLinesButton, c);\n//\n frame.add(mainPanel);\n }",
"private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new Rectangle(40, 68, 105, 29));\r\n\t\t\tjLabel.setText(\" Enter your word\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.setBackground(new Color(0, 255, 51));\r\n\t\t\tjPanel.setPreferredSize(new Dimension(100, 100));\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJTextField(), null);\r\n\t\t\tjPanel.add(getJTextArea(), null);\r\n\t\t\tjPanel.add(getJButton1(), null);\r\n\t\t\tjPanel.add(getJButton2(), null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getJButton3(), null);\r\n\t\t\tjPanel.add(getJTextArea1(), null);\r\n\t\t\tjPanel.add(getJScrollBar(), null);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}",
"private JPanel initializeSubPanel() {\r\n\t\t// create a panel.\r\n\t\tsubPanel = new JPanel();\r\n\t\t// set layout property and add components into.\r\n\t\tsubPanel.setLayout(new GridLayout(1, 2));\r\n\t\tsubPanel.add(initializeMessageField());\r\n\t\tsubPanel.add(initializeSendButton());\r\n\t\treturn subPanel;\r\n\t}",
"public JPanel getJPanel();",
"public JPanel getJPanel();",
"public Component componentSetup() {\r\n\t\tJPanel pane = new JPanel();\r\n\t\t// Absolute container positioning used\r\n\t\tpane.setLayout(null);\r\n\r\n\t\t// Variable declaration\r\n\t\tString[] media_combo_box = { \"Choose here\", \"CD\" };\r\n\t\t// declaration of pane components\r\n\r\n\t\t// Combo boxes\r\n\t\tmediaTypeSelected = new JComboBox(media_combo_box);\r\n\t\tmediaTypeSelected.setActionCommand(\"Media Select\");\r\n\t\tmediaTypeSelected.addActionListener(this);\r\n\r\n\t\t// Buttons\r\n\t\tadd = new JButton(\"Add\");\r\n\t\tadd.setActionCommand(\"Add\");\r\n\t\tadd.addActionListener(this);\r\n\t\tbackToMain = new JButton(\"Back to Main Screen\");\r\n\t\tbackToMain.setActionCommand(\"Back to Main\");\r\n\t\tbackToMain.addActionListener(this);\r\n\r\n\t\t// Labels\r\n\t\tmediaText = new JLabel(\"Select a media type:\");\r\n\t\tmediaText.setFont(new Font(\"Helvetica\", Font.PLAIN, 12));\r\n\r\n\t\taddText = new JLabel(\"Adding media:\");\r\n\t\taddText.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\r\n\r\n\r\n\t\tchooseMediaText = new JLabel(\"Please choose a media type\");\r\n\t\tchooseMediaText.setFont(new Font(\"Helvetica\", Font.PLAIN, 10));\r\n\r\n\r\n\t\taddedText = new JLabel(\"Information successfully added\");\r\n\t\taddedText.setFont(new Font(\"Helvetica\", Font.PLAIN, 12));\r\n\t\taddedText.setForeground(Color.red);\r\n\t\t\r\n\t\tchooseMediaText.setForeground(Color.red);\r\n\t\t\r\n\t\taddSetup = new JPanel();\r\n\t\taddSetup.setLayout(new CardLayout()); \r\n\t\taddSetup.setBorder(BorderFactory.createEtchedBorder());\r\n\t\taddSetup.setPreferredSize(new Dimension(600, 250));\r\n\t\taddSetup.add(new UnselectedPanel(PANEL_SIZE), UNSELECTED);\r\n\t\taddSetup.add(CDsSelected, CDs);\r\n\t\t\r\n\t\t\r\n\t\t// Add components to the pane\r\n\t\tpane.add(mediaTypeSelected);\r\n\t\tpane.add(backToMain);\r\n\t\tpane.add(add);\r\n\t\tpane.add(mediaText);\r\n\t\tpane.add(addText);\r\n\t\tpane.add(chooseMediaText);\r\n\t\tpane.add(addedText);\r\n\t\tpane.add(addSetup);\r\n\t\t\r\n\t\t// Screen positioning\r\n\t\tInsets insets = pane.getInsets();\r\n\r\n\t\tbackToMain.setBounds(490 + insets.left, 425 + insets.top, 160, 75);\r\n\r\n\t\tadd.setBounds(320 + insets.left, 425 + insets.top, 160, 75);\r\n\r\n\t\tmediaTypeSelected.setBounds(175 + insets.left, 128 + insets.top, 100,\r\n\t\t\t\t20);\r\n\r\n\t\taddText.setBounds(50 + insets.left, 50 + insets.top, 300, 75);\r\n\r\n\t\tmediaText.setBounds(50 + insets.left, 100 + insets.top, 150, 75);\r\n\r\n\t\taddedText.setBounds(450 + insets.left, 350 + insets.top, 300, 75);\r\n\t\taddedText.setVisible(false);\r\n\t\t\r\n\t\taddSetup.setBounds(50 + insets.left,160 + insets.top, 600, 250);\r\n\r\n\t\treturn pane;\r\n\r\n\t}",
"private JPanel addControl() {\n\n\t\t// uses grid layout\n\t\tcontrolPanel.setLayout(new GridLayout(2, 1));\n\n\t\t// use box layout\n\t\tbuttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));\n\t\t// add the answer buttons to the panel\n\t\tbuttonPanel.add(answer());\n\t\t// add the question text to the control panel\n\t\tcontrolPanel.add(question);\n\t\t// set alignment, color, font, opaque, border\n\t\tquestion.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tquestion.setForeground(new Color(86, 10, 0));\n\t\tquestion.setBackground(new Color(206, 213, 224));\n\t\tquestion.setFont(new Font(\"Serif\", Font.BOLD, 24));\n\t\tquestion.setOpaque(true);\n\t\tquestion.setBorder(question.getBorder());\n\t\t// add the button panel to the control panel\n\t\tcontrolPanel.add(buttonPanel);\n\t\t// return control panel\n\t\treturn controlPanel;\n\t}",
"private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }",
"public JPanel getMainPanel() {\n return mainPanel;\n }",
"private void buildAndInitDivContainer() {\n // TODO(rdcastro): Use the same technique as in render() above.\n\n // Build the div that'll container the panel's HTML.\n Element element = Document.get().createDivElement();\n element.setInnerSafeHtml(getInnerHtml());\n\n // TODO(rdcastro): Implement something like\n // element.mergeFrom(getElement());\n String styleName = getStyleName();\n if (styleName != null) {\n element.setClassName(styleName);\n }\n\n setElement(element);\n\n // If there's any wrap callback to call, we have to attach the div before\n // calling it, and then detach again.\n if (wrapInitializationCallback != null) {\n ensureHiddenDiv();\n hiddenDiv.appendChild(element);\n wrapInitializationCallback.execute();\n element.getParentNode().removeChild(element);\n }\n\n // Call any detached init callbacks we might have.\n if (detachedInitializationCallback != null) {\n detachedInitializationCallback.execute();\n }\n }",
"private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tl2 = new JLabel();\n\t\t\tl2.setBounds(new Rectangle(10, 50, 125, 16));\n\t\t\tl2.setText(\"Identifiant étudiant:\");\n\t\t\tl1 = new JLabel();\n\t\t\tl1.setBounds(new Rectangle(10, 10, 125, 16));\n\t\t\tl1.setText(\"Code Cours\");\n\t\t\tjContentPane = new JPanel();\n\t\t\tjContentPane.setLayout(null);\n\t\t\tjContentPane.add(l1, null);\n\t\t\tjContentPane.add(l2, null);\n\t\t\tjContentPane.add(getJButton(), null);\n\t\t\tjContentPane.add(getTxtIdC(), null);\n\t\t\tjContentPane.add(getTxtIdE(), null);\n\t\t}\n\t\treturn jContentPane;\n\t}",
"private JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjContentPane = new JPanel();\n\t\t\t// jContentPane.setLayout(new BorderLayout());\n\t\t\tjContentPane.setLayout(new CardLayout());\n\t\t\tjContentPane.setPreferredSize(new Dimension(25, 25));\n\t\t}\n\t\treturn jContentPane;\n\t}",
"private JPanel getJPanel() {\n\t\tif (list_panel == null) {\n\t\t\tlist_panel = new JPanel();\n\t\t\tlist_panel.setLayout(new BorderLayout());\n\t\t\tlist_panel.add(getMacro_pane(), java.awt.BorderLayout.CENTER);\n\t\t}\n\t\treturn list_panel;\n\t}",
"private JPanel buildNorthPanel() {\n\t\t\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel panel;\n\t\tint row, col;\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tpanel = new JPanel(layout);\n\t\trow = 0;\n\t\tcol = 0;\n\t\tJLabel headerLabel = new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_SAVE_NEW_CONFIGURATION));\n\t\theaderLabel.setFont(new Font(\"arial\", Font.PLAIN, 18));\n\t\tGUIUtils.add(panel, headerLabel, layout, constraints, row++, col, \n\t\t\t1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH,\n\t\t\tGUIUtils.MED_LARGE_INSETS);\n\t\treturn panel;\n\t}",
"private JPanel getAboutContentPane() {\n\t\tif (aboutContentPane == null) {\n\t\t\taboutContentPane = new JPanel();\n\t\t\taboutContentPane.setLayout(new BorderLayout());\n\t\t\taboutContentPane.add(getAboutVersionLabel(), BorderLayout.CENTER);\n\t\t}\n\t\treturn aboutContentPane;\n\t}",
"private JPanel getMainjPanel() {\r\n\t\tif (mainjPanel == null) {\r\n\t\t\tqdsj2jLabel = new JLabel();\r\n\r\n\t\t\tqdsj2jLabel.setBounds(new Rectangle(126, 335, 133, 18));\r\n\t\t\tqdsj2jLabel.setForeground(color);\r\n\t\t\tqdsj2jLabel.setFont(font);\r\n\t\t\tqdsj1jLabel = new JLabel();\r\n\t\t\tqdsj1jLabel.setText(\"开始时间:\");\r\n\t\t\tqdsj1jLabel.setBounds(new Rectangle(61, 335, 61, 18));\r\n\t\t\tqdsj1jLabel.setFont(font);\r\n\t\t\tqdsj1jLabel.setForeground(color);\r\n\r\n\t\t\tdchjLabel = new JLabel();\r\n\t\t\tdchjLabel.setForeground(color);\r\n\t\t\tdchjLabel.setBounds(new Rectangle(50, 54, 44, 18));\r\n\t\t\tdchjLabel.setText(\"道岔号:\");\r\n\t\t\tdchjLabel.setFont(font);\r\n\t\t\tdfwjLabel = new JLabel();\r\n\t\t\tdfwjLabel.setForeground(color);\r\n\t\t\tdfwjLabel.setBounds(new Rectangle(200, 54, 44, 18));\r\n\t\t\tdfwjLabel.setText(\"定反位:\");\r\n\t\t\tdfwjLabel.setFont(font);\r\n\r\n\t\t\ttitlejLabel = new JLabel();\r\n\t\t\ttitlejLabel.setForeground(color);\r\n\t\t\ttitlejLabel.setBounds(new Rectangle(326, 22, 300, 18));\r\n\t\t\ttitlejLabel.setText(\"道岔动作过程压力变化趋势图\");\r\n\t\t\ttitlejLabel.setFont(titleFont);\r\n\t\t\tmainjPanel = new JPanel();\r\n\t\t\tmainjPanel.setLayout(null);\r\n\t\t\tmainjPanel.setBounds(new Rectangle(45, 62, 901, 510));\r\n\t\t\tmainjPanel.add(titlejLabel, null);\r\n\t\t\tmainjPanel.add(dchjLabel, null);\r\n\t\t\tmainjPanel.add(getDchjComboBox(), null);\r\n\t\t\tmainjPanel.add(dfwjLabel, null);\r\n\t\t\tmainjPanel.add(getTpjPanel(), null);\r\n\t\t\tmainjPanel.add(getDfwjComboBox(), null);\r\n\t\t\tmainjPanel.setOpaque(false);\r\n\t\t}\r\n\t\treturn mainjPanel;\r\n\t}",
"private static void assembleDockLayoutPanel() {\n dockLayoutPanel.addNorth(headerPanel, 3);\n dockLayoutPanel.addSouth(footerPanel, 3);\n dockLayoutPanel.addEast(eastPanel, 0);\n dockLayoutPanel.addWest(controlPanel, 24);\n dockLayoutPanel.add(middleMainPanel);\n }",
"private javax.swing.JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjContentPane = new javax.swing.JPanel();\n\t\t\tjava.awt.FlowLayout layFlowLayout21 = new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 1, 1);\n\t\t\tlayFlowLayout21.setHgap(0);\n\t\t\tlayFlowLayout21.setVgap(0);\n\t\t\tjContentPane.setLayout(layFlowLayout21);\n\t\t\tjContentPane.add(getJPanel(), null);\n\t\t\tjContentPane.add(getJPanel1(), null);\n\t\t\tjContentPane.add(getJPanel(), null);\n\t\t\tjContentPane.add(getJPanel1(), null);\n\t\t\tjContentPane.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjContentPane.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\t\t\tjContentPane.setPreferredSize(new java.awt.Dimension(810,600));\n\t\t}\n\t\treturn jContentPane;\n\t}",
"private javax.swing.JPanel getJContentPane() {\n\t\tif (jContentPane == null) {\n\t\t\tjContentPane = new javax.swing.JPanel();\n\t\t\tjava.awt.FlowLayout layFlowLayout14 = new java.awt.FlowLayout();\n\t\t\tlayFlowLayout14.setHgap(0);\n\t\t\tlayFlowLayout14.setVgap(0);\n\t\t\tjContentPane.setLayout(layFlowLayout14);\n\t\t\tjContentPane.add(getJPanel3(), null);\n\t\t\tjContentPane.add(getJPanel2(), null);\n\t\t\tjContentPane.setBorder(new javax.swing.border.SoftBevelBorder(BevelBorder.RAISED));\n\t\t\tjContentPane.setBackground(new java.awt.Color(226,226,222));\n\t\t}\n\t\treturn jContentPane;\n\t}",
"public WidgetPanel() {\n\n // setup the master panel\n HorizontalPanel outer = new HorizontalPanel();\n HorizontalPanel border = new HorizontalPanel();\n border.setStyleName(\"WidgetPanelBorder\");\n border.setHeight(\"100%\");\n outer.add(border);\n\n // setup the widgets panel\n widgets.setStyleName(\"WidgetPanel\");\n widgets.setHeight(\"100%\");\n outer.add(widgets);\n \n // init the outer panel\n initWidget(outer);\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 javax.swing.JPanel getJContentPane() {\n if (jContentPane == null) {\n jContentPane = new javax.swing.JPanel();\n jContentPane.setLayout(new java.awt.BorderLayout());\n jContentPane.add(getPButtons(), java.awt.BorderLayout.SOUTH);\n jContentPane.add(getSpPrefixList(), java.awt.BorderLayout.CENTER);\n }\n return jContentPane;\n }",
"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}",
"static JPanel createContainers()\n\t{\n\t\tscore.setFont(new Font(\"Arial\", 0, 14));\n\t\tscore.setForeground(Color.RED);\n\n\t\tJPanel mainPanel = createMainPanel();\n\t\tmainPanel.setBackground(Color.black);\n\t\tJPanel scoringPanel = createScoringPanel(score);\n\t\tJPanel gamePanel = createGamePanel();\n\n\t\tPortfolio1.gameCards = Portfolio1.createGameCards();\n\n\t\tfor (GameCard card : Portfolio1.gameCards)\n\t\t{\n\t\t\tgamePanel.add(card);\n\t\t}\n\n\t\tmainPanel.add(Box.createVerticalStrut(25));\n\t\tmainPanel.add(scoringPanel);\n\t\tmainPanel.add(Box.createVerticalStrut(25));\n\t\tmainPanel.add(gamePanel);\n\n\t\treturn mainPanel;\n\t}",
"private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tmsgLabel = new JLabel();\r\n\t\t\tmsgLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\tmsgLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\t\tmsgLabel.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(new BorderLayout());\r\n\t\t\tjContentPane.add(getSouthPanel(), BorderLayout.SOUTH);\r\n\t\t\tjContentPane.add(getLabelPanel(), BorderLayout.NORTH);\r\n\t\t\tjContentPane.add(getTestAreaScrollPane(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}",
"JPanel getPanel();",
"private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjLabelDataNum = new JLabel();\r\n\t\t\tjLabelDataNum.setBounds(new Rectangle(484, 6, 70, 23));\r\n\t\t\tjLabelDataNum.setBorder(BorderFactory.createLineBorder(SystemColor.controlShadow, 1));\r\n\t\t\tjLabelDataNum.setText(\"共 0 个\");\r\n\t\t\tjLabel12 = new JLabel();\r\n\t\t\tjLabel12.setBounds(new Rectangle(7, 36, 80, 23));\r\n\t\t\tjLabel12.setText(\"配置名称:\");\r\n\t\t\tjLabelDataDir = new JLabel();\r\n\t\t\tjLabelDataDir.setBounds(new Rectangle(88, 6, 389, 23));\r\n\t\t\tjLabelDataDir.setForeground(new Color(204, 51, 0));\r\n\t\t\tjLabelDataDir.setBorder(BorderFactory.createLineBorder(SystemColor.controlShadow, 1));\r\n\t\t\tjLabelDataDir.setText(\"\");\r\n\t\t\tjLabel7 = new JLabel();\r\n\t\t\tjLabel7.setBounds(new Rectangle(7, 6, 80, 23));\r\n\t\t\tjLabel7.setText(\"数据文件夹:\");\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\t\t\tjContentPane.add(getJPanelVar(), null);\r\n\t\t\tjContentPane.add(getJPaneSql(), null);\r\n\t\t\tjContentPane.add(getJPanelConfig(), null);\r\n\t\t\tjContentPane.add(getJButtonInto(), null);\r\n\t\t\tjContentPane.add(jLabel5, null);\r\n\t\t\tjContentPane.add(getJComboBoxDbType(), null);\r\n\t\t\tjContentPane.add(jLabel7, null);\r\n\t\t\tjContentPane.add(jLabelDataDir, null);\r\n\t\t\tjContentPane.add(getJButtonSelectData(), null);\r\n\t\t\tjContentPane.add(getJButtonOpen(), null);\r\n\t\t\tjContentPane.add(jLabel12, null);\r\n\t\t\tjContentPane.add(getJComboBoxConfigName(), null);\r\n\t\t\tjContentPane.add(getJButtonSaveCfg(), null);\r\n\t\t\tjContentPane.add(getJButtonDelCfg(), null);\r\n\t\t\tjContentPane.add(jLabelDataNum, null);\r\n\t\t\tjContentPane.add(getJButtonSaveInto(), null);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\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 JPanel getJPanel() {\n\t\tif (jPanel == null) {\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setSize(100,200);\n\t\t\tjPanel.setMaximumSize(jPanel.getSize());\n//\t\t\tjPanel.setMinimumSize(jPanel.getSize());\n\t\t\tjPanel.setLayout(null);\n\t\t\tjPanel.setBackground(new Color(238, 238, 0));\n\t\t\tjPanel.add(getJButton(), null);\n\t\t}\n\t\treturn jPanel;\n\t}",
"private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}",
"public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }",
"private void initComponents() {\n\n jScrollPane = new javax.swing.JScrollPane();\n jPanelContent = new javax.swing.JPanel();\n\n setPreferredSize(new java.awt.Dimension(300, 600));\n\n jScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\n jPanelContent.setLayout(new java.awt.GridLayout(1, 0));\n jScrollPane.setViewportView(jPanelContent);\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 .addComponent(jScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n }",
"private JPanel createMusicPanel() {\n\t\tJPanel musicPanel = new JPanel();\n\t\tmusicPanel.setLayout(new BorderLayout());\n\t\tmusicPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\n\t\tJPanel musicTitlePanel = new JPanel();\n\t\tmusicTitlePanel.setLayout(new BorderLayout());\n\t\tJLabel music = new JLabel(\"Music\");\n\t\tmusicTitlePanel.add(music, BorderLayout.WEST);\n\t\tmusicComboBox = new JComboBox(musicCBContent);\n\t\tmusicComboBox.setName(\"musicComboBox\");\n\t\tmusicTitlePanel.add(musicComboBox, BorderLayout.EAST);\n\t\tmusicPanel.add(musicTitlePanel, BorderLayout.NORTH);\n\n\t\tmusicContents = new JPanel();\n\t\tmusicContents.setLayout(new FlowLayout());\n\t\tmusicPanel.add(createJScrollPane(musicContents), BorderLayout.CENTER);\n\n\t\treturn musicPanel;\n\t}",
"private JPanel getJContentPane() {\r\n if (jContentPane == null) {\r\n jContentPane = new JPanel();\r\n jContentPane.setLayout(new BorderLayout());\r\n }\r\n return jContentPane;\r\n }",
"public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}",
"private void constructMainPanel() {\n // initialize the main panel\n mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\n mainPanel.setPreferredSize(new Dimension(model.getWidth() + 50,\n model.getHeight() + 240));\n JScrollPane mainPane = new JScrollPane(mainPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n this.add(mainPane);\n\n }",
"public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}",
"private org.gwtproject.user.client.ui.SimplePanel get_contentContainer() {\n return build_contentContainer();\n }",
"private JPanel getBasePanel() {\r\n\t\tif (basePanel == null) {\r\n\t\t\tbasePanel = new JPanel();\r\n\t\t\tbasePanel.setLayout(new BorderLayout());\r\n\t\t\tbasePanel.setBounds(new Rectangle(1, 1, 352, 129));\r\n\t\t\tbasePanel.add(getToolsToolBar(), BorderLayout.NORTH);\r\n\t\t\tbasePanel.add(getTotalSplitPane(), BorderLayout.CENTER);\r\n\t\t}\r\n\t\treturn basePanel;\r\n\t}",
"private void initGUI() {\n\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\t// This is the story we took from Wikipedia.\n\t\tString story = \"The Internet Foundation Classes (IFC) were a graphics \"\n\t\t\t\t+ \"library for Java originally developed by Netscape Communications \"\n\t\t\t\t+ \"Corporation and first released on December 16, 1996.\\n\\n\"\n\t\t\t\t+ \"On April 2, 1997, Sun Microsystems and Netscape Communications\"\n\t\t\t\t+ \" Corporation announced their intention to combine IFC with other\"\n\t\t\t\t+ \" technologies to form the Java Foundation Classes. In addition \"\n\t\t\t\t+ \"to the components originally provided by IFC, Swing introduced \"\n\t\t\t\t+ \"a mechanism that allowed the look and feel of every component \"\n\t\t\t\t+ \"in an application to be altered without making substantial \"\n\t\t\t\t+ \"changes to the application code. The introduction of support \"\n\t\t\t\t+ \"for a pluggable look and feel allowed Swing components to \"\n\t\t\t\t+ \"emulate the appearance of native components while still \"\n\t\t\t\t+ \"retaining the benefits of platform independence. This feature \"\n\t\t\t\t+ \"also makes it easy to have an individual application's appearance \"\n\t\t\t\t+ \"look very different from other native programs.\\n\\n\"\n\t\t\t\t+ \"Originally distributed as a separately downloadable library, \"\n\t\t\t\t+ \"Swing has been included as part of the Java Standard Edition \"\n\t\t\t\t+ \"since release 1.2. The Swing classes are contained in the \"\n\t\t\t\t+ \"javax.swing package hierarchy.\\n\\n\";\n\t\t// We create the TextArea and pass the story in as an argument.\n\t\tJTextArea storyArea = new JTextArea(story);\n\t\tstoryArea.setEditable(true);\n\t\tstoryArea.setWrapStyleWord(true);\n\t\t// We create the ScrollPane and instantiate it with the TextArea as an argument\n\t\tJScrollPane area = new JScrollPane(storyArea);\t\t\t\n\t\tmainPanel.add(area);\t\n\t\tthis.setContentPane(mainPanel);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setVisible(true);\n\t}"
] | [
"0.7779471",
"0.7740682",
"0.7596443",
"0.7498647",
"0.7381411",
"0.7329359",
"0.73153734",
"0.72888535",
"0.72604746",
"0.71463543",
"0.71440226",
"0.7143544",
"0.7129926",
"0.7127676",
"0.7124725",
"0.7116334",
"0.70531696",
"0.7028715",
"0.69847137",
"0.6971771",
"0.6969649",
"0.6957031",
"0.69181454",
"0.6891013",
"0.6881133",
"0.6870533",
"0.68643534",
"0.68597347",
"0.68274784",
"0.6776132",
"0.67712194",
"0.6765233",
"0.6762784",
"0.67530483",
"0.6752621",
"0.6743431",
"0.6718414",
"0.67165166",
"0.6709714",
"0.67062",
"0.6704085",
"0.6669341",
"0.6667816",
"0.66655105",
"0.66517794",
"0.664645",
"0.66458994",
"0.6643254",
"0.6638152",
"0.6634574",
"0.6627021",
"0.6613396",
"0.66085416",
"0.6606691",
"0.6599116",
"0.6598674",
"0.6596913",
"0.65751255",
"0.65681267",
"0.6563124",
"0.65564317",
"0.65544486",
"0.654119",
"0.654119",
"0.6539527",
"0.6536787",
"0.65354514",
"0.65254843",
"0.6522126",
"0.6512449",
"0.6506995",
"0.650378",
"0.6503484",
"0.6490806",
"0.6483502",
"0.6483298",
"0.64751536",
"0.64716995",
"0.64678967",
"0.6460186",
"0.64570963",
"0.64565134",
"0.6454633",
"0.64487445",
"0.64429665",
"0.6439378",
"0.6434501",
"0.6433983",
"0.64321256",
"0.6430114",
"0.6427951",
"0.6427603",
"0.6425815",
"0.6422459",
"0.6419616",
"0.64193636",
"0.6410477",
"0.6407117",
"0.64024067",
"0.6400833"
] | 0.6826762 | 29 |
/ Approach 1: Brute Force. Use for loops: T.C. = O(n^2) loop i: 0 to n1 loop j: i+1 + n1 check if a[j] < a[i] : count++; Gives TLE. / Approach 2: Use Insertion Sort to sort the current visited elements. Use binary search to find index of that element to update count. | public List<Integer> countSmaller(int[] nums) {
int n = nums.length;
int arr[] = new int[n];
List<Integer> list = new ArrayList<>();
// Loop from n-1 to 0
for (int i=n-1; i>=0; i--) {
arr[i] = sortSearchHelper(nums[i], 0, list.size(), list);
}
// Store the counts in result array
List<Integer> res = new ArrayList<>();
for (int i=0; i<n; i++) {
res.add(arr[i]);
}
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int ombyttinger(int[] a) {\n int count=0;\n for (int i = 0; i < a.length-1; i++) {\n if (a[i] > a[i+1]) {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n count++;\n\n }\n }\n return count;\n }",
"public static void main(String[] args) {\n int []a={1,2,1,2,1,2,2,1,2,1,2,2};\r\n int count=1;\r\n Arrays.sort(a); ///1 1 1 2 2 3 3 3 \r\n int n=a.length;\r\n int temp=0,dum=0,countaaa=1;\r\n for(int i=0;i<n-1;i++)\r\n {\r\n\t if(a[i]==a[i+1])\r\n\t {\r\n\t\t count++;//1 ///how many \r\n\t\t temp=a[i];//1///tamil nadu\r\n\t }\r\n\t else\r\n\t { \r\n\t\t if(x>=y)\r\n\t\t {\r\n\t\t\t if(a[i])\r\n\t\tdum=a[i];//1///andhra\r\n\t\tcountaaa=count;//2///how many\r\n\t\tcount=1;\r\n\t\t }\r\n\t }\r\n }\r\n System.out.println(countaaa);\r\n System.out.println(count);\r\n if(countaaa>count)\r\n\t System.out.println(\"A: \"+dum+\" count: \"+countaaa);\r\n else\r\n System.out.println(temp+\" \"+count);\r\n\t}",
"public void sort(int[] a) {\n\t\tint n = a.length;\n\t\tint temp;\n\t\tfor (int gap = n / 2; gap > 0; gap /= 2) {\n\t\t\tfor (int i = gap; i < n; i++) {\n\t\t\t\tfor (int j = i - gap; j >= 0; j -= gap) {\n\t\t\t\t ++totalValCmp;\n\t\t\t\t if (a[j] > a[j + gap]) {\n\t\t\t\t\t temp = a[j];\n\t\t\t\t\t a[j] = a[j + gap];\n\t\t\t\t\t a[j + gap] = temp;\n\t\t\t\t\t ++totalswaps;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}",
"private void testCountingSort() {\n int listSize = 1000000;\r\n // Generate list of random values\r\n int[] a = new int[listSize];\r\n Random r = new Random();\r\n for (int i = 0; i < a.length; i++) {\r\n a[i] = r.nextInt(20000);\r\n }\r\n \r\n //a = new int[] {10, 20, 8, -4, -7, 22 };\r\n\r\n // Copy list to new array\r\n int[] a2 = new int[listSize];\r\n System.arraycopy(a, 0, a2, 0, a.length);\r\n\r\n TestUtil.print(a);\r\n // Sort the two arrays\r\n long time = System.currentTimeMillis();\r\n countSort(a);\r\n time = System.currentTimeMillis() - time;\r\n System.out.println(\"Count sort took: \" + time);\r\n TestUtil.print(a);\r\n time = System.currentTimeMillis();\r\n Arrays.sort(a2);\r\n time = System.currentTimeMillis() - time;\r\n System.out.println(\"Java sort took: \" + time);\r\n\r\n // Compare the two arrays\r\n for (int i = 0; i < listSize; i++) {\r\n if (a[i] != a2[i]) {\r\n System.out.println(\"Error: Results do not match.\");\r\n return;\r\n }\r\n }\r\n System.out.println(\"Sort successful\");\t\t\r\n\t}",
"static void countSwaps(int[] a) {\r\n\t\tint u = 0;\r\n\t\tint count = 0;\r\n\t\tfor (int k = 0; k < a.length; k++) {\r\n\t\t\tfor (int i = 0; i < a.length - 1; i++) {\r\n\t\t\t\tif (a[i] > a[i + 1]) {\r\n\t\t\t\t\tu = a[i];\r\n\t\t\t\t\ta[i] = a[i + 1];\r\n\t\t\t\t\ta[i + 1] = u;\r\n\t\t\t\t\tcount += 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint z = a.length - 1;\r\n\t\tSystem.out.println(\"Array is sorted in \" + count + \" swaps.\");\r\n\t\tSystem.out.println(\"First Element: \" + a[0]);\r\n\t\tSystem.out.println(\"Last Element: \" + a[z]);\r\n\r\n\t}",
"public int solution(int[] A) {\n int l = A.length;\r\n int largest = 0;\r\n\r\n //first we sort the array using count sort\r\n //get largest\r\n for (int i : A) {\r\n if (i > largest) {\r\n largest = i;\r\n }\r\n }\r\n //set all elements of c to 0\r\n int c[] = new int[largest + 1];\r\n int b[] = new int[A.length];\r\n for (int i = 0; i < c.length; i++) {\r\n c[i] = 0;\r\n }\r\n printc(c, \"c\");\r\n // set occurences of each element in c\r\n for (int i : A) {\r\n c[i] += 1;\r\n }\r\n printc(c, \"c\");\r\n // add \r\n for (int i = 1; i < c.length; i++) {\r\n c[i] = c[i - 1] + c[i];\r\n }\r\n printc(c, \"c\");\r\n\r\n for (int i = A.length-1; i >= 0; i--) {\r\n int value = A[i];\r\n int cvalue = c[value] - 1;\r\n b[cvalue] = value;\r\n c[value] = cvalue;\r\n }\r\n printc(b, \"b\");\r\n\r\n \r\n \r\n return 0;\r\n }",
"public static int count(int[] a) {\n sort(a);\n int N = a.length;\n // print out the sorted array\n System.out.print(\"Sorted array: \");\n for (int i = 0; i < N; i++) {\n System.out.print(a[i] + \" \");\n }\n System.out.println();\n int count = 0;\n for (int i = 0; i < N; i++) {\n int j = i + 1;\n int k = N - 1;\n while (j < k) {\n if (a[i] + a[j] + a[k] == 0) {\n System.out.println(i + \",\" + j + \",\" + k);\n count++;\n j++;\n } else if (a[i] + a[j] + a[k] > 0) {\n k--;\n } else {\n j++;\n }\n }\n }\n return count;\n }",
"public static void countSort(int[] n) {\n\t\tint max = n[0], min = n[0];\r\n\t\tfor (int i = 1; i < n.length; i++) {\r\n\t\t if (n[i] > max)\r\n\t\t max = n[i];\r\n\t\t else if (n[i] < min)\r\n\t\t min = n[i];\r\n\t\t}\r\n\t\t\r\n\t\t// Now calculate the array size, this will be max - min + 1\r\n\t\tint numValues = max - min + 1;\t\r\n\t\tint[] counts = new int[numValues];\r\n\t\t\r\n\t\t// Now mark the indexes in the new array where we have the values.\r\n\t\t// index value of 1 means we have only one value, index value of 2 means we\r\n\t\t// have 2 values with same number and so on.\r\n\t\tfor (int i = 0; i < n.length; i++) {\r\n\t\t\tcounts[n[i] - min]++;\r\n\t\t}\r\n\t\t\r\n\t\t// Now start the actual sort. Now at this point we don't care about the values in n\r\n \t// as we have already marked the indexes in counts.\r\n\t\tint outputPos = 0;\r\n\t\t// Now iterate over the new array in sequence, and see where we don't have default\r\n\t\t// value of 0, and use that index in output.\r\n\t\tfor (int i = 0; i < numValues; i++) {\r\n\t\t for (int j = 0; j < counts[i]; j++) {\r\n\t\t\t\tn[outputPos] = i + min;\r\n\t\t\t\toutputPos++;\r\n\t\t }\r\n\t\t}\t\t\r\n\t}",
"public static void countingSort(int[] elements) {\n int maxValue = findMax(elements);\n int[] counts = new int[maxValue + 1];\n\n // Counting elements\n for (int i = 0; i < elements.length; i++) {\n counts[elements[i]]++;\n }\n\n // Writes results back\n int place = 0;\n for (int i = 0; i < counts.length; i++) {\n for (int j = 0; j < counts[i]; j++) {\n elements[place++] = i;\n }\n }\n }",
"public static int pickingNumbers(List<Integer> a) {\n Collections.sort(a);\n List<Integer> result = new ArrayList<>();\n int counter = 0;\n\n for (int i = 0; i < a.size(); i++) {\n for (int j = i; j < a.size(); j++) {\n if(a.get(i)+1 >= a.get(j)){\n counter ++;\n }else{\n result.add(counter);\n counter = 0;\n break;\n }\n }\n result.add(counter);\n counter = 0;\n }\n return Collections.max(result);\n }",
"static void sort(int[] a)\n {\n for ( int j = 1; j<a.length; j++)\n {\n int i = j - 1;\n while(i>=0 && a[i]>a[i+1])\n {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n i--;\n }\n }\n }",
"private long sortAndCount(int[] arr) {\r\n\r\n\t\t// compare permuted array and the actual.\r\n\t\t// count offers O(n log n)\r\n\t\tint n = arr.length;\r\n\t\tif (n == 1) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tsort(arr);\r\n\t\t\r\n\t\treturn counter;\r\n\t}",
"public static void inversecount(int a[]) {\r\n int count=0;\r\n for(int i=0;i<a.length;i++){\r\n for(int j=i+1;j<a.length;j++)\r\n if(a[i]>a[j]){\r\n int temp=a[i];\r\n a[i]=a[j];\r\n a[j]=temp;\r\n count++;\r\n }\r\n }\r\n System.out.println(\"The Answer is: \");\r\n System.out.println(count);//The final answer is printed using this line\r\n }",
"static int[] bubbleSort(int[] a) {\n int n = a.length;\n while(n > 0) {\n int newLastN = 0; // if no swap occurred in last step we won't need to run next iteration\n for (int i = 1; i < n; i++) {\n comparisonCount++;\n if (a[i - 1] > a[i]) {\n swapCount++;\n swap(a, i - 1, i);\n newLastN = i;\n }\n }\n n = newLastN;\n }\n return a;\n }",
"public static void countingSort(int[] array, int k) {\r\n int[] workStorage = new int[k + 1];\r\n int[] result = new int[array.length];\r\n for (int i = 0; i < array.length; i++) {\r\n workStorage[array[i]] = workStorage[array[i]] + 1;\r\n }\r\n for (int i = 0; i < k; i++) {\r\n workStorage[i + 1] = workStorage[i + 1] + workStorage[i];\r\n }\r\n for (int i = array.length - 1; i >= 0; i--) {\r\n result[workStorage[array[i]] - 1] = array[i];\r\n workStorage[array[i]] = workStorage[array[i]] - 1;\r\n }\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = result[i];\r\n }\r\n }",
"public long BubleSort_Counter(int[] array) {\n long counter = 0;\n int n = array.length;\n\n for (int i = 0; i < n - 1; i++) {\n for (int j = 0; j < n - i - 1; j++) {\n counter++;\n if (array[j] > array[j + 1]) {\n // swap arr[j+1] and arr[i]\n int temp = array[j];\n array[j] = array[j + 1];\n array[j + 1] = temp;\n }\n }\n }\n return counter;\n }",
"public static int degreeOfArray(List<Integer> arr) { arr.length = n\n // num of Keys = k\n // O(n + k)\n // max value count = m\n //\n PriorityQueue<Node> pq = new PriorityQueue<>((i, j)-> j.count - i.count);\n Map<Integer, NodePosition> posMap = new HashMap<>();\n Map<Integer, Node> countMap = new HashMap<>();\n // [1, 2, 3, 4, 5, 6]\n for (int i = 0; i < arr.size(); i++) {\n int cur = arr.get(i);\n\n if (!countMap.containsKey(cur)) {\n countMap.put(cur, new Node(cur, 1));\n } else {\n Node curNode = countMap.get(cur);\n curNode.count++;\n countMap.put(cur, curNode);\n }\n\n if (!posMap.containsKey(cur)) {\n posMap.put(cur, new NodePosition(i, i));\n } else {\n NodePosition curNodePos = posMap.get(cur);\n curNodePos.endIndex = i;\n posMap.put(cur, curNodePos);\n }\n }\n //Iterator<Map.Entry<Integer, Node> it = new Iterator<>(countMap);\n for (Map.Entry<Integer, Node> e : countMap.entrySet()) {\n pq.add(e.getValue());\n }\n\n // [1, 2, 1, 3 ,2]\n // 1 , 2 , 3\n Node curNode = pq.remove();\n int maxCount = curNode.count;\n\n int minRange = posMap.get(curNode.num).endIndex - posMap.get(curNode.num).startIndex;\n\n while (!pq.isEmpty() && maxCount == pq.peek().count) {\n curNode = pq.remove();\n NodePosition nPos = posMap.get(curNode.num);\n minRange = Math.min(minRange, nPos.endIndex - nPos.startIndex);\n }\n\n return minRange + 1;\n }",
"public static void cntArray(int A[], int N) \n { \n // initialize result with 0 \n int result = 0; \n \n for (int i = 0; i < N; i++) { \n \n // all size 1 sub-array \n // is part of our result \n result++; \n \n // element at current index \n int current_value = A[i]; \n \n for (int j = i + 1; j < N; j++) { \n \n // Check if A[j] = A[i] \n // increase result by 1 \n if (A[j] == current_value) { \n result++; \n } \n } \n } \n \n // print the result \n System.out.println(result); \n }",
"public static void sort(int [] a) {\n for(int i=0; i<a.length;i++){\n for (int j = i+1; j < a.length; j++) {\n int temp=0;\n if(a[i]>a[j]){\n temp=a[j];\n a[j]=a[i];\n a[i]=temp;\n }\n }\n }\n }",
"public static void sort(Comparable[] a) {\n for (int i = 0 ; i < a.length ; i++) { // each position scan\n int min = i;\n for (int j = i+1; j < a.length; j++) { // each time we have to scan through remaining entry\n if (HelperFunctions.less(a[j], a[min])) {\n min = j ;\n }\n HelperFunctions.exch(a, i, min);\n }\n }\n }",
"public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\n\t\t\r\n\t\tint temp,i,j;\r\n\t\tint []a=new int[]{12,23,10,2,5,6,25};\r\n\t\tint n1=a.length;\r\n\t\t for (i = 0; i < n1; ++i) \r\n\t {\r\n\t \r\n\t for (j = i + 1; j < n1; ++j)\r\n\t {\r\n\t \r\n\t if (a[i] > a[j]) \r\n\t {\r\n\t \r\n\t temp = a[i];\r\n\t a[i] = a[j];\r\n\t a[j] = temp;\r\n\t \r\n\t }\r\n\t \r\n\t }\r\n\t \r\n\t }\r\n\t\t for (i=0;i<n1;i++)\r\n\t\t {\r\n\t\t\t System.out.print(a[i]);\r\n\t\t }\r\n\r\n}",
"private static boolean judge(int[] a) {\n\t\tint st = 1;\r\n\t\tint ed = a.length-2;\r\n\t\tint sa = 0;\r\n\t\tint sb = 0;\r\n\t\twhile (st<=ed) {\r\n\t\t\tif(a[st]>a[ed]){\r\n\t\t\t\tsa+=a[st];\r\n\t\t\t\tst++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsa+=a[ed];\r\n\t\t\t\ted--;\r\n\t\t\t}\r\n\t\t\tif(st>ed)break;\r\n\t\t\tif(a[st]>a[ed]){\r\n\t\t\t\tsb+=a[st];\r\n\t\t\t\tst++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsb+=a[ed];\r\n\t\t\t\ted--;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tif(sa>=sb)return true;\r\n\t\treturn false;\r\n\t}",
"public static void main(String args[])\n {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int ar[] = new int[n];\n for(int i=0 ; i<n ; i++)\n {\n \n ar[i] = in.nextInt(); \n }\n for(int j=1; j<=n;j++)\n { int count =0;\n for(int k=0 ; k<n ; k++) \n { \n if(j==ar[k])\n count++;\n \n }\n if(count == 0)\n {\n System.out.print(j); \n \n }\n }\n}",
"public static void main(String args[])\n {\n int n,min= Integer.MAX_VALUE;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n \n int a[] = new int[n];\n for(int i=0;i<n;i++){\n a[i] = sc.nextInt();\n }\n \n for(int i=0;i<n-1;i++){\n min = i;\n for(int j=i+1;j<n;j++){\n \tif(a[j]<a[min]){\n min=j;\n \n }\n \n }\n if(i!=min){\n int tt = a[i];\n a[i] = a[min];\n a[min] = tt;\n }\n }\n \n for(int i=0;i<n;i++)\n System.out.print(a[i] + \" \");\n }",
"public static int solution(int[] A) {\n if( A.length <= 1){\n return 0;\n }\n int reverseCount = 0;\n int compareElement = 0;\n int sequenceStart = A[0];\n int i = 0;\n while(i < A.length){\n int firstElement = A[i];\n // array has current and next index should be\n if(i == A.length-1)\n compareElement = A[i-1];\n else\n compareElement = A[i+1];\n if(firstElement == compareElement){\n reverseCount++;\n if(firstElement == 1 ) sequenceStart = 0;\n }else if(sequenceStart != firstElement){\n sequenceStart= firstElement;\n reverseCount += 2;\n }\n i+=2;\n }\n return reverseCount;\n }",
"public static int val(int[] a) {\n\n\t\tint count = 0;\n\t\tHashSet<Integer> set = new HashSet<Integer>();\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\tset.add(a[i]);\n\n\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\tfor (int i = 0, j = 0; i < a.length && j < a.length;) {\n\t\t\twhile (map.size() != set.size()) {\n\t\t\t\tmap.put(a[j], map.getOrDefault(a[j], 0) + 1);\n\t\t\t\tj++;\n\t\t\t\tif (j == a.length)\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\twhile (map.size() == set.size()) {\n\t\t\t\tcount += a.length - j + 1;\n\t\t\t\tif (map.get(a[i]) == 1)\n\t\t\t\t\tmap.remove(a[i]);\n\t\t\t\telse\n\t\t\t\t\tmap.put(a[i], map.get(a[i]) - 1);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}",
"public static void Insertionsort(int a[]) \n\t { \n\t int n = a.length; \n\t for (int i=1; i<n; ++i) \n\t { \n\t int key = a[i]; \n\t int j = i-1;\n\t while (j>=0 && a[j] > key) \n\t { \n\t a[j+1] = a[j]; \n\t j = j-1; \n\t } \n\t a[j+1] = key; \n\t } \n\t }",
"public static int countShifts(int[] ar) {\n int count = 0;\n for(int i = 1; i < ar.length; i++){\n int j = i -1;\n int index = i;\n while(j >=0){\n if(ar[j] > ar[index]){\n int tmp = ar[index];\n ar[index] = ar[j];\n ar[j] = tmp;\n count++;\n index = j;\n }\n j--;\n }\n }\n// printArray(ar);\n return count;\n }",
"static long findNumberOfTriangles(int arr[], int n)\n {\n\n long count=0;\n\n for(int i=0;i<n;i++){\n for(int j=i;j<n;j++){\n if(arr[i]>arr[j]){\n int temp=arr[j];\n arr[j]=arr[i];\n arr[i]=temp;\n }\n }\n }\n\n int k =n-1;\n for(int i=n-2;i>=0;i--){\n for(int j=i-1;j>=0;j--){\n if(arr[k]<arr[j]+arr[i]){\n count++;\n }\n }\n k--;\n }\n\n return count;\n }",
"public static int solutionN2(int[] A) {\n\n\t\tclass Pair {\n\t\t\tpublic int start;\n\t\t\tpublic int end;\n\n\t\t\tpublic Pair(int start, int end) {\n\t\t\t\tthis.start = start;\n\t\t\t\tthis.end = end;\n\t\t\t}\n\t\t}\n\n\t\tPair[] pairs = new Pair[A.length];\n\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tpairs[i] = new Pair(i - A[i], i + A[i]);\n\t\t}\n\n\t\tArrays.sort(pairs, new Comparator<Pair>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Pair o1, Pair o2) {\n\t\t\t\treturn o1.start - o2.start;\n\t\t\t}\n\t\t});\n\n\t\tint countIntersection = 0;\n\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tPair current = pairs[i];\n\n\t\t\tfor (int j = i + 1; j < A.length; j++) {\n\t\t\t\tPair p = pairs[j];\n\t\t\t\tif (current.end >= p.start) {\n\t\t\t\t\tcountIntersection++;\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (countIntersection > 10000000)\n\t\t\treturn -1;\n\n\t\treturn countIntersection;\n\t}",
"public static <T extends Comparable<? super T>> void sortTest(T[] a) {\n int N = a.length;\n int q = 0;\n for (int i = 1; i < N; i++) { \n // Insert a[i] among a[i-1], a[i-2], a[i-3]... ..\n for (int j = i; j > 0 && less(a[j], a[j-1]); j--) {\n exch(a, j, j-1); q = j;\n }\n }\n System.out.println(\"q==j==\"+q);\n }",
"public static void insertSort(int[] a, int n){\n // 插入排序,把数组分为已排序区和未排序区,依次把未排序中的元素插入的已排序中\n\n for (int i = 1; i < n ; ++i){\n // 遍历已排序区,找到已排序中符合要求的位置\n // value 待插入的数据\n int value = a[i];\n // j = 已排序的区间索引前一位\n int j = i-1;\n for (;j>=0;--j){\n\n // System.out.printf(\"\\n[%s : %s]\", Arrays.stream(a).boxed().collect(Collectors.toList()).subList(0,i).toString(),Arrays.stream(a).boxed().collect(Collectors.toList()).subList(i,n).toString());\n if (a[j] > value){\n // 大于待插入的数据的都自觉往后移动一位\n a[j+1] = a[j];\n move++;\n }else {\n // 中止 当前j为目标位置\n break;\n }\n }\n a[j+1] = value;\n }\n }",
"public static void countingSort(int[] input) {\n int max = getMax(input);\n\n // Do counting sort for every digit. Note that instead\n // of passing digit number, exp is passed. exp is 10^i\n // where i is current digit number\n for (int exp = 1; (max / exp) > 0; exp *= 10) {\n count(input, exp);\n if (exp >= 1000000000) {\n break;\n }\n }\n }",
"public static void main(String[] args) {\n\t\tint a[]= {8,4,1,5,9,2};\r\n\t\tint n=6;\r\n\t\tfor(int i=1;i<n;i++)\r\n\t\t{\r\n\t\t\tint temp=a[i];\r\n\t\t\tint j=i-1;\r\n\t\t\twhile(j>=0 && a[j]>temp)\r\n\t\t\t{\r\n\t\t\t\ta[j+1]=a[j];\r\n\t\t\t\tj--;\r\n\t\t\t}\r\n\t\t\ta[j+1]=temp;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(a[i]+\" \");\r\n\t\t}\r\n\r\n\t}",
"public int[] sort(int[] a) {\n\t\t// Outer loop that will progress the marker one step ahead\n\t\tfor (int i = 1; i < a.length; i++) {\n\t\t\t// Get the current element which we need to compare with the remaining i-1\n\t\t\t// elements of the array\n\t\t\tint key = a[i];\n\t\t\t// Select the j index which checks the 1-1 elements\n\t\t\tint j = i - 1;\n\t\t\t// Loop for these i-1 elements and compare each element with the key in the\n\t\t\t// reverse order\n\t\t\twhile (j >= 0 && a[j] > key) {\n\t\t\t\t// Move the element to the left\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t\t// Decrement counter by 1\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t// Now put the key in its appropriate position\n\t\t\ta[j + 1] = key;\n\t\t}\n\t\treturn a;\n\t}",
"public static int countInversions(Comparable[] a) {\n // create an auxiliary array\n Comparable[] aux = new Comparable[a.length];\n int count = sortAndCount(a, aux, 0, a.length-1);\n if (debug) {\n for (int i = 0; i < a.length; i++)\n System.out.print(a[i] + \"\\t\");\n System.out.println();\n }\n return count;\n }",
"public int get_odd_occurences_optimal_v1(int[] a) {\n\t\tHashMap<Integer, Integer> hashSet = new HashMap<>();\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (hashSet.containsKey(a[i])) {\n\t\t\t\thashSet.put(a[i], hashSet.get(a[i]) + 1);\n\t\t\t} else {\n\t\t\t\thashSet.put(a[i], 1);\n\t\t\t}\n\t\t}\n\t\tfor (Integer i : hashSet.keySet()) {\n\t\t\tif (hashSet.get(i) % 2 != 0) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public static int solution2(int[] A) {\n\n HashMap<Integer, Integer> hm = new HashMap<>();\n\n int n = A.length;\n\n // Finding frequency of each number.\n for (int i = 0; i < n; i++) {\n if (hm.containsKey(A[i]))\n hm.put(A[i], hm.get(A[i]) + 1);\n else\n hm.put(A[i], 1);\n }\n int ans = 0;\n\n // Calculating count of pairs with equal values\n for (Map.Entry<Integer, Integer> it : hm.entrySet()) {\n int count = it.getValue();\n ans += (count * (count - 1)) / 2;\n }\n return ans;\n }",
"private static void sort2(int[] a) {\n for(int i=0; i<a.length; i++){\n //find smallest from i to end \n int minIndex=i;\n for(int j=i ; j<a.length; j++)\n if(a[j]<a[minIndex])\n minIndex=j;\n //swap\n int t = a[i];\n a[i] = a[minIndex];\n a[minIndex] = t;\n }\n }",
"private static void sortAccording(int A1[], int A2[], int m, int n)\n {\n // The temp array is used to store a copy \n // of A1[] and visited[] is used to mark the \n // visited elements in temp[].\n int temp[] = new int[m], visited[] = new int[m];\n for (int i = 0; i < m; i++)\n {\n temp[i] = A1[i];\n visited[i] = 0;\n }\n \n // Sort elements in temp\n Arrays.sort(temp);\n \n // for index of output which is sorted A1[]\n int ind = 0; \n \n // Consider all elements of A2[], find them\n // in temp[] and copy to A1[] in order.\n for (int i = 0; i < n; i++){\n\n // Find index of the first occurrence\n // of A2[i] in temp\n int f = first(temp, 0, m-1, A2[i], m);\n \n // If not present, no need to proceed\n if (f == -1) \n continue;\n \n // Copy all occurrences of A2[i] to A1[]\n for (int j = f; (j < m && temp[j] == A2[i]); j++){\n \n A1[ind++] = temp[j];\n visited[j] = 1;\n }\n }\n \n // Now copy all items of temp[] which are \n // not present in A2[]\n for (int i = 0; i < m; i++)\n if (visited[i] == 0)\n A1[ind++] = temp[i];\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int noOfElements = sc.nextInt();\n int[] arr = new int[noOfElements];\n int[] arr1 = new int[noOfElements];\n int diff = Integer.MAX_VALUE;\n int sIndex = 0;\n int j = 0;\n for (int i = 0; i < noOfElements; i++) {\n arr[i] = sc.nextInt();\n }\n for (int j1 = 1; j1 < noOfElements; j1++) {\n int i = j1 - 1;\n int key = arr[j1];\n while (i >= 0 && key < arr[i]) { // 1 2 3\n arr[i + 1] = arr[i];\n i--;\n }\n arr[i + 1] = key;\n }\n //Arrays.sort(arr);\n for (int i = 0; i < noOfElements - 1; i++) {\n int temp = Math.abs(arr[i] - arr[i + 1]);\n if (temp <= diff) {\n diff=temp;\n }\n\n }\n\n for (int i = 0; i < noOfElements - 1; i++) {\n if (Math.abs(arr[i] - arr[i+1]) == diff) {\n System.out.print(arr[i] + \" \" + arr[i+1] + \" \");\n }\n }\n// for (int a = 0; a < j; a++) {\n//\n// System.out.print(arr[arr1[a]] + \" \" + arr[arr1[a]+1] + \" \");\n// }\n\n }",
"public void bubbleSort(long [] a){\n\t\tint upperBound=a.length-1;\n\t\tint lowerBound =0;\n\t\tint swaps=0;\n\t\tint iterations=0;\n\t\twhile(upperBound>=lowerBound){\n\t\t\tfor(int i=0,j=1;i<=upperBound && j<=upperBound; j++,i++){\n\t\t\t\tlong lowerOrderElement = a[i];\n\t\t\t\tlong upperOrderElement = a[j];\n\t\t\t\titerations++;\n\t\t\t\tif(lowerOrderElement>upperOrderElement){ //swap positions\n\t\t\t\t\ta[i] = a[j];\n\t\t\t\t\ta[j]= lowerOrderElement;\n\t\t\t\t\tswaps=swaps+1;\n\t\t\t\t}\n\t\t\t\telse{ // sorted.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tupperBound--;\n//\t\tSystem.out.println(\"upperBound:- \" +upperBound);\n//\t\tSystem.out.println(\"lowerBound:- \" +lowerBound);\n\t\t}displayArr(a);\n\t\t\n\t\tSystem.out.println(\"Total Swaps:- \" + swaps);\n\t\tSystem.out.println(\"Total Iterations:- \" + iterations);\n\t}",
"private static int sortAndCount(Comparable[] a, Comparable[] aux, int lo, int hi) {\n if (hi <= lo) return 0;\n\n int mid = (lo + hi) / 2;\n // sort and count left inversions\n int left = sortAndCount(a, aux, lo, mid);\n // sort and count right inversions\n int right = sortAndCount(a, aux, mid+1, hi);\n // merge and count split inversions\n if (debug) {\n System.out.println(\"Merging ( \" + lo + \" \" + hi + \" ): \");\n for (int i = 0; i < a.length; i++)\n System.out.print(a[i] + \"\\t\");\n System.out.println();\n }\n int split = mergeAndCountSplit(a, aux, lo, mid, hi);\n // return all inversions\n if (debug) {\n System.out.println(\"Returning ( \" + lo + \" \" + hi + \" ): \");\n for (int i = 0; i < a.length; i++)\n System.out.print(a[i] + \"\\t\");\n System.out.println();\n }\n return (left + right + split);\n }",
"static void sortByFreq(int arr[], int n){\n Map<Integer, Integer> map = new HashMap<>(); \n List<Integer> outputArray = new ArrayList<>(); \n \n // Assign elements and their count in the list and map \n for (int current : arr) { \n int count = map.getOrDefault(current, 0); \n map.put(current, count + 1); \n outputArray.add(current); \n } \n \n // Compare the map by value \n SortComparator comp = new SortComparator(map); \n \n // Sort the map using Collections CLass \n Collections.sort(outputArray, comp); \n \n // Final Output \n for (Integer i : outputArray) { \n System.out.print(i + \" \"); \n }\n }",
"private static void CountingSort(int[] A, int[] B, int k) {\n\t\tSystem.out.print(\"Before counting sort: \");\n\t\tfor(int i = 0 ; i < A.length ; i++){\n\t\t\tSystem.out.print(A[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\t//C goes all the way to 14\n\t\tint [] C = new int [k + 1];\n//\t\tSystem.out.println(\"The amount of index in C\");\n\t\t\n\t\tfor(int i = 0; i < C.length ; i++){\n\t\t\tC[i] = 0;\n//\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Tester loop2: \");\n\t\tfor(int j = 0 ; j < A.length ; j++){\n\t\t\tC[A[j]] = C[A[j]] + 1;\n//\t\t\tSystem.out.println(C[A[j]]);\n\t\t}\n\t\t\n\t\tfor(int i = 1 ; i < C.length ; i++){\n\t\t\tC[i] = C[i] + C[i-1];\n//\t\t\tSystem.out.println(C[i] + \" \"+ i);\n\t\t}\n\t\t//System.out.println(\"Test 14:\" + C[14]);\n\t\t\n\t\tfor(int j = A.length - 1; j >= 0 ; j--){\n\t\t\tB[C[A[j]]] = A[j];\n//\t\t\tSystem.out.println();\n//\t\t\tSystem.out.print(A[j] + \" with index \" + j + \"\\t \" + C[A[j]]);\n\t\t\tC[A[j]] = C[A[j]] - 1;\n//\t\t\tSystem.out.print(\"\\tAfter \" + C[A[j]] + \"\\t \" + B[C[A[j]]]);\n\t\t}\n\t\t\n\t\t\n\t\t/* \t\t\tPrints out the after sorting algorithm\t\t*/\n\t\tSystem.out.print(\"\\nAfter Counting sort: \");\n\t\tfor(int i = 1 ; i < B.length ; i++)\n\t\t\tSystem.out.print(B[i] + \" \");\n\t}",
"int sort(Comparable arr[]) {\r\n\t\tint count = 0;\r\n\t\tif (arr == null || arr.length == 0)\r\n\t\t\treturn 0;\r\n\r\n\t\tint n = arr.length;\r\n\t\tfor (int i = 1; i < n; ++i) {\r\n\t\t\tComparable key = arr[i];\r\n\t\t\tint j = i - 1;\r\n\r\n\t\t\twhile (j >= 0 && arr[j].compareTo(key) > 0) {\r\n\t\t\t\tcount++;\r\n\t\t\t\tarr[j + 1] = arr[j];\r\n\t\t\t\tj = j - 1;\r\n\t\t\t}\r\n\t\t\tarr[j + 1] = key;\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public static int repeatedNumber(final List<Integer> a) {\n\t\tint n = a.size();\n\t\tHashMap<Integer, Integer> map_a=new HashMap<>();\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tmap_a.put(a.get(i), map_a.getOrDefault(a.get(i), 0)+1);\n\t\t}\n\t\tSystem.out.println(map_a);\n\t\tfor(int i:map_a.values()) {\n\t\t\tif(i>n/3)\n\t\t\t{\n\t\t\t\tSet<Integer> set= getKeysByValue(map_a, i);\n\t\t\t\treturn set.stream().findFirst().get();\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\t\n\t\t//solution at site\n\n\t /* int num;\n\t int n = A.size();\n\t Collections.sort(A);\n\t for (int i = 0; i < n;) {\n\t int freq = 0;\n\t num = A.get(i);\n\t while (i < n && A.get(i) == num) {\n\t freq++;\n\t i++;\n\t }\n\t if (freq * 3 > n)\n\t return num;\n\t }\n\t return -1;*/\n\t}",
"static int minimumSwaps(int[] arr) {\n int length = arr.length;\n int swaps = 0;\n int ind = 0;\n int temp = 0;\n int count = 0;\n for(int i=0;i<length;i++)\n {\n if(i+1 != arr[i])\n {\n count++;\n ind = index(arr,i+1,i);\n if(ind != -1){\n temp = arr[i];\n arr[i] = arr[ind];\n arr[ind] = temp;\n }\n }\n }\n\n return count;\n }",
"public static void njjMP(int a[]) {\n\t\tint temp;\n\t\tint njjlen = a.length;\n\t\tboolean tag = true;\n\t\twhile (tag) {\n\t\t\ttag = false;\n\t\t\tnjjlen--;\n\t\t\tfor (int j = 1; j <= njjlen; j++) {\n\t\t\t\tif (a[j - 1] < a[j]) {\n\t\t\t\t\ttemp = a[j - 1];\n\t\t\t\t\ta[j - 1] = a[j];\n\t\t\t\t\ta[j] = temp;\n\t\t\t\t\ttag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args){\n int n;int k;\n Scanner sc=new Scanner(System.in);\n n=sc.nextInt();\n k=sc.nextInt();\n int[] a=new int[n];\n int[] reMain=new int[k];\n int num=0;\n for(int i=0;i<k;i++){\n reMain[i]=0;\n }\n for(int i=0;i<n;i++){\n int d=sc.nextInt()%k;\n reMain[d]++;\n }\n int p=0;\n if(k%2==0)\n p=k/2;\n else p=(k+1)/2;\n for(int i=1;i<p;i++){\n if(reMain[i]>reMain[k-i])\n num+=reMain[i];\n else\n num+=reMain[k-i];\n \n }\n if(reMain[p]%2==1 && k%2==0)\n num++;\n if(k==2)\n num=reMain[1];\n \n \n System.out.println(num);\n\t}",
"public static void main(String[] args) {\n int a[] = {12,11,10,5,6,2,30};\n // smaller greater approach with 3 passes can be used to find total number of triplet subsequences in array \n int smaller[] = new int[a.length];\n int greater[] = new int[a.length];\n \n for(int i=0;i<a.length;i++) {\n smaller[i] = greater[i] = -1;\n }\n // smaller fill up\n int min = a[0];\n for(int i=1;i<a.length;i++) {\n if (a[i] > min) {\n smaller[i] = 1;\n } else if ( a[i] < min) {\n min = a[i];\n }\n }\n \n int max = a[a.length-1];\n for(int i=a.length-2;i>=0;i--) {\n if (a[i] < max) {\n greater[i] = 1;\n } else if ( a[i] > max) {\n max = a[i];\n }\n }\n \n for(int i=1;i<a.length-1;i++) {\n if (smaller[i] == greater[i] && greater[i] == 1) {\n System.out.println(\"Triplet found, mid is at -> \" + i + \" : \" + a[i]);\n }\n }\n System.out.println(\"Do we have increasing triplet ?? \" + increasingTripletOnePass(a));\n }",
"void findLeadrsInArray1(int[] a){\n\t\tint n = a.length;\n\t\tboolean flag = true;\n\t\tfor(int i =0;i<n;i++){\n\t\t\tfor(int j=i+1;j<n;j++){\n\t\t\t\tif(a[i] < a[j]){\n\t\t\t\t\tflag = false; \n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag != false){\n\t\t\t\tSystem.out.println(a[i]);\n\t\t\t}\n\t\t}\n\t}",
"public void insertionSort() {\n\t\tfor (int i = 1; i < numberOfElements; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\twhile (j > 0) {\n\t\t\t\tif (arr[j - 1] <= temp) {\n\t\t\t\t\tnumberOfComparisons++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnumberOfComparisons++;\n\t\t\t\tarr[j] = arr[j - 1];\n\t\t\t\tnumberOfCopies++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j] = temp;\n\t\t}\n\t}",
"int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }",
"public void countSort(int arrA[], int arrB[], int k) {\n\n\t\tint arrC[] = new int[k];\n\t\tfor (int i = 0; i < arrA.length; i++) {\n\t\t\tarrC[arrA[i]]++;\n\t\t}\n\t\tfor (int i = 1; i < arrC.length; i++) {\n\t\t\tarrC[i] = arrC[i] + arrC[i - 1];\n\t\t}\n\t\tfor (int i = arrB.length - 1; i >= 0; i--) {\n\t\t\tarrB[arrC[arrA[i]] - 1] = arrA[i];\n\t\t\tarrC[arrA[i]]--;\n\t\t}\n\t}",
"public static void printMajorityElement(int a[], int n) {\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for (int i = 0; i < n; i++) {\n Integer count = map.get(a[i]);\n count = (count == null) ? 1 : count + 1;\n if (count > n/2) {\n System.out.println(a[i]);\n return;\n }\n else\n map.put(a[i], count);\n }\n System.out.println(\"NONE\");\n }",
"static int findPeakWithDuplicates(int[] a) {\n int start = 0, end = a.length - 1;\n\n while (start <= end) {\n int mid = start + (end - start) / 2;\n\n if (mid < end && a[mid] > a[mid + 1])\n return mid;\n if (mid > start && a[mid] < a[mid - 1])\n return mid - 1;\n\n // if elements at start and end are duplicates then just skip them\n if (a[mid] == a[start] && a[mid] == a[start]) {\n if (a[start] > a[start + 1])\n return start;\n start++;\n\n if (a[end] < a[end - 1])\n return end - 1;\n end--;\n } else if (a[start] < a[mid] || a[start] == a[mid] && a[mid] > a[start])\n start = mid + 1;\n else\n end = mid - 1;\n\n }\n\n return -1;\n }",
"public static void insertionSort(int[] a) {\r\n\r\n int i; //pointer to item in unsorted list\r\n int j; //pointer to an item in sorted list\r\n int value; //the next value to be inserted into sorted list\r\n\r\n for (i = 1; i < a.length; i++) { // iterate for each item in unsorted list\r\n\r\n value = a[i]; //assigns value of element in list to be sorted\r\n j = i - 1; //assign j to be the last element in sorted list\r\n\r\n while (j >= 0 && (a[j] >= value)) {\r\n //if there are still elements in unsorted list \r\n //and if the value to be inserted is less than the the value at index\r\n a[j + 1] = a[j]; //copy element to the right\r\n j--; //increment to check value to the left\r\n }//end while --the array continues moving each element right\r\n a[j + 1] = value; //assign value to it's place \r\n }//end for loop\r\n }",
"public static int[] sta(int[] arr){//Sort The Array\n for (int a = 0; a < arr.length; a++){\n for(int b = 0; b < arr.length; b++){\n int holder = 0;\n //it will grab 1 number and checks the list if that number is bigger than any other number. then it repeats with the next number of the list.\n if(arr[a] > arr[b]){//IF NUMBER[A] IS BIGGER THAN NUMBER[B]\n holder = arr[a];//HOLDER BECOMES NUMBER[A]\n arr[a] = arr[b];//NUMBER[A] BECOMES NUMBER[B]\n arr[b] = holder;//NUMBER[B] BECOMES NUMBER[A](HOLDER)\n }\n //[A] and [B] switch placements and will repeat till arr.length\n }\n }\n return arr; \n }",
"public int findPairsTwoPointers(int[] nums, int k) {\n if (k < 0) {\n return 0;\n }\n Arrays.sort(nums); // O(N*logN)\n\n int i = 0;\n int j = 1;\n int count = 0;\n while (j < nums.length) { // O(N)\n if (i == j || nums[j] - nums[i] < k) {\n j++;\n } else if (nums[j] - nums[i] > k) {\n i++;\n } else {\n count += 1;\n j++;\n while (j < nums.length && nums[j] == nums[j - 1]) {\n j++;\n }\n }\n }\n return count;\n }",
"public List<Integer> countSmaller(int[] a) {\n\t\tint n = a.length;\n\t\t\n\t\tif( n == 0) return new ArrayList<>();\n\t\tTreeNodeSpecial root= new TreeNodeSpecial(a[n-1]);\n\t\tint[] res = new int[n];\n\t\tfor(int i =n-1;i>=0;i--) {\n\t\t\tres[i] = insertNode(root, a[i]);\n\t\t}\n\t\t\n\t\treturn Arrays.stream(res).boxed().collect(Collectors.toList());\n\t}",
"public static void main(String[] args) throws java.lang.Exception {\n\n Scanner scn = new Scanner(System.in);\n\n int t = scn.nextInt();\n\n while (t != 0) {\n int n = scn.nextInt();\n\n int arr[] = new int[n];\n\n for (int i = 0; i < n; i++) {\n\n arr[i] = scn.nextInt();\n\n }\n int pos = scn.nextInt();\n long element = arr[pos-1];\n\n Arrays.sort(arr);\n \n for(int i=0;i<n;i++)\n System.out.print(arr[i]+\" \");\n \n System.out.println();\n System.out.println(bsearch(arr, element) +1 );\n t--;\n }\n\n }",
"public static void BubbleSort(int[] a) {\n\t int n = a.length;\n\t int temp = 0;\n\n\t for(int i = 0; i < n; i++) {\n\t for(int j=1; j < (n-i); j++) {\n\t if(a[j-1] > a[j]) {\n\t temp = a[j-1];\n\t a[j-1] = a[j];\n\t a[j] = temp;\n\t }\n\t }\n\t }\n\t}",
"static public void findPossibleTrianglesCount_V2(int[] arr, int n){\n \r\n int i,j,k; //loop or index variables\r\n int nTriangles = 0;\r\n \r\n Arrays.sort(arr);\r\n \r\n for(i=0; i<n-2; i++){\r\n k = i+2;\r\n for(j=i+1; j<n-1; j++){\r\n while(k<n && arr[i]+arr[j]>arr[k])\r\n k++;\r\n nTriangles+= k-j-1;\r\n }\r\n }\r\n \r\n System.out.println(\"Number of possible triangles \" + nTriangles);\r\n }",
"static long[] radixsort(int arr[], int n)\r\n\r\n {\n\r\n int m = getMax(arr, n);\r\n\r\n long st = System.nanoTime();\r\n\r\n\r\n\r\n for (int exp = 1; m/exp > 0; exp *= 10)\r\n\r\n countSort(arr, n, exp);\r\n\r\n \r\n\r\n long et = System.nanoTime();\r\n\r\n threeVals[2] = et - st;\r\n\r\n return threeVals;\r\n\r\n }",
"public static void sort(int a[], int n) {\n\t\tint l = 0;\r\n\t\tint h = n-1;\r\n\t\tint mid = 0;\r\n\t\twhile (mid <= h) {\r\n\t\t\tint temp = 0;\r\n\t\t\tswitch(a[mid]) {\r\n\t\t\tcase 0 : {\r\n\t\t\t\ttemp = a[l];\r\n\t\t\t\ta[l] = a[mid];\r\n\t\t\t\ta[mid] = temp;\r\n\t\t\t\tl++;\r\n\t\t\t\tmid++;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 1 : {\r\n\t\t\t\tmid++;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 2 : {\r\n\t\t\t\ttemp = a[mid];\r\n\t\t\t\ta[mid] = a[h];\r\n\t\t\t\ttemp = a[h];\r\n\t\t\t\th--;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void sort(int[] a, int n) {\n\t\t\n\t\t\n\t\tint i, j, temp;\n\t\tfor (i = 1; i < n; i++) {\n\t\t\t//a[i] is the first element of unsorted part\n\t\t\ttemp = a[i];\n\t\t\tfor (j = i - 1; j >= 0 && a[j] > temp; j--) {\n\t\t\t\ta[j + 1] = a[j];\n\t\t\t}\n\t\t\ta[j + 1] = temp;\n\t\t}\n\n\t}",
"public static List<Integer> countingSort(List<Integer> arr) {\n // Write your code here\n int[] frequencyArray = new int[100];\n for (int i = 0; i < arr.size(); i++) {\n int arrValue = arr.get(i);\n int frequency = frequencyArray[arrValue];\n frequencyArray[arrValue] = frequency + 1;\n }\n return Arrays.stream(frequencyArray).boxed().collect(Collectors.toList());\n }",
"public static int bestSolution(int[] A) {\n int counter = 0, j = 0;\n long[] upper = new long[A.length];\n long[] lower = new long[A.length];\n\n for (int i = 0; i < A.length; i++) {\n lower[i] = (long) i - A[i];\n upper[i] = (long) i + A[i];\n }\n\n Arrays.sort(lower);\n Arrays.sort(upper);\n\n for (int i = 0; i < A.length; i++) {\n while (j < A.length && upper[i] >= lower[j]) {\n counter += j - i;\n j++;\n }\n if (counter > 10000000) return -1;\n }\n\n return counter;\n }",
"public static void main(String args[]){\r\n\t\t\r\n\t\t\r\n\t\tint arr[] = {2,5,2,8,5,6,8,8};\r\n\t\t\r\n\t\tMap<Integer, Integer> freqMap = new LinkedHashMap<Integer,Integer>();\r\n\t\t\r\n\t\tfor(int i = 0; i< arr.length;i++){\r\n\t\t\tif(freqMap.containsKey(arr[i])){\r\n\t\t\t\tint count = freqMap.get(arr[i]);\r\n\t\t\t\tfreqMap.put(arr[i],count + 1);\r\n\t\t\t}else{\r\n\t\t\t\tfreqMap.put(arr[i], 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//2-2,5-2,6-1,8-3\r\n\t\t\r\n\t\tMap<Integer,ArrayList<Integer>> sortedList = new TreeMap<Integer, ArrayList<Integer>>(new Comparator<Integer>(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Integer arg0, Integer arg1) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn arg1.compareTo(arg0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tfor(Entry<Integer, Integer> entry : freqMap.entrySet()){\r\n\t\t\tint key = entry.getKey();\r\n\t\t\tint val = entry.getValue();\r\n\t\t\tif(sortedList.containsKey(val)){\r\n\t\t\t\tArrayList<Integer> list = sortedList.get(val);\r\n\t\t\t\tfor(int j = 0; j<val ; j++)\r\n\t\t\t\t\tlist.add(key);\r\n\t\t\t}else{\r\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\tfor(int j = 0; j<val ; j++)\r\n\t\t\t\t\tlist.add(key);\r\n\t\t\t\tsortedList.put(val, list);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(sortedList.values());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public long sort(int[] array) {\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\r\n\t\tfor(int i = 0; i < array.length - 1; i++) {\r\n\t\t\tfor(int j = 0; j < array.length - i - 1 ; j++) {\t\r\n\t\t\t\tif(array[j] > array[j + 1]){\r\n\t\t\t\t\tint temp = array[j];\t\t\t\t\t\t//get the value in j\r\n\t\t\t\t\tarray[j] = array[j + 1 ];\t\t\t\t\t//value we're currently on gets replaced with it's successor index\r\n\t\t\t\t\tarray[j + 1] = temp;\t\t\t\t\t\t//replace the next index value with the value of the temp value (which stored the value of what our current index was)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlong endTime = System.currentTimeMillis();\r\n\t\tlong exectutionTime = endTime - startTime;\r\n\t\treturn exectutionTime;\r\n\t}",
"static public int solution(int[] A) {\n HashSet <Integer> newDistList = new HashSet<Integer>();\n for (int s = 0; s<A.length; s++){\n newDistList.add(A[s]);\n }\n return newDistList.size();\n }",
"public static void sort(int[] a, int n) {\n\t\tint x, j, temp;\n\n\t\tfor (x = n - 2; x >= 0; x--) {\n\t\t\tfor (j = 0; j <= x; j++) {\n\t\t\t\tif (a[j] > a[j + 1]) {\n\t\t\t\t\ttemp = a[j];\n\t\t\t\t\ta[j] = a[j+1];\n\t\t\t\t\ta[j+1] = temp;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"private int minJumps(int[] arr) {\n int n = arr.length;\n if (n == 1) {\n return 0;\n }\n\n //map to hold the values in the array and the indexes where they are located in\n Map<Integer, List<Integer>> map = new HashMap<>();\n\n for (int i = 0; i < arr.length; i++) {\n /*\n method checks if arr[i] exists in the map, if so, we add the current index to the list of indexes where\n arr[i] is present, otherwise we make a new entry for arr[i]\n */\n map.computeIfAbsent(arr[i], v -> new ArrayList<>()).add(i);\n }\n\n //Queue to hold the indexes j we can jump to starting from 0\n Queue<Integer> queue = new LinkedList<>();\n queue.add(0); //add the first index into the queue\n int steps = 0;\n\n while (!queue.isEmpty()) {\n steps++;\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n int j = queue.remove(); //the current index\n\n //jump to j + 1\n if (j + 1 < n && map.containsKey(arr[j + 1])) {\n if (j + 1 == n - 1) {\n return steps;\n }\n queue.add(j + 1);\n }\n\n //jump to j - 1\n if (j - 1 >= 0 && map.containsKey(arr[j - 1])) {\n queue.add(j - 1);\n }\n\n //jump to index k --> arr[j] == arr[k]\n if (map.containsKey(arr[j])) {\n //search through the list of indexes where arr[j] is present\n for (int k : map.get(arr[j])) {\n if (k != j) {\n //if one of the indexes is the last index, we've gotten to the end, otherwise we add the index to the queue\n if (k == n - 1) {\n return steps;\n }\n queue.add(k);\n }\n }\n }\n //remove the value of arr[j] from the map to avoid overlap\n map.remove(arr[j]);\n }\n }\n return steps;\n }",
"public static void Selectionsort(int a[]) { \n\t int n = a.length; \n\t for (int i = 0; i < n-1; i++) \n\t { \n\t int min_idx = i; \n\t for (int j = i+1; j < n; j++) \n\t if (a[j] < a[min_idx]) \n\t min_idx = j; \n\t \n\t int temp = a[min_idx]; \n\t a[min_idx] = a[i]; \n\t a[i] = temp; \n\t } \n\t }",
"public int swapCount() {\n \t\tint n=length();\n \t\tint swaps=0;\n \t\tboolean[] seen=new boolean[n];\n \t\tfor (int i=0; i<n; i++) {\n \t\t\tif (seen[i]) continue;\n \t\t\tseen[i]=true;\n \t\t\tfor(int j=data[i]; !seen[j]; j=data[j]) {\n \t\t\t\tseen[j]=true;\n \t\t\t\tswaps++;\n \t\t\t}\t\t\n \t\t}\n \t\treturn swaps;\n \t}",
"public static int[] stableSort(int[]arr,int n)\r\n\t{\r\n\t\tint finalAns[]=new int[arr.length];\r\n\t\tint ans[]=new int[10];\r\n\t\t\r\n\t\tfor(int i=0;i<arr.length;i++)\r\n\t\t\tans[digitAt(arr[i],n)]++;\r\n\t\t/*ans[j] now contains the number of elements equal to j*/\r\n\t\t\r\n\t\tfor(int i=1;i<ans.length;i++)\r\n\t\t\tans[i]+=ans[i-1];\r\n\t\t/*c[j] now contains the number of elements less than or equal to j*/\r\n\t\t\r\n\t\t/*preparing the finalAns array*/\r\n\t\tfor(int i=arr.length-1;i>=0;i--)\r\n\t\t\tfinalAns[--ans[digitAt(arr[i],n)]]=arr[i];\r\n\t\t\r\n\t\treturn finalAns;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n, temp;\n\t\tSystem.out.println(\"Enter the number of elements in an array\");\n\t\tn = s.nextInt();\n\t\tSystem.out.println(\"Enter the elements of an array\");\n\t\tint a[] = new int[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int j = i+1; j < n; j++) {\n\t\t\t\tif(a[i]<a[j]) {\n\t\t\t\t\ttemp = a[i];\n\t\t\t\t\ta[i] = a[j];\n\t\t\t\t\ta[j]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tSystem.out.print(a[i]+ \"\");\n\t\t}\n\n\t}",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }",
"public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }"
] | [
"0.7342081",
"0.698201",
"0.69745624",
"0.690629",
"0.685194",
"0.67721057",
"0.67175",
"0.67086035",
"0.6673891",
"0.6643183",
"0.66253436",
"0.66173327",
"0.6611845",
"0.6584061",
"0.65546125",
"0.649594",
"0.6478465",
"0.64526826",
"0.6430345",
"0.64202785",
"0.63930655",
"0.63852966",
"0.6325638",
"0.6317865",
"0.63150346",
"0.63024676",
"0.6278111",
"0.6250007",
"0.62254024",
"0.62139505",
"0.619817",
"0.6160278",
"0.615213",
"0.6141511",
"0.6137892",
"0.61333495",
"0.61223984",
"0.6121972",
"0.6112348",
"0.6109753",
"0.61051774",
"0.60945994",
"0.6089306",
"0.60848796",
"0.6080423",
"0.60736936",
"0.6038916",
"0.6031853",
"0.6029209",
"0.60225725",
"0.6009778",
"0.5995422",
"0.5989978",
"0.5989271",
"0.5982669",
"0.5981994",
"0.59810126",
"0.59742594",
"0.5967885",
"0.5966524",
"0.5964848",
"0.59612244",
"0.5960354",
"0.59563684",
"0.5946437",
"0.59448755",
"0.5940292",
"0.59333545",
"0.5928719",
"0.5927891",
"0.5927546",
"0.5919902",
"0.5909432",
"0.590381",
"0.59032905",
"0.59029347",
"0.59000134",
"0.58967316",
"0.5887558",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975",
"0.58873975"
] | 0.61308545 | 36 |
Helper function which will use 'Insertion Sort and Binary Search' | public int sortSearchHelper (int val, int low, int high, List<Integer> list) {
// Binary search to find our element val in the insertion sorted array
int mid = low + (high - low)/2;
// Here, if binary search ends, means current mid is the value.
if (low >= high) {
list.add(mid, val);
return mid;
}
// Check if given val is present on left or right side of mid value.
if (val <= list.get(mid)) {
return sortSearchHelper (val, low, mid, list);
} else {
return sortSearchHelper (val, mid + 1, high, list);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static <T extends Comparable<? super T>> void insertionSort(List<T> a, int low, int high){\n // Example of insertion sort\n // 4 1 3 2 5\n // 1 4 3 2 5\n // 1 3 4 2 5\n // 1 2 3 4 5\n\n // index low is already sorted\n // move from left to right inserting in correct position \n // list is always sorted from low to i\n for (int i = low + 1; i <= high; i++){\n // store object at index i\n T tmp = a.get(i);\n\n // start at i if j - 1 is greater then tmp move index j - 1 to j\n int j;\n for(j = i; j > 0; j--){\n // tmp < j - 1 -> compareTo < 0\n // tmp > j - 1 -> compareTo > 0\n if(tmp.compareTo(a.get(j - 1)) < 0){\n a.set(j, a.get(j-1));\n } else {\n // break if tmp is bigger than j - 1\n \n break;\n }\n }\n \n // tmp should be inserted into position j\n a.set(j, tmp);\n }\n }",
"private void bInsertionSort(int lowerIndex, int higherIndex) {\n \t\tArrayList tmpsorted = new ArrayList();\n \t\tint tmp, lowerbound, upperbound;\n \t\t\n \t\tfor(int i = lowerIndex; i <= higherIndex; i++) {\n \t\t\ttmp = (int) unsorted.get(i);\n \t\t\tif(tmpsorted.isEmpty()) {\n \t\t\t\ttmpsorted.add(tmp);\n \t\t\t} else {\n \t\t\t\t\n \t\t\t\t//Every new number we want to insert needs\n \t\t\t\t//to reset the bounds according to the sorted list.\n \t\t\t\tupperbound = tmpsorted.size() - 1;\n \t\t\t\tlowerbound = 0;\n \t\t\t\t\n \t\t\t\twhile (unsorted.size() != 0){\n \t\t\t\t//Note that each \"break;\" throws us out of the while loop.\n \t\t\t\t//Causing our boundaries to be reset for the new number\n \t\t\t\t\t\n \t\t\t\t\tint j = (upperbound + lowerbound) / 2;\t//j points to the middle of the boundaries\n \t\t\t\t\tif (tmp <= (int)tmpsorted.get(j)){\t//is tmp less or equal to the number in j?\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\tif (j == 0){\t\t\t\t\t\t//Are we at the bottom of the list?\n \t\t\t\t\t\t\ttmpsorted.add(0, tmp);\t\t//Add it to the bottom of the list.\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\telse if ((int)tmpsorted.get(j-1) > tmp){ \n \t\t\t\t\t\t//Else if the number behind j is bigger than tmp...\n \t\t\t\t\t\t//...we can move the upper bound behind j and repeat the split.\n \t\t\t\t\t\t//NOTE: We do NOT \"break;\" to get thrown out of the while loop.\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tupperbound = j - 1;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\telse{ //Else we just add the number to j\n \t\t\t\t\t\t\ttmpsorted.add(j, tmp);\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\telse{ //If tmp is HIGHER than j\n \t\t\t\t\t\tif (j == tmpsorted.size() - 1){\n \t\t\t\t\t\t//Are we at the end of the list?\n \t\t\t\t\t\t//Just add tmp at the end of the list.\t\n \t\t\t\t\t\t\ttmpsorted.add(j+1, tmp);\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\telse if((int)tmpsorted.get(j+1) < tmp){\n \t\t\t\t\t\t//if the next number to j is still less than tmp...\n \t\t\t\t\t\t//we raise the lowerbound past j and repeat the split\n \t\t\t\t\t\t//NOTE: We do NOT \"break;\" to get thrown out of the while loop.\n \t\t\t\t\t\t\tlowerbound = j + 1;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\telse{ \n \t\t\t\t\t\t//Else we can just add tmp after j since it's higher than j\n \t\t\t\t\t\t\ttmpsorted.add(j+1, tmp);\n \t\t\t\t\t\t\tbreak;\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\t// Replace the unsorted values with tmpsorted.\n \t\tint j = 0;\n \t\tfor(int i = lowerIndex; i <= higherIndex; i++) {\n \t\t\tunsorted.set(i, tmpsorted.get(j));\n \t\t\tj++;\n \t\t}\n\n \t}",
"static void InsertionSort(int[] arr){\n int inner, temp;\n for(int outer = 1; outer<arr.length;outer++){\n temp = arr[outer];\n inner = outer;\n while (inner>0 && arr[inner-1]>temp){\n arr[inner] = arr[inner-1];\n inner--;\n }\n arr[inner]=temp;\n }\n }",
"public void insertionSort(int[] nums) {\n for (int i = 1; i < nums.length; i++) {\n // Hold the current element which is processed\n int current = nums[i];\n int j = i;\n\n // Trace backwards and find a place to insert current by shifting elements\n // towards the right\n while (j - 1 >= 0 && nums[j - 1] > current) {\n nums[j] = nums[j - 1];\n j--;\n }\n\n // j is the right place to insert current\n nums[j] = current;\n }\n\n }",
"private static void insertionSortArray2(int[] arr) {\n\n int key,j;\n\n for(int index=1;index<arr.length;index++){\n\n key=arr[index];\n\n j=index-1;\n\n while(j>=0 && arr[j]>key){\n arr[j+1]=arr[j];\n j--;\n }\n arr[j+1]=key;\n }\n\n\n }",
"void InsertionSort(int a[])\n {\n int i,j;\n\n for( j=1;j<a.length;j++)\n {\n int key =a[j];\n i=j-1;\n\n\n while(i>=0 && a[i]>key)\n {\n a[i+1]=a[i];\n i=i-1;\n }\n a[i+1]=key;\n\n }\n\n }",
"public static void Insertionsort(int a[]) \n\t { \n\t int n = a.length; \n\t for (int i=1; i<n; ++i) \n\t { \n\t int key = a[i]; \n\t int j = i-1;\n\t while (j>=0 && a[j] > key) \n\t { \n\t a[j+1] = a[j]; \n\t j = j-1; \n\t } \n\t a[j+1] = key; \n\t } \n\t }",
"public static void insertionSort(int[] arr) {\n //write your code here\n for(int i=1;i<arr.length;i++) {\n for(int j=i-1;j>=0;j--) {\n if(isGreater(arr, j, j+1))\n swap(arr, j, j+1);\n else\n break;\n }\n }\n}",
"public void insertionNumberSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && Integer.parseInt(AL.get(possibleIndex - 1).toString()) < Integer.parseInt(temp.toString()))\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }",
"public void insertionSort() {\n\t\tfor (int i = 1; i < numberOfElements; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\twhile (j > 0) {\n\t\t\t\tif (arr[j - 1] <= temp) {\n\t\t\t\t\tnumberOfComparisons++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnumberOfComparisons++;\n\t\t\t\tarr[j] = arr[j - 1];\n\t\t\t\tnumberOfCopies++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tarr[j] = temp;\n\t\t}\n\t}",
"public void insertionSortAsc(){\r\n for(int x=1 ; x<numItems ; x++){ //get the starting point\r\n int temp = mArray[x]; //take the item out\r\n int pos = x -1;\r\n while(pos >= 0 && mArray[pos]>temp){\r\n mArray[pos+1] = mArray[pos]; //shift item up\r\n pos--; //move position left\r\n }\r\n mArray[pos+1] = temp; //insert item in the empty spot\r\n }\r\n }",
"void compareInsertion();",
"public static void insertionSort(int[] list1)\r\n\t{\r\n\t\tint temp=0;\r\n\t\tfor(int outside=1; outside<list1.length; outside++)\r\n\t\t{\r\n\t\t\tfor(int inside=outside; inside>0; inside--)\r\n\t\t\t{\r\n\t\t\t\tif(list1[inside]<list1[inside-1])\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp=list1[inside-1];\r\n\t\t\t\t\tlist1[inside-1]=list1[inside];\r\n\t\t\t\t\tlist1[inside]=temp;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void insertionSort(int[] data) {\n for(int i = 1; i < data.length; i++) {\n int j = i;\n while(j > 0 && data[j] < data[j - 1]) { //can get all the way to the front if need be\n int temp = data[j - 1];\n data[j - 1] = data[j];\n data[j] = temp;\n j--;\n }\n }\n }",
"private static int[] insertionSort(int[] inputArr) {\n\t\tint temp;\n\t\tfor(int i=1;i<inputArr.length;i++)\n\t\t{\n\t\t\tfor(int j=i;j>0;j--)\n\t\t\t{\n\t\t\t\tif(inputArr[j-1]>inputArr[j])\n\t\t\t\t{\n\t\t\t\t\ttemp=inputArr[j-1];\n\t\t\t\t\tinputArr[j-1]=inputArr[j];\n\t\t\t\t\tinputArr[j]=temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn inputArr;\n\t}",
"public static void InsertationSort(int[] data)\n {\n int key;\n // loop for select values from the array\n for(int i = 1; i <data.length;i++)\n {\n // key= select the value of index [i]\n key = data[i];\n // select the value that is Previous of the key to compare with.\n int j = i -1 ;\n // loop for comparing and sort, change the order of the values.\n while(j >= 0 && key < data[j])\n {\n data[j+1]=data[j];\n j--;\n }\n data[j+1]=key;\n }\n }",
"public static int[] doInsertionSort(int[] input){\n int temp;\n for (int i = 1; i < input.length; i++) {\n for(int j = i ; j > 0 ; j--){\n if(input[j] < input[j-1]){\n temp = input[j];\n input[j] = input[j-1];\n input[j-1] = temp;\n }\n }\n }\n return input;\n }",
"public static void insertionSort(int[] arr, int left, int right) {\n for (int i = left + 1; i <= right; i++){\n int temp = arr[i];\n int j = i - 1;\n while (j >= left && arr[j] > temp) {\n arr[j + 1] = arr[j];\n j--;\n }\n arr[j + 1] = temp;\n }\n }",
"public int[] insertionSort(int[] in) {\n\t\t\n\t\tint[] out = new int[in.length]; \t\t\t// make a copy of the array so it can be reused for all methods\n\t\tSystem.arraycopy(in, 0, out, 0, in.length);\n\t\t\n\t\tfor(int i = 1; i < out.length; i += 1) {\n\t\t\tint temp = out[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\t// Swap the integers as long the left is bigger then right, as long there is a left from scratch\n\t\t\twhile(j > 0 && out[j - 1] > temp) {\n\t\t\t\tout[j] = out[j - 1];\n\t\t\t\tj = j - 1;\n\t\t\t}\n\t\t\tout[j] = temp;\n\t\t}\n\t\treturn out;\n\t}",
"public static void insertionSort(int[] a) {\r\n\r\n int i; //pointer to item in unsorted list\r\n int j; //pointer to an item in sorted list\r\n int value; //the next value to be inserted into sorted list\r\n\r\n for (i = 1; i < a.length; i++) { // iterate for each item in unsorted list\r\n\r\n value = a[i]; //assigns value of element in list to be sorted\r\n j = i - 1; //assign j to be the last element in sorted list\r\n\r\n while (j >= 0 && (a[j] >= value)) {\r\n //if there are still elements in unsorted list \r\n //and if the value to be inserted is less than the the value at index\r\n a[j + 1] = a[j]; //copy element to the right\r\n j--; //increment to check value to the left\r\n }//end while --the array continues moving each element right\r\n a[j + 1] = value; //assign value to it's place \r\n }//end for loop\r\n }",
"@Test\n public void testSort(){\n InsertionSort sort = new InsertionSort();\n int arr[] = sort.shellInsertionSort(initArr());\n scan(arr);\n }",
"public void insertionSort(int[] nums) {\n\t\tif(nums.length<=1) return ;\n\t\tfor(int i=1;i<nums.length;i++) {\n\t\t\tint j=i;\n\t\t\twhile( j>=1 && less(nums[j],nums[j-1])) {\n\t\t\t\tswap(nums,j,j-1);\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\t}",
"private static void insertionSortArray(int[] arr) {\n\n int key,index;\n for( index=1;index<arr.length;index++){\n key=arr[index];\n for(int j=index-1; j>=0;j--){\n if(key<arr[j]){\n arr[index]=arr[j]; //swap\n arr[j]=key;\n index--; //since a[i] & a[j] are swapped, index of key(i) has to changed\n }else {\n break;\n }\n }\n }\n\n }",
"static void insertionSort(int array[]) {\n int n = array.length;\n //for key selection\n for (int i = 1; i < n; ++i) {\n int key = array[i];\n int j = i - 1;\n\n //Compare the key and elements of array, move greater elements to one position further \n while (j >= 0 && array[j] > key) {\n array[j + 1] = array[j];\n j = j - 1;\n\n }\n array[j + 1] = key;\n }\n\n }",
"public static void insertionSort(int[] array, int lo, int hi){\n for (int i = lo; i <= hi;i++){//loops through the subarray from left to right\n for (int j = i; j > 0;j--){//copy the current array pointer and start to move backwards from there\n if(array[j] < array[j-1]){//check if the current value is misplaced in relation to teh previous one\n int copy = array[j];//the next 3 lines of code are to swap\n array[j] = array[j-1];\n array[j-1] = copy;\n } else{break;}//if the position is correct than we break the loop\n }\n }\n }",
"private static int[] insertionSort(int[] arr) {\n\t\tif(null == arr || arr.length == 0 || arr.length == 1) {\n\t\t\treturn arr;\n\t\t}\n\t\tint i, j;\n\t\tint key = 0;\n\t\tfor(i =1; i<arr.length; i++) {\n\t\t\tkey = arr[i];\n\t\t\tj = i-1;\n\t\t\twhile(j>=0 && arr[j]>key) {\n\t\t\t\tarr[j+1] = arr[j];\n\t\t\t\tj = j-1;\n\t\t\t\t\n\t\t\t}\n\t\t\tarr[j+1] = key;\n\t\t}\n\t\treturn arr;\n\t}",
"public static void inserctionSort(int[] array, int low, int high) {\n for (int i = low; i < high; i++) {\n int x = i;\n int j = i - 1;\n for (; j >= low; j--) {\n if (array[j] > array[x]) {\n int k = array[x];\n array[x] = array[j];\n array[j] = k;\n x = j;\n } else break;\n }\n }\n }",
"public static void insertionSort(int[] arr, int left, int right) {\n\t\t int i, j, newValue;\n\t\t for (i = left; i <= right; i++) {\n\t\t\t\tnewValue = arr[i];\n\t\t\t\tj = i;\n\t\t\t\twhile (j > 0 && arr[j - 1] > newValue) {\n\t\t\t\t\t arr[j] = arr[j - 1];\n\t\t\t\t\t j--;\n\t\t\t\t}\n\t\t\t\tarr[j] = newValue;\n\t\t }\n\t}",
"public static void insertionSort(int[] arr) {\r\n\t\tfor (int scan = 1; scan < arr.length; scan++) {\r\n\t\t\tint temp = arr[scan];\r\n\t\t\t\r\n\t\t\tint pos = scan;\r\n\t\t\twhile (pos > 0 && arr[pos - 1] > temp) {\r\n\t\t\t\tarr[pos] = arr[pos - 1];\r\n\t\t\t\tpos--;\r\n\t\t\t}\r\n\t\t\tarr[pos] = temp;\r\n\t\t}\r\n\t}",
"private void insertionSort(T[] arr) {\n for (int i = 1; i < n; i++)\n for (int j = i; j > 0 && arr[j].compareTo(arr[j - 1]) < 0; j--) // we create the variable j to shift the element\n swap(arr, j, j - 1);\n }",
"public void insertionSort (Integer [] inNums)\n\t{\n\t\tnums = inNums.clone();\n\t\tfor (int i=0; i<nums.length; i++)\n\t\t{\n\t\t\tfor (int j=i; j>0; j--)\n\t\t\t{\n\t\t\t\t//System.out.println (\"i=\"+i+\"; j=\"+j);\n\t\t\t\tprint ();\n\t\t\t\t//if (nums[j] < nums[j-1])\n\t\t\t\tif (nums[j].compareTo (nums[j-1]) < 0)\n\t\t\t\t{\n\t\t\t\t\ttemp = nums[j-1];\n\t\t\t\t\tnums [j-1] = nums[j];\n\t\t\t\t\tnums[j]=temp;\n\t\t\t\t}\n\t\t\t\telse break;\n\t\t\t}\n\t\t}\n\t}",
"private static void InsertionSort(RandomVector v) {\n\t\tfor(int i = 1; i < v.size(); i++) {\n\t\t\t\n\t\t\t\n\t\t\tint j = 0, //start looking through sorted section from beginning\n\t\t\t\t\ttemp = v.get(i); //stash our current unsorted element\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tfor(j=0; j < i && v.get(j) <= v.get(i); j++){}\n\t\t\t\n\t\t\t//walk from one element to the left of i through to j to the left\n\t\t\tfor(int k = i-1; k >= j; k--){\n\t\t\t\t//move element at k one step to the right\n\t\t\t\tv.set(k+1, v.get(k));\n\t\t\t}\n\t\t//copy temp into element j\t\n\t\t\tv.set(j, temp);\n\t\t\tSystem.out.println(v);\n\t\t}\n\t\t\n\t}",
"public void InsertionSort(T[] arr)\n {\n for(int i = 1; i < arr.length; i++)\n {\n int j = i -1;\n T value = arr[i];\n\n while(j >= 0 && arr[j].compareTo(value) > 0)\n {\n arr[j + 1] = arr[j];\n j--;\n }\n arr[j+1] = value;\n }\n }",
"public static void insertionSort(double a[], int low, int high)\n {\n double value;\n int i, j;\n int size = high - low;\n\n for(i = low + 1; i < size; i++) {\n value = a[i];\n j = i;\n\n while(j > 0 && a[j-1] < value) {\n a[j] = a[j-1];\n j = j - 1;\n }\n a[j] = value;\n }\n }",
"public static void insertionSort(int[] arr)\n\t{\n\t\tint len=arr.length;\n\t\tfor(int i=1;i<len;i++){\n\t\t\tfor(int j=i;j>0&&arr[j]<arr[j-1];j--)\n\t\t\t{\n\t\t\t\tint temp=arr[j-1];\n\t\t\t\tarr[j-1]=arr[j];\n\t\t\t\tarr[j]=temp;\n\t\t\t}\n\t\t}\n\t}",
"public static void insertSort (int array[])\n {\n for (int i = 1; i < array.length; ++i)\n {\n int key = array[i];\n int j = i -1;\n\n while(j >= 0 && array[j] > key)\n {\n array[j + 1] = array[j];\n j = j - 1;\n }\n array[j+1] = key;\n }\n }",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int s = in.nextInt();\n int[] ar = new int[s];\n for(int i=0;i<s;i++){\n ar[i]=in.nextInt();\n }\n insertionSortPart2(ar);\n\n }",
"public int[] insertionSortInt(int[] input){\r\n\t for(int i=1;i<input.length;i++){\r\n\t\t for(int j=i;j>0;j--){\r\n\t\t\t if(input[j-1]>input[j]){\r\n\t\t\t\t\tinput[j-1]=input[j-1]+input[j];\r\n\t\t\t\t\tinput[j]=input[j-1]-input[j];\r\n\t\t\t\t\tinput[j-1]=input[j-1]-input[j];\r\n\t\t\t\t}\r\n\t\t }\r\n\t }return input;\r\n }",
"public void insertSorted(U x){\r\n\t \tif (x==null)\r\n\t \t\tthrow new IllegalArgumentException(\"X cannot be null\");\r\n\t \t\r\n\t \t//performs binary search\r\n\t \tint i = Arrays.binarySearch(array,0, getArraySize(), x);\r\n\t \tif (i < 0){\r\n\t\t \t//binarySearch() returns -(insertion point)-1\r\n\t\t \ti *= -1;\r\n\t\t \ti--;\r\n\t \t}\r\n\t \t//store last element\r\n\t \tint j = numElems;\r\n\t \t//enter loop(condition: > i)\r\n\t \twhile(j>i){\r\n\t \t\t//move element right\r\n\t \t\tarray[j]= array[j-1];//temp;\r\n\t \t\tj--;\r\n\t \t}\r\n\t \t//Set element at i\r\n\t \tarray[i] = x;\r\n\t \tnumElems++;\r\n\t }",
"public static void insertionSort(Comparable[] a) {\n\n for (int i = 1; i < a.length; i++) {\n for (int j = i; j > 0; j--) {\n if (less(a[j], a[j-1])) exch(a, j, j-1);\n else break;\n }\n }\n }",
"public static void insertionSortPart2(int[] ar)\n {\n for(int i = 1; i < ar.length; i++){\n for(int j = 0; j < i; j++){\n if(ar[i] <= ar[j]){\n int tmp = ar[i];\n ar[i] = ar[j];\n ar[j] = tmp;\n }\n }\n printArray(ar);\n }\n }",
"public void insertionSort(int[] sortList) {\r\n\t\tint n = sortList.length;\r\n\t\tfor (int j = 1; j < n && sortList[j] != -1; j++) {\r\n\t\t\tint key = sortList[j];\r\n\t\t\tint i = j - 1;\r\n\t\t\twhile ((i > -1) && (sortList[i] > key)) {\r\n\t\t\t\tsortList[i + 1] = sortList[i];\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t\tsortList[i + 1] = key;\r\n\t\t}\r\n\t}",
"private void testInsertionSort() {\n System.out.println(\"------ TESTING : insertionSort() ------\");\n try{\n iTestFileList.insertionSort(); // calling insertion sort function\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }",
"public static void main(String[] args)\r\n\t{\r\n\t\tlong start;//Start time\r\n\t\tlong end; //End time\r\n\t\tlong elapsedTime;//Elapsed time\r\n\r\n\t\tSystem.out.println(\"\\tList of Sorting Techniques :\");\r\n\t\tSystem.out.println(\"\\t============================\");\r\n\t\tSystem.out.println(\"1.Binary Search Method for Integer.\");\r\n\t\tSystem.out.println(\"2.Binary Search Method for String.\");\r\n\t\tSystem.out.println(\"3.Insertion Sort Method for Integer.\");\r\n\t\tSystem.out.println(\"4.Insertin Sort Method for String.\");\r\n\t\tSystem.out.println(\"5.Bubble Sort Method for Integer.\");\r\n\t\tSystem.out.println(\"6.Bubble Sort Method for String.\");\r\n\r\n\t\tSystem.out.print(\"Enter You Choice : \");\r\n\t\tint choice = Utility.getInt();\r\n\t\t/**\r\n\t\t * getting user choice and responding \r\n\t\t */\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"\\tYou Chosed Binary Search Technique for Integer..!\");\r\n\t\t\tSystem.out.println(\"Process Started..!\");\r\n\t\t\tstart=System.currentTimeMillis();\r\n\r\n\t\t\tSystem.out.print(\"Enter the size of an Array : \");\r\n\t\t\tint []arr=Utility.createIntArr();\r\n\t\t\tUtility.bubbleSortInt(arr);\r\n\r\n\t\t\tSystem.out.print(\"Enter the element you want to search : \");\r\n\t\t\tint searchInt=Utility.getInt();\r\n\r\n\t\t\tint searchedIndex=Utility.binarySearchInt(arr, 0, arr.length-1, searchInt);\r\n\t\t\tif(searchedIndex!=-1)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"The searched Element \"+searchInt+\" Present in : \"+searchedIndex);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Not Found..!\");\r\n\t\t\t}\r\n\t\t\tend=System.currentTimeMillis();\r\n\t\t\tSystem.out.println(\"Process End..!\");\r\n\t\t\telapsedTime=(end-start)/1000;\r\n\t\t\tSystem.out.println(\"Elapsed Time is : \"+elapsedTime+\"seconds\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"\\tYou Chosed Binary Search Technique for String..!\");\r\n\t\t\tSystem.out.println(\"Process Started..!\");\r\n\t\t\tstart=System.currentTimeMillis();\r\n\r\n\r\n\r\n\t\t\tString []strArr=Utility.createStrArr();\r\n\t\t\tUtility.stringBubbleSort(strArr);\r\n\t\t\tSystem.out.print(\"Enter the element you want to search : \");\r\n\t\t\tString search=Utility.getWord();\r\n\t\t\tint strSearchedIndex=Utility.stringBinarySearch(strArr, 0, search.length()-1, search);\r\n\r\n\t\t\tif(strSearchedIndex!=-1)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"The searched Element \"+search+\" Present in : \"+strSearchedIndex);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Not Found..!\");\r\n\t\t\t}\r\n\t\t\tend=System.currentTimeMillis();\r\n\t\t\tSystem.out.println(\"Process End..!\");\r\n\t\t\telapsedTime=(end-start)/1000;\r\n\t\t\tSystem.out.println(\"Elapsed Time is : \"+elapsedTime+\"seconds\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"\\tYou Chosed Insertion Sort Technique for Integer..!\");\r\n\t\t\tSystem.out.println(\"Process Started..!\");\r\n\t\t\tstart=System.currentTimeMillis();\r\n\r\n\t\t\tSystem.out.print(\"Enter the size of an array : \");\r\n\t\t\tint[] createIntArr = Utility.createIntArr();\r\n\r\n\t\t\tSystem.out.println(\"Unsorted Array Integers \");\r\n\t\t\tSystem.out.println(\"=======================\");\r\n\t\t\tUtility.displayArr(createIntArr);\r\n\r\n\t\t\tSystem.out.println(\"Sorted Integer Array\");\r\n\t\t\tUtility.insertionSortInt(createIntArr);\r\n\t\t\tUtility.displayArr(createIntArr);\r\n\r\n\t\t\tend=System.currentTimeMillis();\r\n\t\t\tSystem.out.println(\"Process End..!\");\r\n\r\n\t\t\telapsedTime=(end-start)/1000;\r\n\t\t\tSystem.out.println(\"Elapsed Time is : \"+elapsedTime+\"seconds\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"\\tYou Chosed Insertion Sort Technique for String..!\");\r\n\t\t\tSystem.out.println(\"Process Started..!\");\r\n\t\t\tstart=System.currentTimeMillis();\r\n\t\t\tString[] createStrArr = Utility.createStrArr();\r\n\r\n\t\t\tSystem.out.println(\"Unsorted Array Strings \");\r\n\t\t\tSystem.out.println(\"======================\");\r\n\t\t\tUtility.displayStrArr(createStrArr);\r\n\r\n\t\t\tSystem.out.println(\"Sorted String Array\");\r\n\t\t\tUtility.stringInsertionSort(createStrArr);\r\n\t\t\tUtility.displayStrArr(createStrArr);\r\n\r\n\t\t\tend=System.currentTimeMillis();\r\n\t\t\tSystem.out.println(\"Process End..!\");\r\n\r\n\t\t\telapsedTime=(end-start)/1000;\r\n\t\t\tSystem.out.println(\"Elapsed Time is : \"+elapsedTime+\"seconds\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 5:\r\n\t\t\tSystem.out.println(\"\\tYou Chosed Bubble Sort technique for Integer..!\");\r\n\t\t\tSystem.out.println(\"Process Started..!\");\r\n\t\t\tstart=System.currentTimeMillis();\r\n\r\n\t\t\tSystem.out.print(\"Enter the size of an array : \");\r\n\t\t\tint[] createIntArr2 = Utility.createIntArr();\r\n\r\n\t\t\tSystem.out.println(\"Unsorted Array Integers \");\r\n\t\t\tSystem.out.println(\"=======================\");\r\n\t\t\tUtility.displayArr(createIntArr2);\r\n\r\n\t\t\tSystem.out.println(\"Sorted Integer Array\");\r\n\t\t\tUtility.bubbleSortInt(createIntArr2);\r\n\t\t\tUtility.displayArr(createIntArr2);\r\n\r\n\t\t\tend=System.currentTimeMillis();\r\n\t\t\tSystem.out.println(\"Process End..!\");\r\n\r\n\t\t\telapsedTime=(end-start)/1000;\r\n\t\t\tSystem.out.println(\"Elapsed Time is : \"+elapsedTime+\"seconds\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase 6:\r\n\t\t\tSystem.out.println(\"\\tYou Chosed Bubble Sort Technique for String..!\");\r\n\t\t\tSystem.out.println(\"Process Started..!\");\r\n\t\t\tstart=System.currentTimeMillis();\r\n\t\t\tString[] createStrArr2 = Utility.createStrArr();\r\n\r\n\t\t\tSystem.out.println(\"Unsorted Array Strings \");\r\n\t\t\tSystem.out.println(\"======================\");\r\n\t\t\tUtility.displayStrArr(createStrArr2);\r\n\r\n\t\t\tSystem.out.println(\"Sorted String Array\");\r\n\t\t\tUtility.stringInsertionSort(createStrArr2);\r\n\t\t\tUtility.displayStrArr(createStrArr2);\r\n\r\n\t\t\tend=System.currentTimeMillis();\r\n\t\t\tSystem.out.println(\"Process End..!\");\r\n\r\n\t\t\telapsedTime=(end-start)/1000;\r\n\t\t\tSystem.out.println(\"Elapsed Time is : \"+elapsedTime+\"seconds\");\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"You Chosed Wrong Option..!\");\r\n\t\t\r\n\t\t}\r\n\t}",
"static void insertionSort(int[] A) {\n\t // Sort the array A into increasing order.\n\t \n\t int itemsSorted; // Number of items that have been sorted so far.\n\n\t for (itemsSorted = 1; itemsSorted < A.length; itemsSorted++) {\n\t // Assume that items A[0], A[1], ... A[itemsSorted-1] \n\t // have already been sorted. Insert A[itemsSorted]\n\t // into the sorted part of the list.\n\t \n\t int temp = A[itemsSorted]; // The item to be inserted.\n\t int loc = itemsSorted - 1; // Start at end of list.\n\t \n\t while (loc >= 0 && A[loc] > temp) {\n\t A[loc + 1] = A[loc]; // Bump item from A[loc] up to loc+1.\n\t loc = loc - 1; // Go on to next location.\n\t }\n\t \n\t A[loc + 1] = temp; // Put temp in last vacated space.\n\t }\n\t}",
"Vector<NewsArticle> insertionSort(Vector<NewsArticle> articles) {\n int i, j;\n int size = articles.size();\n NewsArticle sortedList[] = new NewsArticle[articles.size()];\n\n articles.copyInto(sortedList);\n NewsArticle temp;\n\n for (i = 1; i < size; i++) {\n temp = sortedList[i];\n\n j = i;\n while ((j > 0) && (sortedList[j - 1].getScore(filterType) < temp.getScore(filterType))) {\n sortedList[j] = sortedList[j - 1];\n j = j - 1;\n }\n sortedList[j] = temp;\n }\n Vector<NewsArticle> outList = new Vector<NewsArticle>();\n\n for (i = 0; i < size; i++) {\n temp = sortedList[i];\n outList.addElement(temp);\n }\n return outList;\n }",
"public void insertionSort() {\n Comparable p = (Comparable) array[0];\n Comparable[] sorted = new Comparable[array.length];\n sorted[0] = p;\n for (int i = 0; i < array.length - 1; i++) {\n if (p.compareTo(array[i + 1]) < 0) {\n p = (Comparable) array[i + 1];\n sorted[i + 1] = p;\n } else {\n Comparable temp = (Comparable) array[i + 1];\n int j = i;\n while (j >= 0 && sorted[j].compareTo(array[i + 1]) > 0) {\n j--;\n }\n for (int q = i; q > j; q--) {\n sorted[q + 1] = sorted[q];\n }\n sorted[j + 1] = temp;\n }\n }\n this.array = (T[]) sorted;\n }",
"public int insertionSort()\n {\n // initialize the number of sort checks to 0\n int numSortChecks = 0;\n\n /** FOR INSERTION SORT, EPUT YOUR CODE HERE **/\n\n // Loop through the array of cards ... put each one in the heap\n // add to the heap ... increase the number of sort checks based\n // on the number returned from myCardHeap.add( )\n\n // Loop over all the card in the heap, keep a counter as to which card \n // number we are on\n // use extractMin() to remove a card from the heap\n // place this card into the array at the appropriate position.\n // iuncrement the numChecks variable\n\n return numSortChecks;\n }",
"private static <E extends Comparable<? super E>> void insertionSort(\r\n\t\t\tComparable<E>[] data, int left, int right,\r\n\t\t\tComparator<Comparable<E>> comp) {\r\n\t\tint j;\r\n\t\tfor (int p = left + 1; p < right + 1; p++) {\r\n\t\t\tComparable<E> tmp = (Comparable<E>) data[p];\r\n\t\t\tfor (j = p; j > left && comp.compare(tmp, data[j - 1]) < 0; j--) {\r\n\t\t\t\tdata[j] = data[j - 1];\r\n\t\t\t}\r\n\t\t\tdata[j] = tmp;\r\n\t\t}\r\n\t}",
"public String[] insertionSort(String[] in) {\n\t\tString[] out = new String[in.length]; // create a copy so I can reuse the array, not sure that's necessary with the junit test but I'll keep it\n\t\tSystem.arraycopy(in, 0, out, 0, in.length);\n\t\t\n\t\tfor (int i = 1; i < out.length; i += 1){\n\t\t\tString temp = out[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\t//swap strings like the int insertionSort\n\t\t\twhile(j > 0 && out[j - 1].compareTo(temp) > 0) {\n\t\t\t\tout[j] = out[j - 1];\n\t\t\t\tj = j - 1;\n\t\t\t}\n\t\t\tout[j] = temp;\n\t\t}\n\t\treturn out;\n\t}",
"public static int[] insertionSort(int[] inputArray){\n for (int i = 1; i < inputArray.length; i++){\n int check = inputArray[i];\n int j = i -1;\n\n while (j >= 0 && inputArray[j] > check){\n inputArray[j + 1] = inputArray[j];\n j = j -1; \n }\n inputArray[j + 1] = check;\n }\n return inputArray;\n }",
"private boolean insetrionSort(E[] aList, int left, int right) {\n\t\t\n\t\tfor(int i=(right-1); i >= left; i--) {\n\t\t\tE insertedElement = aList[i];\n\t\t\tint j = i + 1;\n\t\t\twhile(this.compare(aList[j], insertedElement) < 0) {\n\t\t\t\taList[j-1] = aList[j];\n\t\t\t\tj++;\n\t\t\t}\n\t\t\taList[j-1] = insertedElement;\n\t\t}\n\t\treturn true;\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate static <E extends Comparable<? super E>> void insertionSort(\r\n\t\t\tComparable<E>[] data, int left, int right) {\r\n\r\n\t\tint j;\r\n\t\tfor (int p = left + 1; p < right + 1; p++) {\r\n\t\t\tComparable<E> tmp = (Comparable<E>) data[p];\r\n\t\t\tfor (j = p; j > left && tmp.compareTo((E) data[j - 1]) < 0; j--) {\r\n\t\t\t\tdata[j] = data[j - 1];\r\n\t\t\t}\r\n\t\t\tdata[j] = tmp;\r\n\t\t}\r\n\t}",
"public static int[] insertionSort(int[] array)\r\n {\n for (int i = 1; i < array.length; i++)\r\n {\r\n // during each iteration as we travel to the right of the array, we\r\n // first need to set our iterator that will move back to the left\r\n // as we find the correct place to put the item we are inserting\r\n // into the left side of the array. Since we know that at this point\r\n // everything to the left of index i is already sorted, we want our\r\n // new item to be inserted to be the first element to the right of \r\n // the sorted section, which is at array[i].\r\n int j = i;\r\n \r\n // now we start moving our backwards iterator, j, to the left one\r\n // array slot at a time. During each iteration we'll check to see\r\n // if the item at array[j] is less than array[j-1], or the item to\r\n // the left. If it is then we swap them and compare again with the\r\n // next item to the left. We repeat this process until we either\r\n // find that array[j] is greater than or equal to the item to the\r\n // left, or that we reach the far left side of the array.\r\n while (j > 0 && array[j] < array[j-1])\r\n {\r\n // create a temp variable to allow us to swap array[j] with\r\n // array[j-1] and then swap the two.\r\n int temp = array[j];\r\n array[j] = array[j-1];\r\n array[j-1] = temp;\r\n \r\n j--;\r\n }\r\n }\r\n \r\n return array;\r\n }",
"public static void main(String[] args) {\n\r\n\t\tint[] a;\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.bubble(a);\r\n\r\n\t\tSystem.out.println(\"BubbleSort: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.selection(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nSelection: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.insertion(a);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nInsertion: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.mergeSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nMerge: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.quickSort(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t\ta= new int[] {2,8,3,6,2,7,1,9,6,8};\r\n\r\n\t\tSort.qs(a, 0, a.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\nQuick1: \\n\");\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\t\t\r\n\t}",
"public ListNode insertionSortList(ListNode head) {\n\n ListNode helper = new ListNode(0);\n ListNode pre = helper;\n ListNode cur = head;\n while(cur!=null) {\n\n while(pre.next.val < cur.val){ //keep looking until find right place\n ;\n }\n }\n return null;\n }",
"public static int[] insert(int x, int[] a) {\n Arrays.sort(a);\n a = Arrays.copyOf(a, a.length + 1);\n if (a[a.length - 2] <= x) {\n a[a.length - 1] = x;\n } else {\n int i = a.length - 2;\n while ((i + 1 > 0) && (x < a[i])) {\n a[i+1] = a[i];\n i--;\n }\n a[i+1] = x;\n }\n return a;\n}",
"public void insertionStringSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && AL.get(possibleIndex - 1).toString().compareTo(temp.toString())>0)\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }",
"public void selectionSort(int[] x)\n {\n for (int i = 0; i < x.length-1; i++) {\n int minIndex = i;\n for (int j = i+1; j < x.length; j++) {\n if (x[minIndex] > x[j]) {\n minIndex = j;\n }\n }\n int temp = x[i];\n x[i] = x[minIndex];\n x[minIndex] = temp;\n }\n \n public void replaceFirst(int oldVal, int newVal)\n {\n \n }\n}",
"public static String[] insertionSort(String[] list){\n for (int i=1; i<list.length; i++){\r\n //use a variable a to temporarily store the index of the current item\r\n int a = i;\r\n //loop through comparisons with items before it until it reaches an item that is smaller than it\r\n while(list[a].compareTo(list[a-1])<0){\r\n //when item before it is larger, use a temporary string variable to store the current item's value\r\n String temp = list[a];\r\n list[a]=list[a-1];//give list[a] the value of the list[a-1]\r\n list[a-1]=temp;//give list[a-1] the value that is stored in the temporary\r\n a-=1;\r\n if(a==0)\r\n break;\r\n }\r\n }\r\n return list;\r\n }",
"@Test(timeout = SHORT_TIMEOUT)\n public void testTinyInsertionSort() {\n //size-0 arr\n toSort = new IntPlus[0];\n sortedInts = cloneArr(toSort);\n Sorting.insertionSort(sortedInts, comp);\n\n assertArrayEquals(toSort, sortedInts); //Sort can't rearrange anything\n\n //size-1 arr\n toSort = new IntPlus[1];\n toSort[0] = new IntPlus(42);\n sortedInts = cloneArr(toSort);\n Sorting.insertionSort(sortedInts, comp);\n\n assertArrayEquals(toSort, sortedInts); //Sort can't rearrange anything\n }",
"public static void insertionSort2(IntList l) {\n\t\tIntListEntry input = l.getFirst();\n\t\tl1:\twhile (input != null) {\n\t\t\tfor (IntListEntry e = l.getFirst(); e != input; e = e.getNext())\n\t\t\t\tif (e.getItem() > input.getItem()) {\n\t\t\t\t\tIntListEntry next = input.getNext();\n\t\t\t\t\tl.delete(input);\n\t\t\t\t\tl.insertBefore(input, e);\n\t\t\t\t\tinput = next;\n\t\t\t\t\tcontinue l1;\n\t\t\t\t}\n\t\t\tinput = input.getNext();\n\t\t}\n\t}",
"public static void InsertionSort(int[] array) {\n for (int i=0; i<array.length; i++) {\n int cur_element = array[i];\n int j = i - 1;\n while (j >= 0 && array[j] > cur_element) {\n array[j+1] = array[j];\n j--;\n }\n array[j+1] = cur_element;\n }\n }",
"private boolean insertSort(Process processToInsert, int leftBound, int rightBound)\n {\n\n int midpoint = (rightBound+leftBound)/2;\n Process processAtMidpoint = readyQueue.get(midpoint);\n\n int compareResult = compare(processToInsert, processAtMidpoint);\n if(compareResult < 0)\n {\n if(leftBound == rightBound) {\n readyQueue.add(leftBound, processToInsert);\n return true;\n }\n return insertSort(processToInsert, leftBound, midpoint);\n }\n else if(compareResult > 0)\n {\n if(leftBound == rightBound) {\n readyQueue.add(leftBound+1, processToInsert);\n return true;\n }\n return insertSort(processToInsert, midpoint+1, rightBound);\n }\n else\n {\n readyQueue.add(midpoint+1, processToInsert);\n return true;\n }\n\n }",
"public static void insertionSort(int[] array) {\n for (int i = 1; i < array.length; i++) {\n int temp = array[i];\n int j = i;\n /**\n * Compare the variable temp with each element on the right until a larger element than it is found.\n */\n while (j > 0 && temp > array[j - 1]) {\n array[j] = array[j - 1];\n j--;\n }\n /**\n * Places temp before the element smaller than it\n */\n array[j] = temp;\n }\n }",
"private static void sortUsingInsertionSort(int[] array, int k) {\n \n for(int i = 1; i < array.length; ++i) {\n int j = 0;\n while (array[j] < array[i]) {\n j++;\n }\n \n int temp = array[j];\n array[j] = array[i];\n array[i] = temp;\n }\n \n PrintUtil.printArray(array, \"Sorted Array\");\n }",
"private static void insertion(int[] a){\n int size = a.length;\n int key = 0;\n \n for(int i = 1; i < size; i++){\n key = a[i];\n for(int j = i-1; j >= 0 && key < a[j]; j--){\n a[j+1] = a[j];\n a[j] = key;\n }\n }\n }",
"private void merge_sort( ArrayList<Type> array, ArrayList<Type> auxillary, int low, int high ){\n\t\tif((high-low)>switchOff){\n\t\t\tint middle=low+((high-low)/2);\n\t\t\tmerge_sort(array,auxillary,low,middle);\n\t\t\tmerge_sort(array,auxillary,middle+1,high);\n\t\t\tcombine(array,auxillary,low,middle,high);\n\t\t}else{\n\t\t\tSort_Utils.insertion_sort(array, low, high);\n\t\t}\n\t}",
"private void merge_sort( ArrayList<Type> array, ArrayList<Type> auxillary, int low, int high )\r\n\t{\r\n\t\t// base case\r\n\t\tif ((high - low) <= switchValue)\r\n\t\t{\r\n\t\t\tSort_Utils.insertion_sort(array, low, high);\r\n\t\t}\r\n\t\t\r\n\t\tif (low < high)\r\n\t\t{\r\n\t\t\tint middle = low + (high - low)/2;\r\n\t\t\t\r\n\t\t\t// recursively sort the two halves of the array\r\n\t\t\tmerge_sort(array, auxillary, low, middle);\r\n\t\t\tmerge_sort(array, auxillary, middle + 1, high);\r\n\t\t\tcombine(array, auxillary, low, middle, high);\r\n\t\t}\r\n}",
"public static void insertionSort(int data[], int order) {\n for (int i = 1; i < data.length; i++) {\n int j = i;\n int k = i - 1;\n while (k >= 0) {\n if (data[j] < data[k]) {\n int temp = data[j];\n data[j] = data[k];\n data[k] = temp;\n j = k;\n k--;\n }\n else\n break;\n }\n }\n }",
"public static void main(String[] args) {\n\t\tInsertionSort in = new InsertionSort();\n\t\t\n//\t\tint a[] = {2, 4, 1};\n//\t\tint a[] = {2};\n\t\tint a[] = {1, 2, 9, 1, 8};\n//\t\tin.straightInsertionSort(a);\n\t\tin.shellSort(a);\n\t\t\n\t\tPrint.printArray(a);\n\t}",
"private static void insertionSort(int[] array, int n) {\n \t\n \tfor (int index = 1; index < n; index++) {\n \t\tint temp = array[index];\n \t\tint j = index;\n\n\t\t\tint finalPosition = binarySearch(array, temp, 0, j - 1);\n\n \t\twhile (j > finalPosition) {\n \t\t\tarray[j] = array[j - 1];\n \t\t\tj -= 1;\n \t\t}\n \t\tarray[j] = temp;\n \t}\n }",
"public void insertionSort(ArrayList <Integer> list){\n System.out.println();\n System.out.println(\"Insertion Sort\");\n System.out.println();\n\n int current = 0;\n int len = list.size();\n for (int n = 1; n < len; n++) {\n current = list.get(n);\n int j = n - 1;\n while (j >= 0 && list.get(j) > current) {\n list.set(j + 1, list.get(j));\n j = j - 1;\n }\n list.set(j + 1, current);\n }\n }",
"public int searchInsert(int[] A, int target) {\n if (A.length == 0 || A == null) {\n return -1;\n }\n if (target < A[0]) {\n return 0;\n }\n\n int start = 0;\n int end = A.length - 1;\n int mid;\n\n // Binary search:\n while ((start + 1) < end) {\n mid = start + (end - start) / 2;\n if (A[mid] == target) {\n return mid;\n } else if (A[mid] < target) {\n start = mid;\n } else if (A[mid] > target) {\n end = mid;\n }\n }\n\n // Now that target should be\n // 1.equals start or end. Then the index of start/end should be returned\n if (A[start] == target) {\n return start;\n }\n if (A[end] == target) {\n return end;\n }\n // 2. larger than end. Then it should be inserted after end. So index is end + 1.\n if (A[end] < target) {\n return end + 1;\n }\n // 3. larger than start but smaller than end. Should be inserted after start. So index is start + 1.\n return start + 1;\n }",
"public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t int s = in.nextInt();\n\t int[] ar = new int[s];\n\t \n\t for(int i=0;i<s;i++){\n\t ar[i]=in.nextInt(); \n\t }\n\t \n\t long start = System.nanoTime();\n\t sort(ar);\n\t long end = System.nanoTime();\n\t \n\t long duration = (end-start);\n\t \n\t \n\t \n\t\tSystem.out.println(\"The Insertion sort was completed in \"+duration +\" nanoseconds\");\n\t\tprintArray(ar);\n\t}",
"static double [] insertionSort (double a[]){\r\n //todo: implement the sort\r\n \tif(a==null){ //could be length\r\n \t\tSystem.out.print(\"Array empty\");\r\n \t\treturn null;\r\n \t}\r\n \tfor(int i = 1; i <a.length; i++) {\r\n \t\tdouble current = a[i];\r\n \t\tint j = i;\r\n \t\twhile(j>0 && a[j-1]> current) {\r\n \t\t\ta[j] =a[j-1];\r\n \t\t\tj--;\r\n \t\t} \r\n \t\ta[j]=current;\r\n \t}\r\n \treturn a;\r\n }",
"public static int searchInsert(int[] nums, int target) {\n if(target< nums[0])\n return 0;\n if(target>nums[nums.length-1])\n return nums.length;\n int l=0, mid, h=nums.length-1;\n while(l<nums.length && h<nums.length && l<=h) {\n mid = l+(h-l)/2;\n if(nums[mid]==target)\n return mid;\n else if(target<nums[mid])\n h=mid-1;\n else if(target>nums[mid])\n l=mid+1;\n }\n if(nums[l]>target)\n return l;\n else\n return l+1;\n }",
"public void radixSorting() {\n\t\t\n\t}",
"public void insertionSort(ArrayList <Comparable> list){\r\n\t\tsteps += 2; //init, check condition\r\n\t\tfor (int i = 1 ; i < list.size(); i++){\r\n\t\t\tsteps ++; //=\r\n\t\t\tint j = i;\r\n\t\t\tsteps += 7; //-, >, get(), compareTo(), get(), -, <\r\n\t\t\twhile ((j - 1 > 0) && (list.get(j).compareTo(list.get(j - 1)) > 0)){\r\n\t\t\t\tsteps += 3; // swap(), -, --\r\n\t\t\t\tswap(list, j, j - 1);\r\n\t\t\t\tsteps += 5;\r\n\t\t\t\tj--;\r\n\t\t\t\tsteps += 7; //-, >, get(), compareTo(), get(), -, <\r\n\t\t\t}\r\n\t\t\tsteps += 2; //increment, check condition\r\n\t\t}\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Insertion Sort\");\r\n\t\tSystem.out.println();\r\n\t}",
"public String[] insertionSortString(String[] input){\r\n\t\tString temp=\"\";\r\n\t\tfor(int i=1;i<input.length;i++){\r\n\t\t\tfor(int j=i;j>0;j--){\r\n\t if(input[j-1].compareTo(input[j])>0){\r\n\t \t temp=input[j-1];\r\n\t \t input[j-1]=input[j];\r\n\t \t input[j]=temp;\r\n\t }\r\n\t\t\t}\r\n\t\t}return input;\r\n\t}",
"public int[] InsertionSort(int[] A) {\n int n = A.length;\n for(int k = 0; k < n; k++) {\n if(k == minimum) {\n int temp = A[k];\n A[k] = A[0];\n A[0] = temp;\n }\n }\n for(int i = 1; i < n; ++i) {\n int key = A[i];\n int j = i - 1;\n while(j >= minimum && A[j] > key) {\n A[j + 1] = A[j];\n j = j - 1;\n } \n A[j + 1] = key; \n }\n return A;\n }",
"public static void insertIntoSorted(int[] ar) {\n int index = ar.length-1;\n int val = ar[index];\n while(index > 0){\n for(int i = ar.length-2; i >=0; i--) {\n if(ar[i] >= val) {\n ar[i+1] = ar[i];\n printArray(ar);\n\n }else if(ar[i] < val && ar[i+1] > val){\n ar[i+1] = val;\n printArray(ar);\n }\n }\n if(ar[0] >= val){\n ar[0] = val;\n printArray(ar);\n }\n index--;\n val = ar[ar.length-1];\n }\n }",
"public static void main(String[] args) {\n\r\n\t\tint[] a = { 1, 8, 20, 5, 4, 9 };\r\n\t\tinsertSort(a);\r\n\t\tSystem.out.println(Arrays.toString(a));\r\n\t}",
"public void insertionNumberSortDouble()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && Double.parseDouble(AL.get(possibleIndex - 1).toString()) < Double.parseDouble(temp.toString()))\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }",
"public void insertionSort(ArrayList<T> arr, int p, int r) {\n\t}",
"public static <T extends Comparable<? super T>> void insertionSort(List<T> list){\n int size = list.size();\n if(size > 1){\n for(int i = 0; i < size; i++){\n int sortedSideIndex = i;\n while(sortedSideIndex > 0 && list.get(sortedSideIndex - 1).compareTo(list.get(sortedSideIndex)) > 0){\n swap(list, sortedSideIndex, sortedSideIndex - 1);\n sortedSideIndex--;\n }\n }\n }\n }",
"private static void sort(String[] a, int lo, int hi, int d) { \n if (hi <= lo + CUTOFF) {\n insertion(a, lo, hi, d);\n return;\n }\n int lt = lo;\n int gt = hi;\n int v = charAt(a[lo], d);\n int i = lo + 1;\n while (i <= gt) {\n int t = charAt(a[i], d);\n if (t < v) {\n \texch(a, lt++, i++);\n }\n else if (t > v) {\n \texch(a, i, gt--);\n }\n else {\n \ti++;\n }\n }\n //a[lo..lt-1] < v = a[lt..gt] < a[gt+1..hi]. \n sort(a, lo, lt-1, d);\n if (v >= 0) sort(a, lt, gt, d+1);\n sort(a, gt+1, hi, d);\n }",
"private void insertionSort(ArrayList<ArrayList<Piece>> combinations2) {\n for (int index = 1; index < combinations2.size(); index++) {\n ArrayList<Piece> compareWord = combinations2.get(index);\n\n int lowerIndex = index-1;\n\n while (lowerIndex >=0 && compareWord.size()<combinations2.get(lowerIndex).size()){\n combinations2.set(lowerIndex+1, combinations2.get(lowerIndex));\n lowerIndex--;\n }\n\n combinations2.set(lowerIndex+1,compareWord);\n }\n }",
"static void insertIntoSorted(int ar[]) {\n\n\t\tint valueToInsert, holePosition;\n\n\t\tfor (int i = ar.length - 1; i > 0; i--) {\n\n\t\t\tvalueToInsert = ar[i];\n\t\t\tholePosition = i;\n\n\t\t\twhile (holePosition < ar.length\n\t\t\t\t\t&& ar[holePosition - 1] > valueToInsert) {\n\t\t\t\tar[holePosition] = ar[holePosition - 1];\n\t\t\t\tholePosition -= 1;\n\n\t\t\t\tdisplaySteps(ar);\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (holePosition == 0) {\n\t\t\t\t\tif (ar[holePosition] > valueToInsert) {\n\t\t\t\t\t\tar[holePosition] = valueToInsert;\n\t\t\t\t\t\tdisplaySteps(ar);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tar[holePosition] = valueToInsert;\n\t\t\tif (i == 1 && holePosition != 0) {\n\t\t\t\tdisplaySteps(ar);\n\t\t\t}\n\n\t\t}\n\t}",
"public void sort(T[] arr, T[] aux, int begin, int end){\n\n if(end-begin < 7){\n insertionSort(arr, begin, end);\n return;\n }\n\n int mid = (begin+end)/2;\n\n sort(arr, aux, begin, mid);\n sort(arr, aux, mid+1, end);\n\n if(arr[mid].compareTo(arr[mid+1]) != 1){\n return;\n }else{\n merge(arr, aux, begin, mid, end);\n }\n }",
"public static void main(String[] args) {\n\t\t\n int array[] = {20,50,10,43,543,-43,-42,-245,5,21,5,1010};\n \n for(int firstUnsortedIndex = 1; firstUnsortedIndex < array.length; firstUnsortedIndex++) {\n \t\n \tint newElement = array[firstUnsortedIndex]; //storing the element of the unsorted array temporary to newElement\tin case we need to overwrite\n \n \tint i;\n \t//we want to keep looking for the insertion position as long as we havent hit the front of the array\n \tfor(i = firstUnsortedIndex; (i > 0 && array[i-1] > newElement); i--) {\n \t\tarray[i] = array[i-1];\n \t}\n \t\n \tarray[i] = newElement;\n }\n \n printer(array);\n \n\t}",
"public static void merge(int[] a, int[] temp, int low, int mid, int high) {\r\n // low is the low index of the part of the array to be sorted\r\n // high is the high index of the part of the array to be sorted\r\n // mid is the middle of the array – last item in low half\r\n\r\n // copy the two sets from a[] to the same locations in the temporary array\r\n for (int i = low; i <= high; i++) {\r\n temp[i] = a[i];\r\n }\r\n //set up necessary pointers\r\n int lowP = low; // pointer to current item in low half\r\n int highP = mid + 1; // pointer to current item in high half\r\n int aP = low; // pointer to where each item will be put back in a[]\r\n // while the pointers have not yet reached the end of either half\r\n while ((lowP <= mid) && (highP <= high)) {\r\n // if current item in low half <= current item in high half\r\n if (temp[lowP] <= temp[highP]) {\r\n // move item at lowP back to array a and increment low pointer\r\n a[aP] = temp[lowP];\r\n lowP++;\r\n } else {\r\n // move item at highP back to array a and increment high pointer\r\n a[aP] = temp[highP];\r\n highP++;\r\n } // end if..else\r\n\r\n // increment pointer for location in original array\r\n aP++;\r\n } // end while\r\n // if lowP is at end of low half, then low half is done, move rest of high half.\r\n if (lowP > mid) {\r\n for (int i = highP; i <= high; i++) {\r\n a[aP] = temp[i]; //\r\n aP++;\r\n } // end for\r\n } else // high half is done, move rest of low half\r\n {\r\n for (int i = lowP; i <= mid; i++) {\r\n a[aP] = temp[i];\r\n aP++;\r\n }// end for\r\n }\r\n//\r\n }",
"public static void insertionSort(int[] array) {\n\n int saveElement;\n int i;\n\n for (int iNextEl = 1; iNextEl < array.length; iNextEl++) {\n saveElement = array[iNextEl]; // 1 - SAVE NEXT ELEMENT\n\n i = iNextEl;\n while ((i > 0) && (array[i - 1] > saveElement)) { // 2 - SHIFT LOOP\n array[i] = array[i - 1];\n i--;\n }\n array[i] = saveElement; // 3 - PUT SAVED ELEMENT BACK\n }\n }",
"public static <E extends Comparable<E>> E[] insertionsort(E[] arr){\n\t\tfor(int i=0;i<arr.length;i++){\n\t\t\tE key = arr[i];\n\t\t\tboolean flag = false;\n\t\t\tE temp = arr[i];\n\t\t\tfor(int j=0;j<=i;j++){\n\t\t\t\tif(!flag && key.compareTo(arr[j]) <=0){\n\t\t\t\t\tflag = true;\n\t\t\t\t\ttemp = key;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tE t = arr[j];\n\t\t\t\t\tarr[j] = temp;\n\t\t\t\t\ttemp = t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}",
"public static void insertSort(int[] a, int n){\n // 插入排序,把数组分为已排序区和未排序区,依次把未排序中的元素插入的已排序中\n\n for (int i = 1; i < n ; ++i){\n // 遍历已排序区,找到已排序中符合要求的位置\n // value 待插入的数据\n int value = a[i];\n // j = 已排序的区间索引前一位\n int j = i-1;\n for (;j>=0;--j){\n\n // System.out.printf(\"\\n[%s : %s]\", Arrays.stream(a).boxed().collect(Collectors.toList()).subList(0,i).toString(),Arrays.stream(a).boxed().collect(Collectors.toList()).subList(i,n).toString());\n if (a[j] > value){\n // 大于待插入的数据的都自觉往后移动一位\n a[j+1] = a[j];\n move++;\n }else {\n // 中止 当前j为目标位置\n break;\n }\n }\n a[j+1] = value;\n }\n }",
"public static void main(String[] args) {\n\n int arr[]= {3, 4, 5, 7, 9, 1, 2};\n int arr2[]= {7,72,90, 21 ,60};\n\n insertionSortArray2(arr2);\n\n System.out.println(Arrays.toString(arr2));\n }",
"public void sort() {\n\t\tfor (int i = 1; i < this.dataModel.getLength(); i++) {\n\t\t\tfinal int x = this.dataModel.get(i);\n\n\t\t\t// Find location to insert using binary search\n\t\t\tfinal int j = Math.abs(this.dataModel.binarySearch(0, i, x) + 1);\n\n\t\t\t// Shifting array to one location right\n\t\t\tthis.dataModel.arrayCopy(j, j + 1, i - j);\n\n\t\t\t// Placing element at its correct location\n\t\t\tthis.dataModel.set(j, x);\n\t\t\tthis.repaint(this.count++);\n\t\t}\n\t}",
"private static void sort(Comparable[] as, Comparable[] aux, int lo, int hi) {\n if (hi <= lo + CUTOFF - 1) {\n Insertion.sort(as, lo, hi);\n return;\n }\n int mid = lo + (hi - lo) / 2;\n sort (as, aux, lo, mid);\n sort (as, aux, mid + 1, hi);\n // Last element of first array is less than the first of the second --> Stop!\n if (!less(as[mid + 1], as[mid])) return;\n merge (as, aux, lo, mid, hi);\n }",
"@Test\r\n public void testSort() {\r\n System.out.println(\"sort\");\r\n int[] array = {6, 3, 7, 9, 4, 1, 3, 7, 0};\r\n int[] expResult = {0, 1, 3, 3, 4, 6, 7, 7, 9};\r\n\r\n int[] result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n \r\n array = new int[10000];\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = new Random().nextInt(Integer.MAX_VALUE);\r\n }\r\n expResult = Arrays.copyOf(array, array.length);\r\n Arrays.sort(expResult);\r\n \r\n result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n }",
"private int insertIndex(int[] arr, int target) {\n int low = 0, high = arr.length - 1;\n if (target < arr[0]) {\n return -1;\n }\n if (target >= arr[arr.length - 1]) {\n return arr.length - 1;\n }\n while (low <= high) {\n int mid = low + (high - low) / 2;\n if (arr[mid] <= target && arr[mid + 1] > target) {\n // index found\n return mid;\n }\n if (arr[mid] <= target) {\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n return -1;\n }"
] | [
"0.7152022",
"0.70561427",
"0.70338744",
"0.7015614",
"0.70085186",
"0.69501746",
"0.69190687",
"0.68505543",
"0.6794121",
"0.67747974",
"0.676389",
"0.6726554",
"0.66909575",
"0.66861403",
"0.66735035",
"0.6669839",
"0.6657847",
"0.6647828",
"0.663315",
"0.6629936",
"0.6624224",
"0.6598367",
"0.6595365",
"0.65934956",
"0.6589798",
"0.6580568",
"0.6579384",
"0.6573295",
"0.65512383",
"0.6546511",
"0.65449685",
"0.65132624",
"0.64833486",
"0.64739466",
"0.64715344",
"0.6461514",
"0.6453633",
"0.6432311",
"0.64276487",
"0.6424261",
"0.6413939",
"0.6408419",
"0.64071727",
"0.63942474",
"0.6381684",
"0.63731086",
"0.63703537",
"0.63618946",
"0.6361601",
"0.6356204",
"0.6351986",
"0.6346807",
"0.63459253",
"0.63303244",
"0.63119",
"0.6308597",
"0.62937",
"0.6281119",
"0.6266532",
"0.62612325",
"0.6258453",
"0.62284636",
"0.6225885",
"0.62252337",
"0.62070227",
"0.6205075",
"0.6203481",
"0.620295",
"0.61904687",
"0.616392",
"0.61517656",
"0.6122925",
"0.6116598",
"0.60969055",
"0.60843116",
"0.60765356",
"0.6075539",
"0.60713387",
"0.6070921",
"0.6063856",
"0.6063501",
"0.605782",
"0.6055139",
"0.6029504",
"0.601254",
"0.59984386",
"0.59968567",
"0.5984015",
"0.59670335",
"0.59661525",
"0.5964938",
"0.5963017",
"0.5961453",
"0.5954166",
"0.59498763",
"0.59415746",
"0.59287363",
"0.5916637",
"0.59101695",
"0.5905594"
] | 0.64587086 | 36 |
Creates new form InserirCelularGui | public InserirCelularGui(CelularTableModel mtb) {
initComponents();
model = mtb;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public frmCliente() {\r\n \r\n initComponents();\r\n // Botao do Note_ON brusco que foi retirado ...\r\n //jButton9.setVisible(false);\r\n \r\n // Inicializa o display de desenho\r\n //ImageIcon image=new ImageIcon(\"Hapax4.PNG\");\r\n //setIconImage(image.getImage());\r\n \r\n iniciaDesenho();\r\n // Lista de Dispositivos MIDI\r\n PegaMIDI();\r\n \r\n }",
"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 JIFInventario() {\n initComponents();\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 jTextFieldOro = new javax.swing.JTextField();\n jTextFieldElixir = new javax.swing.JTextField();\n jButtonCrearEdificio = new javax.swing.JButton();\n jButtonCrearTropa = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButtonMejorarEdificio = new javax.swing.JButton();\n jButtonRecogerRecursos = new javax.swing.JButton();\n jButton9 = new javax.swing.JButton();\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 jTextFieldChoza = new javax.swing.JTextField();\n jTextFieldMina = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jTextFieldRecolector = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jTextFieldCampamento = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jTextFieldCañon = new javax.swing.JTextField();\n jTextFieldMortero = new javax.swing.JTextField();\n jTextFieldTorre = new javax.swing.JTextField();\n jTextFieldCuartel = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextFieldBarbaro = new javax.swing.JTextField();\n jTextFieldArquera = new javax.swing.JTextField();\n jTextFieldGigante = new javax.swing.JTextField();\n jTextFieldDuende = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jTextField15 = new javax.swing.JTextField();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jTextFieldAyuntamiento = new javax.swing.JTextField();\n jTextFieldOroMina = new javax.swing.JTextField();\n jTextFieldElixRec = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Oro\");\n\n jLabel2.setText(\"Elixir\");\n\n jTextFieldOro.setEnabled(false);\n\n jTextFieldElixir.setToolTipText(\"\");\n jTextFieldElixir.setEnabled(false);\n\n jButtonCrearEdificio.setText(\"Crear Edificio\");\n jButtonCrearEdificio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrearEdificioActionPerformed(evt);\n }\n });\n\n jButtonCrearTropa.setText(\"Crear Tropa\");\n jButtonCrearTropa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrearTropaActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Realizar Ataque\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButtonMejorarEdificio.setText(\"Mejorar Edificio\");\n jButtonMejorarEdificio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMejorarEdificioActionPerformed(evt);\n }\n });\n\n jButtonRecogerRecursos.setText(\"Recoger Recursos\");\n jButtonRecogerRecursos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRecogerRecursosActionPerformed(evt);\n }\n });\n\n jButton9.setText(\"Recibir Ataque\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 18));\n jLabel4.setForeground(new java.awt.Color(0, 0, 102));\n jLabel4.setText(\"Mi Aldea\");\n\n jTextFieldChoza.setEnabled(false);\n\n jTextFieldMina.setEnabled(false);\n\n jTextFieldRecolector.setEnabled(false);\n\n jTextFieldCampamento.setEnabled(false);\n\n jTextFieldCañon.setEnabled(false);\n\n jTextFieldMortero.setEnabled(false);\n\n jTextFieldTorre.setEnabled(false);\n\n jTextFieldCuartel.setEnabled(false);\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel13.setText(\"Tropas\");\n\n jTextFieldBarbaro.setEnabled(false);\n\n jTextFieldArquera.setEnabled(false);\n\n jTextFieldGigante.setEnabled(false);\n\n jTextFieldDuende.setEnabled(false);\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel18.setText(\"Tropas\");\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\n jLabel19.setText(\"Tiempo\");\n\n jTextField15.setEnabled(false);\n\n jLabel21.setText(\"jLabel21\");\n\n jLabel22.setText(\"jLabel22\");\n\n jLabel23.setText(\"jLabel23\");\n\n jLabel24.setText(\"AYUNTAMIENTO\");\n\n jTextFieldAyuntamiento.setEnabled(false);\n\n jTextFieldOroMina.setEnabled(false);\n jTextFieldOroMina.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextFieldOroMinaActionPerformed(evt);\n }\n });\n\n jTextFieldElixRec.setEnabled(false);\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(69, 69, 69)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldElixRec, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldOroMina, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldRecolector, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldMina, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldChoza, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldCampamento, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(65, 65, 65)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextFieldMortero, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextFieldCuartel)\n .addComponent(jTextFieldTorre, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(34, 34, 34)\n .addComponent(jTextFieldCañon, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(73, 73, 73)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextFieldBarbaro)\n .addComponent(jTextFieldGigante)\n .addComponent(jTextFieldDuende)\n .addComponent(jTextFieldArquera, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 251, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 319, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addGap(44, 44, 44))\n .addGroup(layout.createSequentialGroup()\n .addGap(122, 122, 122)\n .addComponent(jLabel24)\n .addGap(18, 18, 18)\n .addComponent(jTextFieldAyuntamiento, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 173, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextFieldOro, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldElixir, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(143, 143, 143)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButtonCrearEdificio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonCrearTropa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonMejorarEdificio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonRecogerRecursos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23))\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 821, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(80, 80, 80)\n .addComponent(jLabel18)\n .addGap(229, 229, 229)\n .addComponent(jLabel19)\n .addGap(18, 18, 18)\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel22)\n .addComponent(jLabel21)\n .addComponent(jLabel23))))\n .addContainerGap(320, Short.MAX_VALUE))\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(jLabel3)\n .addGap(62, 62, 62)\n .addComponent(jButtonCrearEdificio)\n .addGap(4, 4, 4)\n .addComponent(jButtonCrearTropa)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonMejorarEdificio)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonRecogerRecursos)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton9))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextFieldOro, 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(jTextFieldElixir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addComponent(jLabel13))\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(jTextFieldAyuntamiento, 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.TRAILING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextFieldChoza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jTextFieldCañon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(jTextFieldBarbaro, 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(jLabel6)\n .addComponent(jTextFieldMina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jTextFieldMortero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15)\n .addComponent(jTextFieldArquera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldOroMina, 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(jLabel7)\n .addComponent(jTextFieldRecolector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(jTextFieldTorre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16)\n .addComponent(jTextFieldGigante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldElixRec, 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(jLabel8)\n .addComponent(jTextFieldCampamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12)\n .addComponent(jTextFieldCuartel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17)\n .addComponent(jTextFieldDuende, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jLabel19)\n .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addComponent(jLabel21)\n .addGap(32, 32, 32)\n .addComponent(jLabel22)\n .addGap(35, 35, 35)\n .addComponent(jLabel23)\n .addContainerGap(224, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public FrmLeerCodigoBarras(java.awt.Frame parent, boolean modal,String accion) {\n super(parent,\"Codigo de barras\", modal);\n this.parent = parent;\n initComponents();\n this.turno = Main.getInstance().getTurnoActual();\n this.accion = accion;\n this.estacionamiento = Main.getInstance().getEstacionamiento();\n this.getContentPane().setBackground(Color.white);\n pack();\n id =\"\";\n if(accion.equals(\"COBRO\")){\n lblMensaje.setText(\"Coloca el boleto en el sensor\");\n }else if(accion.equals(\"CANCELAR\")){\n lblMensaje.setText(\"Coloca el boleto en el sensor\");\n }else if(accion.equals(\"RECIBO\")){\n lblMensaje.setText(\"Coloca el boleto en el sensor\");\n }else if(accion.equals(\"PERDIDO\")){\n lblMensaje.setText(\"Coloca la contra en el sensor\");\n }else if(accion.equals(\"CONTRA\")){\n lblMensaje.setText(\"Coloca la contra en el sensor\");\n }else if(accion.equals(\"ENTRADA\")){\n lblMensaje.setText(\"Coloca tu gafet contra en el sensor\");\n }else{\n lblMensaje.setText(\"Coloca el codigo\");\n }\n \n\n if(!Configuracion.getInstancia().getTerminal().equals(Configuracion.CLIENTE)){\n this.lblBienvenido.setVisible(false);\n }\n setLocationRelativeTo(parent);\n setVisible(true);\n }",
"private void btnEntrarActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n Alumno.Aula = jcbAula.getSelectedItem().toString();\n Alumno.Materia = \"\";\n Info_Computo a1 = new Info_Computo();\n a1.setVisible(true);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n TFNIF = new javax.swing.JTextField();\n TFNombre = new javax.swing.JTextField();\n TFTelefono = new javax.swing.JTextField();\n TFDireccion = new javax.swing.JTextField();\n TFDeuda = new javax.swing.JTextField();\n BTlimpiar = new javax.swing.JButton();\n BTañadir = new javax.swing.JButton();\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\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"NUEVO CLIENTE\");\n\n BTlimpiar.setText(\"LIMPIAR\");\n BTlimpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BTlimpiarActionPerformed(evt);\n }\n });\n\n BTañadir.setText(\"AÑADIR\");\n BTañadir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BTañadirActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"NIF\");\n\n jLabel2.setText(\"NOMBRE\");\n\n jLabel3.setText(\"TELEFONO\");\n\n jLabel4.setText(\"DIRECCION\");\n\n jLabel5.setText(\"DEUDA\");\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(65, 65, 65)\n .addComponent(BTlimpiar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 100, Short.MAX_VALUE)\n .addComponent(BTañadir)\n .addGap(91, 91, 91))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(TFTelefono)\n .addComponent(TFDireccion)\n .addComponent(TFNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 305, Short.MAX_VALUE)\n .addComponent(TFDeuda))\n .addComponent(TFNIF))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TFNIF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TFNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TFTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TFDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TFDeuda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BTlimpiar)\n .addComponent(BTañadir))\n .addContainerGap(25, Short.MAX_VALUE))\n );\n\n pack();\n }",
"private FenetreCreation() {\n\t\tsuper(\"Machine de Turing - Creation\");\n\t\tsetSize(1000, 450);\n\t\tsetLocation(100, 100);\n\t\tsetResizable(false);\n\t\t//Pas possible de fermer par le bouton fermer de fenetre\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\t\n\t\t//Initialisation de toutes les composantes\n\t\tlabelEtat = new JLabel(\"Etats :\");\n\t\tlabelSym = new JLabel(\"Symboles :\");\n\t\tlabelConsigne = new JLabel(\"<html>Le premier etat ajoute sera l'etat initial.<br>\"\n\t\t\t\t+ \"# signifie des cases vides.<br>\"\n\t\t\t\t+ \"Pas d'espace pour des symboles et etats.</html>\");\n\n\t\tok = new JButton(\"OK\");\n\t\tannuler = new JButton(\"Annuler\");\n\t\tajoutEtat = new JButton(\"+\");\n\t\tsuppEtat = new JButton(\"-\");\n\t\tajoutSym = new JButton(\"+\");\n\t\tsuppSym = new JButton(\"-\");\n\n\t\ttextEtat = new JTextField();\n\t\ttextSym = new JTextField();\n\n\t\tmodelEtat = new DefaultListModel<String>();\n\t\tetats = new JList<String>(modelEtat);\n\t\tetats.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tetats.setVisibleRowCount(10);\n\t\tscrollEtat = new JScrollPane(etats);\n\n\t\tmodelSym = new DefaultListModel<String>();\n\t\tsymboles = new JList<String>(modelSym);\n\t\tsymboles.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tsymboles.setVisibleRowCount(10);\n\t\tscrollSym = new JScrollPane(symboles);\n\n\t\tselSym = new JComboBox<String>();\n\t\tselEtat = new JComboBox<String>();\n\t\tselDeplace = new JComboBox<String>();\n\t\t//ajouter l'etat finale et symbole speciale pour simuler ruban infini\n\t\tselEtat.addItem(\"eFinale\");\n\t\tselSym.addItem(\"#\");\n\t\t//etiquettes de deplacement\n\t\tselDeplace.addItem(\"Gauche\");\n\t\tselDeplace.addItem(\"Droite\");\n\t\tselDeplace.addItem(\"Statique\");\n\n\t\ttabModel = new HashMap<String, DefaultTableModel>();\n\t\tString[] colId = {\"Etat\", \"Vue\", \"Changer à\", \"Prochain Etat\", \"Deplacement\"};\n\t\temptyMod = new DefaultTableModel(0, 5);\n\t\temptyMod.setColumnIdentifiers(colId);\n\t\ttab = new JTable(emptyMod);\n\t\tscrollTab = new JScrollPane(tab);\n\n\t\ttabSym = new ArrayList<String>();\n\t\ttabEtat = new ArrayList<String>();\n\t\t\n\t\t//rendre visible symbole speciale a l'initialisation\n\t\ttabSym.add(\"#\");\n\t\tmodelSym.addElement(\"#\");\n\t\t\n\t\t//ajout de fonctionnement des boutons\n\t\tajoutEtat.addActionListener(e -> {\n\t\t\tString data = textEtat.getText();\n\t\t\tif (!modelEtat.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"eFinale\")) {\n\t\t\t\tmodelEtat.addElement(data);\n\t\t\t\ttabEtat.add(data);\n\t\t\t\ttabModel.put(data, new DefaultTableModel(0, 4) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t\t\treturn !(column == 0 || column == 1);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\ttabModel.get(data).setColumnIdentifiers(colId);\n\t\t\t\ttabModel.get(data).addRow(new Object[]{data, \"\", \"\", \"\", \"\"});\n\t\t\t\tfor (int i = 0; i < modelSym.size(); i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\ttabModel.get(data).setValueAt(modelSym.get(i), i, 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttabModel.get(data).addRow(new Object[]{\"\", modelSym.get(i), \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselEtat.addItem(data);\n\t\t\t}\n\t\t\ttextEtat.setText(null);\n\t\t});\n\n\t\tsuppEtat.addActionListener(e -> {\n\t\t\tint index = etats.getSelectedIndex();\n\t\t\tif (index != -1) {\n\t\t\t\tString data = etats.getSelectedValue();\n\t\t\t\tmodelEtat.remove(index);\n\t\t\t\ttabEtat.remove(index);\n\t\t\t\ttabModel.remove(data);\n\t\t\t\tselEtat.removeItem(data);\n\t\t\t}\n\t\t});\n\n\t\tajoutSym.addActionListener(e -> {\n\t\t\tString data = textSym.getText();\n\t\t\tif (!modelSym.contains(data) && !data.isEmpty() && !data.contains(\" \") && !data.equals(\"#\")) {\n\t\t\t\tmodelSym.addElement(data);\n\t\t\t\ttabSym.add(data);\n\t\t\t\tif (modelSym.size() == 1) {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).setValueAt(data, 0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (String s : tabModel.keySet()) {\n\t\t\t\t\t\ttabModel.get(s).addRow(new Object[]{\"\", data, \"\", \"\", \"\"});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tselSym.addItem(data);\n\t\t\t}\n\t\t\ttextSym.setText(null);\n\t\t});\n\n\t\tsuppSym.addActionListener(e -> {\n\t\t\tint index = symboles.getSelectedIndex();\n\t\t\tif (index != -1 && !modelSym.getElementAt(index).equals(\"#\")) {\n\t\t\t\tselSym.removeItem(modelSym.getElementAt(index));\n\t\t\t\ttabSym.remove(index);\n\t\t\t\tmodelSym.remove(index);\n\t\t\t\tfor (DefaultTableModel d : tabModel.values()) {\n\t\t\t\t\td.removeRow(index);\n\t\t\t\t\tif (index == 0 && d.getRowCount() == 0) {\n\t\t\t\t\t\td.addRow(new Object[]{etats.getSelectedValue(), \"\", \"\", \"\", \"\"});\n\t\t\t\t\t} else if (index == 0) {\n\t\t\t\t\t\td.setValueAt(etats.getSelectedValue(), 0, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//seul moyen de fermer la fenetre\n\t\tannuler.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tbarrier.await();\n\t\t\t} catch (Exception ex) {\n\t\t\t}\n\t\t\tthis.dispose();\n\t\t});\n\t\t\n\t\t//finaliser les parametres d'entree pour la creation\n\t\t//verification qu'aucun champ n'est null, sinon erreur\n\t\tok.addActionListener(e -> {\n\t\t\ttry {\n\t\t\t\tif (tabEtat.isEmpty() || tabSym.isEmpty()) {\n\t\t\t\t\tthrow new Exception();\n\t\t\t\t} else {\n\t\t\t\t\ttabAct = new int[tabEtat.size()][tabSym.size()][3];\n\t\t\t\t\tfor (int i = 0; i < tabAct.length; i++) {\n\t\t\t\t\t\tString etat = tabEtat.get(i);\n\t\t\t\t\t\tfor (int j = 0; j < tabAct[i].length; j++) {\n\t\t\t\t\t\t\tString newSym = (String) tabModel.get(etat).getValueAt(j, 2);\n\t\t\t\t\t\t\tString newEtat = (String) tabModel.get(etat).getValueAt(j, 3);\n\t\t\t\t\t\t\tString dep = (String) tabModel.get(etat).getValueAt(j, 4);\n\n\t\t\t\t\t\t\tif (newSym == \"\" || newEtat == \"\" || dep == \"\") {\n\t\t\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\ttabAct[i][j][0] = tabSym.indexOf(newSym);\n\n\t\t\t\t\t\t\tif (newEtat.equals(\"eFinale\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = -1;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttabAct[i][j][1] = tabEtat.indexOf(newEtat);\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif (dep.equals(\"Gauche\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.GAUCHE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Droite\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.DROITE;\n\t\t\t\t\t\t\t} else if (dep.equals(\"Statique\")) {\n\t\t\t\t\t\t\t\ttabAct[i][j][2] = Ruban.RESTER;\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\tthis.dispose();\n\t\t\t\t\tmachine = new Turing_Machine(tabAct, tabEtat, tabSym);\n\t\t\t\t\tbarrier.await();\n\t\t\t\t}\n\t\t\t} catch (Exception n) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Veuillez remplir tous les champs de saisie!\", \"\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//changement de tableau par selection d'etat\n\t\tetats.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent evt) {\n\t\t\t\tif (!evt.getValueIsAdjusting()) {\n\t\t\t\t\tif (!modelEtat.isEmpty() && etats.getSelectedIndex() != -1) {\n\t\t\t\t\t\ttab.setModel(tabModel.get(etats.getSelectedValue()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttab.setModel(emptyMod);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttab.getColumnModel().getColumn(2).setCellEditor(new DefaultCellEditor(selSym));\n\t\t\t\ttab.getColumnModel().getColumn(3).setCellEditor(new DefaultCellEditor(selEtat));\n\t\t\t\ttab.getColumnModel().getColumn(4).setCellEditor(new DefaultCellEditor(selDeplace));\n\t\t\t}\n\t\t});\n\t\t\n\t\t//positionnement des composantes\n\t\tentryPanel = new JPanel(new GridBagLayout());\n\t\tmainPanel = new JPanel(new BorderLayout());\n\t\tboutonVal = new JPanel(new GridLayout(1, 2, 0, 0));\n\t\tboutonEtat = new JPanel(new GridLayout(1, 2, 10, 0));\n\t\tboutonSym = new JPanel(new GridLayout(1, 2, 10, 0));\n\n\t\tboutonEtat.add(ajoutEtat);\n\t\tboutonEtat.add(suppEtat);\n\t\tboutonSym.add(ajoutSym);\n\t\tboutonSym.add(suppSym);\n\n\t\tc = new GridBagConstraints();\n\t\tc.gridheight = 1;\n\t\tc.gridwidth = 1;\n\t\tc.insets = new Insets(5, 10, 5, 10);\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\t\n\t\tentryPanel.add(labelConsigne, c);\n\t\t\n\t\tc.gridx = 0;\n\t\tc.gridy = 2;\n\t\tc.gridwidth = 1;\n\t\tentryPanel.add(labelEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(labelSym, c);\n\n\t\tc.gridy = 3;\n\t\tc.gridx = 0;\n\t\tc.gridwidth = 2;\n\t\tentryPanel.add(boutonEtat, c);\n\n\t\tc.gridx = 2;\n\t\tentryPanel.add(boutonSym, c);\n\n\t\tc.gridy = 4;\n\t\tc.gridx = 0;\n\t\tentryPanel.add(textEtat, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollEtat, c);\n\n\t\tc.gridx = 2;\n\t\tc.gridy = 4;\n\t\tentryPanel.add(textSym, c);\n\n\t\tc.gridy = 5;\n\t\tentryPanel.add(scrollSym, c);\n\n\t\tboutonVal.add(ok);\n\t\tboutonVal.add(annuler);\n\t\tmainPanel.add(entryPanel, BorderLayout.WEST);\n\t\tmainPanel.add(scrollTab, BorderLayout.EAST);\n\t\tmainPanel.add(boutonVal, BorderLayout.SOUTH);\n\t\tsetContentPane(mainPanel);\n\t\tpack();\n\t\tsetVisible(true);\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n escritorio = new javax.swing.JDesktopPane();\r\n jDesktopPane1 = new javax.swing.JDesktopPane();\r\n lblCuenta = new javax.swing.JLabel();\r\n lblNivel = new javax.swing.JLabel();\r\n lblNomApe = new javax.swing.JLabel();\r\n lblIP = new javax.swing.JLabel();\r\n lblHostName = new javax.swing.JLabel();\r\n lblLogo2 = new javax.swing.JLabel();\r\n lblNomApe1 = new javax.swing.JLabel();\r\n lblNomApe2 = new javax.swing.JLabel();\r\n lblLogo = new javax.swing.JLabel();\r\n jToolBar1 = new javax.swing.JToolBar();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n jButton5 = new javax.swing.JButton();\r\n jButton6 = new javax.swing.JButton();\r\n jButton7 = new javax.swing.JButton();\r\n jButton8 = new javax.swing.JButton();\r\n jButton9 = new javax.swing.JButton();\r\n jButton10 = new javax.swing.JButton();\r\n jButton14 = new javax.swing.JButton();\r\n jButton11 = new javax.swing.JButton();\r\n jButton12 = new javax.swing.JButton();\r\n btnCopiaSeg = new javax.swing.JButton();\r\n jButton1 = new javax.swing.JButton();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"Lubrindustrial\");\r\n\r\n escritorio.setBackground(new java.awt.Color(65, 105, 170));\r\n\r\n javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);\r\n jDesktopPane1.setLayout(jDesktopPane1Layout);\r\n jDesktopPane1Layout.setHorizontalGroup(\r\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n );\r\n jDesktopPane1Layout.setVerticalGroup(\r\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n );\r\n\r\n lblNomApe.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\r\n lblNomApe.setForeground(new java.awt.Color(255, 255, 255));\r\n lblNomApe.setText(\"Nombre y Apellido de usuario\");\r\n\r\n lblIP.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\r\n lblIP.setForeground(new java.awt.Color(255, 255, 255));\r\n lblIP.setText(\"IP de equipo servidor\");\r\n\r\n lblHostName.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\r\n lblHostName.setForeground(new java.awt.Color(255, 255, 255));\r\n lblHostName.setText(\"Nombre Red equipo servidor\");\r\n\r\n lblLogo2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/Logo Grease Warehouse.jpeg\"))); // NOI18N\r\n lblLogo2.setText(\" \");\r\n\r\n lblNomApe1.setForeground(new java.awt.Color(255, 255, 255));\r\n lblNomApe1.setText(\"Lubrinsdustrial v1.0\");\r\n\r\n lblNomApe2.setForeground(new java.awt.Color(255, 255, 255));\r\n lblNomApe2.setText(\"Jhonny Cajamarca / Ricardo Herrera\");\r\n\r\n lblLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/lubrindustrial_logo (2).png\"))); // NOI18N\r\n lblLogo.setText(\" \");\r\n\r\n escritorio.setLayer(jDesktopPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n escritorio.setLayer(lblCuenta, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n escritorio.setLayer(lblNivel, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n escritorio.setLayer(lblNomApe, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n escritorio.setLayer(lblIP, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n escritorio.setLayer(lblHostName, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n escritorio.setLayer(lblLogo2, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n escritorio.setLayer(lblNomApe1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n escritorio.setLayer(lblNomApe2, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n escritorio.setLayer(lblLogo, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout escritorioLayout = new javax.swing.GroupLayout(escritorio);\r\n escritorio.setLayout(escritorioLayout);\r\n escritorioLayout.setHorizontalGroup(\r\n escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, escritorioLayout.createSequentialGroup()\r\n .addGap(24, 24, 24)\r\n .addGroup(escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(escritorioLayout.createSequentialGroup()\r\n .addComponent(lblNomApe1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(lblNomApe2)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(lblIP, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(lblHostName, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(escritorioLayout.createSequentialGroup()\r\n .addGroup(escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(escritorioLayout.createSequentialGroup()\r\n .addGroup(escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jDesktopPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(lblNomApe, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(lblCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(lblNivel, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, escritorioLayout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(lblLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 569, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(lblLogo2, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(16, 16, 16)))\r\n .addGap(22, 22, 22))\r\n );\r\n escritorioLayout.setVerticalGroup(\r\n escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(escritorioLayout.createSequentialGroup()\r\n .addGroup(escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(escritorioLayout.createSequentialGroup()\r\n .addGroup(escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addGroup(escritorioLayout.createSequentialGroup()\r\n .addComponent(jDesktopPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(16, 16, 16)\r\n .addComponent(lblCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(lblNomApe, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(72, 72, 72))\r\n .addGroup(escritorioLayout.createSequentialGroup()\r\n .addGap(28, 28, 28)\r\n .addGroup(escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(lblNivel, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(lblLogo2, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addGap(290, 290, 290))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, escritorioLayout.createSequentialGroup()\r\n .addComponent(lblLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 316, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(28, 28, 28)))\r\n .addComponent(lblIP, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(escritorioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(lblHostName, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(lblNomApe2)\r\n .addComponent(lblNomApe1, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(37, 37, 37))\r\n );\r\n\r\n jToolBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\r\n jToolBar1.setFloatable(false);\r\n jToolBar1.setRollover(true);\r\n jToolBar1.setFocusable(false);\r\n\r\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/equipo.png\"))); // NOI18N\r\n jButton2.setText(\"Empleados\");\r\n jButton2.setFocusable(false);\r\n jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton2);\r\n\r\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/equip.png\"))); // NOI18N\r\n jButton3.setText(\"Equipos\");\r\n jButton3.setFocusable(false);\r\n jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton3ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton3);\r\n\r\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/department.png\"))); // NOI18N\r\n jButton4.setText(\"Departamentos\");\r\n jButton4.setFocusable(false);\r\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton4ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton4);\r\n\r\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/map.png\"))); // NOI18N\r\n jButton5.setText(\"Locaciones\");\r\n jButton5.setFocusable(false);\r\n jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton5ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton5);\r\n\r\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/material.png\"))); // NOI18N\r\n jButton6.setText(\"Materiales\");\r\n jButton6.setFocusable(false);\r\n jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton6ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton6);\r\n\r\n jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/engr-.png\"))); // NOI18N\r\n jButton7.setText(\"Proveedores\");\r\n jButton7.setFocusable(false);\r\n jButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton7.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton7ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton7);\r\n\r\n jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/puzzle.png\"))); // NOI18N\r\n jButton8.setText(\"Instrucciones\");\r\n jButton8.setFocusable(false);\r\n jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton8.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton8ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton8);\r\n\r\n jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/invent.png\"))); // NOI18N\r\n jButton9.setText(\"Mantenimientos\");\r\n jButton9.setFocusable(false);\r\n jButton9.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton9.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton9.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton9ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton9);\r\n\r\n jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/inventario.png\"))); // NOI18N\r\n jButton10.setText(\"Orden Trabajo\");\r\n jButton10.setFocusable(false);\r\n jButton10.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton10.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton10.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton10ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton10);\r\n\r\n jButton14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/reportes.png\"))); // NOI18N\r\n jButton14.setText(\"Reportes\");\r\n jButton14.setFocusable(false);\r\n jButton14.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton14.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton14.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton14ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton14);\r\n\r\n jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/pedido.png\"))); // NOI18N\r\n jButton11.setText(\"Pedidos\");\r\n jButton11.setFocusable(false);\r\n jButton11.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton11.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton11.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton11ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton11);\r\n\r\n jButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/operabilidad.png\"))); // NOI18N\r\n jButton12.setText(\"Operabilidad\");\r\n jButton12.setFocusable(false);\r\n jButton12.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton12.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton12.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton12ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton12);\r\n\r\n btnCopiaSeg.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/candado.png\"))); // NOI18N\r\n btnCopiaSeg.setText(\"Copia de Seguridad\");\r\n btnCopiaSeg.setFocusable(false);\r\n btnCopiaSeg.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n btnCopiaSeg.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n btnCopiaSeg.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnCopiaSegActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(btnCopiaSeg);\r\n\r\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/lubrindustrial/Icons/logout2.png\"))); // NOI18N\r\n jButton1.setText(\"Cerrar Sesión\");\r\n jButton1.setActionCommand(\" Inicio \");\r\n jButton1.setFocusable(false);\r\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n jToolBar1.add(jButton1);\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(escritorio)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 1095, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(escritorio))\r\n );\r\n\r\n pack();\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n TXTSerialEquipo = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n TXTIdUsuario = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n TXTFechaDeEntrega = new com.toedter.calendar.JDateChooser();\n TXTFechaDePrestamo = new javax.swing.JLabel();\n TXTIdBibliotecario = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n\n setClosable(true);\n setTitle(\"Prestar Equipo\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 153, 0));\n jLabel2.setText(\"Serial Equipo\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 160, 100, -1));\n\n TXTSerialEquipo.setBackground(new java.awt.Color(255, 255, 255));\n TXTSerialEquipo.setForeground(new java.awt.Color(255, 153, 0));\n TXTSerialEquipo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 0)));\n getContentPane().add(TXTSerialEquipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 150, 150, 30));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 153, 0));\n jLabel7.setText(\"ID Usuario \");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 240, 100, -1));\n\n TXTIdUsuario.setBackground(new java.awt.Color(255, 255, 255));\n TXTIdUsuario.setForeground(new java.awt.Color(255, 153, 0));\n TXTIdUsuario.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 153, 0)));\n getContentPane().add(TXTIdUsuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 230, 150, 30));\n\n jButton2.setBackground(new java.awt.Color(255, 153, 0));\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 16)); // NOI18N\n jButton2.setForeground(new java.awt.Color(240, 240, 240));\n jButton2.setText(\"Prestar \");\n jButton2.setBorder(null);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 370, 130, 40));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 153, 0));\n jLabel3.setText(\"Fecha De Prestamo\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 280, 130, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 153, 0));\n jLabel8.setText(\"Fecha De Entrega\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 320, 120, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 2, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 153, 0));\n jLabel5.setText(\"ID Bibliotecario\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 200, 100, -1));\n\n TXTFechaDeEntrega.setBackground(new java.awt.Color(255, 153, 0));\n TXTFechaDeEntrega.setForeground(new java.awt.Color(255, 153, 0));\n getContentPane().add(TXTFechaDeEntrega, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 310, 150, 30));\n\n TXTFechaDePrestamo.setFont(new java.awt.Font(\"Dialog\", 2, 14)); // NOI18N\n TXTFechaDePrestamo.setForeground(new java.awt.Color(255, 153, 0));\n TXTFechaDePrestamo.setText(\"fecha de prestamo\");\n getContentPane().add(TXTFechaDePrestamo, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 270, 150, 30));\n\n TXTIdBibliotecario.setFont(new java.awt.Font(\"Dialog\", 2, 14)); // NOI18N\n TXTIdBibliotecario.setForeground(new java.awt.Color(255, 153, 0));\n TXTIdBibliotecario.setText(\"idBibliotecario\");\n getContentPane().add(TXTIdBibliotecario, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 186, 150, 30));\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setOpaque(true);\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 90, 410, 350));\n\n jLabel6.setFont(new java.awt.Font(\"Dialog\", 2, 36)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Prestar Un Equipo\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 340, 60));\n\n jLabel4.setBackground(new java.awt.Color(255, 153, 0));\n jLabel4.setOpaque(true);\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -4, 410, 100));\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jFormattedTextField1 = new javax.swing.JFormattedTextField();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txDescricao = new javax.swing.JTextField();\n botaoLimpar = new javax.swing.JButton();\n botaoSalvar = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n txObservacoes = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n txPreco = new javax.swing.JTextField();\n\n jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat(\"YYYY\"))));\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Inserir Marca\");\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setLayout(null);\n\n jLabel1.setText(\"Inserir Celularl\");\n jPanel1.add(jLabel1);\n jLabel1.setBounds(57, 11, 69, 14);\n\n jLabel2.setText(\"Descrição.:\");\n jPanel1.add(jLabel2);\n jLabel2.setBounds(10, 46, 80, 14);\n jPanel1.add(txDescricao);\n txDescricao.setBounds(108, 43, 70, 20);\n\n botaoLimpar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/rosicleiafrasson/view/imagens/limpar.png\"))); // NOI18N\n botaoLimpar.setText(\"Limpar\");\n botaoLimpar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoLimparActionPerformed(evt);\n }\n });\n jPanel1.add(botaoLimpar);\n botaoLimpar.setBounds(150, 340, 110, 23);\n\n botaoSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/rosicleiafrasson/view/imagens/salvar.png\"))); // NOI18N\n botaoSalvar.setText(\"Salvar\");\n botaoSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoSalvarActionPerformed(evt);\n }\n });\n jPanel1.add(botaoSalvar);\n botaoSalvar.setBounds(279, 340, 120, 23);\n\n jLabel5.setText(\"Observações.: \");\n jPanel1.add(jLabel5);\n jLabel5.setBounds(10, 90, 100, 14);\n\n txObservacoes.setColumns(20);\n txObservacoes.setRows(5);\n jScrollPane1.setViewportView(txObservacoes);\n\n jPanel1.add(jScrollPane1);\n jScrollPane1.setBounds(110, 90, 294, 74);\n\n jLabel6.setText(\"Preço.: \");\n jPanel1.add(jLabel6);\n jLabel6.setBounds(10, 190, 80, 14);\n jPanel1.add(txPreco);\n txPreco.setBounds(110, 190, 80, 20);\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, 412, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 398, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }",
"public Jinicio() {\n initComponents();\n }",
"private void createForm() throws IOException {\n\t\t\t\n\t\t\t \n\t\t\tweatherData tmp = new weatherData();\n\t\t\ttry {\n\t\t\t\tapp.grab(app.getVisibleLocation().getCityID(), app.getUnits());\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t}\n\t\t\t\n\t\t\ttmp = app.getCurrent();\n\t\t\t\n\t\t\tJLabel lblcity = new JLabel(tmp.getName() + \", \" + tmp.getCount() + \", \" + tmp.getLon() + \", \" + tmp.getLat()); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tlblcity.setFont(new Font(\"Lucida Console\", Font.PLAIN, 40));\n\t\t\tJLabel lbldescrip = new JLabel(\"Weather Condition: \");\n\t\t\tlbldescrip.setForeground(Color.WHITE);\n\t\t\tlbldescrip.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n\t\t\tJLabel lbldescrip2 = new JLabel(\"\" +tmp.getCondit());\n\t\t\t\n\t\t\tlbldescrip2.setForeground(Color.WHITE);\n\t\t\tlbldescrip2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp = new JLabel(\"Temp: \"); //label for temp\n\t\t\tlbltemp.setForeground(Color.WHITE);\n\t\t\tlbltemp.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp2 = new JLabel(\"\" + tmp.getTemp()); //actual temp\n\t\t\tlbltemp2.setForeground(Color.WHITE);\n\t\t\tlbltemp2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin = new JLabel(\"Min Temp: \"); //label for min\n\t\t\tlblmin.setForeground(Color.WHITE);\n\t\t\tlblmin.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin2 = new JLabel(\"\" + tmp.getMin()); //actual min\n\t\t\tlblmin2.setForeground(Color.WHITE);\n\t\t\tlblmin2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax = new JLabel(\"Max Temp: \" ); //label for max\n\t\t\tlblmax.setForeground(Color.WHITE);\n\t\t\tlblmax.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax2 = new JLabel(\"\" + tmp.getMax()); //actual max\n\t\t\tlblmax2.setForeground(Color.WHITE);\n\t\t\tlblmax2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed = new JLabel(\"Wind Speed: \"); //label for speed\n\t\t\tlblspeed.setForeground(Color.WHITE);\n\t\t\tlblspeed.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed2 = new JLabel(\"\" + tmp.getSpeed()); //actual speed\n\t\t\tlblspeed2.setForeground(Color.WHITE);\n\t\t\tlblspeed2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir = new JLabel(\"Wind Direction: \"); //label for dir \n\t\t\tlbldir.setForeground(Color.WHITE);\n\t\t\tlbldir.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir2 = new JLabel(\"\" + tmp.getDir()); //actual dir\n\t\t\tlbldir2.setForeground(Color.WHITE);\n\t\t\tlbldir2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress = new JLabel(\"Air Pressure: \"); //label for pressure\n\t\t\tlblpress.setForeground(Color.WHITE);\n\t\t\tlblpress.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress2 = new JLabel(\"\" + tmp.getPress()); //actual pressure\n\t\t\tlblpress2.setForeground(Color.WHITE);\n\t\t\tlblpress2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid = new JLabel(\"Humidity: \"); //label for humid\n\t\t\tlblhumid.setForeground(Color.WHITE);\n\t\t\tlblhumid.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid2 = new JLabel(\"\" + tmp.getHumid()); //actual humid\n\t\t\tlblhumid2.setForeground(Color.WHITE);\n\t\t\tlblhumid2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise = new JLabel(\"Sunrise Time: \"); //label for sunrise\n\t\t\tlblrise.setForeground(Color.WHITE);\n\t\t\tlblrise.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise2 = new JLabel(\"\" + tmp.getSunrise()); //actual sunrise\n\t\t\tlblrise2.setForeground(Color.WHITE);\n\t\t\tlblrise2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset = new JLabel(\"Sunset Time: \"); //label for susnet\n\t\t\tlblset.setForeground(Color.WHITE);\n\t\t\tlblset.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset2 = new JLabel(\"\" + tmp.getSunset()); //actual sunset\n\t\t\tlblset2.setForeground(Color.WHITE);\n\t\t\tlblset2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\t\n\t\t\t//used to set picture\n\t\t\tBufferedImage pic = tmp.getIcon();\n\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\tJLabel lblPic = new JLabel(new ImageIcon(pic)); //holds picture\n\t\t\t\n\t\t\t//Set the colours for the background gradient\n\t\t\tsetBgColours(tmp);\n\t\t\t\n\t\t\t//adds control with layout organization\n\t\t\tGroupLayout layout = new GroupLayout(currentPanel);\n\t\t\tcurrentPanel.setLayout(layout);\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets horizontal groups\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) //holds all the identifier labels\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //sets weather Data labels\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset2)\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);\n\t\t\t\n\t\t\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets verticsal groups\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //city is on its own\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //pic is on its own\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //the rest have the identifier, followed by the actual data\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\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\t\t\n\t\t\t\t\t\t//currentPanel.setLayout(layout); //sets the layout\t\t\n\t\t\tcurrentPanel.validate();\n\t\t\tcurrentPanel.repaint();\n\n\t\t\t try {\n\t\t\t\t\tapp.storePref();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJFrame error = new JFrame();\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t}",
"public FRMCadastrarFornecedor() {\n initComponents();\n }",
"public VistaCrearEmpleado() {\n\t\tsetClosable(true);\n\t\tsetFrameIcon(new ImageIcon(VistaCrearEmpleado.class.getResource(\"/com/mordor/mordorLloguer/recursos/account_circle24dp.png\")));\n\t\tsetBounds(100, 100, 467, 435);\n\t\tgetContentPane().setLayout(new MigLayout(\"\", \"[152px][235px]\", \"[19px][19px][19px][19px][19px][19px][45px][24px][19px][25px]\"));\n\t\t\n\t\tJLabel lblDni = new JLabel(\"DNI: \");\n\t\tgetContentPane().add(lblDni, \"cell 0 0,growx,aligny center\");\n\t\t\n\t\ttxtDNI = new JTextField();\n\t\tgetContentPane().add(txtDNI, \"cell 1 0,growx,aligny top\");\n\t\ttxtDNI.setColumns(10);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre: \");\n\t\tgetContentPane().add(lblNombre, \"cell 0 1,growx,aligny center\");\n\t\t\n\t\ttxtNombre = new JTextField();\n\t\tgetContentPane().add(txtNombre, \"cell 1 1,growx,aligny top\");\n\t\ttxtNombre.setColumns(10);\n\t\t\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos: \");\n\t\tgetContentPane().add(lblApellidos, \"cell 0 2,growx,aligny center\");\n\t\t\n\t\ttxtApellidos = new JTextField();\n\t\tgetContentPane().add(txtApellidos, \"cell 1 2,growx,aligny top\");\n\t\ttxtApellidos.setColumns(10);\n\t\t\n\t\tJLabel lblDomicilio = new JLabel(\"Domicilio:\");\n\t\tgetContentPane().add(lblDomicilio, \"cell 0 3,growx,aligny center\");\n\t\t\n\t\ttxtDomicilio = new JTextField();\n\t\tgetContentPane().add(txtDomicilio, \"cell 1 3,growx,aligny top\");\n\t\ttxtDomicilio.setColumns(10);\n\t\t\n\t\tJLabel lblCp = new JLabel(\"CP:\");\n\t\tgetContentPane().add(lblCp, \"cell 0 4,growx,aligny center\");\n\t\t\n\t\ttxtCp = new JTextField();\n\t\tgetContentPane().add(txtCp, \"cell 1 4,growx,aligny top\");\n\t\ttxtCp.setColumns(10);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\n\t\tgetContentPane().add(lblEmail, \"cell 0 5,growx,aligny center\");\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\tgetContentPane().add(txtEmail, \"cell 1 5,growx,aligny top\");\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJLabel lblFechaDeNacimiento = new JLabel(\"Fecha de Nacimiento:\");\n\t\tgetContentPane().add(lblFechaDeNacimiento, \"cell 0 6,alignx left,aligny center\");\n\t\t\n\t\ttxtDate = new WebDateField();\n\t\tgetContentPane().add(txtDate, \"cell 1 6,growx,aligny top\");\n\t\t\n\t\tJLabel lblCargo = new JLabel(\"Cargo:\");\n\t\tgetContentPane().add(lblCargo, \"cell 0 7,growx,aligny center\");\n\t\t\n\t\tcomboBoxCargo= new JComboBox<String> ();\n\t\tgetContentPane().add(comboBoxCargo, \"cell 1 7,growx,aligny top\");\n\t\t\n\t\tJLabel lblContrasea = new JLabel(\"Contraseña:\");\n\t\tgetContentPane().add(lblContrasea, \"cell 0 8,growx,aligny center\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tgetContentPane().add(passwordField, \"cell 1 8,growx,aligny top\");\n\t\t\n\t\tbtnAdd = new JButton(\"Add\");\n\t\tgetContentPane().add(btnAdd, \"cell 0 9,growx,aligny top\");\n\t\t\n\t\tbtnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tgetContentPane().add(btnCancel, \"cell 1 9,growx,aligny top\");\n\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lbl_titulo = new javax.swing.JLabel();\n lbl_nombre = new javax.swing.JLabel();\n lbl_nombre1 = new javax.swing.JLabel();\n lbl_nombre2 = new javax.swing.JLabel();\n lbl_nombre3 = new javax.swing.JLabel();\n lbl_nombre4 = new javax.swing.JLabel();\n lbl_nombre5 = new javax.swing.JLabel();\n txt_nombreCliente = new javax.swing.JTextField();\n txt_modelo = new javax.swing.JTextField();\n txt_numSerie = new javax.swing.JTextField();\n cmb_tipoEquipo = new javax.swing.JComboBox<>();\n cmb_marca = new javax.swing.JComboBox<>();\n jScrollPane1 = new javax.swing.JScrollPane();\n txp_observaciones = new javax.swing.JTextPane();\n btn_registrar = new javax.swing.JButton();\n lbl_footer = new javax.swing.JLabel();\n lbl_wallpaper = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setIconImage(getIconImage());\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n lbl_titulo.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n lbl_titulo.setForeground(new java.awt.Color(255, 255, 255));\n lbl_titulo.setText(\"Registro de equipo\");\n getContentPane().add(lbl_titulo, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 10, -1, -1));\n\n lbl_nombre.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lbl_nombre.setForeground(new java.awt.Color(255, 255, 255));\n lbl_nombre.setText(\"Nombre del Cliente:\");\n getContentPane().add(lbl_nombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, -1, -1));\n\n lbl_nombre1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lbl_nombre1.setForeground(new java.awt.Color(255, 255, 255));\n lbl_nombre1.setText(\"Tipo de equipo:\");\n getContentPane().add(lbl_nombre1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 120, -1, -1));\n\n lbl_nombre2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lbl_nombre2.setForeground(new java.awt.Color(255, 255, 255));\n lbl_nombre2.setText(\"Marca:\");\n getContentPane().add(lbl_nombre2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 180, -1, -1));\n\n lbl_nombre3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lbl_nombre3.setForeground(new java.awt.Color(255, 255, 255));\n lbl_nombre3.setText(\"Modelo:\");\n getContentPane().add(lbl_nombre3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 240, -1, -1));\n\n lbl_nombre4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lbl_nombre4.setForeground(new java.awt.Color(255, 255, 255));\n lbl_nombre4.setText(\"Número de serie:\");\n getContentPane().add(lbl_nombre4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 300, -1, -1));\n\n lbl_nombre5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n lbl_nombre5.setForeground(new java.awt.Color(255, 255, 255));\n lbl_nombre5.setText(\"Daño reportado y observaciones:\");\n getContentPane().add(lbl_nombre5, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 60, -1, -1));\n\n txt_nombreCliente.setBackground(new java.awt.Color(153, 153, 255));\n txt_nombreCliente.setFont(new java.awt.Font(\"Arial\", 1, 16)); // NOI18N\n txt_nombreCliente.setForeground(new java.awt.Color(255, 255, 255));\n txt_nombreCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txt_nombreCliente.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n getContentPane().add(txt_nombreCliente, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, 210, -1));\n\n txt_modelo.setBackground(new java.awt.Color(153, 153, 255));\n txt_modelo.setFont(new java.awt.Font(\"Arial\", 1, 16)); // NOI18N\n txt_modelo.setForeground(new java.awt.Color(255, 255, 255));\n txt_modelo.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txt_modelo.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n getContentPane().add(txt_modelo, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, 210, -1));\n\n txt_numSerie.setBackground(new java.awt.Color(153, 153, 255));\n txt_numSerie.setFont(new java.awt.Font(\"Arial\", 1, 16)); // NOI18N\n txt_numSerie.setForeground(new java.awt.Color(255, 255, 255));\n txt_numSerie.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txt_numSerie.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n getContentPane().add(txt_numSerie, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 320, 210, -1));\n\n cmb_tipoEquipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Laptop\", \"Desktop\", \"Impresora\", \"Multifuncional\" }));\n getContentPane().add(cmb_tipoEquipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));\n\n cmb_marca.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Acer\", \"Alienware\", \"Apple\", \"Asus\", \"Brother\", \"Dell\", \"HP\", \"Lenovo\", \"Samsung\", \"Toshiba\", \"Xerox\" }));\n getContentPane().add(cmb_marca, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, -1, -1));\n\n jScrollPane1.setViewportView(txp_observaciones);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 80, 330, 230));\n\n btn_registrar.setBackground(new java.awt.Color(153, 153, 255));\n btn_registrar.setFont(new java.awt.Font(\"Arial Narrow\", 0, 18)); // NOI18N\n btn_registrar.setForeground(new java.awt.Color(255, 255, 255));\n btn_registrar.setText(\"Registrar Equipo\");\n btn_registrar.setBorder(null);\n btn_registrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_registrarActionPerformed(evt);\n }\n });\n getContentPane().add(btn_registrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 310, 210, 35));\n\n lbl_footer.setText(\"Creado por Christian Elier De la Paz Barajas ©\");\n getContentPane().add(lbl_footer, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 390, -1, -1));\n getContentPane().add(lbl_wallpaper, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 630, 445));\n\n pack();\n }",
"public TicketCambio() {\n initComponents();\n parteticket();\n TxtCabezera1.setText(Cabezera1);\n TxtCabezera2.setText(Cabezera2);\n TxtCabezera3.setText(Cabezera3);\n TxtCabezera4.setText(Cabezera4);\n TxtCabezera5.setText(Cabezera5);\n this.setResizable(false); \n TxtPie1.setText(Pie1);\n TxtPie2.setText(Pie2);\n TxtPie3.setText(Pie3);\n TxtPie4.setText(Pie4);\n TxtPie5.setText(Pie5); \n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n tempo_final = new javax.swing.JLabel();\n btn_algoritmo_genetico = new javax.swing.JButton();\n btn_a_estrela = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n algoritmo_genetico = new javax.swing.JPanel();\n tamanho_tabuleiro = new javax.swing.JTextField();\n tamanho_populacao = new javax.swing.JTextField();\n taxa_mutacao = new javax.swing.JTextField();\n evolucao = new javax.swing.JTextField();\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 btn_executar_genetico = new javax.swing.JButton();\n tempo_execucao_genetico = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n a_estrela = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n tamanho_tabuleiro_1 = new javax.swing.JTextField();\n btn_executar_a = new javax.swing.JButton();\n tempo_execucao_a = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n\n tempo_final.setText(\"Tempo de execução: \");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n btn_algoritmo_genetico.setText(\"Algoritmo Genético\");\n btn_algoritmo_genetico.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_algoritmo_geneticoActionPerformed(evt);\n }\n });\n\n btn_a_estrela.setText(\"A*\");\n btn_a_estrela.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_a_estrelaActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Escolha o algoritmo:\");\n\n algoritmo_genetico.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Algoritmo Genético\"));\n\n tamanho_tabuleiro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tamanho_tabuleiroActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Tamanho Tabuleiro\");\n\n jLabel3.setText(\"Tamanho População\");\n\n jLabel4.setText(\"Taxa de mutação\");\n\n jLabel5.setText(\"Evolução\");\n\n btn_executar_genetico.setText(\"Executar\");\n btn_executar_genetico.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_executar_geneticoActionPerformed(evt);\n }\n });\n\n tempo_execucao_genetico.setEditable(false);\n\n jLabel8.setText(\"Tempo de execução (ms):\");\n\n javax.swing.GroupLayout algoritmo_geneticoLayout = new javax.swing.GroupLayout(algoritmo_genetico);\n algoritmo_genetico.setLayout(algoritmo_geneticoLayout);\n algoritmo_geneticoLayout.setHorizontalGroup(\n algoritmo_geneticoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(algoritmo_geneticoLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(algoritmo_geneticoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tempo_execucao_genetico)\n .addComponent(tamanho_tabuleiro)\n .addComponent(tamanho_populacao)\n .addComponent(taxa_mutacao)\n .addComponent(evolucao)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, algoritmo_geneticoLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btn_executar_genetico, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(algoritmo_geneticoLayout.createSequentialGroup()\n .addGroup(algoritmo_geneticoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel5)\n .addComponent(jLabel8))\n .addGap(0, 84, Short.MAX_VALUE)))\n .addContainerGap())\n );\n algoritmo_geneticoLayout.setVerticalGroup(\n algoritmo_geneticoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(algoritmo_geneticoLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tamanho_tabuleiro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tamanho_populacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(taxa_mutacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(evolucao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tempo_execucao_genetico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btn_executar_genetico)\n .addContainerGap())\n );\n\n a_estrela.setBorder(javax.swing.BorderFactory.createTitledBorder(\"A*\"));\n\n jLabel6.setText(\"Tamanho Tabuleiro\");\n\n btn_executar_a.setText(\"Executar\");\n btn_executar_a.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_executar_aActionPerformed(evt);\n }\n });\n\n tempo_execucao_a.setEditable(false);\n tempo_execucao_a.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tempo_execucao_aActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Tempo de execução (ms):\");\n\n javax.swing.GroupLayout a_estrelaLayout = new javax.swing.GroupLayout(a_estrela);\n a_estrela.setLayout(a_estrelaLayout);\n a_estrelaLayout.setHorizontalGroup(\n a_estrelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(a_estrelaLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(a_estrelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tamanho_tabuleiro_1)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, a_estrelaLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btn_executar_a, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(tempo_execucao_a)\n .addGroup(a_estrelaLayout.createSequentialGroup()\n .addGroup(a_estrelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel7))\n .addGap(0, 43, Short.MAX_VALUE)))\n .addContainerGap())\n );\n a_estrelaLayout.setVerticalGroup(\n a_estrelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(a_estrelaLayout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tamanho_tabuleiro_1, 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(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tempo_execucao_a, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btn_executar_a)\n .addContainerGap())\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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1)\n .addComponent(btn_algoritmo_genetico, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_a_estrela, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(44, 44, 44)\n .addComponent(a_estrela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addComponent(algoritmo_genetico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(23, 23, 23))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(a_estrela, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(btn_algoritmo_genetico, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(25, 25, 25)\n .addComponent(btn_a_estrela, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(algoritmo_genetico, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n pack();\n }",
"public CadastroProdutoNew() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n botao_cadastrar = new javax.swing.JButton();\n botao_sair = new javax.swing.JButton();\n campo_nome = new javax.swing.JTextField();\n campo_sobrenome = new javax.swing.JTextField();\n campo_telefone = new javax.swing.JTextField();\n campo_senha = new javax.swing.JTextField();\n icone1 = new javax.swing.JLabel();\n icone = new javax.swing.JLabel();\n fundo = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n botao_cadastrar.setBackground(new java.awt.Color(86, 131, 176));\n botao_cadastrar.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n botao_cadastrar.setForeground(new java.awt.Color(255, 255, 255));\n botao_cadastrar.setText(\"Cadastrar\");\n botao_cadastrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botao_cadastrarActionPerformed(evt);\n }\n });\n getContentPane().add(botao_cadastrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 660, 150, 50));\n\n botao_sair.setBackground(new java.awt.Color(86, 131, 176));\n botao_sair.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n botao_sair.setForeground(new java.awt.Color(255, 255, 255));\n botao_sair.setText(\"Sair\");\n botao_sair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botao_sairActionPerformed(evt);\n }\n });\n getContentPane().add(botao_sair, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 660, 150, 50));\n\n campo_nome.setBackground(new java.awt.Color(255, 255, 255));\n campo_nome.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n campo_nome.setText(\"Nome\");\n campo_nome.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 3, 0, new java.awt.Color(86, 131, 176)));\n getContentPane().add(campo_nome, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 350, 40));\n\n campo_sobrenome.setBackground(new java.awt.Color(255, 255, 255));\n campo_sobrenome.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n campo_sobrenome.setText(\"Sobrenome\");\n campo_sobrenome.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 3, 0, new java.awt.Color(86, 131, 176)));\n getContentPane().add(campo_sobrenome, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 320, 350, 40));\n\n campo_telefone.setBackground(new java.awt.Color(255, 255, 255));\n campo_telefone.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n campo_telefone.setText(\"Telefone\");\n campo_telefone.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 3, 0, new java.awt.Color(86, 131, 176)));\n getContentPane().add(campo_telefone, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 390, 350, 40));\n\n campo_senha.setBackground(new java.awt.Color(255, 255, 255));\n campo_senha.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n campo_senha.setText(\"Senha\");\n campo_senha.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 3, 0, new java.awt.Color(86, 131, 176)));\n getContentPane().add(campo_senha, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 470, 350, 40));\n\n icone1.setFont(new java.awt.Font(\"Source Code Pro Semibold\", 1, 20)); // NOI18N\n icone1.setForeground(new java.awt.Color(86, 131, 176));\n icone1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icones/logo-2.png\"))); // NOI18N\n icone1.setText(\"HAE\");\n getContentPane().add(icone1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, 220, 70));\n\n icone.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n icone.setForeground(new java.awt.Color(255, 51, 51));\n icone.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icones/Secretário.png\"))); // NOI18N\n getContentPane().add(icone, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 80, 170, 160));\n\n fundo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/vyghyjkghkghk.png\"))); // NOI18N\n getContentPane().add(fundo, new org.netbeans.lib.awtextra.AbsoluteConstraints(-3, -4, 1200, 800));\n\n pack();\n }",
"public Inicio() {\n initComponents();\n setIconImage(new ImageIcon(getClass().getResource(\"/imagenes/iconogira.png\")).getImage());\n this.setLocationRelativeTo(null);\n this.setTitle(\"GIIA\");\n \n DefaultListModel<String> model = new DefaultListModel<>();\n jListIntegrantes.setModel(model);\n jTextFieldMediaTiempoEst.setEditable(false);\n jTextFieldMediaTiempoReal.setEditable(false);\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 jLabel2 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jpeso = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jtalla = new javax.swing.JTextField();\n jSeparator2 = new javax.swing.JSeparator();\n jpresion = new javax.swing.JTextField();\n jSeparator3 = new javax.swing.JSeparator();\n jScrollPane2 = new javax.swing.JScrollPane();\n area = new javax.swing.JTextArea();\n jLabel12 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jnombre = new javax.swing.JTextField();\n jSeparator4 = new javax.swing.JSeparator();\n enfer = new javax.swing.JComboBox<>();\n tatuajes = new javax.swing.JComboBox<>();\n transfusi = new javax.swing.JComboBox<>();\n jLabel16 = new javax.swing.JLabel();\n jbutonguardar = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/ecuato.png\"))); // NOI18N\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(820, 180, -1, 110));\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icons8_Multiply_32px.png\"))); // NOI18N\n jLabel8.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel8MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(1200, 10, -1, -1));\n\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icons8_Expand_Arrow_32px.png\"))); // NOI18N\n jLabel15.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel15MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(1130, 10, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel6.setText(\"Nuevo Registro\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 10, -1, -1));\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/cruz 1.png\"))); // NOI18N\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, -20, 1220, 300));\n\n jLabel3.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel3.setText(\"Talla\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 120, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel4.setText(\"Peso\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 80, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel5.setText(\"Presion Arterial\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 160, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel7.setText(\"Tatuajes\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 200, -1, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel9.setText(\"Transfusion de Sangre\");\n jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 240, -1, -1));\n\n jLabel10.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel10.setText(\"Enfermedad Trasmision Sexual\");\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 290, -1, -1));\n\n jpeso.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n jpeso.setBorder(null);\n jpeso.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jpesoMouseExited(evt);\n }\n });\n jpeso.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jpesoActionPerformed(evt);\n }\n });\n jPanel1.add(jpeso, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 80, 190, 30));\n\n jSeparator1.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 70, 210, 10));\n\n jtalla.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n jtalla.setBorder(null);\n jtalla.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtallaActionPerformed(evt);\n }\n });\n jPanel1.add(jtalla, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 120, 200, 30));\n\n jSeparator2.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 150, 210, 10));\n\n jpresion.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n jpresion.setBorder(null);\n jpresion.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jpresionMouseExited(evt);\n }\n });\n jpresion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jpresionActionPerformed(evt);\n }\n });\n jPanel1.add(jpresion, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 160, 190, 30));\n\n jSeparator3.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 190, 210, 10));\n\n area.setColumns(20);\n area.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n area.setRows(5);\n jScrollPane2.setViewportView(area);\n\n jPanel1.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 290, 650, 200));\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/delete.png\"))); // NOI18N\n jLabel12.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel12MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 370, -1, -1));\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/new-user.png\"))); // NOI18N\n jLabel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel11MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 370, -1, -1));\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/list-button.png\"))); // NOI18N\n jLabel13.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel13MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 400, -1, 60));\n\n jLabel14.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel14.setText(\"Nombre\");\n jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 40, -1, -1));\n\n jnombre.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n jnombre.setBorder(null);\n jnombre.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jnombreMouseExited(evt);\n }\n });\n jnombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jnombreActionPerformed(evt);\n }\n });\n jPanel1.add(jnombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 40, 190, 30));\n\n jSeparator4.setBackground(new java.awt.Color(0, 0, 0));\n jPanel1.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 110, 210, 10));\n\n enfer.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Si\", \"No\" }));\n enfer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n enferActionPerformed(evt);\n }\n });\n jPanel1.add(enfer, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 280, -1, -1));\n\n tatuajes.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Si\", \"No\" }));\n tatuajes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tatuajesActionPerformed(evt);\n }\n });\n jPanel1.add(tatuajes, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 200, -1, -1));\n\n transfusi.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Si\", \"No\" }));\n transfusi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n transfusiActionPerformed(evt);\n }\n });\n jPanel1.add(transfusi, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 240, -1, -1));\n\n jLabel16.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/male.png\"))); // NOI18N\n jLabel16.setText(\"jLabel16\");\n jLabel16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel16MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 360, 70, 80));\n\n jbutonguardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/save.png\"))); // NOI18N\n jbutonguardar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jbutonguardar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jbutonguardarMouseClicked(evt);\n }\n });\n jPanel1.add(jbutonguardar, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 260, -1, -1));\n\n jLabel17.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 18)); // NOI18N\n jLabel17.setText(\"Guardar\");\n jPanel1.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 340, -1, -1));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1270, 500));\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel7 = new javax.swing.JLabel();\n add_info_lab = new rsbuttom.RSButtonMetro();\n listar_info_lab = new rsbuttom.RSButtonMetro();\n panel_contenedor = new javax.swing.JPanel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel7.setFont(new java.awt.Font(\"Dialog\", 1, 48)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(128, 128, 131));\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Gestionar Información del Laboratorio\");\n\n add_info_lab.setBackground(new java.awt.Color(239, 238, 244));\n add_info_lab.setForeground(new java.awt.Color(128, 128, 131));\n add_info_lab.setText(\"Añadir\");\n add_info_lab.setColorHover(new java.awt.Color(204, 204, 204));\n add_info_lab.setColorNormal(new java.awt.Color(239, 238, 244));\n add_info_lab.setColorPressed(new java.awt.Color(204, 204, 204));\n add_info_lab.setColorTextHover(new java.awt.Color(128, 128, 131));\n add_info_lab.setColorTextNormal(new java.awt.Color(128, 128, 131));\n add_info_lab.setColorTextPressed(new java.awt.Color(128, 128, 131));\n add_info_lab.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n add_info_lab.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n add_info_lab.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n add_info_lab.setIconTextGap(25);\n add_info_lab.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n add_info_labMousePressed(evt);\n }\n });\n add_info_lab.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n add_info_labActionPerformed(evt);\n }\n });\n\n listar_info_lab.setBackground(new java.awt.Color(239, 238, 244));\n listar_info_lab.setForeground(new java.awt.Color(128, 128, 131));\n listar_info_lab.setText(\"Listar\");\n listar_info_lab.setColorHover(new java.awt.Color(204, 204, 204));\n listar_info_lab.setColorNormal(new java.awt.Color(239, 238, 244));\n listar_info_lab.setColorPressed(new java.awt.Color(204, 204, 204));\n listar_info_lab.setColorTextHover(new java.awt.Color(128, 128, 131));\n listar_info_lab.setColorTextNormal(new java.awt.Color(128, 128, 131));\n listar_info_lab.setColorTextPressed(new java.awt.Color(128, 128, 131));\n listar_info_lab.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n listar_info_lab.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n listar_info_lab.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n listar_info_lab.setIconTextGap(25);\n listar_info_lab.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n listar_info_labMousePressed(evt);\n }\n });\n listar_info_lab.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n listar_info_labActionPerformed(evt);\n }\n });\n\n panel_contenedor.setBackground(new java.awt.Color(255, 255, 255));\n panel_contenedor.setLayout(new javax.swing.BoxLayout(panel_contenedor, javax.swing.BoxLayout.LINE_AXIS));\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(panel_contenedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(listar_info_lab, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(add_info_lab, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_info_lab, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(listar_info_lab, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panel_contenedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n apagarVenda = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n jLabel36 = new javax.swing.JLabel();\n lucro = new javax.swing.JTextField();\n jLabel34 = new javax.swing.JLabel();\n codigoCliente = new javax.swing.JTextField();\n custoNaMadri = new javax.swing.JTextField();\n jLabel35 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n valorLiquidoML = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n dataVenda = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n precoVendido = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n codigoPeca = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n cadastroObservacoes = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n tarifaDoML = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n porcentagemDoMercadoLivre = new javax.swing.JTextField();\n quantidadeVendida = new javax.swing.JTextField();\n botAtualizar = new javax.swing.JButton();\n botaoEntrarIniciall1 = new javax.swing.JButton();\n nomePeca = new javax.swing.JTextField();\n valorFrete = new javax.swing.JTextField();\n jLabel30 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel37 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n mostrarNivel = new javax.swing.JLabel();\n acessoUser = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"EDITAR VENDA\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n });\n getContentPane().setLayout(null);\n\n apagarVenda.setBackground(new java.awt.Color(0, 0, 0));\n apagarVenda.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n apagarVenda.setForeground(new java.awt.Color(255, 255, 255));\n apagarVenda.setText(\"APAGAR\");\n apagarVenda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n apagarVendaActionPerformed(evt);\n }\n });\n apagarVenda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n apagarVendaKeyPressed(evt);\n }\n });\n getContentPane().add(apagarVenda);\n apagarVenda.setBounds(300, 640, 160, 40);\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/APAGAR.png\"))); // NOI18N\n getContentPane().add(jLabel14);\n jLabel14.setBounds(440, 610, 80, 70);\n\n jLabel36.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel36.setForeground(new java.awt.Color(255, 255, 255));\n jLabel36.setText(\"LUCRO\");\n getContentPane().add(jLabel36);\n jLabel36.setBounds(280, 350, 70, 17);\n\n lucro.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n lucro.setText(\"0,00\");\n lucro.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n lucroFocusGained(evt);\n }\n });\n lucro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n lucroActionPerformed(evt);\n }\n });\n lucro.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n lucroKeyPressed(evt);\n }\n });\n getContentPane().add(lucro);\n lucro.setBounds(280, 380, 140, 30);\n\n jLabel34.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel34.setForeground(new java.awt.Color(255, 255, 255));\n jLabel34.setText(\"CÓDIGO DA VENDA\");\n getContentPane().add(jLabel34);\n jLabel34.setBounds(480, 350, 180, 17);\n\n codigoCliente.setEditable(false);\n codigoCliente.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n codigoCliente.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n codigoClienteFocusGained(evt);\n }\n });\n codigoCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n codigoClienteActionPerformed(evt);\n }\n });\n codigoCliente.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n codigoClienteKeyPressed(evt);\n }\n });\n getContentPane().add(codigoCliente);\n codigoCliente.setBounds(480, 380, 140, 30);\n\n custoNaMadri.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n custoNaMadri.setText(\"0,00\");\n custoNaMadri.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n custoNaMadriFocusGained(evt);\n }\n });\n custoNaMadri.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n custoNaMadriActionPerformed(evt);\n }\n });\n custoNaMadri.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n custoNaMadriKeyPressed(evt);\n }\n });\n getContentPane().add(custoNaMadri);\n custoNaMadri.setBounds(30, 380, 190, 30);\n\n jLabel35.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel35.setForeground(new java.awt.Color(255, 255, 255));\n jLabel35.setText(\"PREÇO DE CUSTO NA MADRI\");\n getContentPane().add(jLabel35);\n jLabel35.setBounds(30, 350, 210, 17);\n\n jLabel28.setFont(new java.awt.Font(\"Tahoma\", 1, 21)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(255, 255, 255));\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"EDITAR VENDA\");\n getContentPane().add(jLabel28);\n jLabel28.setBounds(260, 10, 320, 60);\n\n valorLiquidoML.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n valorLiquidoML.setText(\"0,00\");\n valorLiquidoML.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n valorLiquidoMLFocusGained(evt);\n }\n });\n valorLiquidoML.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n valorLiquidoMLActionPerformed(evt);\n }\n });\n valorLiquidoML.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n valorLiquidoMLKeyPressed(evt);\n }\n });\n getContentPane().add(valorLiquidoML);\n valorLiquidoML.setBounds(480, 300, 140, 30);\n\n jLabel29.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel29.setForeground(new java.awt.Color(255, 255, 255));\n jLabel29.setText(\"VALOR LÍQUIDO DO MERCADO LIVRE\");\n getContentPane().add(jLabel29);\n jLabel29.setBounds(480, 270, 270, 17);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"PORCENTAGEM DO MERCADO LIVRE\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(480, 190, 270, 17);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"DATA\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(280, 110, 100, 17);\n\n dataVenda.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n dataVenda.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n dataVendaFocusGained(evt);\n }\n });\n dataVenda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n dataVendaKeyPressed(evt);\n }\n });\n getContentPane().add(dataVenda);\n dataVenda.setBounds(280, 140, 140, 30);\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"QUANTIDADE VENDIDA\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(480, 110, 190, 17);\n\n precoVendido.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n precoVendido.setText(\"0,00\");\n precoVendido.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n precoVendidoFocusGained(evt);\n }\n });\n precoVendido.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n precoVendidoKeyPressed(evt);\n }\n });\n getContentPane().add(precoVendido);\n precoVendido.setBounds(280, 220, 140, 30);\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 0, 0));\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setText(\"*\");\n getContentPane().add(jLabel15);\n jLabel15.setBounds(230, 330, 40, 60);\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(255, 0, 0));\n jLabel17.setText(\"*\");\n getContentPane().add(jLabel17);\n jLabel17.setBounds(330, 100, 30, 40);\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(255, 0, 0));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"*\");\n getContentPane().add(jLabel18);\n jLabel18.setBounds(660, 110, 20, 22);\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(255, 0, 0));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\"*\");\n getContentPane().add(jLabel16);\n jLabel16.setBounds(90, 100, 30, 40);\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(255, 255, 255));\n jLabel19.setText(\"CÓDIGO\");\n getContentPane().add(jLabel19);\n jLabel19.setBounds(30, 110, 70, 17);\n\n codigoPeca.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n codigoPeca.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n codigoPecaFocusLost(evt);\n }\n });\n codigoPeca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n codigoPecaKeyPressed(evt);\n }\n });\n getContentPane().add(codigoPeca);\n codigoPeca.setBounds(30, 140, 130, 30);\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/MER-LIVRE.png\"))); // NOI18N\n getContentPane().add(jLabel5);\n jLabel5.setBounds(715, 5, 70, 75);\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(255, 255, 255));\n jLabel21.setText(\"OBSERVAÇÕES\");\n getContentPane().add(jLabel21);\n jLabel21.setBounds(30, 430, 200, 17);\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(255, 255, 255));\n jLabel20.setText(\"TARIFA DO MERCADO LIVRE\");\n getContentPane().add(jLabel20);\n jLabel20.setBounds(30, 270, 210, 17);\n\n cadastroObservacoes.setColumns(20);\n cadastroObservacoes.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n cadastroObservacoes.setRows(5);\n cadastroObservacoes.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cadastroObservacoesKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(cadastroObservacoes);\n\n getContentPane().add(jScrollPane1);\n jScrollPane1.setBounds(30, 460, 730, 140);\n\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/Sem título.png\"))); // NOI18N\n jLabel6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n getContentPane().add(jLabel6);\n jLabel6.setBounds(-4, 0, 150, 80);\n\n tarifaDoML.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tarifaDoML.setText(\"0,00\");\n tarifaDoML.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n tarifaDoMLFocusGained(evt);\n }\n });\n tarifaDoML.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tarifaDoMLKeyPressed(evt);\n }\n });\n getContentPane().add(tarifaDoML);\n tarifaDoML.setBounds(30, 300, 140, 30);\n\n jLabel22.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(255, 255, 255));\n jLabel22.setText(\"PREÇO DE VENDA\");\n getContentPane().add(jLabel22);\n jLabel22.setBounds(280, 190, 150, 17);\n\n porcentagemDoMercadoLivre.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n porcentagemDoMercadoLivre.setText(\"11,00\");\n porcentagemDoMercadoLivre.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n porcentagemDoMercadoLivreFocusGained(evt);\n }\n });\n porcentagemDoMercadoLivre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n porcentagemDoMercadoLivreActionPerformed(evt);\n }\n });\n porcentagemDoMercadoLivre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n porcentagemDoMercadoLivreKeyPressed(evt);\n }\n });\n getContentPane().add(porcentagemDoMercadoLivre);\n porcentagemDoMercadoLivre.setBounds(480, 220, 140, 30);\n\n quantidadeVendida.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n quantidadeVendida.setText(\"1\");\n quantidadeVendida.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n quantidadeVendidaFocusGained(evt);\n }\n });\n quantidadeVendida.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n quantidadeVendidaKeyPressed(evt);\n }\n });\n getContentPane().add(quantidadeVendida);\n quantidadeVendida.setBounds(480, 140, 140, 30);\n\n botAtualizar.setBackground(new java.awt.Color(0, 0, 0));\n botAtualizar.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n botAtualizar.setForeground(new java.awt.Color(255, 255, 255));\n botAtualizar.setText(\"ATUALIZAR\");\n botAtualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botAtualizarActionPerformed(evt);\n }\n });\n botAtualizar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n botAtualizarKeyPressed(evt);\n }\n });\n getContentPane().add(botAtualizar);\n botAtualizar.setBounds(30, 640, 160, 40);\n\n botaoEntrarIniciall1.setBackground(new java.awt.Color(0, 0, 0));\n botaoEntrarIniciall1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n botaoEntrarIniciall1.setForeground(new java.awt.Color(255, 255, 255));\n botaoEntrarIniciall1.setText(\"PESQUISAR\");\n botaoEntrarIniciall1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoEntrarIniciall1ActionPerformed(evt);\n }\n });\n botaoEntrarIniciall1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n botaoEntrarIniciall1KeyPressed(evt);\n }\n });\n getContentPane().add(botaoEntrarIniciall1);\n botaoEntrarIniciall1.setBounds(560, 640, 160, 40);\n\n nomePeca.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n nomePeca.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n nomePecaFocusGained(evt);\n }\n });\n nomePeca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n nomePecaKeyPressed(evt);\n }\n });\n getContentPane().add(nomePeca);\n nomePeca.setBounds(30, 220, 210, 30);\n\n valorFrete.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n valorFrete.setText(\"0,00\");\n valorFrete.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n valorFreteFocusGained(evt);\n }\n });\n valorFrete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n valorFreteActionPerformed(evt);\n }\n });\n valorFrete.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n valorFreteKeyPressed(evt);\n }\n });\n getContentPane().add(valorFrete);\n valorFrete.setBounds(280, 300, 140, 30);\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel30.setForeground(new java.awt.Color(255, 255, 255));\n jLabel30.setText(\"VALOR DO FRETE\");\n getContentPane().add(jLabel30);\n jLabel30.setBounds(280, 270, 140, 17);\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(255, 255, 255));\n jLabel23.setText(\"NOME\");\n getContentPane().add(jLabel23);\n jLabel23.setBounds(30, 190, 150, 17);\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel25.setForeground(new java.awt.Color(255, 0, 0));\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"*\");\n getContentPane().add(jLabel25);\n jLabel25.setBounds(400, 170, 40, 60);\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel31.setForeground(new java.awt.Color(255, 0, 0));\n jLabel31.setText(\"*\");\n getContentPane().add(jLabel31);\n jLabel31.setBounds(750, 160, 30, 80);\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/fundo preto.png\"))); // NOI18N\n jLabel12.setMinimumSize(new java.awt.Dimension(1057, 340));\n jLabel12.setPreferredSize(new java.awt.Dimension(1057, 350));\n getContentPane().add(jLabel12);\n jLabel12.setBounds(-80, 4, 760, 77);\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(255, 0, 0));\n jLabel24.setText(\"*\");\n getContentPane().add(jLabel24);\n jLabel24.setBounds(90, 170, 30, 60);\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/PROCURA HEHE.png\"))); // NOI18N\n getContentPane().add(jLabel13);\n jLabel13.setBounds(700, 610, 80, 70);\n\n jLabel27.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel27.setForeground(new java.awt.Color(255, 0, 0));\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"*\");\n getContentPane().add(jLabel27);\n jLabel27.setBounds(230, 250, 40, 60);\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/fundo preto.png\"))); // NOI18N\n jLabel1.setMinimumSize(new java.awt.Dimension(1057, 340));\n jLabel1.setPreferredSize(new java.awt.Dimension(1057, 350));\n getContentPane().add(jLabel1);\n jLabel1.setBounds(140, 4, 760, 77);\n\n jLabel37.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel37.setForeground(new java.awt.Color(255, 0, 0));\n jLabel37.setText(\"*\");\n getContentPane().add(jLabel37);\n jLabel37.setBounds(420, 250, 30, 60);\n\n jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/atua.png\"))); // NOI18N\n getContentPane().add(jLabel26);\n jLabel26.setBounds(170, 610, 80, 70);\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/FUNDO AMARELO.jpg\"))); // NOI18N\n getContentPane().add(jLabel11);\n jLabel11.setBounds(0, -331, 810, 430);\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel7);\n jLabel7.setBounds(310, 10, 610, 530);\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel8);\n jLabel8.setBounds(320, 340, 570, 530);\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel9);\n jLabel9.setBounds(-20, 450, 570, 530);\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel10);\n jLabel10.setBounds(0, 0, 570, 530);\n\n mostrarNivel.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n mostrarNivel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n mostrarNivel.setText(\"5\");\n getContentPane().add(mostrarNivel);\n mostrarNivel.setBounds(520, 130, 50, 70);\n\n acessoUser.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n acessoUser.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n acessoUser.setText(\"ADMIN\");\n getContentPane().add(acessoUser);\n acessoUser.setBounds(520, 220, 70, 60);\n\n setBounds(427, 5, 790, 716);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Cuatrimestre = new javax.swing.JButton();\n Docentes = new javax.swing.JButton();\n HorariosExternos = new javax.swing.JButton();\n HorariosAlumnos = new javax.swing.JButton();\n Usuarios = new javax.swing.JButton();\n GeneraciondeHorarios = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n SGH = new javax.swing.JLabel();\n LogoUnipoli = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n HorariosAlumnos1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jButton6 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\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 Modificarnombrecompletocampo = new javax.swing.JTextField();\n Modificardireccioncampo = new javax.swing.JTextField();\n Modificartelefonocampo = new javax.swing.JTextField();\n Modificarcorreocampo = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n Modificarespecialidadcampo = new javax.swing.JTextField();\n Modificartentativas1campo = new javax.swing.JTextField();\n jButton9 = new javax.swing.JButton();\n jButton10 = new javax.swing.JButton();\n jLabel12 = new javax.swing.JLabel();\n Modificartentativas2campo = new javax.swing.JTextField();\n barrauno = new javax.swing.JScrollBar();\n Modificartentativas5campo = new javax.swing.JTextField();\n Modificartentativas3campo = new javax.swing.JTextField();\n Modificartentativas4campo = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setAlwaysOnTop(true);\n setBackground(new java.awt.Color(153, 255, 153));\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n Cuatrimestre.setBackground(new java.awt.Color(255, 102, 0));\n Cuatrimestre.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n Cuatrimestre.setText(\"Cuatrimestre\");\n Cuatrimestre.setAlignmentX(0.1F);\n Cuatrimestre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CuatrimestreActionPerformed(evt);\n }\n });\n\n Docentes.setBackground(new java.awt.Color(255, 102, 0));\n Docentes.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n Docentes.setText(\"Docentes\");\n Docentes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n DocentesActionPerformed(evt);\n }\n });\n\n HorariosExternos.setBackground(new java.awt.Color(255, 102, 0));\n HorariosExternos.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n HorariosExternos.setText(\"Horarios Externos\");\n HorariosExternos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n HorariosExternosActionPerformed(evt);\n }\n });\n\n HorariosAlumnos.setBackground(new java.awt.Color(255, 102, 0));\n HorariosAlumnos.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n HorariosAlumnos.setText(\"Horarios Alumnos\");\n HorariosAlumnos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n HorariosAlumnosActionPerformed(evt);\n }\n });\n\n Usuarios.setBackground(new java.awt.Color(255, 102, 0));\n Usuarios.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n Usuarios.setText(\"Usuarios\");\n Usuarios.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n UsuariosActionPerformed(evt);\n }\n });\n\n GeneraciondeHorarios.setBackground(new java.awt.Color(255, 102, 102));\n GeneraciondeHorarios.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n GeneraciondeHorarios.setText(\"Generación de Horarios\");\n GeneraciondeHorarios.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n GeneraciondeHorariosActionPerformed(evt);\n }\n });\n\n jSeparator1.setForeground(new java.awt.Color(255, 102, 0));\n\n jSeparator2.setForeground(new java.awt.Color(255, 102, 0));\n\n jSeparator3.setForeground(new java.awt.Color(255, 102, 0));\n\n SGH.setFont(new java.awt.Font(\"Franklin Gothic Demi\", 0, 24)); // NOI18N\n SGH.setText(\"SISTEMA DE GESTIÓN DE HORARIOS\");\n\n LogoUnipoli.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/Logo.jpg\"))); // NOI18N\n\n jButton1.setBackground(new java.awt.Color(255, 102, 0));\n jButton1.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jButton1.setText(\"Cerrar sesión\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Nombre del Usuario\");\n\n jLabel2.setFont(new java.awt.Font(\"Arial Black\", 0, 24)); // NOI18N\n jLabel2.setText(\"Página Principal\");\n\n jPanel2.setBackground(new java.awt.Color(255, 102, 0));\n jPanel2.setMaximumSize(new java.awt.Dimension(23767, 32767));\n jPanel2.setPreferredSize(new java.awt.Dimension(860, 25));\n\n jLabel3.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jLabel3.setText(\"Universidad Politecnica de Durango, Area de Desarollo de Software\");\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(394, 394, 394))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 6, Short.MAX_VALUE)\n .addComponent(jLabel3))\n );\n\n HorariosAlumnos1.setBackground(new java.awt.Color(255, 102, 0));\n HorariosAlumnos1.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n HorariosAlumnos1.setText(\"Asignar Materias\");\n HorariosAlumnos1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n HorariosAlumnos1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Arial Black\", 0, 12)); // NOI18N\n jButton2.setText(\"Altas de Docentes\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Arial Black\", 0, 12)); // NOI18N\n jButton3.setText(\"Baja de Docentes\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setFont(new java.awt.Font(\"Arial Black\", 0, 12)); // NOI18N\n jButton4.setText(\"Modificar Docentes\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setFont(new java.awt.Font(\"Arial Black\", 0, 12)); // NOI18N\n jButton5.setText(\"Consultar de Docentes\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jLabel4.setText(\"Docentes\");\n\n jButton6.setFont(new java.awt.Font(\"Arial Black\", 0, 12)); // NOI18N\n jButton6.setText(\"Alta de Disponibilidad\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n jButton7.setFont(new java.awt.Font(\"Arial Black\", 0, 12)); // NOI18N\n jButton7.setText(\"Modificar Disponibilidad\");\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n\n jButton8.setFont(new java.awt.Font(\"Arial Black\", 0, 12)); // NOI18N\n jButton8.setText(\"Bitacora de Modificaciones\");\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jLabel5.setText(\"Nombre Completo\");\n\n jLabel6.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jLabel6.setText(\"Direccion\");\n\n jLabel7.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jLabel7.setText(\"Telefono\");\n\n jLabel8.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jLabel8.setText(\"Correo\");\n\n Modificartelefonocampo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ModificartelefonocampoActionPerformed(evt);\n }\n });\n\n Modificarcorreocampo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ModificarcorreocampoActionPerformed(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Arial Black\", 0, 18)); // NOI18N\n jLabel9.setText(\"Perfil\");\n\n jLabel10.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jLabel10.setText(\"Carrera o Especialidad\");\n\n jLabel11.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jLabel11.setText(\"Materias tentativas a inpartir\");\n\n Modificarespecialidadcampo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ModificarespecialidadcampoActionPerformed(evt);\n }\n });\n\n Modificartentativas1campo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Modificartentativas1campoActionPerformed(evt);\n }\n });\n\n jButton9.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jButton9.setText(\"Cancelar\");\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n\n jButton10.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jButton10.setText(\"Enviar\");\n jButton10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton10ActionPerformed(evt);\n }\n });\n\n jLabel12.setFont(new java.awt.Font(\"Arial Black\", 0, 11)); // NOI18N\n jLabel12.setText(\"Altas Docentes\");\n\n Modificartentativas2campo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Modificartentativas2campoActionPerformed(evt);\n }\n });\n\n barrauno.addAdjustmentListener(new java.awt.event.AdjustmentListener() {\n public void adjustmentValueChanged(java.awt.event.AdjustmentEvent evt) {\n barraunoAdjustmentValueChanged(evt);\n }\n });\n\n Modificartentativas5campo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Modificartentativas5campoActionPerformed(evt);\n }\n });\n\n Modificartentativas3campo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Modificartentativas3campoActionPerformed(evt);\n }\n });\n\n Modificartentativas4campo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Modificartentativas4campoActionPerformed(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 .addComponent(jSeparator1)\n .addComponent(jSeparator2)\n .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1299, Short.MAX_VALUE)\n .addComponent(jSeparator3)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(630, 630, 630))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(527, 527, 527))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(233, 233, 233)\n .addComponent(SGH, javax.swing.GroupLayout.PREFERRED_SIZE, 414, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38)\n .addComponent(LogoUnipoli, javax.swing.GroupLayout.DEFAULT_SIZE, 324, Short.MAX_VALUE)\n .addGap(42, 42, 42)\n .addComponent(jLabel1)\n .addGap(32, 32, 32)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(68, 68, 68)\n .addComponent(Cuatrimestre)\n .addGap(37, 37, 37)\n .addComponent(Docentes, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(50, 50, 50)\n .addComponent(HorariosExternos)\n .addGap(52, 52, 52)\n .addComponent(HorariosAlumnos, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36)\n .addComponent(HorariosAlumnos1, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(39, 39, 39)\n .addComponent(Usuarios, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(41, 41, 41)\n .addComponent(GeneraciondeHorarios))\n .addGroup(layout.createSequentialGroup()\n .addGap(64, 64, 64)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(224, 224, 224)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel10)\n .addComponent(jLabel11))\n .addGap(54, 54, 54)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Modificarespecialidadcampo, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE)\n .addComponent(Modificarcorreocampo)\n .addComponent(Modificartelefonocampo)\n .addComponent(Modificardireccioncampo)\n .addComponent(Modificarnombrecompletocampo))\n .addComponent(Modificartentativas1campo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 389, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Modificartentativas2campo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 389, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Modificartentativas3campo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 389, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Modificartentativas4campo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 389, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Modificartentativas5campo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 389, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(329, 329, 329)\n .addComponent(jLabel9)))\n .addGap(73, 73, 73)\n .addComponent(barrauno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\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 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(605, 605, 605))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton9)\n .addGap(37, 37, 37)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(217, 217, 217))))\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 .addGap(20, 20, 20)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(LogoUnipoli, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jLabel1)))\n .addGap(9, 9, 9))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(SGH, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Cuatrimestre)\n .addComponent(Docentes)\n .addComponent(HorariosExternos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(HorariosAlumnos)\n .addComponent(Usuarios)\n .addComponent(GeneraciondeHorarios)\n .addComponent(HorariosAlumnos1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel12)\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jLabel5)\n .addComponent(Modificarnombrecompletocampo, 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.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton3)\n .addGap(18, 18, 18)\n .addComponent(jButton4)\n .addGap(18, 18, 18)\n .addComponent(jButton5)\n .addGap(18, 18, 18)\n .addComponent(jButton6)\n .addGap(18, 18, 18)\n .addComponent(jButton7)\n .addGap(18, 18, 18)\n .addComponent(jButton8))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(Modificardireccioncampo, 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.LEADING)\n .addComponent(barrauno, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(Modificartelefonocampo, 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(jLabel8)\n .addComponent(Modificarcorreocampo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(Modificarespecialidadcampo, 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(jLabel11)\n .addComponent(Modificartentativas1campo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(9, 9, 9)\n .addComponent(Modificartentativas2campo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Modificartentativas3campo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Modificartentativas4campo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Modificartentativas5campo, 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.LEADING)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }",
"public VistaInicio() {\n initComponents();\n }",
"public Inicio() {\n initComponents();\n vCLientes=controlador.IODatos.cargarClientes();\n escribirArray();\n setIconImage(new ImageIcon(getClass().getResource(\"/Imagenes/2.png\")).getImage());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Volver = new javax.swing.JButton();\n regla1 = new javax.swing.JLabel();\n labelReglas = new javax.swing.JLabel();\n regla6 = new javax.swing.JLabel();\n regla7 = new javax.swing.JLabel();\n regla8 = new javax.swing.JLabel();\n regla9 = new javax.swing.JLabel();\n regla10 = new javax.swing.JLabel();\n regla11 = new javax.swing.JLabel();\n\n setPreferredSize(new java.awt.Dimension(1280, 768));\n\n Volver.setText(\"Volver\");\n Volver.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n VolverActionPerformed(evt);\n }\n });\n\n regla1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n regla1.setText(\"1 - Se necesita un minimo de 3 equipos para jugar y no hay límite máximo (1.000.000.000 equipos Por limitaciones del programa).\");\n\n labelReglas.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n labelReglas.setText(\"REGLAS DEL JUEGO\");\n\n regla6.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n regla6.setText(\"2 - Existen diferentes tipos de equipos. Cada tipo tiene sus propias estadisticas y estilo de juego.\");\n\n regla7.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n regla7.setText(\"3 - Se puede atacar a diferentes equipos con diferentes ataques en la misma ronda.\");\n\n regla8.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n regla8.setText(\"4 - Cuando las vidas de un equipo llegan a 0 este queda eliminado.\");\n\n regla9.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n regla9.setText(\"5 - Los misiles de defensa cuestan el doble.\");\n\n regla10.setFont(new java.awt.Font(\"Tahoma\", 2, 18)); // NOI18N\n regla10.setText(\"Si tenemos 50 misiles y usamos 40 para atacar, solo podremos defendernos con 5 (nos costaria 10 misiles).\");\n\n regla11.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n regla11.setText(\"Ejemplo defensa:\");\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Volver, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(518, 518, 518)\n .addComponent(labelReglas))\n .addGroup(layout.createSequentialGroup()\n .addGap(121, 121, 121)\n .addComponent(regla11)\n .addGap(18, 18, 18)\n .addComponent(regla10)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(62, 62, 62)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(regla9)\n .addComponent(regla8)\n .addComponent(regla7)\n .addComponent(regla6)\n .addComponent(regla1))\n .addContainerGap(69, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(labelReglas)\n .addGap(79, 79, 79)\n .addComponent(regla1)\n .addGap(18, 55, Short.MAX_VALUE)\n .addComponent(regla6)\n .addGap(18, 55, Short.MAX_VALUE)\n .addComponent(regla7)\n .addGap(18, 55, Short.MAX_VALUE)\n .addComponent(regla8)\n .addGap(18, 59, Short.MAX_VALUE)\n .addComponent(regla9)\n .addGap(103, 103, 103)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(regla11)\n .addComponent(regla10))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 143, Short.MAX_VALUE)\n .addComponent(Volver, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n painelFundo = new javax.swing.JPanel();\r\n painel6 = new javax.swing.JPanel();\r\n jLabel28 = new javax.swing.JLabel();\r\n labelcone4 = new javax.swing.JLabel();\r\n jLabel35 = new javax.swing.JLabel();\r\n cilindro_respArea = new javax.swing.JTextField();\r\n cilindro_areaTxtRaio = new javax.swing.JTextField();\r\n cilindro_areaTxtArea = new javax.swing.JTextField();\r\n cilindro_btnArea = new javax.swing.JButton();\r\n cilindro_eixoX = new javax.swing.JTextField();\r\n labelcone5 = new javax.swing.JLabel();\r\n cilindro_eixoY = new javax.swing.JTextField();\r\n labelcone6 = new javax.swing.JLabel();\r\n jLabel45 = new javax.swing.JLabel();\r\n cilindro_respVol = new javax.swing.JTextField();\r\n jLabel58 = new javax.swing.JLabel();\r\n jLabel59 = new javax.swing.JLabel();\r\n jLabel62 = new javax.swing.JLabel();\r\n jLabel63 = new javax.swing.JLabel();\r\n labelcone7 = new javax.swing.JLabel();\r\n labelcone13 = new javax.swing.JLabel();\r\n labelcone14 = new javax.swing.JLabel();\r\n labelcone15 = new javax.swing.JLabel();\r\n PainelBotoes = new javax.swing.JPanel();\r\n linhaHorizontalPainel = new javax.swing.JPanel();\r\n botao1 = new javax.swing.JPanel();\r\n textoBotao1 = new javax.swing.JLabel();\r\n abaBotao1 = new javax.swing.JPanel();\r\n botao1Select = new javax.swing.JPanel();\r\n txtBotaoSelect1 = new javax.swing.JLabel();\r\n titulo1 = new javax.swing.JLabel();\r\n titulo2 = new javax.swing.JLabel();\r\n titulo3 = new javax.swing.JLabel();\r\n titulo5 = new javax.swing.JLabel();\r\n titulo6 = new javax.swing.JLabel();\r\n botao2 = new javax.swing.JPanel();\r\n textoBotao2 = new javax.swing.JLabel();\r\n abaBotao2 = new javax.swing.JPanel();\r\n botao_aba_Triangulo = new javax.swing.JPanel();\r\n txtBotaoSelect2 = new javax.swing.JLabel();\r\n botao3 = new javax.swing.JPanel();\r\n abaBotao3 = new javax.swing.JPanel();\r\n botao3Select = new javax.swing.JPanel();\r\n txtBotaoSelect3 = new javax.swing.JLabel();\r\n textoBotao3 = new javax.swing.JLabel();\r\n botao4 = new javax.swing.JPanel();\r\n abaBotao4 = new javax.swing.JPanel();\r\n botao4Select = new javax.swing.JPanel();\r\n txtBotaoSelect4 = new javax.swing.JLabel();\r\n textoBotao4 = new javax.swing.JLabel();\r\n botao5 = new javax.swing.JPanel();\r\n abaBotao5 = new javax.swing.JPanel();\r\n botao5Select = new javax.swing.JPanel();\r\n txtBotaoSelect5 = new javax.swing.JLabel();\r\n textoBotao5 = new javax.swing.JLabel();\r\n botao6 = new javax.swing.JPanel();\r\n abaBotao6 = new javax.swing.JPanel();\r\n botao6Select = new javax.swing.JPanel();\r\n txtBotaoSelect6 = new javax.swing.JLabel();\r\n textoBotao6 = new javax.swing.JLabel();\r\n botao7 = new javax.swing.JPanel();\r\n abaBotao7 = new javax.swing.JPanel();\r\n botao7Select = new javax.swing.JPanel();\r\n txtBotaoSelect7 = new javax.swing.JLabel();\r\n textoBotao7 = new javax.swing.JLabel();\r\n botao8 = new javax.swing.JPanel();\r\n abaBotao8 = new javax.swing.JPanel();\r\n botao8Select = new javax.swing.JPanel();\r\n txtBotaoSelect8 = new javax.swing.JLabel();\r\n textoBotao8 = new javax.swing.JLabel();\r\n painel1 = new javax.swing.JPanel();\r\n caminhoObjetos = new javax.swing.JTextField();\r\n jLabel2 = new javax.swing.JLabel();\r\n jScrollPane2 = new javax.swing.JScrollPane();\r\n telaObjetos = new javax.swing.JTextArea();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel15 = new javax.swing.JLabel();\r\n btnCarregarObjetos = new javax.swing.JButton();\r\n limparCampo = new javax.swing.JButton();\r\n salvar_objetos = new javax.swing.JButton();\r\n painel2 = new javax.swing.JPanel();\r\n jLabel8 = new javax.swing.JLabel();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n jLabel13 = new javax.swing.JLabel();\r\n triangulo_ladoAtxt = new javax.swing.JTextField();\r\n triangulo_ladoBtxt = new javax.swing.JTextField();\r\n triangulo_ladoCtxt = new javax.swing.JTextField();\r\n jLabel9 = new javax.swing.JLabel();\r\n triangulo_resp_perimetro = new javax.swing.JTextField();\r\n triangulo_btn_calcPerimetro = new javax.swing.JButton();\r\n triangulo_alturaTxt = new javax.swing.JTextField();\r\n jLabel14 = new javax.swing.JLabel();\r\n jLabel16 = new javax.swing.JLabel();\r\n triangulo_baseTxt = new javax.swing.JTextField();\r\n triangulo_respAreaTxt = new javax.swing.JTextField();\r\n jLabel10 = new javax.swing.JLabel();\r\n jLabel17 = new javax.swing.JLabel();\r\n triangulo_eixoX = new javax.swing.JTextField();\r\n jLabel18 = new javax.swing.JLabel();\r\n jLabel19 = new javax.swing.JLabel();\r\n triangulo_eixoY = new javax.swing.JTextField();\r\n jLabel50 = new javax.swing.JLabel();\r\n jLabel53 = new javax.swing.JLabel();\r\n labelcone21 = new javax.swing.JLabel();\r\n labelcone22 = new javax.swing.JLabel();\r\n labelcone23 = new javax.swing.JLabel();\r\n labelcone24 = new javax.swing.JLabel();\r\n labelcone25 = new javax.swing.JLabel();\r\n labelcone26 = new javax.swing.JLabel();\r\n labelcone27 = new javax.swing.JLabel();\r\n painel3 = new javax.swing.JPanel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n cone_respVol = new javax.swing.JTextField();\r\n cone_alturaVol = new javax.swing.JTextField();\r\n jLabel31 = new javax.swing.JLabel();\r\n jLabel33 = new javax.swing.JLabel();\r\n cone_areaTotal = new javax.swing.JTextField();\r\n cone_areaRaio = new javax.swing.JTextField();\r\n cone_areaGeratriz = new javax.swing.JTextField();\r\n cone_btnAreaTot = new javax.swing.JButton();\r\n jLabel34 = new javax.swing.JLabel();\r\n cone_eixoY = new javax.swing.JTextField();\r\n cone_eixoX = new javax.swing.JTextField();\r\n jLabel36 = new javax.swing.JLabel();\r\n jLabel32 = new javax.swing.JLabel();\r\n jLabel47 = new javax.swing.JLabel();\r\n jLabel52 = new javax.swing.JLabel();\r\n jLabel37 = new javax.swing.JLabel();\r\n jLabel42 = new javax.swing.JLabel();\r\n jLabel44 = new javax.swing.JLabel();\r\n jLabel68 = new javax.swing.JLabel();\r\n jLabel69 = new javax.swing.JLabel();\r\n painel4 = new javax.swing.JPanel();\r\n paralelepipedo_btnCalcArea = new javax.swing.JButton();\r\n paralelepipedo_alturaArea = new javax.swing.JTextField();\r\n jLabel20 = new javax.swing.JLabel();\r\n paralelepipedo_largArea = new javax.swing.JTextField();\r\n jLabel21 = new javax.swing.JLabel();\r\n paralelepipedo_compArea = new javax.swing.JTextField();\r\n jLabel22 = new javax.swing.JLabel();\r\n jLabel23 = new javax.swing.JLabel();\r\n paralelepipedo_respArea = new javax.swing.JTextField();\r\n jLabel27 = new javax.swing.JLabel();\r\n paralelepipedo_volResp = new javax.swing.JTextField();\r\n jLabel29 = new javax.swing.JLabel();\r\n paralelepipedo_EixoX = new javax.swing.JTextField();\r\n paralelepipedo_EixoY = new javax.swing.JTextField();\r\n jLabel30 = new javax.swing.JLabel();\r\n jLabel54 = new javax.swing.JLabel();\r\n jLabel55 = new javax.swing.JLabel();\r\n jLabel56 = new javax.swing.JLabel();\r\n jLabel57 = new javax.swing.JLabel();\r\n jLabel60 = new javax.swing.JLabel();\r\n jLabel61 = new javax.swing.JLabel();\r\n labelcone16 = new javax.swing.JLabel();\r\n labelcone17 = new javax.swing.JLabel();\r\n labelcone18 = new javax.swing.JLabel();\r\n labelcone19 = new javax.swing.JLabel();\r\n labelcone20 = new javax.swing.JLabel();\r\n painel5 = new javax.swing.JPanel();\r\n jLabel46 = new javax.swing.JLabel();\r\n jLabel48 = new javax.swing.JLabel();\r\n quad_respPer = new javax.swing.JTextField();\r\n labelcone9 = new javax.swing.JLabel();\r\n quad_eixoX = new javax.swing.JTextField();\r\n labelcone10 = new javax.swing.JLabel();\r\n quad_eixoY = new javax.swing.JTextField();\r\n quad_btnArea = new javax.swing.JButton();\r\n jLabel49 = new javax.swing.JLabel();\r\n jLabel51 = new javax.swing.JLabel();\r\n labelcone12 = new javax.swing.JLabel();\r\n quad_respArea = new javax.swing.JTextField();\r\n quad_areaLadoA = new javax.swing.JTextField();\r\n jLabel66 = new javax.swing.JLabel();\r\n jLabel67 = new javax.swing.JLabel();\r\n labelcone28 = new javax.swing.JLabel();\r\n labelcone29 = new javax.swing.JLabel();\r\n labelcone30 = new javax.swing.JLabel();\r\n painel7 = new javax.swing.JPanel();\r\n jLabel6 = new javax.swing.JLabel();\r\n labelcone1 = new javax.swing.JLabel();\r\n jLabel38 = new javax.swing.JLabel();\r\n equacao_x1 = new javax.swing.JTextField();\r\n equacao_A = new javax.swing.JTextField();\r\n equacao_calcular = new javax.swing.JButton();\r\n jLabel39 = new javax.swing.JLabel();\r\n labelcone2 = new javax.swing.JLabel();\r\n equacao_B = new javax.swing.JTextField();\r\n equacao_C = new javax.swing.JTextField();\r\n labelcone3 = new javax.swing.JLabel();\r\n jLabel40 = new javax.swing.JLabel();\r\n equacao_x2 = new javax.swing.JTextField();\r\n jLabel41 = new javax.swing.JLabel();\r\n equacao_Delta = new javax.swing.JTextField();\r\n jLabel64 = new javax.swing.JLabel();\r\n jLabel65 = new javax.swing.JLabel();\r\n painel8 = new javax.swing.JPanel();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"Programa de Calculo\");\r\n setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n setLocation(new java.awt.Point(400, 90));\r\n setMaximumSize(new java.awt.Dimension(720, 560));\r\n setMinimumSize(new java.awt.Dimension(820, 560));\r\n setName(\"janelaPrincipal\"); // NOI18N\r\n setPreferredSize(new java.awt.Dimension(710, 550));\r\n setResizable(false);\r\n setSize(new java.awt.Dimension(710, 550));\r\n\r\n painelFundo.setBackground(new java.awt.Color(255, 255, 255));\r\n painelFundo.setMinimumSize(new java.awt.Dimension(820, 550));\r\n painelFundo.setPreferredSize(new java.awt.Dimension(820, 550));\r\n painelFundo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n painel6.setBackground(new java.awt.Color(220, 123, 103));\r\n painel6.setLayout(null);\r\n\r\n jLabel28.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel28.setText(\"Altura:\");\r\n painel6.add(jLabel28);\r\n jLabel28.setBounds(50, 160, 49, 34);\r\n\r\n labelcone4.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone4.setText(\"Raio:\");\r\n painel6.add(labelcone4);\r\n labelcone4.setBounds(61, 124, 38, 39);\r\n\r\n jLabel35.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel35.setText(\"Area Total:\");\r\n painel6.add(jLabel35);\r\n jLabel35.setBounds(10, 287, 81, 39);\r\n\r\n cilindro_respArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_respAreaActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_respArea);\r\n cilindro_respArea.setBounds(101, 295, 74, 20);\r\n\r\n cilindro_areaTxtRaio.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_areaTxtRaioActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_areaTxtRaio);\r\n cilindro_areaTxtRaio.setBounds(110, 130, 72, 20);\r\n\r\n cilindro_areaTxtArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_areaTxtAreaActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_areaTxtArea);\r\n cilindro_areaTxtArea.setBounds(110, 160, 72, 20);\r\n\r\n cilindro_btnArea.setText(\"Calcular\");\r\n cilindro_btnArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_btnAreaActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_btnArea);\r\n cilindro_btnArea.setBounds(237, 346, 90, 23);\r\n\r\n cilindro_eixoX.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_eixoXActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_eixoX);\r\n cilindro_eixoX.setBounds(113, 30, 72, 20);\r\n\r\n labelcone5.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone5.setText(\"m²\");\r\n painel6.add(labelcone5);\r\n labelcone5.setBounds(190, 120, 41, 39);\r\n\r\n cilindro_eixoY.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_eixoYActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_eixoY);\r\n cilindro_eixoY.setBounds(278, 30, 72, 20);\r\n\r\n labelcone6.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone6.setText(\"Eixo Y: \");\r\n painel6.add(labelcone6);\r\n labelcone6.setBounds(211, 22, 63, 39);\r\n\r\n jLabel45.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel45.setText(\"Volume:\");\r\n painel6.add(jLabel45);\r\n jLabel45.setBounds(32, 339, 61, 39);\r\n\r\n cilindro_respVol.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cilindro_respVolActionPerformed(evt);\r\n }\r\n });\r\n painel6.add(cilindro_respVol);\r\n cilindro_respVol.setBounds(103, 347, 74, 20);\r\n\r\n jLabel58.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel58.setText(\"Formula Área\");\r\n painel6.add(jLabel58);\r\n jLabel58.setBounds(275, 104, 199, 23);\r\n\r\n jLabel59.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel59.setText(\"Formula Volume\");\r\n painel6.add(jLabel59);\r\n jLabel59.setBounds(257, 235, 199, 23);\r\n\r\n jLabel62.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel62.setText(\" A = 2 . pi . r ( r + h )\");\r\n painel6.add(jLabel62);\r\n jLabel62.setBounds(244, 145, 223, 35);\r\n\r\n jLabel63.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel63.setText(\"V = pi . r² . h\");\r\n painel6.add(jLabel63);\r\n jLabel63.setBounds(277, 264, 179, 55);\r\n\r\n labelcone7.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone7.setText(\"Eixo X: \");\r\n painel6.add(labelcone7);\r\n labelcone7.setBounds(50, 22, 59, 39);\r\n\r\n labelcone13.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone13.setText(\"m³\");\r\n painel6.add(labelcone13);\r\n labelcone13.setBounds(181, 340, 41, 39);\r\n\r\n labelcone14.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone14.setText(\"m²\");\r\n painel6.add(labelcone14);\r\n labelcone14.setBounds(190, 150, 41, 39);\r\n\r\n labelcone15.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone15.setText(\"m²\");\r\n painel6.add(labelcone15);\r\n labelcone15.setBounds(185, 288, 41, 39);\r\n\r\n painelFundo.add(painel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n PainelBotoes.setBackground(new java.awt.Color(56, 55, 55));\r\n\r\n linhaHorizontalPainel.setBackground(new java.awt.Color(153, 153, 153));\r\n linhaHorizontalPainel.setPreferredSize(new java.awt.Dimension(240, 2));\r\n linhaHorizontalPainel.setRequestFocusEnabled(false);\r\n\r\n javax.swing.GroupLayout linhaHorizontalPainelLayout = new javax.swing.GroupLayout(linhaHorizontalPainel);\r\n linhaHorizontalPainel.setLayout(linhaHorizontalPainelLayout);\r\n linhaHorizontalPainelLayout.setHorizontalGroup(\r\n linhaHorizontalPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 248, Short.MAX_VALUE)\r\n );\r\n linhaHorizontalPainelLayout.setVerticalGroup(\r\n linhaHorizontalPainelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 2, Short.MAX_VALUE)\r\n );\r\n\r\n botao1.setBackground(new java.awt.Color(56, 55, 55));\r\n botao1.setPreferredSize(new java.awt.Dimension(150, 76));\r\n botao1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao1MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao1MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao1MouseExited(evt);\r\n }\r\n });\r\n botao1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n textoBotao1.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao1.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao1.setText(\"Objetos Salvos\");\r\n botao1.add(textoBotao1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 7, -1, -1));\r\n\r\n abaBotao1.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao1.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao1.add(abaBotao1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao1Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao1Select.setPreferredSize(new java.awt.Dimension(150, 55));\r\n botao1Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao1SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao1SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao1SelectMouseExited(evt);\r\n }\r\n });\r\n botao1Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect1.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect1.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect1.setText(\"Objetos Salvos\");\r\n botao1Select.add(txtBotaoSelect1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 7, -1, -1));\r\n\r\n botao1.add(botao1Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n titulo1.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n titulo1.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo1.setText(\"v0.05\");\r\n\r\n titulo2.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n titulo2.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo2.setText(\"Funções Matemáticas \");\r\n\r\n titulo3.setFont(new java.awt.Font(\"Calibri\", 1, 36)); // NOI18N\r\n titulo3.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo3.setText(\"Cálculos \");\r\n\r\n titulo5.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n titulo5.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo5.setText(\"&\");\r\n\r\n titulo6.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n titulo6.setForeground(new java.awt.Color(204, 204, 204));\r\n titulo6.setText(\"Geometria\");\r\n\r\n botao2.setBackground(new java.awt.Color(56, 55, 55));\r\n botao2.setPreferredSize(new java.awt.Dimension(300, 76));\r\n botao2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao2MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao2MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao2MouseExited(evt);\r\n }\r\n });\r\n botao2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n textoBotao2.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao2.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao2.setText(\"Triangulo\");\r\n botao2.add(textoBotao2, new org.netbeans.lib.awtextra.AbsoluteConstraints(85, 7, -1, -1));\r\n\r\n abaBotao2.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao2.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao2.add(abaBotao2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao_aba_Triangulo.setBackground(new java.awt.Color(83, 83, 83));\r\n botao_aba_Triangulo.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao_aba_TrianguloMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao_aba_TrianguloMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao_aba_TrianguloMouseExited(evt);\r\n }\r\n });\r\n botao_aba_Triangulo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect2.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect2.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect2.setText(\"Triangulo\");\r\n botao_aba_Triangulo.add(txtBotaoSelect2, new org.netbeans.lib.awtextra.AbsoluteConstraints(85, 7, -1, -1));\r\n\r\n botao2.add(botao_aba_Triangulo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n botao3.setBackground(new java.awt.Color(56, 55, 55));\r\n botao3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao3MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao3MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao3MouseExited(evt);\r\n }\r\n });\r\n botao3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao3.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao3.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao3.add(abaBotao3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao3Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao3Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao3SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao3SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao3SelectMouseExited(evt);\r\n }\r\n });\r\n botao3Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect3.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect3.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect3.setText(\"Cone\");\r\n botao3Select.add(txtBotaoSelect3, new org.netbeans.lib.awtextra.AbsoluteConstraints(105, 7, -1, -1));\r\n\r\n botao3.add(botao3Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao3.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao3.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao3.setText(\"Cone\");\r\n botao3.add(textoBotao3, new org.netbeans.lib.awtextra.AbsoluteConstraints(105, 7, -1, -1));\r\n\r\n botao4.setBackground(new java.awt.Color(56, 55, 55));\r\n botao4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao4MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao4MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao4MouseExited(evt);\r\n }\r\n });\r\n botao4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao4.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao4.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao4.add(abaBotao4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao4Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao4Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao4SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao4SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao4SelectMouseExited(evt);\r\n }\r\n });\r\n botao4Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect4.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect4.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect4.setText(\"Paralelepípedo\");\r\n botao4Select.add(txtBotaoSelect4, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 7, -1, -1));\r\n\r\n botao4.add(botao4Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao4.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao4.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao4.setText(\"Paralelepípedo\");\r\n botao4.add(textoBotao4, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 7, -1, -1));\r\n\r\n botao5.setBackground(new java.awt.Color(56, 55, 55));\r\n botao5.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao5MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao5MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao5MouseExited(evt);\r\n }\r\n });\r\n botao5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao5.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao5.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao5.add(abaBotao5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao5Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao5Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao5SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao5SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao5SelectMouseExited(evt);\r\n }\r\n });\r\n botao5Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect5.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect5.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect5.setText(\"Quadrado\");\r\n botao5Select.add(txtBotaoSelect5, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 7, -1, -1));\r\n\r\n botao5.add(botao5Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao5.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao5.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao5.setText(\"Quadrado\");\r\n botao5.add(textoBotao5, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 7, -1, -1));\r\n\r\n botao6.setBackground(new java.awt.Color(56, 55, 55));\r\n botao6.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao6MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao6MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao6MouseExited(evt);\r\n }\r\n });\r\n botao6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao6.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao6.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao6.add(abaBotao6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao6Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao6Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao6SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao6SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao6SelectMouseExited(evt);\r\n }\r\n });\r\n botao6Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect6.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect6.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect6.setText(\"Cilindro\");\r\n botao6Select.add(txtBotaoSelect6, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 7, -1, -1));\r\n\r\n botao6.add(botao6Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao6.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao6.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao6.setText(\"Cilindro\");\r\n botao6.add(textoBotao6, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 7, -1, -1));\r\n\r\n botao7.setBackground(new java.awt.Color(56, 55, 55));\r\n botao7.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao7MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao7MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao7MouseExited(evt);\r\n }\r\n });\r\n botao7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao7.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao7.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao7.add(abaBotao7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao7Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao7Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao7SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao7SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao7SelectMouseExited(evt);\r\n }\r\n });\r\n botao7Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect7.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect7.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect7.setText(\"Equação (Bhaskara)\");\r\n botao7Select.add(txtBotaoSelect7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 7, -1, -1));\r\n\r\n botao7.add(botao7Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao7.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao7.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao7.setText(\"Equação (Bhaskara)\");\r\n botao7.add(textoBotao7, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 7, -1, -1));\r\n\r\n botao8.setBackground(new java.awt.Color(56, 55, 55));\r\n botao8.setPreferredSize(new java.awt.Dimension(260, 40));\r\n botao8.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao8MouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao8MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao8MouseExited(evt);\r\n }\r\n });\r\n botao8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n abaBotao8.setBackground(new java.awt.Color(121, 121, 121));\r\n abaBotao8.setPreferredSize(new java.awt.Dimension(4, 76));\r\n abaBotao8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n botao8.add(abaBotao8, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 8, -1));\r\n\r\n botao8Select.setBackground(new java.awt.Color(83, 83, 83));\r\n botao8Select.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n botao8SelectMouseClicked(evt);\r\n }\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n botao8SelectMouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n botao8SelectMouseExited(evt);\r\n }\r\n });\r\n botao8Select.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n txtBotaoSelect8.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n txtBotaoSelect8.setForeground(new java.awt.Color(204, 204, 204));\r\n txtBotaoSelect8.setText(\"Sobre\");\r\n botao8Select.add(txtBotaoSelect8, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 7, -1, -1));\r\n\r\n botao8.add(botao8Select, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 40));\r\n\r\n textoBotao8.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\r\n textoBotao8.setForeground(new java.awt.Color(204, 204, 204));\r\n textoBotao8.setText(\"Sobre\");\r\n botao8.add(textoBotao8, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 7, -1, -1));\r\n\r\n javax.swing.GroupLayout PainelBotoesLayout = new javax.swing.GroupLayout(PainelBotoes);\r\n PainelBotoes.setLayout(PainelBotoesLayout);\r\n PainelBotoesLayout.setHorizontalGroup(\r\n PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGap(53, 53, 53)\r\n .addComponent(titulo5)\r\n .addGap(18, 18, 18)\r\n .addComponent(titulo6))\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGap(18, 18, 18)\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(titulo2)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addComponent(titulo3)\r\n .addGap(50, 50, 50)\r\n .addComponent(titulo1)))))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(linhaHorizontalPainel, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(botao1, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao7, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao6, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao5, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(botao4, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(botao2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\r\n .addComponent(botao3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n );\r\n PainelBotoesLayout.setVerticalGroup(\r\n PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addGap(27, 27, 27)\r\n .addComponent(titulo3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(PainelBotoesLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(titulo1)))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(titulo2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(11, 11, 11)\r\n .addGroup(PainelBotoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(titulo6)\r\n .addComponent(titulo5))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(linhaHorizontalPainel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(botao1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao4, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao5, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao6, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao7, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(botao8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(30, Short.MAX_VALUE))\r\n );\r\n\r\n painelFundo.add(PainelBotoes, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 260, 550));\r\n\r\n painel1.setBackground(new java.awt.Color(220, 123, 103));\r\n painel1.setPreferredSize(new java.awt.Dimension(710, 810));\r\n\r\n caminhoObjetos.setText(\"C:/Users/denis/Desktop/objetosGeometricos.dat\");\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 1, 24)); // NOI18N\r\n jLabel2.setForeground(new java.awt.Color(70, 70, 70));\r\n jLabel2.setText(\"Objetos Salvos \");\r\n\r\n telaObjetos.setColumns(20);\r\n telaObjetos.setRows(5);\r\n jScrollPane2.setViewportView(telaObjetos);\r\n\r\n jLabel1.setText(\"Caminho: \");\r\n\r\n jLabel15.setFont(new java.awt.Font(\"Calibri Light\", 0, 11)); // NOI18N\r\n jLabel15.setText(\"Utilize por exemplo: (\\\"C:/Users/Desktop/arquivo.dat\\\")\");\r\n\r\n btnCarregarObjetos.setText(\"Carregar Arquivo\");\r\n btnCarregarObjetos.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnCarregarObjetosActionPerformed(evt);\r\n }\r\n });\r\n\r\n limparCampo.setText(\"Apagar Objetos\");\r\n limparCampo.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n limparCampoActionPerformed(evt);\r\n }\r\n });\r\n\r\n salvar_objetos.setText(\"Salvar Objeto\");\r\n salvar_objetos.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n salvar_objetosActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout painel1Layout = new javax.swing.GroupLayout(painel1);\r\n painel1.setLayout(painel1Layout);\r\n painel1Layout.setHorizontalGroup(\r\n painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addComponent(jLabel1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(caminhoObjetos, javax.swing.GroupLayout.PREFERRED_SIZE, 427, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addComponent(jLabel15)\r\n .addGap(0, 0, Short.MAX_VALUE))))\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addComponent(btnCarregarObjetos)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(limparCampo))\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 481, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(salvar_objetos))))\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addGap(112, 112, 112)\r\n .addComponent(jLabel2)))\r\n .addContainerGap(67, Short.MAX_VALUE))\r\n );\r\n painel1Layout.setVerticalGroup(\r\n painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(painel1Layout.createSequentialGroup()\r\n .addGap(73, 73, 73)\r\n .addComponent(jLabel15)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(caminhoObjetos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(salvar_objetos)\r\n .addGap(52, 52, 52)\r\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(painel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(limparCampo)\r\n .addComponent(btnCarregarObjetos))\r\n .addContainerGap())\r\n );\r\n\r\n painelFundo.add(painel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n painel2.setBackground(new java.awt.Color(220, 123, 103));\r\n painel2.setMaximumSize(new java.awt.Dimension(820, 560));\r\n painel2.setMinimumSize(new java.awt.Dimension(820, 560));\r\n painel2.setPreferredSize(new java.awt.Dimension(820, 550));\r\n painel2.setLayout(null);\r\n\r\n jLabel8.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel8.setText(\"Formula Perimetro\");\r\n painel2.add(jLabel8);\r\n jLabel8.setBounds(310, 130, 162, 28);\r\n\r\n jLabel11.setText(\"Lado A:\");\r\n painel2.add(jLabel11);\r\n jLabel11.setBounds(57, 141, 60, 40);\r\n\r\n jLabel12.setText(\"Lado C:\");\r\n painel2.add(jLabel12);\r\n jLabel12.setBounds(57, 206, 60, 40);\r\n\r\n jLabel13.setText(\"Lado B:\");\r\n painel2.add(jLabel13);\r\n jLabel13.setBounds(57, 172, 60, 40);\r\n painel2.add(triangulo_ladoAtxt);\r\n triangulo_ladoAtxt.setBounds(120, 150, 77, 20);\r\n painel2.add(triangulo_ladoBtxt);\r\n triangulo_ladoBtxt.setBounds(120, 180, 77, 20);\r\n painel2.add(triangulo_ladoCtxt);\r\n triangulo_ladoCtxt.setBounds(120, 210, 77, 20);\r\n\r\n jLabel9.setText(\"Perimetro:\");\r\n painel2.add(jLabel9);\r\n jLabel9.setBounds(40, 370, 70, 20);\r\n painel2.add(triangulo_resp_perimetro);\r\n triangulo_resp_perimetro.setBounds(120, 360, 77, 20);\r\n\r\n triangulo_btn_calcPerimetro.setText(\"Calcular\");\r\n triangulo_btn_calcPerimetro.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n triangulo_btn_calcPerimetroActionPerformed(evt);\r\n }\r\n });\r\n painel2.add(triangulo_btn_calcPerimetro);\r\n triangulo_btn_calcPerimetro.setBounds(120, 310, 90, 23);\r\n painel2.add(triangulo_alturaTxt);\r\n triangulo_alturaTxt.setBounds(120, 240, 77, 20);\r\n\r\n jLabel14.setText(\"Altura:\");\r\n painel2.add(jLabel14);\r\n jLabel14.setBounds(60, 240, 50, 40);\r\n\r\n jLabel16.setText(\"Base:\");\r\n painel2.add(jLabel16);\r\n jLabel16.setBounds(60, 270, 50, 40);\r\n painel2.add(triangulo_baseTxt);\r\n triangulo_baseTxt.setBounds(120, 270, 77, 20);\r\n painel2.add(triangulo_respAreaTxt);\r\n triangulo_respAreaTxt.setBounds(120, 390, 77, 20);\r\n\r\n jLabel10.setText(\"Area:\");\r\n painel2.add(jLabel10);\r\n jLabel10.setBounds(70, 390, 50, 20);\r\n\r\n jLabel17.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel17.setText(\"Formula Area\");\r\n painel2.add(jLabel17);\r\n jLabel17.setBounds(340, 250, 154, 28);\r\n painel2.add(triangulo_eixoX);\r\n triangulo_eixoX.setBounds(80, 60, 77, 20);\r\n\r\n jLabel18.setText(\"Eixo X: \");\r\n painel2.add(jLabel18);\r\n jLabel18.setBounds(30, 50, 50, 40);\r\n\r\n jLabel19.setText(\"Eixo Y: \");\r\n painel2.add(jLabel19);\r\n jLabel19.setBounds(170, 54, 60, 30);\r\n\r\n triangulo_eixoY.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n triangulo_eixoYActionPerformed(evt);\r\n }\r\n });\r\n painel2.add(triangulo_eixoY);\r\n triangulo_eixoY.setBounds(230, 60, 77, 20);\r\n\r\n jLabel50.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/formula_area-triangulo.png\"))); // NOI18N\r\n painel2.add(jLabel50);\r\n jLabel50.setBounds(290, 270, 183, 78);\r\n\r\n jLabel53.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel53.setText(\"P = ( a + b + c )\");\r\n painel2.add(jLabel53);\r\n jLabel53.setBounds(310, 150, 163, 52);\r\n\r\n labelcone21.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone21.setText(\"m²\");\r\n painel2.add(labelcone21);\r\n labelcone21.setBounds(200, 380, 20, 40);\r\n\r\n labelcone22.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone22.setText(\"m²\");\r\n painel2.add(labelcone22);\r\n labelcone22.setBounds(200, 140, 20, 40);\r\n\r\n labelcone23.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone23.setText(\"m²\");\r\n painel2.add(labelcone23);\r\n labelcone23.setBounds(200, 170, 20, 40);\r\n\r\n labelcone24.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone24.setText(\"m²\");\r\n painel2.add(labelcone24);\r\n labelcone24.setBounds(200, 200, 20, 40);\r\n\r\n labelcone25.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone25.setText(\"m²\");\r\n painel2.add(labelcone25);\r\n labelcone25.setBounds(200, 230, 20, 40);\r\n\r\n labelcone26.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone26.setText(\"m²\");\r\n painel2.add(labelcone26);\r\n labelcone26.setBounds(200, 260, 20, 40);\r\n\r\n labelcone27.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone27.setText(\"m²\");\r\n painel2.add(labelcone27);\r\n labelcone27.setBounds(200, 350, 20, 40);\r\n\r\n painelFundo.add(painel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 820, 550));\r\n\r\n painel3.setBackground(new java.awt.Color(220, 123, 103));\r\n painel3.setLayout(null);\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel3.setText(\"Formula Volume\");\r\n painel3.add(jLabel3);\r\n jLabel3.setBounds(300, 280, 170, 23);\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel4.setText(\"Formula Area\");\r\n painel3.add(jLabel4);\r\n jLabel4.setBounds(330, 150, 160, 23);\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel5.setText(\"Altura:\");\r\n painel3.add(jLabel5);\r\n jLabel5.setBounds(40, 220, 49, 34);\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel7.setText(\"Volume:\");\r\n painel3.add(jLabel7);\r\n jLabel7.setBounds(40, 350, 70, 39);\r\n\r\n cone_respVol.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_respVolActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_respVol);\r\n cone_respVol.setBounds(110, 360, 74, 20);\r\n\r\n cone_alturaVol.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_alturaVolActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_alturaVol);\r\n cone_alturaVol.setBounds(100, 220, 72, 20);\r\n\r\n jLabel31.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel31.setText(\"Geratriz: \");\r\n painel3.add(jLabel31);\r\n jLabel31.setBounds(26, 183, 77, 34);\r\n\r\n jLabel33.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel33.setText(\"Area Total: \");\r\n painel3.add(jLabel33);\r\n jLabel33.setBounds(20, 320, 100, 39);\r\n\r\n cone_areaTotal.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_areaTotalActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_areaTotal);\r\n cone_areaTotal.setBounds(110, 330, 74, 20);\r\n\r\n cone_areaRaio.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_areaRaioActionPerformed(evt);\r\n }\r\n });\r\n cone_areaRaio.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\r\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\r\n cone_areaRaioPropertyChange(evt);\r\n }\r\n });\r\n painel3.add(cone_areaRaio);\r\n cone_areaRaio.setBounds(100, 160, 72, 20);\r\n\r\n cone_areaGeratriz.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_areaGeratrizActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_areaGeratriz);\r\n cone_areaGeratriz.setBounds(100, 190, 72, 20);\r\n\r\n cone_btnAreaTot.setText(\"Calcular\");\r\n cone_btnAreaTot.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_btnAreaTotActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_btnAreaTot);\r\n cone_btnAreaTot.setBounds(100, 260, 90, 23);\r\n\r\n jLabel34.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel34.setText(\"Raio:\");\r\n painel3.add(jLabel34);\r\n jLabel34.setBounds(50, 160, 38, 23);\r\n\r\n cone_eixoY.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_eixoYActionPerformed(evt);\r\n }\r\n });\r\n cone_eixoY.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\r\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\r\n cone_eixoYPropertyChange(evt);\r\n }\r\n });\r\n painel3.add(cone_eixoY);\r\n cone_eixoY.setBounds(250, 40, 72, 20);\r\n\r\n cone_eixoX.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cone_eixoXActionPerformed(evt);\r\n }\r\n });\r\n painel3.add(cone_eixoX);\r\n cone_eixoX.setBounds(110, 40, 72, 20);\r\n\r\n jLabel36.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel36.setText(\"Eixo Y:\");\r\n painel3.add(jLabel36);\r\n jLabel36.setBounds(190, 30, 70, 39);\r\n\r\n jLabel32.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel32.setText(\"m²\");\r\n painel3.add(jLabel32);\r\n jLabel32.setBounds(190, 220, 30, 18);\r\n\r\n jLabel47.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/formula_volumeCone.png\"))); // NOI18N\r\n painel3.add(jLabel47);\r\n jLabel47.setBounds(290, 310, 190, 60);\r\n\r\n jLabel52.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/formula_areaCone.png\"))); // NOI18N\r\n jLabel52.setText(\"jLabel47\");\r\n painel3.add(jLabel52);\r\n jLabel52.setBounds(300, 170, 190, 40);\r\n\r\n jLabel37.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel37.setText(\"Eixo X:\");\r\n painel3.add(jLabel37);\r\n jLabel37.setBounds(50, 40, 60, 23);\r\n\r\n jLabel42.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel42.setText(\"m³\");\r\n painel3.add(jLabel42);\r\n jLabel42.setBounds(190, 360, 30, 18);\r\n\r\n jLabel44.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel44.setText(\"m²\");\r\n painel3.add(jLabel44);\r\n jLabel44.setBounds(190, 190, 30, 18);\r\n\r\n jLabel68.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel68.setText(\"m²\");\r\n painel3.add(jLabel68);\r\n jLabel68.setBounds(190, 160, 30, 18);\r\n\r\n jLabel69.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n jLabel69.setText(\"m²\");\r\n painel3.add(jLabel69);\r\n jLabel69.setBounds(190, 330, 30, 18);\r\n\r\n painelFundo.add(painel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n painel4.setBackground(new java.awt.Color(220, 123, 103));\r\n painel4.setPreferredSize(new java.awt.Dimension(710, 810));\r\n painel4.setLayout(null);\r\n\r\n paralelepipedo_btnCalcArea.setText(\" Calcular\");\r\n paralelepipedo_btnCalcArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n paralelepipedo_btnCalcAreaActionPerformed(evt);\r\n }\r\n });\r\n painel4.add(paralelepipedo_btnCalcArea);\r\n paralelepipedo_btnCalcArea.setBounds(110, 250, 90, 23);\r\n painel4.add(paralelepipedo_alturaArea);\r\n paralelepipedo_alturaArea.setBounds(120, 140, 77, 20);\r\n\r\n jLabel20.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel20.setText(\"Altura:\");\r\n painel4.add(jLabel20);\r\n jLabel20.setBounds(60, 140, 90, 28);\r\n painel4.add(paralelepipedo_largArea);\r\n paralelepipedo_largArea.setBounds(120, 210, 77, 20);\r\n\r\n jLabel21.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel21.setText(\"Largura:\");\r\n painel4.add(jLabel21);\r\n jLabel21.setBounds(50, 210, 100, 28);\r\n painel4.add(paralelepipedo_compArea);\r\n paralelepipedo_compArea.setBounds(120, 180, 77, 20);\r\n\r\n jLabel22.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel22.setText(\"Cumprimento:\");\r\n painel4.add(jLabel22);\r\n jLabel22.setBounds(10, 174, 120, 28);\r\n\r\n jLabel23.setFont(new java.awt.Font(\"Calibri Light\", 1, 18)); // NOI18N\r\n jLabel23.setText(\"Formula Volume\");\r\n painel4.add(jLabel23);\r\n jLabel23.setBounds(250, 260, 170, 23);\r\n\r\n paralelepipedo_respArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n paralelepipedo_respAreaActionPerformed(evt);\r\n }\r\n });\r\n painel4.add(paralelepipedo_respArea);\r\n paralelepipedo_respArea.setBounds(120, 310, 77, 20);\r\n\r\n jLabel27.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel27.setText(\"Volume:\");\r\n painel4.add(jLabel27);\r\n jLabel27.setBounds(50, 340, 90, 28);\r\n painel4.add(paralelepipedo_volResp);\r\n paralelepipedo_volResp.setBounds(120, 340, 77, 20);\r\n\r\n jLabel29.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel29.setText(\"Eixo X: \");\r\n painel4.add(jLabel29);\r\n jLabel29.setBounds(60, 50, 100, 28);\r\n painel4.add(paralelepipedo_EixoX);\r\n paralelepipedo_EixoX.setBounds(120, 50, 77, 20);\r\n painel4.add(paralelepipedo_EixoY);\r\n paralelepipedo_EixoY.setBounds(270, 50, 77, 20);\r\n\r\n jLabel30.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel30.setText(\"Eixo Y: \");\r\n painel4.add(jLabel30);\r\n jLabel30.setBounds(200, 50, 70, 28);\r\n\r\n jLabel54.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel54.setText(\"Area:\");\r\n painel4.add(jLabel54);\r\n jLabel54.setBounds(60, 310, 80, 28);\r\n\r\n jLabel55.setFont(new java.awt.Font(\"Calibri Light\", 1, 18)); // NOI18N\r\n jLabel55.setText(\"Formula Area\");\r\n painel4.add(jLabel55);\r\n jLabel55.setBounds(290, 120, 170, 23);\r\n\r\n jLabel56.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel56.setText(\" .\");\r\n painel4.add(jLabel56);\r\n jLabel56.setBounds(360, 290, 60, 30);\r\n\r\n jLabel57.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel57.setText(\"V = ( a b c )\");\r\n painel4.add(jLabel57);\r\n jLabel57.setBounds(250, 280, 180, 50);\r\n\r\n jLabel60.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel60.setText(\"AT = 2 (ab +ac + bc)\");\r\n painel4.add(jLabel60);\r\n jLabel60.setBounds(260, 140, 270, 50);\r\n\r\n jLabel61.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel61.setText(\" .\");\r\n painel4.add(jLabel61);\r\n jLabel61.setBounds(320, 290, 60, 30);\r\n\r\n labelcone16.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone16.setText(\"m³\");\r\n painel4.add(labelcone16);\r\n labelcone16.setBounds(200, 330, 20, 40);\r\n\r\n labelcone17.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone17.setText(\"m²\");\r\n painel4.add(labelcone17);\r\n labelcone17.setBounds(200, 140, 20, 30);\r\n\r\n labelcone18.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone18.setText(\"m²\");\r\n painel4.add(labelcone18);\r\n labelcone18.setBounds(200, 170, 20, 30);\r\n\r\n labelcone19.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone19.setText(\"m²\");\r\n painel4.add(labelcone19);\r\n labelcone19.setBounds(200, 210, 20, 30);\r\n\r\n labelcone20.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone20.setText(\"m²\");\r\n painel4.add(labelcone20);\r\n labelcone20.setBounds(200, 300, 20, 40);\r\n\r\n painelFundo.add(painel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n painel5.setBackground(new java.awt.Color(220, 123, 103));\r\n painel5.setLayout(null);\r\n\r\n jLabel46.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel46.setText(\"Formula Perimetro\");\r\n painel5.add(jLabel46);\r\n jLabel46.setBounds(250, 230, 141, 23);\r\n\r\n jLabel48.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel48.setText(\"Perimetro:\");\r\n painel5.add(jLabel48);\r\n jLabel48.setBounds(20, 260, 78, 39);\r\n\r\n quad_respPer.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_respPerActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_respPer);\r\n quad_respPer.setBounds(110, 270, 74, 20);\r\n\r\n labelcone9.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone9.setText(\"Eixo X:\");\r\n painel5.add(labelcone9);\r\n labelcone9.setBounds(50, 60, 49, 39);\r\n\r\n quad_eixoX.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_eixoXActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_eixoX);\r\n quad_eixoX.setBounds(100, 70, 72, 20);\r\n\r\n labelcone10.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone10.setText(\"Eixo Y:\");\r\n painel5.add(labelcone10);\r\n labelcone10.setBounds(180, 60, 49, 39);\r\n\r\n quad_eixoY.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_eixoYActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_eixoY);\r\n quad_eixoY.setBounds(240, 70, 72, 20);\r\n\r\n quad_btnArea.setText(\"Calcular\");\r\n quad_btnArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_btnAreaActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_btnArea);\r\n quad_btnArea.setBounds(90, 190, 90, 23);\r\n\r\n jLabel49.setFont(new java.awt.Font(\"Calibri\", 1, 18)); // NOI18N\r\n jLabel49.setText(\"Formula Area\");\r\n painel5.add(jLabel49);\r\n jLabel49.setBounds(250, 130, 140, 29);\r\n\r\n jLabel51.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel51.setText(\"Area Total:\");\r\n painel5.add(jLabel51);\r\n jLabel51.setBounds(20, 230, 81, 39);\r\n\r\n labelcone12.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone12.setText(\"Lado A:\");\r\n painel5.add(labelcone12);\r\n labelcone12.setBounds(30, 140, 55, 39);\r\n\r\n quad_respArea.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_respAreaActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_respArea);\r\n quad_respArea.setBounds(110, 240, 74, 20);\r\n\r\n quad_areaLadoA.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n quad_areaLadoAActionPerformed(evt);\r\n }\r\n });\r\n painel5.add(quad_areaLadoA);\r\n quad_areaLadoA.setBounds(90, 150, 72, 20);\r\n\r\n jLabel66.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel66.setText(\"A = ( L . L . L . L)\");\r\n painel5.add(jLabel66);\r\n jLabel66.setBounds(250, 260, 210, 50);\r\n\r\n jLabel67.setFont(new java.awt.Font(\"Calibri Light\", 3, 24)); // NOI18N\r\n jLabel67.setText(\"P = ( L . L )\");\r\n painel5.add(jLabel67);\r\n jLabel67.setBounds(260, 160, 120, 50);\r\n\r\n labelcone28.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone28.setText(\"m²\");\r\n painel5.add(labelcone28);\r\n labelcone28.setBounds(190, 260, 20, 40);\r\n\r\n labelcone29.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone29.setText(\"m²\");\r\n painel5.add(labelcone29);\r\n labelcone29.setBounds(170, 140, 20, 40);\r\n\r\n labelcone30.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\r\n labelcone30.setText(\"m²\");\r\n painel5.add(labelcone30);\r\n labelcone30.setBounds(190, 230, 20, 40);\r\n\r\n painelFundo.add(painel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n painel7.setBackground(new java.awt.Color(220, 123, 103));\r\n painel7.setPreferredSize(new java.awt.Dimension(710, 560));\r\n painel7.setLayout(null);\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Calibri\", 0, 36)); // NOI18N\r\n jLabel6.setText(\"(Bhaskara)\");\r\n painel7.add(jLabel6);\r\n jLabel6.setBounds(120, 70, 155, 54);\r\n\r\n labelcone1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone1.setText(\"A: \");\r\n painel7.add(labelcone1);\r\n labelcone1.setBounds(60, 170, 19, 20);\r\n\r\n jLabel38.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel38.setText(\"X1:\");\r\n painel7.add(jLabel38);\r\n jLabel38.setBounds(60, 390, 23, 23);\r\n\r\n equacao_x1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_x1ActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_x1);\r\n equacao_x1.setBounds(100, 390, 74, 20);\r\n\r\n equacao_A.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_AActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_A);\r\n equacao_A.setBounds(100, 170, 72, 20);\r\n\r\n equacao_calcular.setText(\"Calcular\");\r\n equacao_calcular.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_calcularActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_calcular);\r\n equacao_calcular.setBounds(100, 260, 100, 23);\r\n\r\n jLabel39.setFont(new java.awt.Font(\"Calibri\", 0, 36)); // NOI18N\r\n jLabel39.setText(\"Equação de Segundo Grau\");\r\n painel7.add(jLabel39);\r\n jLabel39.setBounds(80, 10, 385, 54);\r\n\r\n labelcone2.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone2.setText(\"B: \");\r\n painel7.add(labelcone2);\r\n labelcone2.setBounds(60, 200, 19, 20);\r\n\r\n equacao_B.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_BActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_B);\r\n equacao_B.setBounds(100, 200, 72, 20);\r\n\r\n equacao_C.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_CActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_C);\r\n equacao_C.setBounds(100, 230, 72, 20);\r\n\r\n labelcone3.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n labelcone3.setText(\"C: \");\r\n painel7.add(labelcone3);\r\n labelcone3.setBounds(60, 230, 19, 20);\r\n\r\n jLabel40.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel40.setText(\"X2:\");\r\n painel7.add(jLabel40);\r\n jLabel40.setBounds(60, 420, 23, 20);\r\n\r\n equacao_x2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_x2ActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_x2);\r\n equacao_x2.setBounds(100, 420, 74, 20);\r\n\r\n jLabel41.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\r\n jLabel41.setText(\"Delta:\");\r\n painel7.add(jLabel41);\r\n jLabel41.setBounds(40, 350, 44, 20);\r\n\r\n equacao_Delta.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n equacao_DeltaActionPerformed(evt);\r\n }\r\n });\r\n painel7.add(equacao_Delta);\r\n equacao_Delta.setBounds(100, 350, 74, 20);\r\n\r\n jLabel64.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/bhaskara.png\"))); // NOI18N\r\n painel7.add(jLabel64);\r\n jLabel64.setBounds(190, 170, 360, 98);\r\n\r\n jLabel65.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/prototipointerface/delta.png\"))); // NOI18N\r\n painel7.add(jLabel65);\r\n jLabel65.setBounds(260, 280, 280, 60);\r\n\r\n painelFundo.add(painel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 820, 550));\r\n\r\n painel8.setBackground(new java.awt.Color(220, 123, 103));\r\n\r\n javax.swing.GroupLayout painel8Layout = new javax.swing.GroupLayout(painel8);\r\n painel8.setLayout(painel8Layout);\r\n painel8Layout.setHorizontalGroup(\r\n painel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 560, Short.MAX_VALUE)\r\n );\r\n painel8Layout.setVerticalGroup(\r\n painel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 550, Short.MAX_VALUE)\r\n );\r\n\r\n painelFundo.add(painel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 0, 560, 550));\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(painelFundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(painelFundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n\r\n pack();\r\n }",
"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}",
"@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 jLabel3 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n cedulaTxt = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n nombreApellidoTxt = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n telfTxt = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n direccionTxt = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n sueldoTxt = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n agregar = new javax.swing.JButton();\n cancelar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n nutricionTxt = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n turnoCombo = new javax.swing.JComboBox();\n areaTxt = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n rutinaTxt = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"REGISTRAR INSTRUCTOR\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setOpaque(false);\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/instructor.png\"))); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel2.setText(\"CEDULA\");\n\n cedulaTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n cedulaTxtMousePressed(evt);\n }\n });\n cedulaTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cedulaTxtActionPerformed(evt);\n }\n });\n cedulaTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n cedulaTxtKeyTyped(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel4.setText(\"NOMBRE Y APELLIDO\");\n\n nombreApellidoTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n nombreApellidoTxtMousePressed(evt);\n }\n });\n nombreApellidoTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreApellidoTxtActionPerformed(evt);\n }\n });\n nombreApellidoTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n nombreApellidoTxtKeyTyped(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel5.setText(\"TELEFONO\");\n\n telfTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n telfTxtMousePressed(evt);\n }\n });\n telfTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n telfTxtActionPerformed(evt);\n }\n });\n telfTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n telfTxtKeyTyped(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel6.setText(\"DIRECCION\");\n\n direccionTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n direccionTxtMousePressed(evt);\n }\n });\n direccionTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n direccionTxtActionPerformed(evt);\n }\n });\n direccionTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n direccionTxtKeyTyped(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel7.setText(\" SUELDO\");\n\n sueldoTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n sueldoTxtMousePressed(evt);\n }\n });\n sueldoTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sueldoTxtActionPerformed(evt);\n }\n });\n sueldoTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n sueldoTxtKeyTyped(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel8.setText(\"AREA ENTRENAMIENTO\");\n\n agregar.setText(\"AGREGAR\");\n agregar.setOpaque(false);\n agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n agregarActionPerformed(evt);\n }\n });\n\n cancelar.setText(\"CANCELAR\");\n cancelar.setOpaque(false);\n cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelarActionPerformed(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel9.setText(\"RUTINA\");\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel10.setText(\"NUTRICION\");\n\n nutricionTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n nutricionTxtMousePressed(evt);\n }\n });\n nutricionTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nutricionTxtActionPerformed(evt);\n }\n });\n nutricionTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n nutricionTxtKeyTyped(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel11.setText(\"TURNO\");\n\n turnoCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n turnoComboActionPerformed(evt);\n }\n });\n\n areaTxt.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n areaTxtMousePressed(evt);\n }\n });\n areaTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n areaTxtActionPerformed(evt);\n }\n });\n areaTxt.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n areaTxtKeyTyped(evt);\n }\n });\n\n jLabel12.setForeground(new java.awt.Color(255, 0, 0));\n jLabel12.setText(\"*\");\n\n jLabel13.setForeground(new java.awt.Color(255, 0, 0));\n jLabel13.setText(\"*\");\n\n jLabel14.setForeground(new java.awt.Color(255, 0, 0));\n jLabel14.setText(\"*\");\n\n jLabel15.setForeground(new java.awt.Color(255, 0, 0));\n jLabel15.setText(\"*\");\n\n jLabel17.setForeground(new java.awt.Color(255, 0, 0));\n jLabel17.setText(\"*\");\n\n jLabel18.setForeground(new java.awt.Color(255, 0, 0));\n jLabel18.setText(\"*\");\n\n jLabel19.setForeground(new java.awt.Color(255, 0, 0));\n jLabel19.setText(\"*\");\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 .addComponent(jLabel3)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cedulaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nombreApellidoTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(149, 149, 149)\n .addComponent(turnoCombo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel5))\n .addGap(42, 42, 42))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel9))\n .addGap(41, 41, 41))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nutricionTxt)\n .addComponent(rutinaTxt, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(agregar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cancelar))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(telfTxt)\n .addComponent(direccionTxt)\n .addComponent(sueldoTxt, javax.swing.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addComponent(jLabel8)\n .addGap(18, 18, 18)\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(areaTxt)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\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 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(cedulaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nombreApellidoTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(telfTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14))\n .addComponent(jLabel5))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(direccionTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(jLabel15)))\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(sueldoTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(jLabel17))\n .addGap(22, 22, 22)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(turnoCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(rutinaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nutricionTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)\n .addComponent(jLabel18))\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(areaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19))\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(agregar)\n .addComponent(cancelar)))\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 30, 330, 380));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/FONDO INICIO_1.png\"))); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 450));\n\n pack();\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 lblImagen = 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 txtNombre = new javax.swing.JTextField();\n txtTipo = new javax.swing.JComboBox();\n txtVida = new javax.swing.JSpinner();\n txtAtaque = new javax.swing.JSpinner();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n lblImagen.setText(\"Imagen\");\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel2.setText(\"Nombre:\");\n\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel3.setText(\"Tipo:\");\n\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel4.setText(\"Vida:\");\n\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel5.setText(\"Ataque:\");\n\n txtNombre.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n\n txtTipo.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtTipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Disparo\", \"Directo\" }));\n\n txtVida.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n\n txtAtaque.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n\n jButton1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton1.setText(\"Agregar Imagen\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jButton2.setText(\"Guardar\");\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 jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtVida)\n .addComponent(txtAtaque)\n .addComponent(txtTipo, 0, 128, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblImagen, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(24, 24, 24))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(129, 129, 129)\n .addComponent(jButton2)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblImagen, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtVida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAtaque, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))))\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\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.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"public GUI_IntroDatos() {\n initComponents();\n }",
"public jinventario(){\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Createlbl = new javax.swing.JLabel();\n templbl = new javax.swing.JLabel();\n Bplbl = new javax.swing.JLabel();\n pulselbl = new javax.swing.JLabel();\n datelbl = new javax.swing.JLabel();\n temptxt = new javax.swing.JTextField();\n BPtxt = new javax.swing.JTextField();\n pulsetxt = new javax.swing.JTextField();\n datetxt = new javax.swing.JTextField();\n CreateSavetbn = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(243, 206, 206));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Createlbl.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n Createlbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Createlbl.setText(\"Create Vital Sign\");\n add(Createlbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 16, 421, -1));\n\n templbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n templbl.setText(\"Temperature:\");\n add(templbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(97, 80, -1, -1));\n\n Bplbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n Bplbl.setText(\"Blood Pressure:\");\n add(Bplbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(82, 127, -1, -1));\n\n pulselbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n pulselbl.setText(\"Pulse:\");\n add(pulselbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(157, 174, -1, -1));\n\n datelbl.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n datelbl.setText(\"Date:\");\n add(datelbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(162, 221, -1, -1));\n add(temptxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 78, 105, -1));\n add(BPtxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 125, 105, -1));\n add(pulsetxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 172, 105, -1));\n add(datetxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 219, 105, -1));\n\n CreateSavetbn.setFont(new java.awt.Font(\"Lucida Grande\", 0, 16)); // NOI18N\n CreateSavetbn.setText(\"Save\");\n CreateSavetbn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CreateSavetbnActionPerformed(evt);\n }\n });\n add(CreateSavetbn, new org.netbeans.lib.awtextra.AbsoluteConstraints(155, 263, -1, -1));\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jlReturn = new javax.swing.JLabel();\n jlTitle = new javax.swing.JLabel();\n jlName = new javax.swing.JLabel();\n jlBrand = new javax.swing.JLabel();\n jlStatus = new javax.swing.JLabel();\n jlNit = new javax.swing.JLabel();\n jlDesc = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n btnRegister = new javax.swing.JButton();\n jtxtName = new javax.swing.JTextField();\n jtxtBrand = new javax.swing.JTextField();\n jtxtNit = new javax.swing.JTextField();\n jcbStatus = new javax.swing.JComboBox<>();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtxtaDesc = new javax.swing.JTextArea();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n jlReturn.setSize(new Dimension(68,68));\n jlReturn.setMaximumSize(new java.awt.Dimension(68, 68));\n jlReturn.setMinimumSize(new java.awt.Dimension(68, 68));\n jlReturn.setName(\"\"); // NOI18N\n jlReturn.setPreferredSize(new java.awt.Dimension(68, 68));\n ImageIcon img2 = new ImageIcon(getClass().getResource(\"/documentation/Imagenes/Boton de Atras.png\"));\n Icon icon2 = new ImageIcon(img2.getImage().getScaledInstance(jlReturn.getWidth(), jlReturn.getHeight(), Image.SCALE_SMOOTH));\n jlReturn.setIcon(icon2);\n\n jlTitle.setFont(new java.awt.Font(\"Leelawadee UI\", 1, 26)); // NOI18N\n jlTitle.setForeground(new java.awt.Color(79, 84, 110));\n jlTitle.setText(\"Registro de activo\");\n\n jlName.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n jlName.setForeground(new java.awt.Color(79, 84, 110));\n jlName.setText(\"Nombre:\");\n\n jlBrand.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n jlBrand.setForeground(new java.awt.Color(79, 84, 110));\n jlBrand.setText(\"Marca:\");\n\n jlStatus.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n jlStatus.setForeground(new java.awt.Color(79, 84, 110));\n jlStatus.setText(\"Estado:\");\n\n jlNit.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n jlNit.setForeground(new java.awt.Color(79, 84, 110));\n jlNit.setText(\"NIT Proveedor:\");\n\n jlDesc.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n jlDesc.setForeground(new java.awt.Color(79, 84, 110));\n jlDesc.setText(\"Descripción:\");\n\n jPanel1.setBackground(new java.awt.Color(20, 56, 197));\n\n btnRegister.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n btnRegister.setForeground(new java.awt.Color(255, 255, 255));\n btnRegister.setText(\"Registrar\");\n btnRegister.setContentAreaFilled(false);\n btnRegister.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegisterActionPerformed(evt);\n }\n });\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 .addComponent(btnRegister, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnRegister, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)\n );\n\n jtxtName.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n\n jtxtBrand.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n\n jtxtNit.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n\n jcbStatus.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 22)); // NOI18N\n jcbStatus.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Nuevo\", \"Usado\" }));\n\n jtxtaDesc.setColumns(20);\n jtxtaDesc.setRows(5);\n jScrollPane1.setViewportView(jtxtaDesc);\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 .addGap(143, 143, 143)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jlNit)\n .addGap(18, 18, 18)\n .addComponent(jtxtNit, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jlName)\n .addGap(81, 81, 81)\n .addComponent(jtxtName))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jlBrand)\n .addComponent(jlStatus))\n .addGap(98, 98, 98)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jtxtBrand)\n .addComponent(jcbStatus, 0, 272, Short.MAX_VALUE)))))\n .addGap(61, 61, 61)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jlDesc)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 403, Short.MAX_VALUE)\n .addGap(39, 39, 39))))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jlReturn, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(368, 368, 368)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(357, 357, 357)\n .addComponent(jlTitle)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jlReturn, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(157, 157, 157))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jlTitle)\n .addGap(61, 61, 61)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jlName)\n .addComponent(jtxtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(36, 36, 36)))\n .addComponent(jlDesc)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 46, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jlBrand)\n .addComponent(jtxtBrand, 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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jlStatus)\n .addComponent(jcbStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(64, 64, 64)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jlNit)\n .addComponent(jtxtNit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(83, 83, 83)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(74, 74, 74))\n );\n }",
"public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n TECHS = new javax.swing.JDialog();\n jPanel3 = new javax.swing.JPanel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n name_e = new javax.swing.JTextField();\n genero_e = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n edad_e = new javax.swing.JSpinner();\n id_e = new javax.swing.JFormattedTextField();\n VEHI = new javax.swing.JDialog();\n jPanel2 = new javax.swing.JPanel();\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 jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n tipvol_int = new javax.swing.JTextField();\n tmal_car = new javax.swing.JTextField();\n mat_bat = new javax.swing.JTextField();\n mate_int = new javax.swing.JTextField();\n spin_bat = new javax.swing.JSpinner();\n spin_mal_car = new javax.swing.JSpinner();\n spin_int = new javax.swing.JSpinner();\n spinbot_int = new javax.swing.JSpinner();\n spin_car = new javax.swing.JSpinner();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n spin_info = new javax.swing.JSpinner();\n spin2_info = new javax.swing.JSpinner();\n spin3_info = new javax.swing.JSpinner();\n si1 = new javax.swing.JRadioButton();\n no1 = new javax.swing.JRadioButton();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n elec = new javax.swing.JRadioButton();\n manu = new javax.swing.JRadioButton();\n si2 = new javax.swing.JRadioButton();\n no2 = new javax.swing.JRadioButton();\n jLabel16 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n spin_cantasien = new javax.swing.JSpinner();\n colorcar = new javax.swing.JTextField();\n marcaudio = new javax.swing.JTextField();\n vincar = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n mate_asien = new javax.swing.JTextField();\n spin_asien = new javax.swing.JSpinner();\n auto_bat = new javax.swing.JSpinner();\n buttonGroup1 = new javax.swing.ButtonGroup();\n buttonGroup2 = new javax.swing.ButtonGroup();\n buttonGroup3 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jLabel26 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n vehi_combo = new javax.swing.JComboBox<>();\n tech_combo = new javax.swing.JComboBox<>();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 204));\n\n jLabel22.setForeground(new java.awt.Color(0, 0, 0));\n jLabel22.setText(\"Nombre:\");\n\n jLabel23.setForeground(new java.awt.Color(0, 0, 0));\n jLabel23.setText(\"ID:\");\n\n jLabel24.setForeground(new java.awt.Color(0, 0, 0));\n jLabel24.setText(\"Genero:\");\n\n jLabel25.setForeground(new java.awt.Color(0, 0, 0));\n jLabel25.setText(\"Edad:\");\n\n name_e.setBackground(new java.awt.Color(255, 255, 255));\n name_e.setForeground(new java.awt.Color(0, 0, 0));\n\n genero_e.setBackground(new java.awt.Color(255, 255, 255));\n genero_e.setForeground(new java.awt.Color(0, 0, 0));\n\n jLabel27.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/image/dominic.png\"))); // NOI18N\n\n jButton2.setText(\"Add\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n\n id_e.setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton2)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(genero_e, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n .addComponent(name_e, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\n .addComponent(edad_e)\n .addComponent(id_e))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 72, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel23)\n .addComponent(id_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(name_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(13, 13, 13)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(genero_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(31, 31, 31)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(edad_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addContainerGap(36, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout TECHSLayout = new javax.swing.GroupLayout(TECHS.getContentPane());\n TECHS.getContentPane().setLayout(TECHSLayout);\n TECHSLayout.setHorizontalGroup(\n TECHSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(TECHSLayout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n TECHSLayout.setVerticalGroup(\n TECHSLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jPanel2.setBackground(new java.awt.Color(204, 255, 255));\n\n jLabel1.setForeground(new java.awt.Color(0, 0, 0));\n jLabel1.setText(\"Autonomia (Bateria):\");\n\n jLabel2.setForeground(new java.awt.Color(0, 0, 0));\n jLabel2.setText(\"Material (Bateria):\");\n\n jLabel3.setForeground(new java.awt.Color(0, 0, 0));\n jLabel3.setText(\"Tiempo Ensamblaje (Bateria):\");\n\n jLabel4.setForeground(new java.awt.Color(0, 0, 0));\n jLabel4.setText(\"Tiempo Ensamblaje (Carroceria):\");\n\n jLabel5.setForeground(new java.awt.Color(0, 0, 0));\n jLabel5.setText(\"Tipo Maletero (Carroceria):\");\n\n jLabel6.setForeground(new java.awt.Color(0, 0, 0));\n jLabel6.setText(\"Capacidad Maletero (Carroceria):\");\n\n jLabel7.setForeground(new java.awt.Color(0, 0, 0));\n jLabel7.setText(\"Tipo de Volante (Interior):\");\n\n jLabel8.setForeground(new java.awt.Color(0, 0, 0));\n jLabel8.setText(\"Material mas usado (Interior):\");\n\n jLabel9.setForeground(new java.awt.Color(0, 0, 0));\n jLabel9.setText(\"Tiempo Ensamblaje (Interior):\");\n\n jLabel10.setForeground(new java.awt.Color(0, 0, 0));\n jLabel10.setText(\"Cantidad de botones (Interior):\");\n\n tipvol_int.setBackground(new java.awt.Color(255, 255, 255));\n\n tmal_car.setBackground(new java.awt.Color(255, 255, 255));\n\n mat_bat.setBackground(new java.awt.Color(255, 255, 255));\n\n mate_int.setBackground(new java.awt.Color(255, 255, 255));\n\n spin_bat.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin_mal_car.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin_int.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spinbot_int.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin_car.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n jLabel11.setForeground(new java.awt.Color(0, 0, 0));\n jLabel11.setText(\"Ancho Pantalla (Infoentretenimiento):\");\n\n jLabel12.setForeground(new java.awt.Color(0, 0, 0));\n jLabel12.setText(\"Visor (Infoentretenimiento):\");\n\n jLabel13.setForeground(new java.awt.Color(0, 0, 0));\n jLabel13.setText(\"Cantidad pantallas (Infoentretenimiento):\");\n\n jLabel14.setForeground(new java.awt.Color(0, 0, 0));\n jLabel14.setText(\"Tiempo Ensamblaje (Infoentretenimiento):\");\n\n spin_info.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin2_info.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n spin3_info.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n buttonGroup1.add(si1);\n si1.setForeground(new java.awt.Color(0, 0, 0));\n si1.setText(\"Si\");\n\n buttonGroup1.add(no1);\n no1.setForeground(new java.awt.Color(0, 0, 0));\n no1.setText(\"No\");\n\n jLabel15.setForeground(new java.awt.Color(0, 0, 0));\n jLabel15.setText(\"Masaje (Asientos):\");\n\n jLabel17.setForeground(new java.awt.Color(0, 0, 0));\n jLabel17.setText(\"Material (Asientos):\");\n\n jLabel18.setForeground(new java.awt.Color(0, 0, 0));\n jLabel18.setText(\"Tiempo Ensamblaje (Asientos):\");\n\n buttonGroup2.add(elec);\n elec.setForeground(new java.awt.Color(0, 0, 0));\n elec.setText(\"Electrico\");\n\n buttonGroup2.add(manu);\n manu.setForeground(new java.awt.Color(0, 0, 0));\n manu.setText(\"Manual\");\n\n buttonGroup3.add(si2);\n si2.setForeground(new java.awt.Color(0, 0, 0));\n si2.setText(\"Si\");\n\n buttonGroup3.add(no2);\n no2.setForeground(new java.awt.Color(0, 0, 0));\n no2.setText(\"No\");\n\n jLabel16.setForeground(new java.awt.Color(0, 0, 0));\n jLabel16.setText(\"Cantidad Asientos:\");\n\n jLabel19.setForeground(new java.awt.Color(0, 0, 0));\n jLabel19.setText(\"Marca Sistema de Audio:\");\n\n jLabel20.setForeground(new java.awt.Color(0, 0, 0));\n jLabel20.setText(\"Color:\");\n\n jLabel21.setForeground(new java.awt.Color(0, 0, 0));\n jLabel21.setText(\"VIN:\");\n\n spin_cantasien.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n colorcar.setBackground(new java.awt.Color(255, 255, 255));\n\n marcaudio.setBackground(new java.awt.Color(255, 255, 255));\n\n vincar.setBackground(new java.awt.Color(255, 255, 255));\n\n jButton1.setText(\"Crear\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n mate_asien.setBackground(new java.awt.Color(255, 255, 255));\n\n spin_asien.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\n\n auto_bat.setModel(new javax.swing.SpinnerNumberModel(0, 0, null, 1));\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 .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(spin_mal_car, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(72, 72, 72)\n .addComponent(mat_bat, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel8)\n .addComponent(jLabel7))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(spin_car, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tmal_car, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spin_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(si2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(elec)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(manu)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(no2, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel18)\n .addComponent(jLabel17))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(mate_asien, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)\n .addComponent(spin_asien)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tipvol_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(mate_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spinbot_int, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel21)\n .addComponent(jLabel20)\n .addComponent(jLabel19))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(vincar, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(marcaudio, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorcar, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)))))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(spin_bat, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(auto_bat, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(spin_info, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(spin3_info, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)\n .addComponent(spin2_info, javax.swing.GroupLayout.DEFAULT_SIZE, 144, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(si1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(no1))\n .addComponent(spin_cantasien))))))))\n .addContainerGap(68, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(mat_bat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(spin_bat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(spin_info, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(auto_bat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(spin2_info, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(si1)\n .addComponent(no1))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(spin3_info, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(10, 10, 10)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(spin_car, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(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 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(tmal_car, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(spin_mal_car, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(spin_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel18)\n .addGap(18, 18, 18)\n .addComponent(jLabel17)\n .addGap(14, 14, 14)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(elec)\n .addComponent(manu))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(si2)\n .addComponent(no2))))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8)\n .addComponent(mate_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(tipvol_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(spinbot_int, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(spin_asien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(mate_asien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(80, 80, 80)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(jLabel20)\n .addGap(18, 18, 18)\n .addComponent(jLabel19))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(vincar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(12, 12, 12)\n .addComponent(colorcar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(marcaudio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spin_cantasien, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout VEHILayout = new javax.swing.GroupLayout(VEHI.getContentPane());\n VEHI.getContentPane().setLayout(VEHILayout);\n VEHILayout.setHorizontalGroup(\n VEHILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(VEHILayout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n VEHILayout.setVerticalGroup(\n VEHILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel26.setForeground(new java.awt.Color(0, 0, 0));\n jLabel26.setText(\"Vehiculo:\");\n\n jLabel28.setForeground(new java.awt.Color(0, 0, 0));\n jLabel28.setText(\"Ensamblador:\");\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 .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tech_combo, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(vehi_combo, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(383, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(vehi_combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel28)\n .addComponent(tech_combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(318, Short.MAX_VALUE))\n );\n\n jMenu1.setText(\"Menu\");\n\n jMenuItem1.setText(\"Crear Vehiculo\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n jMenuItem2.setText(\"Crear Ensemblador\");\n jMenuItem2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jMenuItem2MouseClicked(evt);\n }\n });\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuBar1.add(jMenu1);\n\n setJMenuBar(jMenuBar1);\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel7 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n rp_tx_clave = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n rp_tx_nombre = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n rp_tx_cantidad = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n rp_tx_marca = new javax.swing.JComboBox<String>();\n jLabel5 = new javax.swing.JLabel();\n rp_tx_precio = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n rp_tx_descripcion = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n\n jLabel7.setBackground(new java.awt.Color(0, 0, 0));\n jLabel7.setFont(new java.awt.Font(\"Verdana\", 3, 24)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"REGISTRAR PRODUCTO\");\n\n jLabel1.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Clave:\");\n\n jLabel2.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Nombre:\");\n\n jLabel3.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Cantidad:\");\n\n jLabel4.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Marca:\");\n\n jLabel5.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Precio:\");\n\n jLabel6.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Descripcion:\");\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/btn_guardar.jpg\"))); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(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(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rp_tx_descripcion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rp_tx_precio, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rp_tx_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rp_tx_clave, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rp_tx_cantidad)\n .addComponent(rp_tx_marca, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addGroup(layout.createSequentialGroup()\n .addGap(95, 95, 95)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(25, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rp_tx_clave, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rp_tx_nombre)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rp_tx_cantidad)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(rp_tx_marca, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rp_tx_precio)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rp_tx_descripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(24, Short.MAX_VALUE))\n );\n\n pack();\n }",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenu2 = new javax.swing.JMenu();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n nomeLabel = new javax.swing.JLabel();\n cpfLabel = new javax.swing.JLabel();\n emailLabel = new javax.swing.JLabel();\n dataNscLabel = new javax.swing.JLabel();\n animaisComboBox = new javax.swing.JComboBox();\n jLabel12 = new javax.swing.JLabel();\n telefonesComboBox = new javax.swing.JComboBox();\n jLabel4 = new javax.swing.JLabel();\n removerAnimalBotao = new javax.swing.JButton();\n addAnimalBotao1 = new javax.swing.JButton();\n removerTelefoneBotao = new javax.swing.JButton();\n addTelefoneBotao1 = new javax.swing.JButton();\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 jLabel9 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n nomeLabel1 = new javax.swing.JLabel();\n nomeLabel2 = new javax.swing.JLabel();\n nomeLabel3 = new javax.swing.JLabel();\n nomeLabel4 = new javax.swing.JLabel();\n nomeLabel5 = new javax.swing.JLabel();\n nomeLabel6 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n jMenu1.setText(\"File\");\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n jMenuBar1.add(jMenu2);\n\n setTitle(\"AmigoVet - Cadastrar Cliente\");\n setResizable(false);\n\n jLabel1.setText(\"Nome\");\n\n jLabel2.setText(\"CPF\");\n\n jLabel3.setText(\"Email\");\n\n jLabel10.setText(\"Data de Nascimento\");\n\n jLabel11.setText(\"Endereço\");\n\n nomeLabel.setBackground(new java.awt.Color(255, 0, 0));\n nomeLabel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n cpfLabel.setBackground(new java.awt.Color(255, 0, 0));\n cpfLabel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n emailLabel.setBackground(new java.awt.Color(255, 0, 0));\n emailLabel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n dataNscLabel.setBackground(new java.awt.Color(255, 0, 0));\n dataNscLabel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n animaisComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n animaisComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n animaisComboBoxActionPerformed(evt);\n }\n });\n\n jLabel12.setText(\"Animais\");\n\n telefonesComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n telefonesComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n telefonesComboBoxActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Telefones\");\n\n removerAnimalBotao.setText(\"Remover Animal\");\n removerAnimalBotao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n removerAnimalBotaoActionPerformed(evt);\n }\n });\n\n addAnimalBotao1.setText(\"Adicionar Animal\");\n addAnimalBotao1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addAnimalBotao1ActionPerformed(evt);\n }\n });\n\n removerTelefoneBotao.setText(\"Remover Telefone\");\n\n addTelefoneBotao1.setText(\"Adicionar Telefone\");\n\n jLabel5.setText(\"Estado\");\n\n jLabel6.setText(\"Cidade\");\n\n jLabel7.setText(\"Bairro\");\n\n jLabel8.setText(\"Rua\");\n\n jLabel9.setText(\"Número\");\n\n jLabel13.setText(\"CEP\");\n\n nomeLabel1.setBackground(new java.awt.Color(255, 0, 0));\n nomeLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n nomeLabel2.setBackground(new java.awt.Color(255, 0, 0));\n nomeLabel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n nomeLabel3.setBackground(new java.awt.Color(255, 0, 0));\n nomeLabel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n nomeLabel4.setBackground(new java.awt.Color(255, 0, 0));\n nomeLabel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n nomeLabel5.setBackground(new java.awt.Color(255, 0, 0));\n nomeLabel5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n nomeLabel6.setBackground(new java.awt.Color(255, 0, 0));\n nomeLabel6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\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 .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(nomeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(emailLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cpfLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(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(79, 79, 79)\n .addComponent(jLabel11))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jLabel9)\n .addComponent(jLabel8)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel5))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(nomeLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nomeLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nomeLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nomeLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nomeLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nomeLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel4)\n .addComponent(telefonesComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addTelefoneBotao1)\n .addComponent(removerTelefoneBotao)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(dataNscLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel12)\n .addComponent(animaisComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(addAnimalBotao1)\n .addGap(27, 27, 27)\n .addComponent(removerAnimalBotao)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {nomeLabel1, nomeLabel2, nomeLabel3, nomeLabel4});\n\n jPanel1Layout.setVerticalGroup(\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 .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nomeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cpfLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(emailLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10)\n .addComponent(dataNscLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addComponent(jLabel4))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel11)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel5)\n .addComponent(nomeLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(nomeLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nomeLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(12, 12, 12)\n .addComponent(nomeLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jLabel7)\n .addGap(12, 12, 12)\n .addComponent(jLabel8)))\n .addGap(8, 8, 8)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(12, 12, 12)\n .addComponent(jLabel13))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(nomeLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(6, 6, 6)\n .addComponent(nomeLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(172, 172, 172)\n .addComponent(telefonesComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addTelefoneBotao1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(removerTelefoneBotao)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(animaisComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(removerAnimalBotao)\n .addComponent(addAnimalBotao1)))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {cpfLabel, emailLabel, nomeLabel});\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {nomeLabel1, nomeLabel2, nomeLabel3, nomeLabel4, nomeLabel5, nomeLabel6});\n\n jButton1.setText(\"Editar Perfil\");\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 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\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 jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n salvar = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JSeparator();\n nome = new javax.swing.JTextField();\n telefone = new javax.swing.JTextField();\n rua = new javax.swing.JTextField();\n bairro = new javax.swing.JTextField();\n cidade = new javax.swing.JComboBox<>();\n cpf = new javax.swing.JFormattedTextField();\n jLabel12 = new javax.swing.JLabel();\n numero = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(0, 102, 255));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/View/cliente.png\"))); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/View/icons8-Registration-96.png\"))); // NOI18N\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/View/Venda/icons8-Back-96.png\"))); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 32, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addGap(23, 23, 23))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(54, 54, 54)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(56, 56, 56)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel3.setFont(new java.awt.Font(\"Consolas\", 0, 18)); // NOI18N\n jLabel3.setText(\"CPF\");\n jPanel3.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 70, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Consolas\", 0, 18)); // NOI18N\n jLabel6.setText(\"Rua\");\n jPanel3.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 130, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Consolas\", 0, 18)); // NOI18N\n jLabel7.setText(\"Nome\");\n jPanel3.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 11, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Consolas\", 0, 18)); // NOI18N\n jLabel8.setText(\"Data de troca:\");\n jPanel3.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 380, -1, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Consolas\", 0, 18)); // NOI18N\n jLabel9.setText(\"Bairro\");\n jPanel3.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 190, -1, -1));\n\n jLabel10.setFont(new java.awt.Font(\"Consolas\", 0, 18)); // NOI18N\n jLabel10.setText(\"Telefone\");\n jPanel3.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 240, -1, -1));\n\n jLabel11.setFont(new java.awt.Font(\"Consolas\", 0, 18)); // NOI18N\n jLabel11.setText(\"Cidade\");\n jPanel3.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 310, -1, -1));\n\n salvar.setFont(new java.awt.Font(\"Consolas\", 0, 18)); // NOI18N\n salvar.setText(\"Salvar\");\n salvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n salvarActionPerformed(evt);\n }\n });\n jPanel3.add(salvar, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 430, -1, -1));\n jPanel3.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 349, 526, -1));\n jPanel3.add(nome, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 39, 252, -1));\n jPanel3.add(telefone, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 260, 252, -1));\n jPanel3.add(rua, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 160, 252, -1));\n jPanel3.add(bairro, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 210, 252, -1));\n\n cidade.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Iporá\", \"Diorama\", \"Amorinópolis\", \"Jaupaci\", \"Isrraelandia\", \"Ivolandia\", \"Montes Claros\", \"Palestina\" }));\n jPanel3.add(cidade, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 310, 100, -1));\n\n try {\n cpf.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###.###.###-##\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n jPanel3.add(cpf, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 100, 250, -1));\n\n jLabel12.setFont(new java.awt.Font(\"Consolas\", 0, 18)); // NOI18N\n jLabel12.setText(\"Número\");\n jPanel3.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 290, -1, -1));\n jPanel3.add(numero, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 320, 252, -1));\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 .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 464, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 830, 490));\n\n pack();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n utama = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n kembali = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n Pesan = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator6 = new javax.swing.JSeparator();\n jenis = new javax.swing.JComboBox<>();\n jLabel12 = new javax.swing.JLabel();\n jSeparator7 = new javax.swing.JSeparator();\n jLabel13 = new javax.swing.JLabel();\n warna = new javax.swing.JComboBox<>();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jSeparator8 = new javax.swing.JSeparator();\n jTextField6 = new javax.swing.JTextField();\n jSeparator4 = new javax.swing.JSeparator();\n jLabel10 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n close = new javax.swing.JLabel();\n minimize = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n utama.setBackground(new java.awt.Color(149, 165, 166));\n\n kembali.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n kembali.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Previous.png\")); // NOI18N\n kembali.setText(\"Back\");\n kembali.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n kembali.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n kembaliMouseClicked(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel2.setText(\"Nama Pemesan\");\n\n jLabel6.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n jLabel6.setText(\"Panjang\");\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n Pesan.setText(\"Order\");\n Pesan.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Pesan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n PesanActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel4.setText(\"No.Hp/Email\");\n\n jLabel5.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel5.setText(\"Ukuran\");\n\n jLabel9.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel9.setText(\"Alamat\");\n\n jLabel7.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n jLabel7.setText(\"Lebar\");\n\n jLabel8.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n jLabel8.setText(\"Tinggi\");\n\n jenis.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel12.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel12.setText(\"Jenis Box\");\n\n jLabel13.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel13.setText(\"Warna\");\n\n warna.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel14.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel14.setText(\"Email\");\n\n jLabel15.setFont(new java.awt.Font(\"Century Gothic\", 0, 14)); // NOI18N\n jLabel15.setText(\"Jumlah\");\n\n jLabel10.setFont(new java.awt.Font(\"Caprica Script Personal Use\", 2, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(0, 76, 144));\n jLabel10.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Instagram.png\")); // NOI18N\n jLabel10.setText(\"@fagiftbox\");\n\n javax.swing.GroupLayout utamaLayout = new javax.swing.GroupLayout(utama);\n utama.setLayout(utamaLayout);\n utamaLayout.setHorizontalGroup(\n utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(kembali))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(utamaLayout.createSequentialGroup()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jSeparator6)\n .addComponent(jLabel12)\n .addComponent(jSeparator7)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator4)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15)\n .addComponent(jLabel9))\n .addGap(51, 51, 51)\n .addComponent(jLabel3)))))\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(utamaLayout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Pesan)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jenis, javax.swing.GroupLayout.Alignment.LEADING, 0, 132, Short.MAX_VALUE)\n .addComponent(warna, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(utamaLayout.createSequentialGroup()\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel14)\n .addGap(18, 18, 18)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(utamaLayout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel7)\n .addGap(18, 18, 18)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(utamaLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(0, 38, Short.MAX_VALUE))))\n );\n utamaLayout.setVerticalGroup(\n utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(utamaLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(jLabel14))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jenis, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addGap(10, 10, 10)\n .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(warna, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(utamaLayout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Pesan)\n .addGap(21, 21, 21)\n .addGroup(utamaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(kembali)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n getContentPane().add(utama, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 70, 610, 510));\n\n jPanel1.setBackground(new java.awt.Color(44, 62, 80));\n\n jLabel1.setFont(new java.awt.Font(\"Caprica Script Personal Use\", 1, 28)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 202, 176));\n jLabel1.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Gift - 01.png\")); // NOI18N\n jLabel1.setText(\"FaGiftbox\");\n\n close.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Close.png\")); // NOI18N\n close.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n close.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n closeMouseClicked(evt);\n }\n });\n\n minimize.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\ASUS\\\\Documents\\\\NetBeansProjects\\\\Minimize-WF.png\")); // NOI18N\n minimize.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n minimize.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n minimizeMouseClicked(evt);\n }\n });\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 .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 325, Short.MAX_VALUE)\n .addComponent(minimize)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(close)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(close)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(minimize))\n .addContainerGap(23, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 610, 70));\n\n pack();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabelMatricula = new javax.swing.JLabel();\n jTextFieldAtividadesMatricula = new javax.swing.JTextField();\n jLabelNome = new javax.swing.JLabel();\n jTextFieldAtividadesNome = new javax.swing.JTextField();\n jComboBoxAtividadesTipo = new javax.swing.JComboBox<>();\n jLabelData = new javax.swing.JLabel();\n jLabelTipo = new javax.swing.JLabel();\n jTextFieldAtividadesData = new javax.swing.JFormattedTextField();\n jLabelLocal = new javax.swing.JLabel();\n jTextFieldAtividadesLocal = new javax.swing.JTextField();\n jLabelDescricao = new javax.swing.JLabel();\n jButtonAtividadesInserir = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaAtividadesDescricao = new javax.swing.JTextArea();\n jButtonLimpar = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Inserir Atividades\");\n addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameActivated(evt);\n }\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameOpened(evt);\n }\n });\n\n jLabelMatricula.setText(\"Matrícula:*\");\n\n jLabelNome.setText(\"Nome:*\");\n\n jComboBoxAtividadesTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecione\", \"Lazer\", \"Trabalho\", \"Escola\", \"Faculdade\", \"Física\" }));\n jComboBoxAtividadesTipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxAtividadesTipoActionPerformed(evt);\n }\n });\n\n jLabelData.setText(\"Data:*\");\n\n jLabelTipo.setText(\"Tipo: *\");\n\n try {\n jTextFieldAtividadesData.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabelLocal.setText(\"Local:*\");\n\n jLabelDescricao.setText(\"Descrição:\");\n\n jButtonAtividadesInserir.setText(\"Inserir\");\n jButtonAtividadesInserir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAtividadesInserirActionPerformed(evt);\n }\n });\n\n jTextAreaAtividadesDescricao.setColumns(20);\n jTextAreaAtividadesDescricao.setRows(5);\n jScrollPane1.setViewportView(jTextAreaAtividadesDescricao);\n\n jButtonLimpar.setText(\"Limpar\");\n jButtonLimpar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonLimparActionPerformed(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 .addComponent(jLabelMatricula)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabelNome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesNome))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonAtividadesInserir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonLimpar))\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelTipo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelData)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelLocal)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldAtividadesNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNome))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelMatricula)\n .addComponent(jTextFieldAtividadesMatricula, 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(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelData)\n .addComponent(jLabelTipo)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelLocal)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAtividadesInserir)\n .addComponent(jButtonLimpar))\n .addGap(1, 1, 1))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ImageIcon icon = new ImageIcon(getClass().getResource(\"/img/fundo.jpg\"));\n Image image = icon.getImage();\n jDesktopPane1 = new javax.swing.JDesktopPane(){\n public void paintComponent(Graphics g){\n g.drawImage(image,0,0,getWidth(),getHeight(),this);\n }\n };\n jPanel1 = new javax.swing.JPanel();\n txtData = new javax.swing.JLabel();\n txtHora = new javax.swing.JLabel();\n txtAdmin = new javax.swing.JLabel();\n jToolBar1 = new javax.swing.JToolBar();\n btnResidencia = new javax.swing.JButton();\n btnPessoas = new javax.swing.JButton();\n btnVeiculos = new javax.swing.JButton();\n btnVisitas = new javax.swing.JButton();\n btnRelatorio = new javax.swing.JButton();\n btnContato = new javax.swing.JButton();\n btnSair = new javax.swing.JButton();\n btnVisitas1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"QUANTUM SYSTEM - CONTROLE DE ACESSO\");\n setBackground(new java.awt.Color(255, 255, 255));\n\n txtData.setBackground(new java.awt.Color(255, 255, 255));\n txtData.setFont(new java.awt.Font(\"Tekton Pro Ext\", 1, 18)); // NOI18N\n\n txtHora.setFont(new java.awt.Font(\"Tekton Pro Ext\", 1, 18)); // NOI18N\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txtAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtData, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtHora, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtData, javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)\n .addComponent(txtHora, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txtAdmin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jDesktopPane1.setLayer(jPanel1, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);\n jDesktopPane1.setLayout(jDesktopPane1Layout);\n jDesktopPane1Layout.setHorizontalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jDesktopPane1Layout.setVerticalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDesktopPane1Layout.createSequentialGroup()\n .addContainerGap(599, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jToolBar1.setBackground(new java.awt.Color(255, 255, 255));\n jToolBar1.setBorder(null);\n jToolBar1.setFloatable(false);\n\n btnResidencia.setBackground(new java.awt.Color(255, 255, 255));\n btnResidencia.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n btnResidencia.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/residencias.png\"))); // NOI18N\n btnResidencia.setText(\"RESIDÊNCIAS\");\n btnResidencia.setToolTipText(\"\");\n btnResidencia.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n btnResidencia.setFocusable(false);\n btnResidencia.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnResidencia.setMaximumSize(new java.awt.Dimension(100, 60));\n btnResidencia.setMinimumSize(new java.awt.Dimension(100, 60));\n btnResidencia.setPreferredSize(new java.awt.Dimension(100, 60));\n btnResidencia.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnResidencia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnResidenciaActionPerformed(evt);\n }\n });\n jToolBar1.add(btnResidencia);\n\n btnPessoas.setBackground(new java.awt.Color(255, 255, 255));\n btnPessoas.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n btnPessoas.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/pessoas.png\"))); // NOI18N\n btnPessoas.setText(\"PESSOAS\");\n btnPessoas.setFocusable(false);\n btnPessoas.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnPessoas.setMaximumSize(new java.awt.Dimension(100, 60));\n btnPessoas.setMinimumSize(new java.awt.Dimension(100, 60));\n btnPessoas.setPreferredSize(new java.awt.Dimension(100, 60));\n btnPessoas.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnPessoas.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPessoasActionPerformed(evt);\n }\n });\n jToolBar1.add(btnPessoas);\n\n btnVeiculos.setBackground(new java.awt.Color(255, 255, 255));\n btnVeiculos.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n btnVeiculos.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/car.png\"))); // NOI18N\n btnVeiculos.setText(\"VEÍCULOS\");\n btnVeiculos.setFocusable(false);\n btnVeiculos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnVeiculos.setMaximumSize(new java.awt.Dimension(100, 60));\n btnVeiculos.setMinimumSize(new java.awt.Dimension(100, 60));\n btnVeiculos.setPreferredSize(new java.awt.Dimension(100, 60));\n btnVeiculos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnVeiculos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVeiculosActionPerformed(evt);\n }\n });\n jToolBar1.add(btnVeiculos);\n\n btnVisitas.setBackground(new java.awt.Color(255, 255, 255));\n btnVisitas.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n btnVisitas.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/visitas.png\"))); // NOI18N\n btnVisitas.setText(\"VISÍTAS\");\n btnVisitas.setFocusable(false);\n btnVisitas.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnVisitas.setMaximumSize(new java.awt.Dimension(100, 60));\n btnVisitas.setMinimumSize(new java.awt.Dimension(100, 60));\n btnVisitas.setPreferredSize(new java.awt.Dimension(100, 60));\n btnVisitas.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnVisitas.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVisitasActionPerformed(evt);\n }\n });\n jToolBar1.add(btnVisitas);\n\n btnRelatorio.setBackground(new java.awt.Color(255, 255, 255));\n btnRelatorio.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n btnRelatorio.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/relatorio.png\"))); // NOI18N\n btnRelatorio.setText(\"RELATÓRIO\");\n btnRelatorio.setFocusable(false);\n btnRelatorio.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnRelatorio.setMaximumSize(new java.awt.Dimension(100, 60));\n btnRelatorio.setMinimumSize(new java.awt.Dimension(100, 60));\n btnRelatorio.setPreferredSize(new java.awt.Dimension(100, 60));\n btnRelatorio.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnRelatorio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRelatorioActionPerformed(evt);\n }\n });\n jToolBar1.add(btnRelatorio);\n\n btnContato.setBackground(new java.awt.Color(255, 255, 255));\n btnContato.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n btnContato.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/contato.png\"))); // NOI18N\n btnContato.setText(\"CONTATO\");\n btnContato.setFocusable(false);\n btnContato.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnContato.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnContato.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnContatoActionPerformed(evt);\n }\n });\n jToolBar1.add(btnContato);\n\n btnSair.setBackground(new java.awt.Color(255, 255, 255));\n btnSair.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n btnSair.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/sair.png\"))); // NOI18N\n btnSair.setText(\"SAIR\");\n btnSair.setFocusable(false);\n btnSair.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnSair.setMaximumSize(new java.awt.Dimension(100, 60));\n btnSair.setMinimumSize(new java.awt.Dimension(100, 60));\n btnSair.setPreferredSize(new java.awt.Dimension(100, 60));\n btnSair.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSairActionPerformed(evt);\n }\n });\n jToolBar1.add(btnSair);\n\n btnVisitas1.setBackground(new java.awt.Color(255, 255, 255));\n btnVisitas1.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n btnVisitas1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/visitas.png\"))); // NOI18N\n btnVisitas1.setText(\"TESTE\");\n btnVisitas1.setFocusable(false);\n btnVisitas1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnVisitas1.setMaximumSize(new java.awt.Dimension(100, 60));\n btnVisitas1.setMinimumSize(new java.awt.Dimension(100, 60));\n btnVisitas1.setPreferredSize(new java.awt.Dimension(100, 60));\n btnVisitas1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnVisitas1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVisitas1ActionPerformed(evt);\n }\n });\n jToolBar1.add(btnVisitas1);\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(jDesktopPane1)\n .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 1196, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jDesktopPane1))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanelCadFabricantes = new javax.swing.JPanel();\n jTextFieldCodTipoMiniatura = new javax.swing.JTextField();\n jButtonSalvar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextFieldNomeTipoMiniatura = new javax.swing.JTextField();\n jButtonExcluir = new javax.swing.JButton();\n jButtonNovo = new javax.swing.JButton();\n jButtonConsultar = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jTextFieldQuantRegistros = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTableTipoDeMiniatura = new javax.swing.JTable();\n jButtonListar = new javax.swing.JButton();\n jButtonFechar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Cadastro de Tipo de Miniaturas\");\n\n jTextFieldCodTipoMiniatura.setEditable(false);\n\n jButtonSalvar.setText(\"SALVAR\");\n jButtonSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSalvarActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Cod.\");\n\n jLabel2.setText(\"Tipo\");\n\n jButtonExcluir.setText(\"EXCLUIR\");\n jButtonExcluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonExcluirActionPerformed(evt);\n }\n });\n\n jButtonNovo.setText(\"NOVO\");\n jButtonNovo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonNovoActionPerformed(evt);\n }\n });\n\n jButtonConsultar.setText(\"CONSULTAR\");\n jButtonConsultar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonConsultarActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Quant.Registros:\");\n\n jTextFieldQuantRegistros.setEditable(false);\n\n jTableTipoDeMiniatura.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Código\", \"Descrição\"\n }\n ));\n jTableTipoDeMiniatura.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jTableTipoDeMiniaturaMouseReleased(evt);\n }\n });\n jScrollPane2.setViewportView(jTableTipoDeMiniatura);\n if (jTableTipoDeMiniatura.getColumnModel().getColumnCount() > 0) {\n jTableTipoDeMiniatura.getColumnModel().getColumn(0).setMinWidth(50);\n jTableTipoDeMiniatura.getColumnModel().getColumn(0).setPreferredWidth(50);\n jTableTipoDeMiniatura.getColumnModel().getColumn(0).setMaxWidth(50);\n }\n\n jButtonListar.setText(\"LISTAR\");\n jButtonListar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonListarActionPerformed(evt);\n }\n });\n\n jButtonFechar.setText(\"FECHAR\");\n jButtonFechar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonFecharActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanelCadFabricantesLayout = new javax.swing.GroupLayout(jPanelCadFabricantes);\n jPanelCadFabricantes.setLayout(jPanelCadFabricantesLayout);\n jPanelCadFabricantesLayout.setHorizontalGroup(\n jPanelCadFabricantesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelCadFabricantesLayout.createSequentialGroup()\n .addGroup(jPanelCadFabricantesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelCadFabricantesLayout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addGroup(jPanelCadFabricantesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanelCadFabricantesLayout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldCodTipoMiniatura, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldNomeTipoMiniatura, javax.swing.GroupLayout.PREFERRED_SIZE, 398, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanelCadFabricantesLayout.createSequentialGroup()\n .addComponent(jButtonNovo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonListar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonConsultar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonExcluir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonSalvar)))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanelCadFabricantesLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2))\n .addGroup(jPanelCadFabricantesLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldQuantRegistros, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonFechar)))\n .addContainerGap())\n );\n jPanelCadFabricantesLayout.setVerticalGroup(\n jPanelCadFabricantesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelCadFabricantesLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanelCadFabricantesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextFieldCodTipoMiniatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)\n .addComponent(jTextFieldNomeTipoMiniatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanelCadFabricantesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonSalvar)\n .addComponent(jButtonExcluir)\n .addComponent(jButtonNovo)\n .addComponent(jButtonConsultar)\n .addComponent(jButtonListar))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21)\n .addGroup(jPanelCadFabricantesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jTextFieldQuantRegistros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonFechar))\n .addContainerGap(23, Short.MAX_VALUE))\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanelCadFabricantes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanelCadFabricantes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n envio = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n nombreEmpleado = new javax.swing.JTextField();\n jLabel19 = new javax.swing.JLabel();\n cedulaEmpleado = new javax.swing.JTextField();\n nombre1 = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n tipoBusquedaCliente = new javax.swing.JComboBox();\n txtIngresoDatoCliente = new javax.swing.JTextField();\n buscar = new javax.swing.JButton();\n newCliente = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n nombreCliente = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n cedulaCliente = new javax.swing.JTextField();\n jLabel17 = new javax.swing.JLabel();\n telefonoCliente = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n apellidoCliente = new javax.swing.JTextField();\n celularCliente = new javax.swing.JTextField();\n jPanel5 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n txtIngresoDatosPro = new javax.swing.JTextField();\n buscar1 = new javax.swing.JButton();\n tipoBusquedaProducto = new javax.swing.JComboBox();\n jLabel10 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n cantidadCompraPro = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n nombrePro = new javax.swing.JTextField();\n jLabel23 = new javax.swing.JLabel();\n precioUnitarioPro = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n ivaPro = new javax.swing.JTextField();\n jLabel25 = new javax.swing.JLabel();\n stockPro = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n codBarrasPro = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n pct_descuentoPro = new javax.swing.JTextField();\n jLabel28 = new javax.swing.JLabel();\n uniCompraPro = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n uniVentaPro = new javax.swing.JTextField();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tablaDetalles = new javax.swing.JTable();\n jPanel7 = new javax.swing.JPanel();\n btnQuitar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n subtotalTotal = new javax.swing.JTextField();\n descuentoTotal = new javax.swing.JTextField();\n totalFac = new javax.swing.JTextField();\n jPanel9 = new javax.swing.JPanel();\n rbtnSi = new javax.swing.JRadioButton();\n jLabel14 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n direccionEnvio = new javax.swing.JButton();\n rtbnNo = new javax.swing.JRadioButton();\n jPanel8 = new javax.swing.JPanel();\n jLabel15 = new javax.swing.JLabel();\n txttotalPagar = new javax.swing.JTextField();\n btnRecetaMedica = new javax.swing.JButton();\n jPanel10 = new javax.swing.JPanel();\n jButton6 = new javax.swing.JButton();\n\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de la Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de Factura\"));\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Número de Factura\");\n\n jTextField2.setEditable(false);\n jTextField2.setBackground(new java.awt.Color(255, 255, 255));\n jTextField2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jTextField2.setForeground(new java.awt.Color(51, 51, 51));\n jTextField2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jTextField2.setEnabled(false);\n\n jLabel3.setBackground(new java.awt.Color(255, 255, 255));\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"Fecha de Venta\");\n\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Nombre del Empleado: \");\n\n nombreEmpleado.setEditable(false);\n nombreEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreEmpleado.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreEmpleadoActionPerformed(evt);\n }\n });\n\n jLabel19.setBackground(new java.awt.Color(0, 102, 204));\n jLabel19.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel19.setText(\"Cedula del Empleado:\");\n\n cedulaEmpleado.setEditable(false);\n cedulaEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n nombre1.setEditable(false);\n nombre1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombre1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombre1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombre1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombre1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(37, 37, 37)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField2)\n .addComponent(nombreEmpleado)\n .addComponent(cedulaEmpleado)\n .addComponent(nombre1))\n .addGap(18, 18, 18))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nombre1, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cedulaEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Cliente\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel5.setBackground(new java.awt.Color(255, 255, 255));\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Buscar por: \");\n\n tipoBusquedaCliente.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaCliente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Cedula\", \"Nombre\" }));\n tipoBusquedaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n tipoBusquedaCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaClienteActionPerformed(evt);\n }\n });\n\n txtIngresoDatoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar.setBackground(new java.awt.Color(255, 255, 255));\n buscar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar.setForeground(new java.awt.Color(0, 102, 204));\n buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar.setText(\"Buscar\");\n buscar.setBorder(null);\n buscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscarActionPerformed(evt);\n }\n });\n\n newCliente.setBackground(new java.awt.Color(255, 255, 255));\n newCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n newCliente.setForeground(new java.awt.Color(0, 102, 204));\n newCliente.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n newCliente.setText(\"¿Desea almacenar un nuevo cliente? click aqui\");\n newCliente.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n newCliente.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n newClienteMouseClicked(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Nombre: \");\n\n nombreCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreClienteActionPerformed(evt);\n }\n });\n\n jLabel16.setBackground(new java.awt.Color(0, 102, 204));\n jLabel16.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\"Cedula:\");\n\n cedulaCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel17.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\" Telefono \");\n\n telefonoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n telefonoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n telefonoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel18.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"Apellido:\");\n\n jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel20.setText(\"Celular:\");\n\n apellidoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n apellidoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n apellidoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n celularCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n celularCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n celularCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n celularCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n celularClienteActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombreCliente, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(newCliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(109, 109, 109))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)\n .addComponent(celularCliente))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGap(0, 1, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(celularCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1))\n );\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Buscar Producto\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(102, 102, 102))); // NOI18N\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 0, 16)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(51, 51, 51));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Buscar\");\n\n txtIngresoDatosPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatosPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatosPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar1.setBackground(new java.awt.Color(255, 255, 255));\n buscar1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar1.setForeground(new java.awt.Color(0, 102, 204));\n buscar1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar1.setText(\"Buscar\");\n buscar1.setBorder(null);\n buscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscar1ActionPerformed(evt);\n }\n });\n\n tipoBusquedaProducto.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tipoBusquedaProducto.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaProducto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Codigo de Barras\", \"Nombre\" }));\n tipoBusquedaProducto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));\n tipoBusquedaProducto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaProductoActionPerformed(evt);\n }\n });\n\n jLabel10.setBackground(new java.awt.Color(255, 255, 255));\n jLabel10.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(0, 102, 204));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"Ingresar Cantidad a Comprar\");\n\n jButton1.setBackground(new java.awt.Color(255, 255, 255));\n jButton1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(0, 102, 204));\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/compra.png\"))); // NOI18N\n jButton1.setText(\"Añadir\");\n jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n cantidadCompraPro.setEditable(false);\n cantidadCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 12)); // NOI18N\n cantidadCompraPro.setForeground(new java.awt.Color(0, 102, 204));\n cantidadCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cantidadCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(102, 102, 102)));\n\n jLabel22.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel22.setText(\"Nombre: \");\n\n nombrePro.setEditable(false);\n nombrePro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombrePro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombrePro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel23.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"Código de Barras:\");\n\n precioUnitarioPro.setEditable(false);\n precioUnitarioPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n precioUnitarioPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n precioUnitarioPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel24.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel24.setText(\"IVA: \");\n\n ivaPro.setEditable(false);\n ivaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n ivaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel25.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"Stock:\");\n\n stockPro.setEditable(false);\n stockPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n stockPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n stockPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel26.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel26.setText(\"Precio Unitario:\");\n\n codBarrasPro.setEditable(false);\n codBarrasPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n codBarrasPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n codBarrasPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel27.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"Porcentaje de Descuento\");\n\n pct_descuentoPro.setEditable(false);\n pct_descuentoPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n pct_descuentoPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pct_descuentoPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n pct_descuentoPro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pct_descuentoProActionPerformed(evt);\n }\n });\n\n jLabel28.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"Unidad de Compra\");\n\n uniCompraPro.setEditable(false);\n uniCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel29.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel29.setText(\"Unidad de Venta\");\n\n uniVentaPro.setEditable(false);\n uniVentaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniVentaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniVentaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(7, 7, 7)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ivaPro, javax.swing.GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)\n .addComponent(precioUnitarioPro)\n .addComponent(stockPro))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(buscar1, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(codBarrasPro)\n .addComponent(pct_descuentoPro)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE))))\n .addGap(22, 22, 22))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(precioUnitarioPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ivaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(8, 8, 8)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stockPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar1)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(codBarrasPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pct_descuentoPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 255));\n jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Detalle de la Factura\"));\n\n jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));\n jScrollPane3.setBorder(null);\n\n tablaDetalles.setBackground(new java.awt.Color(0, 102, 204));\n tablaDetalles.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tablaDetalles.setForeground(new java.awt.Color(255, 255, 255));\n tablaDetalles.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Cantidad\", \"Producto\", \"Precio Unitario\", \"Subtotal\", \"Descuento por Producto\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.String.class, java.lang.Double.class, java.lang.Double.class, java.lang.Double.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, true, true\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tablaDetalles.setRowHeight(25);\n tablaDetalles.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tablaDetallesMouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(tablaDetalles);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 845, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 845, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 25, Short.MAX_VALUE)))\n );\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 255));\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Opciones\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n btnQuitar.setBackground(new java.awt.Color(255, 255, 255));\n btnQuitar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnQuitar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/eliminar.png\"))); // NOI18N\n btnQuitar.setText(\"Quitar\");\n btnQuitar.setEnabled(false);\n btnQuitar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnQuitarActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Subtotal:\");\n\n jLabel12.setText(\"Descuento Total:\");\n\n jLabel13.setText(\"Total:\");\n\n subtotalTotal.setEditable(false);\n subtotalTotal.setBackground(new java.awt.Color(255, 255, 255));\n subtotalTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n descuentoTotal.setEditable(false);\n descuentoTotal.setBackground(new java.awt.Color(255, 255, 255));\n descuentoTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n totalFac.setEditable(false);\n totalFac.setBackground(new java.awt.Color(255, 255, 255));\n totalFac.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnQuitar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal)\n .addComponent(totalFac))))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnQuitar, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(totalFac, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n\n jPanel9.setBackground(new java.awt.Color(255, 255, 255));\n jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Envio\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 12), new java.awt.Color(51, 51, 51))); // NOI18N\n\n envio.add(rbtnSi);\n rbtnSi.setText(\"Si\");\n rbtnSi.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rbtnSiMouseClicked(evt);\n }\n });\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/dinero.png\"))); // NOI18N\n jLabel14.setText(\"Precio de envio\");\n\n jTextField7.setEditable(false);\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField7.setText(\"$ 2.00\");\n\n direccionEnvio.setBackground(new java.awt.Color(255, 255, 255));\n direccionEnvio.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n direccionEnvio.setForeground(new java.awt.Color(0, 102, 204));\n direccionEnvio.setText(\"Añadir direccion de Envio del cliente\");\n direccionEnvio.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n direccionEnvio.setEnabled(false);\n direccionEnvio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n direccionEnvioActionPerformed(evt);\n }\n });\n\n envio.add(rtbnNo);\n rtbnNo.setSelected(true);\n rtbnNo.setText(\"No\");\n rtbnNo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rtbnNoMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rbtnSi)\n .addComponent(rtbnNo))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rbtnSi)\n .addComponent(jLabel14)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rtbnNo)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21))\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 255));\n jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Servicios\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel15.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/cobro.png\"))); // NOI18N\n jLabel15.setText(\"Total a Pagar:\");\n\n txttotalPagar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txttotalPagar.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txttotalPagar.setEnabled(false);\n txttotalPagar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txttotalPagarActionPerformed(evt);\n }\n });\n\n btnRecetaMedica.setBackground(new java.awt.Color(255, 255, 255));\n btnRecetaMedica.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnRecetaMedica.setForeground(new java.awt.Color(0, 102, 204));\n btnRecetaMedica.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/receta.png\"))); // NOI18N\n btnRecetaMedica.setText(\"Agregar Receta Medica\");\n btnRecetaMedica.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRecetaMedicaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(txttotalPagar)\n .addGap(23, 23, 23))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txttotalPagar, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Generar Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jButton6.setBackground(new java.awt.Color(255, 255, 255));\n jButton6.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton6.setForeground(new java.awt.Color(0, 102, 204));\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/impresora.png\"))); // NOI18N\n jButton6.setText(\"Imprimir Factura\");\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(23, 23, 23))\n );\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 .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\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)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n bg = new javax.swing.JPanel();\n salir = new javax.swing.JButton();\n Ok = new javax.swing.JButton();\n logo = new javax.swing.JLabel();\n materiaIngreso = new javax.swing.JLabel();\n diaIngreso = new javax.swing.JLabel();\n horaIngreso = new javax.swing.JLabel();\n bloqueIngreso = new javax.swing.JLabel();\n aulaIngreso = new javax.swing.JLabel();\n aforoIngreso = new javax.swing.JLabel();\n numEstudiantesIngreso = new javax.swing.JLabel();\n estudiantesIngreso = new javax.swing.JLabel();\n numListasIngreso = new javax.swing.JLabel();\n dia = new javax.swing.JTextField();\n materia = new javax.swing.JTextField();\n hora = new javax.swing.JTextField();\n bloque = new javax.swing.JTextField();\n aula = new javax.swing.JTextField();\n aforo = new javax.swing.JTextField();\n listasnum = new javax.swing.JTextField();\n listaEstudiantes = new javax.swing.JTextField();\n numEstudiantes = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n registrar = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n bg.setBackground(new java.awt.Color(255, 255, 255));\n bg.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n salir.setBackground(new java.awt.Color(255, 255, 255));\n salir.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n salir.setText(\"Salir\");\n salir.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n salirMouseClicked(evt);\n }\n });\n salir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n salirActionPerformed(evt);\n }\n });\n bg.add(salir, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 550, -1, 30));\n\n Ok.setBackground(new java.awt.Color(255, 255, 255));\n Ok.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n Ok.setText(\"OK\");\n Ok.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n OkActionPerformed(evt);\n }\n });\n bg.add(Ok, new org.netbeans.lib.awtextra.AbsoluteConstraints(840, 550, -1, 30));\n\n logo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/logo (2).png\"))); // NOI18N\n bg.add(logo, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 10, 290, 170));\n\n materiaIngreso.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n materiaIngreso.setText(\"Ingrese la materia:\");\n bg.add(materiaIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 100, 240, 40));\n\n diaIngreso.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n diaIngreso.setText(\"Ingrese el dia de la clase:\");\n bg.add(diaIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 110, -1, 20));\n\n horaIngreso.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n horaIngreso.setText(\"Ingrese la hora de la clase (Formato 24hrs):\");\n bg.add(horaIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, -1, -1));\n\n bloqueIngreso.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n bloqueIngreso.setText(\"Ingrese el bloque de la clase:\");\n bg.add(bloqueIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, -1, -1));\n\n aulaIngreso.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n aulaIngreso.setText(\"Ingrese el aula de la clase:\");\n bg.add(aulaIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 290, -1, -1));\n\n aforoIngreso.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n aforoIngreso.setText(\"Ingrese el aforo del aula: \");\n bg.add(aforoIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 280, -1, 30));\n\n numEstudiantesIngreso.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n numEstudiantesIngreso.setText(\"Ingrese el número de estudiantes: \");\n bg.add(numEstudiantesIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 370, -1, 30));\n\n estudiantesIngreso.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n estudiantesIngreso.setText(\"Ingrese la lista de estudiantes:\");\n bg.add(estudiantesIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 380, 240, 20));\n\n numListasIngreso.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n numListasIngreso.setText(\"Ingrese el número de listas que desea crear:\");\n bg.add(numListasIngreso, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 470, 260, -1));\n bg.add(dia, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 140, 250, 40));\n\n materia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n materiaActionPerformed(evt);\n }\n });\n bg.add(materia, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 140, 250, 40));\n bg.add(hora, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 230, 250, 40));\n bg.add(bloque, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 230, 250, 40));\n bg.add(aula, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 320, 250, 40));\n bg.add(aforo, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 320, 250, 40));\n\n listasnum.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n listasnumActionPerformed(evt);\n }\n });\n bg.add(listasnum, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 500, 250, 40));\n\n listaEstudiantes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n listaEstudiantesActionPerformed(evt);\n }\n });\n bg.add(listaEstudiantes, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 460, 250, 40));\n bg.add(numEstudiantes, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 410, 250, 40));\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/eafit biblioteca.jpg\"))); // NOI18N\n bg.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(574, -6, 320, 600));\n\n jPanel1.setBackground(new java.awt.Color(156, 178, 255));\n\n jLabel2.setBackground(new java.awt.Color(176, 186, 229));\n jLabel2.setFont(new java.awt.Font(\"Helvetica\", 1, 24)); // NOI18N\n jLabel2.setText(\"Organizador de Asistencia\");\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Checklist-PNG-Image.png\"))); // NOI18N\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 .addGap(18, 18, 18)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 492, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n\n bg.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 580, 90));\n\n jLabel1.setFont(new java.awt.Font(\"Helvetica\", 1, 10)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(153, 153, 153));\n jLabel1.setText(\"de cada alumno)\");\n bg.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 430, -1, 20));\n\n registrar.setBackground(new java.awt.Color(176, 186, 229));\n registrar.setFont(new java.awt.Font(\"Helvetica\", 1, 12)); // NOI18N\n registrar.setText(\"REGISTRAR\");\n registrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n registrarActionPerformed(evt);\n }\n });\n bg.add(registrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 520, 120, 30));\n\n jLabel5.setFont(new java.awt.Font(\"Helvetica\", 1, 10)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(153, 153, 153));\n jLabel5.setText(\"(haga click en registrar cuando escriba el nombre \");\n bg.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 410, -1, 20));\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(bg, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bg, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\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 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 txtNombre1 = new javax.swing.JTextField();\n txtNombre2 = new javax.swing.JTextField();\n txtApellido1 = new javax.swing.JTextField();\n txtApellido2 = new javax.swing.JTextField();\n txtCedula = new javax.swing.JTextField();\n btnBuscar = new javax.swing.JButton();\n jLabel16 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel11 = new javax.swing.JLabel();\n cmbTipoIncobrable = new javax.swing.JComboBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtDescripcion = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n txtFecha = new com.toedter.calendar.JDateChooser();\n btnModificar = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(stinventario.STInventarioApp.class).getContext().getResourceMap(frmClienteIncobrable.class);\n setTitle(resourceMap.getString(\"Form.title\")); // NOI18N\n setName(\"Form\"); // NOI18N\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString(\"jPanel1.border.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, resourceMap.getColor(\"jPanel1.border.titleColor\"))); // NOI18N\n jPanel1.setForeground(resourceMap.getColor(\"jPanel1.foreground\")); // NOI18N\n jPanel1.setName(\"jPanel1\"); // NOI18N\n\n jLabel1.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n jLabel1.setForeground(resourceMap.getColor(\"jLabel1.foreground\")); // NOI18N\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n jLabel2.setFont(resourceMap.getFont(\"jLabel4.font\")); // NOI18N\n jLabel2.setForeground(resourceMap.getColor(\"jLabel4.foreground\")); // NOI18N\n jLabel2.setText(resourceMap.getString(\"jLabel2.text\")); // NOI18N\n jLabel2.setName(\"jLabel2\"); // NOI18N\n\n jLabel3.setFont(resourceMap.getFont(\"jLabel4.font\")); // NOI18N\n jLabel3.setForeground(resourceMap.getColor(\"jLabel4.foreground\")); // NOI18N\n jLabel3.setText(resourceMap.getString(\"jLabel3.text\")); // NOI18N\n jLabel3.setName(\"jLabel3\"); // NOI18N\n\n jLabel4.setFont(resourceMap.getFont(\"jLabel4.font\")); // NOI18N\n jLabel4.setForeground(resourceMap.getColor(\"jLabel4.foreground\")); // NOI18N\n jLabel4.setText(resourceMap.getString(\"jLabel4.text\")); // NOI18N\n jLabel4.setName(\"jLabel4\"); // NOI18N\n\n jLabel5.setFont(resourceMap.getFont(\"jLabel4.font\")); // NOI18N\n jLabel5.setForeground(resourceMap.getColor(\"jLabel4.foreground\")); // NOI18N\n jLabel5.setText(resourceMap.getString(\"jLabel5.text\")); // NOI18N\n jLabel5.setName(\"jLabel5\"); // NOI18N\n\n txtNombre1.setEditable(false);\n txtNombre1.setText(resourceMap.getString(\"txtNombre1.text\")); // NOI18N\n txtNombre1.setName(\"txtNombre1\"); // NOI18N\n\n txtNombre2.setEditable(false);\n txtNombre2.setText(resourceMap.getString(\"txtNombre2.text\")); // NOI18N\n txtNombre2.setName(\"txtNombre2\"); // NOI18N\n\n txtApellido1.setEditable(false);\n txtApellido1.setText(resourceMap.getString(\"txtApellido1.text\")); // NOI18N\n txtApellido1.setName(\"txtApellido1\"); // NOI18N\n\n txtApellido2.setEditable(false);\n txtApellido2.setText(resourceMap.getString(\"txtApellido2.text\")); // NOI18N\n txtApellido2.setName(\"txtApellido2\"); // NOI18N\n\n txtCedula.setBackground(resourceMap.getColor(\"txtCedula.background\")); // NOI18N\n txtCedula.setText(resourceMap.getString(\"txtCedula.text\")); // NOI18N\n txtCedula.setName(\"txtCedula\"); // NOI18N\n txtCedula.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtCedulaFocusLost(evt);\n }\n });\n txtCedula.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtCedulaKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtCedulaKeyReleased(evt);\n }\n });\n\n btnBuscar.setIcon(resourceMap.getIcon(\"btnBuscar.icon\")); // NOI18N\n btnBuscar.setText(resourceMap.getString(\"btnBuscar.text\")); // NOI18N\n btnBuscar.setName(\"btnBuscar\"); // NOI18N\n btnBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarActionPerformed(evt);\n }\n });\n\n jLabel16.setName(\"jLabel16\"); // NOI18N\n\n jButton1.setText(resourceMap.getString(\"jButton1.text\")); // NOI18N\n jButton1.setName(\"jButton1\"); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCedula))\n .addComponent(txtApellido1)\n .addComponent(txtNombre1, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNombre2, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtApellido2, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE))\n .addComponent(btnBuscar)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel16)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jButton1)\n .addComponent(txtCedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscar))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNombre1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(txtNombre2, 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(7, 7, 7)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtApellido1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addGap(22, 22, 22)\n .addComponent(jLabel16))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtApellido2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString(\"jPanel2.border.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, resourceMap.getColor(\"jPanel2.border.titleColor\"))); // NOI18N\n jPanel2.setName(\"jPanel2\"); // NOI18N\n\n jLabel11.setText(resourceMap.getString(\"jLabel11.text\")); // NOI18N\n jLabel11.setName(\"jLabel11\"); // NOI18N\n\n cmbTipoIncobrable.setName(\"cmbTipoIncobrable\"); // NOI18N\n\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n\n txtDescripcion.setColumns(20);\n txtDescripcion.setRows(5);\n txtDescripcion.setName(\"txtDescripcion\"); // NOI18N\n jScrollPane1.setViewportView(txtDescripcion);\n\n jLabel6.setText(resourceMap.getString(\"jLabel6.text\")); // NOI18N\n jLabel6.setName(\"jLabel6\"); // NOI18N\n\n jLabel27.setText(resourceMap.getString(\"jLabel27.text\")); // NOI18N\n jLabel27.setName(\"jLabel27\"); // NOI18N\n\n txtFecha.setDateFormatString(resourceMap.getString(\"txtFecha.dateFormatString\")); // NOI18N\n txtFecha.setName(\"txtFecha\"); // NOI18N\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 .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel11)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addComponent(cmbTipoIncobrable, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)\n .addComponent(jLabel27)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 517, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmbTipoIncobrable, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addComponent(jLabel27)\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n btnModificar.setIcon(resourceMap.getIcon(\"btnModificar.icon\")); // NOI18N\n btnModificar.setText(resourceMap.getString(\"btnModificar.text\")); // NOI18N\n btnModificar.setName(\"btnModificar\"); // NOI18N\n btnModificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnModificarActionPerformed(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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(496, 496, 496)\n .addComponent(btnModificar))\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(11, 11, 11)\n .addComponent(btnModificar)\n .addContainerGap(15, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public JF_Inscripcion() {\n initComponents();\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 jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = 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 cbProdutos = new javax.swing.JComboBox();\n txtDescricao = new javax.swing.JTextField();\n txtPreco = new javax.swing.JTextField();\n spQtd = new javax.swing.JSpinner();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Imprimir Etiquetas\");\n setResizable(false);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(51, 51, 51));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/printer_bl.png\"))); // NOI18N\n jLabel1.setText(\"Imprimir Etiquetas\");\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/cross.png\"))); // NOI18N\n jButton1.setText(\"Fechar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/printer.png\"))); // NOI18N\n jButton2.setText(\"Imprimir\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Código:\");\n\n jLabel3.setText(\"Descrição:\");\n\n jLabel4.setText(\"Preço:\");\n\n jLabel5.setText(\"Quantidade:\");\n\n cbProdutos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbProdutosActionPerformed(evt);\n }\n });\n\n txtDescricao.setEditable(false);\n\n txtPreco.setEditable(false);\n\n spQtd.setEditor(new javax.swing.JSpinner.NumberEditor(spQtd, \"\"));\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 .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addContainerGap(82, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cbProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtDescricao, javax.swing.GroupLayout.DEFAULT_SIZE, 302, Short.MAX_VALUE)\n .addComponent(txtPreco, javax.swing.GroupLayout.DEFAULT_SIZE, 302, Short.MAX_VALUE)\n .addComponent(spQtd, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(cbProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtPreco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(spQtd, 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(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap())\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 .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n java.awt.Dimension dialogSize = getSize();\n setLocation((screenSize.width-dialogSize.width)/2,(screenSize.height-dialogSize.height)/2);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n direccionField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n iniciarSimulacion = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n marField = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n mbrField = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n irField = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButton1.setText(\"Inicio\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 3, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Introduzca una dirección de memoria (decimal)\");\n\n direccionField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n direccionFieldActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 3, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Program Counter (PC):\");\n\n iniciarSimulacion.setText(\"Iniciar simulación\");\n iniciarSimulacion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n iniciarSimulacionActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 3, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Memory Address Register (MAR):\");\n\n marField.setEditable(false);\n marField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n marFieldActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Salir\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 3, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Memory Buffer Register (MBR): \");\n\n mbrField.setEditable(false);\n mbrField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mbrFieldActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 3, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Instruction Register (IR):\");\n\n irField.setEditable(false);\n irField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n irFieldActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 3, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"CICLO DE CAPTACIÓ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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(marField, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(mbrField, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(irField, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(69, 69, 69)\n .addComponent(jLabel6))\n .addComponent(jLabel1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(42, 42, 42)\n .addComponent(direccionField, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(297, 297, 297)\n .addComponent(iniciarSimulacion)\n .addGap(18, 18, 18)\n .addComponent(jButton2)))\n .addGap(137, 137, 137))\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 .addComponent(jButton1)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel6)))\n .addGap(36, 36, 36)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(direccionField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(57, 57, 57)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(marField, 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(jLabel4)\n .addComponent(mbrField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(irField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 168, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(iniciarSimulacion)\n .addComponent(jButton2))\n .addContainerGap())\n );\n\n pack();\n }",
"public frmCliente() {\n initComponents();\n CargarProvinciasRes();\n CargarProvinciasTra();\n ManejadorCliente objCli = new ManejadorCliente();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btGravar = new javax.swing.JButton();\n btSair = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n tfNome = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n tfApelido = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n tfTelefone = new javax.swing.JTextField();\n tfCelular = new javax.swing.JTextField();\n tfPlaca = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n taObservacoes = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Registro de Cliente\");\n\n btGravar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/pedidogm/img/gravar_16x16.png\"))); // NOI18N\n btGravar.setMnemonic('G');\n btGravar.setText(\"Gravar\");\n btGravar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btGravarActionPerformed(evt);\n }\n });\n\n btSair.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/pedidogm/img/sair_16x16.png\"))); // NOI18N\n btSair.setMnemonic('S');\n btSair.setText(\"Sair\");\n btSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btSairActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Nome:\");\n\n jLabel2.setText(\"Apelido:\");\n\n jLabel3.setText(\"Telefone:\");\n\n jLabel4.setText(\"Celular:\");\n\n jLabel6.setText(\"Placa:\");\n\n jLabel7.setText(\"Observações:\");\n\n taObservacoes.setColumns(20);\n taObservacoes.setRows(5);\n jScrollPane1.setViewportView(taObservacoes);\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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btGravar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btSair))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel7))\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tfPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(tfApelido, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 461, Short.MAX_VALUE)\n .addComponent(tfCelular, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)\n .addComponent(tfTelefone, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tfNome)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(tfNome, 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(jLabel2)\n .addComponent(tfApelido, 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(jLabel6)\n .addComponent(tfPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(tfTelefone, 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(jLabel4)\n .addComponent(tfCelular, 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.LEADING)\n .addComponent(jLabel7)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btGravar)\n .addComponent(btSair))\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\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 jSeparator1 = new javax.swing.JSeparator();\n btnAgregar = new java.awt.Button();\n cancelar = new java.awt.Button();\n jLabel5 = new javax.swing.JLabel();\n fn = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n cp = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n ap = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n am = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n nombre = new javax.swing.JTextField();\n curp = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n rfc = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n domicilio = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n ocupacion = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n telefono = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n correo = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n sexo = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setMaximumSize(new java.awt.Dimension(790, 590));\n jPanel1.setMinimumSize(new java.awt.Dimension(790, 590));\n jPanel1.setPreferredSize(new java.awt.Dimension(790, 590));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 790, 10));\n\n btnAgregar.setActionCommand(\"btn_complete\");\n btnAgregar.setBackground(new java.awt.Color(36, 193, 93));\n btnAgregar.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n btnAgregar.setForeground(new java.awt.Color(255, 255, 255));\n btnAgregar.setLabel(\"Guardar\");\n btnAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarActionPerformed(evt);\n }\n });\n jPanel1.add(btnAgregar, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 530, 180, 33));\n\n cancelar.setActionCommand(\"btn_cancel\");\n cancelar.setBackground(new java.awt.Color(255, 0, 51));\n cancelar.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n cancelar.setForeground(new java.awt.Color(255, 255, 255));\n cancelar.setLabel(\"Cancelar \");\n cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelarActionPerformed(evt);\n }\n });\n jPanel1.add(cancelar, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 530, 180, 33));\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel5.setText(\"Fecha de Nacimiento\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 200, 150, 20));\n\n fn.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n fn.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n fn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n fnActionPerformed(evt);\n }\n });\n fn.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n fnKeyTyped(evt);\n }\n });\n jPanel1.add(fn, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 230, 152, 33));\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel6.setText(\"Codigo postal\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 100, 110, 40));\n\n cp.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n cp.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n cp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cpActionPerformed(evt);\n }\n });\n cp.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n cpKeyTyped(evt);\n }\n });\n jPanel1.add(cp, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 140, 152, 33));\n\n jLabel7.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel7.setText(\"Apellido Paterno\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 110, -1, -1));\n\n ap.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n ap.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n ap.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n apActionPerformed(evt);\n }\n });\n ap.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n apKeyTyped(evt);\n }\n });\n jPanel1.add(ap, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 140, 145, 33));\n\n jLabel8.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel8.setText(\"Apellido Materno\");\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 110, -1, -1));\n\n am.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n am.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n am.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n amActionPerformed(evt);\n }\n });\n am.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n amKeyTyped(evt);\n }\n });\n jPanel1.add(am, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 140, 145, 33));\n\n jLabel14.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel14.setText(\"Nombre\");\n jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 110, -1, -1));\n\n nombre.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n nombre.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n nombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreActionPerformed(evt);\n }\n });\n nombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n nombreKeyTyped(evt);\n }\n });\n jPanel1.add(nombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 140, 145, 33));\n\n curp.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n curp.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n curp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n curpActionPerformed(evt);\n }\n });\n curp.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n curpKeyTyped(evt);\n }\n });\n jPanel1.add(curp, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 230, 152, 33));\n\n jLabel9.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel9.setText(\"CURP\");\n jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 200, 150, 20));\n\n jLabel10.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel10.setText(\"RFC\");\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 200, 50, 20));\n\n rfc.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rfc.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n rfc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rfcActionPerformed(evt);\n }\n });\n rfc.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n rfcKeyTyped(evt);\n }\n });\n jPanel1.add(rfc, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 230, 152, 33));\n\n jLabel11.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel11.setText(\"Domicilio\");\n jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 290, 110, 40));\n\n domicilio.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n domicilio.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n domicilio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n domicilioActionPerformed(evt);\n }\n });\n jPanel1.add(domicilio, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 330, 152, 33));\n\n jLabel15.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel15.setText(\"Ocupación\");\n jPanel1.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 300, -1, -1));\n\n ocupacion.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n ocupacion.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n ocupacion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ocupacionActionPerformed(evt);\n }\n });\n jPanel1.add(ocupacion, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 330, 145, 33));\n\n jLabel12.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel12.setText(\"Telefono\");\n jPanel1.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 300, -1, -1));\n\n telefono.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n telefono.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n telefono.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n telefonoActionPerformed(evt);\n }\n });\n telefono.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n telefonoKeyTyped(evt);\n }\n });\n jPanel1.add(telefono, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 330, 145, 33));\n\n jLabel13.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel13.setText(\"Correo electronico\");\n jPanel1.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 300, -1, -1));\n\n correo.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n correo.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.lightGray, null));\n correo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n correoActionPerformed(evt);\n }\n });\n jPanel1.add(correo, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 330, 145, 33));\n\n jLabel16.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 16)); // NOI18N\n jLabel16.setText(\"Sexo\");\n jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 200, -1, -1));\n\n sexo.setBackground(new java.awt.Color(222, 184, 135));\n sexo.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n sexo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-\", \"Femenino\", \"Masculino\" }));\n sexo.setToolTipText(\"\");\n sexo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sexoActionPerformed(evt);\n }\n });\n jPanel1.add(sexo, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 230, 150, 30));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/icons8_Multiply_32px_1.png\"))); // NOI18N\n jLabel2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel2MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(750, 0, 40, 30));\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 }",
"@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 cb_node1 = new javax.swing.JComboBox();\n cb_node2 = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n tf_peso = new javax.swing.JFormattedTextField();\n cb_material = new javax.swing.JComboBox();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n sp_banda = new javax.swing.JSpinner();\n jLabel7 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Node 1: \");\n\n jLabel2.setText(\"Node 2:\");\n\n cb_node1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cb_node1ItemStateChanged(evt);\n }\n });\n\n jLabel3.setText(\"longitud\");\n\n jLabel4.setText(\"Material: \");\n\n jButton1.setText(\"Crear\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n tf_peso.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0\"))));\n\n cb_material.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"--Seleccione Material--\", \"Cobre\", \"Fibra Optica\" }));\n cb_material.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cb_materialItemStateChanged(evt);\n }\n });\n\n jLabel5.setText(\"Crear Conexion\");\n\n jLabel6.setText(\"Maximo ancho de Banda:\");\n\n sp_banda.setModel(new javax.swing.SpinnerNumberModel(1, 1, 1, 1));\n sp_banda.setEnabled(false);\n\n jLabel7.setText(\"conectado con: \");\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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cb_node1, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(jLabel7)\n .addGap(49, 49, 49))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tf_peso, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cb_material, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(62, 62, 62)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cb_node2, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(sp_banda, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5)\n .addGap(301, 301, 301))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel5)\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(cb_node1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cb_node2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(tf_peso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(cb_material, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(sp_banda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 56, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addGap(19, 19, 19))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n txtTelefono = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n txtLogo = new javax.swing.JLabel();\n btnagregar = new javax.swing.JToggleButton();\n botonagregar1 = new javax.swing.JToggleButton();\n btnSalir = new javax.swing.JButton();\n txtUbicacion = new javax.swing.JTextField();\n txtEmail = new javax.swing.JTextField();\n txtNombre = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n btnagregar3 = new javax.swing.JToggleButton();\n jLabel9 = new javax.swing.JLabel();\n txtId = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel3.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"E-mail:\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 390, -1, 20));\n\n txtTelefono.setBackground(new java.awt.Color(204, 204, 204));\n txtTelefono.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtTelefono.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtTelefonoActionPerformed(evt);\n }\n });\n getContentPane().add(txtTelefono, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 230, 90, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Nombre:\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 230, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Ubicación:\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 310, -1, 20));\n\n jLabel6.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Telefono:\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 230, -1, 20));\n\n jLabel8.setFont(new java.awt.Font(\"Century Gothic\", 1, 24)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"Departamento\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 100, -1, -1));\n\n txtLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/departamento.png\"))); // NOI18N\n getContentPane().add(txtLogo, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 0, 130, 130));\n\n btnagregar.setBackground(new java.awt.Color(0, 0, 51));\n btnagregar.setForeground(new java.awt.Color(0, 0, 51));\n btnagregar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/icono_home_inicio.png\"))); // NOI18N\n btnagregar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnagregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnagregarActionPerformed(evt);\n }\n });\n getContentPane().add(btnagregar, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 450, 50, 50));\n\n botonagregar1.setBackground(new java.awt.Color(0, 0, 51));\n botonagregar1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n botonagregar1.setForeground(new java.awt.Color(255, 255, 255));\n botonagregar1.setText(\"Aceptar\");\n botonagregar1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n botonagregar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonagregar1ActionPerformed(evt);\n }\n });\n getContentPane().add(botonagregar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 450, 115, 43));\n\n btnSalir.setBackground(new java.awt.Color(0, 0, 51));\n btnSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/ICONO1.png\"))); // NOI18N\n btnSalir.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnSalir.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnSalirMouseClicked(evt);\n }\n });\n btnSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalirActionPerformed(evt);\n }\n });\n getContentPane().add(btnSalir, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 450, 60, 50));\n\n txtUbicacion.setBackground(new java.awt.Color(204, 204, 204));\n txtUbicacion.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtUbicacion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtUbicacionActionPerformed(evt);\n }\n });\n getContentPane().add(txtUbicacion, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 310, 160, -1));\n\n txtEmail.setBackground(new java.awt.Color(204, 204, 204));\n txtEmail.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtEmail.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtEmailActionPerformed(evt);\n }\n });\n getContentPane().add(txtEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 390, 190, -1));\n\n txtNombre.setBackground(new java.awt.Color(204, 204, 204));\n txtNombre.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNombreActionPerformed(evt);\n }\n });\n getContentPane().add(txtNombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 230, 130, -1));\n\n jLabel12.setFont(new java.awt.Font(\"Century Gothic\", 1, 24)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(255, 0, 0));\n jLabel12.setText(\"Modificar\");\n getContentPane().add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 120, 130, 50));\n\n btnagregar3.setBackground(new java.awt.Color(0, 0, 51));\n btnagregar3.setForeground(new java.awt.Color(0, 0, 51));\n btnagregar3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/regresar.png\"))); // NOI18N\n btnagregar3.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnagregar3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnagregar3ActionPerformed(evt);\n }\n });\n getContentPane().add(btnagregar3, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 450, 50, 50));\n\n jLabel9.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"Id departamento:\");\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 180, 110, 30));\n\n txtId.setEditable(false);\n txtId.setBackground(new java.awt.Color(204, 204, 204));\n txtId.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtId.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtIdActionPerformed(evt);\n }\n });\n getContentPane().add(txtId, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 190, 70, -1));\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/gray.jpg\"))); // NOI18N\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 460, 520));\n\n pack();\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 txtnokartuperiksa = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txttglkartuperiksa = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n cmbresep = new javax.swing.JComboBox<>();\n txtnmplg = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtalamat = new javax.swing.JTextArea();\n txtumur = new javax.swing.JTextField();\n txtnotelp = new javax.swing.JTextField();\n cmdcetak = new javax.swing.JButton();\n cmdbatal = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel1.setText(\"No Kartu Periksa\");\n\n jLabel2.setText(\":\");\n\n txtnokartuperiksa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtnokartuperiksaActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel3.setText(\"Tgl Periksa\");\n\n jLabel4.setText(\":\");\n\n txttglkartuperiksa.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txttglkartuperiksaActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel5.setText(\"Cetak Kartu Periksa\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel6.setText(\"Resep\");\n\n jLabel7.setText(\"No Resep\");\n\n jLabel8.setText(\"Nama Pelanggan\");\n\n jLabel9.setText(\"Alamat\");\n\n jLabel10.setText(\"Umur\");\n\n jLabel11.setText(\"No Telp\");\n\n jLabel12.setText(\":\");\n\n jLabel14.setText(\":\");\n\n jLabel15.setText(\":\");\n\n jLabel16.setText(\":\");\n\n jLabel17.setText(\":\");\n\n cmbresep.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cmbresep.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cmbresepItemStateChanged(evt);\n }\n });\n\n txtalamat.setColumns(20);\n txtalamat.setRows(5);\n jScrollPane1.setViewportView(txtalamat);\n\n cmdcetak.setText(\"Cetak\");\n cmdcetak.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdcetakActionPerformed(evt);\n }\n });\n\n cmdbatal.setText(\"Batal\");\n cmdbatal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdbatalActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Keluar\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel6)\n .addGroup(layout.createSequentialGroup()\n .addGap(86, 86, 86)\n .addComponent(jLabel13))\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel11))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(8, 8, 8)\n .addComponent(jLabel2)\n .addGap(6, 6, 6)\n .addComponent(txtnokartuperiksa, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txttglkartuperiksa, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtnmplg)\n .addComponent(cmbresep, 0, 101, Short.MAX_VALUE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtnotelp, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE)\n .addComponent(txtumur, javax.swing.GroupLayout.Alignment.LEADING)))\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 211, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(204, 204, 204))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(cmdcetak)\n .addGap(50, 50, 50)\n .addComponent(cmdbatal)\n .addGap(45, 45, 45)\n .addComponent(jButton3)\n .addGap(165, 165, 165))))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel5)\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtnokartuperiksa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(txttglkartuperiksa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel6))\n .addGroup(layout.createSequentialGroup()\n .addGap(62, 62, 62)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jLabel7)\n .addComponent(cmbresep, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(txtnmplg, 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.LEADING)\n .addComponent(jLabel15)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(txtumur, 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.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jLabel9))\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 83, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(jLabel16))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(jLabel17)\n .addComponent(txtnotelp, 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(cmdcetak)\n .addComponent(cmdbatal)\n .addComponent(jButton3))\n .addGap(17, 17, 17))\n );\n\n pack();\n }",
"public VistaCombate() {\n initComponents();\n }",
"public guiProntuarioVirtual() {\n initComponents();\n \n }",
"public RegistroClientesGUI(){\n initComponents();\n obtenerSedes();\n \n //No olvidar agregar esto para agregarle las animaciones\n this.setLocationRelativeTo(null);\n\n this.setTitle(\"Empleados\");\n this.setResizable(false);\n \n \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 jLabel1 = new javax.swing.JLabel();\n txtIsim = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtTc = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtTel = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n txtSifre = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(51, 0, 102));\n\n jLabel1.setFont(new java.awt.Font(\"Arial Narrow\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"İsim ve Soyisim\");\n\n jLabel2.setFont(new java.awt.Font(\"Arial Narrow\", 1, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Tc No\");\n\n jLabel3.setFont(new java.awt.Font(\"Arial Narrow\", 1, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Tel No\");\n\n jButton1.setBackground(new java.awt.Color(51, 0, 204));\n jButton1.setFont(new java.awt.Font(\"Arial Narrow\", 1, 18)); // NOI18N\n jButton1.setForeground(new java.awt.Color(0, 204, 51));\n jButton1.setText(\"Ekle\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setBackground(new java.awt.Color(0, 51, 255));\n jButton2.setFont(new java.awt.Font(\"Arial Narrow\", 1, 18)); // NOI18N\n jButton2.setForeground(new java.awt.Color(255, 255, 255));\n jButton2.setText(\"Vazgeç\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Arial Narrow\", 1, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Şifreniz\");\n\n jLabel5.setFont(new java.awt.Font(\"Arial Narrow\", 1, 24)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(51, 255, 255));\n jLabel5.setText(\"Bilgileri Giriniz\");\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 .addGap(81, 81, 81)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtIsim)\n .addComponent(txtTc)\n .addComponent(txtTel)\n .addComponent(txtSifre, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 228, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(75, 75, 75))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIsim, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtTc, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtTel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtSifre, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(55, 55, 55))\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 690, 440));\n\n pack();\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n if(serializa.CargarTfg().isEmpty()){\n JOptionPane.showMessageDialog(this, \"TODAVÍA NO HAY TFGS REGISTRADOS\", \"INFORMACION\", JOptionPane.INFORMATION_MESSAGE);\n }else{\n InterfazVisualizarTfg lt = new InterfazVisualizarTfg(this.u, this.serializa){\n @Override\n public void dispose(){\n //Hacemos visible la principal\n getFrame().setVisible(true);\n //Cerramos\n super.dispose();\n }\n };\n this.setVisible(false);\n lt.setVisible(true); \n }\n \n }",
"private void initialize() {\n\t\tfrmCadastrarBateria = new JFrame();\n\t\tfrmCadastrarBateria.setIconImage(Toolkit.getDefaultToolkit().getImage(\"C:\\\\Erich\\\\Faculdade\\\\APS\\\\2\\u00BA Semestre\\\\Imagens\\\\Bateria.jpg\"));\n\t\tfrmCadastrarBateria.setTitle(\"Cadastrar Bateria\");\n\t\tfrmCadastrarBateria.setBounds(100, 100, 320, 201);\n\t\tfrmCadastrarBateria.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmCadastrarBateria.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Fabricante da bateria:\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblNewLabel.setBounds(10, 11, 128, 14);\n\t\tfrmCadastrarBateria.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblModeloDaBateria = new JLabel(\"Modelo da bateria:\");\n\t\tlblModeloDaBateria.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblModeloDaBateria.setBounds(10, 36, 128, 14);\n\t\tfrmCadastrarBateria.getContentPane().add(lblModeloDaBateria);\n\t\t\n\t\tJLabel lblTensoDaBateria = new JLabel(\"Tens\\u00E3o da bateria:\");\n\t\tlblTensoDaBateria.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblTensoDaBateria.setBounds(10, 61, 128, 14);\n\t\tfrmCadastrarBateria.getContentPane().add(lblTensoDaBateria);\n\t\t\n\t\ttextFieldFabricanteBateria = new JTextField();\n\t\ttextFieldFabricanteBateria.setBounds(148, 8, 129, 20);\n\t\tfrmCadastrarBateria.getContentPane().add(textFieldFabricanteBateria);\n\t\ttextFieldFabricanteBateria.setColumns(10);\n\t\t\n\t\ttextFieldNomeBateria = new JTextField();\n\t\ttextFieldNomeBateria.setColumns(10);\n\t\ttextFieldNomeBateria.setBounds(148, 33, 129, 20);\n\t\tfrmCadastrarBateria.getContentPane().add(textFieldNomeBateria);\n\t\t\n\t\ttextFieldTensaoBateria = new JTextField();\n\t\ttextFieldTensaoBateria.setColumns(10);\n\t\ttextFieldTensaoBateria.setBounds(148, 58, 129, 20);\n\t\tfrmCadastrarBateria.getContentPane().add(textFieldTensaoBateria);\n\t\t\n\t\tbtnCancelar = new JButton(\"Cancelar\");\n\t\tbtnCancelar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmCadastrarBateria.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnCancelar.setBounds(205, 128, 89, 23);\n\t\tfrmCadastrarBateria.getContentPane().add(btnCancelar);\n\t\t\n\t\tbtnOk = new JButton(\"Ok\");\n\t\tbtnOk.setBounds(205, 94, 89, 23);\n\t\tfrmCadastrarBateria.getContentPane().add(btnOk);\n\t}",
"public frmMain() {\n initComponents();\n pnlMemoria.setBackground(Color.GRAY);\n g = pnlMemoria.getGraphics();\n pnlMemoria.paintComponents(g);\n txtTablaProcesos.setEditable(false);\n listProcesos.setModel(procesos_en_disco);\n Proceso proceso = new Proceso(\"Sistema Operativo\");\n proceso.start();\n }",
"public frmVenda() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel6 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n Dat_Fech = new com.toedter.calendar.JDateChooser();\n TxtF_NumF = new javax.swing.JFormattedTextField();\n jSpinner1 = new javax.swing.JSpinner();\n jPanel3 = new javax.swing.JPanel();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n TxtF_Rur = new Utilidades.JFormattedText();\n TxtF_Tel = new Utilidades.JFormattedText();\n TxtF_Cel = new Utilidades.JFormattedText();\n jLabel18 = new javax.swing.JLabel();\n Txt_RasSos = new javax.swing.JTextField();\n Txt_Dir = new javax.swing.JTextField();\n jPanel10 = new javax.swing.JPanel();\n Lbl_Tel = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jPanel11 = new javax.swing.JPanel();\n TxtF_CodPer = new javax.swing.JFormattedTextField();\n jLabel12 = new javax.swing.JLabel();\n Btn_CarPer = new javax.swing.JButton();\n Lbl_Dir = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n Lbl_Ruc = new javax.swing.JLabel();\n Lbl_RasSos = new javax.swing.JLabel();\n Lbl_Cel = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jLabel14 = new javax.swing.JLabel();\n jComB_Moneda = new javax.swing.JComboBox(new Vector (mObjFachada.listarMondeda()));\n jLabel5 = new javax.swing.JLabel();\n jPanel5 = new javax.swing.JPanel();\n jScrollPane7 = new javax.swing.JScrollPane();\n Tab_LineaFact = new javax.swing.JTable();\n jLabel20 = new javax.swing.JLabel();\n jPanel8 = new javax.swing.JPanel();\n Lbl_IVA = new javax.swing.JLabel();\n Lbl_SubTotal = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n Lbl_Total = new javax.swing.JLabel();\n jPanel9 = new javax.swing.JPanel();\n jLabel38 = new javax.swing.JLabel();\n Btn_Cerrar = new javax.swing.JButton();\n Btn_Emitir = new javax.swing.JButton();\n jPanel7 = new javax.swing.JPanel();\n Btn_Agregar = new javax.swing.JButton();\n Btn_LineaBorrar = new javax.swing.JButton();\n\n jPanel6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jPanel1.setBackground(new java.awt.Color(204, 204, 204));\n\n jLabel2.setBackground(new java.awt.Color(153, 153, 153));\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jLabel2.setText(\"Fecha \");\n jLabel2.setOpaque(true);\n\n jLabel19.setBackground(new java.awt.Color(153, 153, 153));\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(255, 255, 255));\n jLabel19.setText(\"Número Cat.\");\n jLabel19.setOpaque(true);\n\n Dat_Fech.setOpaque(false);\n\n TxtF_NumF.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n TxtF_NumF.setText(\"213652\");\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(TxtF_NumF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 62, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jSpinner1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 38, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jLabel19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(jLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(Dat_Fech, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(19, 19, 19)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel19)\n .add(jLabel2))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(TxtF_NumF, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jSpinner1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(Dat_Fech, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(207, 228, 228));\n\n jTabbedPane1.setBackground(new java.awt.Color(204, 204, 204));\n\n jPanel2.setBackground(new java.awt.Color(204, 204, 204));\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel1.setText(\"Célular:\");\n\n jLabel8.setBackground(new java.awt.Color(153, 153, 153));\n jLabel8.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel8.setText(\"Razón Social:\");\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel9.setText(\"Rut\");\n\n jLabel15.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel15.setText(\"Télefono:\");\n\n TxtF_Rur.setValue(0);\n TxtF_Rur.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n TxtF_RurFocusGained(evt);\n }\n });\n\n jLabel18.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel18.setText(\"Dirección\");\n\n Txt_RasSos.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n Txt_RasSosFocusGained(evt);\n }\n });\n\n Txt_Dir.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n Txt_DirFocusGained(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel8)\n .add(Txt_RasSos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 162, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(14, 14, 14)\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(TxtF_Rur, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 131, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel9))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel15)\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(TxtF_Tel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 143, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel1)\n .add(TxtF_Cel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 118, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))\n .add(jLabel18)\n .add(Txt_Dir, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 332, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(24, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(jPanel2Layout.createSequentialGroup()\n .add(jLabel8)\n .add(8, 8, 8)\n .add(Txt_RasSos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jPanel2Layout.createSequentialGroup()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel9)\n .add(jLabel15))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(TxtF_Rur, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(TxtF_Tel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel2Layout.createSequentialGroup()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel18)\n .add(jLabel1))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(Txt_Dir, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel2Layout.createSequentialGroup()\n .add(20, 20, 20)\n .add(TxtF_Cel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(29, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Datos Facturación\", jPanel2);\n\n jPanel10.setBackground(new java.awt.Color(204, 204, 204));\n\n Lbl_Tel.setBackground(new java.awt.Color(255, 255, 204));\n Lbl_Tel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Lbl_Tel.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n Lbl_Tel.setMaximumSize(new java.awt.Dimension(72, 27));\n Lbl_Tel.setOpaque(true);\n\n jLabel11.setBackground(new java.awt.Color(153, 153, 153));\n jLabel11.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel11.setText(\"Razón Social:\");\n\n jPanel11.setBackground(new java.awt.Color(207, 228, 228));\n jPanel11.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n TxtF_CodPer.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#0\"))));\n TxtF_CodPer.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n TxtF_CodPerKeyPressed(evt);\n }\n });\n\n jLabel12.setBackground(new java.awt.Color(13, 151, 239));\n jLabel12.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(255, 255, 255));\n jLabel12.setText(\"Codigo\");\n jLabel12.setOpaque(true);\n\n Btn_CarPer.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/buscaCli2.png\"))); // NOI18N\n Btn_CarPer.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n Btn_CarPer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_CarPerActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel11Layout = new org.jdesktop.layout.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .add(Btn_CarPer, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(TxtF_CodPer, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 56, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel11Layout.createSequentialGroup()\n .add(jLabel12)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(TxtF_CodPer, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(Btn_CarPer, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n );\n\n Lbl_Dir.setBackground(new java.awt.Color(255, 255, 204));\n Lbl_Dir.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n Lbl_Dir.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n Lbl_Dir.setMaximumSize(new java.awt.Dimension(72, 27));\n Lbl_Dir.setOpaque(true);\n\n jLabel13.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel13.setText(\"Rut\");\n\n jLabel16.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel16.setText(\"Télefono:\");\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel6.setText(\"Célular:\");\n\n jLabel21.setFont(new java.awt.Font(\"Arial\", 1, 11)); // NOI18N\n jLabel21.setText(\"Dirección\");\n\n Lbl_Ruc.setBackground(new java.awt.Color(255, 255, 204));\n Lbl_Ruc.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n Lbl_Ruc.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n Lbl_Ruc.setMaximumSize(new java.awt.Dimension(72, 27));\n Lbl_Ruc.setOpaque(true);\n\n Lbl_RasSos.setBackground(new java.awt.Color(255, 255, 204));\n Lbl_RasSos.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n Lbl_RasSos.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n Lbl_RasSos.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n Lbl_RasSos.setMaximumSize(new java.awt.Dimension(72, 27));\n Lbl_RasSos.setOpaque(true);\n\n Lbl_Cel.setBackground(new java.awt.Color(255, 255, 204));\n Lbl_Cel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Lbl_Cel.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n Lbl_Cel.setMaximumSize(new java.awt.Dimension(72, 27));\n Lbl_Cel.setOpaque(true);\n\n org.jdesktop.layout.GroupLayout jPanel10Layout = new org.jdesktop.layout.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel10Layout.createSequentialGroup()\n .add(10, 10, 10)\n .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel10Layout.createSequentialGroup()\n .add(jPanel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(15, 15, 15)\n .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 90, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(Lbl_RasSos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 190, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(3, 3, 3)\n .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel13)\n .add(Lbl_Ruc, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 122, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(jPanel10Layout.createSequentialGroup()\n .add(jLabel21)\n .add(167, 167, 167)\n .add(jLabel6)\n .add(85, 85, 85)\n .add(jLabel16))\n .add(jPanel10Layout.createSequentialGroup()\n .add(Lbl_Dir, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 213, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(6, 6, 6)\n .add(Lbl_Cel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 120, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(6, 6, 6)\n .add(Lbl_Tel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 120, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel10Layout.createSequentialGroup()\n .add(10, 10, 10)\n .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel10Layout.createSequentialGroup()\n .add(jLabel11)\n .add(7, 7, 7)\n .add(Lbl_RasSos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jPanel10Layout.createSequentialGroup()\n .add(1, 1, 1)\n .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jPanel10Layout.createSequentialGroup()\n .add(jLabel13)\n .add(6, 6, 6)\n .add(Lbl_Ruc, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))\n .add(6, 6, 6)\n .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel21)\n .add(jLabel6)\n .add(jLabel16))\n .add(6, 6, 6)\n .add(jPanel10Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(Lbl_Dir, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(Lbl_Cel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(Lbl_Tel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n );\n\n jTabbedPane1.addTab(\"Personas del sistema\", jPanel10);\n\n org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 495, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 150, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jPanel4.setBackground(new java.awt.Color(204, 204, 204));\n\n jLabel14.setBackground(new java.awt.Color(153, 153, 153));\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel14.setForeground(new java.awt.Color(255, 255, 255));\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/coins.png\"))); // NOI18N\n jLabel14.setText(\"Moneda\");\n jLabel14.setOpaque(true);\n\n org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jComB_Moneda, 0, 115, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .add(jLabel14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 29, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jComB_Moneda, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel5.setBackground(new java.awt.Color(204, 204, 204));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/Logo.png\"))); // NOI18N\n jLabel5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabel5.setOpaque(true);\n\n org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel6Layout.createSequentialGroup()\n .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 126, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(jPanel6Layout.createSequentialGroup()\n .add(67, 67, 67)\n .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel6Layout.createSequentialGroup()\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel6Layout.createSequentialGroup()\n .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 79, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\n );\n\n jPanel5.setBackground(new java.awt.Color(153, 153, 153));\n\n jScrollPane7.setBackground(new java.awt.Color(204, 204, 204));\n jScrollPane7.setViewportView(Tab_LineaFact);\n\n jLabel20.setBackground(new java.awt.Color(255, 153, 153));\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel20.setText(\"Productos\");\n\n jPanel8.setBackground(new java.awt.Color(204, 204, 204));\n\n Lbl_IVA.setBackground(new java.awt.Color(207, 228, 228));\n Lbl_IVA.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Lbl_IVA.setMaximumSize(new java.awt.Dimension(72, 27));\n Lbl_IVA.setOpaque(true);\n\n Lbl_SubTotal.setBackground(new java.awt.Color(207, 228, 228));\n Lbl_SubTotal.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Lbl_SubTotal.setMaximumSize(new java.awt.Dimension(84, 27));\n Lbl_SubTotal.setOpaque(true);\n\n jLabel3.setBackground(new java.awt.Color(0, 0, 0));\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Sub TOTAL\");\n jLabel3.setOpaque(true);\n\n jLabel4.setBackground(new java.awt.Color(0, 0, 0));\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"IVA\");\n jLabel4.setOpaque(true);\n\n jLabel10.setFont(new java.awt.Font(\"Lucida Fax\", 1, 14)); // NOI18N\n jLabel10.setText(\"TOTAL\");\n jLabel10.setOpaque(true);\n\n Lbl_Total.setBackground(new java.awt.Color(255, 102, 102));\n Lbl_Total.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n Lbl_Total.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n Lbl_Total.setText(\"0.00\");\n Lbl_Total.setOpaque(true);\n\n jPanel9.setBackground(new java.awt.Color(204, 204, 204));\n\n jLabel38.setBackground(new java.awt.Color(255, 153, 153));\n jLabel38.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel38.setText(\"Acciones\");\n\n Btn_Cerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/Crystal_Clear_action_editdelete.png\"))); // NOI18N\n Btn_Cerrar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n Btn_Cerrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_CerrarActionPerformed(evt);\n }\n });\n\n Btn_Emitir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/Yes v3.png\"))); // NOI18N\n Btn_Emitir.setFocusPainted(false);\n Btn_Emitir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n Btn_Emitir.setInheritsPopupMenu(true);\n Btn_Emitir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_EmitirActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel9Layout = new org.jdesktop.layout.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel9Layout.createSequentialGroup()\n .add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel9Layout.createSequentialGroup()\n .add(Btn_Cerrar)\n .add(18, 18, 18)\n .add(Btn_Emitir, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 57, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jLabel38, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel9Layout.createSequentialGroup()\n .add(jLabel38, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(Btn_Emitir, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(Btn_Cerrar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n org.jdesktop.layout.GroupLayout jPanel8Layout = new org.jdesktop.layout.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\n .add(jLabel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(Lbl_SubTotal, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 93, Short.MAX_VALUE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(jLabel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(Lbl_IVA, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 62, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jPanel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(Lbl_Total, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)\n .add(jLabel10, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel8Layout.createSequentialGroup()\n .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel4)\n .add(jLabel3))\n .add(5, 5, 5)\n .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(Lbl_SubTotal, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(Lbl_IVA, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 27, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel8Layout.createSequentialGroup()\n .add(7, 7, 7)\n .add(jLabel10)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(Lbl_Total, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 65, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n jPanel7.setBackground(new java.awt.Color(207, 228, 228));\n\n Btn_Agregar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/Crystal_Clear_action_db_add.png\"))); // NOI18N\n Btn_Agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_AgregarActionPerformed(evt);\n }\n });\n\n Btn_LineaBorrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/Crystal_Clear_action_db_remove.png\"))); // NOI18N\n Btn_LineaBorrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_LineaBorrarActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel7Layout.createSequentialGroup()\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, Btn_Agregar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 41, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, Btn_LineaBorrar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 41, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .add(Btn_Agregar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(Btn_LineaBorrar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel20)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane7)\n .add(jPanel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel5Layout.createSequentialGroup()\n .add(jLabel20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jPanel5Layout.createSequentialGroup()\n .add(jScrollPane7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 383, Short.MAX_VALUE)\n .add(11, 11, 11)\n .add(jPanel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(jPanel6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(jPanel5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cod = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n Sact = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n desc = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n Smax = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n agregar = new javax.swing.JButton();\n Smin = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n unitario = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n tipo = new javax.swing.JComboBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Articulo Nuevo\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n cod.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n codActionPerformed(evt);\n }\n });\n getContentPane().add(cod, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, 105, 30));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Ingrese el Codigo\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 30, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel5.setText(\"Stock Minimo\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, -1, -1));\n\n Sact.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SactActionPerformed(evt);\n }\n });\n getContentPane().add(Sact, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 260, 105, 30));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"Stock Actual\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 270, -1, -1));\n\n desc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n descActionPerformed(evt);\n }\n });\n getContentPane().add(desc, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 60, 260, 30));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"Descripcion\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, -1, -1));\n\n Smax.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SmaxActionPerformed(evt);\n }\n });\n getContentPane().add(Smax, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 180, 105, 30));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setText(\"Tipo\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 150, -1, -1));\n\n agregar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/ico_carro.png\"))); // NOI18N\n agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n agregarActionPerformed(evt);\n }\n });\n getContentPane().add(agregar, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 330, 80, -1));\n\n Smin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SminActionPerformed(evt);\n }\n });\n getContentPane().add(Smin, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 220, 105, 30));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel6.setText(\"Precio Unitario\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));\n\n unitario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n unitarioActionPerformed(evt);\n }\n });\n getContentPane().add(unitario, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 100, 105, 30));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"AGREGAR\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 350, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel8.setText(\"Stock Maximo\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 190, -1, -1));\n\n tipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccione el Tipo\" }));\n tipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoActionPerformed(evt);\n }\n });\n getContentPane().add(tipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 150, 190, -1));\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n BtnCardinal = new javax.swing.JButton();\n BtnElemento = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n BtnUnion = new javax.swing.JButton();\n BtnIgual = new javax.swing.JButton();\n BtnInter = new javax.swing.JButton();\n BtnDiferencia = new javax.swing.JButton();\n BtnDiferencia1 = new javax.swing.JButton();\n BtnCartesiano = new javax.swing.JButton();\n TxtDisplay = new javax.swing.JTextField();\n BtnBuscar = new javax.swing.JButton();\n BtnSalir = new javax.swing.JButton();\n BtnLimpiar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Aplicación Calculadora de Conjuntos\");\n setBackground(new java.awt.Color(255, 255, 255));\n\n BtnCardinal.setText(\"Cardinalidad\");\n BtnCardinal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnCardinalActionPerformed(evt);\n }\n });\n\n BtnElemento.setText(\"Elemento [i]\");\n BtnElemento.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnElementoActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Autor: Marvin Zambrano V 2.0\");\n\n BtnUnion.setText(\"Unión\");\n BtnUnion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnUnionActionPerformed(evt);\n }\n });\n\n BtnIgual.setText(\"IGUAL\");\n BtnIgual.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnIgualActionPerformed(evt);\n }\n });\n\n BtnInter.setText(\"Interseccion\");\n BtnInter.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnInterActionPerformed(evt);\n }\n });\n\n BtnDiferencia.setText(\"Diferencia \");\n BtnDiferencia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnDiferenciaActionPerformed(evt);\n }\n });\n\n BtnDiferencia1.setText(\"Diferencia Simetrica\");\n BtnDiferencia1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnDiferencia1ActionPerformed(evt);\n }\n });\n\n BtnCartesiano.setText(\"Producto Cartesiano\");\n BtnCartesiano.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnCartesianoActionPerformed(evt);\n }\n });\n\n TxtDisplay.setHorizontalAlignment(javax.swing.JTextField.TRAILING);\n\n BtnBuscar.setText(\"Buscar\");\n BtnBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnBuscarActionPerformed(evt);\n }\n });\n\n BtnSalir.setText(\"Salir\");\n BtnSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnSalirActionPerformed(evt);\n }\n });\n\n BtnLimpiar.setText(\"Limpiar\");\n BtnLimpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnLimpiarActionPerformed(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 .addComponent(TxtDisplay)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(140, 140, 140)\n .addComponent(BtnCartesiano)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(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(34, 34, 34)\n .addComponent(BtnUnion))\n .addComponent(BtnDiferencia))\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(BtnInter)\n .addGap(8, 8, 8))\n .addComponent(BtnDiferencia1, javax.swing.GroupLayout.Alignment.TRAILING)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(BtnCardinal)\n .addGap(83, 83, 83)\n .addComponent(BtnBuscar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 100, Short.MAX_VALUE)\n .addComponent(BtnElemento)))\n .addContainerGap())))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addComponent(BtnIgual)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(BtnSalir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(BtnLimpiar)\n .addGap(27, 27, 27))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(5, 5, 5)\n .addComponent(TxtDisplay, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BtnCardinal)\n .addComponent(BtnElemento)\n .addComponent(BtnBuscar))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BtnUnion)\n .addComponent(BtnInter))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BtnDiferencia)\n .addComponent(BtnDiferencia1))\n .addGap(18, 18, 18)\n .addComponent(BtnCartesiano)\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BtnIgual)\n .addComponent(BtnSalir)\n .addComponent(BtnLimpiar))\n .addContainerGap(64, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n precioAUno = new javax.swing.JButton();\n reporte = new javax.swing.JButton();\n b93 = new javax.swing.JTextField();\n b95 = new javax.swing.JTextField();\n b97 = new javax.swing.JTextField();\n disel = new javax.swing.JTextField();\n kerosene = new javax.swing.JTextField();\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 jLabel6 = new javax.swing.JLabel();\n estacionesDeServicios = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jLabel10 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n estacionesDeServicios1 = new javax.swing.JComboBox<>();\n jLabel13 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n precioAUno.setText(\"Actualizar precios\");\n precioAUno.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n precioAUnoActionPerformed(evt);\n }\n });\n\n reporte.setText(\"Generar Informe\");\n reporte.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n reporteActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"93\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"95\");\n\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"97\");\n\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Disel\");\n\n jLabel5.setText(\"Kerosene\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"Casa Matriz\");\n\n estacionesDeServicios.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Todas\" }));\n estacionesDeServicios.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n estacionesDeServiciosActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Nueva Sucursal\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Elija una sucursal \");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel8.setText(\"Cambio de precios\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"Nuevos precios a fijar por litro (L)\");\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel11.setText(\"Agregar una sucursal\");\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel10.setText(\"Informe de ventas por tipo de combustible\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel12.setText(\"Elija una sucursal \");\n\n estacionesDeServicios1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n estacionesDeServicios1ActionPerformed(evt);\n }\n });\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel13.setText(\"Tipo de combustible\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"93\", \"95\", \"97.Diesel\", \"Kerosene\" }));\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(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)\n .addComponent(estacionesDeServicios, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jSeparator1))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(precioAUno, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGap(10, 10, 10))\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(10, 10, 10))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jSeparator2)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jSeparator3)\n .addGap(10, 10, 10))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(estacionesDeServicios1, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(83, 83, 83)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(disel, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(b93, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(b95, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(b97, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(kerosene, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(10, 10, 10))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10))\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(reporte, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(10, 10, 10))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(10, 10, 10))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel6)\n .addGap(10, 10, 10)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(jButton1))\n .addGap(10, 10, 10)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jLabel8)\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(estacionesDeServicios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(10, 10, 10)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(b93, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(b95, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(b97, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(disel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(kerosene, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addGap(18, 18, Short.MAX_VALUE)\n .addComponent(precioAUno, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(15, 15, 15)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(estacionesDeServicios1, 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(jLabel13)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(reporte, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10))\n );\n\n pack();\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 txtpertama = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtkedua = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n txthasil = new javax.swing.JTextField();\n tbltambah = new javax.swing.JButton();\n tblkurang = new javax.swing.JButton();\n tblbagi = new javax.swing.JButton();\n tblkali = new javax.swing.JButton();\n tblbersihkan = new javax.swing.JButton();\n tblkeluar = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"PROGRAM KALKULATOR\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"NILAI A\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"NILAI B\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel4.setText(\"HASIL\");\n\n txthasil.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txthasilActionPerformed(evt);\n }\n });\n\n tbltambah.setText(\"+\");\n tbltambah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tbltambahActionPerformed(evt);\n }\n });\n\n tblkurang.setText(\"-\");\n tblkurang.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblkurangActionPerformed(evt);\n }\n });\n\n tblbagi.setText(\"/\");\n tblbagi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblbagiActionPerformed(evt);\n }\n });\n\n tblkali.setText(\"X\");\n tblkali.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblkaliActionPerformed(evt);\n }\n });\n\n tblbersihkan.setText(\"BERSIHKAN\");\n tblbersihkan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblbersihkanActionPerformed(evt);\n }\n });\n\n tblkeluar.setText(\"KELUAR\");\n tblkeluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tblkeluarActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"DIBUAT OLEH : NIKO ALDI ARIBOY\");\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(92, 92, 92))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtkedua, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(txthasil))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtpertama, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tblbagi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tbltambah, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tblkurang, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tblkali, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(tblkeluar))\n .addComponent(tblbersihkan)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtpertama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tbltambah)\n .addComponent(tblkurang))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtkedua, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tblbagi)\n .addComponent(tblkali))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txthasil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tblbersihkan))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tblkeluar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel5)\n .addGap(8, 8, 8))\n );\n\n pack();\n }",
"public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }",
"public AcudienteGUI() {\n initComponents();\n }",
"public Inicio() {\n initComponents();\n setVisible(true);\n \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 panelConsultarVeiculo = new javax.swing.JPanel();\n txtPlaca = new javax.swing.JTextField();\n labelTipo = new javax.swing.JLabel();\n txtNdeIdentificacao = new javax.swing.JTextField();\n labelMarca = new javax.swing.JLabel();\n txtModelo = new javax.swing.JTextField();\n labelModelo = new javax.swing.JLabel();\n txtMarca = new javax.swing.JTextField();\n labelPlaca = new javax.swing.JLabel();\n labelNdeInscricao = new javax.swing.JLabel();\n labelCor = new javax.swing.JLabel();\n txtTipo = new javax.swing.JTextField();\n txtCor = new javax.swing.JTextField();\n jPanelBGConsultarVeiculo1 = new javax.swing.JPanel();\n btnAlterarVeiculo = new javax.swing.JButton();\n btnExcluirVeiculo = new javax.swing.JButton();\n jPanelBGConsultarVeiculo2 = new javax.swing.JPanel();\n btnConsultarVeiculo = new javax.swing.JButton();\n btnNovaConsultarVeiculo = new javax.swing.JButton();\n\n setClosable(true);\n setResizable(true);\n setTitle(\"Consultar Veículo\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n panelConsultarVeiculo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n panelConsultarVeiculo.add(txtPlaca, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 220, 632, 30));\n\n labelTipo.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelTipo.setForeground(new java.awt.Color(72, 61, 139));\n labelTipo.setText(\"Tipo\");\n panelConsultarVeiculo.add(labelTipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 330, -1, -1));\n panelConsultarVeiculo.add(txtNdeIdentificacao, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 320, 250, 30));\n\n labelMarca.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelMarca.setForeground(new java.awt.Color(72, 61, 139));\n labelMarca.setText(\"Marca\");\n panelConsultarVeiculo.add(labelMarca, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 280, -1, -1));\n panelConsultarVeiculo.add(txtModelo, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 120, 632, 30));\n\n labelModelo.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelModelo.setForeground(new java.awt.Color(72, 61, 139));\n labelModelo.setText(\"Modelo\");\n panelConsultarVeiculo.add(labelModelo, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 130, -1, -1));\n panelConsultarVeiculo.add(txtMarca, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 270, 632, 30));\n\n labelPlaca.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelPlaca.setForeground(new java.awt.Color(72, 61, 139));\n labelPlaca.setText(\"Placa\");\n panelConsultarVeiculo.add(labelPlaca, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 230, -1, -1));\n\n labelNdeInscricao.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelNdeInscricao.setForeground(new java.awt.Color(72, 61, 139));\n labelNdeInscricao.setText(\"N° de Identificação\");\n panelConsultarVeiculo.add(labelNdeInscricao, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 330, -1, -1));\n\n labelCor.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n labelCor.setForeground(new java.awt.Color(72, 61, 139));\n labelCor.setText(\"Cor\");\n panelConsultarVeiculo.add(labelCor, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 180, -1, -1));\n panelConsultarVeiculo.add(txtTipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 320, 250, 30));\n panelConsultarVeiculo.add(txtCor, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 170, 632, 30));\n\n jPanelBGConsultarVeiculo1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(72, 61, 139), 1, true));\n jPanelBGConsultarVeiculo1.setForeground(new java.awt.Color(72, 61, 139));\n\n btnAlterarVeiculo.setBackground(new java.awt.Color(72, 61, 139));\n btnAlterarVeiculo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n btnAlterarVeiculo.setForeground(new java.awt.Color(255, 255, 255));\n btnAlterarVeiculo.setText(\"Alterar\");\n\n btnExcluirVeiculo.setBackground(new java.awt.Color(72, 61, 139));\n btnExcluirVeiculo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n btnExcluirVeiculo.setForeground(new java.awt.Color(255, 255, 255));\n btnExcluirVeiculo.setText(\"Excluir\");\n\n javax.swing.GroupLayout jPanelBGConsultarVeiculo1Layout = new javax.swing.GroupLayout(jPanelBGConsultarVeiculo1);\n jPanelBGConsultarVeiculo1.setLayout(jPanelBGConsultarVeiculo1Layout);\n jPanelBGConsultarVeiculo1Layout.setHorizontalGroup(\n jPanelBGConsultarVeiculo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBGConsultarVeiculo1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanelBGConsultarVeiculo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnAlterarVeiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnExcluirVeiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanelBGConsultarVeiculo1Layout.setVerticalGroup(\n jPanelBGConsultarVeiculo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelBGConsultarVeiculo1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnAlterarVeiculo)\n .addGap(17, 17, 17)\n .addComponent(btnExcluirVeiculo)\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n panelConsultarVeiculo.add(jPanelBGConsultarVeiculo1, new org.netbeans.lib.awtextra.AbsoluteConstraints(730, 370, 140, 90));\n\n jPanelBGConsultarVeiculo2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(72, 61, 139), 1, true));\n jPanelBGConsultarVeiculo2.setForeground(new java.awt.Color(72, 61, 139));\n\n btnConsultarVeiculo.setBackground(new java.awt.Color(72, 61, 139));\n btnConsultarVeiculo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n btnConsultarVeiculo.setForeground(new java.awt.Color(255, 255, 255));\n btnConsultarVeiculo.setText(\"Consultar\");\n\n btnNovaConsultarVeiculo.setBackground(new java.awt.Color(72, 61, 139));\n btnNovaConsultarVeiculo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n btnNovaConsultarVeiculo.setForeground(new java.awt.Color(255, 255, 255));\n btnNovaConsultarVeiculo.setText(\"Nova Consulta\");\n\n javax.swing.GroupLayout jPanelBGConsultarVeiculo2Layout = new javax.swing.GroupLayout(jPanelBGConsultarVeiculo2);\n jPanelBGConsultarVeiculo2.setLayout(jPanelBGConsultarVeiculo2Layout);\n jPanelBGConsultarVeiculo2Layout.setHorizontalGroup(\n jPanelBGConsultarVeiculo2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBGConsultarVeiculo2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanelBGConsultarVeiculo2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnConsultarVeiculo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnNovaConsultarVeiculo, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n jPanelBGConsultarVeiculo2Layout.setVerticalGroup(\n jPanelBGConsultarVeiculo2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelBGConsultarVeiculo2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnConsultarVeiculo)\n .addGap(18, 18, 18)\n .addComponent(btnNovaConsultarVeiculo)\n .addContainerGap(13, Short.MAX_VALUE))\n );\n\n panelConsultarVeiculo.add(jPanelBGConsultarVeiculo2, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 370, -1, 90));\n\n jPanel1.add(panelConsultarVeiculo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -2, 1050, 590));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public TelaInicio() {\n initComponents();\n //j[0] - Jogador 1\n //j[1] - Jogador 2\n j[0] = Jogador.getInstance();\n j[1] = Jogador.getInstance2();\n p[0] = Personagem.getInstance();\n String nomeP1 = p[0].getNome();\n p[0].GetPersonagem(nomeP1);\n Icon icon = new ImageIcon(\"../images/f3.png\");\n txtNomeJ1.setText(j[0].getNome());\n txtApelidoJ1.setText(j[0].getApelido());\n J2Nome.setText(j[1].getNome());\n J2Apelido.setText(j[1].getApelido());\n if(!jRPar.isSelected() && !jRImpar.isSelected())\n btnComecar.setEnabled(false);\n\n }",
"public FrmBusquedas() {\n initComponents();\n jButton3.setVisible(true);\n Dimension desktopSize = VistaPrincipal.jDesktopPane1.getSize();\n Dimension jInternalFrameSize = this.getSize();\n this.setLocation((desktopSize.width - jInternalFrameSize.width) / 2, 4);\n\n ((DesktopConFondo) fonbusqueda).setImagen(\"onda.jpg\");\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 }",
"public Operacoes() {\n initComponents();\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 jLabel1 = new javax.swing.JLabel();\n butonq7 = 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 jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n butonq1 = new javax.swing.JButton();\n butonq2 = new javax.swing.JButton();\n butonq3 = new javax.swing.JButton();\n butonq4 = new javax.swing.JButton();\n sediuNume = new javax.swing.JComboBox<>();\n jTextField1 = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n sediuNume1 = new javax.swing.JComboBox<>();\n modalitatePlata = new javax.swing.JComboBox<>();\n jLabel14 = new javax.swing.JLabel();\n butonq5 = new javax.swing.JButton();\n butonq6 = new javax.swing.JButton();\n jLabel15 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n butonq8 = new javax.swing.JButton();\n butonq9 = new javax.swing.JButton();\n butonq10 = new javax.swing.JButton();\n inputData = new javax.swing.JTextField();\n nrSponsori = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n btn_home2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(89, 171, 227));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"8.Selectati bicicletele care nu au fost deloc inchiriate dupa\");\n\n butonq7.setBackground(new java.awt.Color(52, 152, 219));\n butonq7.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq7.setText(\"query7\");\n butonq7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq7ActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"1.Afisati detaliile (mai putin id-urile) despre bicicletele ce se gasesc la sediul\");\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"2.Afisati numele si prenumele clientilor care au inchiriat biciclete in total mai mult de\");\n\n jLabel4.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"3.Afisati numele si prenumele pentru angajatii care s-au angajat mai devreme decat\");\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"managerul(al caruia ii afisati nume + prenume) din sediul lor + numele sediului.\");\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"4.Afisati numele si prenumele clientilor care au inchiriat biciclete folosind\");\n\n jLabel7.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"5.Sa se afiseze detalii despre sponsorii sediului care il au ca manager pe Valentin Mihai.\");\n\n jLabel8.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"6.Afisati Numele si prenumele clientilor care au inchiriat biciclete cu pretul pe ora intre\");\n\n jLabel9.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"ore\");\n\n jLabel10.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(255, 255, 255));\n jLabel10.setText(\"9.Calculati luna in care s-au inchiriat cele mai multe biciclete, afisati luna si numarul de inchirieri.\");\n\n jLabel11.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 255, 255));\n jLabel11.setText(\"10.Afisati numele managerilor al caror sedii au cel putin (>=)\");\n\n butonq1.setBackground(new java.awt.Color(52, 152, 219));\n butonq1.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq1.setText(\"query1\");\n butonq1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq1ActionPerformed(evt);\n }\n });\n\n butonq2.setBackground(new java.awt.Color(52, 152, 219));\n butonq2.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq2.setText(\"query2\");\n butonq2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq2ActionPerformed(evt);\n }\n });\n\n butonq3.setBackground(new java.awt.Color(52, 152, 219));\n butonq3.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq3.setText(\"query3\");\n butonq3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq3ActionPerformed(evt);\n }\n });\n\n butonq4.setBackground(new java.awt.Color(52, 152, 219));\n butonq4.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq4.setText(\"query4\");\n butonq4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq4ActionPerformed(evt);\n }\n });\n\n sediuNume.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"BNBikes\", \"Relax\", \"MyBike\", \"Adventure\" }));\n sediuNume.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sediuNumeActionPerformed(evt);\n }\n });\n\n jLabel12.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(255, 255, 255));\n jLabel12.setText(\"7.Gasiti angajatii cu cel mai mic salariu din fiecare sediu, apoi sortati crescator dupa salariu.\");\n\n jLabel13.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 16)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(255, 255, 255));\n jLabel13.setText(\"Interogari simple\");\n\n sediuNume1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"BNBikes\", \"Relax\", \"MyBike\", \"Adventure\" }));\n sediuNume1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sediuNume1ActionPerformed(evt);\n }\n });\n\n modalitatePlata.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"cash\", \"card\" }));\n modalitatePlata.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n modalitatePlataActionPerformed(evt);\n }\n });\n\n jLabel14.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel14.setForeground(new java.awt.Color(255, 255, 255));\n jLabel14.setText(\"la sediul\");\n\n butonq5.setBackground(new java.awt.Color(52, 152, 219));\n butonq5.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq5.setText(\"query5\");\n butonq5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq5ActionPerformed(evt);\n }\n });\n\n butonq6.setBackground(new java.awt.Color(52, 152, 219));\n butonq6.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq6.setText(\"query6\");\n butonq6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq6ActionPerformed(evt);\n }\n });\n\n jLabel15.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 16)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 255, 255));\n jLabel15.setText(\"Interogari complexe\");\n\n jLabel16.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(255, 255, 255));\n jLabel16.setText(\"si\");\n\n jLabel17.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(255, 255, 255));\n jLabel17.setText(\"de lei.\");\n\n butonq8.setBackground(new java.awt.Color(52, 152, 219));\n butonq8.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq8.setText(\"query8\");\n butonq8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq8ActionPerformed(evt);\n }\n });\n\n butonq9.setBackground(new java.awt.Color(52, 152, 219));\n butonq9.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq9.setText(\"query9\");\n butonq9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq9ActionPerformed(evt);\n }\n });\n\n butonq10.setBackground(new java.awt.Color(52, 152, 219));\n butonq10.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n butonq10.setText(\"query10\");\n butonq10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n butonq10ActionPerformed(evt);\n }\n });\n\n jLabel18.setFont(new java.awt.Font(\"Segoe UI Light\", 1, 12)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(255, 255, 255));\n jLabel18.setText(\"sponsori.\");\n\n btn_home2.setBackground(new java.awt.Color(1, 50, 67));\n btn_home2.setFont(new java.awt.Font(\"Segoe UI Semilight\", 1, 11)); // NOI18N\n btn_home2.setForeground(new java.awt.Color(255, 255, 255));\n btn_home2.setText(\"HOME\");\n btn_home2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_home2ActionPerformed(evt);\n }\n });\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(butonq9))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(26, 26, 26)\n .addComponent(inputData, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(butonq8))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(butonq7))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 515, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel17))\n .addComponent(jLabel4)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel5))\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 528, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(modalitatePlata, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(sediuNume1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(sediuNume, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 510, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 71, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_home2)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(butonq1)\n .addComponent(butonq2)\n .addComponent(butonq3)\n .addComponent(butonq4)\n .addComponent(butonq5)\n .addComponent(butonq6)))))\n .addGap(152, 152, 152))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(nrSponsori, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(butonq10)\n .addGap(144, 144, 144))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btn_home2))\n .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sediuNume, 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(2, 2, 2)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(butonq2)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(modalitatePlata, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sediuNume1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(butonq4))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(butonq5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(butonq6)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(butonq1)\n .addGap(102, 102, 102)\n .addComponent(butonq3)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(butonq7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(inputData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(butonq8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(butonq9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nrSponsori, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(butonq10)))\n .addContainerGap(206, Short.MAX_VALUE))\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 .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel4 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n btnTerminar = new javax.swing.JButton();\n txtApertura = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Calcular cambio\");\n setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/home/lanzador.png\")).getImage());\n setModalExclusionType(java.awt.Dialog.ModalExclusionType.APPLICATION_EXCLUDE);\n setUndecorated(true);\n setResizable(false);\n setType(java.awt.Window.Type.UTILITY);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel4.setBackground(new java.awt.Color(0, 0, 0));\n jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(102, 0, 0));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/home/lanzador.png\"))); // NOI18N\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 120, 50));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(240, 240, 240));\n jLabel5.setText(\"Apertura/Cierre\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 20, 140, -1));\n\n jPanel4.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 520, 60));\n\n jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel1.setText(\"Ingrese el valor con que inicia el día:\");\n jPanel3.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 20, 230, 40));\n\n jPanel4.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 520, 80));\n\n jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n btnTerminar.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnTerminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/botones/terminar.png\"))); // NOI18N\n btnTerminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTerminarActionPerformed(evt);\n }\n });\n btnTerminar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n btnTerminarKeyPressed(evt);\n }\n });\n jPanel2.add(btnTerminar, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 210, 100, 30));\n\n txtApertura.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n txtApertura.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtAperturaKeyTyped(evt);\n }\n });\n jPanel2.add(txtApertura, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 90, 240, 30));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel3.setText(\"Apertura $\");\n jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 90, 70, 30));\n\n jPanel4.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 180, 520, 260));\n\n getContentPane().add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 540, 450));\n\n pack();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n add = new javax.swing.JTextField();\n soyadd = new javax.swing.JTextField();\n hesapno = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n cektutar = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jDesktopPane1 = new javax.swing.JDesktopPane();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n yt = new javax.swing.JTextField();\n çk = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 0));\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 30, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Adınız :\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 77, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Soyadınız :\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(69, 108, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"Hesap Numaranız :\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(23, 139, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Hesap Bilgileri :\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(43, 171, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"Çekilecek Tutar :\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(25, 197, 110, 18));\n getContentPane().add(add, new org.netbeans.lib.awtextra.AbsoluteConstraints(141, 75, 140, -1));\n\n soyadd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n soyaddActionPerformed(evt);\n }\n });\n getContentPane().add(soyadd, new org.netbeans.lib.awtextra.AbsoluteConstraints(141, 106, 140, -1));\n getContentPane().add(hesapno, new org.netbeans.lib.awtextra.AbsoluteConstraints(141, 137, 140, -1));\n\n jButton1.setText(\"Müşteriyi Getir\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(141, 168, 140, -1));\n getContentPane().add(cektutar, new org.netbeans.lib.awtextra.AbsoluteConstraints(141, 197, 140, -1));\n\n jButton2.setText(\"Geri Dön\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(23, 228, 112, 31));\n\n jButton3.setText(\"Para Çek\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(141, 228, 140, 31));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 0));\n jLabel1.setText(\"ERDAL BANK UZUN VADELİ \");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 0));\n jLabel3.setText(\"PARA ÇEKME İŞLEMİ\");\n\n jDesktopPane1.setLayer(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jDesktopPane1.setLayer(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jDesktopPane1.setLayer(yt, javax.swing.JLayeredPane.DEFAULT_LAYER);\n jDesktopPane1.setLayer(çk, javax.swing.JLayeredPane.DEFAULT_LAYER);\n\n javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);\n jDesktopPane1.setLayout(jDesktopPane1Layout);\n jDesktopPane1Layout.setHorizontalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDesktopPane1Layout.createSequentialGroup()\n .addContainerGap(67, Short.MAX_VALUE)\n .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDesktopPane1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(45, 45, 45))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDesktopPane1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(70, 70, 70))))\n .addGroup(jDesktopPane1Layout.createSequentialGroup()\n .addComponent(yt, 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(çk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jDesktopPane1Layout.setVerticalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDesktopPane1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 238, Short.MAX_VALUE)\n .addGroup(jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(yt, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(çk, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n getContentPane().add(jDesktopPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 310, 320));\n\n pack();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n botao_cadastro = new javax.swing.JButton();\n botao_consulta = new javax.swing.JButton();\n botao_retorno = new javax.swing.JButton();\n botao_agenda = new javax.swing.JButton();\n botao_receita = new javax.swing.JButton();\n botao_atestado = new javax.swing.JButton();\n botao_sair = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n fundo = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n botao_cadastro.setBackground(new java.awt.Color(86, 131, 176));\n botao_cadastro.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n botao_cadastro.setForeground(new java.awt.Color(255, 255, 255));\n botao_cadastro.setText(\"Cadastro\");\n getContentPane().add(botao_cadastro, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 550, 150, 50));\n\n botao_consulta.setBackground(new java.awt.Color(86, 131, 176));\n botao_consulta.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n botao_consulta.setForeground(new java.awt.Color(255, 255, 255));\n botao_consulta.setText(\"Consulta\");\n getContentPane().add(botao_consulta, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 550, 150, 50));\n\n botao_retorno.setBackground(new java.awt.Color(86, 131, 176));\n botao_retorno.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n botao_retorno.setForeground(new java.awt.Color(255, 255, 255));\n botao_retorno.setText(\"Retorno\");\n getContentPane().add(botao_retorno, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 640, 150, 50));\n\n botao_agenda.setBackground(new java.awt.Color(86, 131, 176));\n botao_agenda.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n botao_agenda.setForeground(new java.awt.Color(255, 255, 255));\n botao_agenda.setText(\"Agenda\");\n getContentPane().add(botao_agenda, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 640, 150, 50));\n\n botao_receita.setBackground(new java.awt.Color(86, 131, 176));\n botao_receita.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n botao_receita.setForeground(new java.awt.Color(255, 255, 255));\n botao_receita.setText(\"Receita\");\n getContentPane().add(botao_receita, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 730, 150, 50));\n\n botao_atestado.setBackground(new java.awt.Color(86, 131, 176));\n botao_atestado.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n botao_atestado.setForeground(new java.awt.Color(255, 255, 255));\n botao_atestado.setText(\"Atestado\");\n getContentPane().add(botao_atestado, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 730, 150, 50));\n\n botao_sair.setBackground(new java.awt.Color(86, 131, 176));\n botao_sair.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n botao_sair.setForeground(new java.awt.Color(255, 255, 255));\n botao_sair.setText(\"Sair\");\n getContentPane().add(botao_sair, new org.netbeans.lib.awtextra.AbsoluteConstraints(1030, 30, 150, 50));\n\n jLabel3.setFont(new java.awt.Font(\"Source Code Pro\", 1, 20)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icones/logo.png\"))); // NOI18N\n jLabel3.setText(\"HAE\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 170, 60));\n\n fundo.setForeground(new java.awt.Color(255, 255, 255));\n fundo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/Tela-Inicial.png\"))); // NOI18N\n getContentPane().add(fundo, new org.netbeans.lib.awtextra.AbsoluteConstraints(-3, -4, 1200, 800));\n\n pack();\n }",
"public FormInserir() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jMenu5 = new javax.swing.JMenu();\n GENERO = new javax.swing.ButtonGroup();\n jFileChooser1 = new javax.swing.JFileChooser();\n jScrollPane1 = new javax.swing.JScrollPane();\n jToolBar1 = new javax.swing.JToolBar();\n jToolBar2 = new javax.swing.JToolBar();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jToolBar3 = new javax.swing.JToolBar();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jToolBar4 = new javax.swing.JToolBar();\n jButton10 = new javax.swing.JButton();\n jToolBar5 = new javax.swing.JToolBar();\n jButton18 = new javax.swing.JButton();\n jButton17 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n txtfoto = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\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 jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n txtnombre = new javax.swing.JTextField();\n txtapellido = new javax.swing.JTextField();\n txtdireccion = new javax.swing.JTextField();\n txtcorreo = new javax.swing.JTextField();\n txtcelular = new javax.swing.JTextField();\n jButton13 = new javax.swing.JButton();\n jButton14 = new javax.swing.JButton();\n jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n jLabel10 = new javax.swing.JLabel();\n txtcedula = new javax.swing.JTextField();\n txttelefono = new javax.swing.JTextField();\n jDateChooser1 = new com.toedter.calendar.JDateChooser();\n jPanel5 = new javax.swing.JPanel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jScrollPane3 = new javax.swing.JScrollPane();\n txtFila = new javax.swing.JTextPane();\n jScrollPane4 = new javax.swing.JScrollPane();\n txtColumna = new javax.swing.JTextPane();\n jScrollPane5 = new javax.swing.JScrollPane();\n txtNuevoCampo = new javax.swing.JTextPane();\n jButton20 = new javax.swing.JButton();\n jButton21 = new javax.swing.JButton();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n buscar = new javax.swing.JButton();\n jButton19 = new javax.swing.JButton();\n comboFiltro = new javax.swing.JComboBox();\n jButton15 = new javax.swing.JButton();\n txtfiltro = new javax.swing.JTextField();\n jScrollPane6 = new javax.swing.JScrollPane();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jPanel6 = new javax.swing.JPanel();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jButton9 = new javax.swing.JButton();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n jMenuItem4 = new javax.swing.JMenuItem();\n jSeparator2 = new javax.swing.JPopupMenu.Separator();\n jSeparator3 = new javax.swing.JPopupMenu.Separator();\n jMenuItem8 = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n jMenuItem9 = new javax.swing.JMenuItem();\n jMenuItem10 = new javax.swing.JMenuItem();\n jSeparator4 = new javax.swing.JPopupMenu.Separator();\n jMenuItem14 = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem15 = new javax.swing.JMenuItem();\n jMenu6 = new javax.swing.JMenu();\n jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();\n jMenu4 = new javax.swing.JMenu();\n jMenuItem16 = new javax.swing.JMenuItem();\n\n jMenu5.setText(\"jMenu5\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jToolBar1.setBackground(new java.awt.Color(30, 145, 239));\n jToolBar1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jToolBar1.setRollover(true);\n\n jToolBar2.setRollover(true);\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/1.png\"))); // NOI18N\n jButton1.setText(\"Nuevo\");\n jButton1.setFocusable(false);\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jToolBar2.add(jButton1);\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/2.png\"))); // NOI18N\n jButton2.setText(\"Abrir\");\n jButton2.setFocusable(false);\n jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n jToolBar2.add(jButton2);\n\n jToolBar1.add(jToolBar2);\n\n jToolBar3.setRollover(true);\n\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/n6.jpg\"))); // NOI18N\n jButton5.setText(\"Deshacer\");\n jButton5.setFocusable(false);\n jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(jButton5);\n\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/13.jpg\"))); // NOI18N\n jButton6.setText(\"Rehacer\");\n jButton6.setFocusable(false);\n jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar3.add(jButton6);\n\n jToolBar1.add(jToolBar3);\n\n jToolBar4.setRollover(true);\n\n jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/vb.png\"))); // NOI18N\n jButton10.setText(\"Eliminar uno \");\n jButton10.setFocusable(false);\n jButton10.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton10.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton10ActionPerformed(evt);\n }\n });\n jToolBar4.add(jButton10);\n\n jToolBar1.add(jToolBar4);\n\n jToolBar5.setRollover(true);\n\n jButton18.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/k.png\"))); // NOI18N\n jButton18.setText(\"Foto\");\n jButton18.setFocusable(false);\n jButton18.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton18.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton18.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton18ActionPerformed(evt);\n }\n });\n jToolBar5.add(jButton18);\n\n jToolBar1.add(jToolBar5);\n\n jButton17.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/c.jpg\"))); // NOI18N\n jButton17.setText(\"Salir\");\n jButton17.setFocusable(false);\n jButton17.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton17.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton17.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton17ActionPerformed(evt);\n }\n });\n jToolBar1.add(jButton17);\n\n jPanel1.setBackground(new java.awt.Color(30, 145, 239));\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jPanel1.setForeground(new java.awt.Color(51, 51, 51));\n\n jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n txtfoto.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/67.jpg\"))); // NOI18N\n txtfoto.setText(\" Abrir Foto\");\n txtfoto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n txtfoto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtfotoActionPerformed(evt);\n }\n });\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/12.jpg\"))); // NOI18N\n jLabel11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\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(18, 18, 18)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 363, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(128, 128, 128)\n .addComponent(txtfoto, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 340, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtfoto, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(41, 41, 41))\n );\n\n jPanel3.setBackground(new java.awt.Color(204, 204, 204));\n jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n jLabel1.setText(\"Nombre:\");\n\n jLabel2.setText(\"Apellido:\");\n jLabel2.setToolTipText(\"\");\n\n jLabel3.setText(\"Genero:\");\n\n jLabel4.setText(\"Fecha De Nacimiento:\");\n\n jLabel5.setText(\"Direccion:\");\n\n jLabel6.setText(\"Correo Electronico:\");\n\n jLabel7.setText(\"Telefono:\");\n\n jLabel8.setText(\"Celular:\");\n\n txtnombre.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n txtnombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtnombreActionPerformed(evt);\n }\n });\n txtnombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtnombreKeyReleased(evt);\n }\n });\n\n txtapellido.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n txtapellido.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtapellidoActionPerformed(evt);\n }\n });\n txtapellido.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtapellidoKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtapellidoKeyTyped(evt);\n }\n });\n\n txtdireccion.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n txtcorreo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n txtcorreo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtcorreoActionPerformed(evt);\n }\n });\n\n txtcelular.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n txtcelular.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtcelularActionPerformed(evt);\n }\n });\n txtcelular.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtcelularKeyReleased(evt);\n }\n });\n\n jButton13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/n.jpg\"))); // NOI18N\n jButton13.setText(\"Agregar\");\n jButton13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jButton13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton13ActionPerformed(evt);\n }\n });\n\n jButton14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/w.png\"))); // NOI18N\n jButton14.setText(\"Limpiar\");\n jButton14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jButton14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton14ActionPerformed(evt);\n }\n });\n\n GENERO.add(jRadioButton1);\n jRadioButton1.setText(\"Masculino\");\n jRadioButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButton1ActionPerformed(evt);\n }\n });\n\n GENERO.add(jRadioButton2);\n jRadioButton2.setText(\"Femenino\");\n\n jLabel10.setText(\"Cedula\");\n\n txtcedula.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n txtcedula.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtcedulaActionPerformed(evt);\n }\n });\n txtcedula.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtcedulaKeyReleased(evt);\n }\n });\n\n txttelefono.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n txttelefono.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txttelefonoActionPerformed(evt);\n }\n });\n txttelefono.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txttelefonoKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel4))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(txtdireccion)\n .addGap(21, 21, 21))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel10)\n .addComponent(jLabel8)\n .addComponent(jLabel6)\n .addComponent(jLabel3)\n .addComponent(jLabel7))\n .addGap(36, 36, 36)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(txtcorreo)\n .addGap(21, 21, 21))\n .addComponent(txtcedula)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jRadioButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jRadioButton2)\n .addGap(31, 31, 31))\n .addComponent(txtnombre)\n .addComponent(txtapellido)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(txttelefono)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)\n .addComponent(jButton14, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(txtcelular, javax.swing.GroupLayout.Alignment.LEADING))\n .addGap(17, 17, 17)))))\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtnombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(txtapellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtcedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jRadioButton2)\n .addComponent(jRadioButton1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jDateChooser1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtdireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtcorreo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txttelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtcelular, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton13, javax.swing.GroupLayout.DEFAULT_SIZE, 44, Short.MAX_VALUE)\n .addComponent(jButton14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n jPanel5.setBackground(new java.awt.Color(204, 204, 204));\n jPanel5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n jLabel12.setText(\"Fila:\");\n\n jLabel13.setText(\"Columna:\");\n\n jLabel14.setText(\"Nuevo Campo:\");\n\n txtFila.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jScrollPane3.setViewportView(txtFila);\n\n txtColumna.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jScrollPane4.setViewportView(txtColumna);\n\n txtNuevoCampo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jScrollPane5.setViewportView(txtNuevoCampo);\n\n jButton20.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/modificarB.png\"))); // NOI18N\n jButton20.setText(\"Modificar\");\n jButton20.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 2, true));\n jButton20.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton20ActionPerformed(evt);\n }\n });\n\n jButton21.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/limpiarB.png\"))); // NOI18N\n jButton21.setText(\"Limpiar\");\n jButton21.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jButton21.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton21ActionPerformed(evt);\n }\n });\n\n jLabel19.setText(\"MODIFICAR\");\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel15)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(36, 36, 36)\n .addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(15, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel19)\n .addGap(110, 110, 110))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addGap(20, 20, 20)))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel13)\n .addGap(20, 20, 20)))\n .addGap(17, 17, 17)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addGap(19, 19, 19)))\n .addGap(24, 24, 24)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton21, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\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, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(539, 539, 539)\n .addComponent(jLabel18))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(555, 555, 555)\n .addComponent(jLabel17)))\n .addGap(213, 213, 213))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(9, 9, 9)))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\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 .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel17)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel18))\n );\n\n jPanel4.setBackground(new java.awt.Color(30, 145, 239));\n jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jLabel9.setText(\"Buscar Por:\");\n\n buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/buscarB.png\"))); // NOI18N\n buscar.setText(\"Buscar\");\n buscar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n buscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscarActionPerformed(evt);\n }\n });\n\n jButton19.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/imprimirB.png\"))); // NOI18N\n jButton19.setText(\"Imprimir\");\n jButton19.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jButton19.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton19ActionPerformed(evt);\n }\n });\n\n comboFiltro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Nombre\", \"Apellido\" }));\n comboFiltro.setToolTipText(\"\");\n comboFiltro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n comboFiltro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboFiltroActionPerformed(evt);\n }\n });\n comboFiltro.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n comboFiltroKeyTyped(evt);\n }\n });\n\n jButton15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/Salir.png\"))); // NOI18N\n jButton15.setText(\"Eliminar Todo\");\n jButton15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jButton15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton15ActionPerformed(evt);\n }\n });\n\n txtfiltro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n txtfiltro.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtfiltroKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtfiltroKeyTyped(evt);\n }\n });\n\n jScrollPane6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n jTable1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Nombre\", \"Apellido\", \"Cedula\", \"Genero\", \"Fecha De Nacimiento\", \"Direccion\", \"Email\", \"Telefono Fijo\", \"Celular\"\n }\n ));\n jScrollPane2.setViewportView(jTable1);\n if (jTable1.getColumnModel().getColumnCount() > 0) {\n jTable1.getColumnModel().getColumn(3).setResizable(false);\n jTable1.getColumnModel().getColumn(5).setResizable(false);\n }\n\n jScrollPane6.setViewportView(jScrollPane2);\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(69, 69, 69)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(comboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtfiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(258, 258, 258)\n .addComponent(jButton15, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(51, 51, 51)\n .addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane6)\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtfiltro)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jButton15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n\n jPanel6.setBackground(new java.awt.Color(30, 145, 239));\n jPanel6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n jButton3.setBackground(new java.awt.Color(255, 255, 255));\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/5.jpg\"))); // NOI18N\n jButton3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n jButton4.setBackground(new java.awt.Color(255, 255, 255));\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/9.jpg\"))); // NOI18N\n jButton4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n jButton7.setBackground(new java.awt.Color(255, 255, 255));\n jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/4.png\"))); // NOI18N\n jButton7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n jButton8.setBackground(new java.awt.Color(255, 255, 255));\n jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/8.png\"))); // NOI18N\n jButton8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n jButton9.setBackground(new java.awt.Color(255, 255, 255));\n jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/G.png\"))); // NOI18N\n jButton9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n jLabel20.setText(\"MI PERFIL\");\n\n jLabel21.setText(\"CANDIDATOS Y PROPUESTAS\");\n\n jLabel22.setText(\"VOTACIONES\");\n\n jLabel23.setText(\"ESTADISTICAS\");\n\n jLabel24.setText(\"RESULTADOS\");\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(64, 64, 64)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(109, 109, 109)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(77, 77, 77)\n .addComponent(jLabel22)\n .addGap(160, 160, 160)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(129, 129, 129))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel6Layout.createSequentialGroup()\n .addGap(129, 129, 129)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(130, 130, 130)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(126, 126, 126)\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(125, 125, 125)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(120, 120, 120)))\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(105, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE))\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(16, 16, 16)))\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel21)\n .addComponent(jLabel22)\n .addComponent(jLabel23)\n .addComponent(jLabel24))\n .addContainerGap(23, Short.MAX_VALUE))\n );\n\n jMenuBar1.setAlignmentX(2.0F);\n jMenuBar1.setAlignmentY(2.0F);\n\n jMenu1.setText(\"Archivo\");\n jMenu1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu1ActionPerformed(evt);\n }\n });\n\n jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/1.png\"))); // NOI18N\n jMenuItem2.setText(\"Nuevo Archivo\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n jMenu1.add(jSeparator1);\n\n jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/p5.png\"))); // NOI18N\n jMenuItem4.setText(\"Abrir Archivo\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n jMenuItem4.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jMenuItem4KeyReleased(evt);\n }\n });\n jMenu1.add(jMenuItem4);\n jMenu1.add(jSeparator2);\n jMenu1.add(jSeparator3);\n\n jMenuItem8.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/c.jpg\"))); // NOI18N\n jMenuItem8.setText(\"Salir\");\n jMenuItem8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem8ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem8);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edicion\");\n\n jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/n6.jpg\"))); // NOI18N\n jMenuItem9.setText(\"Deshacer\");\n jMenu2.add(jMenuItem9);\n\n jMenuItem10.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/13.jpg\"))); // NOI18N\n jMenuItem10.setText(\"Rehacer\");\n jMenuItem10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem10ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem10);\n jMenu2.add(jSeparator4);\n\n jMenuItem14.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_DELETE, 0));\n jMenuItem14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/h7.png\"))); // NOI18N\n jMenuItem14.setText(\"Eliminar Todo\");\n jMenuItem14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem14ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem14);\n\n jMenuBar1.add(jMenu2);\n\n jMenu3.setText(\"Herramientas\");\n\n jMenuItem15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/u.png\"))); // NOI18N\n jMenuItem15.setText(\"Configuracion\");\n jMenu3.add(jMenuItem15);\n\n jMenu6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/ii.png\"))); // NOI18N\n jMenu6.setText(\"Idioma\");\n\n jCheckBoxMenuItem1.setSelected(true);\n jCheckBoxMenuItem1.setText(\"Ingles\");\n jCheckBoxMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/55.png\"))); // NOI18N\n jMenu6.add(jCheckBoxMenuItem1);\n\n jCheckBoxMenuItem2.setSelected(true);\n jCheckBoxMenuItem2.setText(\"Español\");\n jCheckBoxMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Recursos/g7.jpg\"))); // NOI18N\n jCheckBoxMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItem2ActionPerformed(evt);\n }\n });\n jMenu6.add(jCheckBoxMenuItem2);\n\n jMenu3.add(jMenu6);\n\n jMenuBar1.add(jMenu3);\n\n jMenu4.setText(\"Ayuda\");\n\n jMenuItem16.setText(\"Acerca De\");\n jMenuItem16.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem16ActionPerformed(evt);\n }\n });\n jMenu4.add(jMenuItem16);\n\n jMenuBar1.add(jMenu4);\n\n setJMenuBar(jMenuBar1);\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(181, 181, 181)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jToolBar1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(190, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(324, 324, 324))\n );\n\n pack();\n }",
"public OutTerminalGUI(InTerminalGUI INGUI) {\n this.inTerminalGUI = INGUI;\n inTerminalGUI.setVisible(false);\n initComponents();\n CbCarList.setModel(new DefaultComboBoxModel(inTerminalGUI.getParkingLotCarList().toArray()));\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 jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabelEmplacement = new javax.swing.JLabel();\n jLabelBoat = new javax.swing.JLabel();\n jLabelPavillon = new javax.swing.JLabel();\n jTextFieldPortAttache = new javax.swing.JTextField();\n jComboBoxCrew = new javax.swing.JComboBox();\n jButtonCrew = new javax.swing.JButton();\n jButtonOk = new javax.swing.JButton();\n jButtonCancel = new javax.swing.JButton();\n jTextFieldTonnage = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Capitainerie - Informations bateau\");\n\n jLabel1.setText(\"Emplacement :\");\n\n jLabel2.setText(\"Bateau :\");\n\n jLabel3.setText(\"Pavillon :\");\n\n jLabel4.setText(\"Port d'attache :\");\n\n jLabel5.setText(\"Tonnage :\");\n\n jLabelEmplacement.setText(\"jLabel7\");\n\n jLabelBoat.setText(\"jLabel8\");\n\n jLabelPavillon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagesFlag/BE.jpg\"))); // NOI18N\n\n jButtonCrew.setText(\"Equipage\");\n jButtonCrew.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCrewActionPerformed(evt);\n }\n });\n\n jButtonOk.setText(\"Ok\");\n jButtonOk.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOkActionPerformed(evt);\n }\n });\n\n jButtonCancel.setText(\"Annuler\");\n jButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCancelActionPerformed(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(105, 105, 105)\n .addComponent(jButtonOk)\n .addGap(53, 53, 53)\n .addComponent(jButtonCancel)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jButtonCrew))\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jComboBoxCrew, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jTextFieldPortAttache, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jTextFieldTonnage)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(59, 59, 59)\n .addComponent(jLabelPavillon))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelEmplacement)\n .addComponent(jLabelBoat))))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabelEmplacement))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jLabelBoat))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jLabelPavillon))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldPortAttache, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextFieldTonnage, 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(jComboBoxCrew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonCrew))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonOk)\n .addComponent(jButtonCancel))\n .addContainerGap())\n );\n\n pack();\n }",
"private void initialize(DadosDaBateria bateria) {\n\t\tfrmCadastrarBateria = new JFrame();\n\t\tfrmCadastrarBateria.setIconImage(Toolkit.getDefaultToolkit().getImage(\"C:\\\\Erich\\\\Faculdade\\\\APS\\\\2\\u00BA Semestre\\\\Imagens\\\\Bateria.jpg\"));\n\t\tfrmCadastrarBateria.setTitle(\"Cadastrar Bateria\");\n\t\tfrmCadastrarBateria.setBounds(100, 100, 320, 201);\n\t\tfrmCadastrarBateria.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmCadastrarBateria.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Fabricante da bateria:\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblNewLabel.setBounds(10, 11, 128, 14);\n\t\tfrmCadastrarBateria.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblModeloDaBateria = new JLabel(\"Modelo da bateria:\");\n\t\tlblModeloDaBateria.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblModeloDaBateria.setBounds(10, 36, 128, 14);\n\t\tfrmCadastrarBateria.getContentPane().add(lblModeloDaBateria);\n\t\t\n\t\tJLabel lblTensoDaBateria = new JLabel(\"Tens\\u00E3o da bateria:\");\n\t\tlblTensoDaBateria.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblTensoDaBateria.setBounds(10, 61, 128, 14);\n\t\tfrmCadastrarBateria.getContentPane().add(lblTensoDaBateria);\n\t\t\n\t\ttextFieldFabricanteBateria = new JTextField();\n\t\ttextFieldFabricanteBateria.setBounds(148, 8, 129, 20);\n\t\tfrmCadastrarBateria.getContentPane().add(textFieldFabricanteBateria);\n\t\ttextFieldFabricanteBateria.setColumns(10);\n\t\t\n\t\ttextFieldNomeBateria = new JTextField();\n\t\ttextFieldNomeBateria.setColumns(10);\n\t\ttextFieldNomeBateria.setBounds(148, 33, 129, 20);\n\t\tfrmCadastrarBateria.getContentPane().add(textFieldNomeBateria);\n\t\t\n\t\ttextFieldTensaoBateria = new JTextField();\n\t\ttextFieldTensaoBateria.setColumns(10);\n\t\ttextFieldTensaoBateria.setBounds(148, 58, 129, 20);\n\t\tfrmCadastrarBateria.getContentPane().add(textFieldTensaoBateria);\n\t\t\n\t\tbtnCancelar = new JButton(\"Cancelar\");\n\t\tbtnCancelar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmCadastrarBateria.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnCancelar.setBounds(205, 128, 89, 23);\n\t\tfrmCadastrarBateria.getContentPane().add(btnCancelar);\n\t\t\n\t\tbtnOk = new JButton(\"Ok\");\n\t\tbtnOk.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbateria.setFabricanteBateria(textFieldFabricanteBateria.getText());\n\t\t\t\tbateria.setNomeBateria(textFieldNomeBateria.getText());\n\t\t\t\tbateria.setTensaoBateria(Double.parseDouble(textFieldTensaoBateria.getText()));\n\t\t\t\t\n\t\t\t\tfrmCadastrarBateria.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnOk.setBounds(205, 94, 89, 23);\n\t\tfrmCadastrarBateria.getContentPane().add(btnOk);\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jTextField9 = new javax.swing.JTextField();\n jButton5 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jTextField5 = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jTextField10 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jTextField11 = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jTextField6 = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n lblPainel = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/close.png\"))); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 30, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 40)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/update & delete member.png\"))); // NOI18N\n jLabel2.setText(\"Atualizar/Deletar Professor\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 40, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"ID:\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 130, -1, -1));\n getContentPane().add(jTextField9, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 130, 40, -1));\n\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/search.png\"))); // NOI18N\n jButton5.setText(\"Procurar\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 130, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Nome\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 160, -1, -1));\n\n jTextField5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n getContentPane().add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 180, 300, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Telefone\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 210, -1, -1));\n\n jTextField2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n getContentPane().add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 230, 300, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"Sexo\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 260, -1, -1));\n\n jTextField10.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n getContentPane().add(jTextField10, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 280, 300, -1));\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/save.png\"))); // NOI18N\n jButton2.setText(\"Salvar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 380, -1, -1));\n\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/delete.png\"))); // NOI18N\n jButton4.setText(\"Deletar\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 380, -1, -1));\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/reset.png\"))); // NOI18N\n jButton3.setText(\"Resetar\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 380, -1, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"Endereço\");\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 310, -1, -1));\n\n jTextField1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n getContentPane().add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 330, 300, -1));\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 255, 255));\n jLabel11.setText(\"Horario\");\n getContentPane().add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 160, -1, -1));\n\n jTextField11.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n getContentPane().add(jTextField11, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 180, 300, -1));\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(255, 255, 255));\n jLabel12.setText(\"CPF\");\n getContentPane().add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 210, -1, -1));\n\n jTextField6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n getContentPane().add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 230, 300, -1));\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(255, 255, 255));\n jLabel13.setText(\"Idade\");\n getContentPane().add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 260, -1, -1));\n\n jTextField7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n getContentPane().add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(390, 280, 300, -1));\n\n lblPainel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/Agenda-PainelFundo.png\"))); // NOI18N\n getContentPane().add(lblPainel, new org.netbeans.lib.awtextra.AbsoluteConstraints(-70, -10, 840, 530));\n\n setSize(new java.awt.Dimension(751, 501));\n setLocationRelativeTo(null);\n }",
"private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }",
"private void btnMostrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMostrarActionPerformed\n if (libCancion.getSelectedIndex()<0){\n \n }\n else{\n informacion = new mostrarInformacion();\n informacion.setVisible(true);\n e=libCancion.getSelectedIndex();\n String[] test=cancion.mostrarCancion(e);\n mostrarInformacion.jLabel3.setText(test[1]);\n mostrarInformacion.jLabel5.setText(test[2]);\n mostrarInformacion.jLabel7.setText(test[3]);\n mostrarInformacion.jLabel9.setText(test[4]+\"secs\");\n mostrarInformacion.lblImg.setIcon(new ImageIcon(test[6]));\n \n \n \n }\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblPort = new javax.swing.JLabel();\n cmbPort = new javax.swing.JComboBox<String>();\n lblBaud = new javax.swing.JLabel();\n cmbBaud = new javax.swing.JComboBox<Integer>();\n lblOpts = new javax.swing.JLabel();\n cmbOpts = new javax.swing.JComboBox<String>();\n txtInput = new javax.swing.JTextField();\n btnOpen = new javax.swing.JButton();\n btnClose = new javax.swing.JButton();\n btnClear = new javax.swing.JButton();\n btnSend = new javax.swing.JButton();\n cmbFormat = new javax.swing.JComboBox<String>();\n jScrollPane1 = new javax.swing.JScrollPane();\n console = new javax.swing.JTextPane();\n chkHEX = new javax.swing.JCheckBox();\n chkEcho = new javax.swing.JCheckBox();\n btnCopyAll = new javax.swing.JButton();\n btnCopySelection = new javax.swing.JButton();\n chkUnprintable = new javax.swing.JCheckBox();\n chkEnter = new javax.swing.JCheckBox();\n cmbEnter = new javax.swing.JComboBox<String>();\n jLabel1 = new javax.swing.JLabel();\n lblClickNotice = new javax.swing.JLabel();\n btnSave = new javax.swing.JButton();\n cmbFontSize = new javax.swing.JComboBox<String>();\n lblFontSize = new javax.swing.JLabel();\n btnSendFile = new javax.swing.JButton();\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(plptool.gui.PLPToolApp.class).getContext().getResourceMap(SerialTerminal.class);\n setTitle(resourceMap.getString(\"Form.title\")); // NOI18N\n setName(\"Form\"); // NOI18N\n\n lblPort.setText(resourceMap.getString(\"lblPort.text\")); // NOI18N\n lblPort.setName(\"lblPort\"); // NOI18N\n\n cmbPort.setEditable(true);\n cmbPort.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cmbPort.setName(\"cmbPort\"); // NOI18N\n\n lblBaud.setText(resourceMap.getString(\"lblBaud.text\")); // NOI18N\n lblBaud.setName(\"lblBaud\"); // NOI18N\n\n cmbBaud.setEditable(true);\n cmbBaud.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cmbBaud.setName(\"cmbBaud\"); // NOI18N\n\n lblOpts.setText(resourceMap.getString(\"lblOpts.text\")); // NOI18N\n lblOpts.setName(\"lblOpts\"); // NOI18N\n\n cmbOpts.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cmbOpts.setName(\"cmbOpts\"); // NOI18N\n\n txtInput.setText(resourceMap.getString(\"txtInput.text\")); // NOI18N\n txtInput.setEnabled(false);\n txtInput.setName(\"txtInput\"); // NOI18N\n txtInput.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtInputKeyPressed(evt);\n }\n });\n\n btnOpen.setText(resourceMap.getString(\"btnOpen.text\")); // NOI18N\n btnOpen.setName(\"btnOpen\"); // NOI18N\n btnOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnOpenActionPerformed(evt);\n }\n });\n\n btnClose.setText(resourceMap.getString(\"btnClose.text\")); // NOI18N\n btnClose.setEnabled(false);\n btnClose.setName(\"btnClose\"); // NOI18N\n btnClose.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCloseActionPerformed(evt);\n }\n });\n\n btnClear.setMnemonic('L');\n btnClear.setText(resourceMap.getString(\"btnClear.text\")); // NOI18N\n btnClear.setName(\"btnClear\"); // NOI18N\n btnClear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnClearActionPerformed(evt);\n }\n });\n\n btnSend.setText(resourceMap.getString(\"btnSend.text\")); // NOI18N\n btnSend.setEnabled(false);\n btnSend.setName(\"btnSend\"); // NOI18N\n btnSend.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSendActionPerformed(evt);\n }\n });\n\n cmbFormat.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cmbFormat.setName(\"cmbFormat\"); // NOI18N\n\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n\n console.setEditable(false);\n console.setFont(resourceMap.getFont(\"console.font\")); // NOI18N\n console.setName(\"console\"); // NOI18N\n console.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n consoleFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n consoleFocusLost(evt);\n }\n });\n console.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n consoleKeyTyped(evt);\n }\n public void keyPressed(java.awt.event.KeyEvent evt) {\n consoleKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(console);\n\n chkHEX.setMnemonic('X');\n chkHEX.setText(resourceMap.getString(\"chkHEX.text\")); // NOI18N\n chkHEX.setName(\"chkHEX\"); // NOI18N\n\n chkEcho.setMnemonic('E');\n chkEcho.setText(resourceMap.getString(\"chkEcho.text\")); // NOI18N\n chkEcho.setName(\"chkEcho\"); // NOI18N\n\n btnCopyAll.setMnemonic('A');\n btnCopyAll.setText(resourceMap.getString(\"btnCopyAll.text\")); // NOI18N\n btnCopyAll.setName(\"btnCopyAll\"); // NOI18N\n btnCopyAll.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCopyAllActionPerformed(evt);\n }\n });\n\n btnCopySelection.setMnemonic('S');\n btnCopySelection.setText(resourceMap.getString(\"btnCopySelection.text\")); // NOI18N\n btnCopySelection.setName(\"btnCopySelection\"); // NOI18N\n btnCopySelection.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCopySelectionActionPerformed(evt);\n }\n });\n\n chkUnprintable.setMnemonic('D');\n chkUnprintable.setSelected(true);\n chkUnprintable.setText(resourceMap.getString(\"chkUnprintable.text\")); // NOI18N\n chkUnprintable.setName(\"chkUnprintable\"); // NOI18N\n\n chkEnter.setMnemonic('I');\n chkEnter.setText(resourceMap.getString(\"chkEnter.text\")); // NOI18N\n chkEnter.setName(\"chkEnter\"); // NOI18N\n\n cmbEnter.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cmbEnter.setName(\"cmbEnter\"); // NOI18N\n\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n lblClickNotice.setForeground(resourceMap.getColor(\"lblClickNotice.foreground\")); // NOI18N\n lblClickNotice.setText(resourceMap.getString(\"lblClickNotice.text\")); // NOI18N\n lblClickNotice.setName(\"lblClickNotice\"); // NOI18N\n\n btnSave.setText(resourceMap.getString(\"btnSave.text\")); // NOI18N\n btnSave.setName(\"btnSave\"); // NOI18N\n btnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSaveActionPerformed(evt);\n }\n });\n\n cmbFontSize.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cmbFontSize.setName(\"cmbFontSize\"); // NOI18N\n cmbFontSize.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbFontSizeActionPerformed(evt);\n }\n });\n\n lblFontSize.setText(resourceMap.getString(\"lblFontSize.text\")); // NOI18N\n lblFontSize.setName(\"lblFontSize\"); // NOI18N\n\n btnSendFile.setText(resourceMap.getString(\"btnSendFile.text\")); // NOI18N\n btnSendFile.setName(\"btnSendFile\"); // NOI18N\n btnSendFile.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSendFileActionPerformed(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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 823, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(chkHEX)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkEcho)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkUnprintable)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chkEnter)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbEnter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnSendFile)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 214, Short.MAX_VALUE)\n .addComponent(btnSave))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(lblPort)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbPort, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblBaud)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbBaud, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblOpts)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbOpts, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(btnOpen)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnClose)\n .addGap(18, 18, 18)\n .addComponent(lblClickNotice)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)\n .addComponent(lblFontSize)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbFontSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnCopySelection)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnCopyAll)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnClear))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbFormat, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtInput, javax.swing.GroupLayout.DEFAULT_SIZE, 522, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnSend)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblPort)\n .addComponent(cmbPort, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblBaud)\n .addComponent(cmbBaud, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblOpts)\n .addComponent(cmbOpts, 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(btnOpen)\n .addComponent(btnClose)\n .addComponent(btnClear)\n .addComponent(btnCopyAll)\n .addComponent(btnCopySelection)\n .addComponent(lblClickNotice)\n .addComponent(cmbFontSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblFontSize))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 289, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(chkHEX)\n .addComponent(chkEcho)\n .addComponent(chkUnprintable)\n .addComponent(chkEnter)\n .addComponent(cmbEnter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSave)\n .addComponent(btnSendFile))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSend)\n .addComponent(jLabel1)\n .addComponent(cmbFormat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n pack();\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 jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n tfusuario = new javax.swing.JTextField();\n tffechausuario = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jbautomovil = new javax.swing.JButton();\n jbabono = new javax.swing.JButton();\n jbpropietario = new javax.swing.JButton();\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 jSeparator1 = new javax.swing.JSeparator();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n tffecha = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n tfhora = new javax.swing.JTextField();\n jSeparator3 = new javax.swing.JSeparator();\n tfdni = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jTextField5 = new javax.swing.JTextField();\n tfapellido = new javax.swing.JTextField();\n tfnombre = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField9 = new javax.swing.JTextField();\n jTextField10 = new javax.swing.JTextField();\n jSeparator4 = new javax.swing.JSeparator();\n tfingresarimporte = new javax.swing.JTextField();\n tfsaldoactual = new javax.swing.JTextField();\n jbguardar = new javax.swing.JButton();\n jbcancelar = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setSize(new java.awt.Dimension(0, 0));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setForeground(new java.awt.Color(255, 255, 255));\n jPanel1.setPreferredSize(new java.awt.Dimension(850, 600));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel2.setBackground(new java.awt.Color(255, 227, 59));\n jPanel2.setPreferredSize(new java.awt.Dimension(280, 600));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/usuario.png\"))); // NOI18N\n jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 60, -1, -1));\n\n tfusuario.setFont(new java.awt.Font(\"Quicksand\", 1, 23)); // NOI18N\n tfusuario.setForeground(new java.awt.Color(255, 255, 255));\n tfusuario.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n tfusuario.setText(\"USER_MAJO\");\n tfusuario.setBorder(null);\n tfusuario.setFocusable(false);\n tfusuario.setOpaque(false);\n jPanel2.add(tfusuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 163, -1, -1));\n\n tffechausuario.setFont(new java.awt.Font(\"Quicksand\", 0, 15)); // NOI18N\n tffechausuario.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n tffechausuario.setText(\"28/06/2018\");\n tffechausuario.setBorder(null);\n tffechausuario.setFocusable(false);\n tffechausuario.setOpaque(false);\n jPanel2.add(tffechausuario, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 195, -1, -1));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fecha_user.png\"))); // NOI18N\n jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 197, -1, -1));\n\n jbautomovil.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_automovil_off.png\"))); // NOI18N\n jbautomovil.setBorder(null);\n jbautomovil.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jbautomovil.setOpaque(false);\n jbautomovil.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_automovil_on.png\"))); // NOI18N\n jbautomovil.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_automovil_on.png\"))); // NOI18N\n jbautomovil.setRolloverSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_automovil_on.png\"))); // NOI18N\n jPanel2.add(jbautomovil, new org.netbeans.lib.awtextra.AbsoluteConstraints(35, 420, -1, -1));\n\n jbabono.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_abono_off.png\"))); // NOI18N\n jbabono.setBorder(null);\n jbabono.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jbabono.setOpaque(false);\n jbabono.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_abono_on.png\"))); // NOI18N\n jbabono.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_abono_on.png\"))); // NOI18N\n jbabono.setRolloverSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_abono_on.png\"))); // NOI18N\n jbabono.setSelected(true);\n jbabono.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_abono_on.png\"))); // NOI18N\n jPanel2.add(jbabono, new org.netbeans.lib.awtextra.AbsoluteConstraints(35, 300, -1, -1));\n\n jbpropietario.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_propietario_off.png\"))); // NOI18N\n jbpropietario.setBorder(null);\n jbpropietario.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jbpropietario.setOpaque(false);\n jbpropietario.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_propietario_on.png\"))); // NOI18N\n jbpropietario.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_propietario_on.png\"))); // NOI18N\n jbpropietario.setRolloverSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_propietario_on.png\"))); // NOI18N\n jPanel2.add(jbpropietario, new org.netbeans.lib.awtextra.AbsoluteConstraints(35, 360, -1, -1));\n\n jPanel1.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/barra.png\"))); // NOI18N\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 582, -1, -1));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/barra.png\"))); // NOI18N\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 0, -1, -1));\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icon_titulo.png\"))); // NOI18N\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(343, 88, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Quicksand\", 1, 23)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jLabel6.setText(\"<html>COBRO DE ABONO DE ESTACIONAMIENTO</html>\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 90, 280, 50));\n\n jSeparator1.setForeground(new java.awt.Color(255, 227, 59));\n jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(343, 166, 369, 1));\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/logo.png\"))); // NOI18N\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(750, 40, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 227, 59));\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fecha.png\"))); // NOI18N\n jLabel8.setText(\"FECHA ACTUAL:\");\n jLabel8.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(343, 190, -1, -1));\n\n tffecha.setFont(new java.awt.Font(\"Quicksand\", 0, 16)); // NOI18N\n tffecha.setForeground(new java.awt.Color(178, 178, 178));\n tffecha.setText(\"28/06/2018\");\n tffecha.setBorder(null);\n jPanel1.add(tffecha, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 190, -1, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 227, 59));\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/hora.png\"))); // NOI18N\n jLabel9.setText(\"HORA ACTUAL:\");\n jLabel9.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(343, 215, -1, -1));\n\n jTextField2.setFont(new java.awt.Font(\"Quicksand\", 0, 16)); // NOI18N\n jTextField2.setForeground(new java.awt.Color(178, 178, 178));\n jTextField2.setText(\"DNI:\");\n jTextField2.setBorder(null);\n jPanel1.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(355, 340, -1, -1));\n\n jSeparator2.setForeground(new java.awt.Color(255, 227, 59));\n jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(343, 256, 228, 1));\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/linea_vertical.png\"))); // NOI18N\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(343, 310, -1, -1));\n\n jLabel11.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 227, 59));\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/persona.png\"))); // NOI18N\n jLabel11.setText(\"BUSCAR PERSONA:\");\n jLabel11.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(355, 310, -1, -1));\n\n tfhora.setFont(new java.awt.Font(\"Quicksand\", 0, 16)); // NOI18N\n tfhora.setForeground(new java.awt.Color(178, 178, 178));\n tfhora.setText(\"22:50:02\");\n tfhora.setBorder(null);\n jPanel1.add(tfhora, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 215, -1, -1));\n\n jSeparator3.setForeground(new java.awt.Color(178, 178, 178));\n jPanel1.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(395, 360, 90, 5));\n\n tfdni.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n tfdni.setForeground(new java.awt.Color(178, 178, 178));\n tfdni.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n tfdni.setText(\"40123123\");\n tfdni.setBorder(null);\n jPanel1.add(tfdni, new org.netbeans.lib.awtextra.AbsoluteConstraints(395, 340, 90, -1));\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/linea_vertical2.png\"))); // NOI18N\n jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(343, 408, -1, -1));\n\n jLabel15.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 227, 59));\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/propietario.png\"))); // NOI18N\n jLabel15.setText(\"PROPIETARIO:\");\n jLabel15.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jPanel1.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(355, 410, -1, -1));\n\n jTextField5.setFont(new java.awt.Font(\"Quicksand\", 0, 16)); // NOI18N\n jTextField5.setForeground(new java.awt.Color(178, 178, 178));\n jTextField5.setText(\"APELLIDO:\");\n jTextField5.setBorder(null);\n jPanel1.add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(355, 440, -1, -1));\n\n tfapellido.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n tfapellido.setForeground(new java.awt.Color(178, 178, 178));\n tfapellido.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tfapellido.setText(\"Ceballe\");\n tfapellido.setBorder(null);\n jPanel1.add(tfapellido, new org.netbeans.lib.awtextra.AbsoluteConstraints(438, 440, 90, -1));\n\n tfnombre.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n tfnombre.setForeground(new java.awt.Color(178, 178, 178));\n tfnombre.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tfnombre.setText(\"María José\");\n tfnombre.setBorder(null);\n jPanel1.add(tfnombre, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 460, 90, -1));\n\n jTextField8.setFont(new java.awt.Font(\"Quicksand\", 0, 16)); // NOI18N\n jTextField8.setForeground(new java.awt.Color(178, 178, 178));\n jTextField8.setText(\"NOMBRE:\");\n jTextField8.setBorder(null);\n jPanel1.add(jTextField8, new org.netbeans.lib.awtextra.AbsoluteConstraints(355, 460, -1, -1));\n\n jLabel16.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/linea_vertical3.png\"))); // NOI18N\n jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 408, -1, -1));\n\n jLabel17.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(255, 227, 59));\n jLabel17.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/saldo.png\"))); // NOI18N\n jLabel17.setText(\"ESTADO DE CUENTA:\");\n jLabel17.setVerticalTextPosition(javax.swing.SwingConstants.TOP);\n jPanel1.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(585, 410, -1, -1));\n\n jTextField9.setFont(new java.awt.Font(\"Quicksand\", 0, 16)); // NOI18N\n jTextField9.setForeground(new java.awt.Color(178, 178, 178));\n jTextField9.setText(\"SALDO ACTUAL:\");\n jTextField9.setBorder(null);\n jPanel1.add(jTextField9, new org.netbeans.lib.awtextra.AbsoluteConstraints(585, 440, -1, -1));\n\n jTextField10.setFont(new java.awt.Font(\"Quicksand\", 0, 16)); // NOI18N\n jTextField10.setForeground(new java.awt.Color(178, 178, 178));\n jTextField10.setText(\"INGRESAR IMPORTE:\");\n jTextField10.setBorder(null);\n jPanel1.add(jTextField10, new org.netbeans.lib.awtextra.AbsoluteConstraints(585, 465, -1, -1));\n\n jSeparator4.setForeground(new java.awt.Color(178, 178, 178));\n jPanel1.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(745, 487, 70, 5));\n\n tfingresarimporte.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n tfingresarimporte.setForeground(new java.awt.Color(178, 178, 178));\n tfingresarimporte.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n tfingresarimporte.setText(\"$300\");\n tfingresarimporte.setBorder(null);\n jPanel1.add(tfingresarimporte, new org.netbeans.lib.awtextra.AbsoluteConstraints(745, 465, 70, -1));\n\n tfsaldoactual.setFont(new java.awt.Font(\"Quicksand\", 1, 16)); // NOI18N\n tfsaldoactual.setForeground(new java.awt.Color(255, 255, 255));\n tfsaldoactual.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n tfsaldoactual.setText(\"5\");\n tfsaldoactual.setBorder(null);\n jPanel1.add(tfsaldoactual, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 440, 60, -1));\n\n jbguardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_guardar_off.png\"))); // NOI18N\n jbguardar.setBorder(null);\n jbguardar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jbguardar.setOpaque(false);\n jbguardar.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_guardar_on.png\"))); // NOI18N\n jbguardar.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_guardar_on.png\"))); // NOI18N\n jbguardar.setRolloverSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_guardar_on.png\"))); // NOI18N\n jPanel1.add(jbguardar, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 510, -1, -1));\n\n jbcancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_cancelar_off.png\"))); // NOI18N\n jbcancelar.setBorder(null);\n jbcancelar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jbcancelar.setOpaque(false);\n jbcancelar.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_cancelar_on.png\"))); // NOI18N\n jbcancelar.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_cancelar_on.png\"))); // NOI18N\n jbcancelar.setRolloverSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/btn_cancelar_on.png\"))); // NOI18N\n jPanel1.add(jbcancelar, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 510, -1, -1));\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/buscar.png\"))); // NOI18N\n jButton1.setBorder(null);\n jButton1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jButton1.setOpaque(false);\n jButton1.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/buscar_on.png\"))); // NOI18N\n jButton1.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/buscar_on.png\"))); // NOI18N\n jButton1.setRolloverSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/buscar_on.png\"))); // NOI18N\n jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 340, -1, -1));\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n setLocationRelativeTo(null);\n }",
"public frmSecundarioInterno() {\n initComponents();\n }",
"public FormPpal() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"Imagenes/icon.png\")));\n setLocationRelativeTo(null);\n setTitle(\"Men\\372 principal\");\n setResizable(false);\n formBackUp = null;\n formBuscador = null;\n fb1 = null;\n fb2 = null;\n formListado = null;\n conn = new Conn();\n pacientesCumpleanos = new LinkedList();\n pacientesControl = new LinkedList();\n cargarCumpleanos();\n cargarControlesHoy();\n }",
"public Informacion() {\n initComponents();\n }"
] | [
"0.6895933",
"0.6815116",
"0.67830366",
"0.66901577",
"0.6678825",
"0.66278833",
"0.66040623",
"0.6602102",
"0.65880543",
"0.65770626",
"0.65764624",
"0.65591115",
"0.6550584",
"0.65209234",
"0.65205455",
"0.6513446",
"0.6488487",
"0.64616823",
"0.6460371",
"0.64494044",
"0.64352036",
"0.64274985",
"0.6425679",
"0.64155304",
"0.64027363",
"0.639436",
"0.63911796",
"0.63890505",
"0.63878596",
"0.6387537",
"0.63869745",
"0.6385058",
"0.6377001",
"0.6363487",
"0.6358757",
"0.63540167",
"0.63539463",
"0.63531935",
"0.6346665",
"0.6344959",
"0.63444424",
"0.63351095",
"0.63340825",
"0.6333349",
"0.63251495",
"0.63202125",
"0.6319081",
"0.6314629",
"0.63140285",
"0.63129073",
"0.6312342",
"0.6310839",
"0.6306262",
"0.6303322",
"0.62977797",
"0.6295368",
"0.62918454",
"0.62890404",
"0.6288031",
"0.6285423",
"0.6283404",
"0.62752324",
"0.6273631",
"0.62730676",
"0.62724936",
"0.6268648",
"0.62672794",
"0.62663805",
"0.6265891",
"0.62616473",
"0.6257031",
"0.6252372",
"0.6251291",
"0.62486386",
"0.62483186",
"0.6245862",
"0.62455034",
"0.6242285",
"0.6241055",
"0.6240676",
"0.6239993",
"0.6239542",
"0.6236591",
"0.6234418",
"0.6232237",
"0.6226965",
"0.6225271",
"0.6224919",
"0.62246585",
"0.6222927",
"0.62172157",
"0.6216608",
"0.6216399",
"0.6216224",
"0.6214723",
"0.62140715",
"0.62088853",
"0.6207021",
"0.62052476",
"0.620496"
] | 0.66379637 | 5 |
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() {
jFormattedTextField1 = new javax.swing.JFormattedTextField();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
txDescricao = new javax.swing.JTextField();
botaoLimpar = new javax.swing.JButton();
botaoSalvar = new javax.swing.JButton();
jLabel5 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
txObservacoes = new javax.swing.JTextArea();
jLabel6 = new javax.swing.JLabel();
txPreco = new javax.swing.JTextField();
jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(new java.text.SimpleDateFormat("YYYY"))));
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Inserir Marca");
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
jPanel1.setLayout(null);
jLabel1.setText("Inserir Celularl");
jPanel1.add(jLabel1);
jLabel1.setBounds(57, 11, 69, 14);
jLabel2.setText("Descrição.:");
jPanel1.add(jLabel2);
jLabel2.setBounds(10, 46, 80, 14);
jPanel1.add(txDescricao);
txDescricao.setBounds(108, 43, 70, 20);
botaoLimpar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/rosicleiafrasson/view/imagens/limpar.png"))); // NOI18N
botaoLimpar.setText("Limpar");
botaoLimpar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
botaoLimparActionPerformed(evt);
}
});
jPanel1.add(botaoLimpar);
botaoLimpar.setBounds(150, 340, 110, 23);
botaoSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/rosicleiafrasson/view/imagens/salvar.png"))); // NOI18N
botaoSalvar.setText("Salvar");
botaoSalvar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
botaoSalvarActionPerformed(evt);
}
});
jPanel1.add(botaoSalvar);
botaoSalvar.setBounds(279, 340, 120, 23);
jLabel5.setText("Observações.: ");
jPanel1.add(jLabel5);
jLabel5.setBounds(10, 90, 100, 14);
txObservacoes.setColumns(20);
txObservacoes.setRows(5);
jScrollPane1.setViewportView(txObservacoes);
jPanel1.add(jScrollPane1);
jScrollPane1.setBounds(110, 90, 294, 74);
jLabel6.setText("Preço.: ");
jPanel1.add(jLabel6);
jLabel6.setBounds(10, 190, 80, 14);
jPanel1.add(txPreco);
txPreco.setBounds(110, 190, 80, 20);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 398, Short.MAX_VALUE)
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"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}",
"@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 LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\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 FrmMenu() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\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 JFFornecedores() {\n initComponents();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\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 MiFrame2() {\n initComponents();\n }",
"public IssueBookForm() {\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 FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }",
"public frmAddIncidencias() {\n initComponents();\n }"
] | [
"0.73192346",
"0.7290526",
"0.7290526",
"0.7290526",
"0.7285891",
"0.72480357",
"0.7213616",
"0.7207808",
"0.71955067",
"0.71891475",
"0.71844363",
"0.7159038",
"0.71474695",
"0.7092269",
"0.7079923",
"0.70560205",
"0.69864315",
"0.697697",
"0.69552195",
"0.6953691",
"0.69458604",
"0.6942849",
"0.6935743",
"0.6930747",
"0.69286084",
"0.6924837",
"0.69246644",
"0.6911876",
"0.69103247",
"0.68922365",
"0.6891582",
"0.68904996",
"0.68901706",
"0.6888661",
"0.68829393",
"0.6881672",
"0.6880505",
"0.68782157",
"0.6875765",
"0.6874406",
"0.68711114",
"0.6859388",
"0.6856025",
"0.68551815",
"0.6855079",
"0.6855076",
"0.68530315",
"0.68524104",
"0.68524104",
"0.6843717",
"0.68364704",
"0.6836458",
"0.6828335",
"0.68279964",
"0.6826276",
"0.68240345",
"0.6823631",
"0.68171996",
"0.6816324",
"0.68097955",
"0.68088883",
"0.68078303",
"0.6807776",
"0.680721",
"0.680251",
"0.6795605",
"0.6794452",
"0.67921954",
"0.67907083",
"0.678904",
"0.6787817",
"0.6787755",
"0.67814714",
"0.67663145",
"0.6765024",
"0.67649895",
"0.6756559",
"0.6754775",
"0.6751848",
"0.67506975",
"0.67435455",
"0.6738591",
"0.6737042",
"0.6735227",
"0.6732907",
"0.6726301",
"0.6726003",
"0.67197675",
"0.67156976",
"0.6714806",
"0.6713657",
"0.6708582",
"0.67078584",
"0.6705488",
"0.6700733",
"0.6699659",
"0.6698679",
"0.66974026",
"0.6693979",
"0.66902804",
"0.6690275"
] | 0.0 | -1 |
AllPossibleRoutesModel getPossibleRoutes(Location start, Location end); AllPossibleRoutesModel getPossibleRoutes(int loc_start_id, int loc_end_id); HashMap getPossibleRoutes(int loc_start_id, int loc_end_id); | List<ConnectingFlights> getPossibleRoutes(int loc_start_id, int loc_end_id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Route> getAllRoute();",
"@GET(\"/routecollection/{startLocation}\")\n void getRoutes(@Path(\"startLocation\")String startLocation, Callback<Routes> routes);",
"public ArrayList<Location> getRoute(Location start, Location end) throws LocationNotFound{\n ArrayList<Location> route = new ArrayList<>();\n Location currentLoc = end;\n route.add(end);\n while (!currentLoc.equals(start)) {\n Location parentLoc = currentLoc.getParentLoc();\n route.add(parentLoc);\n currentLoc = parentLoc;\n }\n Collections.reverse(route);\n return route;\n }",
"Set<McastRoute> getRoutes();",
"@Override\n public List<Route> getRoutes(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n List<Route> routes = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblRoutes\");\n for(Map<String, Object> map: data) {\n Route r = new Route(map);\n List<Landmark> landmarks = new ArrayList<>();\n get(\"SELECT * FROM TblLandmarks WHERE route = ?\",r.getSerialNum()).forEach(\n stringObjectMap -> landmarks.add(new Landmark(stringObjectMap))\n );\n r.setLandmarks(landmarks);\n routes.add(r);\n }\n return routes;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }",
"public java.util.List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> getRoute()\r\n {\r\n List<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>> roads_map = new ArrayList<java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>>();\r\n java.util.AbstractMap.SimpleImmutableEntry<Street,Stop> entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(null, null);\r\n\r\n for (Street s : streets_map)\r\n {\r\n if (s.getStops().isEmpty() == false)\r\n {\r\n for (int i = 0; i < s.getStops().size(); i++)\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,s.getStops().get(i));\r\n }\r\n\r\n }\r\n else\r\n {\r\n entry = new java.util.AbstractMap.SimpleImmutableEntry<Street,Stop>(s,null);\r\n }\r\n\r\n roads_map.add(entry);\r\n\r\n }\r\n\r\n return roads_map;\r\n\r\n }",
"List<Route> getDirectRoutes(String departure, String arrival);",
"public void getDirections(Location startLocation, Location endLocation) {\n getDirections(startLocation.getCoordinates(), endLocation.getCoordinates());\n }",
"@Override\n\tpublic List<Route> listAllRoutes() {\n\t\tConnection con = null;\n\t\tList<Route> routes = new ArrayList<Route>();\n\t\ttry {\n\t\t\tcon = getMySqlConnection();\n\t\t\tCallableStatement callableStatement = con\n\t\t\t\t\t.prepareCall(\"call listAllRoutes()\");\n\t\t\tcallableStatement.executeQuery();\n\n\t\t\tResultSet result = callableStatement.getResultSet();\n\t\t\twhile (result.next()) {\n\t\t\t\tRoute route = new Route();\n\t\t\t\troute.setRouteId(result.getLong(1));\n\t\t\t\troute.setFromCity(new City(result.getString(2)));\n\t\t\t\troute.setToCity(new City(result.getString(3)));\n\t\t\t\troute.getFromCity().setCityId(result.getLong(4));\n\t\t\t\troute.getToCity().setCityId(result.getLong(5));\n\t\t\t\troutes.add(route);\n\t\t\t}\n\n\t\t} catch (SQLException s) {\n\t\t\ts.printStackTrace();\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn routes;\n\t}",
"@Override\n public PossibleRoutesList getAllPossibleRoutes(int tripRequestID, int maximumMatches) throws NoResultsFoundException {\n TripRequest requestToMatch = getTripRequest(tripRequestID);\n Predicate<PossibleRoute> timeMatchPredicate = possibleRoute -> {\n if (requestToMatch.isTimeOfArrival()) {\n return possibleRoute.getArrivalTime().equals(requestToMatch.getRequestTime());\n } else {\n return possibleRoute.getDepartureTime().equals(requestToMatch.getRequestTime());\n }\n };\n Predicate<PossibleRoute> continuousRidePredicate = possibleRoute ->\n !requestToMatch.isContinuous() || possibleRoute.isContinuous();\n\n PossibleRoutesList possibleRoutes = getTripOffersGraph()\n .getAllPossibleRoutes(\n requestToMatch.getSourceStop(),\n requestToMatch.getDestinationStop(),\n requestToMatch.getRequestTime())\n .stream()\n .filter(timeMatchPredicate)\n .filter(continuousRidePredicate)\n .limit(maximumMatches)\n .collect(Collectors.toCollection(PossibleRoutesList::new));\n\n if (possibleRoutes.isEmpty()) {\n throw new NoResultsFoundException();\n } else {\n return possibleRoutes;\n }\n\n }",
"public ArrayList<Route> queryAreaRoutes(int areaId) throws SQLException {\n\t\tArrayList<Route> routes = new ArrayList<Route>();\n\t\t\n\t\t// query string for all routes of an area\n\t\tString strStatement = \"select routes.\" + COLUMN_ID + \", routes.\" + COLUMN_TICKET_ID + \n\t\t\t\", routes.\" + COLUMN_NAME + \", routes.\" + COLUMN_STARTNAME +\n\t\t\t\", routes.\" + COLUMN_ENDNAME + \" from \" + mDbName + \".\" + TABLE_AREA +\n\t\t\t\" as area, ( select distinct route.\" + COLUMN_ID + \", route.\" + COLUMN_TICKET_ID +\n\t\t\t\", route.\" + COLUMN_NAME + \", route.\" + COLUMN_STARTNAME + \", route.\" + COLUMN_ENDNAME +\n\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, \" + mDbName + \n\t\t\t\".\" + TABLE_ROUTE + \" as route ) as routes where area.\" + COLUMN_ID + \"=\" + areaId;\n//\t\tmController.log(strStatement);\n\t\t\n\t\tif (mMysqlConnection == null) {\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t\t.getConnection(getConnectionURI());\n\t\t}\n\t\t\n\t\tmStatement = mMysqlConnection.createStatement();\n\t\tmResultSet = mStatement.executeQuery(strStatement);\n\t\t\n\t\t// for each result set found, create a new Route instance and store the related information \n\t\t// of the route and add each to the routes list\n\t\twhile (mResultSet.next()) {\n\t\t\tRoute route = new Route();\n\t\t\troute.setId(mResultSet.getInt(COLUMN_ID));\n\t\t\troute.setName(mResultSet.getString(COLUMN_NAME));\n\t\t\troute.setTicketId(mResultSet.getInt(COLUMN_TICKET_ID));\n\t\t\troute.setStart(mResultSet.getString(COLUMN_STARTNAME));\n\t\t\troute.setEnd(mResultSet.getString(COLUMN_ENDNAME));\n\t\t\t\n\t\t\troutes.add(route);\t\t\t\n\t\t}\n\t\t\n\t\t// for each related station in a route query the id and the position of the station \n\t\t// from start to end in this route\n\t\tfor(Route route : routes){\n\t\t\tString strStatement2 = \"select pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION + \n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA + \" as area, ( select pos.\" +\n\t\t\t\tCOLUMN_ROUTE_ID + \", pos.\" + COLUMN_STATION_ID + \", pos.\" + COLUMN_POSITION +\n\t\t\t\t\" from \" + mDbName + \".\" + TABLE_AREA_HAS_ROUTES + \" as ahr, ( select rhs.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\", rhs.\" + COLUMN_STATION_ID + \", rhs.\" + COLUMN_POSITION + \n\t\t\t\t\" from \"+ mDbName + \".\" + TABLE_ROUTE + \" as route, \" + mDbName + \n\t\t\t\t\".\" + TABLE_ROUTE_HAS_STATIONS + \" as rhs) as pos where pos.\" + COLUMN_ROUTE_ID +\n\t\t\t\t\"=\" + route.getId() + \" group by pos.\" + COLUMN_STATION_ID +\n\t\t\t\t\") as pos where area.\" + COLUMN_ID + \"=\" + areaId + \" order by pos.\" + COLUMN_POSITION;\n//\t\t\tmController.log(strStatement2);\n\t\t\t\n\t\t\tmStatement = mMysqlConnection.createStatement();\n\t\t\tmResultSet = mStatement.executeQuery(strStatement2);\n\t\t\t\n\t\t\twhile (mResultSet.next()) {\n\t\t\t\troute.addStation(mResultSet.getInt(COLUMN_POSITION), mResultSet.getInt(COLUMN_STATION_ID));\n\t\t\t}\n\t\t}\n\t\t\n\t\tLOGGER.info(\"Read \" + routes.size() + \" routes from DB\");\n\t\treturn routes;\n\t}",
"public interface RoutingAlgorithm {\n public void initMapInfo(int[][] map);\n public int getShortestPath(int start,int end);\n}",
"List<Route> getRoutesByArrival(String arrival);",
"public void getDirections(double startLat, double startLong, double endLat, double endLong) {\n getDirections(startLong + \",\" + startLat, endLong + \",\" + endLat);\n }",
"public List<Route> getRoutes(){\n return routeDAO.findAll();\n }",
"private void QueryDirections() {\n\t\tshowProgress(true, \"正在搜索导航路线...\");\n\t\t// Spawn the request off in a new thread to keep UI responsive\n\t\tfor (final FloorInfo floorInfo : floorList) {\n\t\t\tif (floorInfo.getPoints() != null\n\t\t\t\t\t&& floorInfo.getPoints().length >= 2) {\n\n\t\t\t\tThread t = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Start building up routing parameters\n\t\t\t\t\t\t\tRouteTask routeTask = RouteTask\n\t\t\t\t\t\t\t\t\t.createOnlineRouteTask(\n\t\t\t\t\t\t\t\t\t\t\tfloorInfo.getRouteServerPath(),\n\t\t\t\t\t\t\t\t\t\t\tnull);\n\n\t\t\t\t\t\t\tRouteParameters rp = routeTask\n\t\t\t\t\t\t\t\t\t.retrieveDefaultRouteTaskParameters();\n\t\t\t\t\t\t\tNAFeaturesAsFeature rfaf = new NAFeaturesAsFeature();\n\t\t\t\t\t\t\t// Convert point to EGS (decimal degrees)\n\t\t\t\t\t\t\t// Create the stop points (start at our location, go\n\t\t\t\t\t\t\t// to pressed location)\n\t\t\t\t\t\t\t// StopGraphic point1 = new StopGraphic(mLocation);\n\t\t\t\t\t\t\t// StopGraphic point2 = new StopGraphic(p);\n\t\t\t\t\t\t\trfaf.setFeatures(floorInfo.getPoints());\n\t\t\t\t\t\t\trfaf.setCompressedRequest(true);\n\t\t\t\t\t\t\trp.setStops(rfaf);\n\n\t\t\t\t\t\t\t// Set the routing service output SR to our map\n\t\t\t\t\t\t\t// service's SR\n\t\t\t\t\t\t\trp.setOutSpatialReference(wm);\n\t\t\t\t\t\t\trp.setFindBestSequence(true);\n\t\t\t\t\t\t\trp.setPreserveFirstStop(true);\n\t\t\t\t\t\t\tif (floorInfo.getEndPoint() != null) {\n\t\t\t\t\t\t\t\trp.setPreserveLastStop(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Solve the route and use the results to update UI\n\t\t\t\t\t\t\t// when received\n\t\t\t\t\t\t\tfloorInfo.setRouteResult(routeTask.solve(rp));\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmException = e;\n\t\t\t\t\t\t\t// mHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trouteIndex++;\n\t\t\t\t\t\tif (routeIndex >= routeCount) {\n\t\t\t\t\t\t\tmHandler.post(mSetCheckMap);\n\t\t\t\t\t\t\tmHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Start the operation\n\t\t\t\tt.start();\n\t\t\t}\n\t\t}\n\n\t}",
"public void getDirections(String startLocation, String endLocation) {\n\n // build the url\n String requestUrl = BASE_URL + DIRECTIONS_MODE + \"?api_key=\" + API_KEY + \"&start=\" + startLocation + \"&end=\" + endLocation;\n\n // start a new thread to do the request, because we don't want to be networking on our main thread\n Thread t = new Thread(() -> {\n\n // build a request from the url\n Request request = new Request.Builder().url(requestUrl).build();\n\n // try to get the response\n try (Response response = client.newCall(request).execute()) {\n if (response.body() != null) {\n String responseString = Objects.requireNonNull(response.body()).string();\n Log.d(TAG, \"getDirections: got response: \" + responseString);\n\n // convert the response into a result object\n DirectionsResult result = new DirectionsResult();\n result.parse(responseString);\n Log.d(TAG, \"getDirections: \" + result.getSteps().size());\n\n // notify the listeners\n for (DirectionsListener listener : listeners) {\n listener.onDirectionsAvailable(result);\n }\n }\n\n } catch (IOException e) {\n Log.d(TAG, \"getDirections: caught exception: \" + e.getLocalizedMessage());\n }\n });\n\n t.start();\n\n// try {\n// t.join();\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n\n }",
"public static ArrayList<Route> getFeasibleRoutes(\r\n\t\t\tint i, \r\n\t\t\tint j, \r\n\t\t\tint[] hList,\r\n\t\t\tNode[] nodes,\r\n\t\t\tRoute[][][][] routes,\r\n\t\t\tdouble[][] distances,\r\n\t\t\tdouble alpha\r\n\t\t\t){\n\t\t\t\tArrayList<Route> feasibleRoutes = new ArrayList<Route>();\r\n\t\t\t\tif (nodes[i].isHub && nodes[j].isHub) {\r\n\t\t\t\t\tif (routes[i][i][j][j] == null)\r\n\t\t\t\t\t\troutes[i][i][j][j] = new Route(nodes[i], nodes[i], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\tfeasibleRoutes.add(routes[i][i][j][j]);\r\n\t\t\t\t} else if (nodes[i].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][i][n][j] == null)\r\n\t\t\t\t\t\t\troutes[i][i][n][j] = new Route(nodes[i], nodes[i], nodes[n], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][i][n][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (nodes[j].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][n][j][j] == null)\r\n\t\t\t\t\t\t\troutes[i][n][j][j] = new Route(nodes[i], nodes[n], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][n][j][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int u = 0; u < hList.length; u++) {\r\n\t\t\t\t\t\tfor (int v = u; v < hList.length; v++) {\r\n\t\t\t\t\t\t\tif (routes[i][hList[u]][hList[v]][j] == null\r\n\t\t\t\t\t\t\t\t\t&& routes[i][hList[v]][hList[u]][j] == null) {\r\n\t\t\t\t\t\t\t\tRoute r1 = new Route(nodes[i], nodes[hList[u]], nodes[hList[v]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tRoute r2 = new Route(nodes[i], nodes[hList[v]], nodes[hList[u]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tif (r1.expCost <= r2.expCost) {\r\n\t\t\t\t\t\t\t\t\troutes[r1.i.ID][r1.k.ID][r1.m.ID][r1.j.ID] = r1;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r1);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\troutes[r2.i.ID][r2.k.ID][r2.m.ID][r2.j.ID] = r2;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (routes[i][hList[u]][hList[v]][j] != null) {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[u]][hList[v]][j]);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[v]][hList[u]][j]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn feasibleRoutes;\r\n\t}",
"public List<Route> getRoutes() {\n // use Optional to prevent returning a null list.\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n HttpEntity<String> entity = new HttpEntity<String>(headers);\n String response =\n restTemplate.exchange(BASE_URL_ROUTES, HttpMethod.GET, entity, String.class).getBody();\n\n List<Route> results = new ArrayList<>();\n try {\n results = parse(response);\n } catch (IOException e) {\n e.printStackTrace();\n }\n final List<Route> finalResults = Optional.ofNullable(results).orElseGet(ArrayList::new);\n return finalResults;\n }",
"public Map<String, ForeignRoute> determineForeignRoutes(List<EULocation> locationList, String id) {\n // Sort the locations\n Collections.sort(locationList);\n\n Map<String, List<List<EULocation>>> countryTripList = new HashMap<>();\n countryTripList.put(\"DE\", new ArrayList<>());\n countryTripList.put(\"LU\", new ArrayList<>());\n countryTripList.put(\"NL\", new ArrayList<>());\n countryTripList.put(\"AT\", new ArrayList<>());\n countryTripList.put(\"BE\", new ArrayList<>());\n\n // Set initial last country code\n String currentCountryCode = getCountryCodeByLocation(locationList.get(0));\n\n List<EULocation> trip = new ArrayList<>();\n\n for (EULocation l : locationList) {\n String thisCountryCode = getCountryCodeByLocation(l);\n if (thisCountryCode.equals(currentCountryCode)) {\n // We're still in the country, add to this trip\n trip.add(l);\n } else {\n // This trip is done. Add the trip to the country's (other) trips\n List<List<EULocation>> newTrips = countryTripList.get(currentCountryCode);\n if (trip.size() > 0) {\n newTrips.add(trip);\n }\n countryTripList.put(currentCountryCode, newTrips);\n\n // Set new country\n currentCountryCode = thisCountryCode;\n\n // Clear current trip\n trip = new ArrayList<>();\n\n trip.add(l);\n }\n }\n\n ForeignRoute foreignRouteNL = new ForeignRoute(countryCode, countryTripList.get(\"NL\"), id);\n ForeignRoute foreignRouteDE = new ForeignRoute(countryCode, countryTripList.get(\"DE\"), id);\n ForeignRoute foreignRouteBE = new ForeignRoute(countryCode, countryTripList.get(\"BE\"), id);\n ForeignRoute foreignRouteAT = new ForeignRoute(countryCode, countryTripList.get(\"AT\"), id);\n ForeignRoute foreignRouteLU = new ForeignRoute(countryCode, countryTripList.get(\"LU\"), id);\n\n Map<String, ForeignRoute> result = new HashMap<>();\n\n if (foreignRouteAT.getTrips().size() != 0 && !countryCode.equals(\"AT\")) {\n result.put(\"AT\", foreignRouteAT);\n }\n if (foreignRouteBE.getTrips().size() != 0 && !countryCode.equals(\"BE\")) {\n result.put(\"BE\", foreignRouteBE);\n }\n if (foreignRouteNL.getTrips().size() != 0 && !countryCode.equals(\"NL\")) {\n result.put(\"NL\", foreignRouteNL);\n }\n if (foreignRouteLU.getTrips().size() != 0 && !countryCode.equals(\"LU\")) {\n result.put(\"LU\", foreignRouteLU);\n }\n if (foreignRouteDE.getTrips().size() != 0 && !countryCode.equals(\"DE\")) {\n result.put(\"DE\", foreignRouteDE);\n }\n\n return result;\n }",
"public HashMap<Integer, Route> queryAreaRoutesMap(int areaId) {\n\t\tHashMap<Integer, Route> routes = new HashMap<Integer, Route>();\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tArrayList<Route> areaRoutes = queryAreaRoutes(areaId);\n\t\t\tfor(Route route : areaRoutes){\n\t\t\t\troutes.put(route.getId(), route);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\t\t\n\t\treturn routes;\n\t}",
"public Collection<Route> getRoutes() {\n Iterator<KeyValuePair<Route>> it =\n routeTable.getKeyValuePairsForKeysStartingWith(\"\").iterator();\n\n List<Route> routes = new LinkedList<>();\n\n while (it.hasNext()) {\n KeyValuePair<Route> entry = it.next();\n routes.add(entry.getValue());\n }\n\n return routes;\n }",
"public Map<String, Integer> findPossibilities(char startName, char finishName, int maxDistance) {\r\n Map<String, Integer> routes = new TreeMap<>();\r\n \r\n // get vertex identified by startName\r\n Vertex startVertex = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == startName) {\r\n startVertex = v;\r\n break;\r\n }\r\n }\r\n if(startVertex == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + startName + \" is not in graph\");\r\n }\r\n \r\n // get vertex identified by finishName\r\n Vertex finishVertex = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == finishName) {\r\n finishVertex = v;\r\n break;\r\n }\r\n }\r\n if(finishVertex == null) {\r\n throw new IllegalArgumentException(\"Vertex \" + finishName + \" is not in graph\");\r\n }\r\n \r\n // search which will do DFS and alter routes whenever it finds a route\r\n search(routes, startVertex, finishVertex, maxDistance, Character.toString(startName), 0);\r\n \r\n /*for(Edge e : startVertex.getIncidentEdges()) {\r\n if(e.getDistance() <= maxDistance)\r\n search(routes, e.getOppositeVertex(startVertex), finishVertex, maxDistance, Character.toString(startName) + e.getOppositeVertex(startVertex).getName(), e.getDistance());\r\n }*/\r\n \r\n return routes;\r\n }",
"List<Direction> getValidDirectionsForMovement();",
"void onSucceedFindDirection(List<RouteBeetweenTwoPointsDTO> route);",
"ArrayList<TTC> generateSegments() {\n if ((START_STATION instanceof Station) && (endStation instanceof Station)) {\n ArrayList<TTC> route = TTC.SUBWAY_LIST.get(NUMBER);\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n } else {\n ArrayList<TTC> route = TTC.BUS_MAP.get((START_STATION).getNUMBER());\n if (route.contains(START_STATION) && route.contains(endStation)) {\n return generateSegmentsHelper(route);\n } else {\n return new ArrayList<>();\n }\n }\n }",
"public Route getRoute();",
"public void calculateRoute() {\n SKRouteSettings route = new SKRouteSettings();\n route.setStartCoordinate(start);\n route.setDestinationCoordinate(end);\n route.setNoOfRoutes(1);\n switch (routingType) {\n case SHORTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_SHORTEST);\n break;\n case FASTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_FASTEST);\n break;\n case QUIET:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_QUIETEST);\n break;\n }\n route.setRouteExposed(true);\n SKRouteManager.getInstance().calculateRoute(route);\n }",
"public ArrayList getRoutes(){\r\n ArrayList routeDataList = new ArrayList();\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id, route_long_name from routes\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n while (getData.moveToNext()){\r\n routeDataList.add(getData.getString(1));\r\n }\r\n\r\n getData.close();\r\n\r\n return routeDataList;\r\n }",
"public List<String> getRouteList();",
"private Route calculate(String fromStation, String toStation) {\n\t\tif (stations==null){\r\n\t\t\tSystem.out.println(\"DEBUG RUN OF DIJKSTRA.\");\r\n\t\t\tstations = new ArrayList<Station>();\r\n\t\t\tcreateDebugMap(stations);\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Check if the stations exists\r\n\t\t */\r\n\t\tStation startStation = null, endStation = null;\r\n\r\n\t\t// Find starting station\r\n\t\tfor (Station thisStation : stations) {\r\n\t\t\tif (thisStation.stationName.equals(fromStation)) {\r\n\t\t\t\tSystem.out.println(\"Found startStaion in the Database\");\r\n\t\t\t\tstartStation = thisStation;\r\n\t\t\t}\r\n\t\t\tif (thisStation.stationName.equals(toStation)) {\r\n\t\t\t\tSystem.out.println(\"Found endStation in the Database\");\r\n\t\t\t\tendStation = thisStation;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Station not found. Break\r\n\t\tif (startStation == null || endStation == null) {\r\n\t\t\tSystem.out.println(\"Shit! One of the stations could not be found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Declare the variables for the algorithm\r\n\t\t */\r\n\r\n\t\t// ArrayList for keeping track of stations we have visited.\r\n\t\tArrayList<Station> visitedStations = new ArrayList<Station>();\r\n\t\t// Array for the DijkstraStations. This type holds the current best cost and best link to it.\r\n\t\tArrayList<DijkstraStation> dijkstraStations = new ArrayList<DijkstraStation>();\r\n\r\n\t\t// The station we are examining neighbors from.\r\n\t\tDijkstraStation currentStation = new DijkstraStation(new Neighbor(startStation, 0, 0), 0, startStation);\r\n\r\n\t\t// PriorityQueue for sorting unvisited DijkstraStations.\r\n\t\tNeighBorDijktstraComparetor Dijkcomparator = new NeighBorDijktstraComparetor();\r\n\t\tPriorityQueue<DijkstraStation> unvisitedDijkstraStations;\r\n\t\tunvisitedDijkstraStations = new PriorityQueue<DijkstraStation>(100, Dijkcomparator);\r\n\r\n\t\t// Variable to keep track of the goal\r\n\t\tboolean goalFound = false; // did we find the goal yet\r\n\t\tint goalBestCost = Integer.MAX_VALUE; // did we find the goal yet\r\n\r\n\t\t// Add the start staion to the queue so that the loop will start with this staiton\r\n\t\tunvisitedDijkstraStations.add(currentStation);\r\n\t\tdijkstraStations.add(currentStation);\r\n\r\n\t\t/***************************\r\n\t\t * The Dijkstra algorithm loop.\r\n\t\t ***************************/\r\n\r\n\t\twhile (!unvisitedDijkstraStations.isEmpty()) {\r\n\t\t\t// Take the next station to examine from the queue and set the next station as the currentStation\r\n\t\t\tcurrentStation = unvisitedDijkstraStations.poll();\r\n\r\n\t\t\tSystem.out.println(\"\\n============= New loop passtrough =============\");\r\n\t\t\tSystem.out.println(\"Analysing neighbors of \" + currentStation.stationRef.stationName + \". Cost to this station is: \" + currentStation.totalCost);\r\n\r\n\t\t\t// Add visited so we dont visit again.\r\n\t\t\tvisitedStations.add(currentStation.stationRef);\r\n\r\n\t\t\t// break the algorithm if the current stations totalcost if bigger than the best cost of the goal\r\n\t\t\tif (goalBestCost < currentStation.totalCost) {\r\n\t\t\t\tSystem.out.println(\"Best route to the goal has been found. Best cost is: \" + goalBestCost\r\n\t\t\t\t\t\t+ \" (To reach current station is: \" + currentStation.totalCost + \")\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Check all neighbors from the currentStation to the neighBorQueue so we can examine them\r\n\t\t\tfor (Neighbor thisNeighbor : currentStation.stationRef.neighbors) {\r\n\r\n\t\t\t\t// Skip stations we have already visited\r\n\t\t\t\tif (!visitedStations.contains(thisNeighbor.stationRef)) {\r\n\t\t\t\t\t// If we havent seen this station before\r\n\t\t\t\t\t// Add it to the list of Dijkstrastations and to the PriorityQueue of unvisited stations\r\n\t\t\t\t\tif (getDijkstraStationByID(thisNeighbor.stationRef.stationid, dijkstraStations) == null) {\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = new DijkstraStation(thisNeighbor, currentStation.totalCost\r\n\t\t\t\t\t\t\t\t+ thisNeighbor.cost, currentStation.stationRef);\r\n\t\t\t\t\t\tdijkstraStations.add(thisDijkstraStation);\r\n\t\t\t\t\t\tunvisitedDijkstraStations.offer(thisDijkstraStation);\r\n\r\n\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\tgoalFound = true;\r\n\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Goal station found :) Cost to goal is: \" + goalBestCost);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println(\"New station seen: \" + thisDijkstraStation);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Station has been seen before.\r\n\r\n\t\t\t\t\t\t// Get the station as a DijkstraStation from the array\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = getDijkstraStationByID(thisNeighbor.stationRef.stationid,\r\n\t\t\t\t\t\t\t\tdijkstraStations);\r\n\r\n\t\t\t\t\t\t// Check if the connection is better than the one we already know\r\n\t\t\t\t\t\tif (currentStation.totalCost + thisNeighbor.cost < thisDijkstraStation.totalCost) {\r\n\r\n\t\t\t\t\t\t\t// New best link found\r\n\t\t\t\t\t\t\tSystem.out.println(\"New best route found for \" + thisNeighbor.stationRef.stationName);\r\n\t\t\t\t\t\t\tSystem.out.println(\"Old cost:\" + thisDijkstraStation.totalCost + \", New cost: \"\r\n\t\t\t\t\t\t\t\t\t+ (currentStation.totalCost + thisNeighbor.cost));\r\n\r\n\t\t\t\t\t\t\t// update the cost and via station on the DijkstraStation\r\n\t\t\t\t\t\t\tthisDijkstraStation.updateBestLink((int) (currentStation.totalCost + thisNeighbor.cost),\r\n\t\t\t\t\t\t\t\t\tcurrentStation.stationRef, thisNeighbor);\r\n\r\n\t\t\t\t\t\t\t// if this is the goal station, update the totalCost\r\n\t\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Updated cost for the goal to : \" + goalBestCost);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}// End while\r\n\r\n\t\t// Print the World:\r\n//\t\t System.out.println();\r\n//\t\t System.out.println(\"################# Printing the world ###################\");\r\n//\t\t for (DijkstraStation thisDijkstraStation : dijkstraStations) {\r\n//\t\t System.out.println(thisDijkstraStation.toString());\r\n//\t\t DijkstraStation tempStation = thisDijkstraStation;\r\n//\t\t System.out.print(\"BackTracking route =>\");\r\n//\t\t while (!tempStation.stationRef.equals(startStation)) {\r\n//\t\t System.out.print(\" \" + tempStation.cost + \" to \" + tempStation.viaStation.stationName + \" #\");\r\n//\t\t\r\n//\t\t tempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n//\t\t }\r\n//\t\t System.out.print(\" End\");\r\n//\t\t System.out.print(\"\\n\\n\");\r\n//\t\t }\r\n//\r\n\t\tif (goalFound) {\r\n\t\t\tSystem.out.println(\"Generating route to goal\");\r\n\t\t\t// create a route object with all the stations.\r\n\t\t\tRoute routeToGoal = new Route(fromStation, toStation);\r\n\t\t\t// get the goalStation as a DijkstraStation Type\r\n\t\t\tDijkstraStation goalStation = getDijkstraStationByID(endStation.stationid, dijkstraStations);\r\n\r\n\t\t\trouteToGoal.cost = goalStation.totalCost;\r\n\t\t\trouteToGoal.price = (int) goalStation.totalCost;\r\n\r\n\t\t\t// Find the route to the goal\r\n\t\t\tDijkstraStation tempStation = goalStation;\r\n\r\n\t\t\twhile (!tempStation.stationRef.equals(startStation)) {\r\n\t\t\t\t// Add the station to the route table\r\n\t\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.cost, tempStation.cost,\r\n\t\t\t\t\t\ttempStation.stationRef.stationName, tempStation.stationRef.stationid);\r\n\t\t\t\t\r\n\t\t\t\t//Fix region string\r\n\t\t\t\tString regionString=\"\";\r\n\t\t\t\tfor (Integer regionID : tempStation.stationRef.region) {\r\n\t\t\t\t\tregionString.concat(regionID+ \",\");\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tthisStation.region = regionString.substring(0, regionString.length() - 1);\r\n\t\t\t\t\r\n\t\t\t\t//Add the station\r\n\t\t\t\trouteToGoal.route.add(0, thisStation);\r\n\t\t\t\t// Go to the previous station\r\n\t\t\t\ttempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n\t\t\t}\r\n\t\t\t// add the starting station\r\n\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.stationRef.latitude, tempStation.stationRef.longitude, tempStation.stationRef.stationName,\r\n\t\t\t\t\ttempStation.stationRef.stationid);\r\n\t\t\trouteToGoal.route.add(0, thisStation);\r\n\r\n\t\t\t// print the route\r\n\t\t\t//System.out.println(\"Printing best route to the Goal:\\n\" + routeToGoal.toString());\r\n\r\n\t\t\treturn routeToGoal;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public RouteResponse findRoute(RouteRequest routeRequest);",
"List<Route> getAllRouteByIdSupplier(Long id_supplier);",
"List<Route> getRoutesByDeparture(String departure);",
"protected abstract Deque<Vertex<AtomicReference>> getVehicleRoute(int entry, int exit);",
"public List<Integer> getRoute(int start, int destination, Map<Transport, Integer> tickets) {\n\n List<Node<Integer>> nodes = graph.getNodes();\n //Initialisation\n Map<Node<Integer>, Double> unvisitedNodes = new HashMap<Node<Integer>, Double>();\n Map<Node<Integer>, Double> distances = new HashMap<Node<Integer>, Double>();\n Map<Node<Integer>, Node<Integer>> previousNodes = new HashMap<Node<Integer>, Node<Integer>>();\n Node<Integer> currentNode = graph.getNode(start);\n\n for (Node<Integer> node : nodes) {\n if (!currentNode.getIndex().equals(node.getIndex())) {\n distances.put(node, Double.POSITIVE_INFINITY);\n } else {\n distances.put(node, 0.0);\n }\n Integer location = node.getIndex();\n try {\n unvisitedNodes.put(node, (1/pageRank.getPageRank(location)));\n } catch (Exception e) {\n System.err.println(e);\n }\n previousNodes.put(node, null);\n }\n //Search through the graph\n while (unvisitedNodes.size() > 0) {\n Node<Integer> m = minDistance(distances, unvisitedNodes);\n if (m == null) break;\n currentNode = m;\n if (currentNode.getIndex().equals(destination)) break;\n unvisitedNodes.remove(currentNode);\n\n step(graph, distances, unvisitedNodes, currentNode, previousNodes, tickets);\n }\n\n //Move backwards finding the shortest route\n List<Integer> route = new ArrayList<Integer>();\n while (previousNodes.get(currentNode) != null) {\n route.add(0, currentNode.getIndex());\n currentNode = previousNodes.get(currentNode);\n }\n route.add(0, currentNode.getIndex());\n return route;\n }",
"public List<BaggageRoute> getBaggageRoutes(BaggageProcessor processor);",
"public static PriorityQueue<Route> getFeasibleRoutes2(\r\n\t\t\tint i, \r\n\t\t\tint j, \r\n\t\t\tint[] hList,\r\n\t\t\tNode[] nodes,\r\n\t\t\tRoute[][][][] routes,\r\n\t\t\tdouble[][] distances,\r\n\t\t\tdouble alpha\r\n\t\t\t){\n\t\tPriorityQueue<Route> feasibleRoutes = new PriorityQueue<Route>();\r\n\t\t\t\tif (nodes[i].isHub && nodes[j].isHub) {\r\n\t\t\t\t\tif (routes[i][i][j][j] == null)\r\n\t\t\t\t\t\troutes[i][i][j][j] = new Route(nodes[i], nodes[i], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\tfeasibleRoutes.add(routes[i][i][j][j]);\r\n\t\t\t\t} else if (nodes[i].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][i][n][j] == null)\r\n\t\t\t\t\t\t\troutes[i][i][n][j] = new Route(nodes[i], nodes[i], nodes[n], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][i][n][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (nodes[j].isHub) {\r\n\t\t\t\t\tfor (Integer n : hList) {\r\n\t\t\t\t\t\tif (routes[i][n][j][j] == null)\r\n\t\t\t\t\t\t\troutes[i][n][j][j] = new Route(nodes[i], nodes[n], nodes[j], nodes[j],\r\n\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\tfeasibleRoutes.add(routes[i][n][j][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (int u = 0; u < hList.length; u++) {\r\n\t\t\t\t\t\tfor (int v = u; v < hList.length; v++) {\r\n\t\t\t\t\t\t\tif (routes[i][hList[u]][hList[v]][j] == null\r\n\t\t\t\t\t\t\t\t\t&& routes[i][hList[v]][hList[u]][j] == null) {\r\n\t\t\t\t\t\t\t\tRoute r1 = new Route(nodes[i], nodes[hList[u]], nodes[hList[v]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tRoute r2 = new Route(nodes[i], nodes[hList[v]],nodes[hList[u]], nodes[j],\r\n\t\t\t\t\t\t\t\t\t\tdistances, alpha);\r\n\t\t\t\t\t\t\t\tif (r1.expCost <= r2.expCost) {\r\n\t\t\t\t\t\t\t\t\troutes[r1.i.ID][r1.k.ID][r1.m.ID][r1.j.ID] = r1;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r1);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\troutes[r2.i.ID][r2.k.ID][r2.m.ID][r2.j.ID] = r2;\r\n\t\t\t\t\t\t\t\t\tfeasibleRoutes.add(r2);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (routes[i][hList[u]][hList[v]][j] != null) {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[u]][hList[v]][j]);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tfeasibleRoutes.add(routes[i][hList[v]][hList[u]][j]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn feasibleRoutes;\r\n\t}",
"@Test\r\n public void testGetRoute() {\r\n // Test 1 (Short Path)\r\n Path route = backend.getRoute(\"Observatory & Babcock\", \"Liden & Babcock\");\r\n // Verify distance is correct\r\n if(route.getDistance() != 460)\r\n fail(\"Failed to get shortest path\");\r\n // Verify path starts at 'Observatory & Babcock' and ends at 'Liden & Babcock'\r\n if(!route.getPath().get(0).getName().equalsIgnoreCase(\"Observatory & Babcock\") ||\r\n !route.getPath().get(1).getName().equalsIgnoreCase(\"Liden & Babcock\"))\r\n fail(\"Failed to get shortest path\");\r\n\r\n //Test 2 (Short Path w/ POIs)\r\n route = backend.getRoute(\"Mills & Johnson\", \"Brooks & Johnson\");\r\n // Verify distance is correct\r\n if(route.getDistance() != 441)\r\n fail(\"Failed to get shortest path\");\r\n // Verify point of interest\r\n if(!route.getPOI().get(0).equalsIgnoreCase(\"Grand Central\"))\r\n fail(\"Failed to find point of interest\");\r\n }",
"public void getDirections() {\n if (curLocation == null) {\n Toast.makeText(getApplicationContext(), \"Retrieving location - Try Again\", Toast.LENGTH_LONG).show();\n return;\n }\n String url = \"https://maps.googleapis.com/maps/api/directions/json?\" +\n \"origin=\" + curLocation.latitude + \",\" + curLocation.longitude +\n \"&destination=\" + dest.latitude + \",\" + dest.longitude +\n \"&mode=walking\" +\n \"&key=\" + getString(R.string.google_maps_key);\n StringRequest request = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {\n //callback for string request\n @Override\n public void onResponse(String response) {\n try {\n JSONObject data = new JSONObject(response);\n String encodedPolyline = data.getJSONArray(\"routes\").getJSONObject(0).\n getJSONObject(\"overview_polyline\").getString(\"points\");\n List<LatLng> points = PolyUtil.decode(encodedPolyline);\n if (curPoly != null) {\n curPoly.remove();\n }\n curPoly = mMap.addPolyline(new PolylineOptions().addAll(points));\n curPoly.setColor(getColor(R.color.colorAccent));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), \"Error retrieving directions\", Toast.LENGTH_LONG).show();\n }\n });\n requestQueue.add(request);\n }",
"public List<String> getShortestRoute(String start, String end) {\n\t\tif (!vertices.contains(start)) return null;\n\t\tMap<String, Vertex> verticesWithDistance = new HashMap<String, Vertex>();\n\t\tVertex starting = new Vertex(start, 0);\n\t\tverticesWithDistance.put(start, starting);\n\t\tstarting.route.add(starting.name);\n\t\tfor (String v : vertices) {\n\t\t\tif (!v.equals(start))\n\t\t\t\tverticesWithDistance.put(v, new Vertex(v, -1));\n\t\t}\n\t\treturn searchByDijkstra(starting, end , verticesWithDistance);\n\t}",
"private int findAllRoutesBetweenTowns(Town origin, \n\t\t\tTown destination, int weight, \n\t\t\tint maxDistance) {\n\t\tint routes = 0;\n\t\tif (this.routingTable.containsKey(origin) && \n\t\t\t\tthis.routingTable.containsKey(\n\t\t\t\t\t\tdestination)) {\n\n\t\t\tEdge edge = this.routingTable.get(origin);\n\t\t\twhile (edge != null) {\n\t\t\t\tweight += edge.weight;\n\t\t\t\tif (weight <= maxDistance) {\n\t\t\t\t\tif (edge.destination.equals(\n\t\t\t\t\t\t\tdestination)) {\n\t\t\t\t\t\troutes++;\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tedge = edge.next;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tweight -= edge.weight;\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tweight -= edge.weight;\n\n\t\t\t\tedge = edge.next;\n\t\t\t}\n\t\t} else {\n\t\t\tnoRouteException();\n\n\t\t}\n\t\treturn routes;\n\n\t}",
"@Override\n\t@Transactional\n\tpublic List<Route> getRoutes() {\n\t\treturn routeDAO.getRoutes();\n\t}",
"public static List<String> journeyPlanner(Graph g, String start, String end, int maxStops, boolean exact) {\n\t\tAlgorithmGraph ag = new AlgorithmGraph(g);\n\t\treturn ag.getAllRoutes(start, end, maxStops, exact);\n\t}",
"public static ArrayList<Position> mapRoute(ArrayList<Port> ports, Robot robot) {\n\t\t// temporary ArrayList\n\t\tArrayList<Position> route = new ArrayList<Position>();\n\t\t// Create copy of port array\n\t\tArrayList<Port> portsTemp = new ArrayList<Port>();\n\t\tportsTemp.addAll(ports);\n\t\t// Add start position to the \"route list\"\n\t\troute.add(robot.getMiddle());\n\t\t// variables to store distance measurements \n\t \tint d0, d1; \n\t\t// index on the array of the closest point\n\t\tint index = 0; \n\n\t\tfor (int i = 0; i < ports.size(); i++) {\n\t\t\t// distance between latest added position, and first in position in the portTemp array - base case\n\t\t\td0 = route.get(route.size()-1).calculateDistance(portsTemp.get(0).getIn());\n\t\t\t// index of the first element\n\t\t\tindex = 0;\n\n\t\t\t// find the index of the closest in position\n\t\t\tfor(int j = 1; j < portsTemp.size(); j++) {\n\t\t\t\t// distance between the latest added position in the route list and next in position in the portsTemp array\n\t\t\t\td1 = route.get(route.size()-1).calculateDistance(portsTemp.get(j).getIn());\n\n\t\t\t\tif (d1 < d0) {\n\t\t\t\t\td0 = d1;\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// add the in position and out position to the \"route list\"\n\t\t\troute.add(portsTemp.get(index).getIn());\n\t\t\troute.add(portsTemp.get(index).getOut());\n\t\t\t// remove the port (in and out) from the list - it should only appear in the \"route list\" once\n\t\t\tportsTemp.remove(index);\n\t\t}\n\t\tif (robot.getBack().calculateDistance(route.get(1)) < robot.getFront().calculateDistance(route.get(1))) {\n\t\t\troute.remove(1);\n\t\t\troute.remove(2);\n\t\t}\n\t\tif (robot.getFront().calculateDistance(route.get(1)) < 25) {\n\t\t\troute.remove(1);\n\t\t} \n\t\t\n\t\treturn route;\n\t}",
"public interface RemoteRouteRepository {\n Observable<List<LatLng>> getRoute(LatLng currentLocation, LatLng toiletLocation);\n}",
"Route getRouteById(Long id_route) throws RouteNotFoundException;",
"@Override\r\n\tpublic Graph getGrph() {\n\t\tList<Routes> routeList = storeRouteRepos();\r\n\t\tGraph.Edge[] GRAPH = new Graph.Edge[routeList.size()];\r\n\t\tRoutes route = new Routes();\r\n\r\n\t\tfor (int i = 0; i <= routeList.size() - 1; i++) {\r\n\t\t\troute = routeList.get(i);\r\n\t\t\tif ((route.getPlanetOrigin() != null) && (route.getPlanetDestination() != null)) {\r\n\t\t\t\tGRAPH[i] = new Graph.Edge(route.getPlanetOrigin(), route.getPlanetDestination(), route.getDistance());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tGraph g = new Graph(GRAPH);\r\n\t\t// g.dijkstra(START);\r\n\t\treturn g;\r\n\r\n\t}",
"public Route getRoute() throws SQLException {\n\t\tsortedOrders = sortReadyOrders();\n\t\tList<Vertex> verts = bgCtr.getVertList();\n\t\tList<Vertex> vertsForRoute = new LinkedList<>();\n\t\tList<Vertex> routeList = new LinkedList<>();\n\n\t\tVertex hansGrillBar = bgCtr.getVertList().get(0);\n\n\t\tvertsForRoute.add(hansGrillBar);\n\n\t\tfor (int i = 0; i < sortedOrders.size(); i++) {\n\t\t\tString address = sortedOrders.get(i).getPers().getAddress();\n\t\t\tfor (int j = 0; j < verts.size(); j++) {\n\t\t\t\tif (verts.get(j).getName().equalsIgnoreCase(address)) {\n\t\t\t\t\tvertsForRoute.add(verts.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < vertsForRoute.size(); i++) {\n\t\t\tint count = i + 1;\n\t\t\tList<Vertex> tempRouteList = new LinkedList<>();\n\t\t\tif (!(count >= vertsForRoute.size())) {\n\t\t\t\tVertex source = vertsForRoute.get(i);\n\t\t\t\tVertex target = vertsForRoute.get(count);\n\t\t\t\ttempRouteList = generateTempRouteList(source, target);\n\t\t\t\tif (!source.equals(target)) {\n\t\t\t\t\tfor (int j = 0; j < tempRouteList.size(); j++) {\n\t\t\t\t\t\tif (!source.equals(tempRouteList.get(j))) {\n\t\t\t\t\t\t\tif (routeList.isEmpty()) {\n\t\t\t\t\t\t\t\trouteList.add(tempRouteList.get(j));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trouteList.add(tempRouteList.get(j));\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}\n\t\t\t}\n\t\t}\n\n\t\tRoute route = new Route(routeList);\n\t\tcreateRoute(route);\n\t\treturn route;\n\t}",
"public interface Route {\n boolean match(AreaPath path);\n\n Map<String, Object> getParameterValues();\n\n /**\n * target action path\n */\n ActionPath getActionPath();\n\n /**\n * target action processor\n */\n String getProcessor();\n\n /**\n * target action task\n */\n String getTask();\n}",
"public ArrayList<ArrayList<ModuleElement>> getAllShortestRoutes(Biochip grid, ModuleElement dest){\n\t\tArrayList<ArrayList<ModuleElement>> route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\tArrayList<ModuleElement> crt_route = new ArrayList<ModuleElement>();\n\t\tdouble crt_value = grid.getCell(dest.x, dest.y).value; \n\t\tcrt_route.add(dest);\n\t\troute_list.add(crt_route);\n\t\t//this.printGrid(grid);\n\t\t//System.out.println(grid.getCell(dest.x, dest.y).value); \n\t\t//System.out.println(\"Get sh_route for dest = \" + dest.x + dest.y + \"crt_value=\" + crt_value); \n\n\t\twhile(crt_value>0){\n\t\t\tArrayList<ArrayList<ModuleElement>> new_route_list = new ArrayList<ArrayList<ModuleElement>>(); \n\t\t\tcrt_value --; \n\t\t\tfor (int k=0; k<route_list.size();k++){\n\t\t\t\t//System.out.println(\"k=\" + k); \n\t\t\t\tcrt_route = route_list.get(k); \n\t\t\t\tint i = crt_route.get(crt_route.size()-1).x;\n\t\t\t\tint j = crt_route.get(crt_route.size()-1).y;\n\t\t\t\t// neighbors\n\t\t\t\tif (j+1<grid.width){\n\t\t\t\t\tCell right_n = grid.getCell(i, j+1);\n\t\t\t\t\tArrayList<ModuleElement> r_route = this.createNewRoute(grid, crt_route, right_n, crt_value); \n\t\t\t\t\tif (r_route!=null) new_route_list.add(r_route); \t\n\t\t\t\t}\n\t\t\t\tif (j-1>=0) {\n\t\t\t\t\tCell left_n = grid.getCell(i, j-1);\n\t\t\t\t\tArrayList<ModuleElement> l_route = this.createNewRoute(grid, crt_route, left_n, crt_value); \n\t\t\t\t\tif (l_route!=null) new_route_list.add(l_route); \n\t\t\t\t} \n\t\t\t\tif (i-1>=0) {\n\t\t\t\t\tCell up_n = grid.getCell(i-1, j);\n\t\t\t\t\tArrayList<ModuleElement> u_route = this.createNewRoute(grid, crt_route, up_n, crt_value); \n\t\t\t\t\tif (u_route!=null) new_route_list.add(u_route); \n\t\t\t\t} \n\t\t\t\tif (i+1<grid.height) {\n\t\t\t\t\tCell down_n = grid.getCell(i+1, j);\n\t\t\t\t\tArrayList<ModuleElement> d_route = this.createNewRoute(grid, crt_route, down_n, crt_value); \n\t\t\t\t\tif (d_route!=null) new_route_list.add(d_route); \t\n\t\t\t\t} \n\t\t\t\t//System.out.println(\"new_route_list = \" + new_route_list); \n\t\t\t}\n\t\t\troute_list = new_route_list; \n\t\t}\n\t\t\n\t\treturn route_list; \n\t}",
"@Test\n void calculateRoute() {\n GPSObject n2 = new GPSObject(\"Centenary 2\");\n Location n1 = new Location(\"Centenary 2\",\"0\",n2);\n GPSObject n3 = new GPSObject(\"Thuto 1-5\");\n Location n4 = new Location(\"Thuto 1-5\",\"1\",n3);\n Locations loc = new Locations();\n assertNotNull(roo.calculateRoute(loc));\n }",
"public com.google.common.util.concurrent.ListenableFuture<\n com.google.maps.routing.v2.ComputeRoutesResponse>\n computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getComputeRoutesMethod(), getCallOptions()), request);\n }",
"public Route parseRoutes(JSONObject jObject) {\n //Route route = new Route();\n List<Route> routeList = new ArrayList<>();\n //List<String> polylines = new ArrayList<>();\n List<List<HashMap<String, String>>> routes = new ArrayList<>();\n JSONArray jRoutes;\n JSONArray jLegs;\n JSONArray jSteps;\n\n try {\n\n jRoutes = jObject.getJSONArray(\"routes\");\n /** Traversing all routes */\n for (int i = 0; i < jRoutes.length(); i++) {\n Route route = new Route();\n routeList.add(route);\n\n JSONObject boundsObj = ((JSONObject) jRoutes.get(i)).getJSONObject(\"bounds\");\n JSONObject norteastObj = boundsObj.getJSONObject(\"northeast\");\n JSONObject southwestObj = boundsObj.getJSONObject(\"southwest\");\n LatLng norteast = new LatLng(norteastObj.getDouble(\"lat\"), norteastObj.getDouble(\"lng\"));\n LatLng southwest = new LatLng(southwestObj.getDouble(\"lat\"), southwestObj.getDouble(\"lng\"));\n List<LatLng> bounds = new ArrayList<>();\n bounds.add(norteast);\n bounds.add(southwest);\n route.setBounds(bounds);\n\n jLegs = ((JSONObject) jRoutes.get(i)).getJSONArray(\"legs\");\n\n List path = new ArrayList<>();\n List<Leg> legs = new ArrayList<>();\n route.setLegs(legs);\n\n /** Traversing all legs */\n for (int j = 0; j < jLegs.length(); j++) {\n JSONObject jLeg = (JSONObject) jLegs.get(j);\n JSONObject distanceObj = jLeg.getJSONObject(\"distance\");\n JSONObject durationObj = jLeg.getJSONObject(\"distance\");\n JSONObject startLocObj = jLeg.getJSONObject(\"start_location\");\n JSONObject endLocObj = jLeg.getJSONObject(\"end_location\");\n\n TextValue distance = new TextValue(distanceObj.getString(\"text\"), distanceObj.getString(\"value\"));\n TextValue duration = new TextValue(durationObj.getString(\"text\"), durationObj.getString(\"value\"));\n LatLng startLocation = new LatLng(startLocObj.getDouble(\"lat\"), startLocObj.getDouble(\"lng\"));\n LatLng endLocation = new LatLng(endLocObj.getDouble(\"lat\"), endLocObj.getDouble(\"lng\"));\n\n route.setDistance(distance);\n route.setDuration(duration);\n Leg leg = new Leg();\n legs.add(leg);\n leg.setDistance(distance);\n leg.setDuration(duration);\n leg.setStart_location(startLocation);\n leg.setEnd_location(endLocation);\n\n jSteps = jLeg.getJSONArray(\"steps\");\n List<Step> steps = new ArrayList<>();\n leg.setSteps(steps);\n\n /** Traversing all steps */\n for (int k = 0; k < jSteps.length(); k++) {\n Step step = new Step();\n steps.add(step);\n\n JSONObject jStep = (JSONObject) jSteps.get(k);\n JSONObject distanceObjS = jStep.getJSONObject(\"distance\");\n JSONObject durationObjS = jStep.getJSONObject(\"distance\");\n JSONObject startLocObjS = jStep.getJSONObject(\"start_location\");\n JSONObject endLocObjS = jStep.getJSONObject(\"end_location\");\n\n TextValue distanceS = new TextValue(distanceObjS.getString(\"text\"), distanceObjS.getString(\"value\"));\n TextValue durationS = new TextValue(durationObjS.getString(\"text\"), durationObjS.getString(\"value\"));\n LatLng startLocationS = new LatLng(startLocObjS.getDouble(\"lat\"), startLocObjS.getDouble(\"lng\"));\n LatLng endLocationS = new LatLng(endLocObjS.getDouble(\"lat\"), endLocObjS.getDouble(\"lng\"));\n\n step.setDistance(distanceS);\n step.setDuration(durationS);\n step.setStart_location(startLocationS);\n step.setEnd_location(endLocationS);\n\n String polyline = \"\";\n polyline = (String) ((JSONObject) ((JSONObject) jSteps.get(k)).get(\"polyline\")).get(\"points\");\n step.setPolyline(polyline);\n path.addAll(step.getPath());\n /*List<LatLng> list = decodePoly(polyline);\n\n /** Traversing all points /\n for(int l=0;l<list.size();l++){\n HashMap<String, String> hm = new HashMap<>();\n hm.put(\"lat\", Double.toString((list.get(l)).latitude) );\n hm.put(\"lng\", Double.toString((list.get(l)).longitude) );\n path.add(hm);\n }*/\n }\n routes.add(path);\n }\n route.setRoutes(routes);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return getBestRoute(routeList);\n }",
"public com.google.maps.routing.v2.ComputeRoutesResponse computeRoutes(\n com.google.maps.routing.v2.ComputeRoutesRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getComputeRoutesMethod(), getCallOptions(), request);\n }",
"public List<Tile> getRoute() {\n List<Tile> currentRoute = new ArrayList<Tile>();\n for (int i = 0; i < route.size(); i++) {\n currentRoute.add(route.get(i));\n }\n return currentRoute;\n }",
"@Test\r\n void findRouteDifferentLine() {\r\n List<Station> route = model.findRoute(9, 60);\r\n assertNotNull(route);\r\n assertEquals(10, route.size());\r\n assertEquals(\"SuffolkDowns\", route.get(0).getName());\r\n assertEquals(\"Broadway\", route.get(9).getName());\r\n }",
"private void generateRoute(String json) {\n try {\n JSONObject jsonObject = new JSONObject(json);\n JSONArray routes = jsonObject.optJSONArray(\"routes\");\n if (null == routes || routes.length() == 0) {\n return;\n }\n JSONObject route = routes.getJSONObject(0);\n // get route bounds\n JSONObject bounds = route.optJSONObject(\"bounds\");\n if (null != bounds && bounds.has(\"southwest\") && bounds.has(\"northeast\")) {\n JSONObject southwest = bounds.optJSONObject(\"southwest\");\n JSONObject northeast = bounds.optJSONObject(\"northeast\");\n assert southwest != null;\n LatLng sw = new LatLng(southwest.optDouble(\"lat\"), southwest.optDouble(\"lng\"));\n assert northeast != null;\n LatLng ne = new LatLng(northeast.optDouble(\"lat\"), northeast.optDouble(\"lng\"));\n mLatLngBounds = new LatLngBounds(sw, ne);\n }\n // get paths\n JSONArray paths = route.optJSONArray(\"paths\");\n assert paths != null;\n for (int i = 0; i < paths.length(); i++) {\n JSONObject path = paths.optJSONObject(i);\n List<LatLng> mPath = new ArrayList<>();\n JSONArray steps = path.optJSONArray(\"steps\");\n distanceText = path.getString(\"distanceText\");\n durationText = path.getString(\"durationText\");\n assert steps != null;\n for (int j = 0; j < steps.length(); j++) {\n JSONObject step = steps.optJSONObject(j);\n JSONArray polyline = step.optJSONArray(\"polyline\");\n assert polyline != null;\n for (int k = 0; k < polyline.length(); k++) {\n if (j > 0 && k == 0) {\n continue;\n }\n JSONObject line = polyline.getJSONObject(k);\n double lat = line.optDouble(\"lat\");\n double lng = line.optDouble(\"lng\");\n LatLng latLng = new LatLng(lat, lng);\n mPath.add(latLng);\n }\n }\n mPaths.add(i, mPath);\n }\n mHandler.sendEmptyMessage(ROUTE_PLANNING_SUCCESS);\n } catch (JSONException e) {\n }\n }",
"io.envoyproxy.envoy.type.metadata.v3.MetadataKind.RouteOrBuilder getRouteOrBuilder();",
"List<RouteStore> getAllRouteStore();",
"private void drawRoutes () {\n // Lay ngay cua tour\n Date tourDate = OnlineManager.getInstance().mTourList.get(tourOrder).getmDate();\n // Kiem tra xem ngay dien ra tour la truoc hay sau hom nay. 0: hom nay, 1: sau, -1: truoc\n int dateEqual = Tour.afterToday(tourDate);\n // Kiem tra xem tour da dien ra chua\n if (dateEqual == -1) {\n // Tour da dien ra, khong ve gi ca\n } else if (dateEqual == 1) {\n // Tour chua dien ra, khong ve gi ca\n } else {\n // Tour dang dien ra thi kiem tra gio\n /* Chang sap toi mau do, today nam trong khoang src start va src end\n Chang dang di chuyen mau xanh, today nam trong khoang src end va dst start\n Chang vua di qua mau xam, today nam trong khoang dst start va dst end */\n ArrayList<TourTimesheet> timesheets = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet();\n // Danh dau chang dang di qua\n int changDangDiQuaOrder = -1;\n // Danh dau chang sap di qua\n int changSapDiQuaOrder = -1;\n if(Tour.afterCurrentHour(timesheets.get(0).getmStartTime()) == 1){\n // Chang sap di qua mau do\n // Neu chua ve chang sap di, ve duong mau do\n if (timesheets.size() >= 2) {\n drawRoute(Color.RED, timesheets.get(0).getmBuildingLocation(), timesheets.get(1).getmBuildingLocation());\n }\n } else {\n for (int i = 0; i < timesheets.size() - 1; i++) {\n // Kiem tra xem chang hien tai la truoc hay sau gio nay. 0: gio nay, 1: gio sau, -1: gio truoc\n int srcStartEqual = Tour.afterCurrentHour(timesheets.get(i).getmStartTime());\n int srcEndEqual = Tour.afterCurrentHour(timesheets.get(i).getmEndTime());\n int dstStartEqual = Tour.afterCurrentHour(timesheets.get(i + 1).getmStartTime());\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(i).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(i + 1).getmBuildingLocation();\n if (srcStartEqual == -1 && srcEndEqual == 1) {\n // Chang dang di qua mau xanh\n // Neu chua ve chang dang di, ve duong mau xanh\n drawRoute(Color.BLUE, srcLocation, dstLocation);\n // Danh dau chang dang di qua\n changDangDiQuaOrder = i;\n // Thoat khoi vong lap\n break;\n } else if (srcEndEqual == -1 && dstStartEqual == 1) {\n // Chang sap toi mau do\n // Neu chua ve chang sap toi, ve duong mau do\n drawRoute(Color.RED, srcLocation, dstLocation);\n // Danh dau chang sap di qua\n changSapDiQuaOrder = i;\n // Thoat khoi vong lap\n break;\n }\n }\n }\n // Kiem tra xem da ve duoc nhung duong nao roi\n if (changDangDiQuaOrder != - 1) {\n // Neu ve duoc chang dang di qua roi thi ve tiep 2 chang con lai\n if (changDangDiQuaOrder < timesheets.size() - 2) {\n // Neu khong phai chang ket thuc thi ve tiep chang sap di qua\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(changDangDiQuaOrder + 1).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(changDangDiQuaOrder + 2).getmBuildingLocation();\n drawRoute(Color.RED, srcLocation, dstLocation);\n }\n if (changDangDiQuaOrder > 0) {\n // Neu khong phai chang bat dau thi ve tiep chang da di qua\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(changDangDiQuaOrder - 1).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(changDangDiQuaOrder).getmBuildingLocation();\n drawRoute(Color.GRAY, srcLocation, dstLocation);\n }\n }\n if (changSapDiQuaOrder != - 1) {\n // Neu ve duoc chang sap di qua roi thi ve tiep 2 chang con lai\n if (changSapDiQuaOrder > 0) {\n // Neu khong phai chang bat dau thi ve tiep chang dang di qua\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(changSapDiQuaOrder - 1).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(changSapDiQuaOrder).getmBuildingLocation();\n drawRoute(Color.BLUE, srcLocation, dstLocation);\n }\n if (changSapDiQuaOrder > 1) {\n // Neu khong phai chang bat dau thi ve tiep chang da di qua\n // 2 vi tri chang\n LatLng srcLocation = timesheets.get(changSapDiQuaOrder - 2).getmBuildingLocation();\n LatLng dstLocation = timesheets.get(changSapDiQuaOrder - 1).getmBuildingLocation();\n drawRoute(Color.GRAY, srcLocation, dstLocation);\n }\n }\n }\n }",
"public lnrpc.Rpc.QueryRoutesResponse queryRoutes(lnrpc.Rpc.QueryRoutesRequest request) {\n return blockingUnaryCall(\n getChannel(), getQueryRoutesMethod(), getCallOptions(), request);\n }",
"Map<UUID, Optional<Location>> getAllCurrentLocations();",
"private void search(final Map<String, Integer> routes, Vertex current, Vertex finishVertex, int maxDistance, String currentRoute, int currentDistance) {\r\n if(current == finishVertex) {\r\n routes.put(currentRoute, currentDistance);\r\n }\r\n for(Edge e : current.getIncidentEdges()) {\r\n if(e.getDistance() + currentDistance <= maxDistance)\r\n search(routes, e.getOppositeVertex(current), finishVertex, maxDistance, currentRoute + e.getOppositeVertex(current).getName(), e.getDistance() + currentDistance);\r\n }\r\n }",
"public static ArrayList<XYLocation> findPath2(String CHAR1, String CHAR2,CampusRouteFindingModel campusModel) {\n\t\t ArrayList<XYLocation> retrn = new ArrayList<XYLocation>();\n\t\t graph<String, Float> g = campusModel.getGraph();\n\t\t Map<String, String> idFirst = campusModel.getName();\n\t\t Map<String,String> nameFirst = campusModel.getID();\n\t\t Map<String, XYLocation> locations = campusModel.getLocations();\n\t\t if(!(nameFirst.containsKey(CHAR1))&&(!(idFirst.containsKey(CHAR1)))) { \n\t\t\t if(!(nameFirst.containsKey(CHAR2))&&(!(idFirst.containsKey(CHAR2)))) {\n\t\t\t\t if (CHAR1.equals(CHAR2)) {\n\t\t\t\t\t retrn.add(locations.get(CHAR1));\n\t\t\t\t\t return retrn;\n\t\t\t\t }\n\t\t\t\t retrn.add(locations.get(CHAR1));\n\t\t\t\t retrn.add(locations.get(CHAR2));\n\t\t\t\t return retrn;\n\t\t\t }\n\t\t\t retrn.add(locations.get(CHAR1));\n\t\t\t return retrn;\n\t\t\t}\n\t\t\tif(!(nameFirst.containsKey(CHAR2))&&(!(idFirst.containsKey(CHAR2)))) {\n\t\t\t\tretrn.add(locations.get(CHAR2));\n\t\t\t\treturn retrn;\n\t\t\t}\n\t\tif (nameFirst.containsKey(CHAR1)) {\n\t\t\tCHAR1 = nameFirst.get(CHAR1);\n\t\t}\n\t\tif (nameFirst.containsKey(CHAR2)) {\n\t\t\tCHAR2 = nameFirst.get(CHAR2);\n\t\t}\n\t\tretrn.add(locations.get(CHAR1));\n\t\tif (!(CHAR1.equals(CHAR2))) {\n\t\t\tArrayList<edges<String, Double>> tmp = Dijkstra(CHAR1,CHAR2,g);\n\t\t\tif (tmp==null) {\n\t\t\t\tretrn.add(locations.get(CHAR1));\n\t\t\t\tretrn.add(locations.get(CHAR1));\n\t\t\t\treturn retrn;\n\t\t\t}\n\t\t\tIterator<edges<String, Double>> print = tmp.iterator();\n\t\t\tprint.next();\n\t\t\twhile (print.hasNext()) {\n\t\t\t\tedges<String, Double> temp = print.next();\n\t\t\t\tretrn.add(locations.get(temp.getDest()));\n\t\t\t}\n\t\t}\n\t\treturn retrn;\n\t}",
"@ApiOperation(value = \"Route Get mapping to fetch all routes\", response = List.class)\n\t@GetMapping(\"/all\")\n\tpublic ResponseEntity<List<RouteDto>> viewAllRoutes() {\n\t \n\t List<Route> routeList = this.routeServices.viewRouteList();\n\t\tList<RouteDto> routeDtoList = new ArrayList<>();\n\t\tfor (Route r : routeList) {\n\t\t\tRouteDto routedto = modelMapper.map(r, RouteDto.class);\n\t\t\trouteDtoList.add(routedto);\n\t\t}\n\t\tif (!(routeDtoList.isEmpty())) {\n\t\t\treturn new ResponseEntity<>(routeDtoList, HttpStatus.OK);\n\t\t} else {\n\t\t\treturn new ResponseEntity<>(routeDtoList, HttpStatus.NOT_FOUND);\n\t\t}\n\t}",
"public abstract HashSet<Location> getPossibleMovements(GameBoard board);",
"protected abstract Collection<Direction> getDirections(Position position, Player player) ;",
"private List<StopEdge> getPossibleDestinations(Stop stop, long timeAtStop, Route route, String tripId, LocalDate departureDate, long departureTime, List<StopTime> stopTimesOfTrip, Set<Stop> found, Map<String, Long> bestArrivalTime) {\n List<StopEdge> edges = new TiraArrayList<>();\n\n long departureTimeMillis = calculateTime(departureDate, departureTime);\n //If the public transport service departs from the stop before current time, that service cannot be used for the route -> return empty list\n if (departureTimeMillis < timeAtStop) {\n return Collections.emptyList();\n }\n\n for (StopTime stopTime : stopTimesOfTrip) {\n Stop destinationStop = stops.get(stopTime.getStopId());\n if (destinationStop == null) {\n //This should happen only if the GTFS feed is malformed\n return Collections.emptyList();\n }\n\n //Don't add new edge if a better route to the destination was already found\n long arrivalTimeMillis = calculateTime(departureDate, stopTime.getArrivalTime());\n if (arrivalTimeMillis > bestArrivalTime.getOrDefault(destinationStop.getId(), Long.MAX_VALUE)) {\n continue;\n }\n\n if (arrivalTimeMillis > departureTimeMillis) {\n //If the trip would pass through any of already found stops, return empty list as it would be slower to reach the final destination using this route than the route that was used for reaching the previously found route\n if (found.contains(destinationStop)) {\n return Collections.emptyList();\n }\n\n bestArrivalTime.put(destinationStop.getId(), arrivalTimeMillis);\n edges.add(new StopEdge(route.getName(), tripId, route.getMode(), stop, destinationStop, arrivalTimeMillis, departureTimeMillis));\n }\n }\n\n return edges;\n }",
"public interface loadBalanceRoutingService {\n Set<Path> getLoadPaths(Topology topo, ElementId src, ElementId dst);\n Set<Path> getLoadPaths(ElementId src, ElementId dst);\n}",
"public ArrayList<Node> getBusNodes(ArrayList<Node> initialList, LatLng startLocation, LatLng EndLocation){\n ArrayList<String> matchingBusRoutes = nodeMinimisation.findMatchingBusRoutes(initialList);\n for(String route:matchingBusRoutes){\n System.out.println(\"Route is: \"+route);\n }\n // get further bus routes if needed\n //nodeMinimisation.furtherBusRouteMatches(initialList);\n // gets stop list from route\n ArrayList<Node> busStopList = nodeMinimisation.getStopList(initialList,startLocation,EndLocation);\n\n //ArrayList<Node> reducedStopList = nodeMinimisation.ReduceNodes(busStopList,startLocation, EndLocation);\n\n // returns the minimised list\n\n return busStopList;\n }",
"@Override\n protected Route doInBackground(String... params) {\n String address = params[0];\n HttpsURLConnection connection = null;\n BufferedReader reader = null;\n URL url;\n StringBuilder builder = new StringBuilder();\n try {\n url = new URL(address);\n connection = (HttpsURLConnection) url.openConnection();\n if (connection.getResponseCode() != HttpsURLConnection.HTTP_OK) {\n return null;\n } else {\n reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n String line;\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n try {\n JSONObject root = new JSONObject(builder.toString());\n if(root.getString(\"status\").equals(\"OK\")){\n JSONArray results = root.getJSONArray(\"routes\");\n JSONObject result = results.getJSONObject(0);\n JSONObject polyObject = result.getJSONObject(\"overview_polyline\");\n String encPolyline = polyObject.getString(\"points\");\n\n JSONArray legs = result.getJSONArray(\"legs\");\n JSONObject legsObj = legs.getJSONObject(0);\n JSONObject distanceObj = legsObj.getJSONObject(\"distance\");\n String distance = distanceObj.getString(\"text\");\n JSONObject durationObj = legsObj.getJSONObject(\"duration\");\n String duration = durationObj.getString(\"text\");\n JSONObject boundsObj = result.getJSONObject(\"bounds\");\n\n JSONObject northEastObj = boundsObj.getJSONObject(\"northeast\");\n double northEastLat = northEastObj.getDouble(\"lat\");\n double northEastLng = northEastObj.getDouble(\"lng\");\n\n JSONObject southWestObj = boundsObj.getJSONObject(\"southwest\");\n double southWestLat = southWestObj.getDouble(\"lat\");\n double southWestLng = southWestObj.getDouble(\"lng\");\n\n LatLngBounds bounds = new LatLngBounds(new LatLng(southWestLat,southWestLng),new LatLng(northEastLat,northEastLng));\n\n return new Route(distance,duration,encPolyline,bounds);\n }\n } catch (JSONException e) {\n Log.e(\"Json Handler\",e.getMessage());\n }\n }\n } catch (MalformedURLException e) {\n Log.e(\"GetRouteTask\", e.getMessage());\n return null;\n } catch (IOException e) {\n Log.e(\"GetRouteTask\", e.getMessage());\n return null;\n } finally {\n if (connection != null) {\n connection.disconnect();\n }\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n Log.e(\"GetRouteTask\", e.getMessage());\n }\n }\n }\n return null;\n }",
"List<CityDTORest> getRoutePointsForOrder(Long id);",
"private void calculateDirections(){\n \t\n \tAddress start = parseAddress(jTextFieldStart);\n \tAddress end = parseAddress(jTextFieldEnd);\n \tif(DEBUG_SETDB){ start = DEBUG_START; end = DEBUG_END; }\n \t\n \t\n \tif(textFieldDefaults.get(jTextFieldStart).equals(jTextFieldStart.getText()) ||\n \t\t\ttextFieldDefaults.get(jTextFieldEnd).equals(jTextFieldEnd.getText())){\n \t\toutputResults(addressError(null, -5));\n \t\t\n \t}else if(start == null || end == null){\n \t\toutputResults(addressError(null, -4));\n \t\t\n \t}else{\n\t\t\ttry{\n\t\t\t\tif(!checkAddrInputFields()){\n\t\t\t\t\tRouteFormatter format = getTravelFormat();\n\t\t EnvironmentVariables.OPTIMIZE_FOR_PERFORMANCE_ON = jCheckBoxQuickSearch.isSelected();\n\t\t\t\t\t\n\t\t\t\t\tcurrDirections = virtualGPS.getDirections(start, end, format);\n\t\t\t\t\t// prepare the map view\n\t\t\t\t\tif(!jFrameMap.isShowing()){\n\t\t\t\t jFrameMap.setVisible(true);\n\t\t\t\t jFrameMap.setBounds(this.getX()+this.getWidth(), this.getY(), \n\t\t\t\t \t\tjFrameMap.getPreferredSize().width,\n\t\t\t\t \t\tjFrameMap.getPreferredSize().height);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\toutputResults(formatDirections(format));\n\t\t\t\t\t\n\t\t\t\t\tsetAddrInputFields();\n\t\t\t\t\tcheckAddrInputFields();\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tmapPanel.requestFocus();\n\t\t\t\t}\n\t\t\t\t\n\t\t generateMap();\n\t\t \n\t\t \n\t\t\t}catch(InvalidAddressException ex){\n\t\t\t\t\n\t\t \tint error = virtualGPS.checkAddress(start);\n\t\t \tif(error != DirectionsFinder.ADDRESS_VALID){ // if start address is bad\n\t\t \t\toutputResults(addressError(start, error));\n\t\t \t\n\t\t \t}else{\n\t\t\t \terror = virtualGPS.checkAddress(end);\n\t\t \t\toutputResults(addressError(end, error));\n\t\t \t}\n\t\t \t\n\t\t\t}catch(NoPathException ex){\n\t\t\t\t\n\t\t\t\toutputResults(\"No path found:\\nFrom \"+start+\"\\nTo \"+end+\"\\n\");\n\t\t\t}\n \t}\n \n }",
"public static List<MoveType> bestDirections(Point start, Point end) {\n List<MoveType> bestDirections = new ArrayList<>();\n int x = end.x - start.x;\n int y = end.y - start.y;\n if (Math.abs(y) > Math.abs(x)){\n if (y > 0) {\n bestDirections.add(MoveType.DOWN);\n } else if (y < 0){\n bestDirections.add(MoveType.UP);\n }\n if (x > 0) {\n bestDirections.add(MoveType.RIGHT);\n } else if (x < 0){\n bestDirections.add(MoveType.LEFT);\n }\n } else if(Math.abs(y) < Math.abs(x)) {\n if (x > 0) {\n bestDirections.add(MoveType.RIGHT);\n } else if (x < 0){\n bestDirections.add(MoveType.LEFT);\n }\n if (y > 0) {\n bestDirections.add(MoveType.DOWN);\n } else if (y < 0){\n bestDirections.add(MoveType.UP);\n }\n }\n return bestDirections;\n }",
"public static List<Object> getMidLocationBetweenTwoLocation(final String sourceAddress, final String destinationAddress, final String API_KEY) {\n\n\n final List<String> list = new ArrayList<>();\n final List<Object> midPointList = new ArrayList<>();\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n\n URL url = new URL(\"https://maps.googleapis.com/maps/api/directions/json?\" + \"origin=\" + sourceAddress + \"&destination=\" + destinationAddress + \"&key=\" + API_KEY);\n HttpHandler handler = new HttpHandler();\n String jsonStr = handler.makeServiceCall(String.valueOf(url));\n\n if (jsonStr != null) {\n\n JSONObject jsonObject = new JSONObject(jsonStr);\n JSONArray jsonArray = jsonObject.getJSONArray(\"routes\");\n\n System.out.println(\"response:\" + jsonArray);\n\n if (jsonArray != null && jsonArray.length() > 0) {\n JSONArray legsObject = jsonArray.getJSONObject(2).getJSONArray(\"legs\");\n if (legsObject != null) {\n JSONArray stepsArray = legsObject.getJSONObject(6).getJSONArray(\"steps\");\n if (stepsArray != null && stepsArray.length() > 0) {\n for (int i = 0; i < stepsArray.length(); i++) {\n JSONObject object = stepsArray.getJSONObject(i);\n\n if (object.has(\"end_location\")) {\n JSONObject end_locationObject = object.getJSONObject(\"end_location\");\n double lat = end_locationObject.getDouble(\"lat\");\n double lng = end_locationObject.getDouble(\"lng\");\n\n URL lat_lng_url = new URL(\"https://maps.googleapis.com/maps/api/geocode/json?\" + \"latlng=\" + lat + \",\" + lng + \"&key=\" + API_KEY);\n\n JSONObject latlngObject = new JSONObject(String.valueOf(lat_lng_url));\n\n JSONArray latlngArray = latlngObject.getJSONArray(\"results\");\n\n if (latlngArray != null && latlngArray.length() > 0) {\n JSONObject addressObj = latlngArray.getJSONObject(1);\n String formatted_address = addressObj.getString(\"formatted_address\");\n list.add(formatted_address);\n }\n }\n }\n midPointList.addAll(list);\n }\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n thread.start();\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return midPointList;\n }",
"List<RouteBean> findAll();",
"public static List<Object> getDirectionBetweenTwoLocation(final String sourceAddress, final String destinationAddress, final String API_KEY) {\n\n final List<String> list = new ArrayList<>();\n final List<Object> directionList = new ArrayList<>();\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n\n URL url = new URL(\"https://maps.googleapis.com/maps/api/directions/json?\" + \"origin=\" + sourceAddress + \"&destination=\" + destinationAddress + \"&key=\" + API_KEY);\n HttpHandler handler = new HttpHandler();\n String jsonStr = handler.makeServiceCall(String.valueOf(url));\n\n if (jsonStr != null) {\n\n JSONObject jsonObject = new JSONObject(jsonStr);\n JSONArray jsonArray = jsonObject.getJSONArray(\"routes\");\n\n if (jsonArray != null && jsonArray.length() > 0) {\n JSONArray legsObject = jsonArray.getJSONObject(2).getJSONArray(\"legs\");\n if (legsObject != null) {\n JSONArray stepsArray = legsObject.getJSONObject(6).getJSONArray(\"steps\");\n if (stepsArray != null && stepsArray.length() > 0) {\n for (int i = 1; i < stepsArray.length(); i++) {\n JSONObject object = stepsArray.getJSONObject(i);\n System.out.println(\"response1\" + object);\n\n String maneuver = object.getString(\"maneuver\");\n list.add(maneuver);\n }\n directionList.addAll(list);\n }\n }\n }\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n thread.start();\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return directionList;\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:07.082 -0500\", hash_original_method = \"71B2FD618F41F3F10AED78DDC584C5B5\", hash_generated_method = \"D5C1464D9CBFFD7FDEF25798ABF91481\")\n \npublic static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) {\n if ((routes == null) || (dest == null)) return null;\n\n RouteInfo bestRoute = null;\n // pick a longest prefix match under same address type\n for (RouteInfo route : routes) {\n if (NetworkUtils.addressTypeMatches(route.mDestination.getAddress(), dest)) {\n if ((bestRoute != null) &&\n (bestRoute.mDestination.getNetworkPrefixLength() >=\n route.mDestination.getNetworkPrefixLength())) {\n continue;\n }\n if (route.matches(dest)) bestRoute = route;\n }\n }\n return bestRoute;\n }",
"public ArrayList getStops(String route, int direction){\r\n // Will hold all the stops returned from query\r\n ArrayList stopDataList = new ArrayList();\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n int route_id = getData.getInt(0);\r\n final String query = \"select distinct Stops.Stop_Name \" +\r\n \"from Trips join \" +\r\n \"Calendar on Trips.Service_Id=Calendar._Id join \" +\r\n \"Routes on Trips.Route_Id=Routes._Id join \" +\r\n \"Stop_Times on Trips._Id=Stop_Times.Trip_Id JOIN \" +\r\n \"Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id= \" + route_id + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND direction_id = \" + direction;\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n // the data count is 0 when a route is not in service on a particular day\r\n if(getData.getCount() == 0){\r\n stopDataList.add(\"No Stops Available Today For This Route\");\r\n return stopDataList;\r\n }else{\r\n while (getData.moveToNext()){\r\n stopDataList.add(getData.getString(0));\r\n }\r\n }\r\n\r\n getData.close();\r\n\r\n return stopDataList;\r\n }",
"Set<ConnectPoint> sourcesFor(McastRoute route);",
"@Override\n public ArrayList<GraphEdge> getRoute(GraphNode a, GraphNode b) {\n \tHashMap<GraphNode, Double> distances = new HashMap<GraphNode, Double>();\n \tHashMap<GraphNode, GraphEdge> predecessor = new HashMap<GraphNode, GraphEdge>();\n \tHashSet<GraphNode> visited = new HashSet<GraphNode>();\n \t\n \tArrayList<GraphEdge> result = new ArrayList<GraphEdge>();\n\t\n \t//Initialize distances, predecessor, and visited\n \tfor(GraphNode g : drivableNodes) {\n \t distances.put(g, Double.MAX_VALUE);\n \t predecessor.put(g, null);\n \t}\n \t\n \tint remaining = drivableNodes.size();\n \t\n \t//Put starting node\n \tdistances.put(a, 0.0);\n \t//predecessor.put(a, null);\n \t\n \t//Main loop\n \twhile(remaining > 0) {\n \t GraphNode closest = null;\n \t double minDist = Double.MAX_VALUE;\n\n \t for(GraphNode n : distances.keySet()) {\n \t\tdouble dist = distances.get(n);\n \t\tif(!visited.contains(n) &&\n \t\t\tdist != Double.MAX_VALUE &&\n \t\t\t(minDist == Double.MAX_VALUE || dist < minDist)) {\n \t\t closest = n;\n \t\t minDist = dist;\n \t\t}\n \t }\n \t \n \t if(closest == null)\n \t\treturn null;\n \t \n \t if(closest.equals(b))\n \t\tbreak;\n \t \n \t visited.add(closest);\n \t \n \t for(GraphEdge edge : closest.getEdges()) {\n \t\tGraphNode adjacent = edge.getOtherNode(closest);\n \t\tif(adjacent != null && !visited.contains(adjacent)) {\n \t\t //Map distance value for the other Node\n \t\t double otherDist = distances.get(adjacent);\n \t\t //Weight of edge from closest node to adjacent node\n \t\t double weight = edge.getWeight();\n \t\t String way = edge.getWay();\n \t\t \n \t\t if(otherDist == Double.MAX_VALUE ||\n \t\t\t weight + minDist < otherDist) {\n \t\t\tdistances.put(adjacent, weight + minDist);\n \t\t\t\n \t\t\t//Make new edge in correct order\n \t\t\tGraphEdge corrected = new GraphEdge(closest, adjacent, weight, way);\n \t\t\t\n \t\t\tpredecessor.put(adjacent, corrected);\n \t\t }\n \t\t}\n \t }\n\n \t remaining--;\n \t}\n \t\n \t//Backtrack to build route\n \tif(distances.get(b) == Double.MAX_VALUE) {\n \t return null;\n \t} else {\n \t //buildPath(predecessor, a, b, result);\n \t //Non recursive version\n \t Stack<GraphEdge> stack = new Stack<GraphEdge>(); \n \t while(!b.equals(a)) {\n \t\tGraphEdge edge = predecessor.get(b);\n \t\t\n \t\t//Make sure vertices are in correct order\n \t\tGraphNode start = edge.getOtherNode(b);\n \t\t//double weight = edge.getWeight();\n \t\t//GraphEdge corrected = new GraphEdge(start, b, weight);\n \t\t\n \t\tstack.push(edge);\n \t\tb = start;\n \t }\n \t \n \t while(!stack.isEmpty()) {\n \t\tGraphEdge edge = stack.pop();\n \t\tresult.add(edge);\n \t }\n \t}\n \t\n\treturn result;\n }",
"@Override\n\tprotected String doInBackground(String... params) {\n\t\tif (params[0] == \"getRoutes\") {\n\t\t\tString allRoutes = getRoutes();\n\t\t\treturn allRoutes;\n\t\t} else if (params[0] == \"getRouteInfo\") {\n\n\t\t} else if (params[0] == \"createRoute\") {\n\t\t\tLog.i(getClass().getSimpleName(), \"condition reached !!!!!!!!!\");\n\t\t\tcreateRoute(params[1], params[2], params[3], params[4], params[5],\n\t\t\t\t\tparams[6], params[7], params[8], params[9]);\n\n\t\t} else if (params[0] == \"updateRoute\") {\n\t\t\tLog.i(getClass().getSimpleName(), \"condition reached !!!!!!!!!\");\n\t\t\tupdateRoute(params[1], params[2], params[3], params[4], params[5],\n\t\t\t\t\tparams[6], params[7], params[8], params[9], params[10]);\n\n\t\t} else if (params[0] == \"deleteRoute\") {\n\t\t\tdeleteRoute(params[1]);\n\t\t}\n\n\t\treturn null;\n\t}",
"public interface RouteConfigurator {\n\n PSConnector setLocalIpAddress(String cidr);\n\n PSConnector setStaticRoute(String destCidr, String nextHopeIpAddress);\n\n void setTunnelStaticRoute(String siteId, String destCidr);\n\n PSConnector setTunnel(String tunnelId, String localIpAddress, String remoteIpAddress);\n\n void setSiteToTunnel(String siteId, String tunnelId);\n\n PSConnector setDefaultGateway(String ipAddress);\n\n Set<RouteEntry>getRouteEntrySet();\n\n\n\n}",
"public RouteDescriptor[] getRoutes() {\n if (mRoutes == null) {\n mRoutes = RouteDescriptor.fromParcelableArray(\n mBundle.getParcelableArray(KEY_ROUTES));\n }\n return mRoutes;\n }",
"public List<Route> findRoutesByCountries(String fromCountry, String toCountry) {\n List<Route> res = em.createQuery(\r\n \"SELECT rt FROM Route as rt \" + \" JOIN FETCH rt.routeId.source as src \"\r\n + \" JOIN FETCH rt.routeId.destination dst \" + \"WHERE src.country=:from AND dst.country=:to\",\r\n Route.class).setParameter(\"from\", fromCountry).setParameter(\"to\", toCountry).getResultList();\r\n return res;\r\n }",
"public static ArrayList<String> getDirections(Context context,\n \t\t\tString system, String route) throws Exception {\n \t\tArrayList<String> directions = new ArrayList<String>();\n \t\tBundle params = new Bundle();\n \t\tparams.putString(\"rt\", route);\n \t\tXmlPullParser xpp = BusTimeAPI.loadData(context, \"getdirections\",\n \t\t\t\tsystem, params);\n \t\tint eventType = xpp.getEventType();\n \t\tString curTag = \"\";\n \t\tBusTimeError err = null;\n \t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n \t\t\tswitch (eventType) {\n \t\t\tcase XmlPullParser.START_TAG:\n \t\t\t\tcurTag = xpp.getName();\n \t\t\t\tif (curTag.equals(\"dir\")) { // on to new route\n \t\t\t\t\t// nothing yet\n \t\t\t\t} else if (curTag.equals(\"error\"))\n \t\t\t\t\terr = new BusTimeError();\n \t\t\t\tbreak;\n \t\t\tcase XmlPullParser.TEXT:\n \t\t\t\tString text = xpp.getText().trim();\n \t\t\t\tif (!curTag.equals(\"\") && !text.equals(\"\")) {\n \t\t\t\t\tif (err != null)\n \t\t\t\t\t\terr.setField(curTag, text);\n \t\t\t\t\telse\n \t\t\t\t\t\tdirections.add(text);\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase XmlPullParser.END_TAG:\n \t\t\t\tcurTag = \"\";\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\teventType = xpp.next();\n \t\t}\n \t\tif (err != null)\n \t\t\tthrow err;\n \t\treturn directions;\n \t}",
"public List<Route> getRoutes() throws ExecutionException, InterruptedException {\n\n //Initialize variables\n List<Route> routes = new ArrayList<>();\n\n //Start backgroung thread and retrieve data\n ExecutorService executor = Executors.newSingleThreadExecutor();\n RoutesWorkerClass routeWorker = new RoutesWorkerClass();\n Future<List<Route>> futures = executor.submit(routeWorker);\n executor.shutdown();\n\n if (futures.get() != null) {\n routes = futures.get();\n }\n\n return routes;\n\n }",
"public static List<Location> generateLocations() {\n\t\tList<Location> locations = new ArrayList<Location>();\n\t\t\n\t\tfor(AREA area : AREA.values()) {\n\t\t\tLocation l = new Location(area);\n\t\t\t\n\t\t\tswitch (area) {\n\t\t\tcase Study:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Hall:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Lounge:\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Library:\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase BilliardRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase DiningRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Conservatory:\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Ballroom:\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Kitchen:\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase HW_SH:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tbreak;\n\t\t\tcase HW_HL:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tbreak;\n\t\t\tcase HW_SL:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tbreak;\n\t\t\tcase HW_HB:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LD:\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LB:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BD:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LC:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tbreak;\n\t\t\tcase HW_BB:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_DK:\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\tcase HW_CB:\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BK:\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlocations.add(l);\n\t\t}\n\t\t\n\t\treturn locations;\n\t}",
"@Override\r\n public Collection<OptimizedItinerary> getBestItineraryByHops(String origin, Collection<RouteNode> routes) throws OptimizedItineraryStrategyException{\r\n log.info(String.format(\"** Getting best itineraries (based on hops) from %s, using Dijkstra algorithm. **\", origin));\r\n \r\n if (!isOriginPresent(routes, origin))\r\n \tthrow new OptimizedItineraryStrategyException(String.format(\"Origin city: %s is not present.\", origin));\r\n \r\n Set<String> allDestinations = getDestinations(routes, origin);\r\n HipsterDirectedGraph<String,Long> graph = doGraphHops(routes);\r\n \r\n Collection<OptimizedItinerary> results = allDestinations.stream()\r\n .map(destination -> doDijkstra(graph, origin, destination))\r\n .collect(Collectors.toList());\r\n \r\n return results;\r\n }",
"public static java.util.List<com.services.model.BusRoute> findByStartAndEndLocation(\n\t\tlong startLocation, long endLocation)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence()\n\t\t\t\t .findByStartAndEndLocation(startLocation, endLocation);\n\t}",
"public Schedule getScheduleForSelectedStopAndRoute(String route, int direction, int stopId){\n Schedule selectedStopSchedule = new Schedule();\r\n // Fetch the route id given the route\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + route + \"'\", null);\r\n // Make sure to begin at the first element of the returned data\r\n getData.moveToFirst();\r\n // Store the Route Id\r\n int route_id = getData.getInt(0);\r\n // Calendar id: (90400,90448) - Monday To Friday\r\n final String query = \"select Routes.Route_long_Name, \" +\r\n \"Calendar._Id, Stops.Stop_Name, Stop_Times.Stop_Sequence, Stop_Times.Arrival_Time, routes.route_short_name \" +\r\n \"from Trips join Calendar on Trips.Service_Id=Calendar._Id \" +\r\n \"join Routes on Trips.Route_Id=Routes._Id \" +\r\n \"join Stop_Times on Trips._Id=Stop_Times.Trip_Id \" +\r\n \"join Stops on Stop_Times.Stop_Id=Stops._Id \" +\r\n \"where Calendar._Id in \" + getDayOfTheWeek() + \" \" +\r\n \"AND Trips.Route_Id = \" + route_id + \" \" +\r\n \"AND Trips.Direction_Id = \" + direction + \" \" +\r\n \"AND Stop_Times.Arrival_Time != '' \" +\r\n \"AND stops._id = \" + stopId + \" \" +\r\n \"order by arrival_time asc\";\r\n getData.moveToFirst();\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n while (getData.moveToNext()){\r\n selectedStopSchedule.insertData(getData.getString(0), getData.getInt(1), getData.getString(2), getData.getInt(3)\r\n , getData.getString(4), getData.getString(5));\r\n }\r\n return selectedStopSchedule;\r\n }",
"default void computeRoutes(\n com.google.maps.routing.v2.ComputeRoutesRequest request,\n io.grpc.stub.StreamObserver<com.google.maps.routing.v2.ComputeRoutesResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getComputeRoutesMethod(), responseObserver);\n }",
"public java.util.List getWaypoints();",
"public void computeRoutes(\n com.google.maps.routing.v2.ComputeRoutesRequest request,\n io.grpc.stub.StreamObserver<com.google.maps.routing.v2.ComputeRoutesResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getComputeRoutesMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Route getRoute();",
"public static APIRequestTask requestDirections(String from, String to) {\n\t\tURLParameter _from = new URLParameter(\"origin\", from);\n\t\tURLParameter _to = new URLParameter(\"destination\", to);\n\t\tURLParameter _sensor = new URLParameter(\"sensor\", \"false\");\n\n\t\tAPIRequestTask task = new APIRequestTask(directions_url);\n\t\ttask.execute(_from, _to, _sensor);\n\t\treturn task;\n\t}",
"@Override\r\n public Collection<OptimizedItinerary> getBestItineraryByTime(String origin, Collection<RouteNode> routes) throws OptimizedItineraryStrategyException {\r\n log.info(String.format(\"** Getting best itineraries (based on time) from %s, using Dijkstra algorithm. **\", origin));\r\n \r\n if (!isOriginPresent(routes, origin))\r\n \tthrow new OptimizedItineraryStrategyException(String.format(\"Origin city: %s is not present.\", origin));\r\n \t\r\n Set<String> allDestinations = getDestinations(routes, origin);\r\n HipsterDirectedGraph<String,Long> graph = doGraphWithTimes(routes);\r\n \r\n // call Dijkstra for the same origen and all the destinations ...\r\n Collection<OptimizedItinerary> results = allDestinations.stream()\r\n .map(destination -> doDijkstra(graph, origin, destination))\r\n .collect(Collectors.toList());\r\n \r\n return results;\r\n }",
"public RouteObject(\n NsiTopology topology,\n SimpleStp srcStpId,\n SimpleStp dstStpId,\n DirectionalityType directionality,\n Optional<StpListType> ero) throws WebApplicationException {\n\n // Each segment of the a path is assigned a route object with an A and Z end.\n Route route = new Route();\n\n // Get the set of possible source STP identifiers (a range could be provided).\n StpTypeBundle srcBundle = new StpTypeBundle(topology, srcStpId, directionality);\n if (srcBundle.isEmpty()) {\n log.error(\"RouteObject: source STP does not exist in topology: \" + srcStpId.toString());\n throw Exceptions.stpResolutionError(srcStpId.toString());\n }\n\n route.setBundleA(srcBundle);\n\n // Now we process any ERO elements if present.\n if (ero.isPresent()) {\n // We need to process the ERO in order that it was specified.\n List<OrderedStpType> orderedSTP = ero.get().getOrderedSTP();\n Collections.sort(orderedSTP, new CustomComparator());\n\n // Our first processed segment starts with our source STP.\n SimpleStp lastStp = srcStpId;\n\n for (OrderedStpType stp : orderedSTP) {\n // Parse this STP and generate a bundle enumerating all the STP. The\n // specified STP must exist in topology for a bundle to be generated.\n SimpleStp nextStp = new SimpleStp(stp.getStp());\n StpTypeBundle nextBundle = new StpTypeBundle(topology, nextStp, directionality);\n\n // If we did not find an associated bundle the specified ERO STP may\n // be an internal STP used for a domain's internal path computation.\n if (nextBundle.isEmpty()) {\n // The one rule we have is that an internal STP must be bounded by\n // at least one externally visible STP from the same domain. This\n // check is to see if the previous STP was in the same domain.\n //if (!nextStp.getNetworkId().equalsIgnoreCase(lastStp.getNetworkId())) {\n //log.error(\"RouteObject: Internal STP not bounded by external STP: \" + stp.getStp());\n //throw Exceptions.invalidEroError(stp.getStp());\n //}\n\n // Save this internal STP.\n route.addInternalStp(stp.getStp());\n }\n else {\n // We have an inter-domain STP so save it and get the SDP\n // so we know the STP on far end. We may need to filter some\n // of these out if there is no corresponding SDP (mismatching\n // labels on each end of the link).\n nextBundle = nextBundle.getPeerReducedBundle();\n if (nextBundle.isEmpty()) {\n log.error(\"RouteObject: ERO STP not associated with SDP: \" + stp.getStp());\n throw Exceptions.invalidEroError(stp.getStp());\n }\n\n // We have completed this path segment by finding a external\n // interdomain STP.\n route.setBundleZ(nextBundle);\n routes.add(route);\n\n // Now create the bundle associated with the other end of SDP.\n route = new Route();\n\n StpTypeBundle lastBundle = new StpTypeBundle();\n\n for (StpType member : nextBundle.values()) {\n SdpType sdp = topology.getSdp(member.getSdp().getId());\n if (sdp == null) {\n log.error(\"RouteObject: ERO STP not associated with valid SDP in context of request: \" + stp.getStp());\n throw Exceptions.invalidEroMember(stp.getStp());\n }\n if (member.getId().equalsIgnoreCase(sdp.getDemarcationA().getStp().getId())) {\n lastBundle.addStpType(topology.getStp(sdp.getDemarcationZ().getStp().getId()));\n }\n else {\n lastBundle.addStpType(topology.getStp(sdp.getDemarcationA().getStp().getId()));\n }\n }\n\n if (lastBundle.isEmpty()) {\n log.error(\"RouteObject: ERO STP not associated with SDP: \" + stp.getStp());\n throw Exceptions.invalidEroError(stp.getStp());\n }\n\n route.setBundleA(lastBundle);\n lastStp = lastBundle.getSimpleStp();\n }\n }\n }\n\n // Add the original destination endpoint after any inserted ERO points.\n StpTypeBundle dstBundle = new StpTypeBundle(topology, dstStpId, directionality);\n if (dstBundle.isEmpty()) {\n log.error(\"RouteObject: destination STP does not exist in topology: \" + dstStpId.toString());\n throw Exceptions.stpResolutionError(dstStpId.toString());\n }\n\n route.setBundleZ(dstBundle);\n\n // Add this last route to our list of one or more routes.\n routes.add(route);\n\n // We have completed building the ERO but need to check for internal\n // consistency.\n routes.forEach(r -> {\n StpTypeBundle bundleA = r.getBundleA();\n StpTypeBundle bundleZ = r.getBundleZ();\n SimpleStp stpA = bundleA.getSimpleStp();\n SimpleStp stpZ = bundleZ.getSimpleStp();\n\n String network = stpA.getNetworkId();\n for (OrderedStpType internalStp : r.getInternalStp()) {\n SimpleStp istp = new SimpleStp(internalStp.getStp());\n if (!istp.getNetworkId().equalsIgnoreCase(network)) {\n network = stpZ.getNetworkId();\n if (!istp.getNetworkId().equalsIgnoreCase(network)) {\n log.error(\"RouteObject: internal STP {} not a member of networkA {} or networkZ {}\",\n istp.getStpId(), stpA.getNetworkId(), stpZ.getNetworkId());\n throw Exceptions.invalidEroError(istp.getStpId());\n }\n }\n }\n });\n }",
"public Collection<Route> getRoutesForNextHop(IpAddress ip) {\n return routes.values()\n .stream()\n .filter(route -> route.nextHop().equals(ip))\n .collect(Collectors.toSet());\n }"
] | [
"0.6833193",
"0.66927975",
"0.66699016",
"0.65960634",
"0.63230973",
"0.63201106",
"0.6306086",
"0.62573814",
"0.6248737",
"0.61631143",
"0.61563617",
"0.6119181",
"0.60789716",
"0.5989503",
"0.59792024",
"0.5955082",
"0.59079033",
"0.5898675",
"0.5860443",
"0.5859542",
"0.58590084",
"0.58441687",
"0.58196187",
"0.5815709",
"0.5798072",
"0.5773979",
"0.5762102",
"0.57527286",
"0.57511526",
"0.57313377",
"0.5726475",
"0.57217693",
"0.571584",
"0.56943357",
"0.56801856",
"0.5677479",
"0.5653249",
"0.56317425",
"0.5613405",
"0.55884117",
"0.5565387",
"0.55621487",
"0.5549484",
"0.5548226",
"0.55467397",
"0.5531797",
"0.55277413",
"0.5527278",
"0.55267954",
"0.55235416",
"0.550812",
"0.5504372",
"0.5503054",
"0.5502692",
"0.5497506",
"0.54892766",
"0.5467871",
"0.54489243",
"0.5445149",
"0.5442897",
"0.541747",
"0.5411819",
"0.5408755",
"0.5407624",
"0.5407394",
"0.5401863",
"0.5401244",
"0.53971994",
"0.5392091",
"0.5379238",
"0.53790575",
"0.5367835",
"0.5354747",
"0.5353583",
"0.53508836",
"0.5344244",
"0.5341881",
"0.5341602",
"0.53298575",
"0.5312219",
"0.53003645",
"0.5292624",
"0.5288775",
"0.52866673",
"0.52844167",
"0.5280423",
"0.5273735",
"0.52709365",
"0.52621627",
"0.5256391",
"0.52527565",
"0.5248141",
"0.5246235",
"0.52408123",
"0.5234698",
"0.5211991",
"0.5210652",
"0.5208462",
"0.5204022",
"0.5200108"
] | 0.8094673 | 0 |
Agrega un producto al carrito de compras. | Boolean agregar(String userName, Long idProducto); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void agregarProducto(String producto){\n\t\tif (!this.existeProducto(producto)) {\n\t\t\tthis.compras.add(producto);\n\t\t}\n\t}",
"public void comprarProducto(Producto producto) throws Exception{\n try{\n if(this.productosEnVenta.contains(producto)){\n throw new suProducto();\n }\n producto.getVendedor().venderProducto(producto, this);\n producto.setComprador(this);\n this.productosComprados.add(producto);\n \n }catch(Exception e){\n throw e;\n } \n }",
"public void Addproduct(Product objproduct) {\n\t\t\n\t}",
"@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }",
"public void agregar(Producto producto) throws BusinessErrorHelper;",
"private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}",
"public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }",
"public void addProduct(Product p) {\n c.addProduct(p);\n }",
"public Registrar_Producto() {\n this.setContentPane(fondo);\n initComponents();\n llenaArr();\n llenaCB();\n soloLetras(rp_tx_nombre);\n soloNumeros(rp_tx_cantidad);\n soloNumeros(rp_tx_precio);\n soloLetras(rp_tx_descripcion);\n }",
"@Override\n\tpublic void entregarProductos(AgenteSaab a, Oferta o) {\n\t\t\n\t}",
"public addproduct() {\n\t\tsuper();\n\t}",
"public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }",
"public void guardarProductosComprados() {\n try {\n //Si hay datos los guardamos...\n if (!productosComprados.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosComprados\n FileOutputStream archivo = new FileOutputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosComprados\n guardar.writeObject(productosComprados);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"private void agregarProducto(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n\t\tString codArticulo = request.getParameter(\"CArt\");\n\t\tString seccion = request.getParameter(\"seccion\");\n\t\tString nombreArticulo = request.getParameter(\"NArt\");\n\t\tSimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = formatoFecha.parse(request.getParameter(\"fecha\"));\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\tdouble precio = Double.parseDouble(request.getParameter(\"precio\"));\n\t\tString importado = request.getParameter(\"importado\");\n\t\tString paisOrigen = request.getParameter(\"POrig\");\n\t\t// Crear un objeto del tipo producto\n\t\tProducto producto = new Producto(codArticulo, seccion, nombreArticulo, precio, fecha, importado, paisOrigen);\n\t\t// Enviar el objeto al modelo e insertar el objeto producto en la BBDD\n\t\tmodeloProductos.agregarProducto(producto);\n\t\t// Volver al listado de productos\n\t\tobtenerProductos(request, response);\n\n\t}",
"public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }",
"public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}",
"public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}",
"public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }",
"private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }",
"public ActualizarProducto() {\n initComponents();\n }",
"public void agregarDatosProductoText() {\n if (cantidadProducto != null && cantidadProducto > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProducto, this.producto.getPrecioVenta(),\n this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProducto))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n //Mensaje de confirmacion de exito de la operacion \n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n } else {\n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n }\n\n }",
"public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}",
"private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}",
"void addProduct(Product product);",
"Product addOneProduct(String name, String imgNameBarcode, String imgName, String barcode) throws Exception;",
"public void addProduct(Product p){\n stock.add(p);\n }",
"private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public void agregarProductoConCantidad(String producto, Integer cantidad){\n\t\tif (!this.datosCompras.containsKey(producto)) {\n\t\t// Si el producto pasado por parametro no existe aśn lo agrega, junto con su cantidad\n\t\t\tthis.datosCompras.put(producto, cantidad);\n\t\t} else {\n\t\t// Si el producto ya existe, modifico su stock\n\t\t\t// Obtenemos el stock actual y lo guardamos\n\t\t\tInteger productStock = this.datosCompras.get(producto);\n\t\t\t// eliminamos el producto del mapa\n\t\t\tthis.datosCompras.remove(producto);\n\t\t\t// Incrementamos el stock segśn la cantidad pasada por parametro\n\t\t\tcantidad = cantidad + productStock;\n\t\t\t// Agergamos el nuevo producto con su stock actualizado\n\t\t\tthis.datosCompras.put(producto, cantidad);\n\t\t}\n\t}",
"public Producto(double precioCompra, double precioVenta) {\n\t//\tsuper();\n\t\tthis.precioCompra = precioCompra;\n\t\tthis.precioVenta = precioVenta;\n\t}",
"public void cargarProductosComprados() {\n try {\n //Lectura de los objetos de tipo productoComprado\n FileInputStream archivo= new FileInputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosComprados = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"public void adiciona(Produto produto) {\n\t\tthis.produtos.addAll(produtos);\n\t}",
"public void addProduct(Product product);",
"public void cargarJComboBoxProductos(JComboBox cbxProductos) { \n bodega Bodega = new bodega();\n for (producto Producto : Bodega.getProductosList()) {\n cbxProductos.addItem(Producto.getNombreProducto());\n //cbxCantidad.addItem(String.valueOf(Producto.getStockProducto()));\n }\n }",
"public static void addProduto(Produto p1) {\n\t\tprodutosCadastrados.add(p1);\n\t}",
"public void agregar_producto(RecyclingImageView c)\n {\n array_productos.add(c);\n }",
"public ProductoNoElaborado() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"private JList<ProductoAlmacen> crearListaProductos() {\n\n JList<ProductoAlmacen> lista = new JList<>(new Vector<>(almacen.getProductos()));\n\n lista.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\n lista.setCellRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n ProductoAlmacen productoAlmacen = (ProductoAlmacen) value;\n\n String texto = String.format(\"%s (%d uds.)\", productoAlmacen.getProducto().getNombre(), productoAlmacen.getStock());\n this.setText(texto);\n\n return resultado;\n }\n });\n\n return lista;\n }",
"public void listarProducto() {\n }",
"public Fraccion producto() {\r\n Fraccion producto = new Fraccion(operador1.getNumerador()*operador2.getNumerador() , operador1.getDenominador()*operador2.getDenominador());\r\n return simplify(producto);\r\n }",
"public String agregar(String trama) throws JsonProcessingException {\n\t\tString respuesta = \"\";\n\t\tRespuestaGeneralDto respuestaGeneral = new RespuestaGeneralDto();\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar trama entrante para agregar o actualizar producto: \" + trama);\n\t\ttry {\n\t\t\t/*\n\t\t\t * Se convierte el dato String a estructura json para ser manipulado en JAVA\n\t\t\t */\n\t\t\tJSONObject obj = new JSONObject(trama);\n\t\t\tProducto producto = new Producto();\n\t\t\t/*\n\t\t\t * use: es una bandera para identificar el tipo de solicitud a realizar:\n\t\t\t * use: 0 -> agregar un nuevo proudcto a la base de datos;\n\t\t\t * use: 1 -> actualizar un producto existente en la base de datos\n\t\t\t */\n\t\t\tString use = obj.getString(\"use\");\n\t\t\tif(use.equalsIgnoreCase(\"0\")) {\n\t\t\t\tString nombre = obj.getString(\"nombre\");\n\t\t\t\t/*\n\t\t\t\t * Se realiza una consulta por nombre a la base de datos a la tabla producto\n\t\t\t\t * para verificar que no existe un producto con el mismo nombre ingresado.\n\t\t\t\t */\n\t\t\t\tProducto productoBusqueda = productoDao.buscarPorNombre(nombre);\n\t\t\t\tif(productoBusqueda.getProductoId() == null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si no existe un producto con el mismo nombre pasa a crear el nuevo producto\n\t\t\t\t\t */\n\t\t\t\t\tproducto.setProductoNombre(nombre);\n\t\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\t\tTipoProducto tipoProducto = tipoProductoDao.consultarPorId(obj.getLong(\"tipoProducto\"));\n\t\t\t\t\tproducto.setProductoTipoProducto(tipoProducto);\n\t\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\t\tproducto.setProductoFechaRegistro(new Date());\n\t\t\t\t\tproductoDao.update(producto);\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Nuevo producto registrado con éxito.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}else {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si existe un producto con el mismo nombre, se devolvera una excepcion,\n\t\t\t\t\t * para indicarle al cliente.\n\t\t\t\t\t */\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Ya existe un producto con el nombre ingresado.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t/*\n\t\t\t\t * Se realiza una busqueda del producto registrado para actualizar\n\t\t\t\t * para implementar los datos que no van a ser reemplazados ni actualizados\n\t\t\t\t */\n\t\t\t\tProducto productoBuscar = productoDao.buscarPorId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoNombre(obj.getString(\"nombre\"));\n\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\tproducto.setProductoTipoProducto(productoBuscar.getProductoTipoProducto());\n\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\tproducto.setProductoFechaRegistro(productoBuscar.getProductoFechaRegistro());\n\t\t\t\tproductoDao.update(producto);\n\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\trespuestaGeneral.setRespuesta(\"Producto actualizado con exito.\");\n\t\t\t\t/*\n\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t */\n\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t}\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t} catch (Exception e) {\n\t\t\t/*\n\t\t\t * En caso de un error, este se mostrara en los logs\n\t\t\t * Sera enviada la respuesta correspondiente al cliente.\n\t\t\t */\n\t\t\tlogger.error(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n\t\t\t\t\t+ \"ProductoService.agregar, \"\n\t\t\t\t\t+ \", descripcion: \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\trespuestaGeneral.setRespuesta(\"Error al ingresar los datos, por favor intente mas tarde.\");\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t}\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar resultado de agregar/actualizar un producto: \" + respuesta);\n\t\treturn respuesta;\n\t}",
"public GrupoProducto adicionar(GrupoProducto grupoProducto){\r\n grupoProducto.setId(listaGrupoProductos.size()+1);\r\n listaGrupoProductos.add(grupoProducto);\r\n return grupoProducto;\r\n }",
"public BuscarProducto(AgregandoProductos ventanaPadre) {\n this.daoProductos = new ProductoJpaController();\n this.ventanaPadre = ventanaPadre;\n initComponents();\n this.setupComponents();\n }",
"public void add(Product p) {\r\n\t\tparts.add(p);\r\n\t}",
"public CrearProductos() {\n initComponents();\n }",
"public void borrarProducto() {\n }",
"public void guardarProductosEnVenta() {\n try {\n //Si hay datos los guardamos...\n \n /****** Serialización de los objetos ******/\n //Serialización de las productosEnVenta\n FileOutputStream archivo = new FileOutputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosEnVenta\n guardar.writeObject(productosEnVenta);\n archivo.close();\n \n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"public CaracteristicasProducto() {\n initComponents();\n setTitle(\"Los Productos\");\n this.setFrameIcon(new ImageIcon(this.getClass().getResource(\"/Imagenes/icoChiqui.png\")));\n tbProducto.setModel(modelo);\n modelo.setColumnIdentifiers(new String[]{\"Item\", \"Nombre\", \"codigo\", \"Serie\"});\n \n tbProducto.getColumnModel().getColumn(0).setPreferredWidth(50);\n tbProducto.getColumnModel().getColumn(1).setPreferredWidth(200);\n tbProducto.getColumnModel().getColumn(2).setPreferredWidth(70);\n tbProducto.getColumnModel().getColumn(3).setPreferredWidth(60);\n \n tbCaracteristicas.setModel(modelo1);\n modelo1.setColumnIdentifiers(new String[]{\"Item\", \"Caracteristica\"});\n tbCaracteristicas.getColumnModel().getColumn(0).setPreferredWidth(40);\n tbCaracteristicas.getColumnModel().getColumn(1).setPreferredWidth(250);\n \n tbCaracteristicasSimilares.setModel(modelo2);\n modelo2.setColumnIdentifiers(new String[]{\"Item\", \"Caracteristica\"});\n tbCaracteristicasSimilares.getColumnModel().getColumn(0).setPreferredWidth(40);\n tbCaracteristicasSimilares.getColumnModel().getColumn(1).setPreferredWidth(250);\n MostrarProductos();\n txtCarateristica.setEnabled(false);\n txtBuscar.grabFocus();\n FormatoTabla ft= new FormatoTabla(1);\n tbCaracteristicas.setDefaultRenderer(Object.class, ft);\n tbCaracteristicasSimilares.setDefaultRenderer(Object.class, ft);\n tbProducto.setDefaultRenderer(Object.class, ft);\n }",
"private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\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 String addProduct(Context pActividad,int pId, String pDescripcion,float pPrecio)\n {\n AdminSQLiteOpenHelper admin = new AdminSQLiteOpenHelper(pActividad, \"administracion\", null, 1);\n\n // con el objeto de la clase creado habrimos la conexion\n SQLiteDatabase db = admin.getWritableDatabase();\n try\n {\n // Comprobamos si el id ya existe\n Cursor filas = db.rawQuery(\"Select codigo from Articulos where codigo = \" + pId, null);\n if(filas.getCount()<=0)\n {\n //ingresamos los valores mediante, key-value asocioados a nuestra base de datos (tecnica muñeca rusa admin <- db <- registro)\n ContentValues registro = new ContentValues();\n registro.put(\"codigo\",pId);\n registro.put(\"descripcion\",pDescripcion);\n registro.put(\"precio\", pPrecio);\n\n //ahora insertamos este registro en la base de datos\n db.insert(\"Articulos\", null, registro);\n }\n else\n return \"El ID insertado ya existe\";\n }\n catch (Exception e)\n {\n return \"Error Añadiendo producto\";\n }\n finally\n {\n db.close();\n }\n return \"Producto Añadido Correctamente\";\n }",
"@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }",
"public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }",
"protected ArrayList efetuarCompra(ArrayList<Produto> produtosCtlg){\n for (int i=0; i<itens.size(); i++){\r\n for (int j=0; j<produtosCtlg.size(); j++){\r\n if (itens.get(i).getId() == produtosCtlg.get(j).getId()){\r\n produtosCtlg.get(j).setQuantidade(itens.get(i).getQtdPedida());\r\n }\r\n }\r\n }\r\n return itens;\r\n }",
"public static void addProduct(Product product){\r\n \r\n System.out.println(\"Adding Product \" + product.getProductName());\r\n productInvMap.put(productInvMap.size(),product);\r\n }",
"public Producto(String nombre, String vendedor, float precio, int cantidad,boolean enVenta, String descripcion,\r\n\t\t\tCaracteristica caracteristicas, Categoria categoria) {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tsetNombre(nombre);\r\n\t\tsetCantidad(cantidad);\r\n\t\tsetEnVenta(enVenta);\r\n\t\tsetCaracteristicas(caracteristicas);\r\n\t\tsetCategoria(categoria);\r\n\t\tsetDescripcion(descripcion);\r\n\t\tsetPrecio(precio);\r\n\t\tsetVendedor(vendedor);\r\n\t}",
"public producto_interfaz(Producto producto) {\n initComponents();\n jSpinner1.setEnabled(false);\n this.producto=producto;\n titulo.setText(producto.getNombre());\n peso.setText(Double.toString(producto.getPeso()));\n precio.setText(Double.toString(producto.getPrecio()));\n \n }",
"@Override\n\tpublic Product getProduct() {\n\t\tSystem.out.println(\"B生产成功\");\n\t\treturn product;\n\t}",
"private List<Product> getProductListFromRs(ResultSet productRs) throws SQLException {\n\t\t/*\n\t\t * Preleviamo il contenuto della tabella COMPOSIZIONE e lo inseriamo in una\n\t\t * struttura associativa in cui la chiave è un codice prodotto (univoco) e\n\t\t * e il valore è la lista dei materiali di cui il prodotto è composto.\n\t\t */\n\t\tStatement compositionStm = null;\n\t\tResultSet compositionRs = null;\n\t\tMap<Integer,List<String>> materialsMap = new HashMap<Integer,List<String>>();\n\t\ttry{\n\t\t\tcompositionStm = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM COMPOSIZIONE;\";\n\t\t\tcompositionRs = compositionStm.executeQuery(sql);\n\t\t\t\n\t\t\twhile(compositionRs.next()){\n\t\t\t\tInteger codiceProdotto = compositionRs.getInt(\"CODICEPRODOTTO\");\n\t\t\t\tif(materialsMap.containsKey(codiceProdotto)){\n\t\t\t\t\tmaterialsMap.get(codiceProdotto).add(compositionRs.getString(\"MATERIALE\"));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tArrayList<String> newMaterialList = new ArrayList<String>();\n\t\t\t\t\tnewMaterialList.add(compositionRs.getString(\"MATERIALE\"));\n\t\t\t\t\tmaterialsMap.put(compositionRs.getInt(\"CODICEPRODOTTO\"), newMaterialList);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcompositionStm.close(); // Chiude anche il ResultSet compositionRs\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"DB issue: failed to retrive product data from database.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\t/*\n\t\t * Produciamo la lista dei prodotti.\n\t\t */\n\t\tList<Product> productList = new ArrayList<Product>();\n\t\twhile(productRs.next()){\n\t\t\tProduct p = new Product();\n\t\t\tp.setCode(productRs.getInt(\"CODICE\")); //AUTOBOXING\n\t\t\tp.setName(productRs.getString(\"NOMEPRODOTTO\"));\n\t\t\tp.setLine(productRs.getString(\"LINEA\"));\n\t\t\tp.setType(productRs.getString(\"TIPO\"));\n\t\t\tp.setImages(productRs.getString(\"IMMAGINI\"));\n\t\t\tp.setAvailableUnits(productRs.getInt(\"UNITADISPONIBILI\"));\n\t\t\t/*\n\t\t\t * getInt() returns:\n\t\t\t * the column value; if the value is SQL NULL, the value returned is 0\n\t\t\t */\n\t\t\tp.setMinInventory(productRs.getInt(\"SCORTAMINIMA\")); // 0 di default\n\t\t\tp.setPrice(productRs.getBigDecimal(\"PREZZOVENDITA\"));\n\t\t\tp.setCost(productRs.getBigDecimal(\"PREZZOACQUISTO\"));\n\t\t\t/*\n\t\t\t * SQLite non ha un tipo esplicito per le date. Il metodo getTimeStamp()\n\t\t\t * non riesce ad interprestare la data correttamente. Si utilizza\n\t\t\t * il metodo getString() anche se ci� non rappresenta la migliore pratica.\n\t\t\t */\n\t\t\tp.setInsertDate(LocalDateTime.parse(productRs.getString(\"DATAINSERIMENTO\")));\n\t\t\tp.setDescription(productRs.getString(\"DESCRIZIONE\"));\n\t\t\tp.setDeleted(productRs.getBoolean(\"ELIMINATO\"));\n\t\t\t\n\t\t\t// LocalDateTime.parse(null) or LocalDateTime.parse(\"\") would throw an exception\n\t\t\tif(productRs.getString(\"DATAELIMINAZIONE\") != null && !productRs.getString(\"DATAELIMINAZIONE\").equals(\"\")) {\n\t\t\t\tp.setDeletionDate(LocalDateTime.parse(productRs.getString(\"DATAELIMINAZIONE\")));\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Preleviamo dalla struttura dati associativa la lista dei materiali\n\t\t\t * di fabbricazione per il corrente prodotto e aggiorniamo il campo\n\t\t\t * relativo del bean \"Product\".\n\t\t\t */\n\t\t\ttry{\n\t\t\t\tp.setMaterials(materialsMap.get(productRs.getInt(\"CODICE\")));\n\t\t\t}\n\t\t\tcatch(ClassCastException cce){\n\t\t\t\tSystem.out.println(\"Map issue: key not comparable.\\n\");\n\t\t\t\tSystem.out.println(cce.getClass().getName() + \": \" + cce.getMessage());\n\t\t\t}\n\t\t\tcatch(NullPointerException npe){\n\t\t\t\tSystem.out.println(\"Map issue: invalid Key.\\n\");\n\t\t\t\tSystem.out.println(npe.getClass().getName() + \": \" + npe.getMessage());\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Aggiungiamo il prodotto alla lista.\n\t\t\t */\n\t\t\tproductList.add(p);\n\t\t}\n\t\t\n\t\treturn productList;\n\t}",
"public Comprar_Productos() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n mostrarProductos();\n }",
"public JuegoCarta() {\n initComponents();\n dibujarPuntuaciones();\n }",
"public void addProductToList(Product aProduct){\n listOfProduct.add(aProduct);\n }",
"public ArrayList<Producto> ListaProductos() {\n ArrayList<Producto> list = new ArrayList<Producto>();\n \n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto;\");\n while(result.next()) {\n Producto nuevo = new Producto();\n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n list.add(nuevo);\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return list;\n }",
"public Producto() {\r\n }",
"public void setProductos(ArrayList<Producto> productos) {\r\n this.productos = productos;\r\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n try {\n\n Object o[] = null;\n List<Producto> listP = CProducto.findProductoEntities();\n boolean resp = false; //ESTO ES LA BANDERA PARA SABER SI EL PRODUCTO EXISTE\n int num = 0;\n String nombreP = txtproducto.getText();\n for (int i = 0; i < listP.size(); i++) {\n\n if (listP.get(i).getNombreProducto().equals(txtproducto.getText())) {\n resp = true;\n num = i;\n }\n }\n if (resp != true) { //VA A VENDER UN PRODUCTO QUE NO EXISTE:\n JOptionPane.showMessageDialog(null, \"Estás intentando vender un articulo que no existe!\\nRevisa tu inventario.\", \"ERROR\", JOptionPane.WARNING_MESSAGE);\n\n } else {\n //Obtenemos el valor total y la cantidad que tenemos hasta ahora en inventarios.\n int cantidadTotal = listP.get(num).getCantidadAlmacenada();\n\n //Obtenemos el valor total de la compra que acabamos de realizar\n int cantidadCompra = Integer.parseInt(txtcantidad.getText());\n\n int resultado = cantidadTotal - cantidadCompra;\n if (resultado < 0) {\n JOptionPane.showMessageDialog(null, \"Lo sentimos, no tenemos esa cantidad.\\nActualmente solo le podemos vender \" + cantidadTotal + \" unidades de ese articulo.\", \"Total excedido\", JOptionPane.INFORMATION_MESSAGE);\n\n int respuesta = JOptionPane.showConfirmDialog(null, \"¿Desea realizar una compra por esta cantidad?\", \"Alerta!\", JOptionPane.YES_NO_OPTION);\n\n if (respuesta == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n this.setVisible(false);\n }\n } else if (resultado == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n float valorTotal = listP.get(num).getValorUnitario() * cantidadTotal;\n\n float valorTotalC = Float.parseFloat(txtvalorU.getText()) * cantidadCompra;\n\n //Actualizamos el valor total y la cntidad de inventario (Producto)\n valorTotal = valorTotal - valorTotalC;\n float valorUnitario = valorTotal / resultado; //Este es el costo unitario\n Producto pEdit = CProducto.findProducto(id);\n pEdit.setCantidadAlmacenada(resultado);\n pEdit.setValorUnitario(valorUnitario);\n\n CProducto.edit(pEdit);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n this.setVisible(false);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage() + e.getCause());\n }\n }",
"public void cargarProductosEnVenta() {\n try {\n //Lectura de los objetos de tipo producto Vendido\n FileInputStream archivo= new FileInputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n this.productosEnVenta = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"ERROR: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"public void addProduct(){\n\t\tSystem.out.println(\"Company:\");\n\t\tSystem.out.println(theHolding.fabricationCompanies());\n\t\tint selected = reader.nextInt();\n\t\treader.nextLine();\n\t\tif(selected > theHolding.getSubordinates().size()-1){\n\t\t\tSystem.out.println(\"Please select a correct option\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Name:\");\n\t\t\tString name = reader.nextLine();\n\t\t\tSystem.out.println(\"Code:\");\n\t\t\tString code = reader.nextLine();\n\t\t\tSystem.out.println(\"Water quantity require:\");\n\t\t\tdouble waterQuantity = reader.nextDouble();\n\t\t\treader.nextLine();\n\t\t\tSystem.out.println(\"Inventory:\");\n\t\t\tint inventory = reader.nextInt();\n\t\t\treader.nextLine();\n\t\t\tProduct toAdd = new Product(name, code, waterQuantity, inventory);\n\t\t\ttheHolding.addProduct(selected, toAdd);\n\t\t\tSystem.out.println(\"The product were added successfuly\");\n\t\t}\n\t}",
"public static void ocultar_productos()\n {\n for (int i = 0; i < array_productos.size(); i++)\n array_productos.get(i).setAlpha(Constantes.IMAGE_ALPHA);\n }",
"public void aggiungiInCatalogo(Componente componente) {\n\t\ttry {\n\t\t\t\n\t\t\tArrayList <Componente> arrayComponenti = new ArrayList<Componente>();\n\t\t\t\n\t\t\tif(this.mappaComponenti.containsKey(componente.getCategoria())) arrayComponenti = new ArrayList<Componente>(this.mappaComponenti.get(componente.getCategoria()));\n\t\t\telse arrayComponenti = new ArrayList<Componente>();\n\t\t\tarrayComponenti.add(componente);\n\t\t\t\n\t\t\tthis.mappaComponenti.put(componente.getCategoria(), arrayComponenti);\n\t\t\t\n\t\t}catch(Exception e){\n\t e.printStackTrace();\n\t }\n\t}",
"private static void VeureProductes (BaseDades bd) {\n ArrayList <Producte> llista = new ArrayList<Producte>();\n llista = bd.consultaPro(\"SELECT * FROM PRODUCTE\");\n if (llista != null)\n for (int i = 0; i<llista.size();i++) {\n Producte p = (Producte) llista.get(i);\n System.out.println(\"ID=>\"+p.getIdproducte()+\": \"\n +p.getDescripcio()+\"* Estoc: \"+p.getStockactual()\n +\"* Pvp: \"+p.getPvp()+\" Estoc Mínim: \"\n + p.getStockminim());\n }\n }",
"public Producto (){\n\n }",
"public Producto BuscarProducto(int id) {\n Producto nuevo = new Producto();\n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto where idproducto=\"+id+\";\");\n while(result.next()) {\n \n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return nuevo;\n }",
"public void addProduct(Product product) {\n allProducts.add(product);\n }",
"public DetalleProducto() {\n initComponents();\n }",
"public Producto getProducto() {\n\t\treturn producto;\n\t}",
"public void cbxProductosScript(JComboBox cbxCantidad, JComboBox cbxProductos, JLabel jLabelTotal) { //\n cbxCantidad.removeAllItems();\n bodega Bodega = new bodega();\n for (producto Producto : Bodega.getProductosList()) {\n if (Producto.getNombreProducto() == cbxProductos.getSelectedItem()) {\n jLabelTotal.setText(String.valueOf(Producto.getPrecioProducto()));\n for (int i = 1; i < Producto.getStockProducto() + 1; i++) {\n cbxCantidad.addItem(String.valueOf(i));\n }\n if (Producto.getStockProducto() == 0) {\n jLabelTotal.setText(\"No hay Stock\");\n } else {\n jLabelTotal.setText(String.valueOf(Producto.getPrecioProducto()));\n }\n\n }\n }\n }",
"@Override\n\tpublic boolean addProduct(Product p) {\n\t\treturn false;\n\t}",
"public void comprar() {\n\t\tSystem.out.println(\"Comprar \"+cantidad+\" de \"+itemName);\n\t}",
"@Override\r\n\tpublic void guardarCambiosProducto(Producto producto) {\r\nconectar();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = miConexion.prepareStatement(ConstantesSql.GUARDAR_CAMBIOS_PRODUCTO);\r\n\t\t\tps.setString(1, producto.getNombre());\r\n\t\t\tps.setString(2, producto.getCantidad());;\r\n\t\t\tps.setString(3, producto.getPrecio());\r\n\t\t\tps.setString(6, producto.getOferta());\r\n\t\t\tps.setString(4, producto.getFechaCad());\r\n\t\t\tps.setString(5, producto.getProveedor());\r\n\t\t\tps.setString(7, producto.getComentario());\r\n\t\t\tps.setInt(8, producto.getId());\r\n\t\t\tps.execute();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error sql guardar producto\");\r\n\t\t}\r\n\t\t\r\n\t\tdesconectar();\r\n\t}",
"@Override\n\tpublic void agregar(Alumno alumno) {\n\t\tcomision.add(alumno);\n\t}",
"public String addProduct() throws Exception {\r\n\t\t\r\n\t\t//content spot entity\r\n\t\tSpotBean spotBean = new SpotBean();\r\n\t\tspotBean.setId(this.getContentSpot().getId());\r\n\t\tspotBean = contentSpotService.load(spotBean);\r\n\t\t\r\n\t\t//main content spot\r\n\t\tContentSpot content = spotBean.getContentSpot();\r\n\t\tthis.products = content.getProducts();\r\n\r\n\t\t//configure products list attribute\r\n\t\tcontent.setProducts(extractProducts());\r\n\t\t\r\n\t\treturn update(spotBean);\r\n\t}",
"public void guardarProductosVendidos() {\n try {\n //Si hay datos los guardamos...\n if (!productosVendidos.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosVendidos\n FileOutputStream archivo = new FileOutputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de personas\n guardar.writeObject(productosVendidos);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"public void buscarproducto() {\r\n try {\r\n modelo.setNombre(vista.jTbnombre2.getText());//C.P.M le mandamos al modelo el nombre del producto\r\n rs = modelo.Buscar();//C.P.M obtenemos el resultado del modelos\r\n if (rs.equals(\"\")) {//C.P.M en caso de que el resultado venga vacio notificamos a el usuario que no encontro el producto\r\n JOptionPane.showMessageDialog(null, \"No se encontro: \" + vista.jTbnombre2.getText() + \" en la base de datos.\");\r\n }\r\n //C.P.M Para establecer el modelo al JTable\r\n DefaultTableModel buscar = new DefaultTableModel() {\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M Aqui le decimos que no seran editables los campos de la tabla\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo\r\n modelo.estructuraProductos(buscar);//C.P.M Auui obtenemos la estructura de la tabla(\"Los encabezados\")\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M Obtenemos los metadatos para obtener la cantidad del columnas que llegan\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M la cantidad la alojamos dentro de un entero\r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n Object[] fila = new Object[cantidadColumnas];//C.P.M Creamos un objeto con el numero de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recoremos ese vector\r\n fila[i] = rs.getObject(i + 1);//C.P.M Aqui vamos insertando la informacion obtenida de la base de datos\r\n }\r\n buscar.addRow(fila);//C.P.M y agregamos el arreglo como una nueva fila a la tabla\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurio un error al buscar el producto\");\r\n }\r\n\r\n }",
"static Producto busqueda(int codigo, Vector productos){ \r\n \tboolean band = false;\r\n \t//si return no es igual a null nos regresara el codigo\r\n Producto p,retornP = null; \r\n //For para comparar todos los codigos del vector que digitamos\r\n for(int x = 0; x < productos.size(); x++){ \r\n \tp = (Producto) productos.elementAt(x);\r\n \t//si el codigo es el mismo regresamos el producto que encontramos\r\n if(p.getCodigo() == codigo) \r\n \tretornP = p;\r\n }\r\n return retornP;\r\n }",
"public void addProduct(Product pProduct)\n\t{\n\t\tmyProductInventory.add(pProduct);\n\n\n\t}",
"public void addProduct(Product toAdd) {\n\t\tthis.products.add(toAdd);\n\t}",
"public ArrayList<Producto> getProductos() {\r\n return productos;\r\n }",
"public Venta(Producto producto,Cliente comprador,Cliente vendedor){\n this.fechaCompra=fechaCompra.now();\n this.comprador=comprador;\n this.vendedor=vendedor;\n this.producto=producto;\n \n }",
"public synchronized void addItem(Product product){\n \n ShoppingCartItem item = carrito.get(product.getId());\n int new_quantity;\n \n if(item==null){\n carrito.set(product.getId(), new ShoppingCartItem(product));\n new_quantity = 1;\n }else{\n new_quantity = item.getQuantity()+1;\n }\n //even if it's added or not, we call update method to update the quantity of the product\n this.update(product,Integer.toString(new_quantity));\n }",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"@Override\n\tpublic DAOProducto_Lab crearDAOProducto() {\n\t\treturn null;\n\t}",
"public String menuProducto() {\n\n\t\tIcon icono = new ImageIcon(getClass().getResource(\"../img/producto.png\"));\n\n\t\tString[] opciones = { \"Mostrar todos los valores\", \"Borrar Producto\", \"Crear Producto\", \"Modificar Producto\",\n\t\t\t\t\"Buscar por nombre\", \"Buscar por clave\", \"Salir\" };\n\n\t\tString opcionElegida = (String) JOptionPane.showInputDialog(null, \"¿Que deseas realizar?\", \"Tabla Producto\",\n\t\t\t\tJOptionPane.QUESTION_MESSAGE, icono, opciones, opciones[0]);\n\n\t\treturn opcionElegida;\n\n\t}",
"@Override\n public Productor getProductor() {\n return new ProductorImp1();\n }",
"public static void main(String[] args) {\n\t\tControladorProducto controlaPro = new ControladorProducto();\n\n\t\t// Guardamos en una lista de objetos de tipo cuenta(Mapeador) los datos\n\t\t// obtenidos\n\t\t// de la tabla Cuenta de la base de datos\n\t\tList<Producto> lista = controlaPro.findAll();\n\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla Cuenta:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// el nombre\n\t\tProducto productoNombre = controlaPro.findByNombre(\"Manguera Camuflaje\");\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con el nombre Manguera Camuflaje es: \\n\" + productoNombre);\n\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// su pk\n\n\t\tProducto productoPk = controlaPro.findByPK(2);\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con la Pk es: \\n\" + productoPk);\n\n\t\t// Vamos a crear un nuevo producto\n\t\tProducto nuevoProducto = new Producto();\n\n\t\tnuevoProducto.setNombreproducto(\"Embery Mono\");\n\t\t\n\t\t//Persistimos el nuevo producto\n\t\tcontrolaPro.crearEntidad(nuevoProducto);\n\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Modificamos el nuevo producto\n\t\tnuevoProducto.setNombreproducto(\"Caesar Dorada\");\n\n\t\tcontrolaPro.ModificarEntidad(nuevoProducto);\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto modificado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Borramos el nuevo producto\n\t\tcontrolaPro.borrarEntidad(controlaPro.findByPK(2));\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto eliminado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t}",
"public void comprar(Carrito carrito){\n\t\tif(carrito.getEstadoVendido()==false){\n\t\t\tif(this.tarjeta.verificarTarjeta(carrito.getCostoCarrito())==true){\n\t\t\t\tSystem.out.println(\"Felicidades \"+this.getNombre()+\", la compra de su carrito \"+carrito.getNombreCarrito()+\" ha sido realizada con exito!\\nSe han debitado $\"+carrito.getCostoCarrito()+\" de su tarjeta.\\n\\nLos productos seran enviados a \"+this.getDireccionEnvio()+\"\\n-------------------------------------------------------\");\n\t\t\t\tcarrito.setEstadoVendido(true);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"El carrito ya fue comprado!\");\n\t}",
"public void addCompte(Compte x) {//je mets la methode dajout ici\n\t compte.add(x);\n\t }",
"public void cargarProductosVendidos() {\n try {\n //Lectura de los objetos de tipo productosVendidos\n FileInputStream archivo= new FileInputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosVendidos = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"public void addProduct(Product item){\n inventory.add(item);\n }",
"public void agregarDetalleProducto() {\n //Creamos instancia de ProductoDao\n ProductoDao productoDao = new ProductoDaoImp();\n try {\n //obtenemos la instancia del producto\n producto = productoDao.obtenerProductoPorCodigoBarra(productoSeleccionado);\n if (cantidadProductoDlg != null && cantidadProductoDlg > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProductoDlg, this.producto.getPrecioVenta(),\n (this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProductoDlg)))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado al detalle!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }else{\n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR , \"Incorrecto\", \"La cantidad es incorrecta!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\t@Transactional\n\tpublic String addProduct(Inventory product) {\n\t\treturn null;\n\t}",
"public static void productoFinalizado(){\r\n System.out.println(\"Imprimo Producto Finalizado\");\r\n }"
] | [
"0.7399901",
"0.7011324",
"0.68387204",
"0.68208456",
"0.6802842",
"0.6748892",
"0.66420335",
"0.66084856",
"0.6535646",
"0.6519182",
"0.6517438",
"0.65153414",
"0.6483965",
"0.6480333",
"0.6437535",
"0.6430334",
"0.6406956",
"0.6369162",
"0.6367967",
"0.63590443",
"0.6358008",
"0.63438785",
"0.63302815",
"0.6306995",
"0.6269025",
"0.6268008",
"0.6261601",
"0.6253258",
"0.6243869",
"0.6211984",
"0.62049145",
"0.62040395",
"0.61970603",
"0.61951566",
"0.6180665",
"0.61707926",
"0.61193097",
"0.6110923",
"0.6095232",
"0.60836214",
"0.60824066",
"0.60633534",
"0.605755",
"0.60292554",
"0.6028401",
"0.60074717",
"0.5997406",
"0.59857893",
"0.598535",
"0.59601426",
"0.5956223",
"0.5950855",
"0.5935935",
"0.5908938",
"0.5901367",
"0.58995616",
"0.58947384",
"0.58834577",
"0.58830774",
"0.5866822",
"0.58654875",
"0.5861844",
"0.58605397",
"0.5843366",
"0.58282584",
"0.5817705",
"0.58085495",
"0.580747",
"0.5806633",
"0.58007395",
"0.5797264",
"0.57925195",
"0.5788337",
"0.578571",
"0.5778271",
"0.5776871",
"0.5768023",
"0.5746506",
"0.57455176",
"0.5742919",
"0.5730058",
"0.57275736",
"0.57250816",
"0.5713098",
"0.56994486",
"0.5691369",
"0.56834364",
"0.56816155",
"0.5677341",
"0.5677024",
"0.5672607",
"0.5669114",
"0.56555974",
"0.5655361",
"0.564379",
"0.5638672",
"0.5634098",
"0.562791",
"0.56273115",
"0.5623416",
"0.56142414"
] | 0.0 | -1 |
Remueve un producto del carrito de compras. | Boolean remover(String userName, Long idProducto); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void borrarProducto() {\n }",
"public void eliminarCompraComic();",
"private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }",
"void removeProduct(Product product);",
"public Fraccion producto() {\r\n Fraccion producto = new Fraccion(operador1.getNumerador()*operador2.getNumerador() , operador1.getDenominador()*operador2.getDenominador());\r\n return simplify(producto);\r\n }",
"@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }",
"private void removeAllWeightBasedProduct(Product product){\n total-= cartItems.get(product.name).cost();\n noOfItems--;\n cartItems.remove(product.name);\n }",
"public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }",
"public void reubicarProductosUltimaCaja(DTOListaPicadoCabecera listaPicado, ArrayList tiposCajas, ArrayList volumenProductos, ArrayList cajas, int numeroCajas) throws MareException {\n UtilidadesLog.info(\"MONCalculoCubicaje.reubicarProductosUltimaCaja(DTOListaPicadoCabecera listaPicado, ArrayList tiposCajas, ArrayList volumenProductos, ArrayList cajas, Integer numeroCajas): Entrada\");\n \n if(numeroCajas > 1){\n UtilidadesLog.debug(\"Hay mas de una caja\");\n \n // sapaza -- Cambios para WCS y MUO -- 22/09/2010\n DTOTipoCajaEmbalaje ultimaCaja = null;\n for(int j=cajas.size()-1; j>=0;j--) {\n ultimaCaja = (DTOTipoCajaEmbalaje)cajas.get(j);\n \n if(ultimaCaja.getCapacidad()==null)\n continue;\n else\n break;\n }\n \n if(ultimaCaja.getCapacidad() != null) {\n \n BigDecimal volumenUtilizadoUltimaCaja = ultimaCaja.getCapacidad().subtract(ultimaCaja.getVolumenSobrante()); \n \n UtilidadesLog.debug(\"volumenUtilizadoUltimaCaja: \" + volumenUtilizadoUltimaCaja);\n UtilidadesLog.debug(\"ultimaCaja.getCapacidadMinima(): \" + ultimaCaja.getCapacidadMinima());\n \n DTOTipoCajaEmbalaje cajaAuxiliar = null ;\n \n if(volumenUtilizadoUltimaCaja.compareTo(ultimaCaja.getCapacidadMinima())==-1){\n // Arma lista con los detalles a modificar\n ArrayList detallesAModificar = new ArrayList();\n int cantProd = listaPicado.getDetalles().size();\n ArrayList detalles = listaPicado.getDetalles();\n DTOListaPicadoDetalle dtoListaPicadoDetalle = null;\n \n for (int j = 0; j < cantProd; j++) {\n dtoListaPicadoDetalle = (DTOListaPicadoDetalle)detalles.get(j);\n \n if((dtoListaPicadoDetalle.getNumeroCaja()!= null) && (dtoListaPicadoDetalle.getNumeroCaja().longValue()== numeroCajas)){\n detallesAModificar.add(dtoListaPicadoDetalle);\n }\n }\n \n // Busca una caja menor para los productos\n int cantTiposCajas = tiposCajas.size();\n DTOTipoCajaEmbalaje dtoTipoCajaEmbalaje = null;\n \n for(int i=0; i< cantTiposCajas; i++){\n dtoTipoCajaEmbalaje = (DTOTipoCajaEmbalaje)tiposCajas.get(i);\n UtilidadesLog.debug(\"dtoTipoCajaEmbalaje: \" + dtoTipoCajaEmbalaje);\n \n if(volumenUtilizadoUltimaCaja.compareTo(dtoTipoCajaEmbalaje.getCapacidad())==-1){\n cajaAuxiliar = (DTOTipoCajaEmbalaje)deepCopy(dtoTipoCajaEmbalaje);\n }\n }\n \n // Asigna los productos a la caja menor\n if(cajaAuxiliar!=null){\n int cantDetMod = detallesAModificar.size();\n \n for(int k=0; k < cantDetMod; k++){\n dtoListaPicadoDetalle = (DTOListaPicadoDetalle)detallesAModificar.get(k);\n dtoListaPicadoDetalle.setOidTipoCajaEmbalaje(cajaAuxiliar.getOid());\n dtoListaPicadoDetalle.setDescripcionTipoCajaEmbalaje(cajaAuxiliar.getDescripcion());\n }\n } else {\n UtilidadesLog.debug(\"No se encontró una caja no realizamos ninguna acción\");\n } \n }\n }\n \n }\n UtilidadesLog.info(\"MONCalculoCubicaje.reubicarProductosUltimaCaja(DTOListaPicadoCabecera listaPicado, ArrayList tiposCajas, ArrayList volumenProductos, ArrayList cajas, Integer numeroCajas): Salida\");\n }",
"public void supprimerEpsilonProd(){\n grammaireCleaner.supprimer_epsilon_prod();\n setChanged();\n notifyObservers(\"4\");\n }",
"public void removeAllVariantBasedProduct(Product product){\n /*\n Using for loop because we want to delete all the variants of that particular product\n */\n for(Variant variant : product.variants){\n String key = product.name + \" \" + variant.name;\n if(cartItems.containsKey(key)){\n total-= cartItems.get(key).cost();\n noOfItems--;\n cartItems.remove(key);\n }\n }\n }",
"public void quitarProducto(String producto) {\n\t\t this.compras.remove(producto);\n\t\t this.datosCompras.remove(producto);\n\t}",
"public static void ocultar_productos()\n {\n for (int i = 0; i < array_productos.size(); i++)\n array_productos.get(i).setAlpha(Constantes.IMAGE_ALPHA);\n }",
"public void product() {\n if (System.currentTimeMillis() >= endTime) {\n try {\n Unit unit = units.get(0);\n units.remove(unit);\n unit.getBehavior().setTarget(null);\n } catch (IndexOutOfBoundsException e) {\n\n }\n }\n }",
"private static void removerProduto() throws Exception {\r\n int id;\r\n boolean erro, result;\r\n System.out.println(\"\\t** Remover produto **\\n\");\r\n System.out.print(\"ID do produto a ser removido: \");\r\n id = read.nextInt();\r\n if (indice_Produto_Cliente.lista(id).length != 0) {\r\n System.out.println(\"Esse produto não pode ser removido pois foi comprado por algum Cliente!\");\r\n } else {\r\n do {\r\n erro = false;\r\n System.out.println(\"\\nRemover produto?\");\r\n System.out.print(\"1 - SIM\\n2 - NÂO\\nR: \");\r\n switch (read.nextByte()) {\r\n case 1:\r\n result = arqProdutos.remover(id - 1);\r\n if (result) {\r\n System.out.println(\"Removido com sucesso!\");\r\n } else {\r\n System.out.println(\"Produto não encontrado!\");\r\n }\r\n break;\r\n case 2:\r\n System.out.println(\"\\nOperação Cancelada!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpção Inválida!\\n\");\r\n erro = true;\r\n break;\r\n }\r\n } while (erro);\r\n }\r\n }",
"public static void productoFinalizado(){\r\n System.out.println(\"Imprimo Producto Finalizado\");\r\n }",
"private void eliminarProducto(HttpServletRequest request, HttpServletResponse response) {\n\t\tString codArticulo = request.getParameter(\"cArticulo\");\n\t\t// Borrar producto de la BBDD\n\t\ttry {\n\t\t\tmodeloProductos.borrarProducto(codArticulo);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Volver al listado con la info actualizada\n\t\tobtenerProductos(request, response);\n\n\t}",
"public void Deleteproduct(Product objproduct) {\n\t\t\n\t}",
"public void removeProduct(ProductBarcode code) throws NoSuchElementException;",
"@Quando(\"^Alterar a quantidade de produtos para compra acima do aceitavel no carrinho$\")\n\tpublic void alterar_a_quantidade_de_produtos_para_compra_acima_do_aceitavel_no_carrinho() throws Throwable {\n\t\tString txt_Quantidade = pegaMassa.QuantidadeProduto();\n\t\tpesquisaPage.quantidadeProduto(txt_Quantidade);\n\t}",
"@Override\r\n\tpublic List<Product> applyPromo(Product product, String promoCode) {\n\t\treturn null;\r\n\t}",
"public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}",
"public void eliminar(Producto producto) throws BusinessErrorHelper;",
"public void comprarProducto(Producto producto) throws Exception{\n try{\n if(this.productosEnVenta.contains(producto)){\n throw new suProducto();\n }\n producto.getVendedor().venderProducto(producto, this);\n producto.setComprador(this);\n this.productosComprados.add(producto);\n \n }catch(Exception e){\n throw e;\n } \n }",
"public void deleteProduct(Product product_1) {\n\r\n\t}",
"private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}",
"public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}",
"public void recolheMao() {\n\t\tcartas[0].visible = false;\n\t\tfor (int i = 4; i <= 15; i++) {\n\t\t\tCartaVisual c = cartas[i];\n\t\t\tif ((c.top != topBaralho) || (c.left != leftBaralho)) {\n\t\t\t\tc.movePara(leftBaralho, topBaralho, 100);\n\t\t\t\tc.setCarta(null);\n\t\t\t\tc.descartada = false;\n\t\t\t\tcartasJogadas.remove(c);\n\t\t\t}\n\t\t}\n\t}",
"private void removeProducto(int position) {\n losproductos.remove(position);\n // Notificamos de un item borrado en nuestro array\n eladaptador.notifyItemRemoved(position);\n }",
"public void eliminarProductoComprado(int id, boolean usarNumeroProducto){\n if(usarNumeroProducto){\n Iterator<Producto> itr = listaProductosComprados.iterator();\n while(itr.hasNext()){\n Producto temp = itr.next();\n if(temp.obtenerNumeroProducto()==id){\n itr.remove();\n }\n }\n }else{\n if(id>=0 && id < listaProductosComprados.size()){\n listaProductosComprados.remove(id);\n }\n }\n }",
"public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n ElementoLista elementoTemporarioAnteriorAtual = this.primeiro;\n ElementoLista elementoTemporarioAtual = this.primeiro.irParaProximo();\n for (int i = 1; i < totalElementos(); i++) {\n elementoTemporarioAnteriorAtual = elementoTemporarioAtual;\n elementoTemporarioAtual = elementoTemporarioAtual.irParaProximo();\n }\n\n this.ultimo = elementoTemporarioAnteriorAtual;\n this.ultimo.definirProximo(null);\n this.total--;\n }\n //this.ultimo = this.ultimo.irParaAnterior();\n //this.ultimo.definirProximo(null);\n }",
"public void supprimerImproductifs(){\n grammaireCleaner.nettoyNonProdGramm();\n setChanged();\n notifyObservers(\"2\");\n }",
"public UpdateProduct() {\n\t\tsuper();\t\t\n\t}",
"public void removeAll(Product product){\n if(product.type == ProductType.TYPE_WB){\n removeAllWeightBasedProduct(product);\n }else{\n removeAllVariantBasedProduct(product);\n }\n }",
"@Override\r\n\tpublic int updateProduct(Product product) {\n\t\treturn 0;\r\n\t}",
"public Product Product() {\n return null;\n }",
"private void finalizarButtonActionPerformed(java.awt.event.ActionEvent evt) {\n try{\n String val = compraFinalFormattedTextField.getText();\n val = filterVal(val);\n String nome = clientNomeTextField.getText();\n String date = dateTextField.getText();\n float total = Float.parseFloat(val);\n finances.compra currCompra = f.new compra(nome,total,metodo,date);\n currCompra.prod.addAll(realizarVenda.compra);\n Estoque.allFinances.get(Estoque.allFinances.size()-1).vendas.add(currCompra);\n Estoque.allFinances.get(Estoque.allFinances.size()-1).valorBruto += currCompra.valorTotal;\n for(produtos.produto p: currCompra.prod){\n for(produtos.produto p2:Estoque.allProdArray){\n if(p.nome.equals(p2.nome)){\n p2.quantidade -= p.quantidade;\n }\n }\n }\n realizarVenda.compra.clear();\n float temp = 0.0f;\n for(produtos.produto p:Estoque.allProdArray){\n temp += (p.quantidade*p.valor.valor_final);\n }\n Estoque.allFinances.get(Estoque.allFinances.size()-1).valorProdutos = temp;\n this.dispose();\n }catch(Exception e){\n errorTextField.setText(String.valueOf(e));\n }\n }",
"public void guardarProductosComprados() {\n try {\n //Si hay datos los guardamos...\n if (!productosComprados.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosComprados\n FileOutputStream archivo = new FileOutputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosComprados\n guardar.writeObject(productosComprados);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"@Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, -1);\n }",
"private List<Product> getProductListFromRs(ResultSet productRs) throws SQLException {\n\t\t/*\n\t\t * Preleviamo il contenuto della tabella COMPOSIZIONE e lo inseriamo in una\n\t\t * struttura associativa in cui la chiave è un codice prodotto (univoco) e\n\t\t * e il valore è la lista dei materiali di cui il prodotto è composto.\n\t\t */\n\t\tStatement compositionStm = null;\n\t\tResultSet compositionRs = null;\n\t\tMap<Integer,List<String>> materialsMap = new HashMap<Integer,List<String>>();\n\t\ttry{\n\t\t\tcompositionStm = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM COMPOSIZIONE;\";\n\t\t\tcompositionRs = compositionStm.executeQuery(sql);\n\t\t\t\n\t\t\twhile(compositionRs.next()){\n\t\t\t\tInteger codiceProdotto = compositionRs.getInt(\"CODICEPRODOTTO\");\n\t\t\t\tif(materialsMap.containsKey(codiceProdotto)){\n\t\t\t\t\tmaterialsMap.get(codiceProdotto).add(compositionRs.getString(\"MATERIALE\"));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tArrayList<String> newMaterialList = new ArrayList<String>();\n\t\t\t\t\tnewMaterialList.add(compositionRs.getString(\"MATERIALE\"));\n\t\t\t\t\tmaterialsMap.put(compositionRs.getInt(\"CODICEPRODOTTO\"), newMaterialList);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcompositionStm.close(); // Chiude anche il ResultSet compositionRs\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"DB issue: failed to retrive product data from database.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\t/*\n\t\t * Produciamo la lista dei prodotti.\n\t\t */\n\t\tList<Product> productList = new ArrayList<Product>();\n\t\twhile(productRs.next()){\n\t\t\tProduct p = new Product();\n\t\t\tp.setCode(productRs.getInt(\"CODICE\")); //AUTOBOXING\n\t\t\tp.setName(productRs.getString(\"NOMEPRODOTTO\"));\n\t\t\tp.setLine(productRs.getString(\"LINEA\"));\n\t\t\tp.setType(productRs.getString(\"TIPO\"));\n\t\t\tp.setImages(productRs.getString(\"IMMAGINI\"));\n\t\t\tp.setAvailableUnits(productRs.getInt(\"UNITADISPONIBILI\"));\n\t\t\t/*\n\t\t\t * getInt() returns:\n\t\t\t * the column value; if the value is SQL NULL, the value returned is 0\n\t\t\t */\n\t\t\tp.setMinInventory(productRs.getInt(\"SCORTAMINIMA\")); // 0 di default\n\t\t\tp.setPrice(productRs.getBigDecimal(\"PREZZOVENDITA\"));\n\t\t\tp.setCost(productRs.getBigDecimal(\"PREZZOACQUISTO\"));\n\t\t\t/*\n\t\t\t * SQLite non ha un tipo esplicito per le date. Il metodo getTimeStamp()\n\t\t\t * non riesce ad interprestare la data correttamente. Si utilizza\n\t\t\t * il metodo getString() anche se ci� non rappresenta la migliore pratica.\n\t\t\t */\n\t\t\tp.setInsertDate(LocalDateTime.parse(productRs.getString(\"DATAINSERIMENTO\")));\n\t\t\tp.setDescription(productRs.getString(\"DESCRIZIONE\"));\n\t\t\tp.setDeleted(productRs.getBoolean(\"ELIMINATO\"));\n\t\t\t\n\t\t\t// LocalDateTime.parse(null) or LocalDateTime.parse(\"\") would throw an exception\n\t\t\tif(productRs.getString(\"DATAELIMINAZIONE\") != null && !productRs.getString(\"DATAELIMINAZIONE\").equals(\"\")) {\n\t\t\t\tp.setDeletionDate(LocalDateTime.parse(productRs.getString(\"DATAELIMINAZIONE\")));\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Preleviamo dalla struttura dati associativa la lista dei materiali\n\t\t\t * di fabbricazione per il corrente prodotto e aggiorniamo il campo\n\t\t\t * relativo del bean \"Product\".\n\t\t\t */\n\t\t\ttry{\n\t\t\t\tp.setMaterials(materialsMap.get(productRs.getInt(\"CODICE\")));\n\t\t\t}\n\t\t\tcatch(ClassCastException cce){\n\t\t\t\tSystem.out.println(\"Map issue: key not comparable.\\n\");\n\t\t\t\tSystem.out.println(cce.getClass().getName() + \": \" + cce.getMessage());\n\t\t\t}\n\t\t\tcatch(NullPointerException npe){\n\t\t\t\tSystem.out.println(\"Map issue: invalid Key.\\n\");\n\t\t\t\tSystem.out.println(npe.getClass().getName() + \": \" + npe.getMessage());\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Aggiungiamo il prodotto alla lista.\n\t\t\t */\n\t\t\tproductList.add(p);\n\t\t}\n\t\t\n\t\treturn productList;\n\t}",
"Sorpresa devolverCartaLibertad(){\n //Apuntamos a la carta libertad\n Sorpresa cartaLibertadDevuelta = this.cartaLibertad;\n \n //Se anula la carta en el jugador\n this.cartaLibertad = null;\n \n return cartaLibertadDevuelta;\n }",
"public void cargarProductosComprados() {\n try {\n //Lectura de los objetos de tipo productoComprado\n FileInputStream archivo= new FileInputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosComprados = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"public void modificarCompraComic();",
"public String product() {\n return this.product;\n }",
"public void removeCarritoDeCompras (Long compradorId) {\r\n\r\n CompradorEntity compradorEntity = compradorPersistence.find(compradorId); \r\n CarritoDeComprasEntity carroEntity = carroPersistence.find(compradorEntity.getCarritoDeCompras().getId());\r\n carroPersistence.delete(compradorEntity.getListaDeDeseos().getId());\r\n compradorEntity.setListaDeDeseos(null);\r\n carroEntity.setComprador(null);\r\n \r\n}",
"public IProduct tryHandoutProduct() {\n // No sync, because called between barriers anyway\n Product product = self.getOutputBuffer().tryRemoveProduct();\n env.updateMachine(self);\n return product;\n }",
"@Override\r\n public void removeProduct(ProductBarcode code) throws NoSuchElementException\r\n {\r\n \tif (products.contains(code))\r\n {\r\n products.remove(code);\r\n }\r\n else\r\n {\r\n throw new NoSuchElementException(\"Product not in this container!\");\r\n }\r\n }",
"private static void VeureProductes (BaseDades bd) {\n ArrayList <Producte> llista = new ArrayList<Producte>();\n llista = bd.consultaPro(\"SELECT * FROM PRODUCTE\");\n if (llista != null)\n for (int i = 0; i<llista.size();i++) {\n Producte p = (Producte) llista.get(i);\n System.out.println(\"ID=>\"+p.getIdproducte()+\": \"\n +p.getDescripcio()+\"* Estoc: \"+p.getStockactual()\n +\"* Pvp: \"+p.getPvp()+\" Estoc Mínim: \"\n + p.getStockminim());\n }\n }",
"public void RemoveproductCartSaucedemo() {\n\t\t\t\t\tdriver.findElement(RemoveProduct).click();\n\t\t\n\t\t\t\t}",
"void unsetProductGroup();",
"public void removeJpmProductSaleNew(final Long uniNo);",
"private void setProductos(int botonInicial, int botonFinal)\n {\n if(lp != null)\n {\n NombreCategoria.setText(lp.get(0).getCategoria().toUpperCase());\n ImageIcon img;\n int i = 0, j;\n for (i = botonInicial; i < botonFinal; i++) \n {\n j = i % NUMPRODUCTOS;\n productos[j].setVisible(true);\n nombreProductos[j].setVisible(true);\n img = new ImageIcon(lp.get(i).getImagenesEnBuffer()[0]);\n productos[j].setIcon(new ImageIcon(img.getImage().getScaledInstance(AnchoProductoBoton,\n AltoProductoBoton, java.awt.Image.SCALE_DEFAULT)));\n nombreProductos[j].setText(recortarCadena(lp.get(i).getNombre()));\n producto[j] = lp.get(i);\n }\n i = botonFinal - botonInicial;\n for (; i < NUMPRODUCTOS; i++) \n {\n productos[i].setVisible(false);\n nombreProductos[i].setVisible(false);\n }\n }\n \n }",
"public ConfigProductWithOriginalPriceDetailPage removeProductGalleryFromConfigProductWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new ConfigProductWithOriginalPriceDetailPage();\n }",
"public ActualizarProducto() {\n initComponents();\n }",
"public void getNameCostProduct() {\n\t\t\t\tgetNameCostProduct(0);\n\t\t\t}",
"public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}",
"@Override\r\n\tpublic int deleteProduct(Product product) {\n\t\treturn 0;\r\n\t}",
"public SimpleProduct1WithOriginalPriceDetailPage removeProductGalleryFromSimpleProduct1tWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct1WithOriginalPriceDetailPage();\n }",
"public void eliminarControlProducto(RequisitoConformidadDto control) {\n\t\tcurrentPao.getListaRequisitosConformidad().remove(control);\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tcontext.addMessage(null, new FacesMessage(\"Mensaje\", \"Se eliminó control de producto correctamente\"));\r\n\t}",
"public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }",
"void removeProduct(int position) throws ProductNotFoundException;",
"public static void apagarProduto(){\n if(ListaDProduto.size() == 0){\n SaidaDados(\"Nehum produto cadastrado!!\");\n return;\n }\n \n String pesquisarNome = Entrada(\"Informe o nome do produto que deseja deletar: \");\n for(int i =0; i < ListaDProduto.size(); i++){\n \n Produto produtoProcurado = ListaDProduto.get(i);\n \n if(pesquisarNome.equalsIgnoreCase(produtoProcurado.getNome())){\n ListaDProduto.remove(i);\n SaidaDados(\"Produto deletado com sucesso!!\");\n }\n \n }\n \n }",
"public SimpleProduct4WithOriginalPriceDetailPage removeProductGalleryFromSimpleProduct4tWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct4WithOriginalPriceDetailPage();\n }",
"@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}",
"private void removeProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id - \");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id - \");\n\t\t\t}\n\t\t\tCartController.getInstance().removeProductFromCart(productId);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}",
"public void reduct() {\n\t\tint divider = bunmo;\n\t\tif(bunja < bunmo){\n\t\t\tdivider = bunja;\n\t\t}\n\t\twhile(divider > 1){\n//\t\twhile(!util.Uitl.isPrime(bunmo)||!util.Uitl.isPrime(bunja)){\n\t\t\tboolean canDivide = (bunmo%divider==0)&&(bunja%divider==0);\n\t\t\tif(canDivide){\n\t\t\t\tbunja/=divider;\n\t\t\t\tbunmo/=divider;\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdivider--;\n\t\t\t}\n\t\t}\n\t}",
"public void borrar() {\n\t\tmiPintor.borrar();\n\t\tlienzo.refrescar();\n\t\t\n\t}",
"public SimpleProductWithSpecialPriceDetailPage removeProductGalleryFromSimpleProducttWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProductWithSpecialPriceDetailPage();\n }",
"public void actualisePrixDeVente(){\n\t\tArrayList<Catalogue> lis = new ArrayList<Catalogue>();\n\t\tfor (ITransformateur t : this.getTransfos()) {\n\t\t\tlis.add(t.getCatalogue());\n\t\t}\n\t\tthis.setCatalogues(lis);\n\t\tthis.setPrixDeVente();\n\t}",
"Object getProduct();",
"private void productosButtonActionPerformed(java.awt.event.ActionEvent evt) {\n actualizarProductos();\n }",
"public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}",
"public ConfigProductWithSpecialPriceDetailPage removeProductGalleryFromConfigProductWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new ConfigProductWithSpecialPriceDetailPage();\n }",
"public ProductoNoElaborado() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }",
"public String getProduct() {\r\n return this.product;\r\n }",
"public void listarProducto() {\n }",
"static void productoEscalarMatriz() {\r\n\r\n System.out.println(\"PRODUCTO ESCALAR X MATRIZ \\n\");\r\n setup(false);\r\n String valor = inputDialog(\"Inserte un escalar\", \"Escalar\", JOptionPane.INFORMATION_MESSAGE);\r\n int escalar = Integer.parseInt(valor);\r\n matrizA.productoEscalarMatriz(escalar);\r\n messageDialog(\"La matriz resultante al multiplicar por el escalar \" + escalar + \", es: \\n\" + matrizA.datosMatrizNumeros(), \"Producto escalar\", 3);\r\n\r\n }",
"public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }",
"public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }",
"public String getProduct() {\n return product;\n }",
"public String getProduct() {\n return product;\n }",
"protected ArrayList efetuarCompra(ArrayList<Produto> produtosCtlg){\n for (int i=0; i<itens.size(); i++){\r\n for (int j=0; j<produtosCtlg.size(); j++){\r\n if (itens.get(i).getId() == produtosCtlg.get(j).getId()){\r\n produtosCtlg.get(j).setQuantidade(itens.get(i).getQtdPedida());\r\n }\r\n }\r\n }\r\n return itens;\r\n }",
"@Override\n public Productor getProductor() {\n return new ProductorImp1();\n }",
"public void supprimerParcelle() {\n\t\tboolean isEmpty=false;\n\t\tint nbParcelleSup=0;\n\t\tList<String> nomParcellesNonSupprimees = new ArrayList<>();\n\t\tList<String> nomParcellesSupprimees = new ArrayList<>();\n\n\t\tfor (String emplacement : emplacementsSelectionneesFromJS.split(\"-\")) {\n\t\t\tnbParcelleSup++;\n\n\t\t\tif (!isEmpty(emplacement)){\n\t\t\t\tString[] refEmplacement= emplacement.split(\"_\");\n\t\t\t\tint numLigne = Integer.parseInt(refEmplacement[0]);\n\t\t\t\tint numColonne = Integer.parseInt(refEmplacement[1]);\n\t\t\t\tEmplacement e = obtenirEmplacement(numLigne,numColonne);\n\n\t\t\t\tif(e != null && notHaveTachePlanified(parcelle).equals(\"true\") ) {\n\t\t\t\t\t// Suppression de la parcelle \n\t\t\t\t\tthis.parcelle = e.getParcelle();\n\t\t\t\t\taffecterDateRetraitPuisMAJParcelleEnBase(parcelle);\n\t\t\t\t\tnomParcellesSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t\tSystem.out.println(\"Supprimer Parcelle OK \");\n\t\t\t\t}else {\n\t\t\t\t\tnomParcellesNonSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t//Probleme de selection d'emplacement\n\t\t\t\tisEmpty=true;\n\t\t\t}\n\t\t}\n\n\t\tif(isEmpty&&nbParcelleSup==1) {\n\t\t\tmsgInfoActionGrilleJS=\"Erreur : La selection ne correspond à aucune parcelle !\";\n\t\t\tetatMsgInfoGrilleJS=\"color:red;\";\n\t\t\tSystem.out.println(\"Supprimer Parcelle KO : L'emplacement selectionnee n'est pas affecté à une parcelle \");\n\t\t}else {\n\t\t\tif(nbParcelleSup>1) {\n\t\t\t\tString listeLibelleParcellesSupprimees=\"\";\n\t\t\t\tString listeLibelleParcellesNonSupprimees=\"\";\n\n\t\t\t\tfor (String string : nomParcellesSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tfor (String string : nomParcellesNonSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesNonSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesSupprimees.length()>0) {\n\t\t\t\t\tint i = listeLibelleParcellesSupprimees.length()-2;\n\t\t\t\t\tmsgInfoActionGrilleJS=\"Les parcelles ' \"+listeLibelleParcellesSupprimees.substring(0, i)+\" ' ont bien été retirées !\";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesNonSupprimees.length()>0) {\n\t\t\t\t\tint j = listeLibelleParcellesNonSupprimees.length()-2;\n\n\t\t\t\t\tmsgInfoActionGrilleJS=\"\\n Attention : Les parcelles ' \"+listeLibelleParcellesNonSupprimees.substring(0, j)+\" ' n'ont pas pu être supprimées (Taches en cours ou emplamcement vide)!\";\n\t\t\t\t}\n\n\t\t\t}else {\n\t\t\t\tmsgInfoActionGrilleJS=\"La parcelle '\"+parcelle.getLibelleParcelle()+\"'a bien été retirée !\";\n\t\t\t}\n\t\t\tetatMsgInfoGrilleJS=\"color:green;\";\n\t\t}\n\t\tthis.clearForm();\n\t}",
"@Override\r\n\tpublic Product updateProduct(Product s) {\n\t\treturn null;\r\n\t}",
"private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"private void atualizarPalitos() {\n Jogador jogador = servidor.getJogador(nomeJogador);\n LugarModelo lugarModelo = listaLugares.get(jogador.lugar - 1);\n lugarModelo.getMao().setText(jogador.quantidadePalitosApostados + \" Palitos\");\n lugarModelo.getQuantidadePalitosRestantes().setText(\"Palitos Restante: \" + jogador.quantidadePalitosRestantes + \"\");\n }",
"public void Addproduct(Product objproduct) {\n\t\t\n\t}",
"public String getProduct() {\n return this.product;\n }",
"void desalocar(Processo processo) {\n for (int r = 0; r < size(); r++) {\n if (get(r).idProcesso == processo.getId()) {\n //TODO Marcar o bloco como livre\n get(r).espaçoUsado = 0;\n get(r).idProcesso = -1;\n }\n }\n }",
"public void eliminaBD() {\r\n CBD.openConexion();\r\n //------Reune los datos de producto con id--------------//\r\n String A = CBD.getInveID(II.lblid.getText());\r\n String B[] = A.split(\",\");\r\n //------Reune los datos de producto con id--------------//\r\n //------Verifica si la cantidad es 0--------------//\r\n if (Integer.parseInt(B[5]) == 0) {\r\n //------Elimina--------------//\r\n if(CBD.deleteDBProd(\"[ID PRODUCTO]\", B[7])){\r\n JOptionPane.showMessageDialog(II, \"Producto eliminado\");\r\n }else{\r\n JOptionPane.showMessageDialog(II, \"Error producto no pudo ser eliminado\");\r\n }\r\n //------Elimina--------------//\r\n } else {\r\n JOptionPane.showMessageDialog(II, \"No puedes eliminar un producto si su existencia es mayor a 0\");\r\n }\r\n CBD.closeConexion();\r\n }",
"public void removeOperador() {\r\n\t\toperadorLaboratorio=null;\r\n\t}",
"public String getProduct()\n {\n return product;\n }",
"public Carta sacarCarta()\n {\n Carta cartaADevolver = null;\n if(mazo.size() > 0){\n cartaADevolver = mazo.remove(0);\n }\n return cartaADevolver;\n }",
"public void removerInicio() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n this.primeiro = this.primeiro.irParaProximo();\n this.total--;\n break;\n }\n }",
"public Producto getProducto() {\n\t\treturn producto;\n\t}",
"private void resetProp(){\n proposition.clear();\n for (int i = 0; i<tailleCombinaison; i++) {\n proposition.add(\"-1\");\n }\n }",
"@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}",
"public void eliminar(Producto producto) throws IWDaoException;",
"public void cbxProductosScript(JComboBox cbxCantidad, JComboBox cbxProductos, JLabel jLabelTotal) { //\n cbxCantidad.removeAllItems();\n bodega Bodega = new bodega();\n for (producto Producto : Bodega.getProductosList()) {\n if (Producto.getNombreProducto() == cbxProductos.getSelectedItem()) {\n jLabelTotal.setText(String.valueOf(Producto.getPrecioProducto()));\n for (int i = 1; i < Producto.getStockProducto() + 1; i++) {\n cbxCantidad.addItem(String.valueOf(i));\n }\n if (Producto.getStockProducto() == 0) {\n jLabelTotal.setText(\"No hay Stock\");\n } else {\n jLabelTotal.setText(String.valueOf(Producto.getPrecioProducto()));\n }\n\n }\n }\n }"
] | [
"0.6971192",
"0.6386192",
"0.6352727",
"0.6344998",
"0.62930167",
"0.6284935",
"0.62833023",
"0.62199146",
"0.61577344",
"0.61105055",
"0.6048645",
"0.598201",
"0.59771746",
"0.5938128",
"0.5897269",
"0.58717746",
"0.5860727",
"0.58493114",
"0.5835581",
"0.58251035",
"0.5784011",
"0.5765224",
"0.5759261",
"0.5752743",
"0.5744881",
"0.5708727",
"0.57067734",
"0.5700485",
"0.5695937",
"0.5685576",
"0.5670258",
"0.56525075",
"0.56414413",
"0.5624434",
"0.562424",
"0.5616168",
"0.56059885",
"0.55935806",
"0.5589284",
"0.558842",
"0.5587496",
"0.5570198",
"0.5555765",
"0.5545643",
"0.55416197",
"0.55373144",
"0.5532828",
"0.55196446",
"0.55160487",
"0.5503509",
"0.5492828",
"0.5490174",
"0.5489423",
"0.5486994",
"0.54866654",
"0.5485997",
"0.54835105",
"0.54675525",
"0.5447912",
"0.5443623",
"0.54381746",
"0.5435618",
"0.54275364",
"0.5419728",
"0.5417589",
"0.5414532",
"0.54014844",
"0.5396698",
"0.53956914",
"0.5395666",
"0.5392388",
"0.53903246",
"0.53825307",
"0.53822863",
"0.5379576",
"0.537618",
"0.5375247",
"0.5373607",
"0.5373109",
"0.53709376",
"0.5363405",
"0.5363405",
"0.5360024",
"0.53553516",
"0.5355145",
"0.5353655",
"0.5345549",
"0.5341063",
"0.53360474",
"0.53357196",
"0.5333126",
"0.5332727",
"0.5329731",
"0.53288555",
"0.53275406",
"0.53233916",
"0.5322231",
"0.53200644",
"0.53167063",
"0.53114545",
"0.5310884"
] | 0.0 | -1 |
Retorna la lista de productos que hacen parte del carrito de compras. | List<CarritoProductoResponseDTO> consultarCarritoCompras(String userName,TipoMoneda tipoMoneda); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Product> getFullProductList(){\n\t\t/*\n\t\t * La lista dei prodotti da restituire.\n\t\t */\n\t\tList<Product> productList = new ArrayList<Product>();\n\t\t\n\t\t/*\n\t\t * Preleviamo il contenuto della tabella PRODOTTO.\n\t\t */\n\t\tStatement productStm = null;\n\t\tResultSet productRs = null;\n\t\t\n\t\ttry{\n\t\t\tproductStm = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM PRODOTTO;\";\n\t\t\tproductRs = productStm.executeQuery(sql);\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"DB issue: failed to retrive product data from database.\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tproductList = this.getProductListFromRs(productRs);\n\t\t\tproductStm.close(); // Chiude anche il ResultSet productRs\n\t\t\tConnector.releaseConnection(connection);\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"ResultSet issue 2: failed to retrive data from ResultSet.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\treturn productList;\n\t}",
"private List<Product> getProductListFromRs(ResultSet productRs) throws SQLException {\n\t\t/*\n\t\t * Preleviamo il contenuto della tabella COMPOSIZIONE e lo inseriamo in una\n\t\t * struttura associativa in cui la chiave è un codice prodotto (univoco) e\n\t\t * e il valore è la lista dei materiali di cui il prodotto è composto.\n\t\t */\n\t\tStatement compositionStm = null;\n\t\tResultSet compositionRs = null;\n\t\tMap<Integer,List<String>> materialsMap = new HashMap<Integer,List<String>>();\n\t\ttry{\n\t\t\tcompositionStm = connection.createStatement();\n\t\t\tString sql = \"SELECT * FROM COMPOSIZIONE;\";\n\t\t\tcompositionRs = compositionStm.executeQuery(sql);\n\t\t\t\n\t\t\twhile(compositionRs.next()){\n\t\t\t\tInteger codiceProdotto = compositionRs.getInt(\"CODICEPRODOTTO\");\n\t\t\t\tif(materialsMap.containsKey(codiceProdotto)){\n\t\t\t\t\tmaterialsMap.get(codiceProdotto).add(compositionRs.getString(\"MATERIALE\"));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tArrayList<String> newMaterialList = new ArrayList<String>();\n\t\t\t\t\tnewMaterialList.add(compositionRs.getString(\"MATERIALE\"));\n\t\t\t\t\tmaterialsMap.put(compositionRs.getInt(\"CODICEPRODOTTO\"), newMaterialList);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcompositionStm.close(); // Chiude anche il ResultSet compositionRs\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"DB issue: failed to retrive product data from database.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\t/*\n\t\t * Produciamo la lista dei prodotti.\n\t\t */\n\t\tList<Product> productList = new ArrayList<Product>();\n\t\twhile(productRs.next()){\n\t\t\tProduct p = new Product();\n\t\t\tp.setCode(productRs.getInt(\"CODICE\")); //AUTOBOXING\n\t\t\tp.setName(productRs.getString(\"NOMEPRODOTTO\"));\n\t\t\tp.setLine(productRs.getString(\"LINEA\"));\n\t\t\tp.setType(productRs.getString(\"TIPO\"));\n\t\t\tp.setImages(productRs.getString(\"IMMAGINI\"));\n\t\t\tp.setAvailableUnits(productRs.getInt(\"UNITADISPONIBILI\"));\n\t\t\t/*\n\t\t\t * getInt() returns:\n\t\t\t * the column value; if the value is SQL NULL, the value returned is 0\n\t\t\t */\n\t\t\tp.setMinInventory(productRs.getInt(\"SCORTAMINIMA\")); // 0 di default\n\t\t\tp.setPrice(productRs.getBigDecimal(\"PREZZOVENDITA\"));\n\t\t\tp.setCost(productRs.getBigDecimal(\"PREZZOACQUISTO\"));\n\t\t\t/*\n\t\t\t * SQLite non ha un tipo esplicito per le date. Il metodo getTimeStamp()\n\t\t\t * non riesce ad interprestare la data correttamente. Si utilizza\n\t\t\t * il metodo getString() anche se ci� non rappresenta la migliore pratica.\n\t\t\t */\n\t\t\tp.setInsertDate(LocalDateTime.parse(productRs.getString(\"DATAINSERIMENTO\")));\n\t\t\tp.setDescription(productRs.getString(\"DESCRIZIONE\"));\n\t\t\tp.setDeleted(productRs.getBoolean(\"ELIMINATO\"));\n\t\t\t\n\t\t\t// LocalDateTime.parse(null) or LocalDateTime.parse(\"\") would throw an exception\n\t\t\tif(productRs.getString(\"DATAELIMINAZIONE\") != null && !productRs.getString(\"DATAELIMINAZIONE\").equals(\"\")) {\n\t\t\t\tp.setDeletionDate(LocalDateTime.parse(productRs.getString(\"DATAELIMINAZIONE\")));\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Preleviamo dalla struttura dati associativa la lista dei materiali\n\t\t\t * di fabbricazione per il corrente prodotto e aggiorniamo il campo\n\t\t\t * relativo del bean \"Product\".\n\t\t\t */\n\t\t\ttry{\n\t\t\t\tp.setMaterials(materialsMap.get(productRs.getInt(\"CODICE\")));\n\t\t\t}\n\t\t\tcatch(ClassCastException cce){\n\t\t\t\tSystem.out.println(\"Map issue: key not comparable.\\n\");\n\t\t\t\tSystem.out.println(cce.getClass().getName() + \": \" + cce.getMessage());\n\t\t\t}\n\t\t\tcatch(NullPointerException npe){\n\t\t\t\tSystem.out.println(\"Map issue: invalid Key.\\n\");\n\t\t\t\tSystem.out.println(npe.getClass().getName() + \": \" + npe.getMessage());\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Aggiungiamo il prodotto alla lista.\n\t\t\t */\n\t\t\tproductList.add(p);\n\t\t}\n\t\t\n\t\treturn productList;\n\t}",
"Product getPProducts();",
"public ArrayList<Product> getAllProducts(){\r\n\t\tArrayList<Product> prods = new ArrayList<Product>();\r\n\t\tIterator<Integer> productCodes = inventory.keySet().iterator();\r\n\t\twhile(productCodes.hasNext()) {\r\n\t\t\tint code = productCodes.next();\r\n\t\t\tfor(Product currProduct : Data.productArr) {\r\n\t\t\t\tif(currProduct.getID() == code) {\r\n\t\t\t\t\tprods.add(currProduct);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prods;\r\n\t}",
"public List<ParProdutoQuantidade> produtosMaisComprados(String cliente){\r\n Map<String, Integer> m = new HashMap<>();\r\n for (int i = 0; i < this.numFiliais; i++){\r\n Map<String, Integer> m2 = this.filial.get(i).produtosMaisComprados(cliente);\r\n for (String produto: m2.keySet()){\r\n Integer quantidade = m.get(produto);\r\n if (quantidade == null){\r\n m.put(produto, m2.get(produto));\r\n }\r\n else {\r\n m.put(produto, quantidade + m2.get(produto));\r\n }\r\n }\r\n }\r\n Set<ParProdutoQuantidade> s = new TreeSet<>();\r\n for (String produto: m.keySet()){\r\n s.add(new ParProdutoQuantidade (produto, m.get(produto)));\r\n }\r\n List<ParProdutoQuantidade> l = new ArrayList<>();\r\n for (ParProdutoQuantidade p: s){\r\n l.add(p);\r\n }\r\n return l;\r\n }",
"public List<Produto> buscarProdutos(){\n return new ArrayList<>();\n }",
"public ArrayList<Producto> ListaProductos() {\n ArrayList<Producto> list = new ArrayList<Producto>();\n \n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto;\");\n while(result.next()) {\n Producto nuevo = new Producto();\n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n list.add(nuevo);\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return list;\n }",
"public Productos1[] buscarTodos() {\n\t\treturn productosColeccion.values().toArray(new Productos1[productosColeccion.size()]);// y te mide lo que ocupa procutosColeccion.\r\n\r\n\t}",
"ArrayList<Product> ListOfProducts();",
"private List<Product> extractProducts() {\r\n\t\t//load products from hidden fields\r\n\t\tif (this.getListProduct() != null){\r\n\t\t\tfor(String p : this.getListProduct()){\r\n\t\t\t\tProduct product = new Product();\r\n\t\t\t\tproduct.setId(Long.valueOf(p));\r\n\t\t\t\tthis.products.add(product);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn this.products;\r\n\t}",
"public static List<Product> getProductList() {\n\n ArrayList<Product> list = new ArrayList<>();\n\n //Creating Products\n Product product1 = new Product(1, \"Call of Duty 1\");\n Product product2 = new Product(2, \"Call of Duty 2\");\n Product product3 = new Product(3, \"Final Fantasy XVI\");\n Product product4 = new Product(5, \"Final Fantasy X\");\n Product product5 = new Product(6, \"XCOM\");\n Product product6 = new Product(7, \"Borderland 2\");\n Product product7 = new Product(8, \"Red Dead Redemption 2\");\n Product product8 = new Product(9, \"Uncharted: The Lost Legacy\");\n\n //Populating the ArrayList with Product objects\n list.add(product1);\n list.add(product2);\n list.add(product3);\n list.add(product4);\n list.add(product5);\n list.add(product6);\n list.add(product7);\n list.add(product8);\n\n return list;\n }",
"public List<Propriedade> getListaDePropriedadesComMonopolio(){\r\n List<Propriedade> proComMonopolio = new ArrayList<>();\r\n for(Propriedade pro: this.propriedadesDoJogador){\r\n for(String cor: this.monopolioNoGrupoDeCor){\r\n if(pro.getCor().equals(cor)){\r\n proComMonopolio.add(pro);\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return proComMonopolio;\r\n }",
"public ArrayList<Producto> getProductos() {\r\n return productos;\r\n }",
"public Product[] getAll() {\n Product[] list = new Product[3];\n try {\n list[0] = products[0].clone();\n list[1] = products[1].clone();\n list[2] = products[2].clone();\n } catch (CloneNotSupportedException ignored) {}\n\n return list;\n }",
"public List<Prodotto> getListaProdotti() {\n\t\treturn Shop.getInstance().getProdotti();\n\t}",
"public ArrayList getOrdenCartas();",
"List<Product> list();",
"public List<Produto> listar() {\n return manager.createQuery(\"select distinct (p) from Produto p\", Produto.class).getResultList();\n }",
"public List getProdutos() {\n\t\treturn null;\n\t}",
"List<Product> getProductsList();",
"@Override\r\n\tprotected List<Producto> filtrar(Comercio comercio) {\r\n\t\tList<Producto> resultado= new ArrayList<Producto>();\r\n\t\tfor(Producto pAct:comercio.getProductos()){\r\n\t\t\tif(pAct.presentacionesSuperanStockCritico())\r\n\t\t\t\tresultado.add(pAct);\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}",
"private JList<ProductoAlmacen> crearListaProductos() {\n\n JList<ProductoAlmacen> lista = new JList<>(new Vector<>(almacen.getProductos()));\n\n lista.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\n lista.setCellRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n ProductoAlmacen productoAlmacen = (ProductoAlmacen) value;\n\n String texto = String.format(\"%s (%d uds.)\", productoAlmacen.getProducto().getNombre(), productoAlmacen.getStock());\n this.setText(texto);\n\n return resultado;\n }\n });\n\n return lista;\n }",
"public void listarProducto() {\n }",
"public List<Product> getProducts();",
"public List<Product> getProducts();",
"public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ancestarmente la colsulta con sql\n Query query = session.createQuery(\"from Producto\");\n // En la consulta hql para saber que consulta agregar se procede a añadirla dandole click izquierdo sobre\n // hibernate.cfg.xml y aquí añadir la correspondiente consulta haciendo referencia a los POJOS\n List<Producto> lista = query.list();\n session.close();\n return lista;\n }",
"public List<Producto> obtenerProductosConfigurados(List<Producto> productos){\n\t\treturn null;\n\t}",
"public ArrayList getCartas();",
"public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}",
"public List<Product> getProductList(){\n List<Product> productList = mongoDbConnector.getProducts();\n return productList;\n }",
"public void cargarProductosComprados() {\n try {\n //Lectura de los objetos de tipo productoComprado\n FileInputStream archivo= new FileInputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosComprados = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}",
"public List<Product> getPriceDscSortedProducts(){\n\t\treturn dao.getAllProducts();\n\t}",
"public ArrayList<String> Info_Disc_Pel_Compras(String genero) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Pel_Rep4(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Peliculas.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3])) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }",
"public List<Producto> getProductos(Producto producto) throws Exception {\n\t\treturn null;\n\t}",
"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 }",
"public static List<Parte> listarPartes(){\n List <Parte> partes=new ArrayList<>();\n Conexion.conectar();\n String sql = \"call ppartes.partesList (?)\";\n \n try {\n CallableStatement cs = Conexion.getConexion().prepareCall(sql);\n cs.registerOutParameter(1, OracleTypes.CURSOR);\n cs.execute();\n \n ResultSet rs = (ResultSet) cs.getObject(1);\n while (rs.next()){\n Parte p = new Parte();\n p.setFecha(rs.getString(\"fecha\"));\n p.setKmInicial(rs.getBigDecimal(\"kmInicial\"));\n p.setKmFinal(rs.getBigDecimal(\"kmFinal\"));\n p.setGastoPeaje(rs.getBigDecimal(\"gastosPeaje\")); \n p.setGastoDietas(rs.getBigDecimal(\"gastosDietas\"));\n p.setGastoCombustible(rs.getBigDecimal(\"gastosCombustible\"));\n p.setGastoVarios(rs.getBigDecimal(\"otrosGastos\"));\n p.setIncidencias(rs.getString(\"incidencias\"));\n p.setEstado(rs.getString(\"estado\"));\n p.setValidado(rs.getString(\"validado\"));\n p.setHorasExtras(rs.getBigDecimal(\"horasExtras\"));\n p.setIdTrabajador(rs.getBigDecimal(\"TRABAJADORES_ID\"));\n p.setNotasAdministrativas(rs.getString(\"notasAdministrativas\"));\n partes.add(p);\n }\n \n rs.close();\n cs.close();\n Conexion.desconectar();\n return partes;\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se puede efectuar la conexión, hable con el administrador del sistema\" + ex.getMessage());\n }\n return null;\n }",
"public static List<AddCollection> findAllProduct() {\n\t\treturn null;\n\t}",
"public List<Tb_Prod_Painel_PromoBeans> getProdPainel(Integer terminal, Integer painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \" INNER JOIN tb_prod ON(tb_prod_painel_promo.codigo=tb_prod.codigo) where terminal=? and painel=? order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal);\r\n pstm.setInt(2, painel);\r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>();\r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }",
"public ArrayList<ComProduct> get_all_comproduct() throws Exception {\n\n \t\t log.setLevel(Level.INFO);\n\t log.info(\" service operation started !\");\n\n\t\ttry{\n\t\t\tArrayList<ComProduct> ComProduct_list;\n\n\t\t\tComProduct_list = ComProduct_Default_Activity_dao.get_all_comproduct();\n\n \t\t\tlog.info(\" Object returned from service method !\");\n\t\t\treturn ComProduct_list;\n\n\t\t}catch(Exception e){\n\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\n\t\t\tlog.error(\" service throws exception : \"+ e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}",
"public List<ImagenVO> imagenesToProducto(ProductoVO p) {\n\t\treturn (List<ImagenVO>)p.getImagenes();\n\t}",
"public List<Product> getProducten() {\n\t\treturn productKeus;\n\t}",
"public com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Products> getOrdersProductss()\n {\n return getOrdersProductss(false,false);\n }",
"public Set<ProductBarcode> getProducts(boolean recursive);",
"public List<Color> coloresProducto(Producto producto) throws Exception {\n\t\ttry{\n\t\t\tthis.objCnx = new Conexion(\"MYSQL\");\n\t\t\tList<Color> lista = new ArrayList<Color>();\n\t\t\tthis.objCnx.conectarBD();\n\t\t\tString sql = \"SELECT t.idcolor, t.nombre, t.observacion FROM conftbc_color t \"\n\t\t\t\t\t+ \" INNER JOIN conftbc_producto p ON t.idmarca = p.idmarca WHERE p.idproducto = \"+producto.getIdproducto();\n\t\t\tPreparedStatement ps = this.objCnx.cnx.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tColor color = new Color();\n\t\t\t\tcolor.setIdcolor(rs.getInt(\"idcolor\"));\n\t\t\t\tcolor.setNombre(rs.getString(\"nombre\"));\n\t\t\t\tcolor.setObservacion(rs.getString(\"observacion\"));\n\t\t\t\tlista.add(color);\n\t\t\t}\n\t\t\treturn lista;\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tthis.objCnx.deshacerDB();\n\t\t\tthrow ex;\n\t\t}finally{\n\t\t\tthis.objCnx.closeDB();\n\t\t\tthis.objCnx = null;\n\t\t}\n\t}",
"public ArrayList<Rubro> getRubros() {\n ArrayList<CuentaCorriente> cuentaCorrientes = getCuentasCorrientesCollection();\n ArrayList<Rubro> rubros = new ArrayList<>();\n\n //Tengo que mergear todos los rubros\n for (CuentaCorriente cuentaCorriente : cuentaCorrientes) {\n for (Rubro rubroProveedor : cuentaCorriente.getProveedor().getRubros()) {\n //Si no tengo rubros inicialmente, agregas uno\n if (rubros.isEmpty()) {\n rubros.add(rubroProveedor);\n } else {\n boolean existe = false;\n //Tengo que mergear todos los productos de los rubros\n for (Rubro rubro : rubros) {\n if (rubroProveedor.getIdRubro() == rubro.getIdRubro()) {\n existe = true;\n //Es el mismo rubro\n for (Producto productoProveedor : rubroProveedor.getProductos()) {\n boolean noTieneProducto = true;\n //Quiero mergear los PPPP de cada producto igual\n for (Producto producto : rubro.getProductos()) {\n if (productoProveedor.getIdProducto() == producto.getIdProducto()) {\n List<PrecioProductoPorProveedor> precios = producto.getPreciosPorProveedor();\n precios.addAll(productoProveedor.getPreciosPorProveedor());\n producto.setPreciosPorProveedor(precios);\n noTieneProducto = false;\n }\n }\n //Si no encontre el producto, agrego\n if (noTieneProducto) {\n rubro.addProducto(productoProveedor);\n }\n }\n }\n }\n\n if (!existe) {\n rubros.add(rubroProveedor);\n }\n }\n }\n }\n\n return rubros;\n }",
"@Override\r\n\tpublic List<Producto> getAll() throws Exception {\n\t\treturn productRepository.buscar();\r\n\t}",
"public List<Tb_Prod_Painel_PromoBeans> getProdPainelTabelas(Integer terminal, String painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \" INNER JOIN tb_prod ON(tb_prod_painel_promo.codigo=tb_prod.codigo) where terminal=? and painel in(\" + painel + \") order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal); \r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>(); \r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }",
"public List<Product> getAllProducts() {\n return new ArrayList<Product>(this.products.values());\n }",
"@Override\n\tpublic List<ProductInfo> getProducts() {\n\t\treturn shoppercnetproducts;\n\t}",
"public List<Product> searchProduct(List<String> tokens) throws SQLException {\n\t\tif(tokens.size() == 0) {\n\t\t\treturn new ArrayList<Product>();\n\t\t}\n\t\t\n\t\t/*\n\t\t * Costruiamo una query di ricerca per un insieme di prodotti che esibiscono uno dei\n\t\t * token o parte di esso in uno dei campi nome, tipo, linea, materiali o descrizione.\n\t\t */\n\t\tString searchSql = \"SELECT CODICE\" +\n\t\t\t\" FROM PRODOTTO LEFT JOIN COMPOSIZIONE\" +\n\t\t\t\" ON PRODOTTO.CODICE = COMPOSIZIONE.CODICEPRODOTTO\" +\n\t\t\t\" WHERE (NOMEPRODOTTO LIKE '%'||?||'%' OR LINEA LIKE '%'||?||'%' OR TIPO LIKE '%'||?||'%' OR DESCRIZIONE LIKE '%'||?||'%' OR MATERIALE LIKE '%'||?||'%')\"; // Per il primo token\n\n\t\tfor(int i = 1; i < tokens.size(); i++) {\n\t\t\tsearchSql += \" AND (NOMEPRODOTTO LIKE '%'||?||'%' OR LINEA LIKE '%'||?||'%' OR TIPO LIKE '%'||?||'%' OR DESCRIZIONE LIKE '%'||?||'%' OR MATERIALE LIKE '%'||?||'%')\"; // Per uno dei successivi\n\t\t}\n\t\tsearchSql += \" GROUP BY CODICE;\";\n\t\t\n\t\t/*\n\t\t * SQLite non supporta lo OUTER JOIN ma solo lo INNER JOIN. Pertanto non abbiamo potuto includere nella\n\t\t * ricerca i materiali costituenti i prodotti poiché i prodotti per i quali non viene specificato un\n\t\t * materiale costituente vengono tagliati fuori.\n\t\t * \n\t\t * TODO - Preleva i codici prodotto dalla tabella COMPOSIZIONE dove trovi i token di ricerca\n\t\t * fai una intersezione dei codici prodotto con quelli ricavati dalla tabella PRODOTTO precedentemente restituiti.\n\t\t */\n\t\t\n\t\t/*\n\t\t * Per ogni token si verifica che esso appaia nel nome, nella lina, nel tipo\n\t\t * nel materiale o nella descrizione\n\t\t */\n\t\tPreparedStatement searchStm = connection.prepareStatement(searchSql);\n\t\t\n\t\tfor(int i = 0; i < tokens.size(); i++) {\n\t\t\tString token = tokens.get(i);\n\t\t\t\n\t\t\tsearchStm.setString( (i * 5) + 1, token);\n\t\t\tsearchStm.setString( (i * 5) + 2, token);\n\t\t\tsearchStm.setString( (i * 5) + 3, token);\n\t\t\tsearchStm.setString( (i * 5) + 4, token);\n\t\t\tsearchStm.setString( (i * 5) + 5, token);\n\t\t}\n\t\t\n\t\tResultSet productCodesRs = searchStm.executeQuery();\n\t\tList<Integer> productCodesList = new ArrayList<Integer>();\n\t\twhile(productCodesRs.next()) {\n\t\t\tproductCodesList.add(productCodesRs.getInt(1));\n\t\t}\n\t\t\n\t\treturn getProductListByCode(productCodesList);\n\t}",
"public static List getAllPrices() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT cena FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n int naziv = result.getInt(\"cena\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }",
"public ArrayList<Producto> busquedaProductos(Producto.Categoria categoria){\n ArrayList <Producto> productosEncontrados = new ArrayList<>();\n for(Producto cadaProducto : UtilidadJavaPop.getProductosTotales()){\n if(cadaProducto.getCategoria().equals(categoria) && !productosEncontrados.contains(cadaProducto)\n && !cadaProducto.getVendedor().getCorreo().equals(this.getCorreo())){\n productosEncontrados.add(cadaProducto);\n }\n }\n ArrayList<Producto>productosEncontradosOrdenado = getProductosOrdenados(productosEncontrados, this);\n return productosEncontradosOrdenado;\n \n }",
"public List<Parcheggio> getListParcheggi() {\n return mListParcheggi;\n }",
"public Set<ProductBarcode> getProducts(boolean recursive)\r\n {\r\n assert(true);\r\n Set<ProductBarcode> barCodes = new TreeSet<ProductBarcode>();\r\n \tfor (ProductBarcode tProd : products)\r\n {\r\n barCodes.add(tProd);\r\n }\r\n if (recursive)\r\n {\r\n for (ProductContainer tGroup : groups)\r\n {\r\n barCodes.addAll(tGroup.getProducts(true));\r\n }\r\n }\r\n return barCodes;\r\n }",
"public List<Product> list();",
"public ArrayList<Producto> busquedaProductos(Producto.Categoria categoria,String palabrasClave){\n try{\n ArrayList<Producto>productosFiltrados = new ArrayList<>();\n ArrayList<Producto>productosEncontrados = busquedaProductos(categoria);\n ArrayList<String>palabras = new ArrayList<>();\n StringTokenizer tokens = new StringTokenizer(palabrasClave);\n\n while(tokens.hasMoreTokens()){\n palabras.add(tokens.nextToken()); \n }\n \n if(palabras.size()>1){\n for(String cadaPalabra : palabras){\n for(Producto cadaProducto : productosEncontrados){\n String titulo=cadaProducto.getTitulo().toLowerCase();\n if(titulo.contains(cadaPalabra.toLowerCase()) && !productosFiltrados.contains(cadaProducto)){\n productosFiltrados.add(cadaProducto);\n }\n }\n }\n }else{\n for(Producto cadaProducto : productosEncontrados){\n String titulo=cadaProducto.getTitulo().toLowerCase();\n if(titulo.contains(palabrasClave.toLowerCase()) && !productosFiltrados.contains(cadaProducto)){\n productosFiltrados.add(cadaProducto);\n }\n }\n }\n ArrayList <Producto> productosFiltradosOrdenado=getProductosOrdenados(productosFiltrados, this);\n return productosFiltradosOrdenado;\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n return null;\n }",
"public List<Tb_Prod_Painel_PromoBeans> getProdPainelConfig(Integer terminal, Integer painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \"where terminal=? and painel=? order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal);\r\n pstm.setInt(2, painel);\r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>();\r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }",
"List<Product> getAllProducts();",
"List<Product> getAllProducts();",
"List<Product> getAllProducts();",
"public ArrayList<Product> getProducts() {\n\t\tArrayList<Product> scannedItems = new ArrayList<>();\n\n\t\tArrayList<Item> currentPurchases = purchaseList.getCurrentPurchases(); \n\n\t\tfor (Item item : currentPurchases) {\n\t\t\tProduct possibleProductToShow = this.getProductFromItem(item);\n\t\t\tif (possibleProductToShow != null) {\n\t\t\t\tscannedItems.add(possibleProductToShow);\n\t\t\t}\n\t\t}\n\n\t\treturn scannedItems;\n\t}",
"public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }",
"public ArrayList<producto> bodegaDefault() { \n ArrayList<producto> temporaryProductList = new ArrayList<producto>();\n temporaryProductList.add(new producto(001, \"Mouse Logitech\", 39990, 10));\n temporaryProductList.add(new producto(002, \"Teclado Logitech\", 79990, 20));\n temporaryProductList.add(new producto(003, \"Mousepad Razer\", 19990, 30));\n temporaryProductList.add(new producto(004, \"MSI GTX 970\", 119990, 10));\n return temporaryProductList;\n }",
"public Set<ProductBarcode> getProducts();",
"public List<Map<String, Object>> getListaProdutos() {\n return pdao.getListaProdutos();\n }",
"public List getProductCompareList() {\n return mProductCompareList;\n }",
"public List<productmodel> getproductbyname(String name);",
"private ArrayList<String[]> getArrayCombinaciones(String[] parVecBusqueda) {\n String nom1 = \"\", nom2 = \"\", nom3 = \"\", nom4 = \"\";\n ArrayList<String[]> vecCombinaciones = new ArrayList<>();\n int contNombres = 0;\n for (String varString : parVecBusqueda) {\n if (varString.equals(\"\")) {\n contNombres++;\n }\n }\n switch (contNombres) {\n case 1:\n nom1 = parVecBusqueda[0].toLowerCase();\n vecCombinaciones = this.getVecCombinaciones1(nom1);\n break;\n case 2:\n nom1 = parVecBusqueda[0].toLowerCase();\n nom2 = parVecBusqueda[1].toLowerCase();\n vecCombinaciones = this.getVecCombinaciones2(nom1, nom2);\n break;\n case 3:\n nom1 = parVecBusqueda[0].toLowerCase();\n nom2 = parVecBusqueda[1].toLowerCase();\n nom3 = parVecBusqueda[2].toLowerCase();\n vecCombinaciones = this.getVecCombinaciones3(nom1, nom2, nom3);\n break;\n case 4:\n vecCombinaciones.add(parVecBusqueda);\n break;\n default:\n break;\n }\n return vecCombinaciones;\n }",
"@Override\r\n\tpublic List<EquipoCompetencia> listar() {\n\t\treturn null;\r\n\t}",
"public ArrayList<Thneed> getProdOrdered(){\n\t\treturn this.prodOrdered;\n\t}",
"private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}",
"public List<Product> getAllProducts() {\n List<Product> listProduct= productBean.getAllProducts();\n return listProduct;\n }",
"public List<Map> getAllParameters() {\n List<Map> allProductParameters = new ArrayList<Map>();\n if (processorParametres != null) allProductParameters.add(processorParametres);\n if (sellerParametres != null) allProductParameters.add(sellerParametres);\n if (storageParametres != null) allProductParameters.add(storageParametres);\n\n return allProductParameters;\n }",
"public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}",
"private List<ProductQuantity> getQuantities() {\n List<ProductQuantity> quantities = new ArrayList<>();\n for (int i = 1; i <= QUANTITY_MAX; i++) {\n ProductQuantity q = new ProductQuantity(i, i + \"x\");\n quantities.add(q);\n }\n return quantities;\n }",
"public ArrayList<Proceso> procesosPoliticaEnvejecimiento() {\n\t\tArrayList<Proceso> procesosPE = new ArrayList<Proceso>();\n\t\tProceso aux = this.raiz.sig;\n\t\twhile (aux != this.raiz) {\n\t\t\tint tiempoEnCola = this.tiempo - aux.tllegada + 1;\n\t\t\tif (tiempoEnCola >= this.tiempoPE) {\n\t\t\t\tProceso auxp = aux.padre;\n\t\t\t\tauxp.sig = aux.sig;\n\t\t\t\taux.sig.padre = auxp;\n\t\t\t\taux.padre = null;\n\t\t\t\tprocesosPE.add(aux);\n\t\t\t}\n\n\t\t\taux = aux.sig;\n\t\t}\n\t\tif (procesosPE.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn procesosPE;\n\t}",
"@GetMapping(\"buscarProductos\")\n\tpublic List<Producto> getProductos(){\n\t\treturn this.productoServicios.findAll();\n\t}",
"@Override\n public List<Producer> apply() {\n Comparator<Producer> comparator = Comparator\n .comparing((Producer::getEnergyPerDistributor), Comparator.reverseOrder())\n .thenComparing(Producer::getId);\n\n producers = producers.stream()\n .sorted(comparator)\n .collect(Collectors.toList());\n\n // se selecteaza din lista sortata cati producatori este nevoie pentru\n // asigurarea cantitatii de energie necesare\n return Strategy.selectProducers(producers, energyNeededKW);\n }",
"List<Product> getProducts(Order order);",
"@Override\r\n\tpublic List<Product> getProducts() {\n\t\treturn null;\r\n\t}",
"public ArrayList<GrupoProducto> consultarTodos(){\r\n ArrayList<GrupoProducto> grupoProducto = new ArrayList<>();\r\n for (int i = 0; i < listaGrupoProductos.size(); i++) {\r\n if (!listaGrupoProductos.get(i).isEliminado()) {\r\n grupoProducto.add(listaGrupoProductos.get(i));\r\n }\r\n }\r\n return grupoProducto;\r\n }",
"static Producto busqueda(int codigo, Vector productos){ \r\n \tboolean band = false;\r\n \t//si return no es igual a null nos regresara el codigo\r\n Producto p,retornP = null; \r\n //For para comparar todos los codigos del vector que digitamos\r\n for(int x = 0; x < productos.size(); x++){ \r\n \tp = (Producto) productos.elementAt(x);\r\n \t//si el codigo es el mismo regresamos el producto que encontramos\r\n if(p.getCodigo() == codigo) \r\n \tretornP = p;\r\n }\r\n return retornP;\r\n }",
"public List<Product> readAll() {\n\t\treturn null;\n\t}",
"public Collection<Proyecto> leerProyectosCollection() {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tProyecto[] proyecto = plantilla.getForObject(\"http://localhost:5000/proyectos\", Proyecto[].class);\n\t\t\tList<Proyecto> listaProyectos = Arrays.asList(proyecto);\n\t\t\treturn listaProyectos;\n\t\t}",
"public List<Product> getProductByName() {\n \n List<Product> listProduct= productBean.getProductByName(productName);\n return listProduct;\n }",
"private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public static String [] getModelosCaballerosProvicional() {\n\n\t\tSession session = SessionHibernate.getInstance().openSession();\n\t\tsession.beginTransaction();\n\t\t\n\t\tString str = \"FROM ModeloCaballero\";\n\t\tQuery query = session.createQuery(str);\n\t\tint i=0;\n\n\t\tString [] list =new String [query.list().size()];\n\t\t\n\t\tfor (Object obj : query.list()) {\n\t\t\tModeloCaballero ma = (ModeloCaballero) obj;\n\t\t\tlist[i++]=ma.getNombreModelo();\n\t\t\n\t\t\tSystem.err.println(ma.getId() + \"; \" + ma.getNombreModelo());\n\t\t}\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t\t\n\t\treturn list;\n\t}",
"public int obtenerNumeroProductosComprados(){\n return listaProductosComprados.size();\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 List<ProyeccionKid> getListaProyeccionKids(int idOrganizacion, Producto producto, Bodega bodega, Date fechaDesde, Date fechaHasta)\r\n/* 34: */ {\r\n/* 35:62 */ List<ProyeccionKid> listaProyeccionKid = new ArrayList();\r\n/* 36:63 */ for (ProductoMaterial productoMaterial : getListaProductoMaterial(0, null, null, null, null))\r\n/* 37: */ {\r\n/* 38:64 */ ProyeccionKid proyeccionKid = new ProyeccionKid();\r\n/* 39:65 */ proyeccionKid.setProductoMaterial(productoMaterial);\r\n/* 40:66 */ proyeccionKid.setStock(getStock(productoMaterial.getMaterial(), null, null, null));\r\n/* 41:67 */ proyeccionKid.setSaldo(proyeccionKid.getStock().divide(productoMaterial.getCantidad(), RoundingMode.HALF_UP));\r\n/* 42:68 */ listaProyeccionKid.add(proyeccionKid);\r\n/* 43: */ }\r\n/* 44:70 */ return listaProyeccionKid;\r\n/* 45: */ }",
"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 }",
"public List<Product> getProducts(ProductRequest request) throws IOException {\n if (request.isSingle()){\n List<Product> products = new ArrayList<>();\n products.add(parseResult(executeRequest(request),Product.class));\n return products;\n } else {\n return parseResults(executeRequest(request), Product.class);\n }\n }",
"public ObservableList<Product> getProduct(){\n ObservableList<Product> products = FXCollections.observableArrayList();\n products.add(new Product(\"Laptop\", 859.00, 20));\n products.add(new Product(\"Bouncy Ball\", 2.49, 198));\n products.add(new Product(\"Toilet\", 99.00, 74));\n products.add(new Product(\"The Notebook DVD\", 19.99, 12));\n products.add(new Product(\"Corn\", 1.49, 856));\n return products;\n }",
"public List<Product> getProducts() {\n return products;\n }",
"public List<ProductTilePojo> getManualProductList() {\n\t\tLOGGER.info(\"getManualProductList -> Start\");\n\t\tmanualProductList.clear();\n\t\tif (pages != null) {\n\t\t\tmanualProductList = productGalleryAndLandingService.getAllTiles(pages, true);\n\t\t}\n\n\t\tif (manualProductList.size() > 12) {\n\n\t\t\treturn manualProductList.subList(0, 12);\n\t\t}\n\t\t\n\t\tLOGGER.debug(\"manualProductList size {}\", \n\t\t\t\tmanualProductList.size());\n\t\t\n\t\tLOGGER.info(\"getManualProductList -> End\");\n\t\treturn manualProductList;\n\t}",
"public Collection<OrdenCompra> traerTodasLasOrdenesDeCompra() {\n Collection<OrdenCompra> resultado = null;\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n resultado = controlOC.traerTodasLasOrdenesDeCompra();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return resultado;\n }",
"public List<Product> getProducts() {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n List<Product> products = new ArrayList<>(); //creating an array\n String sql=\"select * from products order by product_id\"; //writing sql statement\n try {\n connection = db.getConnection();\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) { //receive data from database\n products.add(new Product( resultSet.getInt(1), resultSet.getString(2), resultSet.getInt(3),\n resultSet.getString(4),resultSet.getString(5),resultSet.getString(6),\n resultSet.getString(7), resultSet.getString(8))); //creating object of product and\n // inserting it into an array\n }\n return products; //return this array\n } catch (SQLException | ClassNotFoundException throwable) {\n throwable.printStackTrace();\n } finally {\n try {\n assert resultSet != null;\n resultSet.close();\n statement.close();\n connection.close();\n } catch (SQLException throwable) {\n throwable.printStackTrace();\n }\n }\n return null;\n }",
"public List<ProductTilePojo> getLandingProductList() {\n\t\tLOGGER.info(\"getLandingProductList -> Start\");\n\t\tResource landingNodeResource = resolver.getResource(landinggridPath);\n\t\tif (landingNodeResource != null) {\n\t\t\tValueMap nodeValues = landingNodeResource.adaptTo(ValueMap.class);\n\t\t\tif (null != nodeValues) {\n\t\t\t\tpages = nodeValues.get(\"pages\", String[].class);\n\t\t\t\tString orderProduct = nodeValues.get(\"orderProduct\", String.class);\n\t\t\t\tif (orderProduct != null) {\n\t\t\t\t\tif (orderProduct.equals(\"manual\")) {\n\t\t\t\t\t\tlandingProductList = productGalleryAndLandingService.getAllTiles(pages, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString currentPath = homePagePath + PropertyReaderUtils.getProductPath();\n\t\t\t\t\t\tlandingProductList = productGalleryAndLandingService.getTilesByDate(currentPath, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (landingProductList.size() > 12) {\n\t\t\t\t\treturn landingProductList.subList(0, 12);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLOGGER.debug(\"landingProductList size {}\", \n\t\t\t\t\t\tlandingProductList.size());\n\t\t\t}\n\t\t}\n\t\tLOGGER.info(\"getLandingProductList -> End\");\n\t\treturn landingProductList;\n\t}",
"private List<FreeShopProduct> getProductList() {\n\n productList = new ArrayList<>();\n productList.add(new FreeShopProduct(R.drawable.db_school_small, getResources().getString(R.string.shopItem0)));\n productList.add(new FreeShopProduct(R.drawable.db_clothes_small, getResources().getString(R.string.shopItem1)));\n productList.add(new FreeShopProduct(R.drawable.db_emotions_small, getResources().getString(R.string.shopItem2)));\n productList.add(new FreeShopProduct(R.drawable.db_etiquette_small, getResources().getString(R.string.shopItem3)));\n productList.add(new FreeShopProduct(R.drawable.db_landforms_small, getResources().getString(R.string.shopItem4)));\n productList.add(new FreeShopProduct(R.drawable.db_fruits_small, getResources().getString(R.string.shopItem5)));\n productList.add(new FreeShopProduct(R.drawable.db_kingdom_small, getResources().getString(R.string.shopItem6)));\n productList.add(new FreeShopProduct(R.drawable.db_outerspace_small, getResources().getString(R.string.shopItem7)));\n productList.add(new FreeShopProduct(R.drawable.db_festival_small, getResources().getString(R.string.shopItem8)));\n productList.add(new FreeShopProduct(R.drawable.db_music_small, getResources().getString(R.string.shopItem9)));\n\n return productList;\n }",
"protected ArrayList efetuarCompra(ArrayList<Produto> produtosCtlg){\n for (int i=0; i<itens.size(); i++){\r\n for (int j=0; j<produtosCtlg.size(); j++){\r\n if (itens.get(i).getId() == produtosCtlg.get(j).getId()){\r\n produtosCtlg.get(j).setQuantidade(itens.get(i).getQtdPedida());\r\n }\r\n }\r\n }\r\n return itens;\r\n }"
] | [
"0.69116384",
"0.6798289",
"0.66724426",
"0.6672138",
"0.66576564",
"0.6580112",
"0.6520872",
"0.6505363",
"0.6453876",
"0.64219904",
"0.6380432",
"0.6377057",
"0.6361415",
"0.63608265",
"0.63447005",
"0.63238406",
"0.6317129",
"0.631196",
"0.63027155",
"0.6301137",
"0.6269982",
"0.62626505",
"0.62607616",
"0.6226342",
"0.6226342",
"0.61843044",
"0.61456245",
"0.613233",
"0.611352",
"0.6086338",
"0.6077778",
"0.6050984",
"0.6023582",
"0.60213006",
"0.6018991",
"0.60126436",
"0.60101724",
"0.60081846",
"0.59983003",
"0.59889406",
"0.59878016",
"0.5982014",
"0.5976898",
"0.59756345",
"0.59695935",
"0.5968862",
"0.59444505",
"0.59432757",
"0.59416425",
"0.5940656",
"0.59377277",
"0.593604",
"0.5931162",
"0.59245914",
"0.5922765",
"0.59174585",
"0.59086984",
"0.58900326",
"0.5880607",
"0.5880607",
"0.5880607",
"0.58802724",
"0.5871989",
"0.5871256",
"0.5856244",
"0.58411866",
"0.5841104",
"0.5834484",
"0.5834188",
"0.58310515",
"0.5830677",
"0.58282804",
"0.58213335",
"0.5818844",
"0.5817733",
"0.58160186",
"0.5811912",
"0.579467",
"0.57854223",
"0.5783178",
"0.5781858",
"0.5781014",
"0.57793987",
"0.5773083",
"0.57622385",
"0.5756379",
"0.5752437",
"0.57508856",
"0.5742269",
"0.5736068",
"0.57317317",
"0.5730122",
"0.5718843",
"0.5712122",
"0.5702953",
"0.56947416",
"0.56909525",
"0.56884027",
"0.5683214",
"0.5682687",
"0.56793934"
] | 0.0 | -1 |
Retorna el valor total del carrito de compras. | List<TotalCarritoDTO> getTotalCarritoCompras(String userName,TipoMoneda tipoMoneda); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getValorTotal() {\r\n \treturn valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN).subtract(valorDesconto).setScale(3, BigDecimal.ROUND_HALF_EVEN);\r\n }",
"@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}",
"public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }",
"public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}",
"public BigDecimal getTotal() {\n return total;\n }",
"public BigDecimal getTotal() {\n return total;\n }",
"public double getTotal() {\r\n\t\treturn total;\r\n\t}",
"public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }",
"public float capacidadeTotal() {\r\n float toneladas = 0;\r\n\r\n for (int i = 0; i < numNavios; i++) {\r\n if (navios[i] instanceof Petroleiro) {\r\n Petroleiro petroleiro = (Petroleiro) navios[i];\r\n toneladas = toneladas + petroleiro.getCapacidadeCarga();\r\n } else if (navios[i] instanceof PortaContentores) {\r\n PortaContentores portaContentores = (PortaContentores) navios[i];\r\n toneladas = toneladas + portaContentores.getMaxContentores() * 10;\r\n }\r\n }\r\n return toneladas;\r\n }",
"public double getTotal() {\n\t\treturn total;\n\t}",
"public double getTotal() {\n return Total;\n }",
"public long getTotal() {\n return total;\n }",
"public long getTotal() {\n return total;\n }",
"public int getTotal () {\n return total;\n }",
"public int getTotal () {\r\n\t\treturn total;\r\n\t}",
"public int getTotal () {\r\n\t\treturn total;\r\n\t}",
"public Double darTiempoTotal(){\n\t\treturn tiempoComputacionalGrasp+tiempoComputacionalSetCovering;\n\t}",
"public int getTotal () {\n\t\treturn total;\n\t}",
"public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}",
"@Override\n public double getTotal() {\n return total;\n }",
"public int getTotal() {\n return total;\n }",
"public int getTotal() {\n return total;\n }",
"public static float getTotal() {\n return total;\r\n }",
"public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}",
"public long getTotal() { return total; }",
"public long getTotal() { return total; }",
"public int precioTotalRepuestos() {\n int sumaTotal = 0;\n for (Dispositivo dispositivo : dispositivos) {\n sumaTotal += dispositivo.getPrecioRepuesto();\n }\n return sumaTotal;\n }",
"Integer total();",
"public float getTotal(){\r\n\t\treturn Total;\r\n\t}",
"public double getTotal (){ \r\n return total;\r\n }",
"double getTotal();",
"public int total() {\n return _total;\n }",
"public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }",
"public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}",
"public int getSueldoTotal() {\n return sueldoTotal;\n }",
"public double getTotal(){\n return total;\n }",
"public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}",
"public Double getTotal() {\n return total;\n }",
"public Double getTotal() {\n return total;\n }",
"public Double getTotal() {\n return total;\n }",
"public Double getInternalTotalComDesconto() {\r\n double preco, quantidade, desconto; \r\n double valor = 0, valorDescontado = 0;\r\n preco = (getPrecoUnitario() == null) ? 0 : getPrecoUnitario().doubleValue();\r\n quantidade = (getQuantidade() == null) ? 0 : getQuantidade().doubleValue();\r\n desconto = (getDesconto() == null) ? 0 : getDesconto().doubleValue();\r\n \r\n \tvalor = (preco * quantidade);\r\n \tvalorDescontado = (valor / 100) * desconto;\r\n return new Double(valor - valorDescontado);\r\n }",
"public int getTotal() {\n return total;\n }",
"public int getTotal() {\n\t\treturn total;\n\t}",
"public BigInteger getTotal()\n\t{\n\t\treturn total;\n\t}",
"public int total() {\n return this.total;\n }",
"BigDecimal getTotal();",
"BigDecimal getTotal();",
"public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}",
"public int tiempoTotal() {\r\n\r\n\t\tint duracionTotal = 0;\r\n\t\tfor (int i = 0; i < misCanciones.size(); i++) {\r\n\t\t\tduracionTotal = duracionTotal + misCanciones.get(i).getDuracionS();\r\n\t\t}\r\n\t\t\r\n\t\treturn duracionTotal;\r\n\r\n\t}",
"public float getTotal() {\n return this.total;\n }",
"public int getTotal() {\n\t\t\treturn total;\n\t\t}",
"public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }",
"public double CalculateTotalCompensation(){\r\n\t\tsetTotalCompensation(getCommission() + getBaseSalary());\r\n\t\treturn getTotalCompensation();\r\n\t}",
"public BigInteger getTotal() {\n return total;\n }",
"public Coverage getTotal() {\n return this.total;\n }",
"public int totalCostOfComponents( ){\n\t\tint total=0;\n\t\tfor (Component temp : components){\n\t\t\ttotal+=temp.getCost();\n\t\t}\n\t\treturn total;\n\t}",
"public double Get_Total(Context context){\n return ((double) (TrafficStats.getTotalRxBytes()+TrafficStats.getTotalTxBytes())/1048576);\n }",
"public int getTotalValue() {\n\t\tint totalValue = 0;\n\t\tfor(Items temp : this.getAnchors()) {\n\t\t\tif (temp == null)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\ttotalValue = totalValue + temp.getTotalValue();\n\t\t}\n\t\treturn totalValue;\n\t}",
"private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}",
"public Double getTotal();",
"public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }",
"public double getPrecoTotal() {\n\t\treturn this.precoTotal;\n\t}",
"public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}",
"public Integer total() {\n return this.total;\n }",
"public void calcularTotal() {\n double valor = 0;\n String servico = (String)consultaSelecionada.getSelectedItem().toString();\n switch(servico) {\n case \"Consulta\":\n valor += 100;\n break;\n case \"Limpeza\":\n valor += 130;\n break;\n case \"Clareamento\":\n valor += 450;\n break;\n case \"Aparelho\":\n valor += 100;\n break;\n case \"Raio-x\":\n valor += 80;\n break;\n case \"Cirurgia\":\n valor += 70;\n break;\n }\n Total.setText(String.valueOf(valor));\n }",
"private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }",
"public BigInteger getTotal () {\n\t return total;\n\t }",
"public int getTotal() {\n\t\treturn this.total;\n\t}",
"private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }",
"public double getTotalElektroPokok() {\n return this.totalElektroPokok;\n }",
"public Long total() {\n return this.total;\n }",
"public double probabilidadTotal(){\n return probabilidadTotal;\n }",
"public Integer getCantidadTotal() {\n return cantidadTotal;\n }",
"public java.lang.Double getTotal () {\r\n\t\treturn total;\r\n\t}",
"public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}",
"private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }",
"public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}",
"public Number getTotal() {\n return (Number)getAttributeInternal(TOTAL);\n }",
"public Integer calcularCosto() {\n return componente.getPrecio() + tipoDeEnvio.calcularCosto(this.componente.getPeso(), cliente.getUbicacion());\n }",
"public double obtenerTotalCarrito() throws DBException {\r\n\t\tdouble precioTotal = 0;\r\n\t\tString sentSQL = \"SELECT SUM(precio) FROM carrito\";\r\n\t\ttry {\r\n\t\t\tStatement st = conexion.createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(sentSQL);\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tprecioTotal = rs.getDouble(1);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tst.close();\r\n\t\t\tLOG.log(Level.INFO,\"Precio total obtenido\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tLOG.log(Level.WARNING,e.getMessage());\r\n\t\t\tthrow new DBException(\"No se ha podido ejecutar la query\");\r\n\t\t}\r\n\t\treturn precioTotal;\r\n\t}",
"public Integer cantidadCompras(){\n\t\t// Implementar\n\t\treturn this.compras.size();\n\t}",
"public int getTotal() {\n return total[ke];\n }",
"@Override\r\n\tpublic long getTotal() {\n\t\treturn 0;\r\n\t}",
"public Double getTotal() {\n\t\treturn null;\n\t}",
"public int getTotalValue() {\n return getTotalOfwins()+getTotalOfGames()+getTotalOfdefeats()+getTotalOftimePlayed();\n }",
"public int totalGemValue() {\r\n\t\ttotal = 0;\r\n\t\ttotal += gemPile[0];\r\n\t\ttotal += gemPile[1] * 2;\r\n\t\ttotal += gemPile[2] * 3;\r\n\t\ttotal += gemPile[3] * 4;\r\n\t\treturn total;\r\n\t}",
"public BigDecimal getValorTotalSemDesconto() {\r\n return valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN);\r\n }",
"public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}",
"public float carga(){\n return (this.capacidade/this.tamanho);\n }",
"public int result() {\n\t\treturn total;\n\t}",
"public double getTotalCartValue();",
"public int getTotal(){\n\t\tif (getDistance() < N*1000){\n\t\t\treturn firstNKmCost;\n\t\t} else {\n\t\t\treturn firstNKmCost + (getDistance() - N * 1000 ) * costPerKm / 1000;\n\t\t}\n\t}",
"public BigDecimal total() {\n return executor.calculateTotal(basket);\n }",
"@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }",
"public Total getTotal() {\r\n\t\treturn total;\r\n\t}",
"public int produtosDiferentesComprados(){\r\n return this.faturacao.produtosDiferentesComprados();\r\n }",
"public double getTotalElektroBunga() {\n return this.totalElektroBunga;\n }",
"public int totalCostOfComponents()\n\t{\n\t\tint total = 0;\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\ttotal += comp.getCost();\n\t\t}\n\t\treturn total;\n\t}",
"public double getTotal() {\n return totalCost;\n }",
"public float getTcintmtotal()\r\n {\r\n return _tcintmtotal;\r\n }",
"public double getTotal_Venta() {\n return total_Venta;\n }"
] | [
"0.7398572",
"0.7246099",
"0.72323245",
"0.71770495",
"0.699238",
"0.699238",
"0.697981",
"0.6977457",
"0.69731885",
"0.69703716",
"0.69661695",
"0.69549453",
"0.69549453",
"0.69521666",
"0.69479084",
"0.69479084",
"0.693985",
"0.69045144",
"0.6904231",
"0.689503",
"0.68910265",
"0.68910265",
"0.68909276",
"0.6877936",
"0.6862934",
"0.6862934",
"0.6844372",
"0.683978",
"0.6838937",
"0.6828391",
"0.68218666",
"0.6818857",
"0.68160075",
"0.6813959",
"0.68121415",
"0.6807291",
"0.6801856",
"0.6797427",
"0.6797427",
"0.6797427",
"0.6796735",
"0.67946494",
"0.6793037",
"0.6782622",
"0.67642105",
"0.67464846",
"0.67464846",
"0.67443806",
"0.67441225",
"0.67413956",
"0.6736622",
"0.6729978",
"0.672853",
"0.6714397",
"0.6713794",
"0.669506",
"0.6694904",
"0.66922325",
"0.6682659",
"0.66811925",
"0.6680015",
"0.66776586",
"0.6673344",
"0.66690683",
"0.66685146",
"0.66613984",
"0.6659732",
"0.66538197",
"0.66489005",
"0.6646934",
"0.6638408",
"0.6637825",
"0.66343963",
"0.662807",
"0.6625733",
"0.6623101",
"0.6612835",
"0.6612441",
"0.6599541",
"0.65989935",
"0.6584634",
"0.6580458",
"0.6574132",
"0.65466064",
"0.65370536",
"0.65275",
"0.65167403",
"0.6507872",
"0.64975363",
"0.64970934",
"0.64860666",
"0.6485821",
"0.6483259",
"0.64792675",
"0.6469284",
"0.64622194",
"0.64561874",
"0.6454822",
"0.64443487",
"0.6439275",
"0.6428786"
] | 0.0 | -1 |
/ tests for polyadic prefix mappings (a) base mapping is the mutable one (b) base mapping overrides all others (c) nonoverridden mappings in other maps are visible | public void testOnlyBaseMutated()
{
poly.getPrefixMapping().setNsPrefix( "a", alpha );
assertEquals( null, g1.getPrefixMapping().getNsPrefixURI( "a" ) );
assertEquals( null, g2.getPrefixMapping().getNsPrefixURI( "a" ) );
assertEquals( alpha, gBase.getPrefixMapping().getNsPrefixURI( "a" ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }",
"Collection<String> getMappingPrefixes();",
"public void testBug631Prefixes() {\n // Set the prefix length large enough so that we ensure prefixes are\n // appropriately tested\n final String[] prototypeNames = {\n \"__proto__\", \"constructor\", \"eval\", \"prototype\", \"toString\",\n \"toSource\", \"unwatch\", \"valueOf\",};\n\n for (int i = 0; i < prototypeNames.length; i++) {\n final String name = prototypeNames[i] + \"AAAAAAAAAAAAAAAAAAAA\";\n final PrefixTree tree = new PrefixTree(prototypeNames[i].length());\n\n assertFalse(\"Incorrectly found \" + name, tree.contains(name));\n\n assertTrue(\"First add() didn't return true: \" + name, tree.add(name));\n assertFalse(\"Second add() of duplicate entry didn't return false: \"\n + name, tree.add(name));\n\n assertTrue(\"contains() didn't find added word: \" + name,\n tree.contains(name));\n\n testSizeByIterator(tree);\n assertTrue(\"PrefixTree doesn't contain the desired word\",\n 1 == tree.size());\n }\n }",
"private boolean isPrefixInDictionaryRecursive(String prefix, BSTNode<String> n) {\n\t\tif (n.getData() == null){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tint comparison = n.getData().compareToIgnoreCase(prefix);\n\t\tboolean isPrefix = n.getData().startsWith(prefix);\n\t\tif (isPrefix) \n\t\t\treturn true;\n\t\t\n\t\t//makes sure the new parameters are not null references\n\t\tif (comparison < 0 && n.getLeft() != null)\n\t\t\treturn isPrefixInDictionaryRecursive( prefix, n.getLeft());\n\t\telse if ( comparison > 0 && n.getRight() != null)\n\t\t\treturn isPrefixInDictionaryRecursive( prefix, n.getRight());\n\t\telse //this case should never happen\n\t\t\treturn true;\n\t\t\n\t\t/**old code written by Professor below\n\t\t */\n\t\t\n\t\t//if (begin > end )\n\t\t//return false;\n\t\t\n\t\t//int half = (begin+end+1) / 2;\n\t\t//int comparison = words.get(half).compareToIgnoreCase(prefix);\n\t\t//boolean isPrefix = words.get(half).startsWith(prefix);\n\t\t//if (isPrefix) \n\t\t\t//return true;\n\t\t\n\t\t//if (comparison < 0 )\n\t\t\t//return isPrefixInDictionaryRecursive( prefix, half + 1, end );\n\t\t//else if ( comparison > 0 )\n\t\t\t//return isPrefixInDictionaryRecursive( prefix, begin, half - 1);\n\t\t//else //this case should never happen\n\t\t\t//return true;\n\t}",
"public void endPrefixMapping(String prefix) { }",
"private boolean basemapExists(String basemap) {\r\n ArrayList args = new ArrayList();\r\n args.add(basemap);\r\n int nbase = magicDataTpl.queryForObject(\r\n \"SELECT count(id) FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE name=? AND \" + \r\n userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_usage\", \"owner_name\", args, \"read\"), \r\n Integer.class, \r\n args.toArray()\r\n );\r\n return(nbase > 0);\r\n }",
"private void removeIfNeeded(String prefix) {\r\n // remove the previous mapping to the prefix\r\n if (this.prefixMapping.containsValue(prefix)) {\r\n Object key = null;\r\n for (Enumeration e = this.prefixMapping.keys(); e.hasMoreElements();) {\r\n key = e.nextElement();\r\n if (this.prefixMapping.get(key).equals(prefix)) \r\n break;\r\n }\r\n this.prefixMapping.remove(key); // we know key should have a value\r\n\t if (DEBUG) System.err.println(\"Removed \" + prefix);\r\n \r\n }\r\n }",
"public void addPOSPrefix(String prefix) {\n if(prefix==null)\n return;\n if(POSPrefix==null){\n POSPrefix=prefix;\n return;\n }\n if(prefix.startsWith(POSPrefix))\n return;\n if(POSPrefix.startsWith(prefix)){\n POSPrefix=prefix;\n } else { //We need to find the longest common prefix of the two prefix strings\n int len=0;\n for(int max=Math.min(prefix.length(),POSPrefix.length());len<max;++len){\n if(prefix.charAt(len)!=POSPrefix.charAt(len))\n break;\n }\n POSPrefix=prefix.substring(0,len);\n }\n }",
"private void populatePrefixMappings(OntModel model) {\n\t\tMap<String, String> pm = model.getNsPrefixMap();\n\t\tneededPrefixesForQueries = new String[pm.keySet().size()];\n\t\tint i=0;\n\t\tfor(String key:pm.keySet())\n\t\t{\n\t\t\tneededPrefixesForQueries[i] = key + \": <\" + pm.get(key) + \">\";\n\t\t\ti++;\n\t\t}\n\t}",
"public boolean startsWith(String prefix) {\n int length = prefix.length();\n if(length == 0){\n return false;\n }\n\n char[] chars = prefix.toCharArray();\n\n Map<Character,Node> map = this.root.map;\n // 需要保证word的结尾是endfr\n for(int i = 0;i < length;i++){\n if(!map.containsKey(chars[i])) {\n return false;\n }\n\n map = map.get(chars[i]).map;\n }\n return true;\n }",
"private void copyPrefixMappings(int location, int prefixMappingCount) {\n // copy the locations. We do not need to actually copy the strings from\n // the stringTable. Only copy the references to them.\n for (int i=0; i<prefixMappingCount; i++) {\n // add the prefix\n addInt(getInt(location));\n location++;\n //step over the the url as we only need the prefixes for endPrefix\n // events\n location++;\n }\n }",
"public void addPOSPrefix(String prefix) {\n\t\tif(prefix==null)\n\t\t\treturn;\n\t\tif(POSPrefix==null){\n\t\t\tPOSPrefix=prefix;\n\t\t\treturn;\n\t\t}\n\t\tif(prefix.startsWith(POSPrefix))\n\t\t\treturn;\n\t\tif(POSPrefix.startsWith(prefix)){\n\t\t\tPOSPrefix=prefix;\n\t\t} else { //We need to find the longest common prefix of the two prefix strings\n\t\t\tint len=0;\n\t\t\tfor(int max=Math.min(prefix.length(),POSPrefix.length());len<max;++len){\n\t\t\t\tif(prefix.charAt(len)!=POSPrefix.charAt(len))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tPOSPrefix=prefix.substring(0,len);\n\t\t}\n\t}",
"public boolean startsWith(String prefix) {\n char[] chs = prefix.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n return false;\n }\n cur = cur.map[ind];\n }\n return true;\n }",
"public void testExtendsMap() {\n final LinkerDef baseLinker = new LinkerDef();\n baseLinker.setMap(true);\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n setLinkerName(extendedLinker, \"msvc\");\n final String[] preArgs = getPreArguments(extendedLinker);\n assertEquals(\"/NOLOGO\", preArgs[0]);\n assertEquals(\"/SUBSYSTEM:WINDOWS\", preArgs[1]);\n assertEquals(\"/INCREMENTAL:NO\", preArgs[2]);\n assertEquals(\"/MAP\", preArgs[3]);\n }",
"protected abstract String getPropertyPrefix();",
"private void setUrlPrefixMappingToMap(String[] prefixArr)\n\t{\n\t\tif( prefixArr != null )\n\t\t{\n\t\t\tfor(String urlPrefix : prefixArr)\n \t{ \n\t\t\t\tif(urlPrefix.contains(DELIMITER))\n\t\t\t\t{\n\t \t\tString[] keyVal = urlPrefix.split(\"::\");\n\t \t\tString key \t\t= keyVal[0];\n\t \t\tString value \t= keyVal[1].trim();\n\t \t\tlog.info(\"REST SERVICE Key------->>> \"+key);\n\t \t\tlog.info(\"REST SERVICE Value------->>> \"+value);\n\t \t\tappurlMap.put(key , value);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlog.warn(\"NO DELEMETERS PROVIDED FOR REDIRECT SERVICE URL -------->>> \");\n\t\t\t\t}\n \t}\n\t\t}\n\t}",
"private static boolean isPrefix(char[] needle, int p) {\n for (int i = p, j = 0; i < needle.length; ++i, ++j) {\n if (needle[i] != needle[j]) {\n return false;\n }\n }\n return true;\n }",
"boolean hasSimpleMap();",
"public Map<String, String> getPrefixMap() {\n\t\treturn Collections.unmodifiableMap(prefixToURIMap);\n\t}",
"private boolean checkRep()\r\n/* 126: */ {\r\n/* 127: */ Iterator localIterator2;\r\n/* 128:217 */ for (Iterator localIterator1 = this.map.keySet().iterator(); localIterator1.hasNext(); localIterator2.hasNext())\r\n/* 129: */ {\r\n/* 130:217 */ N n = (Object)localIterator1.next();\r\n/* 131:218 */ localIterator2 = ((Map)this.map.get(n)).keySet().iterator(); continue;N suc = (Object)localIterator2.next();\r\n/* 132:219 */ if (!((Map)this.map.get(suc)).containsKey(n)) {\r\n/* 133:220 */ return false;\r\n/* 134: */ }\r\n/* 135:223 */ if (!((Map)this.map.get(n)).get(suc).equals(((Map)this.map.get(suc)).get(n))) {\r\n/* 136:224 */ return false;\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139:230 */ return true;\r\n/* 140: */ }",
"Set getPrefixes();",
"private boolean hasPrefix(byte[] nal)\n {\n return nal[0] == 0 && nal[1] == 0 && nal[2] == 0 && nal[3] == 0x01;\n }",
"public String toString(PrefixMapping pmap) \n {\n return null;\n }",
"private boolean isNeedCut(Map<Set<String>, Integer> preMap, Set<String> set) {\n\t\tboolean flag = false;\n\t\tList<Set<String>> subSets = getSubSets(set);\n\t\tfor(Set<String> subSet : subSets){\n\t\t\tif(!preMap.containsKey(subSet)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}",
"public abstract String getPrefix();",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"private int prefixQuery(String prefix) {\n if (curr == null)\n curr = track(dict, prefix);\n else\n curr = track(curr.mid, prefix);\n\n if (curr == null) return 0;\n if (curr.isString) {\n if (curr.mid == null) return 1;\n else return 3;\n } else {\n if (curr.mid == null) return 0;\n return 2;\n }\n }",
"boolean setPrefix(String prefix);",
"public boolean isPrefix() {\n return start != null &&\n startInclusive &&\n start.equals(end) &&\n endInclusive;\n }",
"public PrefixMapping(String prefix, String uri) {\r\n this.prefix = (prefix != null)? prefix : \"\";\r\n this.uri = (uri != null)? uri : \"\"; \r\n }",
"@Test\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }",
"public static boolean isPrefix(Grid g) {\n\t\tfor ( int i = 0; i < g.hword[0].trim().length(); i++ ) {\n\t\t\tString wordToCheck = g.getVWord(i).trim();\n\t\t\tif ( !dict.isWord(wordToCheck) )\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void startPrefixMapping(String prefix, String uri) {\n if (_prefixMapping == null) {\n _prefixMapping = new HashMap<>();\n }\n _prefixMapping.put(prefix, uri);\n }",
"public void startPrefixMapping( String prefix, String uri )\n throws SAXException\n {\n if( inProlog ) {\n // TODO: map the prefix.\n eventList.add(new StartPrefixMappingEvent(prefix, uri));\n }\n else {\n super.startPrefixMapping( prefix, uri );\n }\n }",
"public boolean isPrefix() { return prefix; }",
"protected void fillMapFromProperties(Properties props)\n {\n Enumeration<?> en = props.propertyNames();\n\n while (en.hasMoreElements())\n {\n String propName = (String) en.nextElement();\n\n // ignore map, pattern_map; they are handled separately\n if (!propName.startsWith(\"map\") &&\n !propName.startsWith(\"pattern_map\"))\n {\n String propValue = props.getProperty(propName);\n String fieldDef[] = new String[4];\n fieldDef[0] = propName;\n fieldDef[3] = null;\n if (propValue.startsWith(\"\\\"\"))\n {\n // value is a constant if it starts with a quote\n fieldDef[1] = \"constant\";\n fieldDef[2] = propValue.trim().replaceAll(\"\\\"\", \"\");\n }\n else\n // not a constant\n {\n // split it into two pieces at first comma or space\n String values[] = propValue.split(\"[, ]+\", 2);\n if (values[0].startsWith(\"custom\") || values[0].equals(\"customDeleteRecordIfFieldEmpty\") ||\n values[0].startsWith(\"script\"))\n {\n fieldDef[1] = values[0];\n\n // parse sections of custom value assignment line in\n // _index.properties file\n String lastValues[];\n // get rid of empty parens\n if (values[1].indexOf(\"()\") != -1)\n values[1] = values[1].replace(\"()\", \"\");\n\n // index of first open paren after custom method name\n int parenIx = values[1].indexOf('(');\n\n // index of first unescaped comma after method name\n int commaIx = Utils.getIxUnescapedComma(values[1]);\n\n if (parenIx != -1 && commaIx != -1 && parenIx < commaIx) {\n // remainder should be split after close paren\n // followed by comma (optional spaces in between)\n lastValues = values[1].trim().split(\"\\\\) *,\", 2);\n\n // Reattach the closing parenthesis:\n if (lastValues.length == 2) lastValues[0] += \")\";\n }\n else\n // no parens - split comma preceded by optional spaces\n lastValues = values[1].trim().split(\" *,\", 2);\n\n fieldDef[2] = lastValues[0].trim();\n\n fieldDef[3] = lastValues.length > 1 ? lastValues[1].trim() : null;\n // is this a translation map?\n if (fieldDef[3] != null && fieldDef[3].contains(\"map\"))\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n } // end custom\n else if (values[0].equals(\"xml\") ||\n values[0].equals(\"raw\") ||\n values[0].equals(\"date\") ||\n values[0].equals(\"json\") ||\n values[0].equals(\"json2\") ||\n values[0].equals(\"index_date\") ||\n values[0].equals(\"era\"))\n {\n fieldDef[1] = \"std\";\n fieldDef[2] = values[0];\n fieldDef[3] = values.length > 1 ? values[1].trim() : null;\n // NOTE: assuming no translation map here\n if (fieldDef[2].equals(\"era\") && fieldDef[3] != null)\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n }\n else if (values[0].equalsIgnoreCase(\"FullRecordAsXML\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsMARC\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsJson\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsJson2\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsText\") ||\n values[0].equalsIgnoreCase(\"DateOfPublication\") ||\n values[0].equalsIgnoreCase(\"DateRecordIndexed\"))\n {\n fieldDef[1] = \"std\";\n fieldDef[2] = values[0];\n fieldDef[3] = values.length > 1 ? values[1].trim() : null;\n // NOTE: assuming no translation map here\n }\n else if (values.length == 1)\n {\n fieldDef[1] = \"all\";\n fieldDef[2] = values[0];\n fieldDef[3] = null;\n }\n else\n // other cases of field definitions\n {\n String values2[] = values[1].trim().split(\"[ ]*,[ ]*\", 2);\n fieldDef[1] = \"all\";\n if (values2[0].equals(\"first\") ||\n (values2.length > 1 && values2[1].equals(\"first\")))\n fieldDef[1] = \"first\";\n\n if (values2[0].startsWith(\"join\"))\n fieldDef[1] = values2[0];\n\n if ((values2.length > 1 && values2[1].startsWith(\"join\")))\n fieldDef[1] = values2[1];\n\n if (values2[0].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\") ||\n (values2.length > 1 && values2[1].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\")))\n fieldDef[1] = \"DeleteRecordIfFieldEmpty\";\n\n fieldDef[2] = values[0];\n fieldDef[3] = null;\n\n // might we have a translation map?\n if (!values2[0].equals(\"all\") &&\n !values2[0].equals(\"first\") &&\n !values2[0].startsWith(\"join\") &&\n !values2[0].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\"))\n {\n fieldDef[3] = values2[0].trim();\n if (fieldDef[3] != null)\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n }\n } // other cases of field definitions\n\n } // not a constant\n\n fieldMap.put(propName, fieldDef);\n\n } // if not map or pattern_map\n\n } // while enumerating through property names\n\n // verify that fieldMap is valid\n verifyCustomMethodsAndTransMaps();\n }",
"boolean isPrefix(String potentialPrefix);",
"private boolean isPrefixFound(String line) {\n\t\tif (notab) {\n\t\t\treturn line.startsWith(prefix);\n\t\t} else {\n\t\t\treturn line.contains(prefix);\n\t\t}\n\t}",
"public static boolean checkPermutaionMap(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n int[] charMap = new int[128];\n for (int i = 0; i < s1.length(); ++i) {\n charMap[s1.charAt(i)]++;\n }\n\n for (int i = 0; i < s2.length(); ++i) {\n if (--charMap[s2.charAt(i)] < 0) return false;\n }\n\n return true;\n }",
"private boolean isValidPrefix(String prefix){\n if (trie.searchPrefix(prefix)){\n return true;\n } else {\n return false;\n }\n }",
"public boolean startsWith(String prefix) {\n Trie cur = this;\n int i = 0;\n while(i < prefix.length()) {\n int c = prefix.charAt(i) - 'a';\n if(cur.tries[c] == null) {\n return false;\n }\n cur = cur.tries[c];\n i++;\n }\n return true;\n }",
"@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.423 -0500\", hash_original_method = \"D02303EBFA8DB4A97AF291339C2FB52B\", hash_generated_method = \"D02303EBFA8DB4A97AF291339C2FB52B\")\n \nEnumeration getPrefixes ()\n {\n if (prefixTable == null) {\n return EMPTY_ENUMERATION;\n } else {\n return prefixTable.keys();\n }\n }",
"public abstract String[] map() throws TooFewNocNodesException;",
"static boolean AnyMapTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AnyMapTest\")) return false;\n if (!nextTokenIs(b, K_MAP)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeTokens(b, 3, K_MAP, L_PAR, STAR_SIGN, R_PAR);\n p = r; // pin = 3\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"public boolean findPrefix (String prefix ) {\n\t\t\n\t\t\n\t\treturn isPrefixInDictionaryRecursive (prefix, this.root );\n\t}",
"public boolean startsWith(String prefix) {\n TrieNode now = root;\n for(int i = 0; i < prefix.length(); i++) {\n Character c = prefix.charAt(i);\n if (!now.children.containsKey(c)) {return false;}\n now = now.children.get(c);\n }\n return true;\n}",
"public MapFilter(Properties p, String prefix) {\n // Properties extends HashTable<Object,Object> so it implements Map.\n // I need Map<String,T> so I wrap it in a HashMap for simplicity.\n // Java-8 breaks if we use diamond inference.\n this(new HashMap<>((Map) p), prefix);\n }",
"public boolean startsWith(String prefix) {\n TrieTree point = root;\n for(int i = 0; i < prefix.length(); i++){\n char ch = prefix.charAt(i);\n if(point.getChild(ch - 'a') == null) return false;\n point = point.getChild(ch - 'a');\n }\n return true;\n }",
"@Test\n public void testLoadWithPrefixA() throws Exception {\n List<GeoObjectBean> geoObjectBeans = geoObjectDao\n .getGeoObjectsByTypeAndParentAndPrefix(GeoObjectTypeCode.STREET, null, \"A\", Constants.LOCALE_EN, 20);\n assertNotNull(geoObjectBeans);\n assertTrue(geoObjectBeans.size() > 1);\n }",
"private static boolean doesPatternExistTwice(Map<Byte, byte[]> haystack,\n byte[] needle) {\n int twice = 0;\n\n for (Byte key : haystack.keySet()) {\n if (Arrays.equals(haystack.get(key), needle)) {\n twice++;\n if (twice == 2) return true;\n }\n }\n\n return false;\n }",
"private static void testMap(final OurMap<Integer, String> map) {\n System.out.printf(\"%n%s%n\", map.getClass());\n assert map.size() == 0;\n assert !map.containsKey(117);\n assert !map.containsKey(-2);\n assert map.get(117) == null;\n assert map.put(117, \"A\") == null;\n assert map.containsKey(117);\n assert map.get(117).equals(\"A\");\n assert map.put(17, \"B\") == null;\n assert map.size() == 2;\n assert map.containsKey(17);\n assert map.get(117).equals(\"A\");\n assert map.get(17).equals(\"B\");\n assert map.put(117, \"C\").equals(\"A\");\n assert map.containsKey(117);\n assert map.get(117).equals(\"C\");\n assert map.size() == 2;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n assert map.remove(117).equals(\"C\");\n assert !map.containsKey(117);\n assert map.get(117) == null;\n assert map.size() == 1;\n assert map.putIfAbsent(17, \"D\").equals(\"B\");\n assert map.get(17).equals(\"B\");\n assert map.size() == 1;\n assert map.containsKey(17);\n assert map.putIfAbsent(217, \"E\") == null;\n assert map.get(217).equals(\"E\");\n assert map.size() == 2;\n assert map.containsKey(217);\n assert map.putIfAbsent(34, \"F\") == null;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n }",
"public String[][] getKnownPrefixes() {\n return defaultPrefixes;\n }",
"public Map<String, String> paramap(String prefix, boolean cutPrefix, String prepend) {\n\t\tMap<String, String> m = null;\n\t\tm = new HashMap<String, String>();\n\t\tif (prefix == null || StringUtils.isBlank(prefix)) {\n\t\t\tprefix = null;\n\t\t\tcutPrefix = false;\n\t\t}\n\t\tfor(String k : parameters.keySet()) {\n\t\t\tif (prefix == null || StringUtils.startsWith(k, prefix)) {\n\t\t\t\tm.put(prepend + (cutPrefix ? k.substring(prefix.length()) : k), parameters.get(k));\n\t\t\t}\n\t\t}\n\t\treturn m;\n\t}",
"public boolean startsWith(String prefix) {\n TrieNode cur = root;\n for (int i = 0 ; i < prefix.length(); i ++) {\n char ch = prefix.charAt(i);\n if (! cur.children.containsKey(ch)) {\n // does not match\n return false;\n }\n else {\n cur = cur.children.get(ch);\n }\n }\n return true;\n }",
"@Test\n\tpublic void testContainsSomePrefix() {\n\n\t\tString[] prefixes = {\"ne\", \"ned\", \"nes\", \"ning\", \"st\", \"sted\", \"sting\", \"sts\"};\n\t\tList<String> listPrefixes = Arrays.asList(prefixes);\n\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"stedadsdf\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"neasdsadfa\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix contained\", StringUtils.containsSomePrefix(\"ningsdfsf\", listPrefixes), equalTo(true));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"nasfds\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"abdsfsd\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"ninsdfdsf\", listPrefixes), equalTo(false));\n\t\tassertThat(\"Prefix not contained\", StringUtils.containsSomePrefix(\"swerwrw\", listPrefixes), equalTo(false));\n\t}",
"private boolean hasPrefix(Node node, String prefix, int iter, int size) {\n if (node == null)\n return false;\n\n // we're at the prefix\n if (iter == size - 1)\n return true;\n\n // recursive step\n return hasPrefix(node.children.get(prefix.charAt(iter)), prefix, iter + 1, size);\n }",
"public void prefix( String base ) {\r\n\t\tthis.prefix = base;\r\n\t\ts.prefix( base );\r\n\t}",
"public static void main(String[] args) {\n\t\tString a= \"ghij\";\n\t\tString b = \"abcd\";\n\t\tboolean flag =false;\n\t\tHashMap h = new HashMap();\n\t\tfor(int i=0;i<a.length();i++){\n\t\t\tif(!h.containsKey(b.charAt(i))){\n\t\t\t\th.put(b.charAt(i),a.charAt(i));\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif(flag==true)\n\t\t\tSystem.out.println(\"Cannot map\");\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"Can map\");\n\n\t}",
"private static boolean namespaceMappingsDiffer(IMXMLNamespaceMapping[] oldMappings, List<? extends IMXMLNamespaceMapping> newMappings)\n {\n if (oldMappings.length != newMappings.size())\n return true;\n int nMappings = oldMappings.length;\n for (int i = 0; i < nMappings; ++i)\n {\n IMXMLNamespaceMapping oldMapping = oldMappings[i];\n IMXMLNamespaceMapping newMapping = newMappings.get(i);\n if (!oldMapping.getManifestFileName().equals(newMapping.getManifestFileName()))\n return true;\n\n if (!oldMapping.getURI().equals(newMapping.getURI()))\n return true;\n }\n \n return false;\n \n }",
"private String commonPrefix(String leftPrefix, String rightPrefix) {\n if (leftPrefix == null || rightPrefix == null) {\n return \"\";\n }\n\n int end = Math.min(leftPrefix.length(), rightPrefix.length());\n\n for (int i = 0; i < end; i++) {\n if (leftPrefix.charAt(i) != rightPrefix.charAt(i)) {\n return leftPrefix.substring(0, i);\n }\n }\n\n // a concise way to avoid ternary expression\n return leftPrefix.substring(0, end);\n }",
"public void setPropertyPrefix(String prefix);",
"public static PrefixMapping getDefault() {\n return defaultPrefixes;\n }",
"private void ini_MapPaks()\r\n\t{\r\n\r\n\t}",
"public boolean startsWith(String prefix) {\n Trie root = this;\n for (char c : prefix.toCharArray()) {\n if (root.next[c - 'a'] != null) {\n root = root.next[c - 'a'];\n } else {\n return false;\n }\n }\n return true;\n }",
"private void addGetDefaultPrefixesMethod(JavaComposite sc) {\n\t\tsc.add(\"@Override\");\r\n\t\tsc.addLineBreak();\r\n\t\tsc.add(\"public String[] getDefaultPrefixes(\" + I_SOURCE_VIEWER(sc) + \" sourceViewer, String contentType) {\");\r\n\t\tsc.add(\"return new String[] { \\\"//\\\" };\");\r\n\t\tsc.add(\"}\");\r\n\t\tsc.addLineBreak();\r\n\t}",
"void howManyStartsWithPrefix(String str) {\n dictionary.add(str);\n int count = 0;\n for (String word : words) {\n if (word.length() >= str.length()) {\n boolean isPrefix = true;\n for (int i = 0; i < str.length(); i++) {\n if (word.charAt(i) != str.charAt(i)) {\n isPrefix = false;\n break;\n }\n }\n if (isPrefix) {\n count++;\n }\n\n }\n }\n assertEquals(count, trie.howManyStartsWithPrefix(str));\n }",
"private static String getPrefixRewriteParams(String params) {\n\n URLMapping[] urlMappings = getParamsURLMappings(params);\n\n if (urlMappings == null) {\n return params;\n }\n\n StringBuilder sb = new StringBuilder();\n\n for (URLMapping urlMapping : urlMappings) {\n\n sb.append(urlMapping.getSplitKey()[3]);\n sb.append(\"=\");\n sb.append(urlMapping.getFinalValue());\n sb.append(\"&\");\n }\n\n return StringUtils.substring(sb.toString(), 0, sb.length() - 1);\n }",
"@Test\n public void testLowerBoundsIgnoredWhenDeletingCompositeEntitesOwnedByMap() throws Exception {\n AtlasStructDef.AtlasAttributeDef[] mapValueAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"refToMapValue\", \"CompositeMapValue\",\n false,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 1, 1,\n false, false,\n Collections.<AtlasStructDef.AtlasConstraintDef>emptyList())\n };\n\n AtlasEntityDef mapValueDef =\n new AtlasEntityDef(\"MapValueReferencer\", \"RequiredMapValue_description\", \"1.0\",\n Arrays.asList(mapValueAttributes), Collections.<String>emptySet());\n\n\n AtlasStructDef.AtlasAttributeDef[] mapContainerAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"requiredMap\", \"map<string,MapValueReferencer>\",\n false,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 1, 1,\n false, false,\n new ArrayList<AtlasStructDef.AtlasConstraintDef>() {{\n add(new AtlasStructDef.AtlasConstraintDef(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_TYPE_OWNED_REF));\n }})\n };\n\n AtlasEntityDef mapContainerDef =\n new AtlasEntityDef(\"MapValueReferencerContainer\", \"MapValueReferencerContainer_description\", \"1.0\",\n Arrays.asList(mapContainerAttributes), Collections.<String>emptySet());\n\n\n AtlasTypesDef typesDef = AtlasTypeUtil.getTypesDef(ImmutableList.<AtlasEnumDef>of(),\n ImmutableList.<AtlasStructDef>of(),\n ImmutableList.<AtlasClassificationDef>of(),\n ImmutableList.<AtlasEntityDef>of(mapValueDef, mapContainerDef));\n\n typeDefStore.createTypesDef(typesDef);\n\n // Create instances of CompositeMapOwner and CompositeMapValue.\n // Set MapOwner.map with one entry that references MapValue instance.\n AtlasEntity.AtlasEntityWithExtInfo entityDefinition = createMapOwnerAndValueEntities();\n String mapOwnerGuid = entityDefinition.getEntity().getGuid();\n\n // Verify MapOwner.map attribute has expected value.\n ITypedReferenceableInstance mapOwnerInstance = metadataService.getEntityDefinition(mapOwnerGuid);\n Object object = mapOwnerInstance.get(\"map\");\n Assert.assertNotNull(object);\n Assert.assertTrue(object instanceof Map);\n Map<String, ITypedReferenceableInstance> map = (Map<String, ITypedReferenceableInstance>)object;\n Assert.assertEquals(map.size(), 1);\n ITypedReferenceableInstance mapValueInstance = map.get(\"value1\");\n Assert.assertNotNull(mapValueInstance);\n String mapValueGuid = mapValueInstance.getId()._getId();\n\n // Create instance of MapValueReferencerContainer\n init();\n AtlasEntity mapValueReferencer = new AtlasEntity(mapValueDef.getName());\n mapValueReferencer.setAttribute(\"refToMapValue\", new AtlasObjectId(mapValueInstance.getId()._getId(), mapValueInstance.getTypeName()));\n AtlasEntity.AtlasEntitiesWithExtInfo entities = new AtlasEntity.AtlasEntitiesWithExtInfo();\n entities.addEntity(mapValueReferencer);\n\n List<AtlasEntityHeader> createEntitiesResult = entityStore.createOrUpdate(new AtlasEntityStream(entities), false).getCreatedEntities();\n Assert.assertEquals(createEntitiesResult.size(), 1);\n\n // Create instance of MapValueReferencer, and update mapValueReferencerContainer\n // to reference it.\n AtlasEntity mapValueReferenceContainer = new AtlasEntity(mapContainerDef.getName());\n entities = new AtlasEntity.AtlasEntitiesWithExtInfo();\n entities.addEntity(mapValueReferenceContainer);\n entities.addReferredEntity(mapValueReferencer);\n mapValueReferenceContainer.setAttribute(\"requiredMap\", Collections.singletonMap(\"value1\", AtlasTypeUtil.getAtlasObjectId(mapValueReferencer)));\n\n\n init();\n EntityMutationResponse updateEntitiesResult = entityStore.createOrUpdate(new AtlasEntityStream(entities), false);\n\n String mapValueReferencerContainerGuid = updateEntitiesResult.getCreatedEntitiesByTypeName(\"MapValueReferencerContainer\").get(0).getGuid();\n String mapValueReferencerGuid = updateEntitiesResult.getUpdatedEntitiesByTypeName(\"MapValueReferencer\").get(0).getGuid();\n\n Assert.assertEquals(updateEntitiesResult.getCreatedEntities().size(), 1);\n Assert.assertEquals(updateEntitiesResult.getUpdatedEntities().size(), 1);\n Assert.assertEquals(updateEntitiesResult.getUpdatedEntities().get(0).getGuid(), mapValueReferencerGuid);\n\n\n // Delete map owner and map referencer container. A total of 4 entities should be deleted,\n // including the composite entities. The lower bound constraint on MapValueReferencer.refToMapValue\n // should not be enforced on the composite MapValueReferencer since it is being deleted.\n EntityMutationResponse deleteEntitiesResult = entityStore.deleteByIds(Arrays.asList(mapOwnerGuid, mapValueReferencerContainerGuid));\n Assert.assertEquals(deleteEntitiesResult.getDeletedEntities().size(), 4);\n Assert.assertTrue(extractGuids(deleteEntitiesResult.getDeletedEntities()).containsAll(\n Arrays.asList(mapOwnerGuid, mapValueGuid, mapValueReferencerContainerGuid, mapValueReferencerGuid)));\n }",
"public static boolean prefixMatched(long number) {\r\n\t\tString num = Long.toString(number);\r\n\t\tint[] prefix = {4, 5, 6, 37};\t\t\t\t\t// lista prefixa za uporedbu\r\n\t\tfor (int i = 0; i < prefix.length; i++) {\r\n\t\t\tif (Long.valueOf(num.substring(0, 2)) == prefix[i]) {\t// uslov za dvocifreni prefix\r\n\t\t\t\treturn true;\r\n\t\t\t} \r\n\t\t\tif (Long.valueOf(num.substring(0, 1)) == prefix[i]) {\t// uslov za jednocifreni prefix\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\r\n public NavigableMap<K, V> subMap(final K fromKey, final boolean fromInclusive, final K toKey, final boolean toInclusive) {\n return null;\r\n }",
"public BidiMap<String, String> getPrefixes() {\n\t\tBidiMap<String, String> bidiMap = new DualHashBidiMap<String, String>(model.getNsPrefixMap());\n\t\treturn bidiMap;\n\t}",
"@Test\n\tpublic void doEqualsTestDifferentMaps() {\n\t\tassertFalse(bigBidiMap.equals(leftChildMap));\n\n\t}",
"public static UnicodeSet addPropertyStarts(UnicodeSet paramUnicodeSet)\n/* */ {\n/* 2093 */ TrieIterator localTrieIterator1 = new TrieIterator(NormTrieImpl.normTrie);\n/* 2094 */ RangeValueIterator.Element localElement1 = new RangeValueIterator.Element();\n/* */ \n/* 2096 */ while (localTrieIterator1.next(localElement1)) {\n/* 2097 */ paramUnicodeSet.add(localElement1.start);\n/* */ }\n/* */ \n/* */ \n/* 2101 */ TrieIterator localTrieIterator2 = new TrieIterator(FCDTrieImpl.fcdTrie);\n/* 2102 */ RangeValueIterator.Element localElement2 = new RangeValueIterator.Element();\n/* */ \n/* 2104 */ while (localTrieIterator2.next(localElement2)) {\n/* 2105 */ paramUnicodeSet.add(localElement2.start);\n/* */ }\n/* */ \n/* 2108 */ if (isFormatVersion_2_1)\n/* */ {\n/* 2110 */ TrieIterator localTrieIterator3 = new TrieIterator(AuxTrieImpl.auxTrie);\n/* 2111 */ RangeValueIterator.Element localElement3 = new RangeValueIterator.Element();\n/* 2112 */ while (localTrieIterator3.next(localElement3)) {\n/* 2113 */ paramUnicodeSet.add(localElement3.start);\n/* */ }\n/* */ }\n/* */ \n/* 2117 */ for (int i = 44032; i < 55204; i += 28) {\n/* 2118 */ paramUnicodeSet.add(i);\n/* 2119 */ paramUnicodeSet.add(i + 1);\n/* */ }\n/* 2121 */ paramUnicodeSet.add(55204);\n/* 2122 */ return paramUnicodeSet;\n/* */ }",
"String getPrefix();",
"String getPrefix();",
"String getPrefix();",
"String getPrefix();",
"@Override\r\n public NavigableMap<K, V> subMap(final K fromKey, final boolean inclusive) {\n return null;\r\n }",
"public boolean startsWith(String prefix) {\n/* 333 */ return this.m_str.startsWith(prefix);\n/* */ }",
"private void setProperlyOrderedPrefixNamePairs(String[] prefixMatchArray){\n prefixMatchArray[0] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? repositoryWithDualKeyNCategory.getKey1FromKey2(prefixMatchArray[0]) : prefixMatchArray[0];\n prefixMatchArray[1] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? prefixMatchArray[0] : repositoryWithDualKeyNCategory.getKey2FromKey1(prefixMatchArray[0]);\n }",
"static private Map<Object, Object> stripNonKeys(Object hints) {\n if (hints == null) {\n return null;\n }\n @SuppressWarnings(\"unchecked\")\n Map<Object, Object> filtered = (Map) hints;\n for (final Iterator it=hints.keySet().iterator(); it.hasNext();) {\n final Object key = it.next();\n if( key instanceof Stirng){\n \t// not formal\n if (filtered == hints) {\n // Copies the map only if needed.\n filtered = new HashMap<Object, Object>(filtered);\n }\n filtered.remove(key);\n }\n }\n return filtered;\n\t}",
"static boolean TypedMapTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"TypedMapTest\")) return false;\n if (!nextTokenIs(b, K_MAP)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeTokens(b, 2, K_MAP, L_PAR);\n p = r; // pin = 2\n r = r && report_error_(b, AtomicOrUnionType(b, l + 1));\n r = p && report_error_(b, consumeToken(b, COMMA)) && r;\n r = p && report_error_(b, SequenceType(b, l + 1)) && r;\n r = p && consumeToken(b, R_PAR) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"public void replacePrefixesAndSplitByPredicate() throws ConfigurationNotInitializedException, PrefixReplacerPredicateSplitterException {\n\t\ttry {\n\t\t\tedu.utdallas.hadooprdf.conf.Configuration config =\n\t\t\t\tedu.utdallas.hadooprdf.conf.Configuration.getInstance();\n\t\t\torg.apache.hadoop.conf.Configuration hadoopConfiguration =\n\t\t\t\tnew org.apache.hadoop.conf.Configuration(config.getHadoopConfiguration()); // Should create a clone so\n\t\t\t// that the original one does not get cluttered with job specific key-value pairs\n\t\t\tFileSystem fs = FileSystem.get(hadoopConfiguration);\n\t\t\t// Delete output directory\n\t\t\tfs.delete(m_OutputDirectoryPath, true);\n\t\t\t// Must set all the job parameters before creating the job\n\t\t\tString sPathToPrefixFile = m_DataSet.getPathToPrefixFile().toString();\n\t\t\thadoopConfiguration.set(Tags.PATH_TO_PREFIX_FILE, sPathToPrefixFile);\n\t\t\t// Create the job\n\t\t\tString sJobName = \"Prefix Replacer for \" + m_InputDirectoryPath.getParent() + '/' + m_InputDirectoryPath.getName();\n\t\t\tJob job = new Job(hadoopConfiguration, sJobName);\n\t\t\t// Specify input parameters\n\t\t\tjob.setInputFormatClass(TextInputFormat.class);\n\t\t\tboolean bInputPathEmpty = true;\n\t\t\t// Get input file names\n\t\t\tFileStatus [] fstatus = fs.listStatus(m_InputDirectoryPath, new PathFilterOnFilenameExtension(m_sInputFilesExtension));\n\t\t\tfor (int i = 0; i < fstatus.length; i++) {\n\t\t\t\tif (!fstatus[i].isDir()) {\n\t\t\t\t\tFileInputFormat.addInputPath(job, fstatus[i].getPath());\n\t\t\t\t\tbInputPathEmpty = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (bInputPathEmpty)\n\t\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"No file to replace prefix for!\");\n\t\t\t// Specify output parameters\n\t\t\tjob.setOutputFormatClass(FilenameByKeyMultipleTextOutputFormat.class);\n\t\t\tjob.setOutputKeyClass(Text.class);\n\t\t\tjob.setOutputValueClass(Text.class);\n\t\t\tjob.setMapOutputKeyClass(Text.class);\n\t\t\tjob.setMapOutputValueClass(Text.class);\n\t\t\tFileOutputFormat.setOutputPath(job, m_OutputDirectoryPath);\n\t\t\t// Set the mapper and reducer classes\n\t\t\tjob.setMapperClass(edu.utdallas.hadooprdf.data.preprocessing.namespacingpredicatesplit.mapred.PrefixReplacerPredicateSplitterMapper.class);\n\t\t\tjob.setReducerClass(edu.utdallas.hadooprdf.data.preprocessing.namespacingpredicatesplit.mapred.PrefixReplacerPredicateSplitterReducer.class);\n\t\t\t// Set the number of reducers\n\t\t\tif (-1 != getNumberOfReducers())\t// Use the number set by the client, if any\n\t\t\t\tjob.setNumReduceTasks(getNumberOfReducers());\n\t\t\telse if (-1 != config.getNumberOfTaskTrackersInCluster())\t// Use one reducer per TastTracker, if the number of TaskTrackers is available\n\t\t\t\tjob.setNumReduceTasks(config.getNumberOfTaskTrackersInCluster());\n\t\t\t// Set the jar file\n\t\t\tjob.setJarByClass(this.getClass());\n\t\t\t// Run the job\n\t\t\tif (job.waitForCompletion(true)) {\n\t\t\t\tfs.delete(m_InputDirectoryPath, true);\n\t\t\t\tfs.delete(m_DataSet.getPathToPSData(), true);\n\t\t\t\tfs.mkdirs(m_DataSet.getPathToPSData());\n\t\t\t\tfstatus = fs.listStatus(m_OutputDirectoryPath, new PathFilterOnFilenameExtension(Constants.PS_EXTENSION));\n\t\t\t\tfor (int i = 0; i < fstatus.length; i++)\n\t\t\t\t\tfs.rename(fstatus[i].getPath(), new Path(m_DataSet.getPathToPSData(), fstatus[i].getPath().getName()));\n\t\t\t\tfs.delete(m_OutputDirectoryPath, true);\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"Prefix replacer job failed!\");\n\t\t} catch (IOException e) {\n\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"IOException occurred:\\n\" + e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"InterruptedException occurred:\\n\" + e.getMessage());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tthrow new PrefixReplacerPredicateSplitterException(\"ClassNotFoundException occurred:\\n\" + e.getMessage());\n\t\t}\n\t}",
"private static boolean doesPatternExist(Map<Byte, byte[]> haystack,\n byte[] needle) {\n if (needle == null)\n return false;\n for (Byte key : haystack.keySet()) {\n if (Arrays.equals(haystack.get(key), needle)) {\n return true;\n }\n }\n return false;\n }",
"@Override\r\n public void startPrefixMapping(String prefix, String uri)\r\n throws SAXException {\n }",
"private static boolean stringStartsWith(String string, String prefix){\n for(int i=0; i < prefix.length(); i++){\n if(string.charAt(i) != prefix.charAt(i)){\n return false;\n }\n }\n return true;\n }",
"public void testCL21928774() {\n trie = new AbstractTrie<String>();\n trie.put(\"__proto__\", \"__proto__\");\n }",
"@Test\n\tpublic void testAxiomPrefixRenamingPrefMechanism() throws Exception {\n\t\ttestContextPrefixRenamingByPreference(IAxiom.ELEMENT_TYPE);\n\t}",
"void setPrefix(String prefix);",
"public boolean startsWith(String prefix) {\n TrieNode node = root;\n\n // for each char in the prefix, search in the TrieNode\n for (char c: prefix.toCharArray()) {\n if (node.children[c - 'a'] == null) {\n return false;\n }\n // move the node to next layer\n node = node.children[c - 'a'];\n }\n // if we iterate to the last, return true\n return true;\n }",
"public interface ComplexKeyMap<K, V> extends Map<K, V> {\n\n}",
"public void testBug631Suffixes() {\n // Set the prefix length large enough so that we ensure suffixes are\n // appropriately tested\n final PrefixTree tree = new PrefixTree(100);\n final String[] prototypeNames = {\n \"__proto__\", \"constructor\", \"eval\", \"prototype\", \"toString\",\n \"toSource\", \"unwatch\", \"valueOf\",};\n\n for (int i = 0; i < prototypeNames.length; i++) {\n final String name = prototypeNames[i];\n\n assertFalse(\"Incorrectly found \" + name, tree.contains(name));\n\n assertTrue(\"First add() didn't return true: \" + name, tree.add(name));\n assertFalse(\"Second add() of duplicate entry didn't return false: \"\n + name, tree.add(name));\n\n assertTrue(\"contains() didn't find added word: \" + name,\n tree.contains(name));\n }\n\n testSizeByIterator(tree);\n assertTrue(\"PrefixTree doesn't contain all of the desired words\",\n prototypeNames.length == tree.size());\n }",
"@Override\n public void startPrefixMapping(\n String prefix, String uri\n ) throws SAXException {\n // ...\n }",
"public boolean prefixmatch(long cnumber, int d) {\n return getprefx(cnumber, thesize(d)) == d;\n }",
"public static Map<String, Property> getDefaultMapping() {\n\t\tMap<String, Property> props = new HashMap<String, Property>();\n\t\tprops.put(\"nstd\", Property.of(p -> p.nested(n -> n.enabled(true))));\n\t\tprops.put(\"properties\", Property.of(p -> {\n\t\t\t\tif (nestedMode()) {\n\t\t\t\t\tp.nested(n -> n.enabled(true));\n\t\t\t\t} else {\n\t\t\t\t\tp.object(n -> n.enabled(true));\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\t}\n\t\t));\n\t\tprops.put(\"latlng\", Property.of(p -> p.geoPoint(n -> n.nullValue(v -> v.text(\"0,0\")))));\n\t\tprops.put(\"_docid\", Property.of(p -> p.long_(n -> n.index(false))));\n\t\tprops.put(\"updated\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\t\tprops.put(\"timestamp\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\n\t\tprops.put(\"tag\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"id\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"key\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"name\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"type\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"tags\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"token\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"email\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"appid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"groups\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"password\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"parentid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"creatorid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"identifier\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\treturn props;\n\t}",
"public SimplePrefixManager() {\n\t\turiToPrefixMap = new HashMap<>();\n\t\tprefixToURIMap = new HashMap<>();\n\t\tinitKnownPrefixes();\n\t}",
"protected boolean validatePrimaryContractLookupKeys(PrimaryContract primContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = primContract.getValidityPeriod();\n \n boolean result=true;\n EList<PrimaryContractMapEntryValue> contractMapEntryValues = primContract.getMapEntryValues();\n /*\n * multiple key maps to same contract\n * - verify all VPs are bounded by new VP\n */\n // multiple keys map to the same contract at different VP\n // - all VP of entry values should be bounded by new VP\n for(PrimaryContractMapEntryValue mapEntryValue:contractMapEntryValues){\n ValidityPeriod oldVP = mapEntryValue.getValidityPeriod();\n \n if(mapEntryValue.getPrimaryContract()!=primContract){\n result &= false;\n diagnostics.add\n (new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_PRIMARY_CONTRACT_MAP_ENTRY_VALUE,\n LOOKUP_KEY_ENTRY__VALUE,\n String.format(\"%s [%s] '%s' does not match '%s'\",\n mapEntryValue.getLookupKey().toString(),\n \"Value\", mapEntryValue.getPrimaryContract().getName(),primContract.getName()),\n new Object[]{mapEntryValue}));\n }\n\n if(contractMapEntryValues.size()==1){\n if(!newPeriod.getStart().isEquals(oldVP.getStart())\n ||!newPeriod.getEnd().isEquals(oldVP.getEnd())){\n result &= false;\n diagnostics.add\n (new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_PRIMARY_CONTRACT_MAP_ENTRY_VALUE,\n LOOKUP_KEY__RANGE,\n String.format(\"%s [%s] '%s' does not match '%s'\",\n mapEntryValue.getLookupKey().toString(),\n \"Range\", getDisplayString(oldVP),getDisplayString(newPeriod)),\n new Object[]{mapEntryValue}));\n }\n }else if(!newPeriod.contains(oldVP)){\n result &= false;\n diagnostics.add\n (new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_PRIMARY_CONTRACT_MAP_ENTRY_VALUE,\n LOOKUP_KEY__RANGE,\n String.format(\"%s [%s] '%s' is out of range\",\n mapEntryValue.getLookupKey().toString(),\n \"Range\", getDisplayString(oldVP)),\n new Object[]{mapEntryValue}));\n }\n }\n \n return result;\n }",
"private void resetToBase(){\n\t\t//find number of markers after base\n\t\tSystem.out.println(\"here is the base: \" + base);\n\t\tint numMarkers = 0;\n\n\t\tfor(int i=base+1; i<indices.length; i++){\n\t\t\tif(indices[i]==1){\n\t\t\t\tindices[i] = 0;\n\t\t\t\tnumMarkers++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=base; i<base+numMarkers; i++){\n\t\t\tindices[i+1] = 1;\n\t\t}\n\t}",
"public boolean startsWith(String prefix) {\n if (prefix == null || prefix.length() == 0)\n return false;\n char [] letters = prefix.toCharArray();\n TrieNode node = root;\n for (int i=0; i < letters.length; i++) {\n int pos = letters[i] - 'a';\n if (node.son[pos] == null)\n return false;\n node = node.son[pos];\n }\n\n return true;\n }",
"public void startPrefixMapping (String prefix, String uri)\n throws SAXException\n {\n // no op\n }"
] | [
"0.6002167",
"0.595837",
"0.5758275",
"0.5751649",
"0.56454504",
"0.5593561",
"0.55825865",
"0.5487449",
"0.5437855",
"0.54356503",
"0.5413082",
"0.5392814",
"0.5383114",
"0.5382122",
"0.5370765",
"0.53626907",
"0.5347574",
"0.53460777",
"0.53419405",
"0.53370506",
"0.5324058",
"0.52789956",
"0.5264588",
"0.52348405",
"0.5207839",
"0.5199563",
"0.5194161",
"0.51906586",
"0.5179082",
"0.5155973",
"0.5131013",
"0.51175785",
"0.507785",
"0.50678706",
"0.50627655",
"0.5055382",
"0.5040478",
"0.5028609",
"0.5024523",
"0.5015774",
"0.50006086",
"0.49968523",
"0.49910504",
"0.49833795",
"0.49751675",
"0.49690363",
"0.49688995",
"0.49561137",
"0.49441624",
"0.49367553",
"0.49230236",
"0.49218878",
"0.4921708",
"0.49098033",
"0.49033558",
"0.4874246",
"0.48709667",
"0.48597997",
"0.48415723",
"0.48278245",
"0.4822261",
"0.48207876",
"0.48141462",
"0.48106813",
"0.47991207",
"0.47988346",
"0.47943482",
"0.47931322",
"0.47849017",
"0.47842428",
"0.47775227",
"0.4768943",
"0.47672126",
"0.47612584",
"0.47612584",
"0.47612584",
"0.47612584",
"0.47605366",
"0.47599965",
"0.47532147",
"0.47516462",
"0.47499025",
"0.4745536",
"0.4740502",
"0.47365117",
"0.47339153",
"0.47334018",
"0.47306633",
"0.47302285",
"0.4727581",
"0.47260296",
"0.47229815",
"0.47226283",
"0.47189525",
"0.47188112",
"0.47094426",
"0.4705912",
"0.47019717",
"0.47017166",
"0.47001615"
] | 0.73110706 | 0 |
Test that the default namespace of a subgraph doesn't appear as a default namespace of the polyadic graph. | public void testSubgraphsDontPolluteDefaultPrefix()
{
String imported = "http://imported#", local = "http://local#";
g1.getPrefixMapping().setNsPrefix( "", imported );
poly.getPrefixMapping().setNsPrefix( "", local );
assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }",
"@Override\r\n\t\tpublic boolean isDefaultNamespace(String namespaceURI)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}",
"public void testOnlyBaseMutated()\n {\n poly.getPrefixMapping().setNsPrefix( \"a\", alpha );\n assertEquals( null, g1.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n assertEquals( null, g2.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n assertEquals( alpha, gBase.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n }",
"@Test\n public void verifyReservedNS() throws IOException {\n NamespaceDescriptor ns = TestNamespace.admin.getNamespaceDescriptor(DEFAULT_NAMESPACE.getName());\n Assert.assertNotNull(ns);\n Assert.assertEquals(ns.getName(), DEFAULT_NAMESPACE.getName());\n ns = TestNamespace.admin.getNamespaceDescriptor(SYSTEM_NAMESPACE.getName());\n Assert.assertNotNull(ns);\n Assert.assertEquals(ns.getName(), SYSTEM_NAMESPACE.getName());\n Assert.assertEquals(2, TestNamespace.admin.listNamespaceDescriptors().length);\n // verify existence of system tables\n Set<TableName> systemTables = Sets.newHashSet(META_TABLE_NAME);\n HTableDescriptor[] descs = TestNamespace.admin.listTableDescriptorsByNamespace(SYSTEM_NAMESPACE.getName());\n Assert.assertEquals(systemTables.size(), descs.length);\n for (HTableDescriptor desc : descs) {\n Assert.assertTrue(systemTables.contains(desc.getTableName()));\n }\n // verify system tables aren't listed\n Assert.assertEquals(0, TestNamespace.admin.listTables().length);\n // Try creating default and system namespaces.\n boolean exceptionCaught = false;\n try {\n TestNamespace.admin.createNamespace(DEFAULT_NAMESPACE);\n } catch (IOException exp) {\n TestNamespace.LOG.warn(exp.toString(), exp);\n exceptionCaught = true;\n } finally {\n Assert.assertTrue(exceptionCaught);\n }\n exceptionCaught = false;\n try {\n TestNamespace.admin.createNamespace(SYSTEM_NAMESPACE);\n } catch (IOException exp) {\n TestNamespace.LOG.warn(exp.toString(), exp);\n exceptionCaught = true;\n } finally {\n Assert.assertTrue(exceptionCaught);\n }\n }",
"@Test\r\n\tpublic void testBogus() {\n\t\tassertLookup(\"bogus.phony.fake.namespace\",\"bogus.phony.fake.namespace\");\r\n\t}",
"@Test\n public void shouldInitializeFromPersistedContent() {\n namespaceRegistry.register(validPrefix1, validNamespaceUri1);\n namespaceRegistry.register(validPrefix2, validNamespaceUri2);\n assertThat(namespaceRegistry.getNamespaceForPrefix(validPrefix1), is(validNamespaceUri1));\n assertThat(namespaceRegistry.getNamespaceForPrefix(validPrefix2), is(validNamespaceUri2));\n\n // Now set up the graph-based namespace registry ...\n GraphNamespaceRegistry registry2 = new GraphNamespaceRegistry(graph, pathToParentOfNamespaceNodes, uriPropertyName,\n additionalNamespaceProperties);\n // All namespaces should match ...\n Set<NamespaceRegistry.Namespace> all = namespaceRegistry.getNamespaces();\n Set<NamespaceRegistry.Namespace> all2 = registry2.getNamespaces();\n assertThat(all, is(all2));\n assertThat(registry2.getNamespaceForPrefix(validPrefix1), is(validNamespaceUri1));\n assertThat(registry2.getNamespaceForPrefix(validPrefix2), is(validNamespaceUri2));\n\n registry2.refresh();\n all2 = registry2.getNamespaces();\n assertThat(all, is(all2));\n assertThat(registry2.getNamespaceForPrefix(validPrefix1), is(validNamespaceUri1));\n assertThat(registry2.getNamespaceForPrefix(validPrefix2), is(validNamespaceUri2));\n }",
"@Test\n public void testWithUnknownLabel() throws Exception {\n LogicalGraph socialGraph = getSocialNetworkLoader().getLogicalGraph();\n LogicalGraph result = socialGraph\n .callForGraph(new VertexDeduplication<>(\"NotInTheGraph\", Arrays.asList(\"a\", \"b\")));\n collectAndAssertTrue(socialGraph.equalsByData(result));\n }",
"boolean isSetNamespace();",
"@Test\n\tpublic void test_TCM__OrgJdomNamespace_getNamespace() {\n\t\tfinal Namespace ns = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n\t\tfinal Attribute attr = new Attribute(\"test\", \"value\", ns);\n\t\tfinal Namespace ns2 = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n\t\tassertTrue(\"incorrect Namespace\", attr.getNamespace().equals(ns2));\n\n\t}",
"@FixFor( \"MODE-788\" )\n @Test\n public void shouldCreateSubgraphAndDeleteSubgraphInSameOperation() {\n graph.batch()\n .create(\"/a\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b/c\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .delete(\"/a\")\n .and()\n .execute();\n\n // Now look up node A ...\n assertTrue(testWorkspaceRoot.list().length == 0);\n assertFalse(new File(testWorkspaceRoot, \"a\").exists());\n }",
"@Test\n public void streamDefaultGraphNameByPattern() throws Exception {\n final Optional<? extends Quad> aliceTopic = dataset.stream(Optional.empty(), null, null, null).findAny();\n assertTrue(aliceTopic.isPresent());\n // COMMONSRDF-55: should not be <urn:x-arq:defaultgraph> or similar\n assertNull(aliceTopic.get().getGraphName().orElse(null));\n assertFalse(aliceTopic.get().getGraphName().isPresent());\n }",
"@Override\n\tpublic String getNamespace() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic String getNamespace() {\n\t\treturn null;\r\n\t}",
"@Test\n public void testNamespaceInfoWithUnavailableNameNodeRegistration()\n throws IOException {\n List<MembershipState> registrationList = new ArrayList<>();\n String router = ROUTERS[0];\n String ns = NAMESERVICES[0];\n String rpcAddress = \"testrpcaddress\";\n String serviceAddress = \"testserviceaddress\";\n String lifelineAddress = \"testlifelineaddress\";\n String blockPoolId = \"testblockpool\";\n String clusterId = \"testcluster\";\n String webScheme = \"http\";\n String webAddress = \"testwebaddress\";\n boolean safemode = false;\n\n MembershipState record = MembershipState.newInstance(\n router, ns, NAMENODES[0], clusterId, blockPoolId,\n rpcAddress, serviceAddress, lifelineAddress, webScheme,\n webAddress, FederationNamenodeServiceState.ACTIVE, safemode);\n registrationList.add(record);\n\n // Set empty clusterId and blockPoolId for UNAVAILABLE NameNode\n record = MembershipState.newInstance(\n router, ns, NAMENODES[1], \"\", \"\",\n rpcAddress, serviceAddress, lifelineAddress, webScheme,\n webAddress, FederationNamenodeServiceState.UNAVAILABLE, safemode);\n registrationList.add(record);\n\n registerAndLoadRegistrations(registrationList);\n\n GetNamespaceInfoRequest request = GetNamespaceInfoRequest.newInstance();\n GetNamespaceInfoResponse response\n = membershipStore.getNamespaceInfo(request);\n Set<FederationNamespaceInfo> namespaces = response.getNamespaceInfo();\n\n // Verify only one namespace is registered\n assertEquals(1, namespaces.size());\n\n // Verify the registered namespace has a valid pair of clusterId\n // and blockPoolId derived from ACTIVE NameNode\n FederationNamespaceInfo namespace = namespaces.iterator().next();\n assertEquals(ns, namespace.getNameserviceId());\n assertEquals(clusterId, namespace.getClusterId());\n assertEquals(blockPoolId, namespace.getBlockPoolId());\n }",
"private String getDefaultNS() {\n\t\treturn model.getNsPrefixURI(\"\");\n\t}",
"java.lang.String getNamespace();",
"public String getParentNamespace () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"@Test\n\tpublic void defaultNetworkIsTestNetworkByDefault() {\n\t\t// Assert:\n\t\tAssert.assertThat(\n\t\t\t\tNetworkInfos.getDefault(),\n\t\t\t\tIsSame.sameInstance(NetworkInfos.getTestNetworkInfo()));\n\t}",
"@Test\n public void streamDefaultGraphNameAlice() throws Exception {\n final Optional<? extends Quad> aliceTopic = dataset.stream(null, alice, isPrimaryTopicOf, null).findAny();\n assertTrue(aliceTopic.isPresent());\n // COMMONSRDF-55: should not be <urn:x-arq:defaultgraph> or similar\n assertNull(aliceTopic.get().getGraphName().orElse(null));\n assertFalse(aliceTopic.get().getGraphName().isPresent());\n }",
"public void test_dn_02() {\n OntModel mymod = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM, null );\n mymod.read( \"file:testing/ontology/testImport3/a.owl\" );\n \n assertEquals( \"Graph count..\", 2, mymod.getSubGraphs().size() );\n \n for (Iterator it = mymod.listImportedModels(); it.hasNext();) {\n mymod.removeSubModel( (Model) it.next() );\n }\n \n assertEquals( \"Graph count..\", 0, mymod.getSubGraphs().size() );\n }",
"public void testMemberNotTeamMemberForProjectValidator_EmptyNamespace() {\r\n try {\r\n new MemberNotTeamMemberForProjectValidator(\" \");\r\n fail(\"testMemberNotTeamMemberForProjectValidator_EmptyNamespace is failure.\");\r\n } catch (IllegalArgumentException iae) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"Unknown exception occurs in testMemberNotTeamMemberForProjectValidator_EmptyNamespace.\");\r\n }\r\n }",
"public static boolean NamespaceNodeTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"NamespaceNodeTest\")) return false;\n if (!nextTokenIs(b, K_NAMESPACE_NODE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, NAMESPACE_NODE_TEST, null);\n r = consumeTokens(b, 2, K_NAMESPACE_NODE, L_PAR, R_PAR);\n p = r; // pin = 2\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"public void testMemberNotTeamMemberForProjectValidator_UnknownNamespace() {\r\n try {\r\n new MemberNotTeamMemberForProjectValidator(\"unknown\");\r\n fail(\"testMemberNotTeamMemberForProjectValidator_UnknownNamespace is failure.\");\r\n } catch (RegistrationValidationConfigurationException rvce) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"Unknown exception occurs in testMemberNotTeamMemberForProjectValidator_UnknownNamespace.\");\r\n }\r\n }",
"public boolean isNamespaceAware () {\n return true;\n }",
"public Resource getDefaultGraphName() {\n \t\treturn createResource(this.baseGraphName);\n \t}",
"boolean isNamespace(Object object);",
"@Test\n public void getGraph2() throws Exception {\n final BlankNodeOrIRI graph2Name = (BlankNodeOrIRI) dataset.stream(Optional.empty(), bob, isPrimaryTopicOf, null)\n .map(Quad::getObject).findAny().get();\n\n try (final Graph g2 = dataset.getGraph(graph2Name).get()) {\n assertEquals(4, g2.size());\n final Triple bobNameTriple = bobNameQuad.asTriple();\n assertTrue(g2.contains(bobNameTriple));\n assertTrue(g2.contains(bob, member, bnode1));\n assertTrue(g2.contains(bob, member, bnode2));\n assertFalse(g2.contains(bnode1, name, secretClubName));\n assertTrue(g2.contains(bnode2, name, companyName));\n }\n }",
"@Test\n public void testDefaults()\n {\n NearScheme scheme = new NearScheme();\n\n scheme.setBackScheme(new LocalScheme());\n\n assertNotNull(scheme.getServiceBuilder());\n assertEquals(\"auto\", scheme.getInvalidationStrategy(new NullParameterResolver()));\n }",
"@Test\n public void testConfigurationDeclarationIsReserved()\n {\n DefaultConfigurationBuilder.ConfigurationDeclaration decl = new DefaultConfigurationBuilder.ConfigurationDeclaration(\n factory, factory);\n DefaultConfigurationNode parent = new DefaultConfigurationNode();\n DefaultConfigurationNode nd = new DefaultConfigurationNode(\"at\");\n parent.addAttribute(nd);\n assertTrue(\"Attribute at not recognized\", decl.isReservedNode(nd));\n nd = new DefaultConfigurationNode(\"optional\");\n parent.addAttribute(nd);\n assertTrue(\"Attribute optional not recognized\", decl.isReservedNode(nd));\n nd = new DefaultConfigurationNode(\"config-class\");\n parent.addAttribute(nd);\n assertTrue(\"Inherited attribute not recognized\", decl\n .isReservedNode(nd));\n nd = new DefaultConfigurationNode(\"different\");\n parent.addAttribute(nd);\n assertFalse(\"Wrong reserved attribute\", decl.isReservedNode(nd));\n nd = new DefaultConfigurationNode(\"at\");\n parent.addChild(nd);\n assertFalse(\"Node type not evaluated\", decl.isReservedNode(nd));\n }",
"@Override\r\n\tpublic String getNamespaceURI() {\n\t\treturn null;\r\n\t}",
"public final Namespace getDefaultNamespace() {\n return _defaultNamespace;\n }",
"protected boolean compareNamespace(final XNode y, final ArrayReporter rep) {\n\t\tString ux = getNSUri();\n\t\tString uy = y.getNSUri();\n\t\tif (ux == null) {\n\t\t\tif (uy == null) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (ux.equals(uy)) {\n\t\t\treturn true;\n\t\t}\n\t\t//Namespace differs: &{0} and &{1}\n\t\trep.error(XDEF.XDEF288, getXDPosition(), y.getXDPosition());\n\t\treturn false;\n\t}",
"@Test\n public void testTaintContainsEmptyTaint() {\n Taint t = Taint.withLabel(2);\n Taint t2 = Taint.emptyTaint();\n assertTrue(t.isSuperset(t2));\n assertFalse(t2.isSuperset(t));\n }",
"@Test\n\tpublic void shouldGetRootNodesCorrectly() {\n\n\t\tString acceptance = \"acceptance\";\n\t\tString plugins = \"plugins\";\n\t\tString gitPlugins = \"git-plugins\";\n\t\tString cruise = \"cruise\";\n\t\tString gitTrunk = \"git-trunk\";\n\t\tString hgTrunk = \"hg-trunk\";\n\n\t\tValueStreamMap graph = new ValueStreamMap(acceptance, null);\n\t\tgraph.addUpstreamNode(new PipelineDependencyNode(plugins, plugins), null, acceptance);\n\t\tgraph.addUpstreamNode(new PipelineDependencyNode(gitPlugins, gitPlugins), null, plugins);\n\t\tgraph.addUpstreamNode(new PipelineDependencyNode(cruise, cruise), null, plugins);\n\t\tgraph.addUpstreamMaterialNode(new SCMDependencyNode(gitTrunk, gitTrunk, \"git\"), null, cruise, new MaterialRevision(null));\n\t\tgraph.addUpstreamMaterialNode(new SCMDependencyNode(hgTrunk, hgTrunk, \"hg\"), null, cruise, new MaterialRevision(null));\n\t\tgraph.addUpstreamNode(new PipelineDependencyNode(cruise, cruise), null, acceptance);\n\t\tgraph.addUpstreamMaterialNode(new SCMDependencyNode(hgTrunk, hgTrunk, \"hg\"), null, acceptance, new MaterialRevision(null));\n\n\t\tList<Node> rootNodes = graph.getRootNodes();\n\t\tassertThat(rootNodes.size(), is(3));\n\t\tassertThat(getNodeIds(rootNodes), contains(gitPlugins, gitTrunk, hgTrunk));\n\t}",
"@Test\n public final void testGetXPathWithNamespace() {\n \n Document testDoc = TestDocHelper.createDocument(\n \"<d:a xmlns:d=\\\"http://test.com\\\"><b/></d:a>\");\n Element docEl = testDoc.getDocumentElement();\n \n //Move to beforeclass method\n XPathFactory xPathFac = XPathFactory.newInstance();\n XPath xpathExpr = xPathFac.newXPath();\n \n testXPathForNode(docEl, xpathExpr);\n testXPathForNode(docEl.getFirstChild(), xpathExpr);\n }",
"String getNamespace();",
"String getNamespace();",
"String getNamespace();",
"public void testGetNamespaceURI() throws RepositoryException {\n String result = \"namespace\" ;\n String prefix =\"prefix\";\n \n sessionControl.expectAndReturn(session.getNamespaceURI(prefix), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getNamespaceURI(prefix), result);\n }",
"@FixFor( \"MODE-788\" )\n @Test\n public void shouldCreateSubgraphAndDeletePartOfThatSubgraphInSameOperation() {\n graph.batch()\n .create(\"/a\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .create(\"/a/b/c\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FOLDER)\n .orReplace()\n .and()\n .delete(\"/a/b\")\n .and()\n .execute();\n\n // Now look up node A ...\n File newFile = new File(testWorkspaceRoot, \"a\");\n assertTrue(newFile.exists());\n assertTrue(newFile.isDirectory());\n assertTrue(newFile.list().length == 0);\n assertFalse(new File(newFile, \"b\").exists());\n }",
"public String getBaseNamespace() {\n/* 454 */ return \"http://www.w3.org/2000/09/xmldsig#\";\n/* */ }",
"@Test\n public void testDefaultDowngradesNoWildfly() throws Throwable {\n assumeThat(hasWildfly).isFalse();\n expectBound(Default, Default_JSSE);\n }",
"@Test\n void testNothingExists() throws Exception {\n doCheckTest(\n create(true, \"ns1.example.tld\", null),\n create(true, \"ns2.example.tld\", null),\n create(true, \"ns3.example.tld\", null));\n }",
"@Test(expected = OntoGraphException.class)\n public void testEmptyOntology() throws OntoGraphException {\n GraphRequestModel requestModel = createCustomGraphRequestModelWithDiffOntologyErrors(\"test.rdf\", \" \");\n controller.graph(requestModel);\n }",
"public String getDefaultNamespace() {\n return defaultNamespaceUri;\n }",
"public final boolean isNamespaceAware() {\n return true;\n }",
"@Test\n public void testTRK2HasNoSubComponents() {\n assertThat( hasSubComponents( TRK2_WITHOT_SUB_COMP ), is( false ) );\n }",
"private static boolean isGoogDotLocaleReference(Node n) {\n return n.matchesQualifiedName(QNAME_FOR_GOOG_LOCALE);\n }",
"private NamespaceDefinition getDefaultNamespace(boolean attr) {\n NamespaceDefinition ns;\n if (attr) {\n ns = m_attributeDefault;\n } else {\n ns = m_elementDefault;\n }\n if (ns == null && m_context != null) {\n ns = m_context.getDefaultNamespace(attr);\n }\n return ns;\n }",
"@Override\r\n\t\tpublic String getNamespaceURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"void unsetNamespace();",
"public boolean hasNamespace() {\n return m_namespaces != null && m_namespaces.size() > 0;\n }",
"private NamespaceHelper() {}",
"@Test\n public void shouldNotAllowSubdomainsWhenLinkingFromOutside() {\n assertFalse(sutHttp.shouldCrawl(create(\"http://anotherHost\"), create(\"http://sub.host\")));\n }",
"@Test\n public void testIsValidonContinentNotConnectedMap() {\n // Create a new continent ContinentC which is not connected\n mapModel.addContinent(\"ContinentC\", 3);\n mapModel.getGraphTerritories()\n .get(\"TerritoryA\").setContinentName(\"ContinentC\");\n mapModel.getGraphTerritories()\n .get(\"TerritoryE\").setContinentName(\"ContinentC\");\n\n boolean expResult = false;\n boolean result = mapModel.isValid();\n assertEquals(expResult, result);\n }",
"@Test\n public void testASSY1HasNoSubComponents() {\n assertThat( hasSubComponents( ASSY1_WITHOT_SUB_COMP ), is( false ) );\n }",
"public void testGetNamespacePrefixes() throws RepositoryException {\n String result[] = { \"prefix1\", \"prefix2\" };\n \n sessionControl.expectAndReturn(session.getNamespacePrefixes(), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getNamespacePrefixes(), result);\n }",
"@Test\n public void whenSubtreeUnbalanced_isUnbalanced() {\n BinaryTree.Node n1 = new BinaryTree.Node(1);\n BinaryTree.Node n2 = new BinaryTree.Node(2);\n BinaryTree.Node n3 = new BinaryTree.Node(3);\n BinaryTree.Node n4 = new BinaryTree.Node(4);\n BinaryTree.Node n5 = new BinaryTree.Node(5);\n BinaryTree.Node n6 = new BinaryTree.Node(6);\n n1.setLeft(n2);\n n2.setLeft(n3);\n n3.setLeft(n4);\n n1.setRight(n5);\n n5.setRight(n6);\n assertFalse(BinaryTreeIsBalanced.isBalanced(new BinaryTree(n1)));\n assertFalse(BinaryTreeIsBalancedNonOO.isBalanced(n1));\n }",
"public String getNamespace () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"Rule Namespace() {\n // No direct effect on value stack\n return FirstOf(\n ScopedNamespace(),\n PhpNamespace(),\n XsdNamespace());\n }",
"@Override\r\n\tpublic List<String> getXMLNamespaces() {\n\t\treturn null;\r\n\t}",
"public void testGetNamespacePrefix() throws RepositoryException {\n String result = \"namespace\";\n String uri = \"prefix\";\n \n sessionControl.expectAndReturn(session.getNamespacePrefix(uri), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getNamespacePrefix(uri), result);\n }",
"private void testBuildGraph() {\n\t\t// All test graphs have a node 8 with children [9, 10]\n\t\tSet<Node> expectedChildren = new HashSet<>();\n\t\texpectedChildren.add(new Node(9));\n\t\texpectedChildren.add(new Node(10));\n\n\t\tStudySetGraph disconnectedGraphWithoutCycle = new StudySetGraph(Edges.disconnectedGraphWithoutCycle);\n\t\tNode node = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph disconnectedGraphWithCycle = new StudySetGraph(Edges.disconnectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph connectedGraphWithCycle = new StudySetGraph(Edges.connectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\n\t\tStudySetGraph connectedGraphWithoutCycle = new StudySetGraph(Edges.connectedGraphWithoutCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t}",
"private boolean checkDuplicateNamespace(NamespaceDefinition def) {\n \n // create structures if not already done\n if (m_namespaces == null) {\n m_namespaces = new ArrayList();\n m_uriMap = new HashMap();\n }\n \n // check for conflict (or duplicate) definition\n String uri = def.getUri();\n NamespaceDefinition prior = (NamespaceDefinition)m_uriMap.get(uri);\n return prior != null && (prior.getPrefix() != null || def.getPrefix() == null);\n }",
"@Test\n public final void consistencyViolationStackNamespaceTest3() {\n CLangSMG smg = getNewCLangSMG64();\n\n smg.addGlobalVariable(TYPE8, \"label\");\n smg.addStackFrame(sf.getFunctionDeclaration());\n smg.addLocalVariable(TYPE16, \"label\");\n Assert.assertTrue(CLangSMGConsistencyVerifier.verifyCLangSMG(smg));\n }",
"public void removeDefaultLayerIfUnused() {\n Long defaultRootMarkupId = documentDTO.textGraph.getLayerRootMap().get(DEFAULT_LAYER);\n if (defaultRootMarkupId != null) {\n boolean defaultLayerIsUnused =\n documentDTO.textGraph.getOutgoingEdges(defaultRootMarkupId).stream()\n .noneMatch(this::isInDefaultLayer);\n if (defaultLayerIsUnused) {\n documentDTO.textGraph.getLayerRootMap().remove(DEFAULT_LAYER);\n TAGMarkup markup = store.getMarkup(defaultRootMarkupId);\n markup.getLayers().remove(DEFAULT_LAYER);\n store.persist(markup.getDTO());\n update();\n }\n }\n }",
"public String getNamespace();",
"@Test\n public void testNamespace() throws Exception {\n NamespaceMeta ns1Meta = new NamespaceMeta.Builder().setName(\"ns1\").build();\n NamespaceMeta ns2Meta = new NamespaceMeta.Builder().setName(\"ns2\").build();\n NamespaceMeta anotherNsMeta = new NamespaceMeta.Builder().setName(\"anotherNs\").build();\n when(nsClient.list()).thenReturn(ImmutableList.of(ns1Meta, ns2Meta, anotherNsMeta));\n\n ResourceLookupContext resourceLookupContext = new ResourceLookupContext();\n resourceLookupContext.setResourceName(\"namespace\");\n // user is entering n and we expect the completion to show ns1 and ns2 as they start with n and not anotherNs\n resourceLookupContext.setUserInput(\"n\");\n resourceLookupContext.setResources(ImmutableMap.of(\"namespace\", Collections.emptyList()));\n List<String> resources = client.getResources(resourceLookupContext);\n Assert.assertEquals(2, resources.size());\n Assert.assertEquals(ImmutableList.of(\"ns1\", \"ns2\"), resources);\n }",
"String getNamespacePrefix(Object ns);",
"private void testGetRootUri002() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testGetRootUri002\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(null,\n\t\t\t\t\tDmtSession.LOCK_TYPE_ATOMIC);\n\t\t\tTestCase.assertEquals(\"Asserting root uri\", \".\", session.getRootUri());\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}",
"static boolean DefaultNamespaceDecl(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"DefaultNamespaceDecl\")) return false;\n if (!nextTokenIs(b, K_DECLARE)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = DefaultNamespaceDecl_0(b, l + 1);\n r = r && Separator(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void testErroneousIndividualNodeShape() throws IllegalArgumentException {\n\t GraphRequestModel requestModel = createCustomIndividualGraphRequestModel();\n\t requestModel.setIndividualNodeShape(SPACE);\n\t GraphRequestValidator.validateRequest(requestModel);\n\t}",
"@Test\r\n public void testINFR1184() throws Exception {\r\n // create OU A\r\n Document ouAdoc = getDocument(createSuccessfully(\"escidoc_ou_create.xml\"));\r\n String ouAid = getObjidValue(ouAdoc);\r\n\r\n // create OU B\r\n Document ouBdoc = getDocument(createSuccessfully(\"escidoc_ou_create.xml\"));\r\n String ouBid = getObjidValue(ouBdoc);\r\n\r\n // create OU C\r\n Document ouCdoc = getDocument(createSuccessfully(\"escidoc_ou_create.xml\"));\r\n String ouCid = getObjidValue(ouCdoc);\r\n\r\n // A parentOf B\r\n String srelPrefix = determineSrelNamespacePrefix(ouBdoc);\r\n String xlinkPrefix = determineXlinkNamespacePrefix(ouBdoc);\r\n Node parents = selectSingleNode(ouBdoc, XPATH_ORGANIZATIONAL_UNIT_PARENTS);\r\n Element parent =\r\n ouBdoc.createElementNS(\"http://escidoc.de/core/01/structural-relations/\", srelPrefix + \":parent\");\r\n parent.setAttribute(xlinkPrefix + \":href\", \"/oum/organizational-unit/\" + ouAid);\r\n parents.appendChild(parent);\r\n ouBdoc = getDocument(update(ouBid, toString(ouBdoc, true)));\r\n\r\n // B parentOf C\r\n srelPrefix = determineSrelNamespacePrefix(ouCdoc);\r\n xlinkPrefix = determineXlinkNamespacePrefix(ouCdoc);\r\n parents = selectSingleNode(ouCdoc, XPATH_ORGANIZATIONAL_UNIT_PARENTS);\r\n parent = ouCdoc.createElementNS(\"http://escidoc.de/core/01/structural-relations/\", srelPrefix + \":parent\");\r\n parent.setAttribute(xlinkPrefix + \":href\", \"/oum/organizational-unit/\" + ouBid);\r\n parents.appendChild(parent);\r\n ouCdoc = getDocument(update(ouCid, toString(ouCdoc, true)));\r\n\r\n // A parentOf C\r\n srelPrefix = determineSrelNamespacePrefix(ouCdoc);\r\n xlinkPrefix = determineXlinkNamespacePrefix(ouCdoc);\r\n parents = selectSingleNode(ouCdoc, XPATH_ORGANIZATIONAL_UNIT_PARENTS);\r\n parent = (Element) selectSingleNode(parents, XPATH_ORGANIZATIONAL_UNIT_PARENT);\r\n parent.setAttribute(xlinkPrefix + \":href\", \"/oum/organizational-unit/\" + ouAid);\r\n ouCdoc = getDocument(update(ouCid, toString(ouCdoc, true)));\r\n }",
"@Test(description = \"update interface with two parents for non existing interface\")\n public void updateTwoParent4NonExisting()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final InterfaceData parent1 = data.getInterface(\"TestInerfaceParent1\");\n final InterfaceData parent2 = data.getInterface(\"TestInerfaceParent2\");\n data.create();\n\n final InterfaceData inter = data.getInterface(\"TestInterface\")\n .addParent(parent1)\n .addParent(parent2);\n this.update(inter);\n\n final Set<String> resultParent = new HashSet<String>();\n resultParent.add(parent1.getName());\n resultParent.add(parent2.getName());\n Assert.assertEquals(this.mqlAsSet(\"print interface '\" + inter.getName() + \"' select derived dump '\\n'\"),\n resultParent,\n \"check that all parent interfaces are defined\");\n }",
"@Test(expected=RuntimeException.class)\n\t\tpublic void testGrafoNoConexoUnionFind() {\n\t\t\tGrafo g = new Grafo(9);\n\t\t\tg.agregarArista(0, 1, 4F);\n\t\t\tg.agregarArista(0, 7, 8F);\n\t\t\tg.agregarArista(1, 2, 8F);\n\t\t\tg.agregarArista(1, 7, 12F);\n\t\t\tg.agregarArista(6, 5, 1F);\n\t\t\tKruskal ks = new Kruskal(g);\n\t\t\tks.arbolMinimoUnionFind();\n\t\t}",
"public NsNamespaces() {\n this(DSL.name(\"ns_namespaces\"), null);\n }",
"int getNamespaceUri();",
"void removeIsNodeOf(Subdomain oldIsNodeOf);",
"private Graph<Node, DefaultEdge> initialiseSpaceGraph() {\n Graph<Node, DefaultEdge> g = new SimpleGraph<>(DefaultEdge.class);\n g = addNodes(g);\n g = addEdges(g);\n return g;\n }",
"@Test\n public void testTRK3HasNoSubComponents() {\n assertThat( hasSubComponents( TRK3_WITHOT_SUB_COMP ), is( false ) );\n }",
"private static void bindDefaultNamespace(FeedReaderPreferences settings, XPath xpath) {\n String defaultNamespace = settings.getDefaultNamespace();\n String defaultNamespacePrefix = settings.getDefaultNamespacePrefix();\n if (!defaultNamespace.isEmpty() && !defaultNamespacePrefix.isEmpty()) {\n SimpleNamespaceContext nsContext = new SimpleNamespaceContext();\n nsContext.bindNamespaceUri(defaultNamespacePrefix, defaultNamespace);\n xpath.setNamespaceContext(nsContext);\n }\n }",
"@Test\n public void shouldNotAddDuplicateDependents() {\n String currentPipeline = \"p5\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n Node p4 = graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n\n assertThat(p4.getChildren().size(), is(1));\n VSMTestHelper.assertThatNodeHasChildren(graph, \"p4\", 0, \"p5\");\n }",
"Namespace getGpmlNamespace();",
"public boolean subsetGraphs(PlainGraph g1, PlainGraph g2) {\n for (PlainNode node : g1.nodeSet()) {\n // check if all nodes of g1 also exist in g2\n String nodeName = getVarName(g1, node);\n if (!graphNodeMap.get(g2).containsKey(nodeName)) {\n return false;\n }\n }\n\n for (PlainEdge edge: g1.edgeSet()) {\n // check if all edges of g1 also exist in g2\n // and check if the edge has the same negation\n if (!(g2.containsEdge(edge) && getNotEdge(g1, edge).size() == getNotEdge(g2, edge).size())) {\n return false;\n }\n }\n return true;\n }",
"@Override\n\tpublic Namespace getNamespace(Address addr) {\n\t\tif (addr.isMemoryAddress()) {\n\t\t\tfor (TraceSymbol sym : symbolManager.labels().getAt(program.snap, null, addr, true)) {\n\t\t\t\tif (sym instanceof TraceNamespaceSymbol /* Function */) {\n\t\t\t\t\treturn (TraceNamespaceSymbol) sym;\n\t\t\t\t}\n\t\t\t\treturn sym.getParentNamespace();\n\t\t\t}\n\t\t}\n\t\treturn symbolManager.getGlobalNamespace();\n\t}",
"@Test\n public void verifyAllRules() throws EdgeRuleNotFoundException {\n for (SchemaVersion v : schemaVersions.getVersions()) {\n Multimap<String, EdgeRule> all = edgeIngestor.getAllRules(schemaVersions.getDefaultVersion());\n\n // this part verifies the default properties\n // 1) can have only at most 1 containment edge between same node type pair\n // 2) if there is at least 1 cousin edge, there must be exactly 1 cousin edge with default=true\n for (String key : all.keySet()) {\n\n Collection<EdgeRule> edgeRuleCollection = all.get(key);\n\n boolean foundContainment = false; // can have at most 1 containment rel btwn same pair of node types\n boolean foundCousin = false;\n boolean cousinDefault = false; // if there is a cousin edge there must be at least 1 default cousin\n // defined\n Set<String> labels = new HashSet<>(); // all edges between the same pair must have different labels\n int cousinCount = 0;\n\n for (EdgeRule rule : edgeRuleCollection) {\n EdgeRule match = rule;\n // check containment\n if (!(\"NONE\".equals(match.getContains()))) {\n if (foundContainment) {\n fail(\"more than one containment edge defined for \" + v.toString() + \" \" + key);\n } else {\n foundContainment = true;\n }\n } else { // check cousin stuff\n foundCousin = true;\n cousinCount++;\n if (match.isDefault()) {\n if (!cousinDefault) {\n cousinDefault = true;\n } else {\n fail(\"more than one cousin edge defined as default for \" + v.toString() + \" \" + key);\n }\n }\n }\n\n // check labels\n String label = match.getLabel();\n if (labels.contains(label)) {\n fail(\"same label found for multiple edges for \" + v.toString() + \" \" + key);\n } else {\n labels.add(label);\n }\n }\n if (foundCousin && !cousinDefault && cousinCount > 1) {\n fail(\"there is at least one cousin edge but none are designated the default for \" + v.toString()\n + \" \" + key);\n }\n }\n }\n }",
"@Test\n\tpublic void testGetNamespace() throws FOMException, FluidException, JSONException, IOException {\n\t\tNamespace testNamespace = new Namespace(this.fdb, \"\", this.fdb.getUsername());\n\t\tString newName = UUID.randomUUID().toString();\n\t\tNamespace newNamespace = testNamespace.createNamespace(newName, \"This is a test namespace\");\n\t\t// if we successfully created a new namespace we'll be able to get it from FluidDB\n\t\tNamespace gotNamespace = testNamespace.getNamespace(newName);\n\t\tassertEquals(newNamespace.getId(), gotNamespace.getId());\n\t\tgotNamespace.delete();\n\t}",
"@Test\n public void tr0()\n {\n Graph g = new Graph(1);\n Set<Integer> nodes = new TreeSet<Integer>();\n nodes.add(0);\n assertTrue(g.reachable(nodes, nodes));\n }",
"@Test(expected=RuntimeException.class)\n\tpublic void testGrafoNoConexoBFS() {\n\t\tGrafo g = new Grafo(9);\n\t\tg.agregarArista(0, 1, 4F);\n\t\tg.agregarArista(0, 7, 8F);\n\t\tg.agregarArista(1, 2, 8F);\n\t\tg.agregarArista(1, 7, 12F);\n\t\tg.agregarArista(6, 5, 1F);\n\t\tKruskal ks = new Kruskal(g);\n\t\tks.arbolMinimoBFS();\n\t}",
"org.apache.xmlbeans.XmlNMTOKEN xgetNamespace();",
"@Test\n public void testDefaultRoot() {\n assertEquals(ClassModel.getObjectClass(), node.getModel());\n assertEquals(1, node.size());\n assertEquals(0, treeHash.size());\n }",
"@Test\n public void shouldAssignLevelsAndInsertDummyNodes(){\n String p1 = \"p1\";\n String p2 = \"p2\";\n String p3 = \"p3\";\n ValueStreamMap graph = new ValueStreamMap(p1, null);\n graph.addDownstreamNode(new PipelineDependencyNode(p3, p3), p1);\n\n List<List<Node>> nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n assertThat(nodesAtEachLevel.size(), is(2));\n VSMTestHelper.assertNodeHasChildren(graph, p1, p3);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(0), 0, p1);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(1), 0, p3);\n\n graph.addDownstreamNode(new PipelineDependencyNode(p2, p2), p1);\n graph.addDownstreamNode(new PipelineDependencyNode(p3, p3), p2);\n\n VSMTestHelper.assertNodeHasChildren(graph, p1, p2, p3);\n VSMTestHelper.assertNodeHasChildren(graph, p2, p3);\n VSMTestHelper.assertNodeHasParents(graph, p3, p1, p2);\n VSMTestHelper.assertNodeHasParents(graph, p2, p1);\n assertThat(graph.findNode(p3).getChildren().isEmpty(), is(true));\n assertThat(graph.findNode(p1).getParents().isEmpty(), is(true));\n\n nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n assertThat(nodesAtEachLevel.size(), is(3));\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(0), 0, p1);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(1), 1, p2);\n VSMTestHelper.assertThatLevelHasNodes(nodesAtEachLevel.get(2), 0, p3);\n }",
"public XMLNamespaces() {\n this(libsbmlJNI.new_XMLNamespaces__SWIG_0(), true);\n }",
"@Test\n\tpublic void testGetNamespaceNames() throws FOMException, FluidException, JSONException, IOException {\n\t\tNamespace testNamespace = new Namespace(this.fdb, \"\", this.fdb.getUsername());\n\t\tString newName = UUID.randomUUID().toString();\n\t\tNamespace newNamespace = testNamespace.createNamespace(newName, \"This is a test namespace\");\n\t\t// check the change happens at FluidDB\n\t\ttestNamespace.getItem();\n\t\tassertEquals(true, TestUtils.contains(testNamespace.getNamespaceNames(), newName));\n\t\t// delete the namespace\n\t\tnewNamespace.delete();\n\t\t// this *won't* mean the namespace is removed from the local object\n\t\tassertEquals(true, TestUtils.contains(testNamespace.getNamespaceNames(), newName));\n\t\t// need to update from FluidDB\n\t\ttestNamespace.getItem();\n\t\tassertEquals(false, TestUtils.contains(testNamespace.getNamespaceNames(), newName));\n\t}",
"public void test_der_02() {\n String SOURCE=\n \"<?xml version='1.0'?>\" +\n \"<!DOCTYPE owl [\" +\n \" <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' >\" +\n \" <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#' >\" +\n \" <!ENTITY xsd 'http://www.w3.org/2001/XMLSchema#' >\" +\n \" <!ENTITY owl 'http://www.w3.org/2002/07/owl#' >\" +\n \" <!ENTITY dc 'http://purl.org/dc/elements/1.1/' >\" +\n \" <!ENTITY base 'http://jena.hpl.hp.com/test' >\" +\n \" ]>\" +\n \"<rdf:RDF xmlns:owl ='&owl;' xmlns:rdf='&rdf;' xmlns:rdfs='&rdfs;' xmlns:dc='&dc;' xmlns='&base;#' xml:base='&base;'>\" +\n \" <owl:ObjectProperty rdf:ID='hasPublications'>\" +\n \" <rdfs:domain>\" +\n \" <owl:Class>\" +\n \" <owl:unionOf rdf:parseType='Collection'>\" +\n \" <owl:Class rdf:about='#Project'/>\" +\n \" <owl:Class rdf:about='#Task'/>\" +\n \" </owl:unionOf>\" +\n \" </owl:Class>\" +\n \" </rdfs:domain>\" +\n \" <rdfs:domain rdf:resource='#Dummy' />\" +\n \" <rdfs:range rdf:resource='#Publications'/>\" +\n \" </owl:ObjectProperty>\" +\n \" <owl:Class rdf:ID='Dummy'>\" +\n \" </owl:Class>\" +\n \"</rdf:RDF>\";\n String NS = \"http://jena.hpl.hp.com/test#\";\n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream( SOURCE.getBytes()), NS );\n \n OntClass dummy = m.getOntClass( NS + \"Dummy\" );\n // assert commented out - bug not accepted -ijd\n //TestUtil.assertIteratorValues( this, dummy.listDeclaredProperties(), \n // new Object[] {m.getObjectProperty( NS+\"hasPublications\")} );\n }",
"Graph testGraph();",
"public String getNamespace() {\n\t\treturn EPPNameVerificationMapFactory.NS;\n\t}",
"public void test_anon_0() {\n String NS = \"http://example.org/foo#\";\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:ex='http://example.org/foo#'\"\n + \" xmlns:owl='http://www.w3.org/2002/07/owl#'>\"\n + \" <owl:ObjectProperty rdf:about='http://example.org/foo#p' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#A' />\"\n + \" <ex:A rdf:about='http://example.org/foo#x' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#B'>\"\n + \" <owl:equivalentClass>\"\n + \" <owl:Restriction>\" \n + \" <owl:onProperty rdf:resource='http://example.org/foo#p' />\" \n + \" <owl:hasValue rdf:resource='http://example.org/foo#x' />\" \n + \" </owl:Restriction>\"\n + \" </owl:equivalentClass>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n OntClass B = m.getOntClass( NS + \"B\");\n Restriction r = B.getEquivalentClass().asRestriction();\n HasValueRestriction hvr = r.asHasValueRestriction();\n RDFNode n = hvr.getHasValue();\n \n assertTrue( \"Should be an individual\", n instanceof Individual );\n }",
"@Override\n\tpublic void namespace() {\n\t\t\n\t}",
"protected boolean isMatchingNamespace(String rootElementNamespace)\n {\n if (namespacePattern != null)\n {\n return namespacePattern.matcher(rootElementNamespace == null ? \"\" : rootElementNamespace).matches();\n }\n else\n {\n return namespace == null ? rootElementNamespace == null : namespace.equals(rootElementNamespace);\n }\n }"
] | [
"0.6091478",
"0.5937734",
"0.5781531",
"0.57786745",
"0.57347304",
"0.54675084",
"0.5336105",
"0.5332379",
"0.531377",
"0.53027165",
"0.5238758",
"0.51750207",
"0.5166444",
"0.51489407",
"0.5126829",
"0.5111908",
"0.5080271",
"0.5079289",
"0.5077007",
"0.50395846",
"0.50391304",
"0.5035666",
"0.50301313",
"0.50292176",
"0.5011109",
"0.5008578",
"0.50083345",
"0.500276",
"0.49693072",
"0.49387035",
"0.49306878",
"0.4920242",
"0.49199417",
"0.49139595",
"0.489976",
"0.48795778",
"0.48795778",
"0.48795778",
"0.48637486",
"0.4861101",
"0.48506767",
"0.48436034",
"0.48412055",
"0.48349658",
"0.48347685",
"0.48235208",
"0.48229167",
"0.48202217",
"0.4797944",
"0.47873315",
"0.47797444",
"0.47767872",
"0.47736207",
"0.47675717",
"0.47634235",
"0.47618556",
"0.47508615",
"0.47343585",
"0.47240862",
"0.4716489",
"0.47153065",
"0.47126713",
"0.47100458",
"0.47031397",
"0.46826953",
"0.46700117",
"0.46694997",
"0.46693808",
"0.46522623",
"0.46508673",
"0.46489185",
"0.46441293",
"0.4637824",
"0.4635004",
"0.46247858",
"0.4622633",
"0.46035382",
"0.460328",
"0.46028978",
"0.45962325",
"0.4591852",
"0.45873705",
"0.45861644",
"0.45860347",
"0.4581745",
"0.45779276",
"0.4566591",
"0.45662042",
"0.4557067",
"0.45558107",
"0.45513138",
"0.45429796",
"0.45404252",
"0.45329598",
"0.45315802",
"0.45281133",
"0.45238107",
"0.4518877",
"0.45175278",
"0.45165086"
] | 0.75272787 | 0 |
BuildTree() method to obtain elements from postfix expression and build an expression tree | public void buildTree() throws RuntimeException, DivideByZero {
// define local variable to count number of times an operator
// is pushed into it's associated stack. This will be use to
// count register values
int i = 0;
// split postfix expression enterend into the textbox into tokens using
// StringTokenizer. Delimeters are used so that different inputs
// can be parsed without spaces being necessary
StringTokenizer token = new StringTokenizer(inputExpression, " */+-", true);
// while loop to build tree out of the postfix expression
while (token.hasMoreTokens()) {
// get the next token in series
String nextItem = token.nextToken();
// use selection statements to determine if the next token
// in the String is an operand, operator, or unknown
if (nextItem.matches("[0-9]+")) {
// push operand to associated stack
operandStk.push(nextItem);
// push operand to AssemblyCode class
assemblyCode.pushStack(nextItem);
} else if (nextItem.equals("*") || nextItem.equals("/")
|| nextItem.equals("+") || nextItem.equals("-")) {
// push current operator to operators stack
operatorStk.push(nextItem);
// call the getNodes() method to perform operation
getNodes(i);
// count each time an operator is pushed so registers can be counted
i++;
} else if (!nextItem.equals(" ")){
// set class variable to equal invalid character
invalidToken = nextItem;
// throw exception if illegal operator or operand is parsed
throw new RuntimeException();
}
} // end while loop
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }",
"private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }",
"private void postfix(ExpressionNodes root, StringBuilder sb)\n\t {\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tpostfix(root.left, sb); // run recursive method\n\t \t}\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tpostfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t }",
"public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}",
"public String parsePrefixToPostfix(String exp) throws SyntaxError {\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n //parser accepts user input into exp\n \tScanner parser = new Scanner(exp);\n int element;\n String operator;\n String entity;\n String postfixExpression = \"\"; \n String firstOperand, secondOperand;\n int result = 0;\n \n //tokenize prefix string and set up 2 stacks\n Stack<String> operandStack = new Stack<String>();\n Stack<String> reverseOperatorStack = new Stack<String>();\n //while statement to push onto the reversal stack if there are more tokens\n while (parser.hasNext()) {\n entity = parser.next();\n // unless there is a space\n if (!entity.equals(\" \"))\n reverseOperatorStack.push(entity);\n }\n try { \n \t// while statement to pop to reversal stack if it is not empty\n \twhile (!reverseOperatorStack.isEmpty()) {\n //peek to retrieve the token at the top of the stack\n \t\tentity = reverseOperatorStack.peek();\n \t\t//pop to take the token off the stack\n\t reverseOperatorStack.pop();\n\t \n\t // if it is an operand\n\t if (Character.isDigit(entity.charAt(0))) {\n\t \t//push token onto the operand stack\n\t \toperandStack.push(entity);\n\t }\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t \t\t|| entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop first operand off the stack\n\t \tfirstOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop second operand off the stack\n\t secondOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the 2 operands followed by the operator \n\t String miniExpression = firstOperand + \" \" + secondOperand + \" \" + entity;\n\t //push the string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n \t}\n \t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n throw new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the postfix expression off the stack\n postfixExpression = operandStack.peek();\n operandStack.pop();\n //return postfix - holding the converted expression\n return postfixExpression; \n }",
"@Override\r\n\tpublic String infixToPostfix(String expression) {\r\n\t\tStringBuilder pf = new StringBuilder(); // the postfix expression \r\n\t\texpression = removespaces(expression); \r\n\t\texpression = CheckInputValidation(expression);\r\n\t\texpression = DummyZero(expression);\r\n\t\tString e = expression;\r\n\t\tfor(i1 = 0 ; i1 < e.length() ;i1++) { \r\n\t\t\t//take operand and append it to the string\r\n\t\t\tif(Character.isDigit(e.charAt(i1)) || Character.isLetter(e.charAt(i1))) { //check if the character is letter or number\r\n\t\t\t\tint j =0; //counter to know how many digits in the following operand \r\n\t\t\t\twhile (i1 != e.length() &&e.charAt(i1) != '+' &&e.charAt(i1) != '-' && e.charAt(i1) != '/' && e.charAt(i1) != '*'&&e.charAt(i1) != ')'&&e.charAt(i1) != '(' ) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\ti1++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j>0) {\r\n\t\t\t\t\tString s = e.substring(i1-j, i1);\r\n\t\t\t\t\tpf.append( s ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\ti1--;\r\n\t\t\t\tif(i1 == e.length()-1 ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)=='(') {\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i1)=='-'||e.charAt(i1)=='/'||e.charAt(i1)=='+'||e.charAt(i1)=='*') {\r\n\t\t\t\twhile(!(opt.isEmpty()) && higherpres(e.charAt(i1)) && (char)opt.peek() !='(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)==')') {\r\n\t\t\t\twhile((char)opt.peek() != '(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(!(opt.isEmpty()) ) {\r\n\t\t\tif((char)opt.peek() != '(') {\r\n\t\t\t\tpf.append(opt.pop()).append(' ');}\r\n\t\t\telse if((char)opt.peek()=='(') {\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pf.toString();\r\n\t\t\r\n\t}",
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}",
"@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }",
"public String infixToPostfix(String expression) {\n\t\tStack oPSt = new Stack();\n\t\tStack Sign = new Stack();\n\t\tStringBuilder PFE = new StringBuilder();\n\t\tString n = \"\";\n\t\t// flag -> marks adding new operator to the stack with or without removing the\n\t\t// previous one\n\t\tboolean flag = true;\n\t\t//negflag -> if (true) previous character was operator thus next(-) is negative sign\n\t\t//\t\t\t if (false) previous character was operand thus next (-) is operator\n\t\tboolean negflag = true; \n\t\tint counter = 0; // expresses number of open parenthesis at the moment and if it matches the\n\t\t// counter inside Sign Stack it means that the Sign was changed at this Counter\n\t\tString open = \"(\", closed = \")\";\n\t\tfor (int i = 0; i < expression.length(); i++) {\n\t\t\tString x = expression.substring(i, i + 1);\n\t\t\tStringBuilder longIntegers = new StringBuilder();\n\t\t\tif (x.equals(\"-\") && !expression.substring(i + 1, i + 2).equals(\" \")) {\n\t\t\t\tif(negflag) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.push(counter);\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint counter2 = 0;\n\t\t\t\twhile (counter2 + i < expression.length()\n\t\t\t\t\t\t&& (isChar(expression.substring(i + counter2, i + counter2 + 1))\n\t\t\t\t\t\t\t\t|| isNum(expression.substring(i + counter2, i + counter2 + 1)))\n\t\t\t\t\t\t&& isNotOperator(expression.substring(i + counter2, i + counter2 + 1))) {\n\t\t\t\t\tlongIntegers.append(expression.substring(i + counter2, i + 1 + counter2));\n\t\t\t\t\tcounter2++;\n\t\t\t\t}\n\t\t\t\ti = i + counter2;\n\t\t\t\tif (counter2 > 0) {\n\t\t\t\t\ti--;\n\t\t\t\t\tx = longIntegers.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// end of taking the expression\n\n\t\t\t// testing the expression\n\n\t\t\t// if the char. is an open parenthesis\n\t\t\tif (x.equals(open)) {\n\t\t\t\toPSt.push(x);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t// if the char is a close parenthesis\n\t\t\telse if (x.equals(closed)) {\n\t\t\t\tif (counter == 0)\n\t\t\t\t\tthrow new RuntimeException(\"Invalid Input: Redundant \\\")\\\" \");\n\t\t\t\twhile (!((String) oPSt.peek()).equals(open)) {\n\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t}\n\t\t\t\toPSt.pop();\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\t// checks if char was an operator\n\t\t\telse if (x.equals(\"*\") || x.equals(\"+\") || x.equals(\"/\") || x.equals(\"-\")) {\n\t\t\t\tnegflag = true;\n\t\t\t\twhile (!oPSt.isEmpty() && !((String) oPSt.peek()).equals(\"(\")) {\n\t\t\t\t\t// see which character has higher precedence\n\t\t\t\t\tflag = highOrLow(((String) oPSt.peek()).charAt(0), x.charAt(0));\n\t\t\t\t\tif (flag)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse {\n\t\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toPSt.push(x);\n\t\t\t}\n\t\t\t// if the char is space then check if the previous was space to avoid having two\n\t\t\t// spaces after each other\n\t\t\t// if the char was a new space/wasn't a space then it's definitely a\n\t\t\t// number/variable and will be pushed to PFE\n\t\t\telse if (!x.equals(\" \") || (PFE.length() > 0 && (char) PFE.charAt(PFE.length() - 1) != ' ')) {\n\t\t\t\tPFE.append(\" \");\n\t\t\t\tif (!x.equals(\" \")) {\n\t\t\t\t\tnegflag = false;\n\t\t\t\t\tPFE.append(n + x);\n\t\t\t}else \n\t\t\t\t\tPFE.append(x);\n\t\t\t\t\n\t\t\t}\n\t\t\twhile (!Sign.isEmpty() && counter == (int) Sign.peek()) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.pop();\n\t\t\t}\n\t\t}\n\t\t// add all the operator remaining in stack to the PFE except if '(' was found\n\t\t// then there's an runtime exception\n\t\twhile (!oPSt.isEmpty()) {\n\t\t\tif (((String) oPSt.peek()).equals(\"(\"))\n\t\t\t\tthrow new RuntimeException(\"Invalid Input : Redundant \\\"(\\\" \");\n\t\t\tPFE.append(\" \");\n\t\t\tPFE.append(oPSt.pop());\n\t\t}\n\t\t// replace any two consecutive spaces with only one\n\t\tint i = 0;\n\t\twhile (PFE.charAt(i) == ' ' && i < PFE.length() - 1) {\n\t\t\tPFE.deleteCharAt(i);\n\t\t}\n\t\tfor (i = 0; i < PFE.length() - 1; i++) {\n\t\t\tif (PFE.charAt(i) == ' ' && PFE.charAt(i + 1) == ' ') {\n\t\t\t\tPFE.deleteCharAt(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\treturn PFE.toString();\n\n\t}",
"private static String infixToPostfix(String expression)\r\n {\r\n String result = \"\";\r\n char current_char = ' ';\r\n int index = 0;\r\n StackInterface<Character> operand_stack = new ArrayStack<>();\r\n switch(stack_type)\r\n {\r\n case(\"vector\"):\r\n operand_stack = new VectorStack<>();\r\n break;\r\n \r\n case(\"linked\"):\r\n operand_stack = new LinkedListStack<>();\r\n break;\r\n }\r\n\r\n //iterates through every character and puts them in the stack or the result accordingly\r\n while(index < expression.length())\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n //checks if the character is an operand and if so checks if it should pop the previous input or not\r\n case '+': case '-': case '*': case '/':\r\n if(!operand_stack.isEmpty())\r\n {\r\n while(!operand_stack.isEmpty() && getOperandImportance(current_char) <= getOperandImportance(operand_stack.peek()))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.push(current_char);\r\n }\r\n else\r\n {\r\n operand_stack.push(current_char);\r\n }\r\n break;\r\n\r\n //exponents are always pushed onto the stack\r\n case '^':\r\n operand_stack.push(current_char);\r\n break;\r\n\r\n //if an open delimiter is there, we add it to the stack\r\n case '(': case '{': case '[':\r\n operand_stack.push(current_char);\r\n break;\r\n \r\n //if the delimiter is closing we pop until we find the open equivalent\r\n case ')': case '}': case ']':\r\n while(operand_stack.peek() != delimiterEquivalent(current_char))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.pop();\r\n break;\r\n\r\n case ' ':\r\n break;\r\n\r\n default: \r\n result += current_char;\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n //pops everything left in the stack to the result at the end\r\n while(!operand_stack.isEmpty())\r\n {\r\n result += operand_stack.pop();\r\n }\r\n\r\n return result;\r\n }",
"public static String convertInfixToPostfix(String infixExpression) {\r\n //Initializing final return string\r\n String postfix = \"\";\r\n //String Array of all elements\r\n String[] expElements = infixExpression.split(\" \");\r\n //New String Array for the numbers\r\n String[] operands = new String[infixExpression.length()];\r\n //New expressions for operators\r\n Expressions operators = new Expressions();\r\n //New stack for operators\r\n Stack operatorStack = new Stack();\r\n \r\n //Trackers for parentheses\r\n int openParenthesis = 0;\r\n int closedParenthesis = 0;\r\n \r\n //Iterate through for length of array of all expressions\r\n for(int i = 0; i < expElements.length; i++) {\r\n //If operator than push to stack\r\n if(expElements[i].equals(\"*\")||expElements[i].equals(\"/\")\r\n ||expElements[i].equals(\"+\")||expElements[i].equals(\"-\")) {\r\n operatorStack.push(new Expressions(expElements[i]));\r\n }\r\n //if open parenthesis add to count\r\n else if(expElements[i].equals(\"(\")) {\r\n openParenthesis++;\r\n }\r\n //if closed parenthesis add to count and pop operator\r\n else if(expElements[i].equals(\")\")) {\r\n closedParenthesis++;\r\n postfix += \" \" + operatorStack.pop();\r\n }\r\n //otherwise it is an integer, add it to array of operands\r\n else {\r\n operands[i] = expElements[i];\r\n postfix += \" \" + operands[i];\r\n }\r\n \r\n }\r\n //Error detection for not enough matching parentheses.\r\n if(openParenthesis!=closedParenthesis){\r\n postfix = \"Parenthesis not equal error.\";\r\n }\r\n //return final expression in postfix notation, delimited by spaces\r\n return postfix; \r\n }",
"public static String infixToPostfix(String infix) throws PostFixException{\n\t\t//Create a new stack object to hold operators from infix expression\n\t\tStack<String> operatorStack = new Stack<String>();\n\t\tString postfix = \"\";\n\t\tString curToken = \"\";\n\t\tScanner getToken = new Scanner(infix);\n\t\t//holds the previous token type as a string\n\t\tString previousTokenType = \"first token\";\n\t\t\n\t\t//Iterate over all tokens in expression\n\t\twhile(getToken.hasNext()){\n\t\t\tcurToken = getToken.next();\n\t\t\t\n\t\t\t//if the token is an operand (meaning it is an integer), add to postfix expression\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\t//if the token sequence is valid, add the current token to the psotfix expression\n\t\t\t\tif(checkValidTokenSequence(\"operand\", previousTokenType)){\n\t\t\t\t\tpostfix += (curToken + \" \");\n\t\t\t\t\tpreviousTokenType = \"operand\";\n\t\t\t\t}\n\t\t\t\telse{ //otherwise throw an exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is a left bracket check that the token sequence is valid and push the\n\t\t\t//token on the stack\n\t\t\telse if(curToken.equals(\"(\")){\n\t\t\t\tif(checkValidTokenSequence(\"left bracket\", previousTokenType)){\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"left bracket\";\n\t\t\t\t}\n\t\t\t\telse{//if the token sequence is invalid throw and exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the token is an operator, check sequence validity\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\t//if the token is an operator and it is the first token, the expression is invalid\n\t\t\t\tif(previousTokenType.equals(\"first token\")){\n\t\t\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t\t\t}\n\t\t\t\t//if the token sequence is valid, add all operator on stack with lower or equal precedence to\n\t\t\t\t//to the prefix expression\n\t\t\t\tif(checkValidTokenSequence(\"operator\", previousTokenType)){\n\t\t\t\t\twhile(!operatorStack.empty() && checkPrecedence(operatorStack.peek(),curToken)){\n\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t}\n\t\t\t\t\t//push the current token on the operator stack\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"operator\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//if the token sequence is invalid, throw exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is a right bracket, check that token sequence is valid\n\t\t\telse if(curToken.equals(\")\")){\n\t\t\t\t\n\t\t\t\t//if the token sequence is valid, add all operators on operator stack \n\t\t\t\t//to the prefix expression until the matching left bracket is reached\n\t\t\t\tif(checkValidTokenSequence(\"right bracket\", previousTokenType)){\n\t\t\t\t\tboolean hasMatchingBracket = false;\n\t\t\t\t\t\n\t\t\t\t\twhile(!operatorStack.empty()){\n\t\t\t\t\t\tif(!operatorStack.peek().equals(\"(\")){\n\t\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\toperatorStack.pop();\n\t\t\t\t\t\t\thasMatchingBracket = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If the right bracket does not have a matching left bracket, throw an exception\n\t\t\t\t\tif(!hasMatchingBracket){\n\t\t\t\t\t\tthrow new PostFixException(\"Missing left bracket\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpreviousTokenType = \"right bracket\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If the token sequence is invalid throw an exception\n\t\t\t\telse{\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is not a valid token, throw an exception\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check to see if the last token was an operator, if so throw an exception\n\t\tif(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t}\n\t\t\n\t\t//while there operator stack is not empty, pop whatever is in the stack and append\n\t\twhile(!operatorStack.empty()){\n\t\t\t//if there is a bracket left in the stack, then the infix expression is invalid\n\t\t\tif(operatorStack.peek().equals(\"(\") || operatorStack.peek().equals(\")\")){\n\t\t\t\tthrow new PostFixException(\"Bracket mismatch\");\n\t\t\t}\n\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//return the postfix expression\n\t\treturn postfix;\n\t}",
"private static String convertToPostfix(String str) {\n Stack<Character> stack = new Stack<>();\n StringBuilder postfix = new StringBuilder();\n\n\n for (int index = 0; index < str.length(); index++) {\n char c = str.charAt(index);\n\n //if c is a digit, an algebraic variable, a dot, or blank (String formatting helper) it is added to\n //the postfix expression\n if ( Character.isLetterOrDigit(c) || c == '.' || c == ' ' ) {\n postfix.append(c);\n\n //if c is a left parenthesis it is added to the stack and a blank (string format helper) is appended\n //to postfix expression.\n } else if ( c == '(' ) {\n stack.push(c);\n postfix.append(\" \");\n\n //if c is an operator the stack is pop and added to the postfix expression only if c's precedence is\n // smaller or equal to the topmost operator in the stack. Otherwise, c is just added to the stack\n } else if ( isOperator(c) ) {\n while (!stack.isEmpty() && precedence(c) <= precedence(stack.peek()) ) {\n postfix.append(stack.pop()).append(\" \");\n }\n stack.push(c);\n\n //if c is a right parenthesis and the stack is not empty, the stack is then popped and added to the\n //postfix expression until a left parenthesis is encountered. If there is no left parenthesis then an\n //exception is thrown with a misplaced parenthesis statement\n } else if ( c == ')') {\n boolean hasLeftParenthesis = false;\n while ( !stack.isEmpty() ) {\n char popped = stack.pop();\n if ( popped == '(' ) {\n hasLeftParenthesis = true;\n break;\n } else {\n postfix.append(popped).append(\" \");\n }\n }//end of inner-loop\n if ( !hasLeftParenthesis ) {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n }\n }//end of for-loop\n\n //If stack is not empty, the stack is then popped and added to the postfix expression. If a left parenthesis is\n //found then an exception is thrown with a misplaced parenthesis statement;\n while (!stack.isEmpty()) {\n if (stack.peek() == '(') {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n postfix.append(stack.pop()).append(\" \");\n }\n\n //String is trimmed, double spaces are replaced by single spaces, and returned\n return postfix.toString().trim().replaceAll(\" \", \" \");\n }",
"private void infix(ExpressionNodes root, StringBuilder sb)\n\t {\t\n\t \t\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tinfix(root.left, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t \t\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tinfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t }",
"public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}",
"public static String convertInfixToPostfix(String infix) throws InvalidNotationFormatException {\n\t\tNotationQueue<String> postfix = new NotationQueue<String>(infix.length());\n\t\tNotationStack<String> eval = new NotationStack<String>(infix.length());\n\t\tchar[] expr = infix.toCharArray();\n\t\tfor (int i = 0; i < expr.length; i++) {\n\t\t\tif (Character.isDigit(expr[i])) {\n\t\t\t\ttry {\n\t\t\t\t\tpostfix.enqueue(String.valueOf(expr[i]));\n\t\t\t\t}catch(QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i] == '(') {\n\t\t\t\ttry {\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]=='+'||expr[i]=='-'||expr[i]=='*'||expr[i]=='/') {\n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(' && prec(expr[i]) <= prec(eval.top().charAt(0))){\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]==')') { \n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(') {\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\tif(eval.size()==0){\n\t\t\t\t\t\tthrow new InvalidNotationFormatException();\n\t\t\t\t\t}else {\n\t\t\t\t\t\teval.pop();\n\t\t\t\t\t}\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\twhile(!eval.isEmpty()) {\n\t\t\t\tString pop1 = eval.pop();\n\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t}\n\t\t}catch (StackUnderflowException e) {\n\t\t\te.printStackTrace();\n\t\t}catch (QueueOverflowException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn postfix.toString();\n\t}",
"public static void main(String[] args) {\n\t\tPostFix aux,courant, racine;\r\n\t\t\r\n\t\t sc = new Scanner(System.in);\r\n\t\t System.out.println(\"Entrer l'expression postfixée--->\");\r\n\t\t ArrayList<String> list ; \r\n\t\t String PostEntre = sc.nextLine();\r\n\t\t \r\n\t\t list = new ArrayList<>(Arrays.asList(PostEntre.split(\" \")));\r\n\t\t \r\n\t\t ArrayDeque<PostFix> pil = new ArrayDeque<PostFix>();\r\n\t\t for (String s : list){\r\n\t\t\t courant = new PostFix(s);\r\n\t\t\t if (isOperator(s)){\r\n\t\t\t\t aux = pil.pop();\r\n\t\t\t\t courant.setfilsgauche(pil.pop());\r\n\t\t\t\t courant.setfilsdroit(aux);\r\n\t\t\t }\r\n\t\t\t pil.push(courant);\r\n\t\t\t \r\n\t\t }\r\n\t\t racine = pil.pop();\r\n\t\t System.out.println(\"L'arbre est : \" );\r\n\t\t System.out.println(racine + \"\\n\" );\r\n\t\t // racine.Afficher(racine);\r\n\t\t \r\n\t\t //----------------------------to prefix------------------------\r\n\t\t String s1,s2,sor;\r\n\t\t \r\n\t\t ArrayDeque<String> operst = new ArrayDeque<String>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t operst.push(n);\r\n\t\t\t else{\r\n\t\t\t\ts2 = operst.pop();\r\n\t\t\t \ts1 = operst.pop();\r\n\t\t\t \tsor = n +\" \"+ s1 +\" \"+ s2;\r\n\t\t\t operst.push(sor);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"L'expression prefixee donne: \");\r\n\t\t System.out.println(operst.pop()+\"\\n\");\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\t\t \r\n\t\t \r\n\t\t //-----------------------------evaluation-----------------------\r\n\t\t Double oper1, oper2,result;\r\n\t\t ArrayDeque<Double> abc = new ArrayDeque<Double>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t abc.push(Double.valueOf(n));\t\t\t\r\n\t\t\t else{\r\n\t\t\t\t oper2 = abc.pop();\t\t\t \t\r\n\t\t\t\t oper1 = abc.pop();\r\n\t\t\t \tresult = operate(oper1,oper2,n);\t\t\t \r\n\t\t\t \t\tabc.push(result);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"l'evaluation donne: \");\r\n\t\t System.out.println(abc.pop());\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\r\n\t}",
"public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }",
"public static List<Element> Exp2Rpn(String expression) {\r\n\t\tList<String> tokenList = tokenize(expression);\r\n\t\tList<Element> rpn = new LinkedList<Element>();\r\n\t\tStack<Element> stack = new Stack<Element>();\r\n\r\n\t\tfor (String token : tokenList) {\r\n\t\t\tElement currentElement = string2Element(token);\r\n\r\n\t\t\tif (currentElement.isOperator()) {\r\n\t\t\t\twhile (!stack.empty() && precedence(stack.peek(), currentElement) == 1) {\r\n\t\t\t\t\trpn.add(stack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tstack.push(currentElement);\r\n\t\t\t} else if (currentElement.isNumber()) {\r\n\t\t\t\trpn.add(currentElement);\r\n\t\t\t} else if (currentElement.isLeftParenthesis()) {\r\n\t\t\t\tstack.push(currentElement);\r\n\t\t\t} else if (currentElement.isRightParenthesis()) {\r\n\t\t\t\twhile (!stack.peek().isLeftParenthesis()) {\r\n\t\t\t\t\trpn.add(stack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tstack.pop(); // pops '('\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!stack.empty()) {\r\n\t\t\trpn.add(stack.pop());\r\n\t\t}\r\n\r\n\t\treturn rpn;\r\n\t}",
"static String infixToPostfix(String txt) \n\t{\n\t\tString postfix = new String(\"\");\n Stack<Character> stack = new Stack<>();\n \n for (int i = 0; i<txt.length(); ++i)\n {\n char c = txt.charAt(i);\n \n // Ist das eingescannte Zeichen c ein Operand, addiere es zur Ausgabe hinzu\n if (Character.isLetterOrDigit(c)) \n {\n \tpostfix += c;\n }\n \n \n // Ist das eingescannte Zeichen c eine offene Klammer, lege es auf den Stapel\n else if (c == '(') \n {\n \tstack.push(c);\n }\n \n // Ist das eingescannte Zeichen c eine schließende Klammer, pop es aus dem Stapel bis eine öffnende Klammer erscheint\n else if (c == ')')\n {\n while (!stack.isEmpty() && stack.peek() != '(') \n {\n \tpostfix += stack.pop();\n stack.pop();\n } \n }\n else //falls es ein Operator ist\n {\n while (!stack.isEmpty() && precedence(c) < precedence(stack.peek()))\n {\n postfix += stack.pop();\n }\n stack.push(c);\n }\n }\n \n // pop all the operators from the stack\n while (!stack.isEmpty())\n {\n postfix += stack.pop();\n }\n return postfix;\n\n\t}",
"@Override\n\tpublic TreeNode buildTree(String[] exp) {\n\t\tStack<TreeNode> stk = new Stack<TreeNode>();\n\t\tTreeNode tmpL, tmpR, tmpRoot;\n\t\tint i;\n\n\t\tfor(String s: exp) {\n\t\t\tif(s.equals(EMPTY))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\ti = Integer.parseInt(s);\n\t\t\t\tstk.push(new TreeNode(EMPTY + i));\n\t\t\t}\n\t\t\tcatch (NumberFormatException n) {\n\t\t\t\ttmpR = stk.pop();\n\t\t\t\ttmpL = stk.pop();\n\t\t\t\ttmpRoot = new TreeNode(s, tmpL, tmpR);\n\t\t\t\tstk.push(tmpRoot);\n\t\t\t}\n\t\t}\n\n\t\treturn stk.pop();\n\n\t}",
"protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }",
"private CustomQueue<String> evaluatePostFix(CustomQueue<String>postfix){\r\n CustomStack<String> numberStack = new CustomStack();\r\n CustomQueue<String> result = new CustomQueue();\r\n \r\n while (postfix.isEmpty() == false){\r\n String value = postfix.remove();\r\n if (isOperator(value)){\r\n //First popped value should be on the right hand side of the operator\r\n double val2 = Double.parseDouble(numberStack.pop());\r\n //Second popped value should be on the left hand side of the operator\r\n double val1 = Double.parseDouble(numberStack.pop());\r\n String operation_result = calculate(val1, val2, value);\r\n numberStack.push(operation_result);\r\n }\r\n else{\r\n //It should be a number\r\n numberStack.push(value);\r\n }\r\n }\r\n \r\n if (numberStack.empty())\r\n result.add(\"0\");\r\n else\r\n result.add(numberStack.pop());\r\n \r\n return result;\r\n }",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\tString BETTEST = \"/+8*62-9*43\";\r\n\r\n\r\n\t\tBinaryExpressionTree<String>listBET = new BinaryExpressionTree<String>();\r\n\r\n\t\tfor (int i = 0; i < BETTEST.length(); i++) {\r\n\t\t\t\r\n\t\t\tlistBET.add(\"\" + BETTEST.charAt(i));\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\tlistBET.PreorderTraversal();\r\n\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\tlistBET.PostorderTraversal();\r\n\r\n\r\n\t\t String BETTEST2 =\"/+84*32\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET2 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST2.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET2.add(\"\" + BETTEST2.charAt(i));\t\r\n\t\t\r\n\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET2.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET2.PostorderTraversal();\r\n\t\t\t\r\n String BETTEST3 =\"*-92/31\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET3 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST3.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET3.add(\"\" + BETTEST3.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t System.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET3.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\t\r\n\t\t\tlistBET3.PostorderTraversal();\r\n \r\n\t\t\tString BETTEST4 =\"-/*8043\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET4 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST4.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET4.add(\"\" + BETTEST4.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET4.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET4.PostorderTraversal();\r\n}",
"public String transformInfixToPostfix(String input) {\n\n List<String> outputQueue = new LinkedList<>();\n\n Stack<Operation> operationStack = new Stack<>();\n final String[] splitedEquation = input.split(\" \");\n for (String token : splitedEquation) {\n if (isOperator(token)) {\n OperatorParser operatorParser = new OperatorParser(outputQueue, operationStack,\n token).invoke();\n outputQueue = operatorParser.getOutputQueue();\n operationStack = operatorParser.getOperationStack();\n } else {\n outputQueue = addImmutable(outputQueue, token);\n }\n }\n\n outputQueue = addOperationsToOutputQueue(outputQueue, operationStack);\n\n return Stream.of(outputQueue)\n .collect(Collectors.joining(\" \"));\n }",
"public String postfix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tpostfix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }",
"public void evalPostfix(String postfix){\r\n char ch;\r\n\r\n for(int i = 0; i < postfix.length() ; i++) //parses postfix string and performs operations based on operator found\r\n {\r\n ch = postfix.charAt(i);\r\n \r\n if(ch == '+')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x+y);\r\n \r\n }\r\n \r\n \r\n else if(ch == '-')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x-y);\r\n \r\n }\r\n \r\n else if(ch == '*')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x*y);\r\n \r\n }\r\n \r\n else if(ch == '/')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x/y);\r\n \r\n }\r\n \r\n else if(ch == '^')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push((int)Math.pow(x,y));\r\n \r\n } \r\n \r\n else if(ch >= '0' || ch <= '9')\r\n {\r\n numbers.push((int)(ch - '0'));\r\n }\r\n }\r\n }",
"public String parsePostfixToPrefix(String exp) throws SyntaxError {\n \t// throws error message if there is no expression entered\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n Scanner parser = new Scanner(exp);\n String entity;\n //tokenize the string containing the postfix expression\n Stack<String> operandStack = new Stack<String>();\n String firstOperand, secondOperand;\n // try-catch to validate data has been entered\n try {\n\t \t//while there are more tokens\n \t\twhile (parser.hasNext()) {\n\t entity = parser.next();\n\t // if it is a space, skip it\n\t if (entity.equals(\" \"));\n\t // if it is a operand, push it onto the operand stack\n\t if (Character.isDigit(entity.charAt(0)))\n\t operandStack.push(entity);\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t || entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop operand 1 off the operand stack\n\t \tsecondOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop operand 2 off the operand stack\n\t firstOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the operator followed by 2 operands\n\t String miniExpression = entity + \" \" + firstOperand + \" \" + secondOperand;\n\t //push the miniExpression string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n\t }\n\t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n \tthrow new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the prefix expression off the operand stack\n String prefix = operandStack.peek();\n operandStack.pop();\n //return prefix - holding the converted expression\n return prefix;\n }",
"public String processInfix(char[] input) {\n String result = \"\"; //Initialize the string. This will be the postfix formatted input.\n\n for (int i = 0; i < input.length; i++) {\n\n //If it is a digit it is sent straight to the result\n if (Character.isDigit(input[i])) {\n result += input[i];\n }\n\n //If it is an open bracket it is pushed into the stack.\n else if (input[i] == '(') {\n s.push(input[i]);\n }\n\n //If it is a closed bracket, all items in the stack are popped until an open bracket is found.\n //Both brackets are then discarded\n else if (input[i] == ')') {\n\n while (!s.isEmpty() && (char)s.top() != '(') {\n result += (char)s.pop();\n }\n\n if (!s.isEmpty() && (char)s.top() != '(') {\n System.out.println(\"Invalid Expression. A '(' character must be followed by a ')' in the Expression.\");\n } else {\n s.pop(); //get rid of ( from the eq.\n }\n }\n\n //Else it must be an operand...\n else {\n //loop checks:\n // 1. that the stack is not empty and\n // 2. that the current token is less or equal in priority to the one on the top of the stack\n // If it both are true then the operator is sent to the result\n while(!s.isEmpty() && getPriority(input[i]) <= getPriority((char)s.top())){\n result += (char)s.pop();\n }\n s.push(input[i]);\n }\n }\n\n //Pop the remainder of the stack to the result\n while(!s.isEmpty()){\n result += (char)s.pop();\n }\n\n return result;\n }",
"public String convertInfix (String exp) throws NumberFormatException \n {\n \n initStack.clear();\n queue.clear();\n finalStack.clear();\n postfixExp = \"\";\n \n for (int i = 0; i<exp.length(); ++i){\n char c = exp.charAt(i); \n if(i > 0){\n char previous = exp.charAt(i-1);\n if((isNumber(c) && isNumber(previous)) || isBalanced(exp) == false){\n throw new NumberFormatException(\"**Invalid Expression**\");\n }\n }\n \n if (Precedence(c) > 0)\n {\n while(initStack.isEmpty() == false && Precedence((char) initStack.top()) >= Precedence(c))\n {\n queue.insertBack(initStack.pop());\n }\n initStack.push(c);\n }\n else if (c ==')')\n {\n char x = (char) initStack.pop();\n while(x!= '(')\n {\n queue.insertBack(x);\n x = (char) initStack.pop();\n }\n }\n else if (c == '(')\n {\n initStack.push(c);\n }\n else\n {\n queue.insertBack(c);\n }\n }\n while (!initStack.isEmpty()) \n {\n queue.insertBack(initStack.pop());\n }\n postfixExp = queue.postFixString();\n postfixExp = postfixExp.replaceAll(\"\\\\s\",\"\");\n return postfixExp;\n }",
"public String convertPostfixToInfix(String postfixstring)\n {\n//implementing stack\n Stack<String> s = new Stack<>();\n//iterates over the postfix expression\n for (int i = 0; i < postfixstring.length(); i++)\n {\n//reading a character at a time\n char ch = postfixstring.charAt(i);\n//inside the if-statement we have called the user-defined function that checks whether the character is operator or not\n if (isOperator(ch))\n {\n String b = s.pop();\n String a = s.pop();\n//push the character (operator) into stack in between the string a and b\n s.push(\"(\" + a + ch + b + \")\");\n }\n else\n//push character into the stack\n s.push(\"\" + ch);\n }\n//pop character from the stack and returns the same\n return s.pop();\n }",
"public Polynomial postfixEval(List<Token> postfixtokenList){\n ArrayDeque<Token> stack = new ArrayDeque<Token>(); \n\n Polynomial result = new Polynomial(); \n for (Token token : postfixtokenList){\n if (token instanceof Polynomial)\n stack.push(token); \n else if (token instanceof Operator){\n Polynomial op2 = (Polynomial) stack.pop(); \n Polynomial op1 = (Polynomial) stack.pop(); \n result = ((Operator) token).operate(op1, op2);\n if (result == null) //for division by 0\n return null;\n stack.push(result); \n }\n }\n result = (Polynomial) stack.pop(); \n if (storingVar != ' '){\n memory.put(storingVar, result); \n storingVar = ' ';\n }\n return result; \n }",
"@Override\n\tpublic String toPostfixNotation() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\t\t\treturn EMPTY + num;\n\t\t}\n\t\tcatch(NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\t\n\t\t\treturn left.toPostfixNotation() + SPACE + right.toPostfixNotation() + SPACE \n\t\t\t\t+ getValue();\n\t\t}\n\t}",
"public BinaryTree(String expression) {\n \tString[] arr = expression.split(\" \");\n \troot = parse(arr);\n }",
"public String convertPostfix(String string){\r\n\r\n \t\tStack<Character> operatorStack = new Stack<Character>();\r\n\r\n \t\tStringBuffer postfix = new StringBuffer();\r\n\r\n \t\tCharacter topOperator;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar c = string.charAt(i);\r\n\r\n\t\t\tif (Character.isDigit(c)) {\r\n\t\t\t\tpostfix.append(c);\r\n\r\n\r\n\r\n\t\t\t\t// fixing bug to test next character before adding a space\r\n\t\t\t\t// if next character is not a digit add a space\r\n\t\t\t\tif (i + 1 >= string.length() || !Character.isDigit(string.charAt(i + 1)))\r\n\t\t\t\t\tpostfix.append(\" \");\r\n\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\t\r\n \t\t\t\tswitch(c){\r\n \t\t\t\t /////// add a minus to stack without a space\r\n \t\t\t\t\tcase'!':\r\n \t\t\t\t boolean Debug = true;\r\n\r\n\t\t\t\t\tif (Debug)\r\n\t\t\t\t\t\tSystem.out.println(\"Bugs\");\r\n\r\n\t\t\t\t\tpostfix.append('-');\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n \t\t\t\t\tbreak;\r\n \r\n \t\t\t\t\t\r\n \t\t\t\tcase '^':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '.':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '+':\r\n \t\t\t\tcase '-':\r\n \t\t\t\tcase '*':\r\n \t\t\t\tcase '/':\r\n \t\t\t\t\twhile (!operatorStack.isEmpty () &&\r\n \t\t\t\t\t\t\tgetPrecedence(c) <= getPrecedence(operatorStack.peek()))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tpostfix.append(operatorStack.peek() + \" \");\r\n \t\t\t\t\t\toperatorStack.pop();\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t}\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase '(':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase ')': \r\n\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\twhile ((topOperator != '(') && !operatorStack.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpostfix.append(topOperator);\r\n\t\t\t\t\t\tpostfix.append(\" \");\r\n\t\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\t}// end while\r\n\r\n\t\t\t\t\t/* if(!operatorStack.isEmpty() && operatorStack.peek().equals('(')){\r\n\t\t operatorStack.pop(); // pop/remove left parenthesis \r\n\t\t }*/\r\n\t\t\t\t\tbreak;\r\n \t\t\t\tdefault:\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} \r\n\t\t/*\r\n\t\t * popping off any final operators\r\n\t\t */\r\n \t\t\twhile (!operatorStack.isEmpty())\r\n \t\t\t{\r\n \t\t\t\ttopOperator = operatorStack.pop();\r\n \t\t\t\tpostfix.append(topOperator + \" \");\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\treturn postfix.toString();\r\n\r\n \t\t}",
"private <X extends Jgxx> X buildTree(X root) {\n\t\tList<X> list = this.extendedModelProvider.find(EXTEND_MODEL_XTGL_ZHGL_JGXX_CODE, Jgxx.class, SELECT_PRE_SQL + \" WHERE J.LFT BETWEEN ? AND ? AND J.DELETED = 0 ORDER BY J.LFT\",\n\t\t\t\troot.getLft(), root.getRgt());\n\t\tStack<X> rightStack = new Stack<X>();\n\t\tfor (X node : list) {\n\t\t\tif (!rightStack.isEmpty()) {\n\t\t\t\twhile (rightStack.lastElement().getRgt() < node.getRgt()) {\n\t\t\t\t\trightStack.pop();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!rightStack.isEmpty()) {\n\t\t\t\trightStack.lastElement().addChild(node);\n\t\t\t}\n\t\t\trightStack.push(node);\n\t\t}\n\t\treturn rightStack.firstElement();\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tpreOrderTraverse(expression.root, 1, sb);\n\t\t\treturn sb.toString();\n\t\t}",
"public String solve(String postfixExp) {\n Stack<String> stack = new Stack<String>();\n char ch;\n int inputLength = postfixExp.length();\n\n for (int i = 0; i < inputLength; i++) {\n ch = postfixExp.charAt(i);\n\n if (ch == ' ') {\n // Do nothing, space found.\n }\n else if (isOperand(ch)) {\n int n = 0; // This will eventually hold our final value.\n\n while (isOperand(ch)) {\n n = (n * 10) + (int) (ch - '0');\n i++;\n ch = postfixExp.charAt(i);\n }\n i--;\n\n stack.push(Integer.toString(n));\n }\n else {\n double tempOne = Double.parseDouble(stack.pop());\n double tempTwo = Double.parseDouble(stack.pop());\n\n switch (ch) {\n case '+':\n stack.push(Double.toString(tempTwo + tempOne));\n break;\n case '-':\n stack.push(Double.toString(tempTwo - tempOne));\n break;\n case '*':\n stack.push(Double.toString(tempTwo * tempOne));\n break;\n case '/':\n if (tempOne == 0) {\n return \"Error: Division by 0\";\n } else {\n stack.push(Double.toString(tempTwo / tempOne));\n }\n break;\n case '^':\n double temp3 = (double)(Math.pow(tempTwo, tempOne));\n stack.push(Double.toString(temp3));\n break;\n }\n }\n }\n\n String evaluation = stack.pop();\n\n return evaluation;\n }",
"public static String infixToPostfix(String input) {\r\n\t\tStack<Object> infixStack = new Stack<>();\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean digitPreviously = false;\r\n\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tchar temp = input.charAt(i);\r\n\r\n\t\t\t// CASE 1 : handling digits\r\n\t\t\tif (priority(temp) < 0) {\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t\tdigitPreviously = true;\r\n\t\t\t// CASE 2 : handling (, )\r\n\t\t\t} else if (priority(temp) == 0) {\r\n\t\t\t\tif (temp == '(') {\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tdigitPreviously = false;\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboolean foundOpener = false;\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif ((char)infixStack.peek() == '(') {\r\n\t\t\t\t\t\t\tfoundOpener = true;\r\n\t\t\t\t\t\t\tinfixStack.pop();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdigitPreviously = true;\t\r\n\t\t\t\t\tif (!foundOpener) {\r\n\t\t\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// CASE 3 : handling operators\r\n\t\t\telse if (priority(temp) > 0) {\r\n\t\t\t\tif (infixStack.empty()) {\r\n\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t} else {\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (priority((char)infixStack.peek()) < priority(temp) || temp == '^' || temp == '~') {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t}\r\n\t\t\t\tdigitPreviously = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// pop remaining chars\r\n\t\twhile (!infixStack.empty()) {\r\n\t\t\tchar temp = (char)infixStack.pop();\r\n\t\t\tif (temp == '(') {\r\n\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(' ');\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}",
"private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }",
"public int eval(String expression) {\n String token;\n // The 3rd argument is true to indicate that the delimiters should be used\n // as tokens, too. \n this.tokenizer = new StringTokenizer(expression, DELIMITERS, true);\n\n //initialized with # operator, used as bogus to compare priorities and detect end of operatorStack.\n operatorStack.push(new PoundOperator());\n\n //Checks whether there are more tokens to be pushed in stacks\n while (this.tokenizer.hasMoreTokens()) {\n // filter out spaces\n if (!(token = this.tokenizer.nextToken()).equals(\" \")) {\n // check if token is an operand\n if (Operand.check(token)) {\n operandStack.push(new Operand(token));\n\n } else {\n if (!Operator.check(token)) {\n System.out.println(\"*****invalid token******\");\n System.exit(1);\n }\n\n //Gets a newOperator it matches from hashmap.\n Operator newOperator = Operator.getToken(token);\n\n //Processes only, when there is greater priority in stack and there are no '('\n while (operatorStack.peek().priority() >= newOperator.priority() && !newOperator.equals(Operator.getToken(\"(\"))) {\n\n //If the token read is ), then there is already '(' which is inserted in the operator stack.\n if (token.equals(\")\")) {\n //Perform until, the '(' is on top of the stack.\n while (!operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n\n }\n\n //If '(' found on top, pop and break, to continue to read more takens\n if (operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n operatorStack.pop();\n break;\n }\n\n } \n //if ')' not found, it means either its in '(' or there are no parenthesis\n else {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n }\n }\n //Pushes the operator, when the operator!=')'\n if (!newOperator.equals(Operator.getToken(\")\"))) {\n operatorStack.push(newOperator);\n }\n }\n }\n }\n // No more tokens to be read. All the tokens are in stacks, gets processed.\n if (!this.tokenizer.hasMoreTokens()) {\n //Keeps processing, until it reaches #\n while (operatorStack.size() != 1) {\n Operator oldOpr = operatorStack.pop();\n //Checks if there are operand left to be used,\n if (!operandStack.empty()) {\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n } else {\n System.exit(1);\n }\n }\n }\n // Returns, the final result\n return operandStack.pop().getValue();\n }",
"public static int evaluate(Math impl, String[] postfix) throws StackOverflowError, MalformedPostfixException {\n\n // a stack for implementing the evaluation\n Stack<Integer> stack = new Stack<Integer>();\n\n try {\n \n for (int i = 0; i < postfix.length; i++) {\n\n if (postfix[i].length() == 1 && !Character.isDigit(postfix[i].charAt(0))) {\n\n // if the first character of the element is not a digit then we \n // assume it is an operator\n\n String operator = postfix[i];\n\t\t\n if (operator.equals(\"<\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.lshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\">\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.rshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"+\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.add(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"-\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.sub(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"*\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.mul(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"/\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.div(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"^\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.pow(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"!\")) {\n int num = stack.pop();\n int result = impl.fac(num);\n stack.add(result);\n } // if\n\n } else {\n\n // otherwise we assume it is an operand and add it to the stack\n stack.add(Integer.parseInt(postfix[i]));\n\n } // if\n\n } // for\n\n } catch (Exception e) {\n \n // propogate as a malformed postfix exception\n throw new MalformedPostfixException(postfix);\n \n } // try\n \n // if the stack size is not 1, then the expression is malformed\n if (stack.size() != 1) {\n throw new MalformedPostfixException(postfix);\n } // if\n\n // the only element left in the stack will be the result of the evaluation\n return stack.pop();\n\n }",
"public StatementParse reconstructTree(ArrayList<StatementParse> expression){\n // an empty expression will not trigger this method\n // first element is always an integer\n StatementParse left_node = expression.get(0);\n\n for (int i = 1; i < expression.size(); i++){\n StatementParse right_node = expression.get(i);\n if (right_node instanceof IntegerParse && ((IntegerParse) right_node).getValue() == 0){\n continue;\n }\n StatementParse top;\n if (right_node.isNegative()){\n top = new StatementParse(\"-\");\n } else {\n top = new StatementParse(\"+\");\n }\n top.getChildren().add(left_node);\n top.getChildren().add(right_node);\n left_node = top;\n }\n return left_node;\n }",
"public Node Infix2BT(String infix) {\r\n char[] a = infix.toCharArray();\r\n String[] tempb = new String[a.length];\r\n int arraysize = 0;\r\n for (int i = 0; i < a.length - 1; i++) {\r\n tempb[i] = infix.subSequence(i, i + 1).toString();\r\n int tempcount = i;\r\n if (tempb[i].equals(\"\"+\"\") == false && tempb[i].equals(\"\"-\"\") == false && tempb[i].equals(\"\"*\"\") == false && tempb[i].equals(\"\"/\"\") == false && tempb[i].equals(\"\"(\"\") == false && tempb[i].equals(\"\")\"\") == false) {\r\n for (int j = i + 1; j < a.length - 1; j++) {\r\n String tempbb = infix.subSequence(j, j + 1).toString();\r\n if (tempbb.equals(\"\"+\"\") == false && tempbb.equals(\"\"-\"\") == false && tempbb.equals(\"\"*\"\") == false && tempbb.equals(\"\"/\"\") == false && tempbb.equals(\"\"(\"\") == false && tempbb.equals(\"\")\"\") == false) {\r\n tempcount = j;\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n if (tempcount != i) {\r\n tempb[i] = infix.subSequence(i, tempcount + 1).toString();\r\n i = tempcount;\r\n }\r\n }\r\n arraysize++;\r\n }\r\n int idx = 0;\r\n b = new String[arraysize];\r\n for (int i = 0; i < tempb.length; i++) {\r\n if (tempb[i] != null) {\r\n b[idx] = tempb[i];\r\n System.out.print(b[idx]);\r\n idx++;\r\n }\r\n }\r\n \r\n root = new Node(null, null, null);\r\n //若為(1+(1+1))的形式\r\n Stack<String> stack = new Stack<String>();\r\n if (b[2].equals(\"\"+\"\") || b[2].equals(\"\"-\"\") || b[2].equals(\"\"*\"\") || b[2].equals(\"\"/\"\")) {\r\n root.setValue(b[2]);\r\n Node temp = new Node(null, null, b[1]);\r\n root.setLeft(temp);\r\n int checknum = 0;\r\n Node connectnode = new Node(null, null, null);\r\n if ((b.length - 1 - 3) >= 3) {\r\n for (int i = 3; i < b.length; i++) {\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setRight(connectnode);\r\n } else {\r\n temp = new Node(null, null, b[3]);\r\n root.setRight(temp);\r\n }\r\n } //若為((1+1)+1)的形式\r\n else if (b[b.length- 2].equals(\"\"+\"\") || b[b.length - 2].equals(\"\"-\"\") || b[b.length - 2].equals(\"\"*\"\") || b[b.length - 2].equals(\"\"/\"\")) {\r\n root.setValue(b[b.length - 2]);\r\n Node temp = new Node(null, null, b[b.length - 1]);\r\n root.setRight(temp);\r\n int checknum = 0;\r\n Node connectnode = new Node(null, null, null);\r\n for (int i = 0; i < b.length - 2; i++) {\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setLeft(connectnode);\r\n }//若為((1+1)+(1+1))的形式\r\n else {\r\n int rootposition = 0;\r\n for (int i = 0; i < b.length; i++) {\r\n if (b[i].equals(\"\")\"\") || b[i + 2].equals(\"\"(\"\")) {\r\n rootposition = i + 1;\r\n break;\r\n }\r\n }\r\n root.setValue(b[rootposition]);\r\n int checknum = 0;\r\n Node connectnode = new Node(null, null, null);\r\n for (int i = 0; i < rootposition; i++) { //先連接root左邊\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setLeft(connectnode);\r\n checknum = 0;\r\n for (int i = rootposition + 1; i < b.length; i++) { //再連接root右邊\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setRight(connectnode);\r\n }\r\n\r\n return root;\r\n }\r\n\r\n private void Prefixtraversal(Node x, Queue<Node> q) {\r\n if (x == null) {\r\n return;\r\n }\r\n q.enqueue(x);\r\n Prefixtraversal(x.getLeft(), q);\r\n Prefixtraversal(x.getRight(), q);\r\n }\r\n\r\n public Node[] PrintPrefix() {\r\n if (this.root == null) {\r\n System.out.println(\"\"NullPointerException\"\");\r\n return null;\r\n }\r\n Queue<Node> q = new Queue<Node>();\r\n Prefixtraversal(this.root, q);\r\n \r\n Node[] prefix = new Node[(b.length + 2) / 2];\r\n for (int i = 0; i < prefix.length; i++) {\r\n prefix[i] = q.dequeue();\r\n // System.out.println(prefix[i].getValue());\r\n }\r\n return prefix;\r\n }\r\n\r\n private void Postfixtraversal(Node x, Queue<Node> q) {\r\n if (x == null) {\r\n return;\r\n }\r\n Postfixtraversal(x.getLeft(), q);\r\n Postfixtraversal(x.getRight(), q);\r\n q.enqueue(x);\r\n }\r\n\r\n public Node[] PrintPostfix() {\r\n if (this.root == null) {\r\n System.out.println(\"\"NullPointerException\"\");\r\n return null;\r\n }\r\n Queue<Node> q = new Queue<Node>();\r\n Postfixtraversal(this.root, q);\r\n Node[] postfix = new Node[(b.length + 2) / 2];\r\n for (int i = 0; i < postfix.length; i++) {\r\n postfix[i] = q.dequeue();\r\n }\r\n return postfix;\r\n }\r\n\r\n public double Evaluation() {\r\n if (this.root == null) {\r\n System.out.println(\"\"NullPointerException\"\");\r\n return 0.0;\r\n }\r\n Node[] c = this.PrintPostfix();\r\n Stack<Double> stack = new Stack<Double>();\r\n for (int i = 0; i < c.length; i++) {\r\n if (c[i].getValue().equals(\"\"+\"\") == false && c[i].getValue().equals(\"\"-\"\") == false && c[i].getValue().equals(\"\"*\"\") == false && c[i].getValue().equals(\"\"/\"\") == false) {\r\n stack.push(Double.valueOf(c[i].getValue()));\r\n } else {\r\n double num2 = 0.0;\r\n double num1 = 0.0;\r\n switch (c[i].getValue()) {\r\n case \"\"+\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 + num2);\r\n break;\r\n case \"\"-\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 - num2);\r\n break;\r\n case \"\"*\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 * num2);\r\n break;\r\n case \"\"/\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 / num2);\r\n break;\r\n }\r\n }\r\n\r\n }\r\n double answer = stack.pop();\r\n return answer;\r\n }\r\n\r\n public static void main(String[] args) {\r\n// Expression b = new Expression();\r\n// //Node a = b.Infix2BT(\"\"(4+(((4*2)/2)/3))\"\");\r\n// // Node a = b.Infix2BT(\"\"(12+12)\"\");\r\n// Node a = b.Infix2BT(\"\"((1+1)+(1+1))\"\");\r\n// Node[] c = b.PrintPrefix();\r\n// for (int i = 0; i < c.length; i++) {\r\n// System.out.print(c[i].getValue());\r\n// }\r\n// System.out.println(\"\" \"\");\r\n// c = b.PrintPostfix();\r\n// for (int i = 0; i < c.length; i++) {\r\n// System.out.print(c[i].getValue());\r\n// }\r\n// b.Evaluation();\r\n// System.out.println(\"\" \"\");\r\n// System.out.println(b.Evaluation());\r\n\r\n }\r\n}",
"public static String[] infixToPostfix(String[] infix) {\n\n // a list for the resulting postfix expression\n List<String> postfix = new ArrayList<String>();\n\n // a stack for implementing the conversion\n Stack<String> operatorStack = new Stack<String>();\n\n // check the length of the expression\n if (infix.length != 0) {\n \n for (int i = 0; i < infix.length; i++) {\n \n // precedence is null for operands\n Integer precedence = precedenceMap.get(infix[i]);\n\n if (precedence != null) {\n\n // then the current token is an operator\n while (!operatorStack.isEmpty()) {\n String opFromStack = operatorStack.pop();\n if (precedenceMap.get(opFromStack) < precedence) {\n operatorStack.push(opFromStack);\n break;\n } else {\n postfix.add(opFromStack);\n } // if\n } // while\n \n operatorStack.push(infix[i]);\n \n } else { \n // current token is not an operator\n postfix.add(infix[i]);\n } // if\n \n } // for\n \n // add the remaining operators to the postfix expression\n while (!operatorStack.isEmpty()) {\n postfix.add(operatorStack.pop());\n } // while\n \n } // if\n \n return postfix.toArray(new String[postfix.size()]);\n\n }",
"private String toReversePolishNotation(String expr) {\n\t\tString output = \"\";\n\t\tStack<String> operatorStack = new Stack<String>();\n\n\t\tfor(String token : expr.split(\"\\\\s+\")) {\n\t\t\tif(isNumber(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isMatrix(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isOperator(token)) {\n\t\t\t\tint precidenceToken = getPrecidence(token);\n\t\t\t\tint precidenceNext;\n\t\t\t\twhile(!operatorStack.isEmpty()) {\n\t\t\t\t\tprecidenceNext = getPrecidence(operatorStack.peek());\n\t\t\t\t\tif(precidenceNext >= precidenceToken) output += operatorStack.pop() + \" \";\n\t\t\t\t\telse break;\n\t\t\t\t}\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\"(\")) {\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\")\")) {\n\t\t\t\twhile(!operatorStack.peek().equals(\"(\")) output += operatorStack.pop() + \" \";\n\t\t\t\toperatorStack.pop();\n\t\t\t}\n\t\t\telse throw new IllegalArgumentException(INVALID_CHARACTER_MESSAGE);\n\t\t}\n\t\twhile(!operatorStack.isEmpty()) output += operatorStack.pop() + \" \";\n\n\t\treturn output;\n\t}",
"private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }",
"public static int evalPostfix(String postfix) throws PostFixException{\n\t\t//MyStack instance to store results of evaluation\n\t\tStack<Integer> result = new Stack<Integer>();\n\t\t\n\t\t//Scanner instance to scan tokens\n\t\tScanner getToken = new Scanner(postfix);\n\t\t\n\t\twhile(getToken.hasNext()){\n\t\t\t\n\t\t\tString curToken = getToken.next();\n\t\t\t//if the token is a valid operator, push it onto stack as a Double object\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\tresult.push(Integer.parseInt(curToken));\n\t\t\t}\n\t\t\t\n\t\t\t//if the current token is an operator\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\ttry{\n\t\t\t\t\t//Get the operands from the stack\n\t\t\t\t\tint operand2 = result.pop().intValue();\n\t\t\t\t\tint operand1 = result.pop().intValue();\n\t\t\t\t\t\n\t\t\t\t\t//find the operator and perform the arithmetic\n\t\t\t\t\tswitch(curToken){\n\t\t\t\t\t\tcase \"+\": result.push(operand1 + operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"-\": result.push(operand1 - operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"*\": result.push(operand1 * operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"/\": result.push(operand1 / operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tdefault: throw new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//if the stack is empty when attempting to pop, throw a PostFixException\n\t\t\t\tcatch(EmptyStackException e){\n\t\t\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t\t\t}\n\t\t\t\t//If there is an ArithMetic Exception, rethrow it\n\t\t\t\tcatch(ArithmeticException e){\n\t\t\t\t\tthrow new ArithmeticException(\"Divide by 0\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is not an operand or operator it is invalid,\n\t\t\t//throw a PostFixException\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//if the result is not in the stack\n\t\tif(result.empty()){\n\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t}\n\t\t\n\t\tint resultNum = result.pop().intValue();\n\t\t\n\t\t//If there are still operands in the stack\n\t\tif(!result.empty()){\n\t\t\tthrow new PostFixException(\"Too many operands\");\n\t\t}\n\t\t\n\t\treturn resultNum;\n\t}",
"public static String convertPostfixToInfix(String postfix) throws InvalidNotationFormatException {\n\t\tNotationStack<String> eval = new NotationStack<String>(postfix.length());\n\t\tchar[] expr = postfix.toCharArray();\n\t\tfor (int i = 0; i < expr.length; i++) {\n\t\t\tif (Character.isDigit(expr[i])) {\n\t\t\t\ttry {\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif (eval.size() < 2) {\n\t\t\t\t\tthrow new InvalidNotationFormatException();\n\t\t\t\t}\n\t\t\t\tString pop1=\"\", pop2=\"\", result=\"\";\n\t\t\t\ttry {\n\t\t\t\t\tpop2 = eval.pop();\n\t\t\t\t\tpop1 = eval.pop();\n\t\t\t\t\tresult += \"(\" + pop1 + String.valueOf(expr[i]) + pop2 + \")\";\n\t\t\t\t\teval.push(result);\n\t\t\t\t}catch(StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (eval.size() > 1) {\n\t\t\tthrow new InvalidNotationFormatException();\n\t\t}\n\t\treturn eval.toString();\n\t}",
"public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operator characters\r\n\t\tStringBuilder adder = new StringBuilder(); // stores value characters\r\n\t\tboolean text = false; // whether inside of a string\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tboolean add = (c != '\\\\'); // whether to add the char to adder. ignore escape char\r\n\t\t\tboolean leftSide = (opstore.length() == 0); // whether on the left side of the binary expression (before the operator)\r\n\t\t\tString adderStr = adder.toString();\r\n\t\t\tString opStr = opstore.toString();\r\n\r\n\t\t\tif (c == '\"') { // string\r\n\t\t\t\tif (i == 0 || str.charAt(i - 1) != '\\\\') {\r\n\t\t\t\t\ttext = !text; // ignore string contents\r\n\t\t\t\t}\r\n\t\t\t} else if (!text) {\r\n\t\t\t\tif (c == ' ') {\r\n\t\t\t\t\tadd = false; // ignore spaces\r\n\t\t\t\t} else if (c == '(') { // grouping or function\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tString contents = str.substring(i + 1, closeIndex);\r\n\t\t\t\t\tExpr group; // the expression denoted by the parentheses group\r\n\r\n\t\t\t\t\tif (i > 0 && (!isReserved(str.charAt(i - 1)) || str.charAt(i - 1) == ')')) { // function\r\n\t\t\t\t\t\tif (adderStr.isEmpty()) { // function reference call ... func()()\r\n\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(null, contents); // a reference call is only a parameter group, null name\r\n\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t} else { // function call\r\n\t\t\t\t\t\t\tif (adderStr.startsWith(\".\")) { // function sub call ... func().subfunc()\r\n\t\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t\t} else { // standalone function ... func()\r\n\t\t\t\t\t\t\t\tif (Character.toString(adderStr.charAt(0)).equals(Operator.REF.op)) { // @func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprFuncRef(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\t} else { // func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprCall(adderStr, contents);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // parenthetical grouping\r\n\t\t\t\t\t\tchar cc = (adderStr.length() == 1 ? adderStr.charAt(0) : 0); // operator before parenthesis ... !()\r\n\t\t\t\t\t\tif (isReserved(cc)) { // operation on the group\r\n\t\t\t\t\t\t\tgroup = new ExprUnary(Operator.get(Character.toString(cc)), parse(contents));\r\n\t\t\t\t\t\t} else { // ignore character, not an operator\r\n\t\t\t\t\t\t\tgroup = parse(contents);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add to tree\r\n\t\t\t\t\tif (leftSide) at.setLeft(group);\r\n\t\t\t\t\telse at.setRight(group);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (c == '{') { // array initializer ... {}\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tExpr arr = new ExprArray(str.substring(i + 1, closeIndex), adderStr);\r\n\r\n\t\t\t\t\tif (adderStr.length() == 1 && isReserved(adderStr.charAt(0))) {\r\n\t\t\t\t\t\t// unary op done on array initializer ... !{}\r\n\t\t\t\t\t\tarr = new ExprUnary(Operator.get(Character.toString(adderStr.charAt(0))), arr);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (leftSide) at.setLeft(arr);\r\n\t\t\t\t\telse at.setRight(arr);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (isOp(c)) { // operator\r\n\t\t\t\t\t// add value used in operation to tree\r\n\t\t\t\t\tif (!adderStr.isEmpty()) {\r\n\t\t\t\t\t\tif (leftSide) { // ex: adderStr + ___\r\n\t\t\t\t\t\t\tat.setLeft(parseValue(adderStr));\r\n\t\t\t\t\t\t} else { // ex: (___ + adderStr) + ___\r\n\t\t\t\t\t\t\tat.setRight(parseValue(adderStr));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opStr.equals(\"\") || (i > 0 && isOp(str.charAt(i - 1)))) { // accumulate operator from adjacent operator characters (ex: != consists of ! and =)\r\n\t\t\t\t\t\tif (!(adderStr.isEmpty() && (opStr + c).equals(\"-\")) && (Operator.get(opStr + c) != null || (opStr.isEmpty() && isOp(c)))) {// if the operator exists, then it is an operator character\r\n\t\t\t\t\t\t\tif (opStr.equals(\"-\") && c == '-') { // this and the above line handle negatives and double negatives\r\n\t\t\t\t\t\t\t\topStr = \"+\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topStr += c;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // existing operator operation must be added to tree ... in \"(a + b) * c\", \"(a+b)\" must be abstracted-out so we get \"x * c\"\r\n\t\t\t\t\t\tint endIndex = i + 1; // end index of operator\r\n\r\n\t\t\t\t\t\t// get entire operator if operator is more than 1 character long\r\n\t\t\t\t\t\tfor (int i2 = endIndex; i2 < str.length(); i2++) {\r\n\t\t\t\t\t\t\tif (isOp(str.charAt(i2))) endIndex++;\r\n\t\t\t\t\t\t\telse break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOperator nextOp = Operator.get(str.substring(i, endIndex)); // second (right-most) operator\r\n\t\t\t\t\t\tat.op = Operator.get(opStr); // first (left-most) operator\r\n\r\n\t\t\t\t\t\t// group values in operation by operator precedence\r\n\t\t\t\t\t\tint p1 = precedence(nextOp); // right-most op\r\n\t\t\t\t\t\tint p2 = precedence(at.op); // left-most op\r\n\r\n\t\t\t\t\t\tif (p1 > p2) { // group around the right-most op\r\n\t\t\t\t\t\t\tExprBinary right = new ExprBinary(at, nextOp);\r\n\t\t\t\t\t\t\tright.setLeft(at.right());\r\n\r\n\t\t\t\t\t\t\tat.setRight(right);\r\n\t\t\t\t\t\t\tat = right;\r\n\r\n\t\t\t\t\t\t} else if (p1 < p2) { // group around the left-most op\r\n\t\t\t\t\t\t\tExprBinary last = at;\r\n\t\t\t\t\t\t\tExprBinary match = at.parent();\r\n\r\n\t\t\t\t\t\t\t// correctly add to the binary tree based on precedence of operators\r\n\t\t\t\t\t\t\twhile (match instanceof ExprBinary && p1 < (p2 = precedence(((ExprBinary) match).op))) {\r\n\t\t\t\t\t\t\t\tlast = match;\r\n\t\t\t\t\t\t\t\tmatch = match.parent();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tExprBinary tr = new ExprBinary(match, nextOp);\r\n\t\t\t\t\t\t\ttr.setLeft(last);\r\n\r\n\t\t\t\t\t\t\tif (match != null) {\r\n\t\t\t\t\t\t\t\tif (last == match.right()) match.setRight(tr);\r\n\t\t\t\t\t\t\t\telse match.setLeft(tr);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tat = tr;\r\n\r\n\t\t\t\t\t\t} else { // group from left to right (equal operator precedence)\r\n\t\t\t\t\t\t\tExprBinary left = new ExprBinary(at, at.op); // group existing values into left node, add right to open right node spot\r\n\t\t\t\t\t\t\tleft.setLeft(at.left());\r\n\t\t\t\t\t\t\tleft.setRight(at.right());\r\n\r\n\t\t\t\t\t\t\tat.op = nextOp;\r\n\t\t\t\t\t\t\tat.setLeft(left);\r\n\t\t\t\t\t\t\tat.setRight(null);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\topStr = nextOp.op;\r\n\t\t\t\t\t\ti = endIndex - 1;\r\n\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// store valid value characters\r\n\t\t\tif (add) {\r\n\t\t\t\tadder.append(c);\r\n\r\n\t\t\t\t// if this is the last character, then add the stored value to the tree.\r\n\t\t\t\t// otherwise, would be incorrectly ignored because there is no next operator\r\n\t\t\t\tif (i + 1 == str.length()) {\r\n\t\t\t\t\tif (opstore.length() == 0) {\r\n\t\t\t\t\t\tat.setLeft(parseValue(adder.toString()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tat.setRight(parseValue(adder.toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// initialize binary tree operator if not done so already\r\n\t\tif (at.op == null) {\r\n\t\t\tat.op = Operator.get(opstore.toString());\r\n\t\t}\r\n\r\n\t\t// after traversing the tree to some point, we need to get back to root so we can return the entire tree\r\n\t\twhile (at.parent() != null) {\r\n\t\t\tat = (ExprBinary) at.parent();\r\n\t\t}\r\n\r\n\t\t// the expression may not actually be a binary operation\r\n\t\tif (at.op == null && at.right() == NULL) {\r\n\t\t\tif (at.left() == NULL) return NULL; // the expression is empty\r\n\t\t\treturn at.left(); // the expression is a single value/unary-operation\r\n\t\t}\r\n\r\n\t\treturn at;\r\n\t}",
"public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }",
"private TreeMap<Integer, PackratParser<Expression>> makeExpressionParsers (CtClass clazz) {\n TreeMap<Integer, PackratParser<Expression>> map = new TreeMap<>();\n\n for (Map.Entry<Integer, List<IROperator>> entry : operators.getOperators(clazz).entrySet()) {\n Integer priority = entry.getKey();\n map.put(priority, choice(getOperationParsersFromCache(priority, entry.getValue())));\n }\n\n TreeMap<Integer, PackratParser<Expression>> parsers = new TreeMap<>();\n\n PackratParser<Expression> next = getDefaultParserFromCache(clazz);\n\n for (Integer priority : map.descendingKeySet()) {\n PackratParser<Expression> cur = choice(map.get(priority), next);\n parsers.put(priority, cur);\n next = cur;\n }\n\n return parsers;\n }",
"static String infixToPostfix(String infix) {\n final String ops = \"-+/*^\";\n \n StringBuilder sb = new StringBuilder();\n Stack<Integer> s = new Stack<>();\n \n for (String token : infix.split(\"\\\\s\")) {\n if (token.isEmpty())\n continue;\n char c = token.charAt(0);\n int idx = ops.indexOf(c);\n \n // check for operator\n if (idx != -1) {\n if (s.isEmpty())\n s.push(idx);\n \n else {\n while (!s.isEmpty()) {\n int prec2 = s.peek() / 2;\n int prec1 = idx / 2;\n if (prec2 > prec1 || (prec2 == prec1 && c != '^'))\n sb.append(ops.charAt(s.pop())).append(' ');\n else break;\n }\n s.push(idx);\n }\n } \n else if (c == '(') {\n s.push(-2); // -2 stands for '('\n } \n else if (c == ')') {\n // until '(' on stack, pop operators.\n while (s.peek() != -2)\n sb.append(ops.charAt(s.pop())).append(' ');\n s.pop();\n }\n else {\n sb.append(token).append(' ');\n }\n }\n while (!s.isEmpty())\n sb.append(ops.charAt(s.pop())).append(' ');\n return sb.toString();\n }",
"private String infixToPostfixPlusPrecedence(String infix) {\n\t\tString postfix = \"\";\n\t\tStack<Character> stack = new Stack<>();\n\n\t\tfor (int i = 0; i < infix.length(); i++) {\n\t\t\tchar currentChar = infix.charAt(i);\n\t\t\tif (currentChar == '+' || currentChar == '*') {\n\t\t\t\tif (stack.isEmpty() || stack.peek() == '(') {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else if (precedence(stack.peek()) >= precedence(currentChar)) {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t}\n\t\t\t} else if (currentChar == '(') {\n\t\t\t\tstack.push(currentChar);\n\t\t\t} else if (currentChar == ')') {\n\n\t\t\t\twhile (stack.peek() != '(') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.pop();\n\n\t\t\t} else if (currentChar != ' ') {\n\t\t\t\tpostfix = postfix + currentChar;\n\t\t\t}\n\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tpostfix = postfix + stack.pop();\n\t\t}\n\n\t\treturn postfix;\n\t}",
"public void testBuildTreeFromPREIN() throws Exception {\n final StringBuilder builder = new StringBuilder();\n C5_8A_RebuildTree treeBuilder = new C5_8A_RebuildTree<Character>();\n BinaryTreeNode<Character> root = treeBuilder.rebuild(\n ArrayUtil.getCharArray(preOrder),\n ArrayUtil.getCharArray(inOrder),\n C5_8A_RebuildTree.PRE_IN);\n C5_1_TreeTraverse.traverseByPostOrder(root, new Processor<Character>() {\n @Override\n public void process(Character element) {\n builder.append(element);\n }\n });\n String postOrder = builder.toString();\n assertEquals(this.postOrder, postOrder);\n }",
"public void infixToPostFix() {\n for (String str : infixList) {\n if (str.equals(\"(\")) {\n leftParenthesis(str);\n } else if (str.equals(\")\")) {\n rightParenthesis();\n } else if (OperatorOperand.isOperator(str)) {\n operator(str);\n } else {\n operand(str);\n }\n }\n clearTheStack();\n }",
"public ArrayList<String> convertToRPN(String[] expression) {\n ArrayList<String> result = new ArrayList<String>();\n if (expression == null || expression.length == 0) {\n return result;\n }\n \n ExpressionTreeNode root = build(expression);\n Stack<ExpressionTreeNode> stack = new Stack<ExpressionTreeNode>();\n ExpressionTreeNode curr = null;\n ExpressionTreeNode prev = null;\n if (root == null) { // take care of here, null root can also be pushed to stack\n return result;\n }\n stack.push(root);\n while (!stack.isEmpty()) {\n curr = stack.peek();\n if (prev == null || prev.left == curr || prev.right == curr) {\n if (curr.left != null) {\n stack.push(curr.left);\n } else if (curr.right != null) {\n stack.push(curr.right);\n }\n } else if (curr.left == prev) {\n if (curr.right != null) {\n stack.push(curr.right);\n }\n } else {\n result.add(stack.pop().expression);\n }\n prev = curr;\n }\n \n return result;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}",
"@Override\n\tpublic void parse() throws Exception {\n\t\tLogger.log(\"Parsing expression: \" + getWords().toString(), 4);\n\t\tint wordsSize= getWords().size();\n\t\tString word;\n\t\tint lastSplitIndex = 0;\n\t\tFExpressionSide fExpSide;\n\t\tfExpSideList = new LinkedList<FExpressionSide>();\n\t\tfor(int i=0; i < wordsSize; i++){\n\t\t\tword = getWords().get(i);\n\t\t\t\n\t\t\tif(Operators.INFIX_OPS.contains(word)){\n\t\t\t\tfExpSide = new FExpressionSide(this);\n\t\t\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, i));\n\t\t\t\tfExpSide.setOperator(word);\n\t\t\t\t\n\t\t\t\tlastSplitIndex = i +1;\n\t\t\t\tfExpSideList.add(fExpSide);\n\t\t\t}\n\t\t}\n\t\tfExpSide = new FExpressionSide(this);\n\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, wordsSize));\n\t\tfExpSideList.add(fExpSide);\n\t\t\n\t\tfor(FExpressionSide f : fExpSideList){\n\t\t\tf.parse();\n\t\t}\n\t\t\n\t\t\n\t}",
"public List<Token> InfixToPostfixConverter(List<Token> tokenList){\n ArrayDeque<Token> stack = new ArrayDeque<Token>(); \n List<Token> output = new ArrayList<Token>(); \n\n for (Token token : tokenList){\n if (token instanceof Polynomial)\n output.add(token); \n else if (token instanceof OpenParenthesis)\n stack.push(token); \n else if (token instanceof CloseParenthesis){\n while (!stack.isEmpty() && !(stack.peek() instanceof OpenParenthesis))\n output.add(stack.pop()); \n if (stack.isEmpty()){ \n throw new PolyFormatException(\"Mismatched right parenthesis\");\n }\n stack.pop(); // throw away left parenthesis\n }\n else if (token instanceof Operator){\n Operator tokenOperator = (Operator) token; // cast Token to Operator\n Operator peekStackOp = new AddOperator();\n if (!(stack.peek() instanceof OpenParenthesis))\n peekStackOp = (Operator) stack.peek(); // cast Token to Operator\n while (!stack.isEmpty() && !(stack.peek() instanceof OpenParenthesis)\n && (peekStackOp.getPriority() >= tokenOperator.getPriority()))\n output.add(stack.pop()); \n stack.push(token);\n }\n }\n // empty out the stack at the end \n\n while (!stack.isEmpty()){\n Token token = stack.pop(); \n if (token instanceof OpenParenthesis){\n throw new PolyFormatException(\"Mismatched left parenthesis\");\n }\n output.add(token); \n }\n\n return output;\n }",
"public static String evaluate( String expr ) \n {\n\tString[] arr = expr.split(\"\\\\s+\");\n\tLLStack<String> nums = new LLStack<String>();\n\tLLStack<String> noClose = new LLStack<String>();\n\tint op = 0;\n\n\tfor(String i : arr){ \n\t if(i.equals(\")\")){ //when you reach the closing parenthesis\n\t\tString top = noClose.pop(); //start going through this part of the expression\n\t\tnums.push(i); //add ( to stack for unload\n\t\t\n\t\twhile(!top.equals(\"(\")){ //until you reach the (, where the expression ends\n\t\t\t \n\t\t if(top.equals(\"+\")) op = 1;\n\t\t else if(top.equals(\"-\")) op = 2;\n\t\t else if(top.equals(\"*\")) op = 3;\n\n\t\t else nums.push(top); //if it's not an operand\n\n\t\t top = noClose.pop();\n\t\t}\n\n\t\tnoClose.push(unload(op, nums));\n\t }\n\t \n\t else noClose.push(i); //pushed into a stack of what's in this ()\n \n\t}//end of for loop \n \n\treturn noClose.peek();\n }",
"public Element compileExpressionList() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean contFlag = false;\n\n\t\tElement expListParent = document.createElement(\"expressionList\");\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\tif (token.equals(\")\")) {\n\t\t\t// expListParent.setTextContent(\"\\n\");\n\t\t\treturn expListParent;\n\t\t}\n\t\tdo {\n\t\t\texpListParent.appendChild(compileExpression());\n\n\t\t\tjTokenizer.advance();\n\t\t\ttoken = jTokenizer.returnTokenVal();\n\n\t\t\tif (token.equals(\",\")) {\n\t\t\t\t// tokenType= jTokenizer.tokenType();\n\t\t\t\t// ele= createXMLnode(tokenType);\n\t\t\t\t// expListParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tcontFlag = true;\n\t\t\t} else {\n\t\t\t\tcontFlag = false;\n\t\t\t}\n\t\t} while (contFlag);\n\t\treturn expListParent;\n\t}",
"@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}",
"static String infixToRP(String[] str){\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tStack<String> s = new Stack<String>();\n\t\t\t\n\t\t\tfor(int i=0; i<str.length ; i++){\n\t\t\t\tif(str[i] == \"(\"){\n\t\t\t\t\ts.push(\"(\");\n\t\t\t\t}\n\t\t\t\telse if(str[i] == \")\"){\n\t\t\t\t\twhile(!s.isEmpty()){\n\t\t\t\t\t\tString temp = s.pop();\n\t\t\t\t\t\tif(temp == \"(\"){\n\t\t\t\t\t\t\ts.push(\"(\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsb.append(temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(str[i] == \"+\" || str[i] == \"-\"){\n\t\t\t\t\tString top = s.peek();\n\t\t\t\t\tif(top == \"/\" || top == \"*\"||top == \"(\"){\n\t\t\t\t\t\tsb.append(str[i]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ts.push(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tString top = s.peek();\n\t\t\t\t\tif(top == \"+\" || top == \"-\"){\n\t\t\t\t\t\ts.push(str[i]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tsb.append(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}",
"public static ArrayList<String> makePostV(String s){\r\n String sD = s+\"$\";\r\n Stack<String> st1 = new Stack<String>();//Operators and parenthesis are stored temporarily on string stack \"st1\"\r\n ArrayList<String> postV = new ArrayList<String>();\r\n int p=0;//Pointer for each character in the expression; Gets incremented \r\n \r\n while(p<s.length()){\r\n int count = 0;//Count for making sure only one of the following \"if\"s are executed in one iteration \r\n String s1=Character.toString(sD.charAt(p));\r\n \r\n String sNext = Character.toString(sD.charAt(p+1));\r\n if(Character.toString(s1.charAt(s1.length()-1)).matches(\"[a-zA-Z].*\")||Character.toString(s1.charAt(s1.length()-1)).matches(\"-?\\\\d+(\\\\.\\\\d+)?\")){\r\n while(!sNext.matches(\".*[-+*/^%$()].*\")){\r\n p++;\r\n s1=s1+sNext;\r\n sNext=Character.toString(sD.charAt(p+1));\r\n }\r\n }\r\n \r\n //For identifiers in the expression \r\n if((s1.matches(\"[a-zA-Z].*\"))&&count==0){postV.add(s1);count++;}\r\n \r\n //For numerical values given directly in the expression\r\n if(s1.matches(\"-?\\\\d+(\\\\.\\\\d+)?\")&&count==0){postV.add(s1);count++;}\r\n \r\n //For parenthesis in the expression\r\n if((s1.equals(\"(\")||s1.equals(\")\"))&&count==0){ \r\n if(s1.equals(\"(\")){st1.push(\"(\");}\r\n if(s1.equals(\")\")){\r\n while(!st1.peek().equals(\"(\")&&!st1.empty()){String currOp = st1.pop();postV.add(currOp);}\r\n st1.pop();\r\n }count++;\r\n } \r\n \r\n //For operators in the expression\r\n if(s1.equals(\"+\")||s1.equals(\"-\")||s1.equals(\"%\")||s1.equals(\"/\")||s1.equals(\"*\")||s1.equals(\"^\")){ \r\n if(st1.empty()&&count==0){st1.push(s1);count++;}\r\n \r\n if(!st1.empty()&&count==0){\r\n if(st1.peek().equals(\"(\")){st1.push(s1);count++;} \r\n \r\n String s2=st1.peek();\r\n char op1 = s2.charAt(0);\r\n char op2=s1.charAt(0); \r\n \r\n if(count==0){\r\n while((precedenceLevel(op1)>=precedenceLevel(op2))&&!st1.empty()){\r\n String currOp=st1.pop(); \r\n postV.add(currOp);\r\n if(!st1.empty()&&st1.peek().equals(\"(\")){break;}\r\n if(!st1.empty()){s2=st1.peek();op1 = s2.charAt(0);}\r\n } st1.push(s1);count++; \r\n }\r\n \r\n if((precedenceLevel(op1)<precedenceLevel(op2))&&count==0){\r\n st1.push(s1);\r\n count++;\r\n } \r\n } \r\n } \r\n p++; \r\n }\r\n \r\n //At the end pops operators if remained in the stack\r\n while(!st1.empty()){\r\n String currOp=st1.pop();\r\n postV.add(currOp);\r\n } \r\n return postV;//Returns the postfix expression\r\n }",
"public static void lmd_parseTree(){\n\n e_stack.push(\"$\");\n e_stack.push(pc.first_rule);\n head_node=new node(pc.first_rule);\n\n // Evaluate\n // Building the tree as well\n\n node cur=head_node;\n\n for(int i=0;i<token_stream.length;i++){\n System.out.println(e_stack);\n if(!pc.isTerminal(e_stack.peek())){\n String rule_token =pc.parse_Table.get(e_stack.pop(),token_stream[i]).right;\n\n if(!rule_token.equals(\"empty\")) {\n String to_put[]=rule_token.split(\" \");\n for(int j=to_put.length-1;j>=0;j--)\n e_stack.push(to_put[j]);\n\n // add children\n for(int j=0;j<to_put.length;j++)\n addNode(cur,to_put[j]);\n // set cur\n cur=cur.next;\n }\n else {\n // if rule_token is empty\n addNode(cur,\"empty\");\n cur=cur.next.next; // as \"empty\" node will not have any children\n }\n i--;\n }\n else {\n // if(e_stack.peek().equals(token_stream[i]))\n e_stack.pop();\n if(cur.next!=null ) cur=cur.next;\n }\n }\n }",
"ParenthesisExpr createParenthesisExpr();",
"public static String infixToPostfix(String expression) {\n if (expression.contains(\" \"))\n {\n String newExpression = expression.replaceAll(\" \", \"\");\n expression = newExpression;\n }\n\n // Check for correct parentheses placement\n int lp = 1, rp = 0;\n String errorMessage = \"\";\n for (int i = 1; i < expression.length(); i++)\n {\n if (expression.charAt(i) == '(') lp++;\n if (expression.charAt(i) == ')') rp++;\n\n if (lp == rp && i < expression.length()-1)\n {\n // Error extra parentheses\n errorMessage = \"Error: Extra parentheses\";\n return errorMessage;\n }\n else if (lp < rp)\n {\n // Error misplaced closing parentheses\n errorMessage = \"Error: Misplaced closing parentheses\";\n return errorMessage;\n }\n else if (lp > rp && i == expression.length()-1)\n {\n // Error missing closing parentheses\n errorMessage = \"Error: Missing closing parentheses\";\n return errorMessage;\n }\n }\n\n // Add implied multiplication\n String impliedMulOptions = \"123456789.)\";\n for (int i = 1; i < expression.length(); i++)\n {\n char c = expression.charAt(i);\n String prevChar = \"\";\n prevChar += expression.charAt(i-1);\n if (c == '(')\n {\n if (impliedMulOptions.contains(prevChar))\n {\n String pre = expression.substring(0, i);\n String post = expression.substring(i);\n expression = pre + '*' + post;\n }\n }\n\n // Also check for multiple subtraction signs can convert\n if (c == '-')\n {\n if (c == prevChar.charAt(0))\n {\n String pre = expression.substring(0, i-1);\n String post = expression.substring(i+1);\n if (expression.charAt(i-2) == '(')\n {\n expression = pre + post;\n i--;\n }\n else expression = pre + '+' + post;\n }\n }\n }\n\n // Handle functions within the expression\n while (expression.contains(\"s\") || expression.contains(\"c\") || expression.contains(\"t\") || expression.contains(\"l\")) {\n if (expression.charAt(0) == 'E') return expression;\n expression = functionPresent(expression);\n }\n\n\n // ----- Create RPN -----\n // Variables to store results\n Stack<String> rpn = new Stack<String>();\n Stack<String> stack = new Stack<String>();\n\n // Define all operators possible in the question\n String operators = \"^*/+-()\";\n\n for (int pos = 0; pos < expression.length(); pos++) {\n char c = expression.charAt(pos);\n\n // If a number, find the end of it and add to stack\n if (Character.isDigit(c)) {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If a negative number, find end of it and add to stack\n if (c == '-' && operators.contains(expression.substring(pos-1, pos)))\n {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.' || seekChar == '-') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If opening a set of parentheses, push it to stack.\n if (c == '(') {\n stack.push(\"(\");\n continue;\n }\n\n // If closing a set of parentheses, pop to rpn until opening parentheses occurs.\n if (c == ')') {\n while (!stack.isEmpty() && stack.peek() != \"(\") {\n rpn.push(stack.pop());\n }\n // Once we hit the open parentheses, pop it and exit loop\n stack.pop();\n continue;\n }\n\n // When an operand has been found\n else {\n while (!stack.isEmpty() && pemdas(c) <= pemdas(stack.peek())) {\n rpn.push(stack.pop());\n }\n String operandString = new String();\n operandString += c;\n stack.push(operandString);\n }\n\n }\n\n // ----- Solve RPN -----\n // Grab the RPN from the stack and turn it into an array to access it properly\n String[] rpnArray = new String[rpn.size()];\n for (int i = rpn.size() - 1; i > -1; i--) {\n rpnArray[i] = rpn.pop();\n }\n\n // If array is just one number, return it\n if (rpnArray.length == 1) return rpnArray[0];\n\n\n\n // Create stack for solving the problem\n Stack<String> solvingStack = new Stack<String>();\n\n for (int i = 0; i < rpnArray.length; i++) {\n // If it is a number, add to stack\n if (!operators.contains(rpnArray[i])) {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n else if (rpnArray[i].charAt(0) == '-' && rpnArray[i].length() > 1)\n {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n // Otherwise we do the math\n else\n {\n // Popping B first because of subtraction, division, and exponent\n double b = Double.parseDouble(solvingStack.pop());\n double a = Double.parseDouble(solvingStack.pop());\n int operator = operators.indexOf(rpnArray[i]);\n double result = 0;\n String resultStr = new String();\n switch (operator) {\n // Exponent\n case 0:\n result = Math.pow(a, b);\n break;\n\n // Multiplication\n case 1:\n result = (a * b);\n break;\n\n // Division\n case 2:\n if (b == 0) return \"Error: Cannot divide by zero\";\n result = (a / b);\n break;\n\n // Addition\n case 3:\n result = (a + b);\n break;\n\n // Subtraction\n case 4:\n result = (a - b);\n break;\n }\n resultStr += result;\n solvingStack.push(resultStr);\n }\n }\n\n\n //double answer = Double.parseDouble(solvingStack.pop());\n return solvingStack.pop();\n }",
"public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }",
"@Override\n\tpublic String toInfixNotation() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\t\t\treturn EMPTY + num;\n\t\t}\n\t\tcatch(NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\t\n\t\t\treturn OPEN_PAREN + left.toInfixNotation() + SPACE + getValue() \n\t\t\t\t\t+ SPACE + right.toInfixNotation() + CLOSED_PAREN;\n\t\t}\n\t}",
"public String infix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tinfix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }",
"Expression createExpression();",
"public String evaluate(ArrayList<String> expression)\n {\n Stack<String> Values = new Stack<String>(), Operations = new Stack<String>();\n\n for (int i = 0; i < expression.size(); i++)\n\t\t{\n\t\t\tif (expression.get(i).equals(\"(\"))\n Operations.push(expression.get(i));\n else if (expression.get(i).equals(\")\"))\n {\n while (Operations.peek().equals(\"(\"))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.pop();\n }\n else if (expression.get(i).equals(\"+\") || expression.get(i).equals(\"-\") || expression.get(i).equals(\"*\") || expression.get(i).equals(\"/\"))\n {\n while (!Operations.empty() && precedence(expression.get(i), Operations.peek()))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.push(expression.get(i));\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\tValues.push(expression.get(i));\n\t\t\t}\n }\n while (!Operations.empty())\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n return Values.pop();\n }",
"public double processPostfix(String postfix){\n char[] postfixArr = postfix.toCharArray(); //Convert string to Char Array\n\n //loop through the array, looking at each value\n for(int i = 0; i < postfixArr.length; i++){\n\n //If digit, push it into the stack\n if(Character.isDigit(postfixArr[i])){\n s.push(postfixArr[i]);\n }\n else{\n double d1 = convertToDbl(s.pop()); //convert to double\n double d2 = convertToDbl(s.pop());\n\n //switch to determine what operation should be performed - printed out for testing\n switch(postfixArr[i]){\n case '+':\n System.out.println(d2 + \" + \" + d1); s.push(d2+d1); System.out.println(\"= \" + (d2+d1)); break;\n case '-':\n System.out.println(d2 + \" - \" + d1); s.push(d2-d1); System.out.println(\"= \" + (d2-d1)); break;\n case '*':\n System.out.println(d2 + \" * \" + d1); s.push(d2 * d1); System.out.println(\"= \" + (d2*d1));break;\n case '/':\n System.out.println(d2 + \"/\" + d1); s.push(d2/d1); System.out.println(\"= \" + (d2/d1));break;\n case '^':\n System.out.println(d2 + \" ^ \" + d1); s.push(Math.pow(d2, d1)); System.out.println(\"= \" + (Math.pow(d2,d1))); break;\n default:\n System.out.println(\"ERROR IN CODE!\");\n }\n }\n\n\n }\n\n double result = convertToDbl(s.top()); //return the item at top of the stack (converted to a double)\n s.pop();\n return result;\n }",
"public static void main(String[] args) {\n String input = \"( ( 1 + sqrt ( 5 ) ) / 2 )\";\n Stack<String> ops = new Stack<String>();\n Stack<Double> vals = new Stack<Double>();\n String[] temps = input.split(\" \");\n for (String temp : temps) {\n\n if (temp.equals(\"(\")) ;\n else if (temp.equals(\"+\")) ops.push(temp);\n else if (temp.equals(\"-\")) ops.push(temp);\n else if (temp.equals(\"*\")) ops.push(temp);\n else if (temp.equals(\"/\")) ops.push(temp);\n else if (temp.equals(\"sqrt\")) ops.push(temp);\n else if (temp.equals(\")\")){\n String op = ops.pop();\n double v = vals.pop();\n if (op.equals(\"+\")) v = vals.pop() + v;\n else if (op.equals(\"-\")) v = vals.pop() - v;\n else if (op.equals(\"*\")) v = vals.pop() * v;\n else if (op.equals(\"/\")) v = vals.pop() / v;\n else if (op.equals(\"sqrt\")) v = Math.sqrt(v);\n vals.push(v);\n }else {\n vals.push(Double.parseDouble(temp));\n }\n }\n System.out.println(vals.pop());\n }",
"public TreeNode buildTree(int[] inorder, int[] postorder) {\n return buildTreeRecursive(inorder, 0, inorder.length, postorder, 0, postorder.length);\n }",
"public static ArrayList<FormulaTree> generateSubtrees (ArrayList<Predicate> predicateList, \n\t\t\tTrivialityTester trivial){\n\t\tArrayList<FormulaTree> subtrees = new ArrayList<FormulaTree>();\n\t\tOperator[] operators = {new And(), new Or(), new Implies(), new Iff(), new Not()}; \n\t\n\t\t\n\t\tint numPredicates = predicateList.size();\n\t\tPredicate leftPredicate, rightPredicate;\n\n\t\tfor (Operator o : operators){\n\t\t\tif (o instanceof And || o instanceof Or || o instanceof Iff){\n\t\t\t\t//upper triangle only\n\t\t\t\tfor (int i = 0;i < numPredicates-1; i++){\n\t\t\t\t\tfor (int j = i+1; j < numPredicates; j++){\n\t\t\t\t\t\tleftPredicate = predicateList.get(i);\n\t\t\t\t\t\trightPredicate = predicateList.get(j);\n\t\t\t\t\t\tFormulaTree subtree = new FormulaTree(o.getOperator(), new FormulaTree(leftPredicate), new FormulaTree(rightPredicate));\n\t\t\t\t\t\tif (!trivial.isTrivial(subtree)){\n\t\t\t\t\t\t\tsubtrees.add(subtree);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (o instanceof Implies){\n\t\t\t\t//upper and lower triangle\n\t\t\t\tfor (int i = 0; i < numPredicates; i++){\n\t\t\t\t\tfor (int j=0; j < numPredicates; j++){\n\t\t\t\t\t\tif (i==j){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make new subtree rooted with operator o and these two children\n\t\t\t\t\t\t//add to subtrees arraylist\n\t\t\t\t\t\tleftPredicate = predicateList.get(i);\n\t\t\t\t\t\trightPredicate = predicateList.get(j);\n\t\t\t\t\t\tFormulaTree subtree = new FormulaTree(new Implies(), new FormulaTree(leftPredicate), new FormulaTree(rightPredicate));\n\t\t\t\t\t\t\n\t\t\t\t\t\t//new\n\t\t\t\t\t\tif (trivial.predicateAlwaysFalse(rightPredicate)){\n\t\t\t\t\t\t\t//System.out.println(\"PREDICATE ALWAYS FALSE: \" + rightPredicate.outputName());\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!trivial.isTrivial(subtree)){\n\t\t\t\t\t\t\tsubtrees.add(subtree);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (o instanceof Not){\n\t\t\t\t//two node subtree, just (NOT) + (predicate)\n\t\t\t\tfor (int i = 0; i < numPredicates; i++){\n\t\t\t\t\trightPredicate = predicateList.get(i); //right child only\n\t\t\t\t\t//form new subtree rooted at NOT with a single child predicate on RIGHT, left child null\n\t\t\t\t\tFormulaTree subtree = new FormulaTree(new Not(), null, new FormulaTree(rightPredicate));\n\t\t\t\t\tsubtrees.add(subtree);\n\t\t\t\t}\n\t\t\t} \n\t\t} //end operators loop \n\t\treturn subtrees;\n\t}",
"private static String infixToPrefix(String expression)\r\n {\r\n String result = \"\";\r\n String reverse_expression = \"\";\r\n int expression_length = expression.length();\r\n Character current_char = ' ';\r\n\r\n //turns the expression around\r\n for(int index = expression_length - 1; index >= 0; index--)\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n case '{':\r\n current_char = '}';\r\n break;\r\n case '}':\r\n current_char = '{';\r\n break;\r\n case '[':\r\n current_char = ']';\r\n break;\r\n case ']':\r\n current_char = '[';\r\n break;\r\n case '(':\r\n current_char = ')';\r\n break;\r\n case ')':\r\n current_char = '(';\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n reverse_expression += current_char;\r\n }\r\n\r\n //gets the postfix expression of the reversed expression\r\n String postfix_expression = infixToPostfix(reverse_expression);\r\n expression_length = postfix_expression.length();\r\n\r\n //reverses the postfix expression of the reversed expression\r\n for(int index = expression_length - 1; index >= 0; index--)\r\n {\r\n result += postfix_expression.charAt(index);\r\n }\r\n\r\n return result;\r\n }",
"private Operation expression(Scope scope, Vector queue)\r\n {\r\n Operation root = expression1(scope, queue);\r\n\r\n if (assign.contains(nextSymbol))\r\n {\r\n Operation op = new Operation();\r\n\r\n op.left = root;\r\n\r\n op.operator = assignmentOperator();\r\n op.right = expression(scope, queue);\r\n\r\n root = op;\r\n }\r\n\r\n return root;\r\n }",
"public EvalPostfix(String postfix, PrintWriter pw)\r\n {\r\n this.pw = pw;\r\n numbers = new ObjectStack();\r\n }",
"public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }",
"private String infixToPostfixNoPrecedence(String infix) {\n\t\tString postfix = \"\";\n\t\tStack<Character> stack = new Stack<>();\n\n\t\tfor (int i = 0; i < infix.length(); i++) {\n\t\t\tchar currentChar = infix.charAt(i);\n\t\t\tif (currentChar == '+' || currentChar == '*') {\n\t\t\t\tif (stack.isEmpty()) {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else if (stack.peek() == '+' || stack.peek() == '*') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t}\n\t\t\t} else if (currentChar == '(') {\n\t\t\t\tstack.push(currentChar);\n\t\t\t} else if (currentChar == ')') {\n\n\t\t\t\twhile (stack.peek() != '(') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t}\n\n\t\t\t\tstack.pop();\n\n\t\t\t} else if (currentChar != ' ') {\n\t\t\t\tpostfix = postfix + currentChar;\n\t\t\t}\n\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tpostfix = postfix + stack.pop();\n\t\t}\n\n\t\treturn postfix;\n\t}",
"public TreeNode buildTree(int[] inorder, int[] postorder) {\n if(inorder.length == 0){\n return null;\n }\n TreeNode result = getRoot(inorder,postorder,0,inorder.length - 1,inorder.length-1);\n return result;\n }",
"public ExpressionTree()\n\t\t{\n\t root = null;\n\t\t}",
"public TreeNode buildTree(int[] inorder, int[] postorder) {\n if(inorder.length==0 || postorder.length==0)\n return null;\n return build(inorder, postorder, 0, inorder.length-1, 0, postorder.length-1);\n }",
"@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}",
"private static String getPostfix(String s) {\n\t\tif(s.length() == 0){\n\t\t\treturn null;\n\t\t}\n\t\tString[] expression = s.split(\" \");\n\t\tStack stack = new Stack();\n\t\tString result = null;\n\t\tfor(int i = 0; i<expression.length;i++){\n\t\t\tString temp = expression[i];\n\t\t\tif(temp.equals(\"+\") || temp.equals(\"-\") || temp.equals(\"*\") || temp.equals(\"/\") || temp.equals(\"%\")){\n\t\t\t\twhile(!stack.isEmpty() && hasHigherPriority(stack.top(),temp)){\n\t\t\t\t\tif(result == null){\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Expression is not infix\");\n\t\t\t\t\t}\n\t\t\t\t\tresult = result + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.push(temp);\n\t\t\t}else{\n\t\t\t\tif(result == null){\n\t\t\t\t\tresult = temp;\n\t\t\t\t}else{\n\t\t\t\t\tresult = result + temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile(!stack.isEmpty()){\n\t\t\tresult = result + stack.pop();\n\t\t}\n\t\treturn result;\n\t}",
"XExpr createXExpr();",
"private Digraph buildEpsilonTransitionsDigraph() {\n Digraph G = new Digraph(M + 1);\n Stack<Integer> ops = new Stack<Integer>();\n for (int i = 0; i < M; i++) {\n int lp = i; // lp - left parenthesis\n \n // left ( or |\n if (re[i] == '(' || re[i] == '|')\n ops.add(i);\n \n // right )\n else if (re[i] == ')') {\n int or = ops.pop();\n if (re[or] == '|') {\n lp = ops.pop();\n G.addEdge(lp, or + 1);\n G.addEdge(or, i);\n } else // re[or] == (\n lp = or; \n }\n \n // closure in ahead char\n if (i < M - 1 && re[i + 1] == '*') {\n G.addEdge(lp, i + 1);\n G.addEdge(i + 1, lp);\n }\n \n // add all the epsilon transition to the next states\n if (re[i] == '(' || re[i] == '*' || re[i] == ')')\n G.addEdge(i, i + 1);\n }\n return G;\n }",
"private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}",
"public abstract XPathExpression getExpression();",
"public ExpressionPart parseExpressions (String[] exp, QBParser parser) {\n\t\texp = fixArray(exp);\n\t//\tSystem.out.println(\"EXPS: \" + Arrays.toString(exp));\n\t\tif(exp[0].startsWith(\"if\")){\n\t\t\tif( (exp[0].length() > 2 && !Character.isLetterOrDigit( exp[0].charAt(2) )) || exp[0].length() == 2){\n\t\t\t\tString name = ExpressionPuller.pullIfThenElse(exp, parser.getCurrentCompilingNamespace());\n\t\t\t\texp = new String[]{name};\n\t\t\t}\n\t\t}\n\t\t\n//\t\tif(exp[0].equals(\"if\")){\n//\t\t\tint thenIdx = MArrays.indexOf(exp, \"then\");\n//\t\t\tString ifPart = MArrays.concat(exp, 1, thenIdx-1);\n//\t\t\t\n//\t\t\tint elseIdx = MArrays.indexOf(exp, \"else\");\n//\t\t\tString thenPart = MArrays.concat(exp, thenIdx+1, elseIdx-thenIdx-1);\n//\t\t\t\n//\t\t\tString elsePart = MArrays.concat(exp, elseIdx+1);\n//\t\t\t\n//\t\t\tExpressionPart ifExpPart = parseExpressions(ifPart);\n//\t\t\tExpressionPart thenExpPart = parseExpressions(thenPart);\n//\t\t\tExpressionPart elseExpPart = parseExpressions(elsePart);\n//\t\t\t\n//\t\t\tExpressionPart totalIf = ExpressionPart.makePrimaryExpressionPart(null, \"if\", new ExpressionPart[]{ifExpPart});\n//\t\t\tExpressionPart totalThen = ExpressionPart.makePrimaryExpressionPart(totalIf, \"then\", new ExpressionPart[]{thenExpPart});\n//\t\t\tExpressionPart total = ExpressionPart.makePrimaryExpressionPart(totalThen, \"else\", new ExpressionPart[]{elseExpPart});\n//\t\t\n//\t\t\treturn total;\n//\t\t}\n\t\t\n\n\t\t// Go though all of the operators in order from their respective order of operations.\n\t\tfor( String[] ops : operators() ){\n\t\t\t\n\t\t\tint idx = -1;\n\t\t\t// Some operators have the same precedence, so we need to deal with that\n\t\t\tfor( String op : ops ) {\n\t\t\t\tidx = Math.max(idx, MArrays.lastIndexOf(exp, op));\n\t\t\t}\n\t\t\t\n\t\t\t// if we found one of these opeartors, then we\n\t\t\t// need to deal with it.\n\t\t\tif( idx != -1 ){\n\t\t\t\t// get the function (thats easy, it is what we just found)\n\t\t\t\tString function = exp[idx];\n\t\t\t\t\n\t\t\t\t// get all stuff before and after this point\n\t\t\t\t// the first is the caller and the second is the\n\t\t\t\t// argument believe me it works because\n\t\t\t\t// 3 * 4 / 6 + 1 * 2 - 3 ^ 2 * 2 = (3 * 4 / 6 + 1 * 2) - (3 ^ 2 * 2)\n\t\t\t\tString[] before = Arrays.copyOfRange(exp, 0, idx);\n\t\t\t\tString[] after = Arrays.copyOfRange(exp, idx + 1, exp.length);\n\t\t\t\t\n\t\t\t\t// now, using recursion we make the expression parts out of them\n\t\t\t\tExpressionPart part1 = parseExpressions( before, parser );\n\t\t\t\tExpressionPart part2 = parseExpressions( after, parser );\n\t\t\t\t\n\t\t\t\tif(function.equals(\"->\")){\n\t\t\t\t\tExpressionPart tmp = part1;\n\t\t\t\t\tpart1 = part2;\n\t\t\t\t\tpart2 = tmp;\n\t\t\t\t}\n\t\t\t\t// now put the whole thing together, and you now have a mess\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, new ExpressionPart[]{part2} );\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// If there are no more \"Binary Functions\"\n\t\t// what is left must be grouped or it must be a function\n\t\tif( exp.length == 1 ){\n\t\t\tString str = exp[0];\n\t\t\tif( completelySurrounded(str) ){\n\t\t\t\tString middle = str.substring(1, str.length() - 1);\n\t\t\t\treturn parseExpressions(middle);\n\t\t\t}\n\t\t\t// This must then be a function\n\t\t\telse if(str.endsWith(\")\")){\n\t\t\t\t\n\t\t\t\t// this function will get the last index of a dot ('.') that is outside parenthesis\n\t\t\t\t// the dot is used to determine if the function is being called by an object\n\t\t\t\tint dotIdx = lastDotIndex(str);\n\t\t\t\t\n\t\t\t\t// now we find the index that the arguments start on\n\t\t\t\tint idx = str.indexOf('(',dotIdx);\n\t\t\t\t\n\t\t\t\t// check to make sure there is one.\n\t\t\t\tif( idx < 0 ){\n\t\t\t\t\tthrow new RuntimeException(\"Expected '('\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// from here it is pretty straight forward to get the function,\n\t\t\t\t// caller and parameters.\n\t\t\t\tString function = str.substring(0, idx);\n\t\t\t\tString args = str.substring(idx + 1, str.length() - 1);\n\t\t\t\tString caller = null;\n\t\t\t\t\n\t\t\t\t// if there is not dot, then there is no caller and the function is global\n\t\t\t\tif( dotIdx >= 0 ){\n\t\t\t\t\tcaller = function.substring( 0, dotIdx );\n\t\t\t\t\tfunction = function.substring( dotIdx + 1 );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// now use recursion to build the parts and make a new part.\n\t\t\t\tExpressionPart part1 = caller !=null ? parseExpressions(caller) : null;\n\t\t\t\tExpressionPart[] parts = parseParams(args);\n\t\t\t\t\n\t\t\t\treturn ExpressionPart.makePrimaryExpressionPart(part1, function, parts);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t// This is the base case, the very bottom of the ladder, this is where all\n\t\t\t\t// that is left is some entity that has no function.\n\t\t\t\treturn ExpressionPart.makeExpressionPart(exp[0]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new RuntimeException(\"Syntax Error\");\n\t}",
"public static String infixToPostfix(String regex) {\n String postfix = new String();\n\n Stack<Character> stack = new Stack<>();\n\n String formattedRegEx = formatRegEx(regex);\n\n for (Character c : formattedRegEx.toCharArray()) {\n switch (c) {\n case '(': {\n stack.push(c);\n break;\n }\n case ')': {\n while (!stack.peek().equals('(')) {\n postfix += stack.pop();\n }\n stack.pop();\n break;\n }\n default: {\n while (stack.size() > 0) {\n Character topChar = stack.peek();\n\n Integer topCharPrecedence = getPrecedence(topChar);\n Integer actualCharPrecedence = getPrecedence(c);\n\n if (topCharPrecedence >= actualCharPrecedence) {\n postfix += stack.pop();\n } else {\n break;\n }\n }\n stack.push(c);\n break;\n }\n }\n }\n while (stack.size() > 0) {\n postfix += stack.pop();\n }\n\n return postfix;\n }",
"public static Temp evalExpression(CommonTree tree){\n\t\t// leaf node, int/float/id\n\n\t\tif (tree.getChildCount() == 0){\n\t\t\tTemp temp = new Temp(temperaryNum++,tree.getType(),tree.getText());\n\t\t\tif (tree.getType() == LittleParser.INTLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREI\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse if(tree.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREF\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse{ // look up the variable in the symbol table to set type, use var_name instead of $Tx and recycle $Tx\n\t\t\t\ttemp.setType(allTables.lookupType(temp.getValue().trim()));\n\t\t\t\ttemp.setName(tree.getText());\n\t\t\t\ttemperaryNum--;\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\t\t// Not a leaf node, evaluate children expressions\n\t\telse{\n\t\t\t// test for function call\n\t\t\tif (tree.getType() == LittleParser.FUNC_CALL){\n\t\t\t\t// add IR for evaluating the function and return temperary for return value\n\t\t\t\t// after it has been popped off the stack\n\t\t\t\treturn evalFunction(tree);\n\t\t\t}\n\t\t\t//\t\t\tif (tree.getChild(0).getChildCount() == 0 && tree.getChild(1).getChildCount() == 0){\n\t\t\t//\t\t\t\tif ()\n\t\t\t//\t\t\t}\n\t\t\tTemp left = evalExpression((CommonTree) tree.getChild(0));\n\t\t\tTemp right = evalExpression((CommonTree) tree.getChild(1));\n\n\t\t\tTemp temp = new Temp(temperaryNum++,left.getType(), \"EXP\");\n\t\t\tif (tree.getText().contains(\"+\")){ // add\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t} //both parameters\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"-\")){ // subtract\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"*\")){ // multiply\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{ // divide\n\t\t\t\tif (right.getType() == LittleParser.INTLITERAL && left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (right.getType() == LittleParser.FLOATLITERAL || left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\n\t}",
"public final JavaliParser.expr_return expr() throws RecognitionException {\n\t\tJavaliParser.expr_return retval = new JavaliParser.expr_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tParserRuleReturnScope leftExpr =null;\n\t\tParserRuleReturnScope op =null;\n\t\tParserRuleReturnScope rightExpr =null;\n\n\t\tRewriteRuleSubtreeStream stream_simpleExpr=new RewriteRuleSubtreeStream(adaptor,\"rule simpleExpr\");\n\t\tRewriteRuleSubtreeStream stream_compOp=new RewriteRuleSubtreeStream(adaptor,\"rule compOp\");\n\n\t\ttry {\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:427:2: (leftExpr= simpleExpr ( -> $leftExpr|op= compOp rightExpr= simpleExpr -> ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr) ) )\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:427:4: leftExpr= simpleExpr ( -> $leftExpr|op= compOp rightExpr= simpleExpr -> ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr) )\n\t\t\t{\n\t\t\tpushFollow(FOLLOW_simpleExpr_in_expr1531);\n\t\t\tleftExpr=simpleExpr();\n\t\t\tstate._fsp--;\n\n\t\t\tstream_simpleExpr.add(leftExpr.getTree());\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:428:3: ( -> $leftExpr|op= compOp rightExpr= simpleExpr -> ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr) )\n\t\t\tint alt25=2;\n\t\t\tint LA25_0 = input.LA(1);\n\t\t\tif ( (LA25_0==70||LA25_0==73||LA25_0==77) ) {\n\t\t\t\talt25=1;\n\t\t\t}\n\t\t\telse if ( (LA25_0==66||(LA25_0 >= 78 && LA25_0 <= 79)||(LA25_0 >= 81 && LA25_0 <= 83)) ) {\n\t\t\t\talt25=2;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 25, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\n\t\t\tswitch (alt25) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:429:4: \n\t\t\t\t\t{\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: leftExpr\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: leftExpr, retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_leftExpr=new RewriteRuleSubtreeStream(adaptor,\"rule leftExpr\",leftExpr!=null?leftExpr.getTree():null);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (Object)adaptor.nil();\n\t\t\t\t\t// 429:4: -> $leftExpr\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, stream_leftExpr.nextTree());\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:430:5: op= compOp rightExpr= simpleExpr\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_compOp_in_expr1552);\n\t\t\t\t\top=compOp();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_compOp.add(op.getTree());\n\t\t\t\t\tpushFollow(FOLLOW_simpleExpr_in_expr1556);\n\t\t\t\t\trightExpr=simpleExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_simpleExpr.add(rightExpr.getTree());\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: compOp, leftExpr, rightExpr\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: leftExpr, retval, rightExpr\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_leftExpr=new RewriteRuleSubtreeStream(adaptor,\"rule leftExpr\",leftExpr!=null?leftExpr.getTree():null);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_rightExpr=new RewriteRuleSubtreeStream(adaptor,\"rule rightExpr\",rightExpr!=null?rightExpr.getTree():null);\n\n\t\t\t\t\troot_0 = (Object)adaptor.nil();\n\t\t\t\t\t// 431:4: -> ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr)\n\t\t\t\t\t{\n\t\t\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:431:7: ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tObject root_1 = (Object)adaptor.nil();\n\t\t\t\t\t\troot_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(BinaryOp, (op!=null?(op.start):null), \"BinaryOp\"), root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_leftExpr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_compOp.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_rightExpr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tretval.tree = (Object)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n\t\t}\n\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\tthrow re;\n\t\t}\n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}",
"public TreeNode buildTree(int[] preorder, int[] inorder) {\n return buildTreeHelper(preorder, 0, preorder.length - 1, inorder, 0, inorder.length - 1);\n }",
"private Program02(String fileName) {\n BinaryTree bt = new BinaryTree();\n Stack expression = new Stack();\n\n try {\n Scanner scanner = new Scanner(new File(fileName));\n\n while (scanner.hasNext()) {\n String curChar = scanner.next();\n expression.push(curChar);\n }\n\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n Node tree = createLevelOrder(expression, bt.getRoot(), 0, expression.length());\n\n // construct a binary tree to store parsed math expression\n bt.setRoot(tree);\n printInfo(bt);\n }",
"public static ExpressionTree makeExpression(TreeNode root,\n Field resultField) {\n return new ExpressionTree(root, resultField);\n }",
"public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}",
"private Type traverseTree(Node parsedTree) {\n Expression exp = new Expression(Type.EMPTY, Type.EMPTY, Connector.empty); // Creation of a new expression with empty fields\n\n\t\t// Determines the type from left to right of the given expression\n for (Node child : parsedTree.getChildren()) {\n \texp = evalExpressionAndSetLeft(addChildToExpression(child, exp));\n }\n return exp.getLeftExpressionType();\n }"
] | [
"0.68413687",
"0.6784324",
"0.66353583",
"0.650671",
"0.64756125",
"0.6443418",
"0.63814193",
"0.6379499",
"0.6212491",
"0.6205301",
"0.62032866",
"0.6178324",
"0.61563253",
"0.6060706",
"0.60486627",
"0.60483503",
"0.60451293",
"0.6044278",
"0.60390157",
"0.5992153",
"0.5979661",
"0.5979538",
"0.59404093",
"0.5932785",
"0.5900442",
"0.58760566",
"0.5848007",
"0.5804879",
"0.57931286",
"0.57601595",
"0.57030714",
"0.56902224",
"0.5681139",
"0.56776726",
"0.56507057",
"0.56459695",
"0.56316155",
"0.56314415",
"0.5628715",
"0.56242704",
"0.56238025",
"0.55971825",
"0.55971634",
"0.55886185",
"0.55785275",
"0.55745316",
"0.55712414",
"0.55703825",
"0.5511121",
"0.550834",
"0.55018646",
"0.5496739",
"0.5496718",
"0.5487209",
"0.5471965",
"0.5461706",
"0.54573405",
"0.5446148",
"0.54429203",
"0.543578",
"0.5429557",
"0.5427208",
"0.53657687",
"0.53642476",
"0.5343002",
"0.5330599",
"0.5316792",
"0.5312794",
"0.53096366",
"0.5309194",
"0.53039616",
"0.5297183",
"0.5287952",
"0.5254187",
"0.52462584",
"0.52386564",
"0.52274466",
"0.522318",
"0.5220548",
"0.52186096",
"0.5213544",
"0.520468",
"0.5202781",
"0.5199008",
"0.5188653",
"0.51823825",
"0.51807475",
"0.5176542",
"0.5155086",
"0.5148745",
"0.5148218",
"0.5147287",
"0.51414686",
"0.51258194",
"0.51135164",
"0.5108123",
"0.5104113",
"0.5094023",
"0.5090692",
"0.5089489"
] | 0.7097671 | 0 |
end method getNodes() method to pop two operands and an operator, determine the function of the operator and use the Node interface to call the OperandNode and OperatorNode classes to create an expression tree and build an infix expression | public void getNodes(int i) throws RuntimeException, DivideByZero{
// define local variables
String operand1 = operandStk.pop();
String operand2 = operandStk.pop();
// pop the operand stack twice using Node interface to declare an instance
Node value1 = new OperandNode(operand1);
Node value2 = new OperandNode(operand2);
// define local variable to hold operator
String operator = operatorStk.pop();
// invoke instances of TreeNode class
TreeNode operatorNode;
// use switch selection statement to determine the operator and
// the associated class to use
switch (operator) {
case "*":
// pass * operator
operatorNode = new MulOperator();
break;
case "/":
// use selection statement to determine if divisor is "0"
if (operand1.equals("0")) {
// throw checked exception
throw new DivideByZero();
} else {
// pass / operator
operatorNode = new DivOperator();
break;
}
case "+":
// pass + operator
operatorNode = new AddOperator();
break;
case "-":
// pass - operator
operatorNode = new SubOperator();
break;
default:
// throw RuntimeException for fault found
throw new RuntimeException();
}
// create an instance of the OperatorNode to pass data
// The variables are in order they come in the postfix expression
tree = new OperatorNode(value1, value2, operatorNode);
// push String of the created fragment of the infix
// expression to the operand stack
operandStk.push(tree.infixExpression());
// call the buildString() method to push current operator to AssemblyCode class
assemblyCode.buildAssemblyCode(operatorNode.operator(), i);
// call pushStack() method in AssemblyCode class to push register value
assemblyCode.pushStack(assemblyCode.getRegister(i));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}",
"@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }",
"private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}",
"protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }",
"public String parsePrefixToPostfix(String exp) throws SyntaxError {\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n //parser accepts user input into exp\n \tScanner parser = new Scanner(exp);\n int element;\n String operator;\n String entity;\n String postfixExpression = \"\"; \n String firstOperand, secondOperand;\n int result = 0;\n \n //tokenize prefix string and set up 2 stacks\n Stack<String> operandStack = new Stack<String>();\n Stack<String> reverseOperatorStack = new Stack<String>();\n //while statement to push onto the reversal stack if there are more tokens\n while (parser.hasNext()) {\n entity = parser.next();\n // unless there is a space\n if (!entity.equals(\" \"))\n reverseOperatorStack.push(entity);\n }\n try { \n \t// while statement to pop to reversal stack if it is not empty\n \twhile (!reverseOperatorStack.isEmpty()) {\n //peek to retrieve the token at the top of the stack\n \t\tentity = reverseOperatorStack.peek();\n \t\t//pop to take the token off the stack\n\t reverseOperatorStack.pop();\n\t \n\t // if it is an operand\n\t if (Character.isDigit(entity.charAt(0))) {\n\t \t//push token onto the operand stack\n\t \toperandStack.push(entity);\n\t }\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t \t\t|| entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop first operand off the stack\n\t \tfirstOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop second operand off the stack\n\t secondOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the 2 operands followed by the operator \n\t String miniExpression = firstOperand + \" \" + secondOperand + \" \" + entity;\n\t //push the string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n \t}\n \t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n throw new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the postfix expression off the stack\n postfixExpression = operandStack.peek();\n operandStack.pop();\n //return postfix - holding the converted expression\n return postfixExpression; \n }",
"public static String infixToPostfix(String infix) throws PostFixException{\n\t\t//Create a new stack object to hold operators from infix expression\n\t\tStack<String> operatorStack = new Stack<String>();\n\t\tString postfix = \"\";\n\t\tString curToken = \"\";\n\t\tScanner getToken = new Scanner(infix);\n\t\t//holds the previous token type as a string\n\t\tString previousTokenType = \"first token\";\n\t\t\n\t\t//Iterate over all tokens in expression\n\t\twhile(getToken.hasNext()){\n\t\t\tcurToken = getToken.next();\n\t\t\t\n\t\t\t//if the token is an operand (meaning it is an integer), add to postfix expression\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\t//if the token sequence is valid, add the current token to the psotfix expression\n\t\t\t\tif(checkValidTokenSequence(\"operand\", previousTokenType)){\n\t\t\t\t\tpostfix += (curToken + \" \");\n\t\t\t\t\tpreviousTokenType = \"operand\";\n\t\t\t\t}\n\t\t\t\telse{ //otherwise throw an exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is a left bracket check that the token sequence is valid and push the\n\t\t\t//token on the stack\n\t\t\telse if(curToken.equals(\"(\")){\n\t\t\t\tif(checkValidTokenSequence(\"left bracket\", previousTokenType)){\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"left bracket\";\n\t\t\t\t}\n\t\t\t\telse{//if the token sequence is invalid throw and exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the token is an operator, check sequence validity\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\t//if the token is an operator and it is the first token, the expression is invalid\n\t\t\t\tif(previousTokenType.equals(\"first token\")){\n\t\t\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t\t\t}\n\t\t\t\t//if the token sequence is valid, add all operator on stack with lower or equal precedence to\n\t\t\t\t//to the prefix expression\n\t\t\t\tif(checkValidTokenSequence(\"operator\", previousTokenType)){\n\t\t\t\t\twhile(!operatorStack.empty() && checkPrecedence(operatorStack.peek(),curToken)){\n\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t}\n\t\t\t\t\t//push the current token on the operator stack\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"operator\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//if the token sequence is invalid, throw exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is a right bracket, check that token sequence is valid\n\t\t\telse if(curToken.equals(\")\")){\n\t\t\t\t\n\t\t\t\t//if the token sequence is valid, add all operators on operator stack \n\t\t\t\t//to the prefix expression until the matching left bracket is reached\n\t\t\t\tif(checkValidTokenSequence(\"right bracket\", previousTokenType)){\n\t\t\t\t\tboolean hasMatchingBracket = false;\n\t\t\t\t\t\n\t\t\t\t\twhile(!operatorStack.empty()){\n\t\t\t\t\t\tif(!operatorStack.peek().equals(\"(\")){\n\t\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\toperatorStack.pop();\n\t\t\t\t\t\t\thasMatchingBracket = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If the right bracket does not have a matching left bracket, throw an exception\n\t\t\t\t\tif(!hasMatchingBracket){\n\t\t\t\t\t\tthrow new PostFixException(\"Missing left bracket\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpreviousTokenType = \"right bracket\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If the token sequence is invalid throw an exception\n\t\t\t\telse{\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is not a valid token, throw an exception\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check to see if the last token was an operator, if so throw an exception\n\t\tif(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t}\n\t\t\n\t\t//while there operator stack is not empty, pop whatever is in the stack and append\n\t\twhile(!operatorStack.empty()){\n\t\t\t//if there is a bracket left in the stack, then the infix expression is invalid\n\t\t\tif(operatorStack.peek().equals(\"(\") || operatorStack.peek().equals(\")\")){\n\t\t\t\tthrow new PostFixException(\"Bracket mismatch\");\n\t\t\t}\n\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//return the postfix expression\n\t\treturn postfix;\n\t}",
"public int eval(String expression) {\n String token;\n // The 3rd argument is true to indicate that the delimiters should be used\n // as tokens, too. \n this.tokenizer = new StringTokenizer(expression, DELIMITERS, true);\n\n //initialized with # operator, used as bogus to compare priorities and detect end of operatorStack.\n operatorStack.push(new PoundOperator());\n\n //Checks whether there are more tokens to be pushed in stacks\n while (this.tokenizer.hasMoreTokens()) {\n // filter out spaces\n if (!(token = this.tokenizer.nextToken()).equals(\" \")) {\n // check if token is an operand\n if (Operand.check(token)) {\n operandStack.push(new Operand(token));\n\n } else {\n if (!Operator.check(token)) {\n System.out.println(\"*****invalid token******\");\n System.exit(1);\n }\n\n //Gets a newOperator it matches from hashmap.\n Operator newOperator = Operator.getToken(token);\n\n //Processes only, when there is greater priority in stack and there are no '('\n while (operatorStack.peek().priority() >= newOperator.priority() && !newOperator.equals(Operator.getToken(\"(\"))) {\n\n //If the token read is ), then there is already '(' which is inserted in the operator stack.\n if (token.equals(\")\")) {\n //Perform until, the '(' is on top of the stack.\n while (!operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n\n }\n\n //If '(' found on top, pop and break, to continue to read more takens\n if (operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n operatorStack.pop();\n break;\n }\n\n } \n //if ')' not found, it means either its in '(' or there are no parenthesis\n else {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n }\n }\n //Pushes the operator, when the operator!=')'\n if (!newOperator.equals(Operator.getToken(\")\"))) {\n operatorStack.push(newOperator);\n }\n }\n }\n }\n // No more tokens to be read. All the tokens are in stacks, gets processed.\n if (!this.tokenizer.hasMoreTokens()) {\n //Keeps processing, until it reaches #\n while (operatorStack.size() != 1) {\n Operator oldOpr = operatorStack.pop();\n //Checks if there are operand left to be used,\n if (!operandStack.empty()) {\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n } else {\n System.exit(1);\n }\n }\n }\n // Returns, the final result\n return operandStack.pop().getValue();\n }",
"public String infixToPostfix(String expression) {\n\t\tStack oPSt = new Stack();\n\t\tStack Sign = new Stack();\n\t\tStringBuilder PFE = new StringBuilder();\n\t\tString n = \"\";\n\t\t// flag -> marks adding new operator to the stack with or without removing the\n\t\t// previous one\n\t\tboolean flag = true;\n\t\t//negflag -> if (true) previous character was operator thus next(-) is negative sign\n\t\t//\t\t\t if (false) previous character was operand thus next (-) is operator\n\t\tboolean negflag = true; \n\t\tint counter = 0; // expresses number of open parenthesis at the moment and if it matches the\n\t\t// counter inside Sign Stack it means that the Sign was changed at this Counter\n\t\tString open = \"(\", closed = \")\";\n\t\tfor (int i = 0; i < expression.length(); i++) {\n\t\t\tString x = expression.substring(i, i + 1);\n\t\t\tStringBuilder longIntegers = new StringBuilder();\n\t\t\tif (x.equals(\"-\") && !expression.substring(i + 1, i + 2).equals(\" \")) {\n\t\t\t\tif(negflag) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.push(counter);\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint counter2 = 0;\n\t\t\t\twhile (counter2 + i < expression.length()\n\t\t\t\t\t\t&& (isChar(expression.substring(i + counter2, i + counter2 + 1))\n\t\t\t\t\t\t\t\t|| isNum(expression.substring(i + counter2, i + counter2 + 1)))\n\t\t\t\t\t\t&& isNotOperator(expression.substring(i + counter2, i + counter2 + 1))) {\n\t\t\t\t\tlongIntegers.append(expression.substring(i + counter2, i + 1 + counter2));\n\t\t\t\t\tcounter2++;\n\t\t\t\t}\n\t\t\t\ti = i + counter2;\n\t\t\t\tif (counter2 > 0) {\n\t\t\t\t\ti--;\n\t\t\t\t\tx = longIntegers.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// end of taking the expression\n\n\t\t\t// testing the expression\n\n\t\t\t// if the char. is an open parenthesis\n\t\t\tif (x.equals(open)) {\n\t\t\t\toPSt.push(x);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t// if the char is a close parenthesis\n\t\t\telse if (x.equals(closed)) {\n\t\t\t\tif (counter == 0)\n\t\t\t\t\tthrow new RuntimeException(\"Invalid Input: Redundant \\\")\\\" \");\n\t\t\t\twhile (!((String) oPSt.peek()).equals(open)) {\n\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t}\n\t\t\t\toPSt.pop();\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\t// checks if char was an operator\n\t\t\telse if (x.equals(\"*\") || x.equals(\"+\") || x.equals(\"/\") || x.equals(\"-\")) {\n\t\t\t\tnegflag = true;\n\t\t\t\twhile (!oPSt.isEmpty() && !((String) oPSt.peek()).equals(\"(\")) {\n\t\t\t\t\t// see which character has higher precedence\n\t\t\t\t\tflag = highOrLow(((String) oPSt.peek()).charAt(0), x.charAt(0));\n\t\t\t\t\tif (flag)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse {\n\t\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toPSt.push(x);\n\t\t\t}\n\t\t\t// if the char is space then check if the previous was space to avoid having two\n\t\t\t// spaces after each other\n\t\t\t// if the char was a new space/wasn't a space then it's definitely a\n\t\t\t// number/variable and will be pushed to PFE\n\t\t\telse if (!x.equals(\" \") || (PFE.length() > 0 && (char) PFE.charAt(PFE.length() - 1) != ' ')) {\n\t\t\t\tPFE.append(\" \");\n\t\t\t\tif (!x.equals(\" \")) {\n\t\t\t\t\tnegflag = false;\n\t\t\t\t\tPFE.append(n + x);\n\t\t\t}else \n\t\t\t\t\tPFE.append(x);\n\t\t\t\t\n\t\t\t}\n\t\t\twhile (!Sign.isEmpty() && counter == (int) Sign.peek()) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.pop();\n\t\t\t}\n\t\t}\n\t\t// add all the operator remaining in stack to the PFE except if '(' was found\n\t\t// then there's an runtime exception\n\t\twhile (!oPSt.isEmpty()) {\n\t\t\tif (((String) oPSt.peek()).equals(\"(\"))\n\t\t\t\tthrow new RuntimeException(\"Invalid Input : Redundant \\\"(\\\" \");\n\t\t\tPFE.append(\" \");\n\t\t\tPFE.append(oPSt.pop());\n\t\t}\n\t\t// replace any two consecutive spaces with only one\n\t\tint i = 0;\n\t\twhile (PFE.charAt(i) == ' ' && i < PFE.length() - 1) {\n\t\t\tPFE.deleteCharAt(i);\n\t\t}\n\t\tfor (i = 0; i < PFE.length() - 1; i++) {\n\t\t\tif (PFE.charAt(i) == ' ' && PFE.charAt(i + 1) == ' ') {\n\t\t\t\tPFE.deleteCharAt(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\treturn PFE.toString();\n\n\t}",
"private static String infixToPostfix(String expression)\r\n {\r\n String result = \"\";\r\n char current_char = ' ';\r\n int index = 0;\r\n StackInterface<Character> operand_stack = new ArrayStack<>();\r\n switch(stack_type)\r\n {\r\n case(\"vector\"):\r\n operand_stack = new VectorStack<>();\r\n break;\r\n \r\n case(\"linked\"):\r\n operand_stack = new LinkedListStack<>();\r\n break;\r\n }\r\n\r\n //iterates through every character and puts them in the stack or the result accordingly\r\n while(index < expression.length())\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n //checks if the character is an operand and if so checks if it should pop the previous input or not\r\n case '+': case '-': case '*': case '/':\r\n if(!operand_stack.isEmpty())\r\n {\r\n while(!operand_stack.isEmpty() && getOperandImportance(current_char) <= getOperandImportance(operand_stack.peek()))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.push(current_char);\r\n }\r\n else\r\n {\r\n operand_stack.push(current_char);\r\n }\r\n break;\r\n\r\n //exponents are always pushed onto the stack\r\n case '^':\r\n operand_stack.push(current_char);\r\n break;\r\n\r\n //if an open delimiter is there, we add it to the stack\r\n case '(': case '{': case '[':\r\n operand_stack.push(current_char);\r\n break;\r\n \r\n //if the delimiter is closing we pop until we find the open equivalent\r\n case ')': case '}': case ']':\r\n while(operand_stack.peek() != delimiterEquivalent(current_char))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.pop();\r\n break;\r\n\r\n case ' ':\r\n break;\r\n\r\n default: \r\n result += current_char;\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n //pops everything left in the stack to the result at the end\r\n while(!operand_stack.isEmpty())\r\n {\r\n result += operand_stack.pop();\r\n }\r\n\r\n return result;\r\n }",
"public static String convertInfixToPostfix(String infixExpression) {\r\n //Initializing final return string\r\n String postfix = \"\";\r\n //String Array of all elements\r\n String[] expElements = infixExpression.split(\" \");\r\n //New String Array for the numbers\r\n String[] operands = new String[infixExpression.length()];\r\n //New expressions for operators\r\n Expressions operators = new Expressions();\r\n //New stack for operators\r\n Stack operatorStack = new Stack();\r\n \r\n //Trackers for parentheses\r\n int openParenthesis = 0;\r\n int closedParenthesis = 0;\r\n \r\n //Iterate through for length of array of all expressions\r\n for(int i = 0; i < expElements.length; i++) {\r\n //If operator than push to stack\r\n if(expElements[i].equals(\"*\")||expElements[i].equals(\"/\")\r\n ||expElements[i].equals(\"+\")||expElements[i].equals(\"-\")) {\r\n operatorStack.push(new Expressions(expElements[i]));\r\n }\r\n //if open parenthesis add to count\r\n else if(expElements[i].equals(\"(\")) {\r\n openParenthesis++;\r\n }\r\n //if closed parenthesis add to count and pop operator\r\n else if(expElements[i].equals(\")\")) {\r\n closedParenthesis++;\r\n postfix += \" \" + operatorStack.pop();\r\n }\r\n //otherwise it is an integer, add it to array of operands\r\n else {\r\n operands[i] = expElements[i];\r\n postfix += \" \" + operands[i];\r\n }\r\n \r\n }\r\n //Error detection for not enough matching parentheses.\r\n if(openParenthesis!=closedParenthesis){\r\n postfix = \"Parenthesis not equal error.\";\r\n }\r\n //return final expression in postfix notation, delimited by spaces\r\n return postfix; \r\n }",
"public final SymbolNode getOperator() { return this.operator; }",
"private void topEval(Stack<Operator> pOperatorStack, Stack<Operand> pOperandStack) {\n Operand right = pOperandStack.pop();\n Operator operator = pOperatorStack.pop();\n if (operator instanceof UnaryOperator) {\n pOperandStack.push(((UnaryOperator)operator).evaluate(right));\n } else {\n Operand left = pOperandStack.pop();\n pOperandStack.push(((BinaryOperator)operator).evaluate(left, right));\n }\n }",
"private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }",
"private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }",
"@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }",
"@Override\n public void popOperands(Stack<ExpNode> stack) {\n this.expr = stack.pop();\n }",
"private IMathExpr parseOperator(String expr, MathBinOper operator,\r\n boolean processLeft2Right) throws InvalidMathExprException {\r\n int startPos, endPos, step;\r\n \r\n if (processLeft2Right) { // Parse expression forwards.\r\n startPos = 0;\r\n endPos = expr.length();\r\n step = 1;\r\n } else { // Parse expression backwards.\r\n startPos = expr.length() - 1;\r\n endPos = -1; // Going backwards, even 0 index counts.\r\n step = -1;\r\n }\r\n \r\n int i = startPos;\r\n while (i != endPos) {\r\n if (this.isOutsideOfBracket(expr, i)) {\r\n char c = expr.charAt(i);\r\n \r\n if (c == operator.getSign()) {\r\n IMathExpr left = new MathExpr(expr.substring(0, i));\r\n IMathExpr right = new MathExpr(expr.substring(i + 1,\r\n expr.length()));\r\n \r\n return MathBinOper.buildBinaryOper(operator, left, right);\r\n }\r\n }\r\n \r\n i += step;\r\n }\r\n \r\n return null;\r\n }",
"public String convertPostfixToInfix(String postfixstring)\n {\n//implementing stack\n Stack<String> s = new Stack<>();\n//iterates over the postfix expression\n for (int i = 0; i < postfixstring.length(); i++)\n {\n//reading a character at a time\n char ch = postfixstring.charAt(i);\n//inside the if-statement we have called the user-defined function that checks whether the character is operator or not\n if (isOperator(ch))\n {\n String b = s.pop();\n String a = s.pop();\n//push the character (operator) into stack in between the string a and b\n s.push(\"(\" + a + ch + b + \")\");\n }\n else\n//push character into the stack\n s.push(\"\" + ch);\n }\n//pop character from the stack and returns the same\n return s.pop();\n }",
"static String infixToPostfix(String infix) {\n final String ops = \"-+/*^\";\n \n StringBuilder sb = new StringBuilder();\n Stack<Integer> s = new Stack<>();\n \n for (String token : infix.split(\"\\\\s\")) {\n if (token.isEmpty())\n continue;\n char c = token.charAt(0);\n int idx = ops.indexOf(c);\n \n // check for operator\n if (idx != -1) {\n if (s.isEmpty())\n s.push(idx);\n \n else {\n while (!s.isEmpty()) {\n int prec2 = s.peek() / 2;\n int prec1 = idx / 2;\n if (prec2 > prec1 || (prec2 == prec1 && c != '^'))\n sb.append(ops.charAt(s.pop())).append(' ');\n else break;\n }\n s.push(idx);\n }\n } \n else if (c == '(') {\n s.push(-2); // -2 stands for '('\n } \n else if (c == ')') {\n // until '(' on stack, pop operators.\n while (s.peek() != -2)\n sb.append(ops.charAt(s.pop())).append(' ');\n s.pop();\n }\n else {\n sb.append(token).append(' ');\n }\n }\n while (!s.isEmpty())\n sb.append(ops.charAt(s.pop())).append(' ');\n return sb.toString();\n }",
"private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }",
"protected Evaluable parseSubExpression() throws ParsingException {\n Evaluable sub = parseTerm();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \"+-\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseTerm();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }",
"public String processInfix(char[] input) {\n String result = \"\"; //Initialize the string. This will be the postfix formatted input.\n\n for (int i = 0; i < input.length; i++) {\n\n //If it is a digit it is sent straight to the result\n if (Character.isDigit(input[i])) {\n result += input[i];\n }\n\n //If it is an open bracket it is pushed into the stack.\n else if (input[i] == '(') {\n s.push(input[i]);\n }\n\n //If it is a closed bracket, all items in the stack are popped until an open bracket is found.\n //Both brackets are then discarded\n else if (input[i] == ')') {\n\n while (!s.isEmpty() && (char)s.top() != '(') {\n result += (char)s.pop();\n }\n\n if (!s.isEmpty() && (char)s.top() != '(') {\n System.out.println(\"Invalid Expression. A '(' character must be followed by a ')' in the Expression.\");\n } else {\n s.pop(); //get rid of ( from the eq.\n }\n }\n\n //Else it must be an operand...\n else {\n //loop checks:\n // 1. that the stack is not empty and\n // 2. that the current token is less or equal in priority to the one on the top of the stack\n // If it both are true then the operator is sent to the result\n while(!s.isEmpty() && getPriority(input[i]) <= getPriority((char)s.top())){\n result += (char)s.pop();\n }\n s.push(input[i]);\n }\n }\n\n //Pop the remainder of the stack to the result\n while(!s.isEmpty()){\n result += (char)s.pop();\n }\n\n return result;\n }",
"private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}",
"protected void operation(String op) {\n \tint value;\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tint second = stack.pop();\n \t // handles when only one value in stack\n \t\tif (stack.empty()) {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tstack.push(second);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tcurrent = second *-1;\n \t\t\t\tstack.push(current);\n \t\t\t\tshow(stack.peek());\n \t\t\t\tcurrent = 0;\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t\telse {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t}\n \t // handles the other cases\n \t\telse {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tvalue = second + stack.pop();\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tvalue = stack.pop() - second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tvalue = stack.pop() * second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tvalue = stack.pop() / second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t}\n \t}\n }",
"@Override\r\n\tpublic String infixToPostfix(String expression) {\r\n\t\tStringBuilder pf = new StringBuilder(); // the postfix expression \r\n\t\texpression = removespaces(expression); \r\n\t\texpression = CheckInputValidation(expression);\r\n\t\texpression = DummyZero(expression);\r\n\t\tString e = expression;\r\n\t\tfor(i1 = 0 ; i1 < e.length() ;i1++) { \r\n\t\t\t//take operand and append it to the string\r\n\t\t\tif(Character.isDigit(e.charAt(i1)) || Character.isLetter(e.charAt(i1))) { //check if the character is letter or number\r\n\t\t\t\tint j =0; //counter to know how many digits in the following operand \r\n\t\t\t\twhile (i1 != e.length() &&e.charAt(i1) != '+' &&e.charAt(i1) != '-' && e.charAt(i1) != '/' && e.charAt(i1) != '*'&&e.charAt(i1) != ')'&&e.charAt(i1) != '(' ) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\ti1++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j>0) {\r\n\t\t\t\t\tString s = e.substring(i1-j, i1);\r\n\t\t\t\t\tpf.append( s ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\ti1--;\r\n\t\t\t\tif(i1 == e.length()-1 ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)=='(') {\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i1)=='-'||e.charAt(i1)=='/'||e.charAt(i1)=='+'||e.charAt(i1)=='*') {\r\n\t\t\t\twhile(!(opt.isEmpty()) && higherpres(e.charAt(i1)) && (char)opt.peek() !='(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)==')') {\r\n\t\t\t\twhile((char)opt.peek() != '(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(!(opt.isEmpty()) ) {\r\n\t\t\tif((char)opt.peek() != '(') {\r\n\t\t\t\tpf.append(opt.pop()).append(' ');}\r\n\t\t\telse if((char)opt.peek()=='(') {\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pf.toString();\r\n\t\t\r\n\t}",
"public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }",
"private void processOperator(String operator){\n if (numStack.size() <2){\n System.out.println(\"Stack underflow.\");\n }\n else if (dividingByZero(operator)){\n System.out.println(\"Divide by 0.\"); \n }\n else{\n int num1 = numStack.pop();\n int num2 = numStack.pop();\n int result = performCalculation(num1, num2, operator);\n numStack.push(result);\n }\n\n }",
"public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}",
"static String infixToPostfix(String txt) \n\t{\n\t\tString postfix = new String(\"\");\n Stack<Character> stack = new Stack<>();\n \n for (int i = 0; i<txt.length(); ++i)\n {\n char c = txt.charAt(i);\n \n // Ist das eingescannte Zeichen c ein Operand, addiere es zur Ausgabe hinzu\n if (Character.isLetterOrDigit(c)) \n {\n \tpostfix += c;\n }\n \n \n // Ist das eingescannte Zeichen c eine offene Klammer, lege es auf den Stapel\n else if (c == '(') \n {\n \tstack.push(c);\n }\n \n // Ist das eingescannte Zeichen c eine schließende Klammer, pop es aus dem Stapel bis eine öffnende Klammer erscheint\n else if (c == ')')\n {\n while (!stack.isEmpty() && stack.peek() != '(') \n {\n \tpostfix += stack.pop();\n stack.pop();\n } \n }\n else //falls es ein Operator ist\n {\n while (!stack.isEmpty() && precedence(c) < precedence(stack.peek()))\n {\n postfix += stack.pop();\n }\n stack.push(c);\n }\n }\n \n // pop all the operators from the stack\n while (!stack.isEmpty())\n {\n postfix += stack.pop();\n }\n return postfix;\n\n\t}",
"public void evalPostfix(String postfix){\r\n char ch;\r\n\r\n for(int i = 0; i < postfix.length() ; i++) //parses postfix string and performs operations based on operator found\r\n {\r\n ch = postfix.charAt(i);\r\n \r\n if(ch == '+')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x+y);\r\n \r\n }\r\n \r\n \r\n else if(ch == '-')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x-y);\r\n \r\n }\r\n \r\n else if(ch == '*')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x*y);\r\n \r\n }\r\n \r\n else if(ch == '/')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x/y);\r\n \r\n }\r\n \r\n else if(ch == '^')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push((int)Math.pow(x,y));\r\n \r\n } \r\n \r\n else if(ch >= '0' || ch <= '9')\r\n {\r\n numbers.push((int)(ch - '0'));\r\n }\r\n }\r\n }",
"@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}",
"public Polynomial postfixEval(List<Token> postfixtokenList){\n ArrayDeque<Token> stack = new ArrayDeque<Token>(); \n\n Polynomial result = new Polynomial(); \n for (Token token : postfixtokenList){\n if (token instanceof Polynomial)\n stack.push(token); \n else if (token instanceof Operator){\n Polynomial op2 = (Polynomial) stack.pop(); \n Polynomial op1 = (Polynomial) stack.pop(); \n result = ((Operator) token).operate(op1, op2);\n if (result == null) //for division by 0\n return null;\n stack.push(result); \n }\n }\n result = (Polynomial) stack.pop(); \n if (storingVar != ' '){\n memory.put(storingVar, result); \n storingVar = ' ';\n }\n return result; \n }",
"public static int evalPostfix(String postfix) throws PostFixException{\n\t\t//MyStack instance to store results of evaluation\n\t\tStack<Integer> result = new Stack<Integer>();\n\t\t\n\t\t//Scanner instance to scan tokens\n\t\tScanner getToken = new Scanner(postfix);\n\t\t\n\t\twhile(getToken.hasNext()){\n\t\t\t\n\t\t\tString curToken = getToken.next();\n\t\t\t//if the token is a valid operator, push it onto stack as a Double object\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\tresult.push(Integer.parseInt(curToken));\n\t\t\t}\n\t\t\t\n\t\t\t//if the current token is an operator\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\ttry{\n\t\t\t\t\t//Get the operands from the stack\n\t\t\t\t\tint operand2 = result.pop().intValue();\n\t\t\t\t\tint operand1 = result.pop().intValue();\n\t\t\t\t\t\n\t\t\t\t\t//find the operator and perform the arithmetic\n\t\t\t\t\tswitch(curToken){\n\t\t\t\t\t\tcase \"+\": result.push(operand1 + operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"-\": result.push(operand1 - operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"*\": result.push(operand1 * operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"/\": result.push(operand1 / operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tdefault: throw new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//if the stack is empty when attempting to pop, throw a PostFixException\n\t\t\t\tcatch(EmptyStackException e){\n\t\t\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t\t\t}\n\t\t\t\t//If there is an ArithMetic Exception, rethrow it\n\t\t\t\tcatch(ArithmeticException e){\n\t\t\t\t\tthrow new ArithmeticException(\"Divide by 0\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is not an operand or operator it is invalid,\n\t\t\t//throw a PostFixException\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//if the result is not in the stack\n\t\tif(result.empty()){\n\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t}\n\t\t\n\t\tint resultNum = result.pop().intValue();\n\t\t\n\t\t//If there are still operands in the stack\n\t\tif(!result.empty()){\n\t\t\tthrow new PostFixException(\"Too many operands\");\n\t\t}\n\t\t\n\t\treturn resultNum;\n\t}",
"private Operation expression2(Scope scope, Vector queue)\r\n {\r\n Operation root = expression3(scope, queue);\r\n\r\n if (infix.contains(nextSymbol))\r\n root = expression2Rest(root, scope, queue);\r\n\r\n return root;\r\n }",
"public static String convertInfixToPostfix(String infix) throws InvalidNotationFormatException {\n\t\tNotationQueue<String> postfix = new NotationQueue<String>(infix.length());\n\t\tNotationStack<String> eval = new NotationStack<String>(infix.length());\n\t\tchar[] expr = infix.toCharArray();\n\t\tfor (int i = 0; i < expr.length; i++) {\n\t\t\tif (Character.isDigit(expr[i])) {\n\t\t\t\ttry {\n\t\t\t\t\tpostfix.enqueue(String.valueOf(expr[i]));\n\t\t\t\t}catch(QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i] == '(') {\n\t\t\t\ttry {\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]=='+'||expr[i]=='-'||expr[i]=='*'||expr[i]=='/') {\n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(' && prec(expr[i]) <= prec(eval.top().charAt(0))){\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]==')') { \n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(') {\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\tif(eval.size()==0){\n\t\t\t\t\t\tthrow new InvalidNotationFormatException();\n\t\t\t\t\t}else {\n\t\t\t\t\t\teval.pop();\n\t\t\t\t\t}\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\twhile(!eval.isEmpty()) {\n\t\t\t\tString pop1 = eval.pop();\n\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t}\n\t\t}catch (StackUnderflowException e) {\n\t\t\te.printStackTrace();\n\t\t}catch (QueueOverflowException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn postfix.toString();\n\t}",
"public String parsePostfixToPrefix(String exp) throws SyntaxError {\n \t// throws error message if there is no expression entered\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n Scanner parser = new Scanner(exp);\n String entity;\n //tokenize the string containing the postfix expression\n Stack<String> operandStack = new Stack<String>();\n String firstOperand, secondOperand;\n // try-catch to validate data has been entered\n try {\n\t \t//while there are more tokens\n \t\twhile (parser.hasNext()) {\n\t entity = parser.next();\n\t // if it is a space, skip it\n\t if (entity.equals(\" \"));\n\t // if it is a operand, push it onto the operand stack\n\t if (Character.isDigit(entity.charAt(0)))\n\t operandStack.push(entity);\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t || entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop operand 1 off the operand stack\n\t \tsecondOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop operand 2 off the operand stack\n\t firstOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the operator followed by 2 operands\n\t String miniExpression = entity + \" \" + firstOperand + \" \" + secondOperand;\n\t //push the miniExpression string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n\t }\n\t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n \tthrow new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the prefix expression off the operand stack\n String prefix = operandStack.peek();\n operandStack.pop();\n //return prefix - holding the converted expression\n return prefix;\n }",
"public String convertInfix (String exp) throws NumberFormatException \n {\n \n initStack.clear();\n queue.clear();\n finalStack.clear();\n postfixExp = \"\";\n \n for (int i = 0; i<exp.length(); ++i){\n char c = exp.charAt(i); \n if(i > 0){\n char previous = exp.charAt(i-1);\n if((isNumber(c) && isNumber(previous)) || isBalanced(exp) == false){\n throw new NumberFormatException(\"**Invalid Expression**\");\n }\n }\n \n if (Precedence(c) > 0)\n {\n while(initStack.isEmpty() == false && Precedence((char) initStack.top()) >= Precedence(c))\n {\n queue.insertBack(initStack.pop());\n }\n initStack.push(c);\n }\n else if (c ==')')\n {\n char x = (char) initStack.pop();\n while(x!= '(')\n {\n queue.insertBack(x);\n x = (char) initStack.pop();\n }\n }\n else if (c == '(')\n {\n initStack.push(c);\n }\n else\n {\n queue.insertBack(c);\n }\n }\n while (!initStack.isEmpty()) \n {\n queue.insertBack(initStack.pop());\n }\n postfixExp = queue.postFixString();\n postfixExp = postfixExp.replaceAll(\"\\\\s\",\"\");\n return postfixExp;\n }",
"public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}",
"@Test\n\tpublic void testInfix(){\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tassertEquals(exp.textRepresentation(), \"1 + 2\");\n\t\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\texp.accept(v);\n\t\tassertEquals(\"Infix test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"Infix test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"Infix test3 fail\", v.decCount, 0);\n\t\tassertEquals(\"Infix test4 fail\", v.seqCount, 0);\n\t\tassertEquals(\"Infix test5 fail\", v.assignCount, 0);\n\t\tassertEquals(\"Infix test6 fail\", v.varCount, 0);\n\t\tassertEquals(\"Infix test7 fail\", v.strCount, 0);\n\t\tassertEquals(\"Infix test8 fail\", v.prefixCount, 0);\n\n\t}",
"public Code visitOperatorNode(ExpNode.OperatorNode node) {\n beginGen(\"Operator\");\n Code code;\n ExpNode args = node.getArg();\n switch (node.getOp()) {\n case ADD_OP:\n code = args.genCode(this);\n code.generateOp(Operation.ADD);\n break;\n case SUB_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n code.generateOp(Operation.ADD);\n break;\n case MUL_OP:\n code = args.genCode(this);\n code.generateOp(Operation.MPY);\n break;\n case DIV_OP:\n code = args.genCode(this);\n code.generateOp(Operation.DIV);\n break;\n case EQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n break;\n case LESS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESS);\n break;\n case NEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n code.genBoolNot();\n break;\n case LEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESSEQ);\n break;\n case GREATER_OP:\n /* Generate argument values in reverse order and use LESS */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESS);\n break;\n case GEQUALS_OP:\n /* Generate argument values in reverse order and use LESSEQ */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESSEQ);\n break;\n case NEG_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n break;\n default:\n errors.fatal(\"PL0 Internal error: Unknown operator\",\n node.getLocation());\n code = null;\n }\n endGen(\"Operator\");\n return code;\n }",
"private CustomQueue<String> evaluatePostFix(CustomQueue<String>postfix){\r\n CustomStack<String> numberStack = new CustomStack();\r\n CustomQueue<String> result = new CustomQueue();\r\n \r\n while (postfix.isEmpty() == false){\r\n String value = postfix.remove();\r\n if (isOperator(value)){\r\n //First popped value should be on the right hand side of the operator\r\n double val2 = Double.parseDouble(numberStack.pop());\r\n //Second popped value should be on the left hand side of the operator\r\n double val1 = Double.parseDouble(numberStack.pop());\r\n String operation_result = calculate(val1, val2, value);\r\n numberStack.push(operation_result);\r\n }\r\n else{\r\n //It should be a number\r\n numberStack.push(value);\r\n }\r\n }\r\n \r\n if (numberStack.empty())\r\n result.add(\"0\");\r\n else\r\n result.add(numberStack.pop());\r\n \r\n return result;\r\n }",
"public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}",
"public List<Token> InfixToPostfixConverter(List<Token> tokenList){\n ArrayDeque<Token> stack = new ArrayDeque<Token>(); \n List<Token> output = new ArrayList<Token>(); \n\n for (Token token : tokenList){\n if (token instanceof Polynomial)\n output.add(token); \n else if (token instanceof OpenParenthesis)\n stack.push(token); \n else if (token instanceof CloseParenthesis){\n while (!stack.isEmpty() && !(stack.peek() instanceof OpenParenthesis))\n output.add(stack.pop()); \n if (stack.isEmpty()){ \n throw new PolyFormatException(\"Mismatched right parenthesis\");\n }\n stack.pop(); // throw away left parenthesis\n }\n else if (token instanceof Operator){\n Operator tokenOperator = (Operator) token; // cast Token to Operator\n Operator peekStackOp = new AddOperator();\n if (!(stack.peek() instanceof OpenParenthesis))\n peekStackOp = (Operator) stack.peek(); // cast Token to Operator\n while (!stack.isEmpty() && !(stack.peek() instanceof OpenParenthesis)\n && (peekStackOp.getPriority() >= tokenOperator.getPriority()))\n output.add(stack.pop()); \n stack.push(token);\n }\n }\n // empty out the stack at the end \n\n while (!stack.isEmpty()){\n Token token = stack.pop(); \n if (token instanceof OpenParenthesis){\n throw new PolyFormatException(\"Mismatched left parenthesis\");\n }\n output.add(token); \n }\n\n return output;\n }",
"public String convertPostfix(String string){\r\n\r\n \t\tStack<Character> operatorStack = new Stack<Character>();\r\n\r\n \t\tStringBuffer postfix = new StringBuffer();\r\n\r\n \t\tCharacter topOperator;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar c = string.charAt(i);\r\n\r\n\t\t\tif (Character.isDigit(c)) {\r\n\t\t\t\tpostfix.append(c);\r\n\r\n\r\n\r\n\t\t\t\t// fixing bug to test next character before adding a space\r\n\t\t\t\t// if next character is not a digit add a space\r\n\t\t\t\tif (i + 1 >= string.length() || !Character.isDigit(string.charAt(i + 1)))\r\n\t\t\t\t\tpostfix.append(\" \");\r\n\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\t\r\n \t\t\t\tswitch(c){\r\n \t\t\t\t /////// add a minus to stack without a space\r\n \t\t\t\t\tcase'!':\r\n \t\t\t\t boolean Debug = true;\r\n\r\n\t\t\t\t\tif (Debug)\r\n\t\t\t\t\t\tSystem.out.println(\"Bugs\");\r\n\r\n\t\t\t\t\tpostfix.append('-');\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n \t\t\t\t\tbreak;\r\n \r\n \t\t\t\t\t\r\n \t\t\t\tcase '^':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '.':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '+':\r\n \t\t\t\tcase '-':\r\n \t\t\t\tcase '*':\r\n \t\t\t\tcase '/':\r\n \t\t\t\t\twhile (!operatorStack.isEmpty () &&\r\n \t\t\t\t\t\t\tgetPrecedence(c) <= getPrecedence(operatorStack.peek()))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tpostfix.append(operatorStack.peek() + \" \");\r\n \t\t\t\t\t\toperatorStack.pop();\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t}\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase '(':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase ')': \r\n\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\twhile ((topOperator != '(') && !operatorStack.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpostfix.append(topOperator);\r\n\t\t\t\t\t\tpostfix.append(\" \");\r\n\t\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\t}// end while\r\n\r\n\t\t\t\t\t/* if(!operatorStack.isEmpty() && operatorStack.peek().equals('(')){\r\n\t\t operatorStack.pop(); // pop/remove left parenthesis \r\n\t\t }*/\r\n\t\t\t\t\tbreak;\r\n \t\t\t\tdefault:\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} \r\n\t\t/*\r\n\t\t * popping off any final operators\r\n\t\t */\r\n \t\t\twhile (!operatorStack.isEmpty())\r\n \t\t\t{\r\n \t\t\t\ttopOperator = operatorStack.pop();\r\n \t\t\t\tpostfix.append(topOperator + \" \");\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\treturn postfix.toString();\r\n\r\n \t\t}",
"protected void operation(String operator){\n if (this.tail<2){\n this.arr[tail++] = this.value;\n this.arr[tail++] = operator;\n } else{\n if (this.peek() != \")\"){\n this.arr[this.tail++] = this.value;\n }\n this.arr[this.tail++] = operator;\n }\n this.value=\"\"; // reset tracking variables\n this.decimalUsed = false;\n }",
"public String transformInfixToPostfix(String input) {\n\n List<String> outputQueue = new LinkedList<>();\n\n Stack<Operation> operationStack = new Stack<>();\n final String[] splitedEquation = input.split(\" \");\n for (String token : splitedEquation) {\n if (isOperator(token)) {\n OperatorParser operatorParser = new OperatorParser(outputQueue, operationStack,\n token).invoke();\n outputQueue = operatorParser.getOutputQueue();\n operationStack = operatorParser.getOperationStack();\n } else {\n outputQueue = addImmutable(outputQueue, token);\n }\n }\n\n outputQueue = addOperationsToOutputQueue(outputQueue, operationStack);\n\n return Stream.of(outputQueue)\n .collect(Collectors.joining(\" \"));\n }",
"public void buildTree() throws RuntimeException, DivideByZero {\r\n // define local variable to count number of times an operator \r\n // is pushed into it's associated stack. This will be use to \r\n // count register values\r\n int i = 0;\r\n\r\n // split postfix expression enterend into the textbox into tokens using \r\n // StringTokenizer. Delimeters are used so that different inputs \r\n // can be parsed without spaces being necessary \r\n StringTokenizer token = new StringTokenizer(inputExpression, \" */+-\", true);\r\n\r\n // while loop to build tree out of the postfix expression\r\n while (token.hasMoreTokens()) {\r\n // get the next token in series\r\n String nextItem = token.nextToken();\r\n\r\n // use selection statements to determine if the next token\r\n // in the String is an operand, operator, or unknown\r\n if (nextItem.matches(\"[0-9]+\")) {\r\n // push operand to associated stack\r\n operandStk.push(nextItem);\r\n \r\n // push operand to AssemblyCode class\r\n assemblyCode.pushStack(nextItem);\r\n\r\n } else if (nextItem.equals(\"*\") || nextItem.equals(\"/\")\r\n || nextItem.equals(\"+\") || nextItem.equals(\"-\")) {\r\n // push current operator to operators stack\r\n operatorStk.push(nextItem);\r\n // call the getNodes() method to perform operation\r\n getNodes(i);\r\n // count each time an operator is pushed so registers can be counted\r\n i++;\r\n } else if (!nextItem.equals(\" \")){ \r\n // set class variable to equal invalid character\r\n invalidToken = nextItem; \r\n // throw exception if illegal operator or operand is parsed\r\n throw new RuntimeException();\r\n }\r\n } // end while loop\r\n }",
"@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}",
"public void visit(Operator operator);",
"private static String evaluate(ArrayList<String> operators, ArrayList<String> operands) {\n\n /* Check for valid input. There should be one more operand than operator. */\n if (operands.size() != operators.size()+1)\n return \"Invalid Input\";\n\n String current;\n int value;\n int numMultiply = 0;\n int numAdd = 0;\n int currentOperator = 0;\n\n /* Get the number of multiplications in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"*\"))\n numMultiply++;\n }\n\n /* Get the number of addition and subtraction in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"-\") || operators.get(i).equals(\"+\"))\n numAdd++;\n }\n\n /* Evaluate multiplications first, from left to right. */\n while (numMultiply > 0){\n\n current = operators.get(currentOperator);\n if (current.equals(\"*\")) {\n\n /* When multiplication is found in the operators, get the associative operands from the operands list.\n Associative operands are found in the operands list at indexes current operator and current operator + 1.\n */\n value = Integer.parseInt(operands.get(currentOperator)) * Integer.parseInt(operands.get(currentOperator+1));\n\n /* Remove the operands and the operator since they have been evaluated and add the evaluated answer back in the operands. */\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n\n numMultiply--;\n }\n else\n currentOperator++;\n }\n\n currentOperator = 0;\n\n /* Next evaluate the addition and subtraction, from left to right. */\n while (numAdd > 0){\n current = operators.get(currentOperator);\n if (current.equals(\"+\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) + Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n\n else if (current.equals(\"-\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) - Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n else\n currentOperator++;\n }\n\n /* When all the operations have been evaluated, the final answer will be in the first element of the operands list. */\n return operands.get(0);\n }",
"public abstract Deque<Operand> getOperands();",
"private int eval(ExpressionNodes root)\n\t {\n\t \tif (root.right == null && root.left == null) \n\t \t{\n\t \t\t\tint leaf = Integer.parseInt(root.data);\n\t \t\t\treturn leaf; \n\t \t}\n\t \t\n\t \t// if the node is an operator // \n\t \telse \n\t \t{\n\t \t\t\tint op1 = eval(root.left); \n\t \t\t\tint op2 = eval(root.right);\n\t \n\t \t\n\t\t\t \tString operator = root.data; // initialize operator string \n\t\t\t \tint n = 0; // initialize the integer that will be returned \n\t\t\t \t\n\t\t\t \t// switch case to conduct for the different operators \n\t\t\t \tswitch(operator) \n\t\t\t \t{\n\t\t\t\t case \"+\":\n\t\t\t\t \tn = op1 + op2; \n\t\t\t\t \tbreak;\n\t\t\t\t \t\n\t\t\t\t case \"-\":\n\t\t\t\t n = op1 - op2; \n\t\t\t\t break;\n\t\t\t\t \n\t\t\t\t case \"*\":\n\t\t\t\t n = op1 * op2; \n\t\t\t\t break;\n\t\t\t\t \n\t\t\t\t case \"/\":\n\t\t\t\t n = op1 / op2; \n\t\t\t\t break;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \treturn n; \n\t \t}\n\t\t\t\n\t }",
"private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }",
"private StringBuilder getOperand() {\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\treturn firstNumber;\r\n\t\t} else {\r\n\t\t\treturn secondNumber;\r\n\t\t}\r\n\t}",
"public static int evaluate(Math impl, String[] postfix) throws StackOverflowError, MalformedPostfixException {\n\n // a stack for implementing the evaluation\n Stack<Integer> stack = new Stack<Integer>();\n\n try {\n \n for (int i = 0; i < postfix.length; i++) {\n\n if (postfix[i].length() == 1 && !Character.isDigit(postfix[i].charAt(0))) {\n\n // if the first character of the element is not a digit then we \n // assume it is an operator\n\n String operator = postfix[i];\n\t\t\n if (operator.equals(\"<\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.lshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\">\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.rshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"+\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.add(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"-\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.sub(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"*\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.mul(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"/\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.div(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"^\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.pow(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"!\")) {\n int num = stack.pop();\n int result = impl.fac(num);\n stack.add(result);\n } // if\n\n } else {\n\n // otherwise we assume it is an operand and add it to the stack\n stack.add(Integer.parseInt(postfix[i]));\n\n } // if\n\n } // for\n\n } catch (Exception e) {\n \n // propogate as a malformed postfix exception\n throw new MalformedPostfixException(postfix);\n \n } // try\n \n // if the stack size is not 1, then the expression is malformed\n if (stack.size() != 1) {\n throw new MalformedPostfixException(postfix);\n } // if\n\n // the only element left in the stack will be the result of the evaluation\n return stack.pop();\n\n }",
"private Operation expression(Scope scope, Vector queue)\r\n {\r\n Operation root = expression1(scope, queue);\r\n\r\n if (assign.contains(nextSymbol))\r\n {\r\n Operation op = new Operation();\r\n\r\n op.left = root;\r\n\r\n op.operator = assignmentOperator();\r\n op.right = expression(scope, queue);\r\n\r\n root = op;\r\n }\r\n\r\n return root;\r\n }",
"public static String evaluate( String expr ) \n {\n\tString[] arr = expr.split(\"\\\\s+\");\n\tLLStack<String> nums = new LLStack<String>();\n\tLLStack<String> noClose = new LLStack<String>();\n\tint op = 0;\n\n\tfor(String i : arr){ \n\t if(i.equals(\")\")){ //when you reach the closing parenthesis\n\t\tString top = noClose.pop(); //start going through this part of the expression\n\t\tnums.push(i); //add ( to stack for unload\n\t\t\n\t\twhile(!top.equals(\"(\")){ //until you reach the (, where the expression ends\n\t\t\t \n\t\t if(top.equals(\"+\")) op = 1;\n\t\t else if(top.equals(\"-\")) op = 2;\n\t\t else if(top.equals(\"*\")) op = 3;\n\n\t\t else nums.push(top); //if it's not an operand\n\n\t\t top = noClose.pop();\n\t\t}\n\n\t\tnoClose.push(unload(op, nums));\n\t }\n\t \n\t else noClose.push(i); //pushed into a stack of what's in this ()\n \n\t}//end of for loop \n \n\treturn noClose.peek();\n }",
"@Override\n protected HardwareNode visit(BinaryExpressionASTNode node) throws Exception {\n var lnode = visit(node.getLeft());\n var rnode = visit(node.getRight());\n\n HardwareExpression finalexpr = null;\n String op = node.getOperator().getAsString();\n switch (op) {\n case \"+\":\n finalexpr = new AdditionExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"-\":\n finalexpr = new SubtractionExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"*\":\n finalexpr = new MultiplicationExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"<<\":\n finalexpr = new LeftShiftExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"&\":\n finalexpr = new BitWiseAndExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n case \"==\":\n finalexpr = new ComparisonExpression((HardwareExpression) lnode, (HardwareExpression) rnode);\n break;\n default:\n // finalexpr = new UnimplementedExpression((HardwareExpression) lnode, (HardwareExpression) rnode, op);\n throw new UnimplementedExpressionException(node.getAsString());\n }\n\n return new ParenthesisExpression(finalexpr);\n }",
"private void infix(ExpressionNodes root, StringBuilder sb)\n\t {\t\n\t \t\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tinfix(root.left, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t \t\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tinfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t }",
"public String getExpression() {\r\n return tree.infixExpression();\r\n }",
"@Override\n\tpublic void VisitBinaryNode(BinaryOperatorNode Node) {\n\n\t}",
"public static void main(String[] args) {\n\t\tPostFix aux,courant, racine;\r\n\t\t\r\n\t\t sc = new Scanner(System.in);\r\n\t\t System.out.println(\"Entrer l'expression postfixée--->\");\r\n\t\t ArrayList<String> list ; \r\n\t\t String PostEntre = sc.nextLine();\r\n\t\t \r\n\t\t list = new ArrayList<>(Arrays.asList(PostEntre.split(\" \")));\r\n\t\t \r\n\t\t ArrayDeque<PostFix> pil = new ArrayDeque<PostFix>();\r\n\t\t for (String s : list){\r\n\t\t\t courant = new PostFix(s);\r\n\t\t\t if (isOperator(s)){\r\n\t\t\t\t aux = pil.pop();\r\n\t\t\t\t courant.setfilsgauche(pil.pop());\r\n\t\t\t\t courant.setfilsdroit(aux);\r\n\t\t\t }\r\n\t\t\t pil.push(courant);\r\n\t\t\t \r\n\t\t }\r\n\t\t racine = pil.pop();\r\n\t\t System.out.println(\"L'arbre est : \" );\r\n\t\t System.out.println(racine + \"\\n\" );\r\n\t\t // racine.Afficher(racine);\r\n\t\t \r\n\t\t //----------------------------to prefix------------------------\r\n\t\t String s1,s2,sor;\r\n\t\t \r\n\t\t ArrayDeque<String> operst = new ArrayDeque<String>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t operst.push(n);\r\n\t\t\t else{\r\n\t\t\t\ts2 = operst.pop();\r\n\t\t\t \ts1 = operst.pop();\r\n\t\t\t \tsor = n +\" \"+ s1 +\" \"+ s2;\r\n\t\t\t operst.push(sor);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"L'expression prefixee donne: \");\r\n\t\t System.out.println(operst.pop()+\"\\n\");\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\t\t \r\n\t\t \r\n\t\t //-----------------------------evaluation-----------------------\r\n\t\t Double oper1, oper2,result;\r\n\t\t ArrayDeque<Double> abc = new ArrayDeque<Double>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t abc.push(Double.valueOf(n));\t\t\t\r\n\t\t\t else{\r\n\t\t\t\t oper2 = abc.pop();\t\t\t \t\r\n\t\t\t\t oper1 = abc.pop();\r\n\t\t\t \tresult = operate(oper1,oper2,n);\t\t\t \r\n\t\t\t \t\tabc.push(result);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"l'evaluation donne: \");\r\n\t\t System.out.println(abc.pop());\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\r\n\t}",
"private boolean postFixEvalution(char operator) throws ArithmeticException{\n //Pre: Validar que el stack no este vacio y que los operandos sean numeros.\n //Post: Realizar la operacion indicada\n try{\n if(!stack.empty()){\n //Se obtienen los dos operandos mas recientes del stack.\n Integer op2 = stack.pop();\n Integer op1 = stack.pop();\n\n //Se determina la operacion por hacer.\n if(op1 != null && op2 != null){\n switch (operator){\n case '+':\n stack.push(op1 + op2);\n break;\n case '-':\n stack.push(op1 - op2);\n break;\n case '*':\n stack.push(op1 * op2);\n break;\n case '/':\n stack.push(op1 / op2);\n break;\n }\n return true;\n }\n else\n return false;\n }\n else{\n return false;\n }\n }\n catch (ArithmeticException e){\n String ex = \"Error: Division por 0\";\n throw new ArithmeticException(ex);\n }\n }",
"public Node Infix2BT(String infix) {\r\n char[] a = infix.toCharArray();\r\n String[] tempb = new String[a.length];\r\n int arraysize = 0;\r\n for (int i = 0; i < a.length - 1; i++) {\r\n tempb[i] = infix.subSequence(i, i + 1).toString();\r\n int tempcount = i;\r\n if (tempb[i].equals(\"\"+\"\") == false && tempb[i].equals(\"\"-\"\") == false && tempb[i].equals(\"\"*\"\") == false && tempb[i].equals(\"\"/\"\") == false && tempb[i].equals(\"\"(\"\") == false && tempb[i].equals(\"\")\"\") == false) {\r\n for (int j = i + 1; j < a.length - 1; j++) {\r\n String tempbb = infix.subSequence(j, j + 1).toString();\r\n if (tempbb.equals(\"\"+\"\") == false && tempbb.equals(\"\"-\"\") == false && tempbb.equals(\"\"*\"\") == false && tempbb.equals(\"\"/\"\") == false && tempbb.equals(\"\"(\"\") == false && tempbb.equals(\"\")\"\") == false) {\r\n tempcount = j;\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n if (tempcount != i) {\r\n tempb[i] = infix.subSequence(i, tempcount + 1).toString();\r\n i = tempcount;\r\n }\r\n }\r\n arraysize++;\r\n }\r\n int idx = 0;\r\n b = new String[arraysize];\r\n for (int i = 0; i < tempb.length; i++) {\r\n if (tempb[i] != null) {\r\n b[idx] = tempb[i];\r\n System.out.print(b[idx]);\r\n idx++;\r\n }\r\n }\r\n \r\n root = new Node(null, null, null);\r\n //若為(1+(1+1))的形式\r\n Stack<String> stack = new Stack<String>();\r\n if (b[2].equals(\"\"+\"\") || b[2].equals(\"\"-\"\") || b[2].equals(\"\"*\"\") || b[2].equals(\"\"/\"\")) {\r\n root.setValue(b[2]);\r\n Node temp = new Node(null, null, b[1]);\r\n root.setLeft(temp);\r\n int checknum = 0;\r\n Node connectnode = new Node(null, null, null);\r\n if ((b.length - 1 - 3) >= 3) {\r\n for (int i = 3; i < b.length; i++) {\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setRight(connectnode);\r\n } else {\r\n temp = new Node(null, null, b[3]);\r\n root.setRight(temp);\r\n }\r\n } //若為((1+1)+1)的形式\r\n else if (b[b.length- 2].equals(\"\"+\"\") || b[b.length - 2].equals(\"\"-\"\") || b[b.length - 2].equals(\"\"*\"\") || b[b.length - 2].equals(\"\"/\"\")) {\r\n root.setValue(b[b.length - 2]);\r\n Node temp = new Node(null, null, b[b.length - 1]);\r\n root.setRight(temp);\r\n int checknum = 0;\r\n Node connectnode = new Node(null, null, null);\r\n for (int i = 0; i < b.length - 2; i++) {\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setLeft(connectnode);\r\n }//若為((1+1)+(1+1))的形式\r\n else {\r\n int rootposition = 0;\r\n for (int i = 0; i < b.length; i++) {\r\n if (b[i].equals(\"\")\"\") || b[i + 2].equals(\"\"(\"\")) {\r\n rootposition = i + 1;\r\n break;\r\n }\r\n }\r\n root.setValue(b[rootposition]);\r\n int checknum = 0;\r\n Node connectnode = new Node(null, null, null);\r\n for (int i = 0; i < rootposition; i++) { //先連接root左邊\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setLeft(connectnode);\r\n checknum = 0;\r\n for (int i = rootposition + 1; i < b.length; i++) { //再連接root右邊\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setRight(connectnode);\r\n }\r\n\r\n return root;\r\n }\r\n\r\n private void Prefixtraversal(Node x, Queue<Node> q) {\r\n if (x == null) {\r\n return;\r\n }\r\n q.enqueue(x);\r\n Prefixtraversal(x.getLeft(), q);\r\n Prefixtraversal(x.getRight(), q);\r\n }\r\n\r\n public Node[] PrintPrefix() {\r\n if (this.root == null) {\r\n System.out.println(\"\"NullPointerException\"\");\r\n return null;\r\n }\r\n Queue<Node> q = new Queue<Node>();\r\n Prefixtraversal(this.root, q);\r\n \r\n Node[] prefix = new Node[(b.length + 2) / 2];\r\n for (int i = 0; i < prefix.length; i++) {\r\n prefix[i] = q.dequeue();\r\n // System.out.println(prefix[i].getValue());\r\n }\r\n return prefix;\r\n }\r\n\r\n private void Postfixtraversal(Node x, Queue<Node> q) {\r\n if (x == null) {\r\n return;\r\n }\r\n Postfixtraversal(x.getLeft(), q);\r\n Postfixtraversal(x.getRight(), q);\r\n q.enqueue(x);\r\n }\r\n\r\n public Node[] PrintPostfix() {\r\n if (this.root == null) {\r\n System.out.println(\"\"NullPointerException\"\");\r\n return null;\r\n }\r\n Queue<Node> q = new Queue<Node>();\r\n Postfixtraversal(this.root, q);\r\n Node[] postfix = new Node[(b.length + 2) / 2];\r\n for (int i = 0; i < postfix.length; i++) {\r\n postfix[i] = q.dequeue();\r\n }\r\n return postfix;\r\n }\r\n\r\n public double Evaluation() {\r\n if (this.root == null) {\r\n System.out.println(\"\"NullPointerException\"\");\r\n return 0.0;\r\n }\r\n Node[] c = this.PrintPostfix();\r\n Stack<Double> stack = new Stack<Double>();\r\n for (int i = 0; i < c.length; i++) {\r\n if (c[i].getValue().equals(\"\"+\"\") == false && c[i].getValue().equals(\"\"-\"\") == false && c[i].getValue().equals(\"\"*\"\") == false && c[i].getValue().equals(\"\"/\"\") == false) {\r\n stack.push(Double.valueOf(c[i].getValue()));\r\n } else {\r\n double num2 = 0.0;\r\n double num1 = 0.0;\r\n switch (c[i].getValue()) {\r\n case \"\"+\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 + num2);\r\n break;\r\n case \"\"-\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 - num2);\r\n break;\r\n case \"\"*\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 * num2);\r\n break;\r\n case \"\"/\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 / num2);\r\n break;\r\n }\r\n }\r\n\r\n }\r\n double answer = stack.pop();\r\n return answer;\r\n }\r\n\r\n public static void main(String[] args) {\r\n// Expression b = new Expression();\r\n// //Node a = b.Infix2BT(\"\"(4+(((4*2)/2)/3))\"\");\r\n// // Node a = b.Infix2BT(\"\"(12+12)\"\");\r\n// Node a = b.Infix2BT(\"\"((1+1)+(1+1))\"\");\r\n// Node[] c = b.PrintPrefix();\r\n// for (int i = 0; i < c.length; i++) {\r\n// System.out.print(c[i].getValue());\r\n// }\r\n// System.out.println(\"\" \"\");\r\n// c = b.PrintPostfix();\r\n// for (int i = 0; i < c.length; i++) {\r\n// System.out.print(c[i].getValue());\r\n// }\r\n// b.Evaluation();\r\n// System.out.println(\"\" \"\");\r\n// System.out.println(b.Evaluation());\r\n\r\n }\r\n}",
"public void infixToPostFix() {\n for (String str : infixList) {\n if (str.equals(\"(\")) {\n leftParenthesis(str);\n } else if (str.equals(\")\")) {\n rightParenthesis();\n } else if (OperatorOperand.isOperator(str)) {\n operator(str);\n } else {\n operand(str);\n }\n }\n clearTheStack();\n }",
"java.lang.String getOperator();",
"public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }",
"private static String convertToPostfix(String str) {\n Stack<Character> stack = new Stack<>();\n StringBuilder postfix = new StringBuilder();\n\n\n for (int index = 0; index < str.length(); index++) {\n char c = str.charAt(index);\n\n //if c is a digit, an algebraic variable, a dot, or blank (String formatting helper) it is added to\n //the postfix expression\n if ( Character.isLetterOrDigit(c) || c == '.' || c == ' ' ) {\n postfix.append(c);\n\n //if c is a left parenthesis it is added to the stack and a blank (string format helper) is appended\n //to postfix expression.\n } else if ( c == '(' ) {\n stack.push(c);\n postfix.append(\" \");\n\n //if c is an operator the stack is pop and added to the postfix expression only if c's precedence is\n // smaller or equal to the topmost operator in the stack. Otherwise, c is just added to the stack\n } else if ( isOperator(c) ) {\n while (!stack.isEmpty() && precedence(c) <= precedence(stack.peek()) ) {\n postfix.append(stack.pop()).append(\" \");\n }\n stack.push(c);\n\n //if c is a right parenthesis and the stack is not empty, the stack is then popped and added to the\n //postfix expression until a left parenthesis is encountered. If there is no left parenthesis then an\n //exception is thrown with a misplaced parenthesis statement\n } else if ( c == ')') {\n boolean hasLeftParenthesis = false;\n while ( !stack.isEmpty() ) {\n char popped = stack.pop();\n if ( popped == '(' ) {\n hasLeftParenthesis = true;\n break;\n } else {\n postfix.append(popped).append(\" \");\n }\n }//end of inner-loop\n if ( !hasLeftParenthesis ) {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n }\n }//end of for-loop\n\n //If stack is not empty, the stack is then popped and added to the postfix expression. If a left parenthesis is\n //found then an exception is thrown with a misplaced parenthesis statement;\n while (!stack.isEmpty()) {\n if (stack.peek() == '(') {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n postfix.append(stack.pop()).append(\" \");\n }\n\n //String is trimmed, double spaces are replaced by single spaces, and returned\n return postfix.toString().trim().replaceAll(\" \", \" \");\n }",
"private Operator compile(List<Operator> ops, int offset, int length) {\n \n int lLength = findExpression(ops, offset, length);\n \n if (lLength == length){\n \n // Case 1: EXPR\n if (length == 1){\n \n // Return single operator\n return ops.get(offset);\n \n } else if ((ops.get(offset) instanceof PrecedenceOperator) &&\n (ops.get(offset + length - 1) instanceof PrecedenceOperator)){\n \n // Remove brackets\n return compile(ops, offset+1, length-2);\n \n } else {\n throw new RuntimeException(\"Invalid expression\");\n }\n \n } else {\n \n // Case 2: EXPR <OP> EXPR\n if (!(ops.get(offset + lLength) instanceof BinaryOperator)){\n \n // Invalid\n throw new RuntimeException(\"Expecting EXPR <OP> EXPR\");\n } else {\n \n // Binary operator\n BinaryOperator bop = (BinaryOperator)ops.get(offset + lLength);\n bop.left = compile(ops, offset, lLength);\n bop.right = compile(ops, offset + lLength + 1, length - lLength - 1);\n return bop;\n }\n }\n }",
"Expression relExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = addExpression();\r\n\t\twhile(isKind(OP_LT,OP_GT,OP_LE,OP_GE)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = addExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"@Override public void enterCompop(MicroParser.CompopContext ctx) {\n//\t\tSystem.out.println(\"Enter compop: \" + infixS);\n//\t\tSystem.out.println(ctx.getText());\n\n\t\tString lhs = infixS.get(0); //WILL NOT WORK WITH EXPRESSIONS\n\n\t\t//Determine the type of var on LHS\n\t\ttry{\n\t\t\tif(Integer.valueOf(lhs) instanceof Integer){\n\t\t\t\tIRNode.tempCnt++;\n\t\t\t\tthis.meIRL.add(new IRNode(\"STOREI\", lhs, \"\", \"$T\" + IRNode.tempCnt));\n\t\t\t\tlhsType = \"INT\";\n\t\t\t}\n\t\t}\n\t\tcatch (Exception err1){\n\t\t\ttry{\n\t\t\t\tif(Float.valueOf(lhs) instanceof Float){\n\t\t\t\t\tIRNode.tempCnt++;\n\t\t\t\t\tthis.meIRL.add(new IRNode(\"STOREF\", lhs, \"\", \"$T\" + IRNode.tempCnt));\n\t\t\t\t\tlhsType = \"FLOAT\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception err2){\n\t\t\t\t\tString type = \"\";\n\t\t\t\t\tArrayList<List<String>> varList = st.varMap.get(\"GLOBAL\");\n\t\t\t\t if(varList != null){\n\t\t\t\t for(List<String> varData : varList){\n\t\t\t\t \tif(varData.get(0).equals(lhs)){\n\t\t\t\t \t\ttype = varData.get(1);\n\t\t\t\t \t}\n\t\t\t\t }\n\t\t\t\t }\n\n\t\t\t\t\tShuntingYard sy = new ShuntingYard();\n\t\t\t\t\tString postfixS = sy.infixToPostfix(infixS);\n\n\t\t\t\t\t//Tests Postfix Tree\n\t\t\t\t\tPostfixTree pfTree = new PostfixTree();\n\t\t\t\t\tPostfixTreeNode root = pfTree.createTree(postfixS);\n\n\t\t\t\t\t//adds tree to IRList\n\t\t\t\t\troot.toIRList(root, this.meIRL, type);\n\t\t\t\t\tif(type.compareTo(\"FLOAT\") == 0){\n\t\t\t\t \t\tthis.meIRL.add(new IRNode(\"STOREF\", lhs, \"\", \"$T\"+ IRNode.tempCnt));\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.meIRL.add(new IRNode(\"STOREI\", lhs, \"\", \"$T\"+ IRNode.tempCnt));\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t \tlhsType = type;\n\t\t\t\t \tlhsTemp = IRNode.tempCnt;\n\t\t\t}\n\t\t}\n\n\t}",
"@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}",
"public static String[] infixToPostfix(String[] infix) {\n\n // a list for the resulting postfix expression\n List<String> postfix = new ArrayList<String>();\n\n // a stack for implementing the conversion\n Stack<String> operatorStack = new Stack<String>();\n\n // check the length of the expression\n if (infix.length != 0) {\n \n for (int i = 0; i < infix.length; i++) {\n \n // precedence is null for operands\n Integer precedence = precedenceMap.get(infix[i]);\n\n if (precedence != null) {\n\n // then the current token is an operator\n while (!operatorStack.isEmpty()) {\n String opFromStack = operatorStack.pop();\n if (precedenceMap.get(opFromStack) < precedence) {\n operatorStack.push(opFromStack);\n break;\n } else {\n postfix.add(opFromStack);\n } // if\n } // while\n \n operatorStack.push(infix[i]);\n \n } else { \n // current token is not an operator\n postfix.add(infix[i]);\n } // if\n \n } // for\n \n // add the remaining operators to the postfix expression\n while (!operatorStack.isEmpty()) {\n postfix.add(operatorStack.pop());\n } // while\n \n } // if\n \n return postfix.toArray(new String[postfix.size()]);\n\n }",
"public static void main(String[] args) {\n String input = \"( ( 1 + sqrt ( 5 ) ) / 2 )\";\n Stack<String> ops = new Stack<String>();\n Stack<Double> vals = new Stack<Double>();\n String[] temps = input.split(\" \");\n for (String temp : temps) {\n\n if (temp.equals(\"(\")) ;\n else if (temp.equals(\"+\")) ops.push(temp);\n else if (temp.equals(\"-\")) ops.push(temp);\n else if (temp.equals(\"*\")) ops.push(temp);\n else if (temp.equals(\"/\")) ops.push(temp);\n else if (temp.equals(\"sqrt\")) ops.push(temp);\n else if (temp.equals(\")\")){\n String op = ops.pop();\n double v = vals.pop();\n if (op.equals(\"+\")) v = vals.pop() + v;\n else if (op.equals(\"-\")) v = vals.pop() - v;\n else if (op.equals(\"*\")) v = vals.pop() * v;\n else if (op.equals(\"/\")) v = vals.pop() / v;\n else if (op.equals(\"sqrt\")) v = Math.sqrt(v);\n vals.push(v);\n }else {\n vals.push(Double.parseDouble(temp));\n }\n }\n System.out.println(vals.pop());\n }",
"@Test\r\n\tpublic void testParseOperator() {\r\n\r\n\t\t// find the number of operators in the input\r\n\r\n\t\tint add = 0;\r\n\t\tint minus = 0;\r\n\t\tint multiply = 0;\r\n\t\tint divide = 0;\r\n\t\tString input = \"a = 5\\nb = a - 1\\nc = a + (b / 2 * 4)\";\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) == '+')\r\n\t\t\t\tadd++;\r\n\t\t\tif (input.charAt(i) == '-')\r\n\t\t\t\tminus++;\r\n\t\t\tif (input.charAt(i) == '*')\r\n\t\t\t\tmultiply++;\r\n\t\t\tif (input.charAt(i) == '/')\r\n\t\t\t\tdivide++;\r\n\t\t}\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\")).sendKeys(input);\r\n\r\n\t\t// Look for the \"Parse\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(1).click();\r\n\r\n\t\t// Check that there contains corresponding quantity of operators\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tString res = code.getText();\r\n\t\t\tint add1 = 0, minus1 = 0, multiply1 = 0, divide1 = 0;\r\n\t\t\tfor (int i = 0; i < res.length(); i++) {\r\n\t\t\t\tif (res.charAt(i) == '+')\r\n\t\t\t\t\tadd1++;\r\n\t\t\t\tif (res.charAt(i) == '-')\r\n\t\t\t\t\tminus1++;\r\n\t\t\t\tif (res.charAt(i) == '*')\r\n\t\t\t\t\tmultiply1++;\r\n\t\t\t\tif (res.charAt(i) == '/')\r\n\t\t\t\t\tdivide1++;\r\n\t\t\t}\r\n\t\t\tassertEquals(add, add1);\r\n\t\t\tassertEquals(minus, minus1);\r\n\t\t\tassertEquals(multiply, multiply1);\r\n\t\t\tassertEquals(divide, divide1);\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"String getOperator();",
"void visitOperatorFunction(OperatorFunction operator);",
"@Override\n\tpublic void outAOpExpr(AOpExpr node) {\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tType left = nodeTypes.get(node.getLeft()); \n\t\tswitch (expType){\n\t\t\tcase DIV :\n\t\t\t\tcreateBinArithmetic(\"/\"); \n\t\t\t\tbreak; \n\t\t\tcase MINUS: \n\t\t\t\tcreateBinArithmetic(\"-\"); \n\t\t\t\tbreak; \n\t\t\tcase MOD: \n\t\t\t\tcreateBinArithmetic(\"%\"); \n\t\t\t\tbreak;\n\t\t\tcase MUL:\n\t\t\t\tcreateBinArithmetic(\"*\"); \n\t\t\t\tbreak; \n\t\t\tcase ADD : \n\t\t\t\tif ( left != Type.STRING_TYPE ){\n\t\t\t\t\tcreateBinArithmetic(\"+\"); \n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AINVERSE : \n\t\t\t\til.append(new INEG()); \n\t\t\t\tbreak;\n\t\t\t\t//TODO comparison \n\t\t\tcase LOWEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGT);\n\t\t\t\tbreak; \n\t\t\tcase LOWER :\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGE); \n\t\t\t\tbreak; \n\t\t\tcase BIGGEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLT);\n\t\t\t\tbreak; \n\t\t\tcase BIGGER : \n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLE); \n\t\t\t\tbreak; \n\t\t\tcase EQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPNE);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPNE); \n\t\t\t\tbreak;\n\t\t\tcase NEQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPEQ);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPEQ); \n\t\t\t\tbreak; \n\t\t\tcase NOT : \n\t\t\t\tcreateCmpOp(Constants.IFNE); \n\t\t\t\tbreak;\n\t\t}\n\t}",
"public static String infixToPostfix(String input) {\r\n\t\tStack<Object> infixStack = new Stack<>();\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean digitPreviously = false;\r\n\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tchar temp = input.charAt(i);\r\n\r\n\t\t\t// CASE 1 : handling digits\r\n\t\t\tif (priority(temp) < 0) {\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t\tdigitPreviously = true;\r\n\t\t\t// CASE 2 : handling (, )\r\n\t\t\t} else if (priority(temp) == 0) {\r\n\t\t\t\tif (temp == '(') {\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tdigitPreviously = false;\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboolean foundOpener = false;\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif ((char)infixStack.peek() == '(') {\r\n\t\t\t\t\t\t\tfoundOpener = true;\r\n\t\t\t\t\t\t\tinfixStack.pop();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdigitPreviously = true;\t\r\n\t\t\t\t\tif (!foundOpener) {\r\n\t\t\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// CASE 3 : handling operators\r\n\t\t\telse if (priority(temp) > 0) {\r\n\t\t\t\tif (infixStack.empty()) {\r\n\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t} else {\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (priority((char)infixStack.peek()) < priority(temp) || temp == '^' || temp == '~') {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t}\r\n\t\t\t\tdigitPreviously = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// pop remaining chars\r\n\t\twhile (!infixStack.empty()) {\r\n\t\t\tchar temp = (char)infixStack.pop();\r\n\t\t\tif (temp == '(') {\r\n\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(' ');\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}",
"operations(StringBuilder input, int currentMode)\n\t{\n\t\t\n\t\tchar tempVal = ' ';\n\t\t\n\t\tif(isPair(input) == true) {\n\t\t\t\n\t\t\t// determining which mode the input is set to and converting to decimal to make it easier \n\t\t\t\n\t\t\tif(currentMode == 1)\n\t\t\t{\n\t\t\t\tinput = hexConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode == 3)\n\t\t\t{\n\t\t\t\tinput = binConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode == 4)\n\t\t\t{\n\t\t\t\tinput = octConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode != 2)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error, invalid input mode\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length(); i++)\n\t\t\t{\n\t\t\t\ttempVal = input.charAt(i);\n\t\t\t\t\n\t\t\t\t\tif(isNumber(input.charAt(i)) == true)\n\t\t\t\t\t{\n\t\t\t\t\t\tevalulateQueue.add(Character.toString(tempVal));\n\t\t\t\t\t}\n\t\t\t\t\telse if((isOperator(input.charAt(i)) == true) || (isLeftParen(input.charAt(i)) == true) || (isRightParen(input.charAt(i)) == true))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(isLeftParen(input.charAt(i)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ((isRightParen(input.charAt(i))) == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (operationStack.empty() == false)\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\tString temp = operationStack.peek();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(temp.equals(\"(\"))\n\t\t\t\t\t\t\t\t{\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\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tevalulateQueue.add(temp);\n\t\t\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(precedence(Character.toString(tempVal)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twhile(precedence(Character.toString(tempVal)) == false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString temp = operationStack.peek();\n\t\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t\t\tevalulateQueue.add(temp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"An error has occured, invalid input values\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"An error has occured, invalid input values\");\n\t\t}\n\t\t\n\t\t// moving operation stack to evaluation queue\n\t\t\n\t\twhile(operationStack.empty() != true)\n\t\t{\n\t\t\tString movingVal = operationStack.peek();\n\t\t\tevalulateQueue.add(movingVal);\n\t\t\toperationStack.pop();\n\t\t}\n\t\t\n\t\t// test \n\t\t\n\t\tSystem.out.println(\"$$$$$$$$$$\");\n\t\tfor(String item: evalulateQueue) {\n\t\t\tSystem.out.print(item);\n\t\t}\n\t\tSystem.out.println(\"\\n$$$$$$$$$$\");\n\t\t\n\t\t// converting post-fix notation to the final result\n\t\t\n\t\twhile(evalulateQueue.isEmpty() != true)\n\t\t{\n\t\t\tString currentNum = evalulateQueue.peek();\n\t\t\tSystem.out.println(currentNum);\n\t\t\t\n\t\t\t// if its an operator, popping two numbers from evaluate stack to evaluate\n\t\t\tif((isOperator(currentNum.charAt(0))) && (evaluateStack.size() > 0))\n\t\t\t{\n\t\t\t\tString firstNum = evaluateStack.pop();\n\t\t\t\tString secondNum = evaluateStack.pop();\n\t\t\t\tdouble addedRes;\n\t\t\t\t\n\t\t\t\t// evaluating and pushing into the final queue\n\t\t\t\t\n\t\t\t\tswitch (currentNum) {\n\t\t\t\t\tcase \"+\": \n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) + Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) - Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"*\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) * Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) / Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"Error, invalid operation\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if its a number, pushing it on the evaluate stack to be operated on\n\t\t\telse if (isNumber(currentNum.charAt(0)))\n\t\t\t{\n\t\t\t\tevaluateStack.push(currentNum);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error, invalid input into final queue\");\n\t\t\t}\n\t\t\t\n\t\t\t// removing the last item in the queue\n\t\t\t\n\t\t\tevalulateQueue.remove();\n\t\t\t\n\t\t}\n\t}",
"public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }",
"ExpOperand createExpOperand();",
"@Override\n public String toString() { return '(' + left.toString() + ' ' + operation.toString() + ' ' + right.toString() + ')'; }",
"@Override\n public String toString() { return '(' + left.toString() + ' ' + operation.toString() + ' ' + right.toString() + ')'; }",
"private String infixToPostfixNoPrecedence(String infix) {\n\t\tString postfix = \"\";\n\t\tStack<Character> stack = new Stack<>();\n\n\t\tfor (int i = 0; i < infix.length(); i++) {\n\t\t\tchar currentChar = infix.charAt(i);\n\t\t\tif (currentChar == '+' || currentChar == '*') {\n\t\t\t\tif (stack.isEmpty()) {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else if (stack.peek() == '+' || stack.peek() == '*') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t}\n\t\t\t} else if (currentChar == '(') {\n\t\t\t\tstack.push(currentChar);\n\t\t\t} else if (currentChar == ')') {\n\n\t\t\t\twhile (stack.peek() != '(') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t}\n\n\t\t\t\tstack.pop();\n\n\t\t\t} else if (currentChar != ' ') {\n\t\t\t\tpostfix = postfix + currentChar;\n\t\t\t}\n\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tpostfix = postfix + stack.pop();\n\t\t}\n\n\t\treturn postfix;\n\t}",
"public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }",
"private String infixToPostfixPlusPrecedence(String infix) {\n\t\tString postfix = \"\";\n\t\tStack<Character> stack = new Stack<>();\n\n\t\tfor (int i = 0; i < infix.length(); i++) {\n\t\t\tchar currentChar = infix.charAt(i);\n\t\t\tif (currentChar == '+' || currentChar == '*') {\n\t\t\t\tif (stack.isEmpty() || stack.peek() == '(') {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else if (precedence(stack.peek()) >= precedence(currentChar)) {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t}\n\t\t\t} else if (currentChar == '(') {\n\t\t\t\tstack.push(currentChar);\n\t\t\t} else if (currentChar == ')') {\n\n\t\t\t\twhile (stack.peek() != '(') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.pop();\n\n\t\t\t} else if (currentChar != ' ') {\n\t\t\t\tpostfix = postfix + currentChar;\n\t\t\t}\n\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tpostfix = postfix + stack.pop();\n\t\t}\n\n\t\treturn postfix;\n\t}",
"@Override\n\tpublic Object visit(ASTGeometric node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}",
"public int evalPostfix(String exp) \n { \n exp = exp.replaceAll(\"\\\\s\", \"\");\n \n if (exp == \"**Invalid Expression**\")\n return 0;\n // Scan all characters one by one \n for(int i=0;i<exp.length();i++) \n { \n char c=exp.charAt(i); \n \n // If the scanned character is an operand (number here), \n // push it to the stack. \n if(Character.isDigit(c)) \n finalStack.push(c - '0'); \n \n // If the scanned character is an operator, pop two \n // elements from stack apply the operator \n else\n { \n try{\n int val1 = (int) finalStack.pop(); \n int val2 = (int) finalStack.pop(); \n\n switch(c) \n { \n case '+': \n finalStack.push(val2+val1); \n break; \n\n case '-': \n finalStack.push(val2- val1); \n break; \n\n case '/': \n finalStack.push(val2/val1); \n break; \n\n case '*': \n finalStack.push(val2*val1); \n break;\n\n case '%':\n finalStack.push(val2%val1);\n break;\n } \n }\n catch(NullPointerException nullException){\n postfixExp = \"**Invalid Expression**\";\n throw nullException;\n \n }\n } \n } \n return (int) finalStack.pop(); \n }",
"private String toReversePolishNotation(String expr) {\n\t\tString output = \"\";\n\t\tStack<String> operatorStack = new Stack<String>();\n\n\t\tfor(String token : expr.split(\"\\\\s+\")) {\n\t\t\tif(isNumber(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isMatrix(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isOperator(token)) {\n\t\t\t\tint precidenceToken = getPrecidence(token);\n\t\t\t\tint precidenceNext;\n\t\t\t\twhile(!operatorStack.isEmpty()) {\n\t\t\t\t\tprecidenceNext = getPrecidence(operatorStack.peek());\n\t\t\t\t\tif(precidenceNext >= precidenceToken) output += operatorStack.pop() + \" \";\n\t\t\t\t\telse break;\n\t\t\t\t}\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\"(\")) {\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\")\")) {\n\t\t\t\twhile(!operatorStack.peek().equals(\"(\")) output += operatorStack.pop() + \" \";\n\t\t\t\toperatorStack.pop();\n\t\t\t}\n\t\t\telse throw new IllegalArgumentException(INVALID_CHARACTER_MESSAGE);\n\t\t}\n\t\twhile(!operatorStack.isEmpty()) output += operatorStack.pop() + \" \";\n\n\t\treturn output;\n\t}",
"public double pop()\n {\n if (empty()) {\n \tthrow new IllegalArgumentException(\"too many operators!\");\n \t\n }\n else\n {\n return s[top--];\n }\n }",
"public static Expression parse(String exp) {\n\t\texp = exp.replace(\" \", \"\");\r\n\t\tchar[] cs = exp.toCharArray();\r\n\t\tint i = 0;\r\n\t\twhile (i < cs.length && !Operator.validOp(cs[i])) {\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tif (i == cs.length)\r\n\t\t\treturn new Expression(Token.parse(exp));\r\n\t\telse {\r\n\t\t\t//to preserve order of operations here, flip order accordingly\r\n\t\t\t//if the operator is * or /\r\n\t\t\treturn new Expression(\r\n\t\t\t\t\tExpression.parse(exp.substring(0,i)),\r\n\t\t\t\t\t(Operator)Token.parse(cs[i]),\r\n\t\t\t\t\tExpression.parse(exp.substring(i+1, exp.length()))\r\n\t\t\t);\r\n\t\t}\r\n\t}",
"@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}",
"public Command createOperationCommand(int operator, Operand operand1, Operand operand2);",
"public static void main(String args[]) {\n StackVenkataKalyanKrishnaVarmaSagi<Integer> stackVenkataKalyanKrishnaVarmaSagi = new StackVenkataKalyanKrishnaVarmaSagi();\n\n //Take input\n System.out.println(\"Enter a string: \");\n Scanner scanner = new Scanner(System.in);\n String input = scanner.next();\n for (int i = 0; i < input.length(); i++) {\n if (input.charAt(i) == '*' || input.charAt(i) == '+' || input.charAt(i) == '-' || input.charAt(i) == '*' || input.charAt(i) == '^') {\n char operator = input.charAt(i);\n int a = stackVenkataKalyanKrishnaVarmaSagi.pop();\n int b = stackVenkataKalyanKrishnaVarmaSagi.pop();\n if (operator == '+')\n stackVenkataKalyanKrishnaVarmaSagi.push(b + a);\n if (operator == '-')\n stackVenkataKalyanKrishnaVarmaSagi.push(b - a);\n if (operator == '*')\n stackVenkataKalyanKrishnaVarmaSagi.push(b * a);\n if (operator == '/' && a != 0) //make sure you are not performing division with 0\n stackVenkataKalyanKrishnaVarmaSagi.push(b / a);\n if (operator == '^')\n stackVenkataKalyanKrishnaVarmaSagi.push((int) Math.pow(b, a));\n } else {\n int operand = Character.getNumericValue(input.charAt(i));\n stackVenkataKalyanKrishnaVarmaSagi.push(operand);\n }\n }\n if (stackVenkataKalyanKrishnaVarmaSagi.size() > 1)\n System.out.println(\"The input Postfix expression is not valid.\");\n else\n System.out.println(\"Result value: \" + stackVenkataKalyanKrishnaVarmaSagi.pop());\n }",
"public Expression(Expression exp1, Operator op, Expression exp2) {\r\n\t\t// Remember, this is in postfix notation.\r\n\t\telements.addAll(exp1.elements);\r\n\t\telements.addAll(exp2.elements);\r\n\t\telements.add(op);\r\n\t}",
"@Override\n public void outPlusExp(PlusExp node)\n {\n Type lexpType = this.mCurrentST.getExpType(node.getLExp());\n Type rexpType = this.mCurrentST.getExpType(node.getRExp());\n mPrintWriter.println(\"#Addddddddddddding\");\n Label l1 = new Label();\n Label l0 = new Label();\n Label l2 = new Label();\n Label l3 = new Label();\n //# Load constant int 1\n if(lexpType == Type.BYTE && rexpType == Type.INT){\n /*mPrintWriter.println(\"ldi r24,lo8(\"+node.getLExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getLExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Load constant int 0\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getRExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getRExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Casting int to byte by popping\n //# 2 bytes off stack and only pushing low order bits\n //# back on. Low order bits are on top of stack.\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");*/\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r18\");\n mPrintWriter.println(\"pop r19\");\n //mPrintWriter.println(# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n //mPrintWriter.println(# promoting a byte to an int\n mPrintWriter.println(\"tst r24\");\n mPrintWriter.println(\"brlt \" + l0);\n mPrintWriter.println(\"ldi r25, 0\");\n mPrintWriter.println(\"jmp \" + l1);\n mPrintWriter.println(l0 + \":\");\n mPrintWriter.println(\"ldi r25, hi8(-1)\");\n mPrintWriter.println( l1 + \":\");\n\n // mPrintWriter.println(# Do add operation\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n else if(lexpType == Type.BYTE && rexpType == Type.BYTE){\n /*mPrintWriter.println(\"ldi r24,lo8(\"+node.getLExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getLExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Casting int to byte by popping\n //# 2 bytes off stack and only pushing low order bits\n //# back on. Low order bits are on top of stack.\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getRExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getRExp().value+\")\");\n //# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //# Casting int to byte by popping\n //# 2 bytes off stack and only pushing low order bits\n //# back on. Low order bits are on top of stack.\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");*/\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r18\");\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n //# promoting a byte to an int\n mPrintWriter.println(\"tst r24\");\n mPrintWriter.println(\"brlt \" + l0);\n mPrintWriter.println(\"ldi r25, 0\");\n mPrintWriter.println(\"jmp \" + l1);\n mPrintWriter.println(l0 + \":\");\n mPrintWriter.println(\"ldi r25, hi8(-1)\");\n mPrintWriter.println( l1 + \":\");\n //# promoting a byte to an int\n mPrintWriter.println(\"tst r18\");\n mPrintWriter.println(\"brlt \" + l2);\n mPrintWriter.println(\"ldi r19, 0\");\n mPrintWriter.println(\"jmp \" + l3);\n mPrintWriter.println(l2 + \":\");\n mPrintWriter.println(\"ldi r19, hi8(-1)\");\n mPrintWriter.println(l3 + \":\");\n\n //mPrintWriter.println(# Do add operation\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n else if(lexpType == Type.INT && rexpType == Type.BYTE){\n /*mPrintWriter.println(\"ldi r24,lo8(\"+node.getLExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getLExp().value+\")\");\n //mPrintWriter.println(# push two byte expression onto stack);\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n //mPrintWriter.println(# Casting int to byte by popping);\n //mPrintWriter.println(# 2 bytes off stack and only pushing low order bits);\n //mPrintWriter.println(# back on. Low order bits are on top of stack.);\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n mPrintWriter.println(\"push r24\");\n //mPrintWriter.println(# Load constant int 0);\n mPrintWriter.println(\"ldi r24,lo8(\"+node.getRExp().value+\")\");\n mPrintWriter.println(\"ldi r25,hi8(\"+node.getRExp().value+\")\");\n //# push two byte expression onto stack);\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");*/\n //# load a two byte expression off stack);\n mPrintWriter.println(\"pop r18\");\n //mPrintWriter.println(\"pop r19\");\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n //# promoting a byte to an int\n mPrintWriter.println(\"tst r18\");\n mPrintWriter.println(\"brlt\" + l0);\n mPrintWriter.println(\"ldi r19, 0\");\n mPrintWriter.println(\"jmp \" + l1);\n mPrintWriter.println(l0 + \":\");\n mPrintWriter.println(\"ldi r19, hi8(-1)\");\n mPrintWriter.println(l1 + \":\");\n\n //mPrintWriter.println(# Do add operation\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n else{\n mPrintWriter.println(\"pop r18\");\n mPrintWriter.println(\"pop r19\");\n //# load a one byte expression off stack\n mPrintWriter.println(\"pop r24\");\n mPrintWriter.println(\"pop r25\");\n\n mPrintWriter.println(\"add r24, r18\");\n mPrintWriter.println(\"adc r25, r19\");\n //mPrintWriter.println(# push two byte expression onto stack\n mPrintWriter.println(\"push r25\");\n mPrintWriter.println(\"push r24\");\n }\n }",
"public static ResultValue returnResult(Parser parser, Numeric leftOp, Numeric rightOp)\r\n {\r\n \tInfixEvaluation evaluateInfix = new InfixEvaluation(parser);\r\n \tResultValue result = new ResultValue();\r\n \tdouble val1;\r\n \tdouble val2;\r\n \tdouble dVal;\r\n \tint iVal;\r\n \t\r\n \tString operator = leftOp.expr;\r\n \t\r\n \tif(leftOp.type == Token.INTEGER)\r\n \t{\r\n \t\tresult.type = Token.INTEGER;\r\n \t\t\r\n \t\t//check dataType for right operand \r\n \t\tif(rightOp.type != Token.INTEGER)\r\n \t\t\trightOp.integerValue = Numeric.getIntegerValue(rightOp.strValue);\r\n \t\t\r\n \t\tswitch(leftOp.expr)\r\n \t\t{\r\n \t\t\tcase \"+\" :\r\n \t\t\t\tresult.value = String.valueOf(addInt(leftOp.integerValue, rightOp.integerValue));\r\n \t\t\t\tbreak;\r\n \t\t\t\t\r\n \t\t\tcase \"-\" :\r\n \t\t\t\tresult.value = String.valueOf(subInt(leftOp.integerValue, rightOp.integerValue));\r\n \t\t\t\tbreak;\r\n \t\t\t\t\r\n \t\t\tcase \"*\" :\r\n \t\t\t\tresult.value = String.valueOf(mulInt(leftOp.integerValue, rightOp.integerValue));\r\n \t\t\t\tbreak;\r\n \t\t\t\t\r\n \t\t\tcase \"/\" :\r\n \t\t\t\tresult.value = String.valueOf(divInt(leftOp.integerValue, rightOp.integerValue));\r\n \t\t\t\tbreak;\r\n \t\t\t\r\n \t\t\tcase \"^\" :\r\n \t\t\t\tresult.value = String.valueOf(intExp(leftOp.integerValue, rightOp.integerValue));\r\n \t\t\t\tbreak;\r\n \t\t\t\t\r\n \t\t\tdefault :\r\n \t\t\t\tSystem.out.println(\"Error in Utilities, not valid operator\");\r\n \t\t\t\t\r\n \t\t} \t\t\r\n \t\t\r\n \t}\r\n \t\r\n \t//token is a float \r\n \telse if(leftOp.type == Token.FLOAT)\r\n \t{\r\n \t\tresult.type = Token.FLOAT;\r\n \t\t\r\n \t\tif(rightOp.type != Token.FLOAT)\r\n \t\t\trightOp.doubleValue = Numeric.getDoubleValue(rightOp.strValue);\r\n \t\t\r\n \t\tswitch(leftOp.expr)\r\n \t\t{\r\n \t\t\tcase \"+\" :\r\n \t\t\t\tresult.value = String.valueOf(add(leftOp.doubleValue, rightOp.doubleValue));\r\n \t\t\t\tbreak;\r\n\t\t\t\t\r\n \t\t\tcase \"-\" :\r\n \t\t\t\tresult.value = String.valueOf(sub(leftOp.doubleValue, rightOp.doubleValue));\r\n \t\t\t\tbreak;\r\n\t\t\t\t\r\n \t\t\tcase \"*\" :\r\n \t\t\t\tresult.value = String.valueOf(mul(leftOp.doubleValue, rightOp.doubleValue));\r\n \t\t\t\tbreak;\r\n\t\t\t\t\r\n \t\t\tcase \"/\" :\r\n \t\t\t\tresult.value = String.valueOf(div(leftOp.doubleValue, rightOp.doubleValue));\r\n \t\t\t\tbreak;\r\n\t\t\t\r\n \t\t\tcase \"^\" :\r\n \t\t\t\tresult.value = String.valueOf(exp(leftOp.doubleValue, rightOp.doubleValue));\r\n \t\t\t\tbreak;\r\n\t\t\t\t\r\n \t\t\tdefault :\r\n \t\t\t\tSystem.out.println(\"Error in Utilities, not valid operator\");\r\n\t\t\r\n \t\t}\r\n \t}\r\n\t\r\n \treturn result;\r\n }",
"Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}",
"public static Temp evalExpression(CommonTree tree){\n\t\t// leaf node, int/float/id\n\n\t\tif (tree.getChildCount() == 0){\n\t\t\tTemp temp = new Temp(temperaryNum++,tree.getType(),tree.getText());\n\t\t\tif (tree.getType() == LittleParser.INTLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREI\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse if(tree.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREF\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse{ // look up the variable in the symbol table to set type, use var_name instead of $Tx and recycle $Tx\n\t\t\t\ttemp.setType(allTables.lookupType(temp.getValue().trim()));\n\t\t\t\ttemp.setName(tree.getText());\n\t\t\t\ttemperaryNum--;\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\t\t// Not a leaf node, evaluate children expressions\n\t\telse{\n\t\t\t// test for function call\n\t\t\tif (tree.getType() == LittleParser.FUNC_CALL){\n\t\t\t\t// add IR for evaluating the function and return temperary for return value\n\t\t\t\t// after it has been popped off the stack\n\t\t\t\treturn evalFunction(tree);\n\t\t\t}\n\t\t\t//\t\t\tif (tree.getChild(0).getChildCount() == 0 && tree.getChild(1).getChildCount() == 0){\n\t\t\t//\t\t\t\tif ()\n\t\t\t//\t\t\t}\n\t\t\tTemp left = evalExpression((CommonTree) tree.getChild(0));\n\t\t\tTemp right = evalExpression((CommonTree) tree.getChild(1));\n\n\t\t\tTemp temp = new Temp(temperaryNum++,left.getType(), \"EXP\");\n\t\t\tif (tree.getText().contains(\"+\")){ // add\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t} //both parameters\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"-\")){ // subtract\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"*\")){ // multiply\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{ // divide\n\t\t\t\tif (right.getType() == LittleParser.INTLITERAL && left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (right.getType() == LittleParser.FLOATLITERAL || left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\n\t}"
] | [
"0.74006885",
"0.7152794",
"0.6992914",
"0.6988455",
"0.69574136",
"0.68799037",
"0.68422294",
"0.6691752",
"0.6673076",
"0.65708435",
"0.6493331",
"0.6482009",
"0.64807993",
"0.64780176",
"0.64684296",
"0.6461059",
"0.64600194",
"0.64445794",
"0.640056",
"0.637276",
"0.6362831",
"0.63598865",
"0.63574773",
"0.6344443",
"0.63242805",
"0.6309129",
"0.6287076",
"0.62854064",
"0.6280204",
"0.6264677",
"0.62599033",
"0.6248568",
"0.62476695",
"0.62345177",
"0.62313306",
"0.62299424",
"0.62254727",
"0.62245023",
"0.6175034",
"0.61566424",
"0.6149417",
"0.6141468",
"0.61200607",
"0.6113339",
"0.61046374",
"0.6102322",
"0.60879284",
"0.60867167",
"0.6059997",
"0.60546225",
"0.60447264",
"0.6043021",
"0.60427785",
"0.6038304",
"0.60324967",
"0.6024587",
"0.6019745",
"0.6017755",
"0.596949",
"0.595081",
"0.594232",
"0.594193",
"0.5930031",
"0.5927176",
"0.58968633",
"0.5887085",
"0.58753425",
"0.586045",
"0.5858059",
"0.58495355",
"0.5848033",
"0.584601",
"0.58452034",
"0.5844728",
"0.5828665",
"0.5798484",
"0.5796802",
"0.5796641",
"0.57922417",
"0.5787706",
"0.57846475",
"0.5778786",
"0.57722634",
"0.57722634",
"0.57675457",
"0.57671744",
"0.5764794",
"0.57403344",
"0.57282865",
"0.5722433",
"0.5721929",
"0.5715273",
"0.5713397",
"0.57021147",
"0.5698271",
"0.5690709",
"0.56828517",
"0.56800836",
"0.56792754",
"0.5666098",
"0.566605"
] | 0.0 | -1 |
end method getExpression() method to return complete infix expression to the main class to display in output textbox of GUI | public String getExpression() {
return tree.infixExpression();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void getExpression()\r\n {\r\n System.out.print(\"Please enter an equation you want changed to postfix and prefix: \");\r\n infix_expression = scanner.nextLine();\r\n }",
"String getExpression();",
"String getExpression();",
"public String infix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tinfix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }",
"public String toString() {\n return m_expression;\n }",
"public String getExpression() {\n return _expression;\n }",
"private static String infixToPostfix(String expression)\r\n {\r\n String result = \"\";\r\n char current_char = ' ';\r\n int index = 0;\r\n StackInterface<Character> operand_stack = new ArrayStack<>();\r\n switch(stack_type)\r\n {\r\n case(\"vector\"):\r\n operand_stack = new VectorStack<>();\r\n break;\r\n \r\n case(\"linked\"):\r\n operand_stack = new LinkedListStack<>();\r\n break;\r\n }\r\n\r\n //iterates through every character and puts them in the stack or the result accordingly\r\n while(index < expression.length())\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n //checks if the character is an operand and if so checks if it should pop the previous input or not\r\n case '+': case '-': case '*': case '/':\r\n if(!operand_stack.isEmpty())\r\n {\r\n while(!operand_stack.isEmpty() && getOperandImportance(current_char) <= getOperandImportance(operand_stack.peek()))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.push(current_char);\r\n }\r\n else\r\n {\r\n operand_stack.push(current_char);\r\n }\r\n break;\r\n\r\n //exponents are always pushed onto the stack\r\n case '^':\r\n operand_stack.push(current_char);\r\n break;\r\n\r\n //if an open delimiter is there, we add it to the stack\r\n case '(': case '{': case '[':\r\n operand_stack.push(current_char);\r\n break;\r\n \r\n //if the delimiter is closing we pop until we find the open equivalent\r\n case ')': case '}': case ']':\r\n while(operand_stack.peek() != delimiterEquivalent(current_char))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.pop();\r\n break;\r\n\r\n case ' ':\r\n break;\r\n\r\n default: \r\n result += current_char;\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n //pops everything left in the stack to the result at the end\r\n while(!operand_stack.isEmpty())\r\n {\r\n result += operand_stack.pop();\r\n }\r\n\r\n return result;\r\n }",
"public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }",
"public String infixToPostfix(String expression) {\n\t\tStack oPSt = new Stack();\n\t\tStack Sign = new Stack();\n\t\tStringBuilder PFE = new StringBuilder();\n\t\tString n = \"\";\n\t\t// flag -> marks adding new operator to the stack with or without removing the\n\t\t// previous one\n\t\tboolean flag = true;\n\t\t//negflag -> if (true) previous character was operator thus next(-) is negative sign\n\t\t//\t\t\t if (false) previous character was operand thus next (-) is operator\n\t\tboolean negflag = true; \n\t\tint counter = 0; // expresses number of open parenthesis at the moment and if it matches the\n\t\t// counter inside Sign Stack it means that the Sign was changed at this Counter\n\t\tString open = \"(\", closed = \")\";\n\t\tfor (int i = 0; i < expression.length(); i++) {\n\t\t\tString x = expression.substring(i, i + 1);\n\t\t\tStringBuilder longIntegers = new StringBuilder();\n\t\t\tif (x.equals(\"-\") && !expression.substring(i + 1, i + 2).equals(\" \")) {\n\t\t\t\tif(negflag) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.push(counter);\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint counter2 = 0;\n\t\t\t\twhile (counter2 + i < expression.length()\n\t\t\t\t\t\t&& (isChar(expression.substring(i + counter2, i + counter2 + 1))\n\t\t\t\t\t\t\t\t|| isNum(expression.substring(i + counter2, i + counter2 + 1)))\n\t\t\t\t\t\t&& isNotOperator(expression.substring(i + counter2, i + counter2 + 1))) {\n\t\t\t\t\tlongIntegers.append(expression.substring(i + counter2, i + 1 + counter2));\n\t\t\t\t\tcounter2++;\n\t\t\t\t}\n\t\t\t\ti = i + counter2;\n\t\t\t\tif (counter2 > 0) {\n\t\t\t\t\ti--;\n\t\t\t\t\tx = longIntegers.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// end of taking the expression\n\n\t\t\t// testing the expression\n\n\t\t\t// if the char. is an open parenthesis\n\t\t\tif (x.equals(open)) {\n\t\t\t\toPSt.push(x);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t// if the char is a close parenthesis\n\t\t\telse if (x.equals(closed)) {\n\t\t\t\tif (counter == 0)\n\t\t\t\t\tthrow new RuntimeException(\"Invalid Input: Redundant \\\")\\\" \");\n\t\t\t\twhile (!((String) oPSt.peek()).equals(open)) {\n\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t}\n\t\t\t\toPSt.pop();\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\t// checks if char was an operator\n\t\t\telse if (x.equals(\"*\") || x.equals(\"+\") || x.equals(\"/\") || x.equals(\"-\")) {\n\t\t\t\tnegflag = true;\n\t\t\t\twhile (!oPSt.isEmpty() && !((String) oPSt.peek()).equals(\"(\")) {\n\t\t\t\t\t// see which character has higher precedence\n\t\t\t\t\tflag = highOrLow(((String) oPSt.peek()).charAt(0), x.charAt(0));\n\t\t\t\t\tif (flag)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse {\n\t\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toPSt.push(x);\n\t\t\t}\n\t\t\t// if the char is space then check if the previous was space to avoid having two\n\t\t\t// spaces after each other\n\t\t\t// if the char was a new space/wasn't a space then it's definitely a\n\t\t\t// number/variable and will be pushed to PFE\n\t\t\telse if (!x.equals(\" \") || (PFE.length() > 0 && (char) PFE.charAt(PFE.length() - 1) != ' ')) {\n\t\t\t\tPFE.append(\" \");\n\t\t\t\tif (!x.equals(\" \")) {\n\t\t\t\t\tnegflag = false;\n\t\t\t\t\tPFE.append(n + x);\n\t\t\t}else \n\t\t\t\t\tPFE.append(x);\n\t\t\t\t\n\t\t\t}\n\t\t\twhile (!Sign.isEmpty() && counter == (int) Sign.peek()) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.pop();\n\t\t\t}\n\t\t}\n\t\t// add all the operator remaining in stack to the PFE except if '(' was found\n\t\t// then there's an runtime exception\n\t\twhile (!oPSt.isEmpty()) {\n\t\t\tif (((String) oPSt.peek()).equals(\"(\"))\n\t\t\t\tthrow new RuntimeException(\"Invalid Input : Redundant \\\"(\\\" \");\n\t\t\tPFE.append(\" \");\n\t\t\tPFE.append(oPSt.pop());\n\t\t}\n\t\t// replace any two consecutive spaces with only one\n\t\tint i = 0;\n\t\twhile (PFE.charAt(i) == ' ' && i < PFE.length() - 1) {\n\t\t\tPFE.deleteCharAt(i);\n\t\t}\n\t\tfor (i = 0; i < PFE.length() - 1; i++) {\n\t\t\tif (PFE.charAt(i) == ' ' && PFE.charAt(i + 1) == ' ') {\n\t\t\t\tPFE.deleteCharAt(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\treturn PFE.toString();\n\n\t}",
"Expression getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"XExpression getExpression();",
"public String getExpression() {\n return expression;\n }",
"public String getExpression() {\n return expression;\n }",
"public String getExpression() {\n return expression;\n }",
"@Override\r\n\tpublic String infixToPostfix(String expression) {\r\n\t\tStringBuilder pf = new StringBuilder(); // the postfix expression \r\n\t\texpression = removespaces(expression); \r\n\t\texpression = CheckInputValidation(expression);\r\n\t\texpression = DummyZero(expression);\r\n\t\tString e = expression;\r\n\t\tfor(i1 = 0 ; i1 < e.length() ;i1++) { \r\n\t\t\t//take operand and append it to the string\r\n\t\t\tif(Character.isDigit(e.charAt(i1)) || Character.isLetter(e.charAt(i1))) { //check if the character is letter or number\r\n\t\t\t\tint j =0; //counter to know how many digits in the following operand \r\n\t\t\t\twhile (i1 != e.length() &&e.charAt(i1) != '+' &&e.charAt(i1) != '-' && e.charAt(i1) != '/' && e.charAt(i1) != '*'&&e.charAt(i1) != ')'&&e.charAt(i1) != '(' ) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\ti1++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j>0) {\r\n\t\t\t\t\tString s = e.substring(i1-j, i1);\r\n\t\t\t\t\tpf.append( s ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\ti1--;\r\n\t\t\t\tif(i1 == e.length()-1 ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)=='(') {\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i1)=='-'||e.charAt(i1)=='/'||e.charAt(i1)=='+'||e.charAt(i1)=='*') {\r\n\t\t\t\twhile(!(opt.isEmpty()) && higherpres(e.charAt(i1)) && (char)opt.peek() !='(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)==')') {\r\n\t\t\t\twhile((char)opt.peek() != '(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(!(opt.isEmpty()) ) {\r\n\t\t\tif((char)opt.peek() != '(') {\r\n\t\t\t\tpf.append(opt.pop()).append(' ');}\r\n\t\t\telse if((char)opt.peek()=='(') {\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pf.toString();\r\n\t\t\r\n\t}",
"public Object getExpression();",
"@Override\n public String toString() {\n return \"Expression\";\n }",
"public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}",
"public Node getExpression() {\r\n return expression;\r\n }",
"@Override\n\tpublic void parse() throws Exception {\n\t\tLogger.log(\"Parsing expression: \" + getWords().toString(), 4);\n\t\tint wordsSize= getWords().size();\n\t\tString word;\n\t\tint lastSplitIndex = 0;\n\t\tFExpressionSide fExpSide;\n\t\tfExpSideList = new LinkedList<FExpressionSide>();\n\t\tfor(int i=0; i < wordsSize; i++){\n\t\t\tword = getWords().get(i);\n\t\t\t\n\t\t\tif(Operators.INFIX_OPS.contains(word)){\n\t\t\t\tfExpSide = new FExpressionSide(this);\n\t\t\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, i));\n\t\t\t\tfExpSide.setOperator(word);\n\t\t\t\t\n\t\t\t\tlastSplitIndex = i +1;\n\t\t\t\tfExpSideList.add(fExpSide);\n\t\t\t}\n\t\t}\n\t\tfExpSide = new FExpressionSide(this);\n\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, wordsSize));\n\t\tfExpSideList.add(fExpSide);\n\t\t\n\t\tfor(FExpressionSide f : fExpSideList){\n\t\t\tf.parse();\n\t\t}\n\t\t\n\t\t\n\t}",
"public String getResult()\r\n\t{\r\n\t\tcheckInitialization();\r\n\t\t\r\n\t\tVectorStack<Character> operands = \t\t\tnew VectorStack<Character>();\r\n\t\tVectorStack<Integer> numbers = \t\t\t\tnew VectorStack<Integer>();\r\n\t\tVectorStack<Boolean> tempHasSignToCompare = new VectorStack<Boolean>();\r\n\t\t\r\n\t\tboolean lastWasNum = \t\t\tfalse;\t//true if last character was a number\r\n\t\tboolean hasSignToCompare = \t\tfalse;\t//true if a previous operand has yet to be computed in the string\r\n\t\tchar current;\t\t\t\t\t\t\t//current character in iterator\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tfor ( int i = 0; i < equationString.length(); i++ )\r\n\t\t\t{\r\n\t\t\t\tcurrent = equationString.charAt( i );\r\n\t\t\t\t\r\n\t\t\t\tif ( current == ' ' )\r\n\t\t\t\t{\r\n\t\t\t\t\t//keep empty. makes sure spaces aren't treated as an error\r\n\t\t\t\t}//end else if\r\n\t\t\t\telse if ( lastWasNum )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( Character.isDigit( current ) ) //multi-digit numbers\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint toFormat = numbers.pop();\r\n\t\t\t\t\t\ttoFormat = toFormat * 10 + current - '0';\r\n\t\t\t\t\t\tnumbers.push( toFormat );\r\n\t\t\t\t\t}//end if\r\n\t\t\t\t\telse if ( current == ')' )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twhile ( operands.peek() != '(' )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tsolveEquation( numbers, operands );\r\n\t\t\t\t\t\t}//end while\r\n\t\t\t\t\t\toperands.pop(); //removes '(' from operands stack\r\n\t\t\t\t\t\thasSignToCompare = tempHasSignToCompare.pop();\r\n\t\t\t\t\t}//end if\r\n\t\t\t\t\telse if ( isSign( current ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlastWasNum = false;\r\n\t\t\t\t\t\tif ( hasSignToCompare )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ( peekedHasPrecedence (\toperands.peek (), \t//solve peeked if it has precedence,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcurrent ) )\t\t\t//otherwise push current operand to stack\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tsolveEquation( numbers, operands );\r\n\t\t\t\t\t\t\t\toperands.push( current );\r\n\t\t\t\t\t\t\t}//end if\r\n\t\t\t\t\t\t\telse //peeked did not have precedence\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\toperands.push( current );\r\n\t\t\t\t\t\t\t}//end else\r\n\t\t\t\t\t\t}//end if\r\n\t\t\t\t\t\telse //there was no previous sign to compare\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toperands.push( current ); //push current operand to stack and set corresponding boolean\r\n\t\t\t\t\t\t\thasSignToCompare = true;\r\n\t\t\t\t\t\t}//end else\r\n\t\t\t\t\t}//end else if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn \"Error: Invalid character entered\";\r\n\t\t\t\t\t}//end else\r\n\t\t\t\t}//end if\r\n\t\t\t\telse //lastWasNum = false\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( Character.isDigit( current ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlastWasNum = true;\r\n\t\t\t\t\t\tnumbers.push( current - '0' );\r\n\t\t\t\t\t}//end if\r\n\t\t\t\t\telse if ( current == '(' )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\toperands.push( current );\r\n\t\t\t\t\t\ttempHasSignToCompare.push(hasSignToCompare);\r\n\t\t\t\t\t\thasSignToCompare = false;\r\n\t\t\t\t\t}//end else if\r\n\t\t\t\t\telse if ( isSign( current ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn \"Error: cannot have two adjacent signs\";\r\n\t\t\t\t\t}//end else if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn \"Error: Invalid character entered\";\r\n\t\t\t\t\t}//end else\r\n\t\t\t\t}//end else\r\n\t\t\t}//end for\r\n\t\t\twhile ( !operands.isEmpty() )\r\n\t\t\t{\r\n\t\t\t\tsolveEquation( numbers, operands );\r\n\t\t\t}//end while\r\n\t\t}//end try\r\n\t\tcatch (ArithmeticException ae) \r\n\t\t{\r\n\t\t\treturn ae.toString();\r\n\t\t}//end catch ArithmeticException\r\n\t\tcatch (EmptyStackException ese) {\r\n\t\t\treturn ese.toString() + \" Make sure all parenthesis have a matching pair\";\r\n\t\t}//end catch EmptyStackException\r\n\t\treturn numbers.pop().toString();\r\n\t}",
"DExpression getExpression();",
"public String convertInfix (String exp) throws NumberFormatException \n {\n \n initStack.clear();\n queue.clear();\n finalStack.clear();\n postfixExp = \"\";\n \n for (int i = 0; i<exp.length(); ++i){\n char c = exp.charAt(i); \n if(i > 0){\n char previous = exp.charAt(i-1);\n if((isNumber(c) && isNumber(previous)) || isBalanced(exp) == false){\n throw new NumberFormatException(\"**Invalid Expression**\");\n }\n }\n \n if (Precedence(c) > 0)\n {\n while(initStack.isEmpty() == false && Precedence((char) initStack.top()) >= Precedence(c))\n {\n queue.insertBack(initStack.pop());\n }\n initStack.push(c);\n }\n else if (c ==')')\n {\n char x = (char) initStack.pop();\n while(x!= '(')\n {\n queue.insertBack(x);\n x = (char) initStack.pop();\n }\n }\n else if (c == '(')\n {\n initStack.push(c);\n }\n else\n {\n queue.insertBack(c);\n }\n }\n while (!initStack.isEmpty()) \n {\n queue.insertBack(initStack.pop());\n }\n postfixExp = queue.postFixString();\n postfixExp = postfixExp.replaceAll(\"\\\\s\",\"\");\n return postfixExp;\n }",
"private String translateInfixExpression(InfixExpression e) {\n String left = translateExpression(e.getLeft());\n String right = translateExpression(e.getRight());\n return String.format(\"(%s %s %s)\", left, e.getOp(), right);\n }",
"public String parsePrefixToPostfix(String exp) throws SyntaxError {\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n //parser accepts user input into exp\n \tScanner parser = new Scanner(exp);\n int element;\n String operator;\n String entity;\n String postfixExpression = \"\"; \n String firstOperand, secondOperand;\n int result = 0;\n \n //tokenize prefix string and set up 2 stacks\n Stack<String> operandStack = new Stack<String>();\n Stack<String> reverseOperatorStack = new Stack<String>();\n //while statement to push onto the reversal stack if there are more tokens\n while (parser.hasNext()) {\n entity = parser.next();\n // unless there is a space\n if (!entity.equals(\" \"))\n reverseOperatorStack.push(entity);\n }\n try { \n \t// while statement to pop to reversal stack if it is not empty\n \twhile (!reverseOperatorStack.isEmpty()) {\n //peek to retrieve the token at the top of the stack\n \t\tentity = reverseOperatorStack.peek();\n \t\t//pop to take the token off the stack\n\t reverseOperatorStack.pop();\n\t \n\t // if it is an operand\n\t if (Character.isDigit(entity.charAt(0))) {\n\t \t//push token onto the operand stack\n\t \toperandStack.push(entity);\n\t }\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t \t\t|| entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop first operand off the stack\n\t \tfirstOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop second operand off the stack\n\t secondOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the 2 operands followed by the operator \n\t String miniExpression = firstOperand + \" \" + secondOperand + \" \" + entity;\n\t //push the string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n \t}\n \t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n throw new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the postfix expression off the stack\n postfixExpression = operandStack.peek();\n operandStack.pop();\n //return postfix - holding the converted expression\n return postfixExpression; \n }",
"Expression getExp();",
"public static String infixToPostfix(String expression) {\n if (expression.contains(\" \"))\n {\n String newExpression = expression.replaceAll(\" \", \"\");\n expression = newExpression;\n }\n\n // Check for correct parentheses placement\n int lp = 1, rp = 0;\n String errorMessage = \"\";\n for (int i = 1; i < expression.length(); i++)\n {\n if (expression.charAt(i) == '(') lp++;\n if (expression.charAt(i) == ')') rp++;\n\n if (lp == rp && i < expression.length()-1)\n {\n // Error extra parentheses\n errorMessage = \"Error: Extra parentheses\";\n return errorMessage;\n }\n else if (lp < rp)\n {\n // Error misplaced closing parentheses\n errorMessage = \"Error: Misplaced closing parentheses\";\n return errorMessage;\n }\n else if (lp > rp && i == expression.length()-1)\n {\n // Error missing closing parentheses\n errorMessage = \"Error: Missing closing parentheses\";\n return errorMessage;\n }\n }\n\n // Add implied multiplication\n String impliedMulOptions = \"123456789.)\";\n for (int i = 1; i < expression.length(); i++)\n {\n char c = expression.charAt(i);\n String prevChar = \"\";\n prevChar += expression.charAt(i-1);\n if (c == '(')\n {\n if (impliedMulOptions.contains(prevChar))\n {\n String pre = expression.substring(0, i);\n String post = expression.substring(i);\n expression = pre + '*' + post;\n }\n }\n\n // Also check for multiple subtraction signs can convert\n if (c == '-')\n {\n if (c == prevChar.charAt(0))\n {\n String pre = expression.substring(0, i-1);\n String post = expression.substring(i+1);\n if (expression.charAt(i-2) == '(')\n {\n expression = pre + post;\n i--;\n }\n else expression = pre + '+' + post;\n }\n }\n }\n\n // Handle functions within the expression\n while (expression.contains(\"s\") || expression.contains(\"c\") || expression.contains(\"t\") || expression.contains(\"l\")) {\n if (expression.charAt(0) == 'E') return expression;\n expression = functionPresent(expression);\n }\n\n\n // ----- Create RPN -----\n // Variables to store results\n Stack<String> rpn = new Stack<String>();\n Stack<String> stack = new Stack<String>();\n\n // Define all operators possible in the question\n String operators = \"^*/+-()\";\n\n for (int pos = 0; pos < expression.length(); pos++) {\n char c = expression.charAt(pos);\n\n // If a number, find the end of it and add to stack\n if (Character.isDigit(c)) {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If a negative number, find end of it and add to stack\n if (c == '-' && operators.contains(expression.substring(pos-1, pos)))\n {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.' || seekChar == '-') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If opening a set of parentheses, push it to stack.\n if (c == '(') {\n stack.push(\"(\");\n continue;\n }\n\n // If closing a set of parentheses, pop to rpn until opening parentheses occurs.\n if (c == ')') {\n while (!stack.isEmpty() && stack.peek() != \"(\") {\n rpn.push(stack.pop());\n }\n // Once we hit the open parentheses, pop it and exit loop\n stack.pop();\n continue;\n }\n\n // When an operand has been found\n else {\n while (!stack.isEmpty() && pemdas(c) <= pemdas(stack.peek())) {\n rpn.push(stack.pop());\n }\n String operandString = new String();\n operandString += c;\n stack.push(operandString);\n }\n\n }\n\n // ----- Solve RPN -----\n // Grab the RPN from the stack and turn it into an array to access it properly\n String[] rpnArray = new String[rpn.size()];\n for (int i = rpn.size() - 1; i > -1; i--) {\n rpnArray[i] = rpn.pop();\n }\n\n // If array is just one number, return it\n if (rpnArray.length == 1) return rpnArray[0];\n\n\n\n // Create stack for solving the problem\n Stack<String> solvingStack = new Stack<String>();\n\n for (int i = 0; i < rpnArray.length; i++) {\n // If it is a number, add to stack\n if (!operators.contains(rpnArray[i])) {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n else if (rpnArray[i].charAt(0) == '-' && rpnArray[i].length() > 1)\n {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n // Otherwise we do the math\n else\n {\n // Popping B first because of subtraction, division, and exponent\n double b = Double.parseDouble(solvingStack.pop());\n double a = Double.parseDouble(solvingStack.pop());\n int operator = operators.indexOf(rpnArray[i]);\n double result = 0;\n String resultStr = new String();\n switch (operator) {\n // Exponent\n case 0:\n result = Math.pow(a, b);\n break;\n\n // Multiplication\n case 1:\n result = (a * b);\n break;\n\n // Division\n case 2:\n if (b == 0) return \"Error: Cannot divide by zero\";\n result = (a / b);\n break;\n\n // Addition\n case 3:\n result = (a + b);\n break;\n\n // Subtraction\n case 4:\n result = (a - b);\n break;\n }\n resultStr += result;\n solvingStack.push(resultStr);\n }\n }\n\n\n //double answer = Double.parseDouble(solvingStack.pop());\n return solvingStack.pop();\n }",
"public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}",
"@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}",
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}",
"public String processInfix(char[] input) {\n String result = \"\"; //Initialize the string. This will be the postfix formatted input.\n\n for (int i = 0; i < input.length; i++) {\n\n //If it is a digit it is sent straight to the result\n if (Character.isDigit(input[i])) {\n result += input[i];\n }\n\n //If it is an open bracket it is pushed into the stack.\n else if (input[i] == '(') {\n s.push(input[i]);\n }\n\n //If it is a closed bracket, all items in the stack are popped until an open bracket is found.\n //Both brackets are then discarded\n else if (input[i] == ')') {\n\n while (!s.isEmpty() && (char)s.top() != '(') {\n result += (char)s.pop();\n }\n\n if (!s.isEmpty() && (char)s.top() != '(') {\n System.out.println(\"Invalid Expression. A '(' character must be followed by a ')' in the Expression.\");\n } else {\n s.pop(); //get rid of ( from the eq.\n }\n }\n\n //Else it must be an operand...\n else {\n //loop checks:\n // 1. that the stack is not empty and\n // 2. that the current token is less or equal in priority to the one on the top of the stack\n // If it both are true then the operator is sent to the result\n while(!s.isEmpty() && getPriority(input[i]) <= getPriority((char)s.top())){\n result += (char)s.pop();\n }\n s.push(input[i]);\n }\n }\n\n //Pop the remainder of the stack to the result\n while(!s.isEmpty()){\n result += (char)s.pop();\n }\n\n return result;\n }",
"public Expression getExpression() {\r\n\t\treturn this.expression;\r\n\t}",
"@Override\n public String infix(String string) \n {\n return infix;\n }",
"private String getInfixNotation(String query){\n Stack<Character> signs = new Stack<Character>();\n ArrayList<String> queryParts = new ArrayList<String>();\n String[] splitedQuery = query.split(\" \");\n String infixQuery;\n\n for(int i = 0; i < splitedQuery.length; i++){\n if(isSignOperator(splitedQuery[i]))\n signs.push(splitedQuery[i].charAt(0));\n else if(isOrderByCommand(splitedQuery[i]))\n queryParts.add(splitedQuery[i] + \" \" + splitedQuery[++i] + \" \" + splitedQuery[++i]);\n else {\n String word0 = splitedQuery[i];\n Character sign = signs.pop();\n String word1 = splitedQuery[++i];\n\n queryParts.add(\" ( \" + word0 + \" \" + sign + \" \" + word1 + \" ) \");\n this.subQueries.add(word0 + \" \" + sign + \" \" + word1);\n }\n }\n\n infixQuery = queryParts.get(0);\n\n for(int j = 1; j < queryParts.size(); j++){\n if(!signs.empty()) {\n infixQuery = \" ( \" + infixQuery + signs.pop() + queryParts.get(j) + \" ) \";\n }else\n infixQuery += \" \" + queryParts.get(j).toUpperCase();\n }\n\n return infixQuery;\n }",
"public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}",
"public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }",
"private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }",
"public static String convertInfixToPostfix(String infixExpression) {\r\n //Initializing final return string\r\n String postfix = \"\";\r\n //String Array of all elements\r\n String[] expElements = infixExpression.split(\" \");\r\n //New String Array for the numbers\r\n String[] operands = new String[infixExpression.length()];\r\n //New expressions for operators\r\n Expressions operators = new Expressions();\r\n //New stack for operators\r\n Stack operatorStack = new Stack();\r\n \r\n //Trackers for parentheses\r\n int openParenthesis = 0;\r\n int closedParenthesis = 0;\r\n \r\n //Iterate through for length of array of all expressions\r\n for(int i = 0; i < expElements.length; i++) {\r\n //If operator than push to stack\r\n if(expElements[i].equals(\"*\")||expElements[i].equals(\"/\")\r\n ||expElements[i].equals(\"+\")||expElements[i].equals(\"-\")) {\r\n operatorStack.push(new Expressions(expElements[i]));\r\n }\r\n //if open parenthesis add to count\r\n else if(expElements[i].equals(\"(\")) {\r\n openParenthesis++;\r\n }\r\n //if closed parenthesis add to count and pop operator\r\n else if(expElements[i].equals(\")\")) {\r\n closedParenthesis++;\r\n postfix += \" \" + operatorStack.pop();\r\n }\r\n //otherwise it is an integer, add it to array of operands\r\n else {\r\n operands[i] = expElements[i];\r\n postfix += \" \" + operands[i];\r\n }\r\n \r\n }\r\n //Error detection for not enough matching parentheses.\r\n if(openParenthesis!=closedParenthesis){\r\n postfix = \"Parenthesis not equal error.\";\r\n }\r\n //return final expression in postfix notation, delimited by spaces\r\n return postfix; \r\n }",
"public Equation()\r\n\t{\r\n\t\texpression = \"\";\r\n\t}",
"public int eval(String expression) {\n String token;\n // The 3rd argument is true to indicate that the delimiters should be used\n // as tokens, too. \n this.tokenizer = new StringTokenizer(expression, DELIMITERS, true);\n\n //initialized with # operator, used as bogus to compare priorities and detect end of operatorStack.\n operatorStack.push(new PoundOperator());\n\n //Checks whether there are more tokens to be pushed in stacks\n while (this.tokenizer.hasMoreTokens()) {\n // filter out spaces\n if (!(token = this.tokenizer.nextToken()).equals(\" \")) {\n // check if token is an operand\n if (Operand.check(token)) {\n operandStack.push(new Operand(token));\n\n } else {\n if (!Operator.check(token)) {\n System.out.println(\"*****invalid token******\");\n System.exit(1);\n }\n\n //Gets a newOperator it matches from hashmap.\n Operator newOperator = Operator.getToken(token);\n\n //Processes only, when there is greater priority in stack and there are no '('\n while (operatorStack.peek().priority() >= newOperator.priority() && !newOperator.equals(Operator.getToken(\"(\"))) {\n\n //If the token read is ), then there is already '(' which is inserted in the operator stack.\n if (token.equals(\")\")) {\n //Perform until, the '(' is on top of the stack.\n while (!operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n\n }\n\n //If '(' found on top, pop and break, to continue to read more takens\n if (operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n operatorStack.pop();\n break;\n }\n\n } \n //if ')' not found, it means either its in '(' or there are no parenthesis\n else {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n }\n }\n //Pushes the operator, when the operator!=')'\n if (!newOperator.equals(Operator.getToken(\")\"))) {\n operatorStack.push(newOperator);\n }\n }\n }\n }\n // No more tokens to be read. All the tokens are in stacks, gets processed.\n if (!this.tokenizer.hasMoreTokens()) {\n //Keeps processing, until it reaches #\n while (operatorStack.size() != 1) {\n Operator oldOpr = operatorStack.pop();\n //Checks if there are operand left to be used,\n if (!operandStack.empty()) {\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n } else {\n System.exit(1);\n }\n }\n }\n // Returns, the final result\n return operandStack.pop().getValue();\n }",
"public Expr getExpression()\n {\n Parser.validateExpr(expression, analysis);\n return expression;\n }",
"public static String infixToPostfix(String infix) throws PostFixException{\n\t\t//Create a new stack object to hold operators from infix expression\n\t\tStack<String> operatorStack = new Stack<String>();\n\t\tString postfix = \"\";\n\t\tString curToken = \"\";\n\t\tScanner getToken = new Scanner(infix);\n\t\t//holds the previous token type as a string\n\t\tString previousTokenType = \"first token\";\n\t\t\n\t\t//Iterate over all tokens in expression\n\t\twhile(getToken.hasNext()){\n\t\t\tcurToken = getToken.next();\n\t\t\t\n\t\t\t//if the token is an operand (meaning it is an integer), add to postfix expression\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\t//if the token sequence is valid, add the current token to the psotfix expression\n\t\t\t\tif(checkValidTokenSequence(\"operand\", previousTokenType)){\n\t\t\t\t\tpostfix += (curToken + \" \");\n\t\t\t\t\tpreviousTokenType = \"operand\";\n\t\t\t\t}\n\t\t\t\telse{ //otherwise throw an exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is a left bracket check that the token sequence is valid and push the\n\t\t\t//token on the stack\n\t\t\telse if(curToken.equals(\"(\")){\n\t\t\t\tif(checkValidTokenSequence(\"left bracket\", previousTokenType)){\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"left bracket\";\n\t\t\t\t}\n\t\t\t\telse{//if the token sequence is invalid throw and exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the token is an operator, check sequence validity\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\t//if the token is an operator and it is the first token, the expression is invalid\n\t\t\t\tif(previousTokenType.equals(\"first token\")){\n\t\t\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t\t\t}\n\t\t\t\t//if the token sequence is valid, add all operator on stack with lower or equal precedence to\n\t\t\t\t//to the prefix expression\n\t\t\t\tif(checkValidTokenSequence(\"operator\", previousTokenType)){\n\t\t\t\t\twhile(!operatorStack.empty() && checkPrecedence(operatorStack.peek(),curToken)){\n\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t}\n\t\t\t\t\t//push the current token on the operator stack\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"operator\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//if the token sequence is invalid, throw exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is a right bracket, check that token sequence is valid\n\t\t\telse if(curToken.equals(\")\")){\n\t\t\t\t\n\t\t\t\t//if the token sequence is valid, add all operators on operator stack \n\t\t\t\t//to the prefix expression until the matching left bracket is reached\n\t\t\t\tif(checkValidTokenSequence(\"right bracket\", previousTokenType)){\n\t\t\t\t\tboolean hasMatchingBracket = false;\n\t\t\t\t\t\n\t\t\t\t\twhile(!operatorStack.empty()){\n\t\t\t\t\t\tif(!operatorStack.peek().equals(\"(\")){\n\t\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\toperatorStack.pop();\n\t\t\t\t\t\t\thasMatchingBracket = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If the right bracket does not have a matching left bracket, throw an exception\n\t\t\t\t\tif(!hasMatchingBracket){\n\t\t\t\t\t\tthrow new PostFixException(\"Missing left bracket\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpreviousTokenType = \"right bracket\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If the token sequence is invalid throw an exception\n\t\t\t\telse{\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is not a valid token, throw an exception\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check to see if the last token was an operator, if so throw an exception\n\t\tif(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t}\n\t\t\n\t\t//while there operator stack is not empty, pop whatever is in the stack and append\n\t\twhile(!operatorStack.empty()){\n\t\t\t//if there is a bracket left in the stack, then the infix expression is invalid\n\t\t\tif(operatorStack.peek().equals(\"(\") || operatorStack.peek().equals(\")\")){\n\t\t\t\tthrow new PostFixException(\"Bracket mismatch\");\n\t\t\t}\n\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//return the postfix expression\n\t\treturn postfix;\n\t}",
"public String toString()\r\n\t{\r\n\t\tcheckInitialization();\r\n\t\treturn equationString + \" = \" + getResult();\r\n\t}",
"protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }",
"private void expression(){\n\t\twhile (in.token != Token.exit){\n\t\t\tdouble value = terms();\n\t\t\tif(in.buffer.variableDetected && initialization == true){\n\t\t\t\tvariables.put(in.buffer.variable, new BigDecimal(value));\n\t\t\t\tin.buffer.variableDetected = false;\n\t\t\t}\n\t\t\telse\n\t\t\t\tif(initialization && !in.buffer.empty)\n\t\t\t\t\tSystem.out.println(\"= \" + value);\n\t\t\tinitialization = true;\n\t\t\tin.getToken(); \t\t\t//This command flushes the end of input marker \";\" which allows for new expressions to be taken in.\n\t\t}\n\t}",
"private Expr expression() {\n return assignment();\n }",
"public String toString() {\n return \"(\" + getExpLeft().toString() + \" * \" + getExpRight().toString() + \")\";\n }",
"public String toString() {\n if (mExpression.size() == 1 && mExpression.get(0).startsWith(\"-\")) {\n return mExpression.get(0);\n }\n\n StringBuilder output = new StringBuilder();\n boolean first = true;\n int size = mExpression.size();\n\n for (int i = 0; i < size; i++) {\n String element = mExpression.get(i);\n\n if (first) {\n first = false;\n } else {\n output.append(\"\");\n }\n\n\n if (isOperand(element) && element.startsWith(\"-\")) {\n output.append(\"(\")\n .append(element)\n .append(\")\");\n } else {\n output.append(element);\n }\n }\n\n return output.toString();\n }",
"public String parsePostfixToPrefix(String exp) throws SyntaxError {\n \t// throws error message if there is no expression entered\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n Scanner parser = new Scanner(exp);\n String entity;\n //tokenize the string containing the postfix expression\n Stack<String> operandStack = new Stack<String>();\n String firstOperand, secondOperand;\n // try-catch to validate data has been entered\n try {\n\t \t//while there are more tokens\n \t\twhile (parser.hasNext()) {\n\t entity = parser.next();\n\t // if it is a space, skip it\n\t if (entity.equals(\" \"));\n\t // if it is a operand, push it onto the operand stack\n\t if (Character.isDigit(entity.charAt(0)))\n\t operandStack.push(entity);\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t || entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop operand 1 off the operand stack\n\t \tsecondOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop operand 2 off the operand stack\n\t firstOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the operator followed by 2 operands\n\t String miniExpression = entity + \" \" + firstOperand + \" \" + secondOperand;\n\t //push the miniExpression string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n\t }\n\t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n \tthrow new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the prefix expression off the operand stack\n String prefix = operandStack.peek();\n operandStack.pop();\n //return prefix - holding the converted expression\n return prefix;\n }",
"public String convertPostfixToInfix(String postfixstring)\n {\n//implementing stack\n Stack<String> s = new Stack<>();\n//iterates over the postfix expression\n for (int i = 0; i < postfixstring.length(); i++)\n {\n//reading a character at a time\n char ch = postfixstring.charAt(i);\n//inside the if-statement we have called the user-defined function that checks whether the character is operator or not\n if (isOperator(ch))\n {\n String b = s.pop();\n String a = s.pop();\n//push the character (operator) into stack in between the string a and b\n s.push(\"(\" + a + ch + b + \")\");\n }\n else\n//push character into the stack\n s.push(\"\" + ch);\n }\n//pop character from the stack and returns the same\n return s.pop();\n }",
"@Override\r\n public void infixDisplay() {\r\n System.out.print(value);\r\n }",
"public String toString() {\n return fullExpression;\n }",
"public static void main(String[] args) {\n\t\tPostFix aux,courant, racine;\r\n\t\t\r\n\t\t sc = new Scanner(System.in);\r\n\t\t System.out.println(\"Entrer l'expression postfixée--->\");\r\n\t\t ArrayList<String> list ; \r\n\t\t String PostEntre = sc.nextLine();\r\n\t\t \r\n\t\t list = new ArrayList<>(Arrays.asList(PostEntre.split(\" \")));\r\n\t\t \r\n\t\t ArrayDeque<PostFix> pil = new ArrayDeque<PostFix>();\r\n\t\t for (String s : list){\r\n\t\t\t courant = new PostFix(s);\r\n\t\t\t if (isOperator(s)){\r\n\t\t\t\t aux = pil.pop();\r\n\t\t\t\t courant.setfilsgauche(pil.pop());\r\n\t\t\t\t courant.setfilsdroit(aux);\r\n\t\t\t }\r\n\t\t\t pil.push(courant);\r\n\t\t\t \r\n\t\t }\r\n\t\t racine = pil.pop();\r\n\t\t System.out.println(\"L'arbre est : \" );\r\n\t\t System.out.println(racine + \"\\n\" );\r\n\t\t // racine.Afficher(racine);\r\n\t\t \r\n\t\t //----------------------------to prefix------------------------\r\n\t\t String s1,s2,sor;\r\n\t\t \r\n\t\t ArrayDeque<String> operst = new ArrayDeque<String>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t operst.push(n);\r\n\t\t\t else{\r\n\t\t\t\ts2 = operst.pop();\r\n\t\t\t \ts1 = operst.pop();\r\n\t\t\t \tsor = n +\" \"+ s1 +\" \"+ s2;\r\n\t\t\t operst.push(sor);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"L'expression prefixee donne: \");\r\n\t\t System.out.println(operst.pop()+\"\\n\");\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\t\t \r\n\t\t \r\n\t\t //-----------------------------evaluation-----------------------\r\n\t\t Double oper1, oper2,result;\r\n\t\t ArrayDeque<Double> abc = new ArrayDeque<Double>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t abc.push(Double.valueOf(n));\t\t\t\r\n\t\t\t else{\r\n\t\t\t\t oper2 = abc.pop();\t\t\t \t\r\n\t\t\t\t oper1 = abc.pop();\r\n\t\t\t \tresult = operate(oper1,oper2,n);\t\t\t \r\n\t\t\t \t\tabc.push(result);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"l'evaluation donne: \");\r\n\t\t System.out.println(abc.pop());\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\r\n\t}",
"@Test\n\tpublic void expression1() throws SyntaxException, LexicalException {\n\t\tString input = \"2\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tSimpleParser parser = new SimpleParser(scanner);\n\t\tparser.expression(); // Call expression directly.\n\t}",
"@Override public void enterCompop(MicroParser.CompopContext ctx) {\n//\t\tSystem.out.println(\"Enter compop: \" + infixS);\n//\t\tSystem.out.println(ctx.getText());\n\n\t\tString lhs = infixS.get(0); //WILL NOT WORK WITH EXPRESSIONS\n\n\t\t//Determine the type of var on LHS\n\t\ttry{\n\t\t\tif(Integer.valueOf(lhs) instanceof Integer){\n\t\t\t\tIRNode.tempCnt++;\n\t\t\t\tthis.meIRL.add(new IRNode(\"STOREI\", lhs, \"\", \"$T\" + IRNode.tempCnt));\n\t\t\t\tlhsType = \"INT\";\n\t\t\t}\n\t\t}\n\t\tcatch (Exception err1){\n\t\t\ttry{\n\t\t\t\tif(Float.valueOf(lhs) instanceof Float){\n\t\t\t\t\tIRNode.tempCnt++;\n\t\t\t\t\tthis.meIRL.add(new IRNode(\"STOREF\", lhs, \"\", \"$T\" + IRNode.tempCnt));\n\t\t\t\t\tlhsType = \"FLOAT\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception err2){\n\t\t\t\t\tString type = \"\";\n\t\t\t\t\tArrayList<List<String>> varList = st.varMap.get(\"GLOBAL\");\n\t\t\t\t if(varList != null){\n\t\t\t\t for(List<String> varData : varList){\n\t\t\t\t \tif(varData.get(0).equals(lhs)){\n\t\t\t\t \t\ttype = varData.get(1);\n\t\t\t\t \t}\n\t\t\t\t }\n\t\t\t\t }\n\n\t\t\t\t\tShuntingYard sy = new ShuntingYard();\n\t\t\t\t\tString postfixS = sy.infixToPostfix(infixS);\n\n\t\t\t\t\t//Tests Postfix Tree\n\t\t\t\t\tPostfixTree pfTree = new PostfixTree();\n\t\t\t\t\tPostfixTreeNode root = pfTree.createTree(postfixS);\n\n\t\t\t\t\t//adds tree to IRList\n\t\t\t\t\troot.toIRList(root, this.meIRL, type);\n\t\t\t\t\tif(type.compareTo(\"FLOAT\") == 0){\n\t\t\t\t \t\tthis.meIRL.add(new IRNode(\"STOREF\", lhs, \"\", \"$T\"+ IRNode.tempCnt));\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.meIRL.add(new IRNode(\"STOREI\", lhs, \"\", \"$T\"+ IRNode.tempCnt));\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t \tlhsType = type;\n\t\t\t\t \tlhsTemp = IRNode.tempCnt;\n\t\t\t}\n\t\t}\n\n\t}",
"private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}",
"public static String convertInfixToPostfix(String infix) throws InvalidNotationFormatException {\n\t\tNotationQueue<String> postfix = new NotationQueue<String>(infix.length());\n\t\tNotationStack<String> eval = new NotationStack<String>(infix.length());\n\t\tchar[] expr = infix.toCharArray();\n\t\tfor (int i = 0; i < expr.length; i++) {\n\t\t\tif (Character.isDigit(expr[i])) {\n\t\t\t\ttry {\n\t\t\t\t\tpostfix.enqueue(String.valueOf(expr[i]));\n\t\t\t\t}catch(QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i] == '(') {\n\t\t\t\ttry {\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]=='+'||expr[i]=='-'||expr[i]=='*'||expr[i]=='/') {\n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(' && prec(expr[i]) <= prec(eval.top().charAt(0))){\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]==')') { \n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(') {\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\tif(eval.size()==0){\n\t\t\t\t\t\tthrow new InvalidNotationFormatException();\n\t\t\t\t\t}else {\n\t\t\t\t\t\teval.pop();\n\t\t\t\t\t}\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\twhile(!eval.isEmpty()) {\n\t\t\t\tString pop1 = eval.pop();\n\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t}\n\t\t}catch (StackUnderflowException e) {\n\t\t\te.printStackTrace();\n\t\t}catch (QueueOverflowException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn postfix.toString();\n\t}",
"void expr() throws IOException {\n\t\tinput = input+(char)lookahead;\n\t\tterm();\n\t\trest();\n\t\tprintPostfix();\n\t}",
"public ExpressionInterface getExpression() {\r\n\t\treturn this.expression;\r\n\t}",
"Expr getExpr();",
"public Expression() {\r\n\t\ttext = new StringBuffer();\r\n\t\txttext = new StringBuffer();\r\n\t}",
"public static void equationParse(StringBuilder eqn) {\n ScriptEngine engine = new ScriptEngineManager().getEngineByExtension(\"js\");\n \n try {\n Object result = engine.eval(displayString.toString());\n displayString.replace(0, displayString.length(), result.toString());\n numField.setText(displayString.toString());\n } catch (ScriptException e) {\n displayString.replace(0, displayString.length(), \"ERROR\");\n numField.setText(displayString.toString());\n //e.printStackTrace();\n }\n }",
"public String getEquationString()\r\n\t{\r\n\t\tcheckInitialization();\r\n\t\treturn equationString;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}",
"LogicExpression getExpr();",
"public String operate() {\r\n\r\n\t\t// Logger log = Logger.getLogger(IterationFactory.class);\r\n\t\tDecimalFormat form = new DecimalFormat(\"0.0000\");\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tOperationFactory operateF;\r\n\t\tList<Integer> valueList;\r\n\r\n\t\tIterator<String> inputItr = this.getInputList().iterator();\r\n\r\n\t\tIterator<Character> opItr = this.getOperator().iterator();\r\n\r\n\t\ttry {\r\n\t\t\t/* Domain check */\r\n\t\t\tif (this.getInputList().size() <= 1 && this.getInputList().size() >= 10) {\r\n\t\t\t\tthrow new ValuePairOutOfLimit(this.getInputList().size());\r\n\t\t\t}\r\n\r\n\t\t\twhile (inputItr.hasNext()) {\r\n\r\n\t\t\t\t/* To get individual operands from operand sets */\r\n\t\t\t\tvalueList = u.toValueList(inputItr.next());\r\n\t\t\t\tIterator<Integer> valItr = valueList.iterator();\r\n\r\n\t\t\t\t/* Check for validity of operands and string format */\r\n\t\t\t\tif (valueList.size() < Constant.TWO)\r\n\t\t\t\t\tthrow new OperandException();\r\n\t\t\t\tif (valueList.size() > Constant.TWO)\r\n\t\t\t\t\tthrow new StringFormatException();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * If there is empty operator string default operator sets to\r\n\t\t\t\t * plus\r\n\t\t\t\t */\r\n\t\t\t\tif (operator.size() == 0)\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), Constant.PLUS);\r\n\t\t\t\telse\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), opItr.next());\r\n\r\n\t\t\t\t/* Output */\r\n\t\t\t\tsb.append(operateF.getmOp().getmOperand1() + operateF.getmOp().getmWord()\r\n\t\t\t\t\t\t+ operateF.getmOp().getmOperand2() + \" = \" + form.format(operateF.operate()) + \"\\n\");\r\n\r\n\t\t\t\t/*To reset operator iterator.*/\r\n\t\t\t\tif (!opItr.hasNext())\r\n\t\t\t\t\topItr = this.getOperator().iterator();\r\n\t\t\t}\r\n\t\t} catch (IntegerOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (InvalidOperator e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (OperandException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (StringFormatException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (ValuePairOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"@Override\n\tpublic String toInfixNotation() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\t\t\treturn EMPTY + num;\n\t\t}\n\t\tcatch(NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\t\n\t\t\treturn OPEN_PAREN + left.toInfixNotation() + SPACE + getValue() \n\t\t\t\t\t+ SPACE + right.toInfixNotation() + CLOSED_PAREN;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}",
"public abstract XPathExpression getExpression();",
"private StringBuilder getOperand() {\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\treturn firstNumber;\r\n\t\t} else {\r\n\t\t\treturn secondNumber;\r\n\t\t}\r\n\t}",
"public String transformInfixToPostfix(String input) {\n\n List<String> outputQueue = new LinkedList<>();\n\n Stack<Operation> operationStack = new Stack<>();\n final String[] splitedEquation = input.split(\" \");\n for (String token : splitedEquation) {\n if (isOperator(token)) {\n OperatorParser operatorParser = new OperatorParser(outputQueue, operationStack,\n token).invoke();\n outputQueue = operatorParser.getOutputQueue();\n operationStack = operatorParser.getOperationStack();\n } else {\n outputQueue = addImmutable(outputQueue, token);\n }\n }\n\n outputQueue = addOperationsToOutputQueue(outputQueue, operationStack);\n\n return Stream.of(outputQueue)\n .collect(Collectors.joining(\" \"));\n }",
"public PrimaryExpression getExpression()\r\n {\r\n\treturn m_expression;\r\n }",
"@Override\n public String toString() {\n return \"(\" + getExpression1() + \" - \" + getExpression2() + \")\";\n }",
"public final ManchesterOWLSyntaxAutoComplete.expression_return expression() {\n ManchesterOWLSyntaxAutoComplete.expression_return retval = new ManchesterOWLSyntaxAutoComplete.expression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.conjunction_return c = null;\n ManchesterOWLSyntaxAutoComplete.expression_return chainItem = null;\n ManchesterOWLSyntaxAutoComplete.conjunction_return conj = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return cpe = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:106:2:\n // ( ^( DISJUNCTION (c= conjunction )+ ) | ^( PROPERTY_CHAIN\n // (chainItem= expression )+ ) | conj= conjunction | cpe=\n // complexPropertyExpression )\n int alt4 = 4;\n switch (input.LA(1)) {\n case DISJUNCTION: {\n alt4 = 1;\n }\n break;\n case PROPERTY_CHAIN: {\n alt4 = 2;\n }\n break;\n case IDENTIFIER:\n case ENTITY_REFERENCE:\n case CONJUNCTION:\n case NEGATED_EXPRESSION:\n case SOME_RESTRICTION:\n case ALL_RESTRICTION:\n case VALUE_RESTRICTION:\n case CARDINALITY_RESTRICTION:\n case ONE_OF: {\n alt4 = 3;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt4 = 4;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 4, 0, input);\n throw nvae;\n }\n switch (alt4) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:4:\n // ^( DISJUNCTION (c= conjunction )+ )\n {\n match(input, DISJUNCTION, FOLLOW_DISJUNCTION_in_expression226);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:19:\n // (c= conjunction )+\n int cnt2 = 0;\n loop2: do {\n int alt2 = 2;\n int LA2_0 = input.LA(1);\n if (LA2_0 >= IDENTIFIER && LA2_0 <= ENTITY_REFERENCE\n || LA2_0 == CONJUNCTION || LA2_0 == NEGATED_EXPRESSION\n || LA2_0 >= SOME_RESTRICTION && LA2_0 <= ONE_OF) {\n alt2 = 1;\n }\n switch (alt2) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:21:\n // c= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression235);\n c = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(c.node.getCompletions());\n }\n }\n break;\n default:\n if (cnt2 >= 1) {\n break loop2;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(2, input);\n throw eee;\n }\n cnt2++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:6:\n // ^( PROPERTY_CHAIN (chainItem= expression )+ )\n {\n match(input, PROPERTY_CHAIN, FOLLOW_PROPERTY_CHAIN_in_expression248);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:24:\n // (chainItem= expression )+\n int cnt3 = 0;\n loop3: do {\n int alt3 = 2;\n int LA3_0 = input.LA(1);\n if (LA3_0 >= IDENTIFIER && LA3_0 <= ENTITY_REFERENCE\n || LA3_0 >= DISJUNCTION && LA3_0 <= NEGATED_EXPRESSION\n || LA3_0 >= SOME_RESTRICTION && LA3_0 <= ONE_OF\n || LA3_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n alt3 = 1;\n }\n switch (alt3) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:25:\n // chainItem= expression\n {\n pushFollow(FOLLOW_expression_in_expression256);\n chainItem = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(chainItem.node\n .getCompletions());\n }\n }\n break;\n default:\n if (cnt3 >= 1) {\n break loop3;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(3, input);\n throw eee;\n }\n cnt3++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:114:5:\n // conj= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression276);\n conj = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(conj.node\n .getCompletions());\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:118:5:\n // cpe= complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_expression291);\n cpe = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(cpe.node\n .getCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }",
"int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}",
"public static int expression()\r\n {\r\n //get the start state of this term\r\n int r,t1,f1;\r\n t1=r=term();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if this is concatenation\r\n if(expression.charAt(index)=='.'||isVocab(expression.charAt(index))||expression.charAt(index)=='\\\\'\r\n ||expression.charAt(index)=='['||expression.charAt(index)=='(')\r\n {\r\n //get the start state of this expression and\r\n //update next1 and next2\r\n int t2,cur;\r\n cur=state-1;\r\n t2=expression();\r\n if(stateList.get(cur).getNext1()==stateList.get(cur).getNext2())\r\n {\r\n stateList.get(cur).setNext1(t2);\r\n }\r\n stateList.get(cur).setNext2(t2);\r\n\r\n }\r\n\r\n //if there is no more input, we are done\r\n if(index>=expression.length())\r\n {\r\n return r;\r\n }\r\n\r\n //if this is alternation\r\n if(expression.charAt(index)=='|')\r\n {\r\n //if there is nothing after '|', it is a invalid expression\r\n index++;\r\n if(index>expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //create a branch state,set the nex1 of the branch state to the term\r\n //so a|b and a|b|c both work\r\n int t2;\r\n f1=state-1;\r\n\r\n state st=new state(state,\"BR\",t1,-1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n\r\n //get the start state of this expression\r\n t2=expression();\r\n\r\n //update the branch state's next2 to the start state of the expression\r\n stateList.get(f1+1).setNext2(t2);\r\n\r\n //update term's next1 and next2\r\n if(stateList.get(f1).getNext1()==stateList.get(f1).getNext2())\r\n {\r\n stateList.get(f1).setNext1(state);\r\n }\r\n stateList.get(f1).setNext2(state);\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n return r;\r\n }",
"public String toString() {\n return operator + \"(\" + argument + \")\";\n }",
"public String solve(String postfixExp) {\n Stack<String> stack = new Stack<String>();\n char ch;\n int inputLength = postfixExp.length();\n\n for (int i = 0; i < inputLength; i++) {\n ch = postfixExp.charAt(i);\n\n if (ch == ' ') {\n // Do nothing, space found.\n }\n else if (isOperand(ch)) {\n int n = 0; // This will eventually hold our final value.\n\n while (isOperand(ch)) {\n n = (n * 10) + (int) (ch - '0');\n i++;\n ch = postfixExp.charAt(i);\n }\n i--;\n\n stack.push(Integer.toString(n));\n }\n else {\n double tempOne = Double.parseDouble(stack.pop());\n double tempTwo = Double.parseDouble(stack.pop());\n\n switch (ch) {\n case '+':\n stack.push(Double.toString(tempTwo + tempOne));\n break;\n case '-':\n stack.push(Double.toString(tempTwo - tempOne));\n break;\n case '*':\n stack.push(Double.toString(tempTwo * tempOne));\n break;\n case '/':\n if (tempOne == 0) {\n return \"Error: Division by 0\";\n } else {\n stack.push(Double.toString(tempTwo / tempOne));\n }\n break;\n case '^':\n double temp3 = (double)(Math.pow(tempTwo, tempOne));\n stack.push(Double.toString(temp3));\n break;\n }\n }\n }\n\n String evaluation = stack.pop();\n\n return evaluation;\n }",
"public void actionPerformed(ActionEvent e) {\n if (_startNumber) { // Error: needed number, not operator\n //... In this state we're expecting a number, but got an operator.\n actionClear();\n _display.setText(\"ERROR - No operator\");\n } else {\n //... We're expecting an operator.\n _startNumber = true; // Next thing must be a number\n try {\n // Get value from display field, convert, do prev op\n // If this is the first op, _previousOp will be =.\n String displayText = _display.getText();\n \n if (_previousOp.equals(\"=\")) {\n _logic.setTotal(displayText);\n } else if (_previousOp.equals(\"+\")) {\n _logic.add(displayText);\n } else if (_previousOp.equals(\"-\")) {\n _logic.subtract(displayText);\n } else if (_previousOp.equals(\"*\")) {\n _logic.multiply(displayText);\n } else if (_previousOp.equals(\"/\")) {\n _logic.divide(displayText);\n } else if (_previousOp.equals(\"AND\")) {\n _logic.and(displayText);\n } else if (_previousOp.equals(\"OR\")) {\n _logic.or(displayText);\n } else if (_previousOp.equals(\"XOR\")) {\n _logic.xor(displayText);\n } else if (_previousOp.equals(\"NOR\")) {\n _logic.nor(displayText);\n } else if (_previousOp.equals(\"NAND\")) {\n _logic.nand(displayText);\n }\n \n _display.setText(\"\" + _logic.getTotalString());\n \n } catch (NumberFormatException ex) {\n actionClear();\n _display.setText(\"Error\");\n }\n \n //... set _previousOp for the next operator.\n _previousOp = e.getActionCommand();\n }//endif _startNumber\n }",
"private void calculate () {\n try {\n char[] expression = expressionView.getText().toString().trim().toCharArray();\n String temp = expressionView.getText().toString().trim();\n for (int i = 0; i < expression.length; i++) {\n if (expression[i] == '\\u00D7')\n expression[i] = '*';\n if (expression[i] == '\\u00f7')\n expression[i] = '/';\n if (expression[i] == '√')\n expression[i] = '²';\n }\n if (expression.length > 0) {\n Balan balan = new Balan();\n double realResult = balan.valueMath(String.copyValueOf(expression));\n int naturalResult;\n String finalResult;\n if (realResult % 1 == 0) {\n naturalResult = (int) Math.round(realResult);\n finalResult = String.valueOf(naturalResult);\n } else\n finalResult = String.valueOf(realResult);\n String error = balan.getError();\n // check error\n if (error != null) {\n mIsError = true;\n resultView.setText(error);\n if (error == \"Error div 0\")\n resultView.setText(\"Math Error\");\n } else { // show result\n expressionView.setText(temp);\n resultView.setText(finalResult);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }",
"private void infix(ExpressionNodes root, StringBuilder sb)\n\t {\t\n\t \t\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tinfix(root.left, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t \t\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tinfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t }",
"public double calculate(String expression) {\n\t\tString[] inputs = expression.split(\" \");\n\t if(debug) {\n\t\tSystem.out.print(\"Input array: \");\n\t\tfor(String value : inputs) {\n\t\t\tSystem.out.print(value + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t }\t\n\t\t\n\t\t// Go through the string array and pop operators onto the\n\t\t// operators stack and operands onto the the operands stack\n\t\tfor(String value : inputs) {\n\t\t if(debug) System.out.println(\"Evaluating: \" + value);\n\t\t\tif(value.equals(\"*\") || value.equals(\"/\") || value.equals(\"+\") || value.equals(\"-\")) {\n\t\t\t\t// If stack is empty push onto stack\n\t\t\t\tif(operand.empty()) {\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If new operator is higher than old push onto\n\t\t\t\t// stack\n\t\t\t\telse if(value.equals(\"*\") || value.equals(\"/\")) {\n\t\t\t\t\tString old = (String)operand.peek();\n\t\t\t\t\tif(old.equals(\"*\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = a*b;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse if(old.equals(\"/\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = b/a;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse operand.push(value);\n\t\t\t\t}\n\n\t\t\t\t// Else pop old operator and evaluate top two\n\t\t\t\t// elements on operand stack then push new\n\t\t\t\t// operator onto stack\n\t\t\t\telse {\n\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\tString old = (String)operand.pop();\n\t\t\t\t if(debug) {\n\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t }\n\t\t\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\t\t\telse a = b-a;\n\t\t\t\t\toperators.push(a);\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Put operators into operators stack\n\t\t\telse {\n\t\t\t try {\n\t\t\t\tDouble num = Double.parseDouble(value);\n\t\t\t\toperators.push(num);\n\t\t\t }\n\t\t\t catch(NumberFormatException e) {\n\t\t\t\t System.out.println(\"NumberFormatException: Something besides a number or operator entered\");\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t// Finish up everything left over in stack\n\t\tString old;\n\t\tdouble a;\n\t\tdouble b;\n\t\twhile(!operand.empty()) {\n\t\t\told = (String)operand.pop();\n\t\t\ta = (Double)operators.pop();\n\t\t\tb = (Double)operators.pop();\n\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\telse a = b-a;\n\t\t\toperators.push(a);\n\t\t}\n\t\treturn (Double)operators.peek();\n\t}",
"public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JTextField inputCell = (JTextField) e.getSource();\n String[] operands = inputCell.getText().split(\" \");\n InterpreterDesignPattern interpreter = new InterpreterDesignPattern();\n\n if (listenerF == null) {\n listenerF = new ValueViewObserverF(equationView.getValView());\n }\n\n //following line fetches current expression from the jTextField where user made changes\n ((ValueViewObserverF) listenerF).setExpression(inputCell.getText());\n\n //This line unregisters listenerF from unwanted subjects\n equationView.getValView().removeObserver(listenerF);\n\n //This line dynamically registers listenerF object in jTextFields according to cell labels in operands\n equationView.getValView().registerObserver(listenerF, operands);\n\n //Following line evaluates an expression entered by user and displays that result in value view\n equationView.getValView().getjTextField7().setText(interpreter.interpretPostfixExpression(\n equationView.getInputString(operands)));\n\n //Following line will store a state of the Equation View GUI, after the user changes an expression.\n equationView.createMemento();\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n int t=0;\n String s=e.getActionCommand();\n if(s.equals(\"+\")||s.equals(\"-\")||s.equals(\"*\")||s.equals(\"/\")) {\n input+=\" \"+s+\" \"; //如果碰到运算符,就在运算符前后分别加一个空格,\n //为后面的分解字符串做准备\n\n }else if(s.equals(\"清零\")) {\n input=\"\";\n }else if(s.equals(\"退格\")) {\n if((input.charAt(input.length()-1))==' ') { //检测字符串的最后一个字符是否为空格,\n input=input.substring(0,input.length()-3);//如果是则删除末尾3个字符,否则删除\n //1个字符\n }else {\n input=input.substring(0,input.length()-1);\n }\n }\n else if(s.equals(\"=\")) {\n input=compute(input);\n jt.setText(input);\n input=\"\";\n t=1;\n }\n else\n input += s;\n if(t==0) {\n jt.setText(input);\n }\n }",
"static String infixToPostfix(String infix) {\n final String ops = \"-+/*^\";\n \n StringBuilder sb = new StringBuilder();\n Stack<Integer> s = new Stack<>();\n \n for (String token : infix.split(\"\\\\s\")) {\n if (token.isEmpty())\n continue;\n char c = token.charAt(0);\n int idx = ops.indexOf(c);\n \n // check for operator\n if (idx != -1) {\n if (s.isEmpty())\n s.push(idx);\n \n else {\n while (!s.isEmpty()) {\n int prec2 = s.peek() / 2;\n int prec1 = idx / 2;\n if (prec2 > prec1 || (prec2 == prec1 && c != '^'))\n sb.append(ops.charAt(s.pop())).append(' ');\n else break;\n }\n s.push(idx);\n }\n } \n else if (c == '(') {\n s.push(-2); // -2 stands for '('\n } \n else if (c == ')') {\n // until '(' on stack, pop operators.\n while (s.peek() != -2)\n sb.append(ops.charAt(s.pop())).append(' ');\n s.pop();\n }\n else {\n sb.append(token).append(' ');\n }\n }\n while (!s.isEmpty())\n sb.append(ops.charAt(s.pop())).append(' ');\n return sb.toString();\n }",
"public abstract Expression getInitialExpression();",
"public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }",
"public String evaluate(ArrayList<String> expression)\n {\n Stack<String> Values = new Stack<String>(), Operations = new Stack<String>();\n\n for (int i = 0; i < expression.size(); i++)\n\t\t{\n\t\t\tif (expression.get(i).equals(\"(\"))\n Operations.push(expression.get(i));\n else if (expression.get(i).equals(\")\"))\n {\n while (Operations.peek().equals(\"(\"))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.pop();\n }\n else if (expression.get(i).equals(\"+\") || expression.get(i).equals(\"-\") || expression.get(i).equals(\"*\") || expression.get(i).equals(\"/\"))\n {\n while (!Operations.empty() && precedence(expression.get(i), Operations.peek()))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.push(expression.get(i));\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\tValues.push(expression.get(i));\n\t\t\t}\n }\n while (!Operations.empty())\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n return Values.pop();\n }",
"String getSourceExpression();",
"public double evaluate(String expression) throws InvalidExpressionException {\n assertProperExpression(expression);\n \n // creating postfix\n String postfix = \"\";\n while (expression.length() > 0) {\n char item = expression.charAt(0);\n expression = expression.substring(1);\n // disregard spaces by\n if (item == ' ') continue;\n // add digits straight to postfix expression\n else if (isDigit(item)) postfix += item;\n // always push '(' on stack no matter what\n else if (item == '(') postfixStack.push('(');\n // dump stack until you hit end parenthesis which is voided\n else if (item == ')') {\n while (postfixStack.peek() != '(') {\n postfix += postfixStack.pop();\n }\n postfixStack.pop();\n continue;\n }\n // item must be operator, so push onto stack after removing higher precedents below it\n else if (isOperator(item)) {\n while (!postfixStack.isEmpty() &&\n isOperator(item) &&\n precedenceOf(postfixStack.peek()) >= precedenceOf(item)) postfix += postfixStack.pop();\n postfixStack.push(item);\n }\n }\n while (!postfixStack.isEmpty()) postfix += postfixStack.pop();\n\n // solving the postfix expression \n while (postfix.length() > 0) {\n char item = postfix.charAt(0);\n postfix = postfix.substring(1);\n\n if (isDigit(item)) solutionStack.push((double) (item - '0'));\n if (isOperator(item)) {\n double y = solutionStack.pop();\n double x = solutionStack.pop();\n if (item == '^') solutionStack.push(Math.pow(x, y));\n if (item == '*') solutionStack.push(x * y);\n if (item == '/') solutionStack.push(x / y);\n if (item == '+') solutionStack.push(x + y);\n if (item == '-') solutionStack.push(x - y);\n }\n }\n\n Double solution = solutionStack.pop();\n return solution;\n }",
"@FXML\r\n private static void getOperator(char txtDisplay ){\r\n mathOperator=txtDisplay ;\r\n \r\n }",
"public org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression getExpression();",
"public static void main(String args[])\n {\n PostfixToInfixConversion obj = new PostfixToInfixConversion();\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Enter the postfix expression you want to convert: \");\n//reads a postfix expression from the user\n String postfixstring = sc.next(); //for example ab+\n//prints the infix expression\n System.out.println(\"Infix expression for the given postfix expression is: \" + obj.convertPostfixToInfix(postfixstring));\n }",
"private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }",
"public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}",
"@Test\r\n\t\tpublic void testParseOperator() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 5\\nb = 6\\nc = a + (b * 4)\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[2]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"*\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}"
] | [
"0.76651853",
"0.7110604",
"0.7110604",
"0.6982435",
"0.68897325",
"0.67458814",
"0.672112",
"0.668524",
"0.66240114",
"0.6614859",
"0.6614859",
"0.6614859",
"0.6614859",
"0.66119295",
"0.6611435",
"0.6611435",
"0.6611435",
"0.6564089",
"0.6498042",
"0.6476698",
"0.6448766",
"0.642286",
"0.63800985",
"0.6375826",
"0.63665146",
"0.6342924",
"0.633908",
"0.63041973",
"0.6299417",
"0.62871855",
"0.6279324",
"0.62563396",
"0.6254212",
"0.6248525",
"0.62352264",
"0.6233441",
"0.6229837",
"0.62146574",
"0.6205943",
"0.62034774",
"0.6200946",
"0.61915135",
"0.6191409",
"0.6185066",
"0.6157899",
"0.61546856",
"0.61410505",
"0.6120958",
"0.61152154",
"0.6109793",
"0.60941803",
"0.60589236",
"0.605155",
"0.60344476",
"0.60190254",
"0.60108304",
"0.59959865",
"0.5988798",
"0.59850353",
"0.5983342",
"0.5979908",
"0.59781504",
"0.5974089",
"0.5964368",
"0.595805",
"0.5956355",
"0.5946637",
"0.5944953",
"0.593793",
"0.5921271",
"0.59157866",
"0.59045666",
"0.589925",
"0.589564",
"0.5891517",
"0.5886005",
"0.58789045",
"0.587749",
"0.5867051",
"0.58496785",
"0.5847335",
"0.5843727",
"0.584107",
"0.58404297",
"0.5837569",
"0.58341706",
"0.58240074",
"0.5821529",
"0.58134216",
"0.5801575",
"0.5799052",
"0.57957006",
"0.5779774",
"0.57781845",
"0.5772361",
"0.5772286",
"0.5768864",
"0.5767197",
"0.5759001",
"0.57578945"
] | 0.72454673 | 1 |
end method getMessage() method to display message when invalid character is parsed | public void getMessage() {
// use JOptionPane to have a pop up box informing user of the invalid token
JOptionPane.showMessageDialog(null, "Invalid Token " + invalidToken);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getMessage() {\n return \"Invalid token of \" + token + \" entered\";\n }",
"String getInvalidMessage();",
"public String getParseErrorMessage();",
"public static String invalidInput() {\n return \"Invalid input!\";\n }",
"public char getBadChar(){\n return badChar;\n }",
"public String getMessage() {\n if (!specialConstructor) {\n return super.getMessage();\n }\n String expected = \"\";\n int maxSize = 0;\n for (int i = 0; i < expectedTokenSequences.length; i++) {\n if (maxSize < expectedTokenSequences[i].length) {\n maxSize = expectedTokenSequences[i].length;\n }\n for (int j = 0; j < expectedTokenSequences[i].length; j++) {\n expected += tokenImage[expectedTokenSequences[i][j]] + \" \";\n }\n if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {\n expected += \"...\";\n }\n expected += eol + \" \";\n }\n String retval = \"Encountered \\\"\";\n Token tok = currentToken.next;\n for (int i = 0; i < maxSize; i++) {\n if (i != 0)\n retval += \" \";\n if (tok.kind == 0) {\n retval += tokenImage[0];\n break;\n }\n retval += add_escapes(tok.image);\n tok = tok.next;\n }\n retval += \"\\\" at line \" + currentToken.next.beginLine + \", column \"\n + currentToken.next.beginColumn + \".\" + eol;\n if (expectedTokenSequences.length == 1) {\n retval += \"Was expecting:\" + eol + \" \";\n } else {\n retval += \"Was expecting one of:\" + eol + \" \";\n }\n retval += expected;\n return retval;\n }",
"@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"protected abstract String getMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }",
"@Override\r\n public String getMessage() {\r\n return ErrorMessage.STATUS_FORMATTING_IN_FILE_ERROR;\r\n }",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"public String getMessage() throws FIFException {\n return text;\n }",
"String getMessage();",
"String getMessage();",
"String getMessage();",
"private void parseError() {\r\n System.out.print(\"Parse Error on:\");\r\n tokens.get(position).print();\r\n }",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"public void InvalidFormat();",
"@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un errore!\";\n\t}",
"@Override\n public String getErrorMessage() {\n return super.getErrorMessageString();\n }",
"@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}",
"public String getMessage();",
"public String getMessage();",
"public String getMessage();",
"public String getMessage();",
"public String getMessage();",
"public String getMessage();",
"public String getMessage();",
"public static String invalidToken() {\n\n return holder.format(\"invalidToken\", \"<HIDDEN>\");\n }",
"public String getMessage() {\n\t\treturn \" whose content is a\";\n\t}",
"String getErrorMessage(E input);",
"@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull String invalidInput) {\n/* 57 */ if (NumberUtils.isNumber(invalidInput)) {\n/* 58 */ return getFailedValidationText(context, NumberUtils.createNumber(invalidInput));\n/* */ }\n/* 60 */ return getInputNotNumericText(context, invalidInput);\n/* */ }",
"public void testInvalidTextValueWithBrokenUTF8() throws Exception\n {\n final byte[] input = readResource(\"/data/clusterfuzz-cbor-35979.cbor\");\n try (JsonParser p = MAPPER.createParser(input)) {\n assertToken(JsonToken.VALUE_STRING, p.nextToken());\n p.getText();\n fail(\"Should not pass\");\n } catch (StreamReadException e) {\n verifyException(e, \"Truncated UTF-8 character in Short Unicode Name (36 bytes)\");\n }\n\n }",
"private Token scanIllegalCharacter() {\n buffer.add(c);\n Token tok = new Token(buffer.toString(), TokenType.ILLEGAL, new Pair<>(in.line(), in.pos()));\n buffer.flush();\n c = in.read();\n return tok;\n }",
"@Override\n\tprotected void minus(char c, InterimResult ir)\n\t{\n\t\terror(c, ir);\n\t}",
"String getErrorMessage();",
"String getErrorMessage();",
"public abstract String getMessage();",
"public UnknownLabyrinthCharacterException(char c) {\r\n\t\tsuper(\"The unknown character\" + c + \"is not recognized.\");\r\n\t}",
"@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull Number invalidInput) {\n/* 87 */ return null;\n/* */ }",
"public FormatException() {\n\t\tsuper(\"This value is not within the standard.\");\n\t}",
"@Test\n\t\t\tpublic void checkAlphanumeric() {\n\t\t\t\tMessage msgjunit = new Message();\n\t\t\t\tString msg = msgjunit.getMessage();\n\n\t\t\t\tif (msg != null) {\n\t\t\t\t\tmsg = msg;\n\t\t\t\t} else {\n\t\t\t\t\tmsg = \"This is a message\";\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tInteger.parseInt(msg);\n\t\t\t\t\tSystem.out.println(\"Message is a not string:\" + \" \" + msg );\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tSystem.out.println(\"Message is a string:\" + \" \" + msg);\n\t\t\t\t}\n\t\t\t}",
"static zzco m26829a() {\n return new zzco(\"While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.\");\n }",
"public String getMessage()\n {\n return super.getMessage()+promo_error+\"not found\";\n }",
"protected void validateInput()\r\n\t{\r\n\t\tString errorMessage = null;\r\n\t\tif ( validator != null ) {\r\n\t\t\terrorMessage = validator.isValid(text.getText());\r\n\t\t}\r\n\t\t// Bug 16256: important not to treat \"\" (blank error) the same as null\r\n\t\t// (no error)\r\n\t\tsetErrorMessage(errorMessage);\r\n\t}",
"@Nullable\n/* */ protected String getInputNotNumericText(@NotNull ConversationContext context, @NotNull String invalidInput) {\n/* 74 */ return null;\n/* */ }",
"public InvalidStreamContentException(String message){\r\n\t\tsuper(\"The stack can only contain numbers and operators! ([n]*[o]*)\\n\"\r\n\t\t\t\t+ \"Invalid input: \" + message); //keep syntax description? fix it? ^^\r\n\t}",
"public MessageParseException(String message) {\n super(message);\n }",
"String errorMessage();",
"@Override\n\tprotected String showErrorMessage() {\n\t\treturn \"There has been an error. Payment cannot process at this time. Please check with your credit card compay.\";\n\t}",
"private void validCharachter() throws DisallowedCharachter {\n if (!test.equals(\"X\") && !test.equals(\"O\")) {\n throw (new DisallowedCharachter());\n }\n }",
"@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }",
"@Override\n public String getMessage(){\n \n }",
"public NoDigitException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"@Override\n public String getMessage() {\n return super.getMessage() + bonus_error + \"Not Found\";\n }",
"private String errorMessage() {\n\n StringBuilder strBuilder = new StringBuilder();\n strBuilder.append(eventBasedXorGatewayNode + \" => eventBasedXorGatewayNode \\n\");\n strBuilder.append(intermediateEvent1Node + \" => intermediateEvent1Node \\n\");\n strBuilder.append(intermediateEvent2Node + \" => intermediateEvent2Node \\n\");\n strBuilder.append(endNode1 + \" => endNode1 \\n\");\n strBuilder.append(endNode2 + \" => endNode2 \\n\");\n\n return strBuilder.toString();\n }",
"protected String doErrorMessage(Exception e){\n\t\treturn \"{ \\\"ERROR\\\": \\\"\"+ e.getMessage() + \"\\\"}\" ;\n\t}",
"@Override\r\n\tpublic String getMessage() {\n\t\treturn \"홀수입력 !!\";\r\n\t}",
"public String getInvalidMessageText() {\r\n\t\tnotificationError = driver.findElement(notificationErrorSelector);\r\n\t\treturn notificationError.getText();\r\n\t\t\r\n\t}",
"@Test(timeout = 4000)\n public void test012() throws Throwable {\n StringReader stringReader0 = new StringReader(\"D!%cD=EVjn`\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 93, (-1));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaCharStream0.inBuf = 29;\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 0, column 0. Encountered: \\\"\\\" (0), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }",
"@Test\r\n\tpublic void testParseError() {\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\")).sendKeys(\"a = 5\\nb = a - 1\\nc = a + (b / \");\r\n\r\n\t\t// Look for the \"Parse\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(1).click();\r\n\r\n\t\t// Check that the system shows error message\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.className(\"dialog\"));\r\n\t\t\tassertEquals(code.getText(), \"We're sorry, but something went wrong.\");\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"public String getMessage()\r\n/* 22: */ {\r\n/* 23:23 */ return this.a.a();\r\n/* 24: */ }",
"@Override\n public String getMessage() {\n return message;\n }",
"@Test\n public void parse_invalidPreamble_failure() {\n assertParseFailure(parser,\n \"1 some random string\" + ACTION_DESC_ADD + GENRE_DESC_SCIENCE_FICTION,\n MESSAGE_INVALID_FORMAT);\n\n // invalid prefix being parsed as preamble\n assertParseFailure(parser,\n \"1 i/ string\" + ACTION_DESC_ADD + GENRE_DESC_SCIENCE_FICTION,\n MESSAGE_INVALID_FORMAT);\n }",
"public String getMessage() {\n\t//TODO fix the removing of the color char one a move\n\t\tString message = this.message.substring(position, Math.min(this.message.length(), (width - 2) + position));\n\t\tchar COLORCHAR = '&';\n\t\tif (message.charAt(0) == COLORCHAR) {\n\t\t\tcolor = ChatColor.getByChar(message.charAt(1));\n\t\t} else {\n\t\t\tmessage = message.substring(1);\n\t\t\tmessage = \"\" + color + message;\n\t\t}\n\n\t\tif (message.charAt(message.length() - 1) == COLORCHAR) {\n\t\t\tmessage = message.substring(0, message.length() - 2);\n\t\t\tmessage = message + \" \";\n\t\t}\n\t\treturn message;\n\n\t}",
"@Override\n\tpublic String getMessage() {\n\t\treturn null;\n\t}",
"@Test\n public void test059() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n String string0 = errorPage0.message(\"0K~@:tT\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Override\r\n\tpublic String getMessage() {\n\t\treturn this.message;\r\n\t}"
] | [
"0.687548",
"0.67852134",
"0.6648896",
"0.6594349",
"0.6588675",
"0.6530815",
"0.65035087",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6386859",
"0.636064",
"0.636064",
"0.636064",
"0.636064",
"0.636064",
"0.636064",
"0.636064",
"0.636064",
"0.636064",
"0.636064",
"0.636064",
"0.636064",
"0.63273364",
"0.62835103",
"0.62509686",
"0.62385225",
"0.6230747",
"0.6230747",
"0.6230747",
"0.6223262",
"0.6197827",
"0.6197827",
"0.6197827",
"0.6197827",
"0.6186582",
"0.6182494",
"0.61558086",
"0.61492294",
"0.61175686",
"0.61175686",
"0.61175686",
"0.61175686",
"0.61175686",
"0.61175686",
"0.61175686",
"0.611576",
"0.61074924",
"0.60993105",
"0.60930645",
"0.6084035",
"0.6070389",
"0.60691786",
"0.6050468",
"0.6050468",
"0.60475117",
"0.6039987",
"0.60072637",
"0.60027117",
"0.60021937",
"0.59835726",
"0.5978306",
"0.5964891",
"0.5959002",
"0.59573513",
"0.59493834",
"0.5949064",
"0.5946363",
"0.5938187",
"0.59280044",
"0.5924228",
"0.5903049",
"0.588129",
"0.58775175",
"0.5865499",
"0.58625793",
"0.586235",
"0.5857282",
"0.58544624",
"0.58498746",
"0.58457124",
"0.582981",
"0.5826324",
"0.5816692",
"0.5803294",
"0.58029634"
] | 0.65842646 | 5 |
getOutput() method to retrieve assembly code output from AssemblyCode class. blank lines and divider line are appended between outputs | public String getOutput(){
// add assembly code to outputFile
outputFile.append(assemblyCode.getOutputFile());
// add a line spaces so the reader of the output file can determine
// that a new assembly code sequence has started
outputFile.append(System.lineSeparator());
outputFile.append("************");
outputFile.append(System.lineSeparator());
// return outputFile to a String
return outputFile.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getOutput();",
"String getOutput();",
"public String getOutput() {\n return output;\n }",
"public String getOutput() {\n return output.toString();\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 String getOutput() {\n\t\treturn results.getOutput() ;\n\t}",
"public String getOutputString()\n\t{\n\t\treturn outputString;\n\t}",
"public abstract Object getOutput ();",
"public String getOutput() {\n return String.format(\"DCode: %-7.0f \\\"%-9s\\\" \\t - %5.3fmm x %5.3fmm - \\t Area: %6.3fmm² \\t Area Ratio: %5.2f \\t Transfer Effeciency: %2.1f \\t Number of apertures: %-5.0f\"\n , (double) dCode\n , shape\n , x\n , y\n , getArea()\n , getAreaRatio()\n , getTransferEffeciency()\n , (double) numbOfApertures);\n }",
"public Output getOutput() {\n\t\treturn output;\n\t}",
"public String getOutput() {\n myLock.lock();\n try {\n return myOutput.toString();\n }\n finally {\n myLock.unlock();\n }\n }",
"Output createOutput();",
"public TestOut getOutput() {\n\treturn(output);\n }",
"@Override\n\tpublic byte[] generateOutput() {\n\t\tthis.plainOut = new PlainOutputConversion();\n\n\t\tString output = \"\";\n\t\ttry {\n\t\t\toutput = constructTextfromXML(this.rootXML, true);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn output.getBytes();\n\t}",
"public OutputDecorator getOutputDecorator()\n/* */ {\n/* 675 */ return this._outputDecorator;\n/* */ }",
"public Object getOutputTarget()\n/* */ {\n/* 101 */ return this._writer;\n/* */ }",
"public String toString()\n\t{\n\t\tString temp = \"\";\n\t\tfor (int i=0; i< lineCount; i++)\n\t\t{\n\t\t\ttemp += (i+1) + \": \" + codeLines[i] + \"\\n\";\n\t\t}\n\t\treturn temp;\n\t}",
"public void createOutput() {\n\t\tsetOutput(new Output());\n\t}",
"@Override\n public String getAssembly() {\n return assemblyView.getText();\n }",
"public String getOutput() throws TavernaException, ProcessException{\n if (outputFile == null){\n return saveOutput();\n }\n try {\n return runner.getOutput();\n } catch (InterruptedException ex) {\n throw new TavernaException (\"Workflow was interrupted.\", ex);\n }\n }",
"public String getOutput() {\r\n return innerStream.getString();\r\n }",
"com.google.protobuf.ByteString\n getOutputBytes();",
"public Output getOutput() {\n\t\treturn OutputFactory.of(outputFile.toPath());\n\t}",
"public java.lang.String getOutput() {\n java.lang.Object ref = output_;\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 output_ = s;\n return s;\n }\n }",
"public java.lang.String getOutput() {\n java.lang.Object ref = output_;\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 output_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n public void emitOutput() {\n }",
"public String out() {\n if (this.implicitMain) {\n this.parse(\"main\");\n }\n Object main = parsedBlocks.get(\"main\");\n if (main == null) {\n throw new IllegalStateException(\"'main' block not parsed\");\n }\n return (main.toString());\n }",
"@Override\n\tvoid output() {\n\t\t\n\t}",
"private Output() {}",
"private void outputProcessedCode() {\n\t\tif (isProcessed()) {\n\t\t\tgetLauncher().prettyprint();\n\t\t}\n\t}",
"public String getoutputString() {\r\n\t\treturn outputString;\r\n\t}",
"Output getOutputs();",
"public void generateOutputLine(String outputLine, int index);",
"String getOutputName();",
"public JSONArray getOutput() {\n\t\treturn output;\n\t}",
"@Override\r\n\tpublic boolean getOutput() {\n\t\treturn false;\r\n\t}",
"static void write() {\n try {\n b.setLength(0); // clear the line buffer\n\n // this next section builds the output string while protecting\n // string literals. All extra spaces are removed from the output\n // string, except that string literals are left as is.\n ArrayList list = new ArrayList();\n String s = new String(\"\");\n for (int i = 0; i < a.size(); i++) {\n Object o = a.get(i);\n if (o instanceof Token) {\n Token token = (Token)o;\n if (token.kind == JavaParserConstants.STRING_LITERAL) {\n s = s.replaceAll(\"[ ]+\", \" \");\n list.add(s);\n s = new String(\"\");\n list.add(token.image);\n }\n else {\n s += ((Token)o).image;\n s = s.replaceAll(\"[ ]+\", \" \");\n }\n }\n else {\n s += (String)o;\n s = s.replaceAll(\"[ ]+\", \" \");\n }\n }\n for (int i = 0; i < list.size(); i++) {\n b.append((String)list.get(i));\n }\n\n b.append(s);\n s = b.toString();\n\n // check for blank line(s)\n String maybe_blank = new String(s);\n if (maybe_blank.trim().length() == 0) {\n // yep, it's a blank, so just print it out\n if (s.length() >= ls.length()) {\n s = s.substring(0, s.length() - ls.length());\n }\n outputBuffer.append(s);\n a.clear();\n return;\n }\n\n // indent --\n // most lines get indented, but there are a few special cases:\n // \"else\" gets put on the same line as the closing \"}\" for the \"if\",\n // so don't want to indent. Similarly with \"catch\" and \"finally\".\n // The \"while\" at the end of a \"do\" loop is marked as \"^while\" to\n // differentiate it from a regular \"while\" block. \"else if\" is also\n // a special case.\n if (!s.startsWith(\" else\")\n && !s.startsWith(\" catch\")\n && !s.startsWith(\" finally\")\n && !s.startsWith(\" ^while\")\n && !s.startsWith(\" {\")\n && (!endsWith(outputBuffer, \"else\") && !endsWith(outputBuffer, \"else \"))) {\n s = s.trim();\n for (int i = 0; i < level; i++) {\n s = indent + s;\n }\n }\n\n // maybe clean out the ^ from the specially marked \"while\" at the\n // end of a \"do\" loop\n if (s.startsWith(\" ^while\")) {\n b.deleteCharAt(1);\n s = b.toString();\n }\n\n // check if the output buffer does NOT end with a new line. If it\n // doesn't, remove any leading whitespace from this line\n if (!endsWith(outputBuffer, \"\\u005cn\") && !endsWith(outputBuffer, \"\\u005cr\")) {\n s = trimStart(s);\n }\n\n // check that there aren't extra spaces in the buffer already --\n // this handles the case where the output buffer ends with a space\n // and the new string starts with a space, don't want 2 spaces.\n if (s.startsWith(\" \") && endsWith(outputBuffer, \" \")) {\n s = s.substring(1);\n }\n\n // check that there is one space between the end of the output\n // buffer and this line -- this handles the case where the output\n // buffer does not end in a space and the new string does not start\n // with a space, want one space in between.\n if (!s.startsWith(\" \")\n && !endsWith(outputBuffer, \" \")\n && !endsWith(outputBuffer, \"\\u005cr\")\n && !endsWith(outputBuffer, \"\\u005cn\")\n && outputBuffer.length() > 0) {\n outputBuffer.append(\" \");\n }\n\n // by the Sun standard, there is no situation where '(' is followed\n // by a space or ')' is preceded with by a space\n s = s.replaceAll(\"[(][ ]\", \"(\");\n s = s.replaceAll(\"[ ][)]\", \")\");\n\n // there should be no situation where a comma is preceded by a space,\n // although that seems to happen when formatting string arrays.\n s = s.replaceAll(\"\\u005c\\u005cs+[,]\", \",\");\n\n // finally! add the string to the output buffer\n // check for line length, may need to wrap. Sun says to avoid lines\n // longer than 80 characters. This doesn't work well yet, so I've \n // commented out the wrapping code. Still need to clean out the\n // wrapping markers.\n //s = s.replaceAll(\"[\u001c]\", \"\");\n outputBuffer.append(s);\n /*\n int wrap_sep_count = countWrapSep(s);\n if (s.length() - wrap_sep_count > 80) {\n String[] lines = wrapLines(s);\n if ( lines != null ) {\n for (int i = 0; i < lines.length; i++) {\n outputBuffer.append(lines[i]).append(ls);\n }\n }\n else {\n // whack any remaining \u001c characters\n s = s.replaceAll(\"[\u001c]\", \"\");\n outputBuffer.append(s);\n }\n }\n else {\n // whack any remaining \u001c characters\n s = s.replaceAll(\"[\u001c]\", \"\");\n outputBuffer.append(s);\n }\n */\n // clear the accumulator for the next line\n a.clear();\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }",
"java.lang.String getOutputjar();",
"org.hyperledger.fabric.protos.token.Transaction.PlainOutput getOutput();",
"String diagnosticsOutput();",
"public Element getOutput(){\n\t\treturn output;\n\t}",
"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 }",
"public String toString()\n\t{\n\t\tString output=\"\";\n\n\n\n\n\n\n\t\treturn output+\"\\n\\n\";\n\t}",
"public List<String> getOutput() {\n List<String> toRet = new ArrayList<String>();\n String line = processLinesOut_.poll();\n while (line != null) {\n toRet.add(line);\n line = processLinesOut_.poll();\n }\n return toRet;\n }",
"public String getOutputPrefix();",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getInput() != null)\n sb.append(\"Input: \").append(getInput()).append(\",\");\n if (getOutput() != null)\n sb.append(\"Output: \").append(getOutput());\n sb.append(\"}\");\n return sb.toString();\n }",
"TemplateOutputStream getOutput();",
"@Override\n public void codegen(Emitter output) {\n }",
"public void output(IndentedWriter out) \n {\n }",
"public org.hyperledger.fabric.protos.token.Transaction.PlainOutput getOutput() {\n if (outputBuilder_ == null) {\n return output_ == null ? org.hyperledger.fabric.protos.token.Transaction.PlainOutput.getDefaultInstance() : output_;\n } else {\n return outputBuilder_.getMessage();\n }\n }",
"@Column(name = \"OUTPUT\", length = 1000)\n/* */ @Order(3)\n/* 76 */ public String getOutput() { return this.output; }",
"@Override\n\tpublic void orgasm() {\n\t\t\n\t}",
"public com.google.protobuf.ByteString\n getOutputBytes() {\n java.lang.Object ref = output_;\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 output_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private String getOutputString() {\n \tStringBuilder ret = new StringBuilder();\r\n \tCalendar cal = Calendar.getInstance();\r\n \t\r\n \tExportEventLineView eventLine;\r\n \tEventType eventType;\r\n \t\r\n \tint count = _exportEventLines.getChildCount();\r\n \tfor (int i = 0; i < count; i++) {\r\n \t\teventLine = (ExportEventLineView) _exportEventLines.getChildAt( i );\r\n \t\teventType = eventLine.getEventType();\r\n \t\t\r\n \t\tif ( eventLine.isSelected() ) {\r\n \t\t\t\r\n \t\t\tEventIterator iterator = _dbHelper.eventHandler.fetchByType( i+1 );\r\n \t\t\tfor ( Event event : iterator ) {\r\n\t\t\t\t\tcal.setTimeInMillis( event.getTimeStamp() * 1000 );\r\n\t\t\t\t\t\r\n\t\t\t\t\tret.append(\r\n\t\t\t\t\t\t\t'\"' + this.getDateString( cal )\r\n\t\t\t\t\t\t\t+ \"\\\",\\\"\" + this.getTimeString( cal )\r\n\t\t\t\t\t\t\t+ \"\\\",\\\"\" + eventType.getName()\r\n\t\t\t\t\t\t\t+ \"\\\"\\n\"\r\n\t\t\t\t\t\t);\r\n \t\t\t} // if\r\n\t\t\t\tret.append('\\n');\r\n \t\t} // if\r\n \t} // for\r\n \t\r\n \treturn ret.toString();\r\n }",
"public void calcOutput()\n\t{\n\t}",
"public StreamResult getOutput() {\n return output;\n }",
"@Override\n public void visitCode() {\n mv.visitFieldInsn(Opcodes.GETSTATIC, \"java/lang/System\", \"out\", \"Ljava/io/PrintStream;\");\n mv.visitLdcInsn( name );\n mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, \"java/io/PrintStream\", \"println\", \"(Ljava/lang/String;)V\", false);\n \n mv.visitCode();\n }",
"public int getOutput() {\n return Output;\n }",
"public org.hyperledger.fabric.protos.token.Transaction.PlainOutput.Builder getOutputBuilder() {\n \n onChanged();\n return getOutputFieldBuilder().getBuilder();\n }",
"org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder getOutputOrBuilder();",
"private void buildOutput()\n\t{\n\t\tif(outIndex >= output.length)\n\t\t{\n\t\t\tbyte[] temp = output;\n\t\t\toutput = new byte[temp.length * 2];\n\t\t\tSystem.arraycopy(temp, 0, output, 0, temp.length);\n\t\t}\n\t\t\n\t\tif(sb.length() < 16 && aryIndex < fileArray.length)\n\t\t{\n\t\t\tbyte[] b = new byte[1];\n\t\t\tb[0] = fileArray[aryIndex++];\n\t\t\tsb.append(toBinary(b));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < prioQ.size(); i++)\n\t\t{\n\t\t\tif(sb.toString().startsWith(prioQ.get(i).getCode()))\n\t\t\t{\n\t\t\t\toutput[outIndex++] = (byte)prioQ.get(i).getByteData();\n\t\t\t\tsb = new StringBuilder(\n\t\t\t\t\t\tsb.substring(prioQ.get(i).getCode().length()));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Can't find Huffman code.\");\n\t\tSystem.exit(1);\n\t\texit = true;\n\t}",
"public String toString() {\r\n StringBuffer buffer = new StringBuffer();\r\n for (int i = 0; i < defaultFormat.lineSeparator.length(); i++) {\r\n char ch = defaultFormat.lineSeparator.charAt( i);\r\n switch (ch) {\r\n case '\\r': buffer.append(\"\\\\r\");\r\n break;\r\n case '\\n': buffer.append(\"\\\\n\");\r\n break;\r\n case '\\t': buffer.append(\"\\\\t\");\r\n break;\r\n default: buffer.append(\"[\" + ((int)ch) + \"]\");\r\n break;\r\n }\r\n }\r\n\r\n return (\r\n \"XMLOutputter[omitDeclaration = \" + omitDeclaration + \", \" +\r\n \"encoding = \" + encoding + \", \" +\r\n \"omitEncoding = \" + omitEncoding + \", \" +\r\n \"indent = '\" + defaultFormat.indent + \"'\" + \", \" +\r\n \"expandEmptyElements = \" + defaultFormat.expandEmptyElements + \", \" +\r\n \"newlines = \" + defaultFormat.newlines + \", \" +\r\n \"lineSeparator = '\" + buffer.toString() + \"', \" +\r\n \"trimAllWhite = \" + defaultFormat.trimAllWhite +\r\n \"textTrim = \" + defaultFormat.textTrim +\r\n \"textNormalize = \" + defaultFormat.textNormalize + \"]\"\r\n );\r\n }",
"public String getOutput() {\n TopologicalOrderIterator<String, DefaultEdge> iterator =\n new TopologicalOrderIterator<>(steps, Comparator.comparing((String x) -> x));\n\n // Traverse the DAG and store each vertex to a StringBuilder\n // to output once traversal is completed\n StringBuilder sb = new StringBuilder();\n while (iterator.hasNext()) {\n sb.append(iterator.next());\n }\n\n return sb.toString();\n }",
"public SourceGenerator writeNewline(){\r\n\t\tif (m_style == CodeStyle.PRETTY){\r\n\t\t\tm_writer.append(m_newline);\r\n\t\t}\r\n\t\treturn this;\r\n\t}",
"public abstract String FileOutput();",
"public static String compile(OutputPin pin) {\n String index1String = \"\\t\\t\\t\\t\\tindex_1(\" + compileArray(pin.getParent().getIndex1()) + \");\\n\";\n String index2String = \"\\t\\t\\t\\t\\tindex_2(\" + compileArray(pin.getParent().getIndex2()) + \");\\n\";\n String output = \"\\n\\t\\tpin(\" + pin.getName() + \") {\\n\" + \"\\t\\t\\tdirection : output ;\\n\" + \"\\t\\t\\tfunction : \\\"(\"\n + pin.getOutputFunction() + \")\\\" ;\\n\" + \"\\t\\t\\tmax_capacitance : \"\n + Model.formatFloat(pin.getMaxCapacitance()) + \" ;\\n\" + \"\\t\\t\\tmin_capacitance : \"\n + Model.formatFloat(pin.getMinCapacitance()) + \" ;\\n\";\n for (InputPin relatedPin : pin.getParent().getInPins()) {\n boolean usedPin = false;\n for (OutputPower outputPower : pin.getOutputPowers()) {\n if (outputPower.getRelatedPin().getName().equals(relatedPin.getName())) {\n if (!usedPin) {\n output += \"\\n\\t\\t\\tinternal_power() {\\n\" + \"\\t\\t\\t\\trelated_pin : \\\"\" + relatedPin.getName()\n + \"\\\" ;\\n\";\n usedPin = true;\n }\n String valuesString = \"\\t\\t\\t\\t\\tvalues(\";\n for (float[] valuesArray : outputPower.getValues()) {\n valuesString += compileArray(valuesArray) + \",\\\\\\n\\t\\t\\t\\t\\t \";\n }\n valuesString = valuesString.substring(0, valuesString.length() - 15);\n output += \"\\n\\t\\t\\t\\t\" + outputPower.getPowGroup().name().toLowerCase() + \"() {\\n\" + index1String\n + index2String + valuesString + \");\\n\\t\\t\\t\\t}\\n\";\n }\n }\n if (usedPin) {\n output += \"\\t\\t\\t}\\n\";\n }\n }\n for (InputPin relatedPin : pin.getParent().getInPins()) {\n for (TimingSense timingSense : pin.getAvailableTimSen()) {\n for (TimingType timingType : pin.getAvailableTimType()) {\n boolean usedCombination = false;\n for (Timing timing : pin.getTimings()) {\n if (timing.getRelatedPin().getName().equals(relatedPin.getName())\n && timing.getTimSense().equals(timingSense) && timing.getTimType().equals(timingType)) {\n if (!usedCombination) {\n output += \"\\n\\t\\t\\ttiming() {\\n\" + \"\\t\\t\\t\\trelated_pin : \\\"\" + relatedPin.getName()\n + \"\\\" ;\\n\" + \"\\t\\t\\t\\ttiming_sense : \" + timingSense.name().toLowerCase()\n + \" ;\\n\" + \"\\t\\t\\t\\ttiming_type : \" + timingType.name().toLowerCase() + \" ;\\n\";\n usedCombination = true;\n }\n String valuesString = \"\\t\\t\\t\\t\\tvalues(\";\n for (float[] valuesArray : timing.getValues()) {\n valuesString += compileArray(valuesArray) + \",\\\\\\n\\t\\t\\t\\t\\t \";\n }\n valuesString = valuesString.substring(0, valuesString.length() - 15);\n valuesString += \"); \\n\";\n output += \"\\n\\t\\t\\t\\t\" + timing.getTimGroup().name().toLowerCase() + \"() {\\n\" + index1String\n + index2String + valuesString + \"\\t\\t\\t\\t}\\n\";\n }\n }\n if (usedCombination) {\n output += \"\\t\\t\\t}\\n\";\n }\n }\n }\n }\n output += \"\\n\\t\\t}\";\n return output;\n }",
"public Entry output();",
"org.hyperledger.fabric.protos.token.Transaction.PlainDelegatedOutput getDelegatedOutput();",
"public String getOutputFlag();",
"public abstract boolean getOutput();",
"public org.hyperledger.fabric.protos.token.Transaction.PlainOutput getOutput() {\n return output_ == null ? org.hyperledger.fabric.protos.token.Transaction.PlainOutput.getDefaultInstance() : output_;\n }",
"public void setOutput(String output) { this.output = output; }",
"public org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder getOutputOrBuilder() {\n return getOutput();\n }",
"public Output<T> output() {\n return output;\n }",
"SModel getOutputModel();",
"public void writeOutput()\n\t{\n\t\tSystem.out.println(this.toString());\n\t}",
"protected final void emitBackEnd() {\n emitLIR();\n emitCode();\n }",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"@Override\n public Object getData() {\n return new String(outputData);\n }",
"public org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder getOutputOrBuilder() {\n if (outputBuilder_ != null) {\n return outputBuilder_.getMessageOrBuilder();\n } else {\n return output_ == null ?\n org.hyperledger.fabric.protos.token.Transaction.PlainOutput.getDefaultInstance() : output_;\n }\n }",
"public String classOut() {\n\t\tStringBuilder s = new StringBuilder();\n\t\ts.append(objective());\n\t\ts.append(' ');\n\t\ts.append(optimal() ? 1 : 0);\n\t\ts.append('\\n');\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts.append(item(i) ? 1 : 0);\n\t\t\ts.append(i < n - 1 ? ' ' : '\\n');\n\t\t}\n\t\treturn s.toString();\n\t}",
"com.google.protobuf.ByteString\n getOutputjarBytes();",
"public StringBuilder target() { return out; }",
"public void generateCode() {\n\t\tfor (int i = 0; i < AsmGen.codes.size(); i++) generateFunctionASMCode(AsmGen.codes.get(i));\n\t\tgenerateMMIXMainBootstrap();\n\t\tfile.printf(\"\\n\");\n\t}",
"public void generateFinalOutput(FinalResult finalResult);",
"public void processOutput() {\n\n\t}",
"public IInputOutput getConstantOuput();",
"public String toOutputString()\n\t{\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor (Entry<Object, Object> entry : this.entrySet())\n\t\t\tbuf.append(String.format(\"%s=%s%c\",\n\t\t\t\t\tentry.getKey(), entry.getValue(), 12));\n\t\treturn buf.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\t// TODO Auto-generated method stub\n\n\t\t// Variables declaration\n\n\t\tString output = null;\n\n\t\t// Data processing\n\n\t\toutput = \"\\n District Code: \";\n\n\t\tif (this.districtCode != null) {\n\n\t\t\toutput += this.districtCode.toString();\n\t\t}\n\n\t\toutput += \"\\n Description: \";\n\n\t\tif (this.description != null && !this.description.equals(\"\")) {\n\n\t\t\toutput += this.description;\n\t\t}\n\n\t\tif (this.city != null) {\n\n\t\t\toutput += this.city.toString();\n\t\t}\n\n\t\t// Information output\n\n\t\treturn output;\n\t}",
"public void outsource()\n\t{\n\t\tconstructPrefix();\t \n\t}",
"public float[] getOutput() {\n\t\t// Put output return code here (and remove \"return null;\")\n \treturn null;\n }",
"public void generateMrCode(final org.talend.designer.common.TransformerBase transformer) {\n\n if (transformer.isUnnecessary()) {\n \n stringBuffer.append(TEXT_119);\n stringBuffer.append(cid);\n \n return;\n }\n\n // Use a MapperHelper base that has been tied into the transformer.\n class Mapper extends MapperHelper {\n\n public void prepare() {\n transformer.generateHelperClasses(false);\n transformer.generateTransformContextDeclaration();\n }\n\n public void configure() {\n transformer.generateTransformContextInitialization();\n }\n\n public void map() {\n \n stringBuffer.append(TEXT_120);\n stringBuffer.append(getInValueClass());\n stringBuffer.append(TEXT_121);\n stringBuffer.append(getInValue());\n stringBuffer.append(TEXT_122);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_123);\n \n transformer.generateTransform();\n }\n }\n\n Mapper mapper = new Mapper();\n this.helper = mapper;\n\n if (transformer.isMultiOutput()) {\n // The multi-output condition is slightly different, and the\n // MapperHelper is configured with internal names for the\n // connections.\n mapper.setType(M_TYPE_MO);\n java.util.HashMap<String, String> names = new java.util.HashMap<String, String>();\n names.put(\"main\", transformer.getOutConnMainName());\n names.put(\"reject\", transformer.getOutConnRejectName());\n mapper.init(node, cid, null, transformer.getInConnName(), null,\n names);\n // When there is more than one output, the main output continues\n // along the chain, and the reject output is sent to a secondary\n // file.\n mapper.sendOutConnectionToChain(\"main\");\n } else {\n mapper.init(node, cid, null, transformer.getInConnName(), null,\n transformer.getOutConnMainName() != null\n ? transformer.getOutConnMainName()\n : transformer.getOutConnRejectName());\n }\n\n // Use the configured mapper helper to create the Mapper MR_CODE\n mapper.generate();\n }",
"public boolean getOutput(){\n if (output){\n System.out.println(\"Archivo Cocol/R Aceptado\");\n return true;\n }\n else{\n System.out.println(\"Archivo Cocol/R no aceptado, tiene errores de estructura\");\n return false;\n }\n }",
"public interface CodeFormatter\n{\n}",
"public TypescriptStringBuilder appendln() {\n return appendln(\"\");\n }",
"public ATOutput () throws CGException {\n vdm_init_ATOutput();\n }",
"@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }",
"private interface OutputBuffer {\n String getName();\n\n String getOutput();\n\n PrintWriter getPrintWriter();\n }",
"public java.util.List<java.lang.String> getOutputs() {\n return outputs;\n }",
"public java.util.List<java.lang.String> getOutputs() {\n return outputs;\n }"
] | [
"0.7237357",
"0.7076808",
"0.66595125",
"0.65732676",
"0.6269048",
"0.6267665",
"0.6253082",
"0.6251006",
"0.61987054",
"0.61568916",
"0.6128534",
"0.6124358",
"0.60387325",
"0.6005707",
"0.5922824",
"0.5894565",
"0.58528864",
"0.584297",
"0.5839624",
"0.5838883",
"0.58341396",
"0.5808471",
"0.57976425",
"0.57949406",
"0.57777655",
"0.5776417",
"0.57622516",
"0.5753526",
"0.5728945",
"0.5722717",
"0.5716689",
"0.56742513",
"0.5661833",
"0.5638508",
"0.56363744",
"0.5626878",
"0.5623407",
"0.5618947",
"0.5609053",
"0.56022674",
"0.559009",
"0.5585704",
"0.5573597",
"0.5558555",
"0.5520214",
"0.5513726",
"0.5505309",
"0.5499914",
"0.54983324",
"0.5479905",
"0.54758257",
"0.5454264",
"0.5442244",
"0.5438662",
"0.54075176",
"0.5399546",
"0.53954595",
"0.53823674",
"0.5377074",
"0.53723246",
"0.53637475",
"0.53528076",
"0.5352423",
"0.5347441",
"0.5341827",
"0.533913",
"0.53315717",
"0.5288026",
"0.52792066",
"0.5276818",
"0.5274699",
"0.5260515",
"0.52603006",
"0.52543575",
"0.5246894",
"0.52378005",
"0.52295804",
"0.520731",
"0.52063674",
"0.5198366",
"0.5194492",
"0.51881677",
"0.5186831",
"0.51822644",
"0.5182073",
"0.5170231",
"0.51685154",
"0.51577103",
"0.5154949",
"0.51495385",
"0.5143368",
"0.5136262",
"0.5135664",
"0.5133886",
"0.5124645",
"0.5114933",
"0.5108605",
"0.51052314",
"0.51046216",
"0.5087053"
] | 0.7965748 | 0 |
Load file as Resource | @GetMapping("/download/{id}")
public ResponseEntity<Resource> downloadFile(@PathVariable(value = "id") int fileId) {
Files file = filesRepository.findById(fileId)
.orElseThrow(() -> new ResourceNotFoundException("File", "id", fileId));
Resource resource = fileStorageService.loadFileAsResource(file.getFileName());
String contentType = "application/octet-stream";
return ResponseEntity.ok()
.contentType(MediaType.parseMediaType(contentType))
.header(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + resource.getFilename() + "\"")
.body(resource);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Resource load(IFile f);",
"public Resource load(String filename) throws MalformedURLException;",
"public void loadResources();",
"public IPluginResource load( URI path ) throws LoaderException;",
"public Resource loadFileAsResource(String fileName) {\n try {\n Path filePath = this.fileStorageLocation.resolve(fileName).normalize();\n Resource resource = new UrlResource(filePath.toUri());\n if(resource.exists()) {\n return resource;\n } else {\n throw new HubFileNotFoundException(\"File not found \" + fileName);\n }\n } catch (MalformedURLException ex) {\n throw new HubFileNotFoundException(\"File not found \" + fileName, ex);\n }\n }",
"public void setResourcefile (File file)\n {\n _resourcefile = file;\n }",
"public void load(File source);",
"public void load (File file) throws Exception;",
"Resource getResource();",
"void load(File file);",
"public static Resource loadFromFile() {\n File file = new File(saveFilePath);\n // create a new file if it doesn't exist\n if (!file.exists()) {\n // save an empty resource object\n Resource resource = new Resource();\n resource.saveToFile();\n }\n\n Resource resource = null;\n try {\n resource = (Resource) loadObjFromFile(saveFilePath);\n } catch (InvalidClassException e) {\n // if resource file is outdated or corrupted reset file\n resource = new Resource();\n resource.saveToFile();\n staticLog(\"resource file was corrupted, cleared with new one\");\n// e.printStackTrace();\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n resource.activeUsers = new HashMap<>();\n resource.activeProjects = new HashMap<>();\n return resource;\n }",
"public void load (IFile file) throws Exception;",
"@Override\n public Resource load(String filename, String path) {\n S3Object s3_file = this.s3client.getObject(\n this.s3_storage_properties.getBucketName(), path + \"/\" + filename\n );\n S3ObjectInputStream file_stream = s3_file.getObjectContent();\n\n Resource resource = new InputStreamResource(file_stream);\n if (resource.exists() || resource.isReadable()) {\n Application.logger.info(\"Loaded \"+path + \"/\" + filename+\" into S3\");\n return resource;\n }\n else {\n throw new StorageFileNotFoundException(\n \"Could not read file: \" + filename);\n }\n }",
"public void setResourceFile(File fileName) {\n resourceFile = fileName;\n }",
"String getResource();",
"void openResource(String resourcePath);",
"public void loadFile(File p_file) throws IOException;",
"static JsonResource forFile( File file ) {\n return new JsonResource() {\n @Override\n public <T> T readFrom( ReadMethod<T> consumer ) throws IOException {\n try ( FileInputStream stream = new FileInputStream(file) ) {\n return consumer.read(stream);\n }\n }\n };\n }",
"public abstract T loadResource(AssetManager assetManager, String str);",
"public void load (String argFileName) throws IOException;",
"public Savable loadAsset() {\n return file.loadAsset();\n }",
"private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean load(String file);",
"public abstract ResourceInputStream getResource(String resName, HttpServletRequest request);",
"public abstract void load() throws IOException;",
"@Override\n\tpublic Object load(String file) {\n\t\treturn null;\n\t}",
"public IResource getResource();",
"public ResourceInputStream(File file) throws IOException {\n\t\t\tthis(new FileInputStream(file), file.lastModified());\n\t\t}",
"File getLoadLocation();",
"public abstract ResourceDataSet loadResources() ;",
"public static void testResourceFile() {\n\t\tArrayList l = new ArrayList();\n\t\tl.add(\"http://www.google.it\");\n\t\tl.add(\"http://www.microsoft.com\");\n\t\t/*\n\t\tDownloader d = new Downloader(1);\n\t\tlogger\n\t\t\t\t.log(\n\t\t\t\t\t\tLevel.INFO,\n\t\t\t\t\t\"TEST ResourceFile implementation. Url downloaded will be temporary saved to system temp directory.\");\n\n\t\t// Listener\n\t\td.addListener(new DebugListener());\n\n\t\td.setFollowRedirect(true);\n\t\td.setMaxSize(2000);\n\t\td.addURLs(l);\n\t\td.start();\n\t\td.waitDone();\n\n\t\t// Derby DBMS should be shutdown every times application goes down\n\t\tDerbyLinkQueueDB.shutdown();\n\t\t*/\n\t}",
"private static String p_readFromResource(String path) {\n StringBuffer content = new StringBuffer();\n\n InputStream istream = NamedTemplate.class.getResourceAsStream(path);\n\n if (istream != null) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(istream));\n\n try {\n String line = reader.readLine();\n while (line != null) {\n content.append(line).append(\"\\n\");\n\n line = reader.readLine();\n }\n } catch (IOException e) {\n logger.error(\"NamedTemplate: unable to read template from \" + path, e);\n }\n } else {\n return null;\n }\n\n return content.toString();\n }",
"public static IResource convertFileToExistingResource(File file) {\r\n IPath path = new Path(file.getAbsolutePath());\r\n \r\n IPath wsPath = convertToWorkspacePath(path, true);\r\n if (wsPath != null)\r\n \t return ResourcesPlugin.getWorkspace().getRoot().findMember(wsPath);\r\n \r\n return null;\r\n }",
"private FileInputStream loadFile(String file)\n\t{\n\t\tlogger.info(\"Fetching File : \"+System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file);\n\t\ttry \n\t\t{\n\t\t\treturn(new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file));\n\t\t} catch (FileNotFoundException e) {\t\t\t\t\n\t\t\tAssert.assertTrue(file+\" file is missing\", false);\n\t\t\treturn null;\n\t\t}\n\t}",
"public URL getResourceFile(String path){\n\n ClassLoader classLoader = getClass().getClassLoader();\n return classLoader.getResource(path);\n }",
"Resource createResource();",
"public void load(String path) {\n try {\n texId = new TextureId(path);\n BufferedImage image = ImageIO.read(new FileInputStream(\"resources\" + texId.getPath()));\n createImage(image);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }",
"private Resource createResource(final File file) throws IOException {\n\n // TODO: see this gist to prevent re-reading the same resource file if it's already registered\n // https://gist.github.com/3998818\n\n Registry<String, String> properties = ResourceUtil.readConfiguration(file);\n String resourceName = properties.getEntryValue(ResourceConstants.RESOURCE_NAME);\n\n String rootNode = properties.getEntryValue(ResourceConstants.RESOURCE_ROOT_NODE);\n\n String objectClassKey = properties.getEntryValue(ResourceConstants.RESOURCE_OBJECT);\n Class objectClass = classRegistry.getEntryValue(objectClassKey);\n\n String algorithmKey = properties.getEntryValue(ResourceConstants.RESOURCE_ALGORITHM_CLASS);\n Algorithm algorithm = algorithmFactory.createImplementation(algorithmKey);\n\n String resolverKey = properties.getEntryValue(ResourceConstants.RESOURCE_URI_RESOLVER_CLASS);\n Resolver resolver = resolverFactory.createImplementation(resolverKey);\n\n Resource resource = new ObjectResource(resourceName, rootNode, objectClass, algorithm, resolver);\n\n Object uniqueField = properties.getEntryValue(ResourceConstants.RESOURCE_UNIQUE_FIELD);\n List<String> uniqueFields = new ArrayList<String>();\n if (uniqueField != null)\n uniqueFields = Arrays.asList(StringUtil.split(uniqueField.toString(), \",\"));\n\n List<String> ignoredField = ResourceConstants.NON_SEARCHABLE_FIELDS;\n Map<String, String> entries = properties.getEntries();\n for (String fieldName : entries.keySet()) {\n if (!ignoredField.contains(fieldName)) {\n Boolean unique = Boolean.FALSE;\n if (uniqueFields.contains(fieldName))\n unique = Boolean.TRUE;\n resource.addFieldDefinition(fieldName, entries.get(fieldName), unique);\n }\n }\n\n return resource;\n }",
"public static void load(FileIO fileIO) \r\n\t{\n\t\t\r\n\t}",
"private String loadTemplate(String fileName)\n throws IOException, URISyntaxException\n {\n File file = new File(resolveResourcePath(this.TEMPLATE_PATH + fileName));\n BufferedReader reader = new BufferedReader(new FileReader(file));\n \n StringBuilder builder = new StringBuilder();\n String str = reader.readLine();\n while (str != null)\n {\n builder.append(str);\n str = reader.readLine();\n }\n return builder.toString();\n }",
"public Object loadResource(CameraRecord record);",
"public void load();",
"public void load();",
"private static ImageIcon load(String resourceFile) {\n logger.warn(\"Loading resource \" + resourceFile);\n ImageIcon icon = new ImageIcon(ImageResources.class.getResource(resourceFile));\n icon.setImageObserver(new ImageObserver() {\n @Override\n public boolean imageUpdate(Image image, int infoFlags, int x, int y, int width, int height) {\n logger.warn(\"Image observer \");\n return false;\n }\n });\n return icon;\n }",
"public void load() ;",
"@Override\n public InputStream findResource(String filename)\n {\n InputStream resource = null;\n try\n {\n Path scriptRootPath = Files.createDirectories(getScriptRootPath(side));\n Path scriptPath = scriptRootPath.resolve(filename).toAbsolutePath();\n resource = Files.newInputStream(scriptPath, StandardOpenOption.READ);\n } catch (IOException e)\n {\n resource = super.findResource(filename);\n }\n return resource;\n }",
"private static InputStream getResourceAsStream(final String filename) throws IOException {\n\t\t// Try to load resource from jar\n\t\tInputStream stream = TextureLoader.class.getResourceAsStream(filename);\n\t\t// If not found in jar, then load from disk\n\t\tif (stream == null) {\n\t\t\treturn new BufferedInputStream( new FileInputStream(filename) );\n\t\t} else {\n\t\t\treturn stream;\n\t\t}\n\t}",
"ResourceType getResource();",
"public static Clip loadSoundFromResourceFile(String filename) {\n try {\n ClassLoader classloader = Thread.currentThread().getContextClassLoader();\n InputStream is = classloader.getResourceAsStream(filename);\n AudioInputStream sound = AudioSystem.getAudioInputStream(new BufferedInputStream(is));\n Clip audioclip = AudioSystem.getClip();\n audioclip.open(sound);\n return audioclip;\n\n } catch (Exception e) {\n // Do nothing\n return null;\n }\n }",
"default void load(String file) {\n load(new File(file));\n }",
"public abstract IResource getResource();",
"@Override\n protected void load(ScanningContext context) {\n ResourceItem item = getRepository().getResourceItem(mType, mResourceName);\n\n // add this file to the list of files generating this resource item.\n item.add(this);\n\n // Ask for an ID refresh since we're adding an item that will generate an ID\n context.requestFullAapt();\n }",
"private void load(FileInputStream input) {\n\t\t\r\n\t}",
"public static void load() {\n }",
"private JPPFResourceWrapper loadResourceData(Map<String, Object> map, boolean asResource) throws ClassNotFoundException\n\t{\n\t\tJPPFResourceWrapper resource = null;\n\t\ttry\n\t\t{\n\t\t\tif (debugEnabled) log.debug(\"loading remote definition for resource [\" + map.get(\"name\") + \"]\");\n\t\t\tresource = loadResourceData0(map, asResource);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tif (debugEnabled) log.debug(\"connection with class server ended, re-initializing\");\n\t\t\tinit();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresource = loadResourceData0(map, asResource);\n\t\t\t}\n\t\t\tcatch(ClassNotFoundException ex)\n\t\t\t{\n\t\t\t\tthrow ex;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tif (debugEnabled) log.debug(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\tcatch(ClassNotFoundException e)\n\t\t{\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tif (debugEnabled) log.debug(e.getMessage(), e);\n\t\t}\n\t\treturn resource;\n\t}",
"public void\tload(String fileName) throws IOException;",
"protected abstract String getResourcePath();",
"@Override\n\tpublic Resource loadAsResource(String keyName) {\n\t\treturn null;\n\t}",
"private void loadDescriptor(File descriptorFile) throws IOException, InvalidXMLException,\n ResourceInitializationException {\n XMLInputSource in = new XMLInputSource(descriptorFile);\n ResourceSpecifier specifier = UIMAFramework.getXMLParser().parseResourceSpecifier(in);\n ResourceManager manager = UIMAFramework.newDefaultResourceManager();\n\n this.ae = UIMAFramework.produceAnalysisEngine(specifier, manager, null);\n this.cas = this.ae.newCAS();\n\n }",
"public void load() {\n }",
"@Override\r\n public void loadResources() {\n\r\n }",
"private Templates load(URL fileSource) throws Exception {\n return m_factory.newTemplates(new StreamSource(fileSource.openStream()));\n }",
"@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}",
"public static Image loadImageFromResourceFile(String filename) {\n try {\n ClassLoader classloader = Thread.currentThread().getContextClassLoader();\n InputStream is = classloader.getResourceAsStream(filename);\n return new Image(is);\n } catch (Exception e) {\n return null;\n }\n \n }",
"private InputStream getFileFromResourceAsStream(String fileName) {\n\n // The class loader that loaded the class\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n\n }",
"private static void load(){\n }",
"private String readResource(String name) throws IOException {\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n try (InputStream in = cl.getResourceAsStream(name)) {\n return new String(EncodingUtils.readAll(in), StandardCharsets.US_ASCII);\n }\n }",
"public void resourceLoaded(\n String resourcePath,\n InputStream resourceStream) {\n\n try {\n \n // clear the failure count if necessary\n if (loadFailureCounts.containsKey(resourcePath)) {\n loadFailureCounts.remove(resourcePath);\n }\n \n //now process the raw data into a buffer\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n byte[] buf = new byte[1024];\n for (int readNum; (readNum = resourceStream.read(buf)) != -1;) {\n bos.write(buf, 0, readNum); \n }\n byte[] bytes = bos.toByteArray();\n \n InputStream in = new ByteArrayInputStream(bytes);\n BufferedImage image = javax.imageio.ImageIO.read(in); \n \n // try to retrieve from the classpath\n JToolButton button = urlToButtonMap.get(resourcePath);\n\n // create the necessary icons for button state\n generateButtonIcons(button, image); \n \n // make sure the filters are correctly applied\n catalogFilter.refreshCurrentToolGroup();\n\n // allow selection\n button.setLoaded(true);\n button.addItemListener(this);\n button.revalidate();\n\n } catch (IOException ioe) {\n \n ioe.printStackTrace();\n \n }\n\n }",
"static byte[] readResource(String name) throws IOException {\n byte[] buf = new byte[1024];\n\n InputStream in = Main.class.getResourceAsStream(name);\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n int n;\n while ((n = in.read(buf)) > 0) {\n bout.write(buf, 0, n);\n }\n try { in.close(); } catch (Exception ignored) { } \n\n return bout.toByteArray();\n }",
"private String getDataFromClassResourceFile(String file) {\n\n StringBuffer sb = new StringBuffer();\n String str = \"\";\n\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(file);\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n if (is != null) {\n while ((str = reader.readLine()) != null) {\n sb.append(str + \"\\n\");\n }\n }\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (Throwable ignore) {\n }\n }\n return sb.toString();\n\n }",
"public abstract void load();",
"protected Resource getResource(Fault fault, Locale locale) {\r\n FaultDefinition faultDefinition = fault.getFaultDefinition();\r\n String resourceBundleSource = faultDefinition.getResourceBundleSource();\r\n \r\n logger.log(Level.FINE, \"Loading resource for bundle {0}\", resourceBundleSource);\r\n \r\n Resource resource = Resource.valueOf(resourceBundleSource, locale);\r\n return resource;\r\n }",
"public Object makeResource();",
"private JSONObject loadTemplate(Path extensionResourcePath) throws ExtensionManagementException {\n\n Path templatePath = extensionResourcePath.resolve(TEMPLATE_FILE_NAME);\n if (Files.exists(templatePath) && Files.isRegularFile(templatePath)) {\n return readJSONFile(templatePath);\n }\n return null;\n }",
"public static <T> T load(URL location, ResourceBundle resources) throws IOException {\n return builder().location(location).resources(resources).build().load();\n }",
"public static Resource getUserFileResource() throws IOException {\n Path tempFile = Files.createTempFile(\"upload-test-file\", \".jpg\");\n Files.write(tempFile,FileUtils.readFileToByteArray(new File(\"d:/file_test.jpg\"))); \n // \"some test content...\\nline1\\nline2\".getBytes());\n System.out.println(\"uploading: \" + tempFile);\n File file = tempFile.toFile();\n //to upload in-memory bytes use ByteArrayResource instead\n return new FileSystemResource(file);\n }",
"public abstract void init(ResourceLoader loader);",
"ValueResourceParser2(@NonNull File file) {\n mFile = file;\n }",
"private InputStream getFileFromResourceAsStream(String fileName) {\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(fileName);\n\n // the stream holding the file content\n if (inputStream == null) {\n throw new IllegalArgumentException(\"file not found! \" + fileName);\n } else {\n return inputStream;\n }\n }",
"public void load() throws ClassNotFoundException, IOException;",
"void load();",
"void load();",
"public void loadWorkflow(String filename);",
"public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}",
"@Override\n\tpublic InputStream getResource(ResourcePackType p_195761_1_, ResourceLocation p_195761_2_) throws IOException {\n\t\treturn null;\n\t}",
"public String getResourcePath();",
"static String readResource(String name) throws IOException {\n InputStream is = Server.class.getResourceAsStream(name);\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }",
"protected abstract InputStream getStream(String resource);",
"public void load() {\n\t}",
"public <T> Config.Resource<T> resource(String path) {\n return toResource(resolve(path));\n }",
"protected String readFile(int resourceFile) {\n Context context = getContext();\n if (context != null) {\n try {\n InputStream is = context.getResources().openRawResource(resourceFile);\n return Okio.buffer(Okio.source(is)).readString(Charset.defaultCharset());\n } catch (IOException e) {\n Log.e(TAG, \"Failed to read config\", e);\n }\n }\n return \"\";\n }",
"public InputStream open() {\n return demoResourceLoader.getResourceAsStream(\n MessageFormat.format(\"{0}/{1}.groovy\",\n scenario.getName().toLowerCase(), name));\n }",
"public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }",
"public abstract void loadFile(Model mod, String fn) throws IOException;",
"public ResourceInterface loadResource(String resourceId) throws Throwable {\n\t\treturn this.getResourceManager().loadResource(resourceId);\n\t}",
"public void load(InputStream is) throws IOException;",
"private static String loadFile(File file) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\treturn br.readLine();\n\t}",
"public interface LoadFile {\n public String loadFile();\n}",
"public static <T> T load(URL location, ResourceBundle resources, BuilderFactory builderFactory,\n Charset charset) throws IOException {\n return builder().location(location).resources(resources).builderFactory(builderFactory)\n .charset(charset).build().load();\n }",
"public URL getResourceLocation( String name );",
"@Override\n\tpublic void init(String file_name) { deserialize(file_name); }"
] | [
"0.8102965",
"0.7845247",
"0.7040777",
"0.69357204",
"0.6922961",
"0.6885435",
"0.68390995",
"0.68084395",
"0.68028903",
"0.6780035",
"0.6753841",
"0.6701164",
"0.6623777",
"0.6544897",
"0.6404422",
"0.6393032",
"0.6385573",
"0.6374101",
"0.6335569",
"0.6324604",
"0.631964",
"0.63101983",
"0.628836",
"0.6275494",
"0.6270559",
"0.6260341",
"0.6218674",
"0.62050366",
"0.61712956",
"0.6170663",
"0.61623883",
"0.6150843",
"0.6145382",
"0.6133019",
"0.6124291",
"0.61177856",
"0.61157364",
"0.60695314",
"0.6066122",
"0.598694",
"0.5984678",
"0.5978194",
"0.5978194",
"0.5972773",
"0.596575",
"0.59644514",
"0.5960404",
"0.59535736",
"0.59514743",
"0.59435695",
"0.59360516",
"0.59207314",
"0.5914295",
"0.59119743",
"0.5900921",
"0.58982474",
"0.5894189",
"0.58932436",
"0.58831584",
"0.5881785",
"0.5836382",
"0.5829833",
"0.5829044",
"0.58273435",
"0.5811253",
"0.5805004",
"0.5790627",
"0.57893825",
"0.57884526",
"0.5773842",
"0.5764829",
"0.5759631",
"0.5758022",
"0.5747754",
"0.5747495",
"0.574357",
"0.5739534",
"0.5733013",
"0.57202333",
"0.57181114",
"0.57103986",
"0.57103986",
"0.5708794",
"0.57054836",
"0.56892765",
"0.5686563",
"0.56825906",
"0.56782365",
"0.5673189",
"0.56634456",
"0.56608534",
"0.56576693",
"0.5654524",
"0.565291",
"0.56510276",
"0.5649583",
"0.5615347",
"0.5610689",
"0.56073695",
"0.55983",
"0.5597636"
] | 0.0 | -1 |
/ renamed from: a | public static C1661h m8999a() {
return f7523b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public C1614a m9000a(BluetoothDevice bluetoothDevice, int i, boolean z, String str) {
if (bluetoothDevice == null) {
return null;
}
C1614a b = m9005b(str);
C1614a b2 = m9004b();
if (b == null) {
b = new C1614a(bluetoothDevice, 0, z, i, str);
this.f7524c.put(b.m8728a(), b);
return b;
}
if (b2 == null) {
b.m8729a(0);
} else if (TextUtils.equals(b.m8728a(), b2.m8728a())) {
b.m8729a(b.m8737c());
} else {
b.m8729a(0);
}
b.m8730a(bluetoothDevice);
b.m8733a(z);
b.m8735b(i);
return b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public C1614a m9001a(String str) {
if (TextUtils.isEmpty(str)) {
f7522a.debug("centralId is empty !");
return null;
}
C1614a b = m9005b(str);
if (b != null) {
return b;
}
b = new C1614a(str);
this.f7524c.put(b.m8728a(), b);
return b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: b | public C1614a m9005b(String str) {
return (C1614a) this.f7524c.get(str);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ renamed from: b | public C1614a m9004b() {
for (Entry value : this.f7524c.entrySet()) {
C1614a c1614a = (C1614a) value.getValue();
if (c1614a.m8737c() == 4) {
return c1614a;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ renamed from: c | public C1614a m9006c() {
for (Entry value : this.f7524c.entrySet()) {
C1614a c1614a = (C1614a) value.getValue();
if (c1614a.m8737c() == 2) {
return c1614a;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
"public void c() {\n }",
"void mo17012c();",
"C2451d mo3408a(C2457e c2457e);",
"void mo88524c();",
"void mo86a(C0163d c0163d);",
"void mo17021c();",
"public abstract void mo53562a(C18796a c18796a);",
"void mo4874b(C4718l c4718l);",
"void mo4873a(C4718l c4718l);",
"C12017a mo41088c();",
"public abstract void mo70702a(C30989b c30989b);",
"void mo72114c();",
"public void mo12628c() {\n }",
"C2841w mo7234g();",
"public interface C0335c {\n }",
"public void mo1403c() {\n }",
"public static void c3() {\n\t}",
"public static void c1() {\n\t}",
"void mo8712a(C9714a c9714a);",
"void mo67924c();",
"public void mo97906c() {\n }",
"public abstract void mo27385c();",
"String mo20731c();",
"public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }",
"public interface C0939c {\n }",
"void mo1582a(String str, C1329do c1329do);",
"void mo304a(C0366h c0366h);",
"void mo1493c();",
"private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}",
"java.lang.String getC3();",
"C45321i mo90380a();",
"public interface C11910c {\n}",
"void mo57277b();",
"String mo38972c();",
"static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}",
"public static void CC2_1() {\n\t}",
"static int type_of_cc(String passed){\n\t\treturn 1;\n\t}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public void mo56167c() {\n }",
"public interface C0136c {\n }",
"private void kk12() {\n\n\t}",
"abstract String mo1748c();",
"public abstract void mo70710a(String str, C24343db c24343db);",
"public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}",
"C3577c mo19678C();",
"public abstract int c();",
"public abstract int c();",
"public final void mo11687c() {\n }",
"byte mo30283c();",
"private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }",
"@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}",
"public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}",
"public static void mmcc() {\n\t}",
"java.lang.String getCit();",
"public abstract C mo29734a();",
"C15430g mo56154a();",
"void mo41086b();",
"@Override\n public void func_104112_b() {\n \n }",
"public interface C9223b {\n }",
"public abstract String mo11611b();",
"void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);",
"String getCmt();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"interface C2578d {\n}",
"public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}",
"double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }",
"void mo72113b();",
"void mo1749a(C0288c cVar);",
"public interface C0764b {\n}",
"void mo41083a();",
"String[] mo1153c();",
"C1458cs mo7613iS();",
"public interface C0333a {\n }",
"public abstract int mo41077c();",
"public interface C8843g {\n}",
"public abstract void mo70709a(String str, C41018cm c41018cm);",
"void mo28307a(zzgd zzgd);",
"public static void mcdc() {\n\t}",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"C1435c mo1754a(C1433a c1433a, C1434b c1434b);",
"public interface C0389gj extends C0388gi {\n}",
"C5727e mo33224a();",
"C12000e mo41087c(String str);",
"public abstract String mo118046b();",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C0938b {\n }",
"void mo80455b();",
"public interface C0385a {\n }",
"public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}",
"public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}",
"public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}"
] | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",
"0.60513836",
"0.6049069",
"0.6030368",
"0.60263443",
"0.60089093",
"0.59970635",
"0.59756917",
"0.5956231",
"0.5949343",
"0.5937446",
"0.5911776",
"0.59034705",
"0.5901311",
"0.5883238",
"0.5871533",
"0.5865361",
"0.5851141",
"0.581793",
"0.5815705",
"0.58012",
"0.578891",
"0.57870495",
"0.5775621",
"0.57608724",
"0.5734331",
"0.5731584",
"0.5728505",
"0.57239383",
"0.57130504",
"0.57094604",
"0.570793",
"0.5697671",
"0.56975955",
"0.56911296",
"0.5684489",
"0.5684489",
"0.56768984",
"0.56749034",
"0.5659463",
"0.56589085",
"0.56573",
"0.56537443",
"0.5651912",
"0.5648272",
"0.5641736",
"0.5639226",
"0.5638583",
"0.56299245",
"0.56297386",
"0.56186295",
"0.5615729",
"0.56117755",
"0.5596015",
"0.55905765",
"0.55816257",
"0.55813104",
"0.55723965",
"0.5572061",
"0.55696625",
"0.5566985",
"0.55633485",
"0.555888",
"0.5555646",
"0.55525774",
"0.5549722",
"0.5548184",
"0.55460495",
"0.5539394",
"0.5535825",
"0.55300397",
"0.5527975",
"0.55183905",
"0.5517322",
"0.5517183",
"0.55152744",
"0.5514932",
"0.55128884",
"0.5509501",
"0.55044043",
"0.54984957"
] | 0.0 | -1 |
/ renamed from: d | public List<C1614a> m9008d() {
return this.f7525d;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }",
"public abstract int d();",
"private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }",
"public int d()\n {\n return 1;\n }",
"public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }",
"void mo21073d();",
"@Override\n public boolean d() {\n return false;\n }",
"int getD();",
"public void dor(){\n }",
"public int getD() {\n\t\treturn d;\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}",
"public String getD() {\n return d;\n }",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"public final void mo91715d() {\n }",
"public D() {}",
"void mo17013d();",
"public int getD() {\n return d_;\n }",
"void mo83705a(C32458d<T> dVar);",
"public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}",
"double d();",
"public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }",
"protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}",
"public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }",
"public abstract C17954dh<E> mo45842a();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}",
"public abstract void mo56925d();",
"void mo54435d();",
"public void mo21779D() {\n }",
"public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }",
"@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }",
"void mo28307a(zzgd zzgd);",
"List<String> d();",
"d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }",
"public int getD() {\n return d_;\n }",
"public void addDField(String d){\n\t\tdfield.add(d);\n\t}",
"public void mo3749d() {\n }",
"public a dD() {\n return new a(this.HG);\n }",
"public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }",
"public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }",
"public abstract int getDx();",
"public void mo97908d() {\n }",
"public com.c.a.d.d d() {\n return this.k;\n }",
"private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }",
"public boolean d() {\n return false;\n }",
"void mo17023d();",
"String dibujar();",
"@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}",
"public void mo2470d() {\n }",
"public abstract VH mo102583a(ViewGroup viewGroup, D d);",
"public abstract String mo41079d();",
"public void setD ( boolean d ) {\n\n\tthis.d = d;\n }",
"public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }",
"DoubleNode(int d) {\n\t data = d; }",
"DD createDD();",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }",
"public int d()\r\n {\r\n return 20;\r\n }",
"float getD();",
"public static int m22546b(double d) {\n return 8;\n }",
"void mo12650d();",
"String mo20732d();",
"static void feladat4() {\n\t}",
"void mo130799a(double d);",
"public void mo2198g(C0317d dVar) {\n }",
"@Override\n public void d(String TAG, String msg) {\n }",
"private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}",
"public void d(String str) {\n ((b.b) this.b).g(str);\n }",
"public abstract void mo42329d();",
"public abstract long mo9229aD();",
"public abstract String getDnForPerson(String inum);",
"public interface ddd {\n public String dan();\n\n}",
"@Override\n public void func_104112_b() {\n \n }",
"public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}",
"public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }",
"public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}",
"public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }",
"public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }",
"public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}",
"DomainHelper dh();",
"private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}",
"static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }",
"public Double getDx();",
"public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }",
"boolean hasD();",
"public abstract void mo27386d();",
"MergedMDD() {\n }",
"@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@Override\n public Chunk d(int i0, int i1) {\n return null;\n }",
"public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }",
"double defendre();",
"public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }",
"public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }",
"public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}"
] | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222",
"0.5541367",
"0.5534182",
"0.55326",
"0.550431",
"0.55041796",
"0.5500838",
"0.54946786",
"0.5475938",
"0.5466879",
"0.5449981",
"0.5449007",
"0.54464436",
"0.5439673",
"0.543565",
"0.5430978",
"0.5428843",
"0.5423923",
"0.542273",
"0.541701",
"0.5416963",
"0.54093426",
"0.53927654",
"0.53906536",
"0.53793144",
"0.53732955",
"0.53695524",
"0.5366731",
"0.53530186",
"0.535299",
"0.53408253",
"0.5333639",
"0.5326304",
"0.53250664",
"0.53214055",
"0.53208005",
"0.5316437",
"0.53121597",
"0.52979535",
"0.52763224",
"0.5270543",
"0.526045",
"0.5247397",
"0.5244388",
"0.5243049",
"0.5241726",
"0.5241194",
"0.523402",
"0.5232349",
"0.5231111",
"0.5230985",
"0.5219358",
"0.52145815",
"0.5214168",
"0.5209237",
"0.52059376",
"0.51952434",
"0.5193699",
"0.51873696",
"0.5179743",
"0.5178796",
"0.51700175",
"0.5164517",
"0.51595956",
"0.5158281",
"0.51572365",
"0.5156627",
"0.5155795",
"0.51548296",
"0.51545656",
"0.5154071",
"0.51532024",
"0.5151545",
"0.5143571",
"0.5142079",
"0.5140048",
"0.51377696",
"0.5133826",
"0.5128858",
"0.5125679",
"0.5121545"
] | 0.0 | -1 |
/ renamed from: a | public List<C1614a> m9002a(C1614a c1614a) {
if (this.f7525d.contains(c1614a)) {
f7522a.info("updateScanResult scanResults contains[" + c1614a.m8728a() + "]");
return null;
}
int size = this.f7525d.size();
for (int i = 0; i < size; i++) {
if (TextUtils.equals(c1614a.m8728a(), ((C1614a) this.f7525d.get(i)).m8728a())) {
this.f7525d.remove(i);
this.f7525d.add(i, c1614a);
return this.f7525d;
}
}
this.f7525d.add(c1614a);
return this.f7525d;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.6249595",
"0.6242955",
"0.61393225",
"0.6117684",
"0.61140615",
"0.60893875",
"0.6046927",
"0.60248226",
"0.60201806",
"0.59753186",
"0.5947817",
"0.5912414",
"0.5883872",
"0.5878469",
"0.587005",
"0.58678955",
"0.58651674",
"0.5857262",
"0.58311176",
"0.58279663",
"0.58274275",
"0.5794977",
"0.57889086",
"0.57837564",
"0.5775938",
"0.57696944",
"0.57688814",
"0.5752557",
"0.5690739",
"0.5678386",
"0.567034",
"0.56661606",
"0.56595623",
"0.56588095",
"0.56576085",
"0.5654566",
"0.56445956",
"0.56401736",
"0.5638699",
"0.56305",
"0.56179273",
"0.56157446",
"0.5607045",
"0.5605239",
"0.5600648",
"0.5595156",
"0.55912733",
"0.5590759",
"0.5573802",
"0.5556659",
"0.55545336",
"0.5550466",
"0.5549409",
"0.5544484",
"0.55377364",
"0.55291194",
"0.55285007",
"0.55267704",
"0.5525843",
"0.5522067",
"0.5520236",
"0.55098593",
"0.5507351",
"0.5488173",
"0.54860324",
"0.54823226",
"0.5481975",
"0.5481588",
"0.5480086",
"0.5478032",
"0.54676044",
"0.5463578",
"0.54506475",
"0.54438734",
"0.5440832",
"0.5440053",
"0.5432095",
"0.5422814",
"0.5421934",
"0.54180306",
"0.5403851",
"0.5400144",
"0.5400042",
"0.5394655",
"0.53891194",
"0.5388751",
"0.53749055",
"0.53691155",
"0.53590924",
"0.5356525",
"0.5355397",
"0.535498",
"0.5354871",
"0.535003",
"0.5341249",
"0.5326222",
"0.53232485",
"0.53197914",
"0.5316941",
"0.5311645",
"0.5298656"
] | 0.0 | -1 |
/ renamed from: e | public void m9010e() {
if (this.f7525d != null) {
this.f7525d.clear();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void e() {\n\n\t}",
"public void e() {\n }",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"public String toString()\r\n {\r\n return e.toString();\r\n }",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public Object element() { return e; }",
"@Override\n public void e(int i0, int i1) {\n\n }",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"private static Throwable handle(final Throwable e) {\r\n\t\te.printStackTrace();\r\n\r\n\t\tif (e.getCause() != null) {\r\n\t\t\te.getCause().printStackTrace();\r\n\t\t}\r\n\t\tif (e instanceof SAXException) {\r\n\t\t\t((SAXException) e).getException().printStackTrace();\r\n\t\t}\r\n\t\treturn e;\r\n\t}",
"void event(Event e) throws Exception;",
"Event getE();",
"public int getE() {\n return e_;\n }",
"@Override\n\tpublic void onException(Exception e) {\n\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(2));\r\n\t\t\t}",
"public byte e()\r\n/* 84: */ {\r\n/* 85:86 */ return this.e;\r\n/* 86: */ }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(1));\r\n\t\t\t}",
"public void toss(Exception e);",
"private void log(IndexObjectException e) {\n\t\t\r\n\t}",
"public int getE() {\n return e_;\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"private String getStacktraceFromException(Exception e) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tPrintStream ps = new PrintStream(baos);\n\t\te.printStackTrace(ps);\n\t\tps.close();\n\t\treturn baos.toString();\n\t}",
"protected void processEdge(Edge e) {\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"E \" + super.toString();\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(0));\r\n\t\t\t}",
"public Element getElement() {\n/* 78 */ return this.e;\n/* */ }",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"void mo57276a(Exception exc);",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }",
"@Override\r\n\t\t\tpublic void onError(Throwable e) {\n\r\n\t\t\t}",
"private void sendOldError(Exception e) {\n }",
"private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n protected void processMouseEvent(MouseEvent e) {\n super.processMouseEvent(e);\n }",
"private void printInfo(SAXParseException e) {\n\t}",
"@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}",
"String exceptionToStackTrace( Exception e ) {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter);\n e.printStackTrace( printWriter );\n return stringWriter.toString();\n }",
"public <E> E getE(E e){\n return e;\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@PortedFrom(file = \"tSignatureUpdater.h\", name = \"vE\")\n private void vE(NamedEntity e) {\n sig.add(e);\n }",
"@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}",
"void showResultMoError(String e);",
"public int E() {\n \treturn E;\n }",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"static public String getStackTrace(Exception e) {\n java.io.StringWriter s = new java.io.StringWriter(); \n e.printStackTrace(new java.io.PrintWriter(s));\n String trace = s.toString();\n \n if(trace==null || trace.length()==0 || trace.equals(\"null\"))\n return e.toString();\n else\n return trace;\n }",
"@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }",
"public static void error(boolean e) {\n E = e;\n }",
"public void out_ep(Edge e) {\r\n\r\n\t\tif (triangulate == 0 & plot == 1) {\r\n\t\t\tclip_line(e);\r\n\t\t}\r\n\r\n\t\tif (triangulate == 0 & plot == 0) {\r\n\t\t\tSystem.err.printf(\"e %d\", e.edgenbr);\r\n\t\t\tSystem.err.printf(\" %d \", e.ep[le] != null ? e.ep[le].sitenbr : -1);\r\n\t\t\tSystem.err.printf(\"%d\\n\", e.ep[re] != null ? e.ep[re].sitenbr : -1);\r\n\t\t}\r\n\r\n\t}",
"public void m58944a(E e) {\n this.f48622a = e;\n }",
"void mo43357a(C16726e eVar) throws RemoteException;",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\n\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t}",
"static String getElementText(Element e) {\n if (e.getChildNodes().getLength() == 1) {\n Text elementText = (Text) e.getFirstChild();\n return elementText.getNodeValue();\n }\n else\n return \"\";\n }",
"public RuntimeException processException(RuntimeException e)\n\n {\n\treturn new RuntimeException(e);\n }",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t}",
"@java.lang.Override\n public java.lang.String getE() {\n java.lang.Object ref = e_;\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 e_ = s;\n return s;\n }\n }",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(2));\r\n\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}",
"com.walgreens.rxit.ch.cda.EIVLEvent getEvent();",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(4));\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"public e o() {\r\n return k();\r\n }",
"@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}"
] | [
"0.72328156",
"0.66032064",
"0.6412127",
"0.6362734",
"0.633999",
"0.62543726",
"0.6232265",
"0.6159535",
"0.61226326",
"0.61226326",
"0.60798717",
"0.6049423",
"0.60396963",
"0.60011584",
"0.5998842",
"0.59709895",
"0.59551716",
"0.5937381",
"0.58854383",
"0.5870234",
"0.5863486",
"0.58606255",
"0.58570576",
"0.5832809",
"0.57954526",
"0.5784194",
"0.57723534",
"0.576802",
"0.57466",
"0.57258075",
"0.5722709",
"0.5722404",
"0.57134414",
"0.56987166",
"0.5683048",
"0.5671214",
"0.5650087",
"0.56173986",
"0.56142104",
"0.56100404",
"0.5604611",
"0.55978096",
"0.5597681",
"0.55941516",
"0.55941516",
"0.55941516",
"0.5578516",
"0.55689955",
"0.5568649",
"0.5564652",
"0.5561944",
"0.5561737",
"0.5560318",
"0.555748",
"0.5550611",
"0.5550611",
"0.5550611",
"0.5550611",
"0.5547971",
"0.55252135",
"0.5523029",
"0.55208814",
"0.5516037",
"0.5512",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118227",
"0.5509796",
"0.5509671",
"0.5503605",
"0.55015326",
"0.5499632",
"0.54921895",
"0.54892236",
"0.5483562",
"0.5483562",
"0.5482999",
"0.54812574",
"0.5479943",
"0.54787004",
"0.54778624",
"0.5472073",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.5468417",
"0.54673034",
"0.54645115"
] | 0.0 | -1 |
/ renamed from: d | public boolean m9009d(String str) {
C1614a b = m9005b(str);
if (b == null || b.m8737c() != 4) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }",
"public abstract int d();",
"private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }",
"public int d()\n {\n return 1;\n }",
"public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }",
"void mo21073d();",
"@Override\n public boolean d() {\n return false;\n }",
"int getD();",
"public void dor(){\n }",
"public int getD() {\n\t\treturn d;\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}",
"public String getD() {\n return d;\n }",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"public final void mo91715d() {\n }",
"public D() {}",
"void mo17013d();",
"public int getD() {\n return d_;\n }",
"void mo83705a(C32458d<T> dVar);",
"public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}",
"double d();",
"public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }",
"protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}",
"public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }",
"public abstract C17954dh<E> mo45842a();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}",
"public abstract void mo56925d();",
"void mo54435d();",
"public void mo21779D() {\n }",
"public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }",
"@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }",
"void mo28307a(zzgd zzgd);",
"List<String> d();",
"d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }",
"public int getD() {\n return d_;\n }",
"public void addDField(String d){\n\t\tdfield.add(d);\n\t}",
"public void mo3749d() {\n }",
"public a dD() {\n return new a(this.HG);\n }",
"public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }",
"public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }",
"public abstract int getDx();",
"public void mo97908d() {\n }",
"public com.c.a.d.d d() {\n return this.k;\n }",
"private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }",
"public boolean d() {\n return false;\n }",
"void mo17023d();",
"String dibujar();",
"@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}",
"public void mo2470d() {\n }",
"public abstract VH mo102583a(ViewGroup viewGroup, D d);",
"public abstract String mo41079d();",
"public void setD ( boolean d ) {\n\n\tthis.d = d;\n }",
"public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }",
"DoubleNode(int d) {\n\t data = d; }",
"DD createDD();",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }",
"public int d()\r\n {\r\n return 20;\r\n }",
"float getD();",
"public static int m22546b(double d) {\n return 8;\n }",
"void mo12650d();",
"String mo20732d();",
"static void feladat4() {\n\t}",
"void mo130799a(double d);",
"public void mo2198g(C0317d dVar) {\n }",
"@Override\n public void d(String TAG, String msg) {\n }",
"private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}",
"public void d(String str) {\n ((b.b) this.b).g(str);\n }",
"public abstract void mo42329d();",
"public abstract long mo9229aD();",
"public abstract String getDnForPerson(String inum);",
"public interface ddd {\n public String dan();\n\n}",
"@Override\n public void func_104112_b() {\n \n }",
"public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}",
"public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }",
"public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}",
"public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }",
"public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }",
"public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}",
"DomainHelper dh();",
"private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}",
"static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }",
"public Double getDx();",
"public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }",
"boolean hasD();",
"public abstract void mo27386d();",
"MergedMDD() {\n }",
"@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@Override\n public Chunk d(int i0, int i1) {\n return null;\n }",
"public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }",
"double defendre();",
"public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }",
"public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }",
"public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}"
] | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222",
"0.5541367",
"0.5534182",
"0.55326",
"0.550431",
"0.55041796",
"0.5500838",
"0.54946786",
"0.5475938",
"0.5466879",
"0.5449981",
"0.5449007",
"0.54464436",
"0.5439673",
"0.543565",
"0.5430978",
"0.5428843",
"0.5423923",
"0.542273",
"0.541701",
"0.5416963",
"0.54093426",
"0.53927654",
"0.53906536",
"0.53793144",
"0.53732955",
"0.53695524",
"0.5366731",
"0.53530186",
"0.535299",
"0.53408253",
"0.5333639",
"0.5326304",
"0.53250664",
"0.53214055",
"0.53208005",
"0.5316437",
"0.53121597",
"0.52979535",
"0.52763224",
"0.5270543",
"0.526045",
"0.5247397",
"0.5244388",
"0.5243049",
"0.5241726",
"0.5241194",
"0.523402",
"0.5232349",
"0.5231111",
"0.5230985",
"0.5219358",
"0.52145815",
"0.5214168",
"0.5209237",
"0.52059376",
"0.51952434",
"0.5193699",
"0.51873696",
"0.5179743",
"0.5178796",
"0.51700175",
"0.5164517",
"0.51595956",
"0.5158281",
"0.51572365",
"0.5156627",
"0.5155795",
"0.51548296",
"0.51545656",
"0.5154071",
"0.51532024",
"0.5151545",
"0.5143571",
"0.5142079",
"0.5140048",
"0.51377696",
"0.5133826",
"0.5128858",
"0.5125679",
"0.5121545"
] | 0.0 | -1 |
/ renamed from: f | public boolean m9011f() {
return m9004b() != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void func_70305_f() {}",
"public static Forca get_f(){\n\t\treturn f;\n\t}",
"void mo84656a(float f);",
"public final void mo8765a(float f) {\n }",
"@Override\n public int f() {\n return 0;\n }",
"public void f() {\n }",
"void mo9704b(float f, float f2, int i);",
"void mo56155a(float f);",
"public void f() {\n }",
"void mo9696a(float f, float f2, int i);",
"@Override\n\tpublic void f2() {\n\t\t\n\t}",
"public void f() {\n Message q_ = q_();\n e.c().a(new f(255, a(q_.toByteArray())), getClass().getSimpleName(), i().a(), q_);\n }",
"void mo72112a(float f);",
"void mo9694a(float f, float f2);",
"void f1() {\r\n\t}",
"public amj p()\r\n/* 543: */ {\r\n/* 544:583 */ return this.f;\r\n/* 545: */ }",
"double cFromF(double f) {\n return (f-32) * 5 / 9;\n }",
"void mo34547J(float f, float f2);",
"@Override\n\tpublic void f1() {\n\n\t}",
"public void f() {\n this.f25459e.J();\n }",
"public abstract void mo70718c(String str, float f);",
"public byte f()\r\n/* 89: */ {\r\n/* 90:90 */ return this.f;\r\n/* 91: */ }",
"C3579d mo19694a(C3581f fVar) throws IOException;",
"public abstract void mo70714b(String str, float f);",
"void mo9705c(float f, float f2);",
"FunctionCall getFc();",
"@Override\n\tpublic void af(String t) {\n\n\t}",
"void mo9695a(float f, float f2, float f3, float f4, float f5);",
"public abstract void mo70705a(String str, float f);",
"void mo21075f();",
"static double transform(int f) {\n return (5.0 / 9.0 * (f - 32));\n\n }",
"private int m216e(float f) {\n int i = (int) (f + 0.5f);\n return i % 2 == 1 ? i - 1 : i;\n }",
"void mo9703b(float f, float f2);",
"public abstract int mo123247f();",
"void mo6072a(float f) {\n this.f2347q = this.f2342e.mo6054a(f);\n }",
"public float mo12718a(float f) {\n return f;\n }",
"public abstract void mo70706a(String str, float f, float f2);",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"public int getF() {\n\t\treturn f;\n\t}",
"public void f()\r\n {\r\n float var1 = 0.5F;\r\n float var2 = 0.125F;\r\n float var3 = 0.5F;\r\n this.a(0.5F - var1, 0.5F - var2, 0.5F - var3, 0.5F + var1, 0.5F + var2, 0.5F + var3);\r\n }",
"void mo9698a(String str, float f);",
"private static float m82748a(float f) {\n if (f == 0.0f) {\n return 1.0f;\n }\n return 0.0f;\n }",
"static void feladat4() {\n\t}",
"public int getf(){\r\n return f;\r\n}",
"private static double FToC(double f) {\n\t\treturn (f-32)*5/9;\n\t}",
"public void a(Float f) {\n ((b.b) this.b).a(f);\n }",
"public Flt(float f) {this.f = new Float(f);}",
"static double f(double x){\n \treturn Math.sin(x);\r\n }",
"private float m23258a(float f, float f2, float f3) {\n return f + ((f2 - f) * f3);\n }",
"public double getF();",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"final void mo6072a(float f) {\n this.f2349i = this.f2348h.mo6057b(f);\n }",
"private float m87322b(float f) {\n return (float) Math.sin((double) ((float) (((double) (f - 0.5f)) * 0.4712389167638204d)));\n }",
"public void colores(int f) {\n this.f = f;\n }",
"static float m51586b(float f, float f2, float f3) {\n return ((f2 - f) * f3) + f;\n }",
"void mo3193f();",
"public void mo3777a(float f) {\n this.f1443S = f;\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"static void feladat9() {\n\t}",
"private double f2c(double f)\n {\n return (f-32)*5/9;\n }",
"public void e(Float f) {\n ((b.b) this.b).e(f);\n }",
"int mo9691a(String str, String str2, float f);",
"void mo196b(float f) throws RemoteException;",
"public void d(Float f) {\n ((b.b) this.b).d(f);\n }",
"static void feladat7() {\n\t}",
"public void b(Float f) {\n ((b.b) this.b).b(f);\n }",
"long mo54439f(int i);",
"public void c(Float f) {\n ((b.b) this.b).c(f);\n }",
"@java.lang.Override\n public java.lang.String getF() {\n java.lang.Object ref = f_;\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 f_ = s;\n return s;\n }\n }",
"public static void detectComponents(String f) {\n\t\t\n\t}",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"public void f() {\n if (this instanceof b) {\n b bVar = (b) this;\n Message q_ = bVar.q_();\n e.c().a(new f(bVar.b(), q_.toByteArray()), getClass().getSimpleName(), i().a(), q_);\n return;\n }\n f a2 = a();\n if (a2 != null) {\n e.c().a(a2, getClass().getSimpleName(), i().a(), (Message) null);\n }\n }",
"void mo54440f();",
"public int F()\r\n/* 24: */ {\r\n/* 25: 39 */ return aqt.a(0.5D, 1.0D);\r\n/* 26: */ }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public abstract int mo9741f();",
"void testMethod() {\n f();\n }",
"public static int m22547b(float f) {\n return 4;\n }",
"public float mo12728b(float f) {\n return f;\n }",
"public void mo1963f() throws cf {\r\n }",
"public abstract File mo41087j();",
"@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}",
"public abstract int f(int i2);",
"static void feladat6() {\n\t}",
"public void furyo ()\t{\n }",
"long mo30295f();",
"public void a(zf zfVar, Canvas canvas, float f, float f2) {\n }",
"public T fjern();",
"public static void feec() {\n\t}",
"@Override\n\tdouble f(double x) {\n\t\treturn x;\n\t}",
"static void feladat3() {\n\t}",
"static void feladat8() {\n\t}",
"public void mo3797c(float f) {\n this.f1455ad[0] = f;\n }",
"public abstract double fct(double x);",
"public interface b {\n boolean f(@NonNull File file);\n }",
"public void setF(){\n\t\tf=calculateF();\n\t}",
"public FI_() {\n }",
"static void feladat5() {\n\t}",
"private final void m57544f(int i) {\n this.f47568d.m63092a(new C15335a(i, true));\n }",
"public abstract long f();"
] | [
"0.7323683",
"0.65213245",
"0.649907",
"0.64541733",
"0.6415534",
"0.63602704",
"0.6325114",
"0.63194084",
"0.630473",
"0.62578535",
"0.62211406",
"0.6209556",
"0.6173324",
"0.61725706",
"0.61682224",
"0.6135272",
"0.6130462",
"0.6092916",
"0.6089471",
"0.6073019",
"0.6069227",
"0.6045645",
"0.60285485",
"0.6017334",
"0.60073197",
"0.59810024",
"0.59757596",
"0.5967885",
"0.5942414",
"0.59418225",
"0.5939683",
"0.59241796",
"0.58987755",
"0.5894165",
"0.58801377",
"0.5879881",
"0.5830818",
"0.57981277",
"0.5790314",
"0.578613",
"0.5775656",
"0.5772591",
"0.57630384",
"0.5752546",
"0.5752283",
"0.5735288",
"0.5733957",
"0.57191586",
"0.57179475",
"0.57131994",
"0.57131445",
"0.5706053",
"0.5689441",
"0.56773764",
"0.5667179",
"0.56332076",
"0.5623908",
"0.56229013",
"0.5620846",
"0.5620233",
"0.5616687",
"0.5610022",
"0.5601161",
"0.55959773",
"0.5594083",
"0.55762523",
"0.5570697",
"0.5569185",
"0.5552703",
"0.55498457",
"0.5549487",
"0.5540512",
"0.55403346",
"0.5538902",
"0.5538738",
"0.55373883",
"0.55234814",
"0.55215186",
"0.551298",
"0.5508332",
"0.5507449",
"0.55046654",
"0.550407",
"0.55029416",
"0.5494386",
"0.5493873",
"0.54900146",
"0.5487203",
"0.54866016",
"0.54843825",
"0.5478175",
"0.547722",
"0.54764897",
"0.5472811",
"0.54662675",
"0.5460087",
"0.5458977",
"0.54567033",
"0.54565614",
"0.5454854",
"0.5442333"
] | 0.0 | -1 |
/ renamed from: g | public boolean m9012g() {
return this.f7526e;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void g() {\n }",
"public void gored() {\n\t\t\n\t}",
"public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public void stg() {\n\n\t}",
"public xm n()\r\n/* 274: */ {\r\n/* 275:287 */ if ((this.g == null) && (this.h != null) && (this.h.length() > 0)) {\r\n/* 276:288 */ this.g = this.o.a(this.h);\r\n/* 277: */ }\r\n/* 278:290 */ return this.g;\r\n/* 279: */ }",
"int getG();",
"private final zzgy zzgb() {\n }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"private static void g() {\n h h10 = q;\n synchronized (h10) {\n h10.f();\n Object object = h10.e();\n object = object.iterator();\n boolean bl2;\n while (bl2 = object.hasNext()) {\n Object object2 = object.next();\n object2 = (g)object2;\n Object object3 = ((g)object2).getName();\n object3 = i.h.d.j((String)object3);\n ((g)object2).h((i.h.c)object3);\n }\n return;\n }\n }",
"public int g()\r\n {\r\n return 1;\r\n }",
"void mo28307a(zzgd zzgd);",
"void mo21076g();",
"void mo56163g();",
"void mo98971a(C29296g gVar, int i);",
"public int getG();",
"void mo98970a(C29296g gVar);",
"public abstract long g();",
"public com.amap.api.col.n3.al g(java.lang.String r6) {\n /*\n r5 = this;\n r0 = 0\n if (r6 == 0) goto L_0x003a\n int r1 = r6.length()\n if (r1 > 0) goto L_0x000a\n goto L_0x003a\n L_0x000a:\n java.util.List<com.amap.api.col.n3.al> r1 = r5.c\n monitor-enter(r1)\n java.util.List<com.amap.api.col.n3.al> r2 = r5.c // Catch:{ all -> 0x0037 }\n java.util.Iterator r2 = r2.iterator() // Catch:{ all -> 0x0037 }\n L_0x0013:\n boolean r3 = r2.hasNext() // Catch:{ all -> 0x0037 }\n if (r3 == 0) goto L_0x0035\n java.lang.Object r3 = r2.next() // Catch:{ all -> 0x0037 }\n com.amap.api.col.n3.al r3 = (com.amap.api.col.n3.al) r3 // Catch:{ all -> 0x0037 }\n java.lang.String r4 = r3.getCity() // Catch:{ all -> 0x0037 }\n boolean r4 = r6.equals(r4) // Catch:{ all -> 0x0037 }\n if (r4 != 0) goto L_0x0033\n java.lang.String r4 = r3.getPinyin() // Catch:{ all -> 0x0037 }\n boolean r4 = r6.equals(r4) // Catch:{ all -> 0x0037 }\n if (r4 == 0) goto L_0x0013\n L_0x0033:\n monitor-exit(r1) // Catch:{ all -> 0x0037 }\n return r3\n L_0x0035:\n monitor-exit(r1)\n return r0\n L_0x0037:\n r6 = move-exception\n monitor-exit(r1)\n throw r6\n L_0x003a:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.am.g(java.lang.String):com.amap.api.col.n3.al\");\n }",
"public int getG() {\r\n\t\treturn g;\r\n\t}",
"private Gng() {\n }",
"void mo57277b();",
"int mo98967b(C29296g gVar);",
"public void mo21782G() {\n }",
"public final void mo74763d(C29296g gVar) {\n }",
"private final java.lang.String m14284g() {\n /*\n r3 = this;\n b.h.b.a.b.b.ah r0 = r3.f8347b\n b.h.b.a.b.b.m r0 = r0.mo7065b()\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5339d\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x0056\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e\n if (r1 == 0) goto L_0x0056\n b.h.b.a.b.j.a.a.e r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e) r0\n b.h.b.a.b.e.a$c r0 = r0.mo9643H()\n b.h.b.a.b.g.i$c r0 = (p073b.p085h.p087b.p088a.p090b.p117g.C2383i.C2387c) r0\n b.h.b.a.b.g.i$f<b.h.b.a.b.e.a$c, java.lang.Integer> r1 = p073b.p085h.p087b.p088a.p090b.p112e.p114b.C2330b.f7137i\n java.lang.String r2 = \"JvmProtoBuf.classModuleName\"\n p073b.p079e.p081b.C1489j.m6969a(r1, r2)\n java.lang.Object r0 = p073b.p085h.p087b.p088a.p090b.p112e.p113a.C2288f.m11197a(r0, r1)\n java.lang.Integer r0 = (java.lang.Integer) r0\n if (r0 == 0) goto L_0x003e\n b.h.b.a.b.e.a.c r1 = r3.f8350e\n java.lang.Number r0 = (java.lang.Number) r0\n int r0 = r0.intValue()\n java.lang.String r0 = r1.mo8811a(r0)\n if (r0 == 0) goto L_0x003e\n goto L_0x0040\n L_0x003e:\n java.lang.String r0 = \"main\"\n L_0x0040:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n java.lang.String r0 = p073b.p085h.p087b.p088a.p090b.p116f.C2361g.m11709a(r0)\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0056:\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5336a\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x00a0\n boolean r0 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p094b.C1680ab\n if (r0 == 0) goto L_0x00a0\n b.h.b.a.b.b.ah r0 = r3.f8347b\n if (r0 == 0) goto L_0x0098\n b.h.b.a.b.j.a.a.j r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2638j) r0\n b.h.b.a.b.j.a.a.f r0 = r0.mo9635N()\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i\n if (r1 == 0) goto L_0x00a0\n b.h.b.a.b.d.b.i r0 = (p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i) r0\n b.h.b.a.b.i.d.b r1 = r0.mo8045e()\n if (r1 == 0) goto L_0x00a0\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n b.h.b.a.b.f.f r0 = r0.mo8042b()\n java.lang.String r0 = r0.mo9039a()\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0098:\n b.u r0 = new b.u\n java.lang.String r1 = \"null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor\"\n r0.<init>(r1)\n throw r0\n L_0x00a0:\n java.lang.String r0 = \"\"\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p073b.p085h.p087b.p088a.C3008g.C3011c.m14284g():java.lang.String\");\n }",
"void mo16687a(T t, C4621gg ggVar) throws IOException;",
"public final void mo74759a(C29296g gVar) {\n }",
"int mo98966a(C29296g gVar);",
"void mo57278c();",
"public double getG();",
"public boolean h()\r\n/* 189: */ {\r\n/* 190:187 */ return this.g;\r\n/* 191: */ }",
"private void kk12() {\n\n\t}",
"gp(go goVar, String str) {\n super(str);\n this.f82115a = goVar;\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}",
"@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}",
"C2841w mo7234g();",
"public abstract long g(int i2);",
"public final h.c.b<java.lang.Object> g() {\n /*\n r2 = this;\n h.c.b<java.lang.Object> r0 = r2.f15786a\n if (r0 == 0) goto L_0x0005\n goto L_0x001d\n L_0x0005:\n h.c.e r0 = r2.b()\n h.c.c$b r1 = h.c.c.f14536c\n h.c.e$b r0 = r0.get(r1)\n h.c.c r0 = (h.c.c) r0\n if (r0 == 0) goto L_0x001a\n h.c.b r0 = r0.c(r2)\n if (r0 == 0) goto L_0x001a\n goto L_0x001b\n L_0x001a:\n r0 = r2\n L_0x001b:\n r2.f15786a = r0\n L_0x001d:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.coroutines.jvm.internal.ContinuationImpl.g():h.c.b\");\n }",
"void mo41086b();",
"public abstract int mo123248g();",
"public void getK_Gelisir(){\n K_Gelistir();\r\n }",
"int mo54441g(int i);",
"private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"public String getGg() {\n return gg;\n }",
"public void g() {\n this.f25459e.Q();\n }",
"void mo1761g(int i);",
"public abstract void bepaalGrootte();",
"public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}",
"public final i g() {\n return new i();\n }",
"public abstract void mo42331g();",
"@Override\n public void func_104112_b() {\n \n }",
"public int g2dsg(int v) { return g2dsg[v]; }",
"void NhapGT(int thang, int nam) {\n }",
"Gruppo getGruppo();",
"public void method_4270() {}",
"public abstract String mo41079d();",
"public abstract String mo118046b();",
"public void setGg(String gg) {\n this.gg = gg;\n }",
"public abstract CharSequence mo2161g();",
"void mo119582b();",
"private void strin() {\n\n\t}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public String BFS(int g) {\n\t\t//TODO\n\t}",
"void mo21073d();",
"private stendhal() {\n\t}",
"public void golpearJugador(Jugador j) {\n\t\t\n\t}",
"public void ganar() {\n // TODO implement here\n }",
"public static Object gvRender(Object... arg) {\r\nUNSUPPORTED(\"e2g1sf67k7u629a0lf4qtd4w8\"); // int gvRender(GVC_t *gvc, graph_t *g, const char *format, FILE *out)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"4lkoedjryn54aff3fyrsewwu5\"); // agerr (AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pjgp86rkudo6mihbako5yps2\"); // format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"f3a98gxettwtewduvje9y3524\"); // return -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"8d9xfgejx5vgd6shva5wk5k06\"); // \treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"2ai20uylya195fbdqwjy9bz0n\"); // job->output_file = out;\r\nUNSUPPORTED(\"10kpqi6pvibjsxjyg0g76lix3\"); // if (out == NULL)\r\nUNSUPPORTED(\"d47ukby9krmz2k8ycmzzynnfr\"); // \tjob->flags |= (1<<27);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"void mo41083a();",
"@VisibleForTesting\n public final long g(long j) {\n long j2 = j - this.f10062b;\n this.f10062b = j;\n return j2;\n }",
"void mo72113b();",
"@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 b(gy ☃) {}\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ public void a(gy ☃) {}",
"Gtr createGtr();",
"TGG createTGG();",
"public abstract String mo9239aw();",
"public void setG(boolean g) {\n\tthis.g = g;\n }",
"private static C8504ba m25889b(C2272g gVar) throws Exception {\n return m25888a(gVar);\n }",
"void mo21074e();",
"private String pcString(String g, String d) {\n return g+\"^part_of(\"+d+\")\";\n }",
"public abstract String mo13682d();",
"public void mo38117a() {\n }",
"public abstract void mo70713b();",
"public Gitlet(int a) {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}",
"public abstract T zzg(T t, T t2);",
"public int mo9232aG() {\n return 0;\n }",
"public void mo3286a(C0813g gVar) {\n this.f2574g = gVar;\n }",
"public void mo21787L() {\n }",
"@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }",
"public String DFS(int g) {\n\t\t//TODO\n\t}",
"public static Object gvRenderContext(Object... arg) {\r\nUNSUPPORTED(\"6bxfu9f9cshxn0i97berfl9bw\"); // int gvRenderContext(GVC_t *gvc, graph_t *g, const char *format, void *context)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"8r1a6szpsnku0jhatqkh0qo75\"); // \t\tagerr(AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pj79j8toe6bactkaedt54xcv\"); // \t\t\t format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ex1rhur9nlj950oe8r621uxxk\"); // job->context = context;\r\nUNSUPPORTED(\"3hvm1mza6yapsb3hi7bkw03cs\"); // job->external_context = NOT(0);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"dql0bth0nzsrpiu9vnffonrhf\"); // gvdevice_finalize(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"void mo54435d();"
] | [
"0.678414",
"0.67709124",
"0.6522526",
"0.64709187",
"0.6450875",
"0.62853396",
"0.6246107",
"0.6244691",
"0.6212993",
"0.61974055",
"0.61380696",
"0.6138033",
"0.6105423",
"0.6057178",
"0.60355175",
"0.60195917",
"0.59741",
"0.596904",
"0.59063077",
"0.58127505",
"0.58101356",
"0.57886875",
"0.5771653",
"0.57483286",
"0.57415104",
"0.5739937",
"0.5737405",
"0.5734033",
"0.5716611",
"0.5702987",
"0.5702633",
"0.568752",
"0.5673585",
"0.5656889",
"0.5654594",
"0.56383264",
"0.56383264",
"0.5633443",
"0.5619376",
"0.56107736",
"0.55950445",
"0.55687404",
"0.5560633",
"0.5544451",
"0.553233",
"0.55284953",
"0.5526995",
"0.5523609",
"0.5522537",
"0.5520261",
"0.5508765",
"0.54931",
"0.5475987",
"0.5471256",
"0.5469798",
"0.54696023",
"0.5466119",
"0.5450189",
"0.5445573",
"0.54424983",
"0.54304206",
"0.5423924",
"0.54234356",
"0.5420949",
"0.54093313",
"0.53971386",
"0.53892636",
"0.53887594",
"0.5388692",
"0.53799766",
"0.5377014",
"0.5375743",
"0.53676707",
"0.53666615",
"0.53654546",
"0.536411",
"0.536411",
"0.5361922",
"0.53584075",
"0.5357915",
"0.53526837",
"0.53503513",
"0.534265",
"0.5342214",
"0.53399533",
"0.533597",
"0.5332819",
"0.5331027",
"0.5329743",
"0.5329616",
"0.5325393",
"0.53252953",
"0.5323291",
"0.53207254",
"0.5314264",
"0.53122807",
"0.53109974",
"0.5310432",
"0.53044266",
"0.5304416",
"0.5302328"
] | 0.0 | -1 |
/ renamed from: a | public void m9003a(boolean z) {
this.f7526e = z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
GIVEN: an ArrayList sequence represents a sequence of count and say WHERE: sequence is nonempty RETURNS: the next sequence | ArrayList<Character> nextCountAndSay(ArrayList<Character> sequence) {
ArrayList<Character> next = new ArrayList<Character>();
int count = 0;
Character c = sequence.get(0);
for(int i = 0; i < sequence.size(); i++)
//@loop_invariant count represents the length of the longest
// consecutive sequence s in sequence[0, i), all Characters in s
// equal to c and s contains the last element of sequence[0, i) if
// exists
{
if(count == 0) {
count = 1;
c = sequence.get(i);
}
else {
if(c == sequence.get(i)) {
count++;
}
else {
this.addCount(next, count);
this.addSay(next, c);
count = 1;
c = sequence.get(i);
}
}
}
this.addCount(next, count);
this.addSay(next, c);
return next;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNextUnSafeSequence(){ return value++;}",
"public static List<Integer> dynamicProgrammingRecover(List<Integer> sequence) {\r\n\t\tList<Integer> result = new ArrayList<Integer>();\r\n\t\tStack<Integer> backwardsOrder = new Stack<Integer>();\r\n\t\tint lastElem = sequence.size() - 1;\r\n\t\tbackwardsOrder.push(lastElem);\r\n\t\t\r\n\t\twhile(lastElem > 0) {\r\n\t\t\tlastElem = sequence.get(lastElem);\r\n\t\t\tbackwardsOrder.push(lastElem);\r\n\t\t}\r\n\t\t\r\n\t\twhile(!backwardsOrder.isEmpty()) {\r\n\t\t\tresult.add(backwardsOrder.pop());\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"Long getNextSequence(String seqName);",
"public int size() { return seq.size(); }",
"Sequence createSequence();",
"public int getCount(){\r\n return sequence.getValue();\r\n }",
"@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 }",
"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}",
"public static String getNextSeq(String seq) {\n long intNextSeq = 0;\n// if (intSeq < 204) {\n// intNextSeq = Long.parseLong(seq)+1;\n// }\n// if (intSeq == 204) {\n// seq = seq.substring(0, seq.length() - 3);\n// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n// Date date = null;\n// try {\n// date = sdf.parse(seq);\n// } catch (ParseException e) {\n// e.printStackTrace();\n// }\n// Date date2 = DateUtils.addDays(date, 1);\n// String nextDate = sdf.format(date2) + \"000\";\n// intNextSeq = Long.parseLong(nextDate);\n// intNextSeq = intNextSeq + 1;\n// }\n return intNextSeq+\"\";\n }",
"@Override\n\tpublic int sequence() {\n\t\treturn 0;\n\t}",
"private static int findLongestConseqSubseq(ArrayList<Integer> list, int n)\n {\n Collections.sort(list);\n int count = 0;\n int nextNumber = list.get(0);\n for (int i = 0; i < n; i++) {\n if (list.get(i) == nextNumber) {\n count++;\n nextNumber++;\n }\n }\n return count;\n }",
"public interface Sequence {\n\n public String getValue();\n\n public void setCounter(long counter);\n\n public String getName();\n\n public int getStartsWith();\n\n public int getIncrementBy();\n\n}",
"ISequence sequence();",
"int getSeq();",
"int getSeq();",
"int getSeq();",
"public void prevSentences(ArrayList<Integer> list){\n \n// ArrayList<Integer> indexList = list;\n// ArrayList<Integer> returnList = new ArrayList(indexList.size()+1);\n \n for(int i = 0; i < list.size(); i++){\n Integer index = list.get(i);\n if(index > 0){\n if(!list.contains(index-1)){\n System.out.println(\"added\");\n// returnList.add(index-1);\n list.add(index-1);\n return;\n }\n }\n }\n \n// returnList.addAll(indexList);\n// \n//\n// return returnList;\n\n }",
"ArrayList<Integer> getSequence() {\n return sequence;\n }",
"static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }",
"static ArrayList runLengthEncodingSequenceDuplicate(List<List> lists){\r\n\t\t\r\n\t\tArrayList encodinglist=new ArrayList<>();\r\n\t\t\r\n\t\tfor(List a: lists)\r\n\t\t{\r\n\t\t\tif(a.size()==1)\r\n\t\t\t{\r\n\t\t\t\tencodinglist.add(a.get(0));\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\tArrayList encodinglistinner=new ArrayList<>();\r\n\t\t\tencodinglistinner.add(a.size());\r\n\t\t\tencodinglistinner.add(a.get(0));\r\n\t\t\tencodinglist.add(encodinglistinner);\r\n\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn encodinglist;\r\n\t\r\n\t}",
"private Sequence makeSequence(String[] sList, int index) {\r\n\t\tSequence s = new Sequence();\r\n\t\tfor(int i = 0; i<sList.length; i++) {\r\n\t\t\ts.addAfter(sList[i]);\r\n\t\t}\r\n\t\ts.start();\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\ts.advance();\r\n\t\t}\r\n\t\treturn s;\r\n\t}",
"@Test\r\n public void sequentialHasNextInvocationDoesntAffectRetrievalOrder() {\r\n assertThat(it.hasNext(), is(true));\r\n assertThat(it.hasNext(), is(true));\r\n assertThat(it.next(), is(2));\r\n assertThat(it.next(), is(4));\r\n assertThat(it.next(), is(6));\r\n }",
"public void testSequenceNumWrapAround() {\n\t\tByteStreamNALUnit[] stream = new ByteStreamNALUnit[70000];\n\t\tfor (int i = 0; i < stream.length; i++) {\n\t\t\tstream[i] = new ByteStreamNALUnit(START_CODE_4, SAMPLE_STREAM[3].nalUnit, i);\n\t\t}\n\n\t\tStreamVerifier verifier = new StreamVerifier(stream);\n\t\tSdlSession session = createTestSession();\n\t\tRTPH264Packetizer packetizer = null;\n\t\ttry {\n\t\t\tpacketizer = new RTPH264Packetizer(verifier, SessionType.NAV, SESSION_ID, session);\n\t\t} catch (IOException e) {\n\t\t\tfail();\n\t\t}\n\t\tMockVideoApp encoder = new MockVideoApp(packetizer);\n\n\t\ttry {\n\t\t\tpacketizer.start();\n\t\t} catch (IOException e) {\n\t\t\tfail();\n\t\t}\n\n\t\tencoder.inputByteStreamWithArray(stream);\n\t\ttry {\n\t\t\tThread.sleep(2000, 0);\n\t\t} catch (InterruptedException e) {}\n\n\t\tpacketizer.stop();\n\t\tassertEquals(stream.length, verifier.getPacketCount());\n\t}",
"@Override\r\n\tpublic ArrayList<Integer> generateSuccessors(int lastMove, int[] takenList) //this method should be fine\r\n\t{\r\n\t\tArrayList <Integer> myList = new ArrayList <Integer>();\r\n\t\tif (lastMove == -1) //must choose an odd-numbered stone that is less than n/2\r\n\t\t{\r\n\t\t\tfor (int i = ((takenList.length - 2)/2); i > 0; i--)\r\n\t\t\t{\r\n\t\t\t\tif (i % 2 != 0 && takenList[i] == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tmyList.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor (int i = takenList.length - 1; i > 0; i--)\r\n\t\t\t{ \r\n\t\t\t\tif (takenList[i] == 0 && (i % lastMove == 0 || lastMove % i == 0))\r\n\t\t\t\t{\r\n\t\t\t\t\tmyList.add(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn myList;\r\n\r\n\t}",
"public static int solution(int[] A) {\n if( A.length <= 1){\n return 0;\n }\n int reverseCount = 0;\n int compareElement = 0;\n int sequenceStart = A[0];\n int i = 0;\n while(i < A.length){\n int firstElement = A[i];\n // array has current and next index should be\n if(i == A.length-1)\n compareElement = A[i-1];\n else\n compareElement = A[i+1];\n if(firstElement == compareElement){\n reverseCount++;\n if(firstElement == 1 ) sequenceStart = 0;\n }else if(sequenceStart != firstElement){\n sequenceStart= firstElement;\n reverseCount += 2;\n }\n i+=2;\n }\n return reverseCount;\n }",
"public int wyeDeltaCount(List<String> sequence);",
"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 ArrayList<Integer> next(ArrayList<Integer> prev, int infimum) {\n ArrayList<Integer> next = new ArrayList<>();\n\n next.add(1);\n int size = prev.size() - 1;\n for (int i = 0; i < size; i += 1) {\n int curr_ind = (prev.get(i) + prev.get(i + 1));\n next.add(curr_ind);\n }\n next.add(1);\n\n boolean found_first = false;\n int count = 0;\n while (!found_first) {\n for (int i : next) {\n count += 1;\n if (i > infimum) {\n found_first = true;\n break;\n }\n }\n if (found_first) {\n int end = next.size() - count;\n for (int i = count; i < end; i += 1) {\n next.set(i, 0);\n }\n }\n found_first = true;\n }\n\n return next;\n }",
"public int[] Version1(int[] seq){\n \n return seq;\n \n }",
"static\nint\ncountSeq(\nint\nn, \nint\ndiff) \n{ \n\n// We can't cover difference of more \n\n// than n with 2n bits \n\nif\n(Math.abs(diff) > n) \n\nreturn\n0\n; \n\n\n// n == 1, i.e., 2 bit long sequences \n\nif\n(n == \n1\n&& diff == \n0\n) \n\nreturn\n2\n; \n\nif\n(n == \n1\n&& Math.abs(diff) == \n1\n) \n\nreturn\n1\n; \n\n\nint\nres = \n// First bit is 0 & last bit is 1 \n\ncountSeq(n-\n1\n, diff+\n1\n) + \n\n\n// First and last bits are same \n\n2\n*countSeq(n-\n1\n, diff) + \n\n\n// First bit is 1 & last bit is 0 \n\ncountSeq(n-\n1\n, diff-\n1\n); \n\n\nreturn\nres; \n}",
"public static int jump_over_numbers(List<Integer> list) {\n\t\tIterator<Integer> it = list.iterator();\n\t\tint count = 0;\n\t\twhile(it.hasNext()){\n\t\t\tint current = it.next();\n\t\t\tcount++;\n\t\t\tif(current == 0){\n\t\t\t\tcount = -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(it.hasNext() && current > 1 ){\n\t\t\t\tit.next();\n\t\t\t\tcurrent--;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t }",
"@Override\n\tpublic String getNextSequenceValue(String sequence) {\n\t\treturn \"\";\n\t}",
"@Test\n\tpublic void testSequence(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement decl = f.createDeclNode(x);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tStatement seq = f.createSequenceNode(decl, assign);\n\t\tassertEquals(seq.textRepresentation(), \"var x; x = 1 + 2;\");\n\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tseq.accept(v);\n\t\tassertEquals(\"sequence test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"sequence test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"sequence test3 fail\", v.decCount, 1);\n\t\tassertEquals(\"sequence test4 fail\", v.seqCount, 1);\n\t\tassertEquals(\"sequence test5 fail\", v.assignCount, 1);\n\t\tassertEquals(\"sequence test6 fail\", v.varCount, 0);\n\t\tassertEquals(\"sequence test7 fail\", v.strCount, 0);\n\t\tassertEquals(\"sequence test8 fail\", v.prefixCount, 0);\n\t}",
"public int deltaWyeCount(List<String> sequence);",
"public static void main(String[] args) {\n\t\tContinuousSequence test = new ContinuousSequence();\n\t\tArrayList<ArrayList<Integer> > result = test.FindContinuousSequence(5);\n\t\tSystem.out.println(result);\n\t\t\n\t}",
"@Test\r\n\tpublic void testLastElementInHeadOfL11() {\r\n\t\tl1 = Arrays.asList(1,2);\r\n\t\tl2 = Arrays.asList(2,1);\r\n\t\tassertTrue(\"The list L1 is a subseq of L2\", sequencer.subSeq(l1, l2));\r\n\t}",
"long getNextSequenceNumber();",
"public void findSequence(Set<List<Integer>> res, List<Integer> holder, int index, int[] nums) {\n if (holder.size() >= 2) {\n res.add(new ArrayList(holder));\n }\n for (int i = index; i < nums.length; i++) {\n if(holder.size() == 0 || holder.get(holder.size() - 1) <= nums[i]) {\n holder.add(nums[i]);\n findSequence(res, holder, i + 1, nums);\n holder.remove(holder.size() - 1);\n }\n }\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_1() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"IList<T> getNext();",
"static ArrayList runLengthEncodingSequence(List<List> lists){\r\n\t\t\r\n\t\tArrayList encodinglist=new ArrayList<>();\r\n\t\t\r\n\t\tfor(List a: lists)\r\n\t\t{\r\n\t\t\tArrayList encodinglistinner=new ArrayList<>();\r\n\t\t\tencodinglistinner.add(a.size());\r\n\t\t\tencodinglistinner.add(a.get(0));\r\n\t\t\tencodinglist.add(encodinglistinner);\r\n\t\t}\r\n\t\treturn encodinglist;\r\n\t\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"SequenceFlow createSequenceFlow();",
"public void setSequence(Integer sequence) {\n this.sequence = sequence;\n }",
"public int antalNuller(ArrayList<Integer> list) {\r\n int nuller = 0;\r\n for (int i : list) {\r\n if (i == 0) {\r\n nuller++;\r\n }\r\n }\r\n return nuller;\r\n }",
"public void addCount(ArrayList<Character> sequence, int n) {\n \tString s = Integer.toString(n);\n \tfor(int i = 0; i < s.length(); i++) {\n \t\tsequence.add(s.charAt(i));\n \t}\n \treturn;\n }",
"int getNextCount(int vids);",
"public Integer getSequence()\n {\n return sequence;\n }",
"public int getSequence() {\n return sequence;\n }",
"public static void fibonacciSquenceList(int len){\n \n int n1 = 0, n2 =1, n3, i, count = 20;\n System.out.print(n1+ \" \" + n2);\n \n for (i = 2; i < count; ++i){\n \n n3 = n1 + n2;\n System.out.print(\" \" + n3);\n n1 = n2;\n n2 = n3;\n }//end for i = 2\n \n }",
"@Override\r\n public boolean hasNext() {\r\n // Time complexity: O(1), where the problem size N \r\n // represents the size of the sequence to generate.\r\n return generatedCount < SIZE; // the count must be strictly less than the SIZE\r\n }",
"boolean hasSeq();",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_6() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\n public void shouldSequenceListOfSuccessValidations() {\n\n final List<Validation<Failure, String>> validations = Arrays.asList(success(\"a\"), success(\"b\"), success(\"c\"));\n final Validation<Failure, List<String>> sequenced = Validation.sequence(validations);\n\n assertThat(sequenced, isSuccessOf(Arrays.asList(\"a\", \"b\", \"c\")));\n }",
"public double[] sequence()\n\t{\n\t\treturn _adblSequence;\n\t}",
"int getSequenceStepsCount();",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private void next(String[] arguments) {\n\t\ttry {\n\t int ID = Integer.parseInt(arguments[1]);\n\t successor = null;\n\t findSuccessor(root, ID);\n\t if(successor == null)\n\t \tSystem.out.println(\"0 0\");\n\t else\n\t \tSystem.out.printf(\"%d %d\\n\", successor.ID, successor.count);\n\t } catch(NumberFormatException e) { \n\t System.out.println(\"Argument not an Integer\");; \n\t }\n\t}",
"public BigInteger getSeqNextVal(String sequence) {\r\n\t\treturn this.crudDAO.getSeqNextVal(sequence);\r\n\t}",
"public static int[] findItems(ArrayList<Integer> items) {\n\t\tint credit = items.get(items.size() - 1);\n\t\tfor (int i = 0; i < items.size() - 1; i++) {\n\t\t\tfor (int j = 0; j < items.size() - 1; j++) {\n\t\t\t\tif (i == j) continue;\n\t\t\t\tif (items.get(i) + items.get(j) == credit) {\n\t\t\t\t\treturn new int[]{i+1, j+1};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null; //wont get here\n\t}",
"@Override\n\tpublic String getNextSequenceValuesQuery(String sequence) {\n\t\treturn \"\";\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString arr[]= {\"2\",\"22\",\"222\",\"3\",\"33\",\"333\",\"4\",\"44\",\"444\",\"5\",\"55\",\"555\",\"6\",\"66\",\"666\",\"7\",\"77\",\"777\",\"7777\",\"8\",\"88\",\"888\",\"9\",\"99\",\"999\",\"9999\"};\r\n\t\tString input=sc.next();\r\n\t\tSystem.out.println(printsequence(arr,input));\r\n\r\n}",
"FlowSequence createFlowSequence();",
"public SequenceNumberTest() {}",
"public Object visitStmtSequence(StmtSequence sseq,\n\t\t\t\t Object arg)\n\tthrows Exception\n {\n\tStatement s;\n\tArrayList seq = sseq.getSeq();\n\tIterator iter = seq.iterator();\n\tObject result = new Integer(0); // default result\n\twhile(iter.hasNext()) {\n\t s = (Statement) iter.next();\n\t result = s.visit(this, arg);\n\t}\n\t// return last value evaluated\n\treturn result;\n }",
"private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\treturn seq++;\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"protected Expression convertCount(Sequence seq) throws SugarException {\n converter.checkArity(seq, 4);\n if (!Converter.DECOMPOSE_COUNT) {\n return seq.hold();\n }\n Expression val = seq.get(1);\n Sequence seq2 = (Sequence) seq.get(2);\n Expression op = seq.get(3);\n Expression c = seq.get(4);\n List<Expression> sum = new ArrayList<Expression>();\n sum.add(Expression.ADD);\n int n = seq2.length();\n for (int i = 0; i < n; i++) {\n sum.add(seq2.get(i).eq(val)\n .ifThenElse(Expression.ONE, Expression.ZERO));\n }\n Expression x = Expression.create(op, Expression.create(sum), c);\n return x;\n }",
"public static int longestRepeatingSubsequenceNaive(String sequence) {\r\n\t\tint i1 = 0;\r\n\t\tint i2 = 0;\r\n\t\treturn longestRepeatingSubsequenceNaiveHelper(sequence, i1, i2);\r\n\t}",
"int getAndSequenceGroupsCount();",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"int getNextList(int list) {\n\t\treturn m_lists.getField(list, 3);\n\t}",
"public Sequence nextSequence(Alphabet alphabet) throws IOException{\n\t\tif (eof)\n\t\t\treturn null;\n\n\n\t\tif (alphabet == null){\n\t\t\talphabet = Alphabet.DNA16();//The most conservative\n\t\t}\n\n\t\tStringBuilder header = new StringBuilder();\n\t\tseqIndex = 0;//the number of nucletiodes read\n\n\t\tif (currentByte != 62){// 62 = '>'\n\t\t\tthrow new RuntimeException(\"> is expected at the start line \" + lineNo + \", found \" + ((char)currentByte));\n\t\t}\n\n\t\t//Read the header\n\t\twhile (!eol){\n\t\t\tnextByte();\n\t\t\theader.append((char) currentByte);\n\t\t}\n\n\t\twhile (true){\n\t\t\tif (nextByte()){\n\t\t\t\tbyte nucleotide = alphabet.byte2index(currentByte);\n\n\t\t\t\tif (nucleotide >= 0){//valid nucleotide\t\t\t\t\n\t\t\t\t\t//ensure the sequence array is big enough\n\t\t\t\t\tif (seqIndex >= seq.length) {// Full\n\t\t\t\t\t\tint newLength = seq.length * 2;\n\t\t\t\t\t\tif (newLength < 0) {\n\t\t\t\t\t\t\tnewLength = Integer.MAX_VALUE;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if the array is extended\n\t\t\t\t\t\tif (newLength <= seqIndex) {\n\t\t\t\t\t\t\t// in.close();\n\t\t\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\t\t\"Sequence is too long to handle\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// create new array of byte\n\t\t\t\t\t\tseq = Arrays.copyOf(seq, newLength);\n\t\t\t\t\t}\n\t\t\t\t\t//next symbol\n\t\t\t\t\tseq[seqIndex++] = nucleotide;\n\t\t\t\t\t//seqIndex++;\t\t\t\t\t\n\t\t\t\t}else if(currentByte == 62){\n\t\t\t\t\t//start of a new sequence\n\t\t\t\t\t//seqNo ++;\n\t\t\t\t\treturn makeSequence(alphabet, seq, seqIndex, header.toString().trim());\n\t\t\t\t}else{\n\t\t\t\t\tif (nucleotide == -1){\n\t\t\t\t\t\tthrow new RuntimeException(\"Unexecpected character '\" + (char) currentByte + \"' for dna {\" + alphabet + \"} at the line \" + lineNo);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}//if\n\t\t\telse{\n\t\t\t\t//seqNo ++;\n\t\t\t\treturn makeSequence(alphabet, seq, seqIndex, header.toString().trim());\n\t\t\t}\t\t\t\n\n\t\t}\n\t}",
"public SequenceRegion sequencesAfter(Sequence sequence) {\n\tthrow new PasseException();\n/*\nudanax-top.st:15736:SequenceSpace methodsFor: 'smalltalk: passe'!\n{SequenceRegion} sequencesAfter: sequence {Sequence}\n\t\"Essential. All sequences greater than or equal to the given sequence.\n\tShould this just be supplanted by CoordinateSpace::region ()?\"\n\tself passe.\n\t^SequenceRegion usingx: false\n\t\twith: (PrimSpec pointer arrayWith: (BeforeSequence make: sequence))!\n*/\n}",
"@Test(expected = NoSuchElementException.class)\r\n public void shouldReturnEvenNumbersSequentially() {\r\n assertThat(it.hasNext(), is(true));\r\n assertThat(it.next(), is(2));\r\n assertThat(it.hasNext(), is(true));\r\n assertThat(it.next(), is(4));\r\n assertThat(it.hasNext(), is(true));\r\n assertThat(it.next(), is(6));\r\n assertThat(it.hasNext(), is(false));\r\n it.next();\r\n }",
"public SequenceRegion sequencesPrefixedBy(Sequence sequence, int limit) {\n\tthrow new PasseException();\n/*\nudanax-top.st:15751:SequenceSpace methodsFor: 'smalltalk: passe'!\n{SequenceRegion} sequencesPrefixedBy: sequence {Sequence}\n\twith: limit {IntegerVar}\n\t\"Essential. All sequences which match the given one up to and including the given index.\n\tShould this just be supplanted by CoordinateSpace::region ()?\"\n\tself passe.\n\t^SequenceRegion usingx: false\n\t\twith: (PrimSpec pointer\n\t\t\tarrayWithTwo: (BeforeSequencePrefix below: sequence with: limit)\n\t\t\twith: (BeforeSequencePrefix above: sequence with: limit))!\n*/\n}",
"public static int firstMissingPositiveChain(int[] nums) {\n int n = nums.length;\n for(int i=0;i<n;i++){\n int cur = nums[i];\n while(cur>0 && cur <= n && nums[cur-1]!=cur){\n int next = nums[cur-1];\n nums[cur-1] = cur;\n cur = next;\n }\n }\n for(int i=0;i<n;i++){\n if(i+1!=nums[i])\n return i+1;\n }\n return n+1;\n }",
"private static int determineSequence(int n) {\n\n // If the value is 1 or 2 (base case)\n if (n == 1 || n == 2) {\n return 1;\n } else {\n return determineSequence(n - 1) + determineSequence(n - 2);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n private Collection<Node> visitSequence(Object... rawNodes) {\n List<Collection<Node>> nodes = new ArrayList<>();\n for (Object node : rawNodes) {\n if (node == null) {\n nodes.add(Collections.<Node>emptySet());\n } else if (node instanceof Node) {\n nodes.add(Collections.<Node>singleton((Node) node));\n } else {\n nodes.add((Collection<Node>)node);\n }\n }\n\n Collection<Node> fst = nodes.get(nodes.size() - 1);\n for (int i = nodes.size() - 2; i >= 0; --i) {\n for (Node node : reverse(nodes.get(i))) {\n Node ffst = visitWithSuccessors(node, fst);\n if (ffst != null) fst = Collections.<Node>singleton(ffst);\n }\n }\n return fst;\n }",
"@Test\n public void testAdd_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.add(9);\n int expResult = 2;\n\n assertEquals(expResult, baseList.indexOf(9));\n }",
"public Sequence nextSequence(Alphabet alphabet) throws IOException{\t\t\t \t\t\t\t\n\t\t\t//array to hold indexes of nucleotides\n\t\t\tif (alphabet == null){\n\t\t\t\talphabet = Alphabet.DNA16();//The most conservative\n\t\t\t}\n\n\t\t\tStringBuilder header = new StringBuilder();\n\n\t\t\tseqIndex = 0;//the number of nucletiodes read\t\t\n\t\t\tif (pos >= count){\n\t\t\t\tcount = in.read(buff);\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\t//No more in the stream\n\t\t\tif (count <=0 ) return null;\n\n\t\t\tif (buff[pos++] != 62){// 62 = '>'\n\t\t\t\tpos --;\n\t\t\t\tthrow new RuntimeException(\"> is expected at the start of Fasta No \" + seqNo);\n\t\t\t}\n\n\t\t\tboolean seqMode = false; \n\n\t\t\tfor (;;){\n\t\t\t\t//make sure there is something in the buffer\n\t\t\t\t//this could be replaced with nextByte()\n\t\t\t\tif (pos >= count){\n\t\t\t\t\tcount = in.read(buff);\n\t\t\t\t\tif (count <= 0) break;//no more to read\n\t\t\t\t\tpos = 0;\n\t\t\t\t}\n\t\t\t\t//process buffer\n\t\t\t\twhile (pos < count){\n\t\t\t\t\tbyte currentByte = buff[pos++];\t\t\t\t\n\n\t\t\t\t\tif (seqMode){//reading header\n\t\t\t\t\t\t//reading sequence\t\t\t\t\t\n\t\t\t\t\t\tbyte nucleotide = alphabet.byte2index(currentByte);\n\t\t\t\t\t\t//assert nucleotide < dna.size()\n\t\t\t\t\t\tif (nucleotide >= 0){\n\t\t\t\t\t\t\tif (seqIndex >= seq.length) {// Full\n\t\t\t\t\t\t\t\tint newLength = seq.length * 2;\n\t\t\t\t\t\t\t\tif (newLength < 0) {\n\t\t\t\t\t\t\t\t\tnewLength = Integer.MAX_VALUE;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// if the array is extended\n\t\t\t\t\t\t\t\tif (newLength <= seqIndex) {\n\t\t\t\t\t\t\t\t\t// in.close();\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\t\t\t\t\"Sequence is too long to handle\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// create new array of byte\n\t\t\t\t\t\t\t\tseq = Arrays.copyOf(seq, newLength);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tseq[seqIndex++] = nucleotide;\n\t\t\t\t\t\t\t//seqIndex++;\t\t\t\t\t\n\t\t\t\t\t\t}else if(currentByte == 62){\n\t\t\t\t\t\t\t//start of a new sequence\n\t\t\t\t\t\t\tpos --;\n\t\t\t\t\t\t\tseqNo ++;\n\t\t\t\t\t\t\treturn new Sequence(alphabet, seq, seqIndex, header.toString());\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif (nucleotide == -1){\n\t\t\t\t\t\t\t\tthrow new RuntimeException(\"Unexecpected character '\" + (char) currentByte + \"' for dna {\" + alphabet + \"} for sequence \" + seqNo);\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}//mode == 0\n\t\t\t\t\telse{\n\t\t\t\t\t\tif (currentByte == 10 ){//CR \n\t\t\t\t\t\t\tseqMode = true;\n\t\t\t\t\t\t\t//\t\t\t\t\t\tlineNo ++;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}else if (currentByte == 13){//LF\n\t\t\t\t\t\t\tseqMode = true;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\theader.append((char) currentByte);\n\t\t\t\t\t}\n\t\t\t\t}//while\t\t\t\t\t\n\t\t\t}//for\n\t\t\tseqNo ++;\n\t\t\treturn new Sequence(alphabet, seq, seqIndex, header.toString());\n\t\t}",
"public Integer getSequence() {\n return sequence;\n }",
"public static void stepOne(ArrayList<Integer> list) {\n\t\t\n\t\t//keep track of number of times list is passed through\n\t\tint passNumber = 0;\n\t\t\n\t\t//iterate through arraylist from right to left\n\t\tfor(int i = list.size()-1; i >= 0; i--) {\n\n\t\t\tint newNum = list.get(i);\n\t\t\tpassNumber++;\n\t\t\t\n\t\t\t//for every other number beginning with second from the right\n\t\t\t//double number -- if two digit number results, add digits together\n\t\t\tif (passNumber % 2 == 0) {\n\t\t\t\n\t\t\t\tnewNum *= 2;\n\t\t\t\t\n\t\t\t\t//add digits together if two digit number \n\t\t\t\tif (newNum > 9) {\n\t\t\t\t\tint sum = 0;\n\t\t\t\t\t\n\t\t\t\t\twhile(newNum > 0) {\n\t\t\t\t\t\tsum = sum + newNum % 10;\n\t\t\t\t\t\tnewNum = newNum / 10;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tnewNum = sum;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//replace number in list with new number\n\t\t\t\tlist.set(i, newNum);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testLastElementInHeadOfL1() {\r\n\t\tl1 = Arrays.asList(1,2,3,4,5);\r\n\t\tl2 = Arrays.asList(2,3,4,5,1,3,5,7);\r\n\t\tassertTrue(\"The list L1 is a subseq of L2\", sequencer.subSeq(l1, l2));\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public T[] next(){\n\n if(hasNext()){\n int numElements = Math.min(window,lst.length - currentIndex);\n ArrayList<T> returnElements = new ArrayList<T>(numElements);\n for(int i = currentIndex; i < currentIndex + window && i < lst.length; i++ ){\n returnElements.add(lst[i]);\n if(i == lst.length-1){\n hasMore = Boolean.FALSE;\n }\n }\n currentIndex += step;\n return returnElements.toArray((T[]) Array.newInstance(returnElements.get(0).getClass(),0));\n }else{\n throw new NoSuchElementException(\"no elements to iterate \");\n }\n\n }",
"public static void main(String[] args) {\n int N, Q;\n int a, x, y;\n int lastAnswer = 0;\n\n Scanner sc = new Scanner(System.in);\n N = sc.nextInt();\n Q = sc.nextInt();\n\n ArrayList<ArrayList<Integer>> seqList = new ArrayList<ArrayList<Integer>>(N);\n ArrayList<Integer> seq;\n for (int i = 0; i < N; i++) {\n seq = new ArrayList<Integer>();\n seqList.add(seq);\n }\n for (int i = 0; i < Q; i++) {\n seq = new ArrayList<Integer>();\n a = sc.nextInt();\n x = sc.nextInt();\n y = sc.nextInt();\n\n seq = seqList.get((x ^ lastAnswer) % N);\n if (a == 1) {\n seq.add(y);\n } else if(a == 2) {\n lastAnswer = seq.get(y % seq.size());\n System.out.println(lastAnswer);\n }\n\n }\n }",
"public static ArrayList<Integer> getHailstoneSequence(int n) {\n ArrayList<Integer> hailstoneSequence = new ArrayList<>(); // Creates an ArrayList where each sequence integer\r\n // can be stored\r\n while (n != 1) { // Loops the sequence until n = 1\r\n if (n % 2 == 0) { // if n is even\r\n n = n / 2; // The new n is half of the old n\r\n hailstoneSequence.add(n); // New n is added to the ArrayList\r\n } else { // if n is odd\r\n n = (n * 3) + 1; // n is multiplied by 3 and then add one, this becomes new n\r\n hailstoneSequence.add(n); // new n is added to the ArrayList\r\n }\r\n } // Loops back to the \"while statement\", where the condition of n is checked\r\n // again\r\n return hailstoneSequence; // returns the entire sequence to main method\r\n }",
"public abstract int getSequenceNextVal(String sequenceName, Connection con) throws DBException;",
"public void applySequence(Sequence seq) {\n List<Game> games = seq.getGames();\n int nextStart = 0;\n for (Game game : games) {\n game.setStart(nextStart);\n nextStart += game.getDuration();\n }\n tau.setStart(nextStart);\n sequence = seq;\n }",
"private int getAmountOfSuccessorsAndRemoveThem(PhoneForward pf, List<PhoneForward> list, int currentCount) {\n for (PhoneForward value : list) {\n if (value.getOwnNumber().equals(pf.getTargetNumber())) {\n list.remove(value);\n currentCount++;\n return getAmountOfSuccessorsAndRemoveThem(value, list, currentCount);\n }\n }\n return currentCount;\n }",
"void resetSequential() {\n seq = nextLong(PRAND, maxSeq);\n inc = minInc + nextLong(PRAND, maxInc - minInc);\n }",
"private int chunks(List<Integer> S){\n\t\tint c = 1;\n\t\tfor(int i = 0; i < S.size() -1; i++) {\n\t\t\tif(comps(S.get(i), S.get(i+1)) && S.get(i+1) < S.get(i)){\t\t\n\t\t\t\tc++;\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}",
"public int repeated() {\n this.order();\n int counter = 1;\n int currentCounter = 1;\n for (int i = 0; i < this.size() - 1; i++) {\n if(this.getListaAt(i).x == this.getListaAt(i + 1).x) {\n currentCounter += 1;\n }\n else {\n if (currentCounter > counter) {\n counter = currentCounter;\n }\n currentCounter = 1;\n }\n }\n if (currentCounter > counter) {\n counter = currentCounter;\n }\n return counter;\n }",
"private boolean _seqHasNext() {\n // If the ISPSeqComponent's builder has a next configuration, then the\n // observation has a next sequence too.\n if (_seqBuilder == null)\n return false;\n\n // Does the current seq builder have next\n if (_seqBuilder.hasNext())\n return true;\n\n // The current seq builder has no more are there more seqbuilders?\n _seqBuilder = _getTopLevelBuilder(_seqBuilderIndex + 1);\n if (_seqBuilder == null)\n return false;\n _seqBuilderIndex++;\n\n // Now reset the new seq builder run\n _doReset(_options);\n\n // Now that it has been moved, try again\n return _seqHasNext();\n }",
"private Sequence createSequence(String[] newArray, int capacity, int currentIndex){\n Sequence sq = new Sequence(capacity);\n for(String element:newArray){\n sq.addAfter(element);\n }\n sq.start();\n for(int i = 0; i < currentIndex; i++){\n sq.advance();\n }\n return sq;\n\n }",
"int getSequenceNumber();",
"public LookaheadSequence(final Sequence seq) {\n mSeq = seq;\n mNext = seq.next();\n }"
] | [
"0.6270448",
"0.5927248",
"0.58662224",
"0.586303",
"0.58430886",
"0.5744425",
"0.57049423",
"0.5676001",
"0.5669257",
"0.56607145",
"0.561983",
"0.5593203",
"0.55736953",
"0.5539118",
"0.5539118",
"0.5539118",
"0.5527458",
"0.5484016",
"0.54732627",
"0.54722315",
"0.546348",
"0.5445601",
"0.5435081",
"0.54080874",
"0.5402895",
"0.5313901",
"0.5290856",
"0.5288824",
"0.5263591",
"0.5258636",
"0.5241125",
"0.52366805",
"0.52328014",
"0.5218453",
"0.520051",
"0.5194261",
"0.5190178",
"0.5177087",
"0.5176979",
"0.517685",
"0.51767904",
"0.51032645",
"0.50897944",
"0.50873756",
"0.50766575",
"0.50738937",
"0.5060391",
"0.5034501",
"0.5033709",
"0.5025543",
"0.50250065",
"0.50240016",
"0.5018024",
"0.50029624",
"0.4996395",
"0.4990414",
"0.49882317",
"0.49864715",
"0.49697515",
"0.49681306",
"0.49639928",
"0.49621806",
"0.49615717",
"0.49615714",
"0.49514797",
"0.49351066",
"0.49280095",
"0.49229747",
"0.49135166",
"0.49076173",
"0.49021074",
"0.4896876",
"0.48848462",
"0.48557702",
"0.48527813",
"0.48493353",
"0.4848725",
"0.48464885",
"0.48427302",
"0.48263636",
"0.48183888",
"0.48161274",
"0.48156407",
"0.48041365",
"0.48038813",
"0.48034832",
"0.48022467",
"0.48022282",
"0.4801467",
"0.4798964",
"0.4792215",
"0.47901675",
"0.47892413",
"0.47879544",
"0.47689557",
"0.4766689",
"0.47624487",
"0.47598144",
"0.47537318",
"0.47526348"
] | 0.7199094 | 0 |
EFFECT: add all Characters of n to the given sequence | public void addCount(ArrayList<Character> sequence, int n) {
String s = Integer.toString(n);
for(int i = 0; i < s.length(); i++) {
sequence.add(s.charAt(i));
}
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String ntimes(String s,int n){\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tbuf.append(s);\n\t\t}\n\t\treturn buf.toString();\n\t}",
"public static String nTimes(String word, int n) {\n\t\tString concatWord = \"\";\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tconcatWord += word;\n\t\treturn concatWord;\n\t}",
"public static String replicate(char c, int n)\n {\n String replicado = \"\";\n for (int i=0;i<n;i++){\n replicado += c;\n }\n return replicado;\n }",
"private String concatNcopies(int n,String str){\n\t\tString result = \"\";\n\t\tfor (int i=0;i<n;i++){\n\t\t\tresult +=str;\n\t\t}\n\t\treturn result;\n\t}",
"public static String replicate(char c,int n)\r\n\t{\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (int i = 0; i < n; ++i) {\r\n\t\t\tresult.append(c);\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"void repeat(StringBuilder sb, char c, int n)\n\t{\n\t\twhile(n-- > 0)\n\t\t\tsb.append(c);\n\t}",
"static String repeat(String s, int n)\n {\n // Copying given string to temparory string.\n String s1 = s;\n\n for (int i = 1; i < n; i++)\n s = s + s1; // Concatenating strings\n\n return s;\n }",
"public static String nCopies(String s, int n) {\n\t\tif (s == null) {\n\t\t\treturn null;\n\t\t}\n\t\tStringBuilder sb = new StringBuilder(s.length() * n + 8);\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tsb.append(s);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"static long repeatedString(String s, long n) {\n char[] arr=s.toCharArray();\n int i,count=0,cnt=0;\n for(i=0;i<arr.length;i++){\n if(arr[i]=='a'){\n count++;\n }\n }\n long len=(n/arr.length)*count;\n long extra=n%arr.length;\n if(extra==0){\n return len;\n }else{\n for(i=0;i<extra;i++){\n if(arr[i]=='a'){\n cnt++;\n }\n }\n return len+cnt;\n }\n\n\n }",
"private static void stringConcat(String[] ss, int n) {\n Timer t = new Timer(); \n String res = \"\";\n for (int i=0; i<n; i++) \n res += ss[i];\n System.out.format(\"Result length:%7d; time:%8.3f sec\\n\" , res.length(), t.Check());\n }",
"static long repeatedString(String s, long n) {\n long l=s.length();\n long k=n/l;\n long r=n%l;\n long count=0;\n long count1=0;\n char ch[]=s.toCharArray();\n for(int t=0;t<ch.length;t++){\n if(ch[t]=='a')\n count1++;\n }\n for(int t=0;t<r;t++){\n if(ch[t]=='a')\n count++;\n }\n return k*count1+count;\n\n }",
"public String countAndSay(int n) {\n if (n<=0)\n return \"\";\n \n int count = 0;\n StringBuilder str = new StringBuilder();\n \n // Append 1 to the string as the sequence start with 1.\n str.append(\"1\");\n \n // In a loop, generate the next string in the sequence 'n'-1 times. \n // Since \"1\" is already the first element in the sequence.\n for(int i=1; i<n; i++){\n \n // Creating the next sequence, looking at the previous one\n int j=0, len=str.length();\n StringBuilder result = new StringBuilder();\n \n // Loop through each element in the current i'th sequence string, and generate the next one.\n // If the j'th and the (j+1)'th element are the same, increase the count. Else, append the \n // string with the count and the j'th element and continue with the next element in the string.\n while(j<len){\n count = 1;\n while(j<len-1 && str.charAt(j) == str.charAt(j+1)){\n count++;\n j++;\n }\n result.append(count);\n result.append(str.charAt(j));\n j++;\n }\n\n // Update the string 'str' to be the result string, as that will be used to create the \n // next string in the sequence.\n str = result;\n }\n \n return str.toString();\n }",
"public static String formString(int n)\n {\n String temp=\"\";\n for(int i=0;i<n;i++)\n {\n temp=temp+'c';\n }\n return temp;\n }",
"public StringBuilder add(StringBuilder m, StringBuilder n)\n {\n \n int carryover=0 , sum=0;\n StringBuilder result=new StringBuilder();\n if(m.length()>=n.length())\n {\n n=align(n,m.length());\n }\n else{\n m=align(m,n.length());\n }\n \n String temp1=new String();\n String temp2=new String();\n for (int i=m.length()-1;i>=0;i--) {\n \n \n temp1=temp1+m.charAt(i);\n temp2=temp2+n.charAt(i);\n sum=Integer.parseInt(temp1)+Integer.parseInt(temp2)+carryover;\n //sum=(int) m.charAt(i)+(int)n.charAt(i)+carryover;\n if (sum>=10)\n {\n carryover=1;\n sum=sum-10;\n result.insert(0,sum);\n temp1=\"\";\n temp2=\"\";\n }\n else{\n carryover=0;\n result.insert(0,sum);\n temp1=\"\";\n temp2=\"\";\n } \n }\n if (carryover==1) {\n result.insert(0,carryover);\n }\n //int value=Integer.parseInt(result.toString());\n //result.delete(0,result.length());\n //result.append(value);\n //if (result.length()<m.length())\n // result=align(result,m);\n \n return result;\n \n }",
"public String everyNth(String str, int n) {\n String result = \"\";\n \n for (int i = 0; i < str.length(); i += n) {\n result += str.charAt(i);\n }\n \n return result;\n}",
"public String generateTheString(int n) {\n return \"b\" + \"ab\".substring(n % 2, 1 + n % 2).repeat(n - 1);\n }",
"public String missingChar(String str, int n) {\n String front = str.substring(0, n);\n String back = str.substring(n+1, str.length());\n \n return front + back;\n}",
"static long repeatedString(String s, long n) {\n\n char[] str = s.toCharArray();\n\n String temp = \"\";\n\n int i=0;\n long count=0;\n\n while(i<str.length){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n long occurance = n/str.length;\n long remainder = n%str.length;\n count = count*occurance;\n\n i=0;\n while(i<remainder){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n return count;\n\n }",
"public String countAndSay(int n) {\n if (n == 1)\n return \"1\";\n String a = \"1\";\n for (int i = 2; i <= n; i++) {\n StringBuilder sb = new StringBuilder();\n int count = 0;\n char[] chars = a.toCharArray();\n char c = chars[0];\n for (int j = 0; j < chars.length; j++) {\n if (chars[j] != c) {\n sb.append(count);\n sb.append(c);\n c = chars[j];\n count = 1;\n } else {\n count++;\n }\n }\n if (count != 0) {\n sb.append(count);\n sb.append(c);\n }\n\n if (i == n) {\n return sb.toString();\n }\n //为下次循环准备\n a = sb.toString();\n\n }\n return null;\n }",
"public String next(int n)\n {\n StringBuffer buffer = new StringBuffer();\n\n for (int x = 0; x < n; x++)\n {\n buffer.append(next());\n }\n\n return buffer.toString();\n }",
"public String countAndSay(int n) {\n String input = \"1\";\n String immediate_str = \"\";\n\n \n for (int i = 1; i < n; i++) {\n //System.out.println(input);\n char [] nums = input.toCharArray();\n int count = 0;\n int prev = -1;\n for (int j = 0; j < nums.length; j++) {\n //System.out.println(j + \",\"+ nums[j]);\n if ((nums[j] - '0') == prev) {\n count ++;\n }\n else {\n if (prev != -1)\n immediate_str += Integer.toString(count) + Integer.toString(prev);\n count = 1;\n }\n prev = nums[j] - '0';\n }\n immediate_str += Integer.toString(count) + Integer.toString(prev);\n input = immediate_str;\n immediate_str = \"\";\n }\n return input; \n }",
"static String getRandomString(int n){\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index = (int)(alphabet.length() * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(alphabet.charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }",
"public String nTwice(String str, int n) {\r\n String result = str;\r\n\r\n if (str.length() > n - 1) {\r\n String frontChars = str.substring(0, n);\r\n String backChars = str.substring(str.length() - n, str.length());\r\n\r\n result = frontChars + backChars;\r\n }\r\n\r\n return result;\r\n }",
"static long repeatedString(String s, long n) {\n \t\n \tchar first;\n \tfirst = s.charAt(0);\n \t\n \tint count = 0;\n \tlong[] fill = new long[n];\n \t\n \tfor(int i=1; i<n; i++) {\n \t\tif(first == s.charAt(i)) count++;\n \t}\n \t\n \tlong result = ((n / s.length()) * count) + (n % s.length());\n \treturn result;\n\n }",
"public synchronized void AddCharacters(String s) {\n\t buffer += s;\n\t}",
"private String repeatM(int count){\n return new String(new char[count]).replace('\\0','M');\n }",
"private static void recursion(char[] number, int index,int n) {\n\t\tif(n == index)\n\t\t{\n\t\t\tint j=n-1;\n\t\t\tfor(int m=0;m<n;m++)\n\t\t\t\tif(number[m]!='0'){\n\t\t\t\t\tj=m;\n\t\t\t\t\tbreak;}\n\t\t\t\n\t\t\tfor (;j<n;j++)\n\t\t\t System.out.print(number[j]);\n\t\t\tSystem.out.println();\n\t\t\treturn;\n\t\t}\n\t\tfor(int k =0;k<=9;k++)\n\t\t{\n\t\t\tnumber[index]=(char) (k+'0');\n\t\t\trecursion(number,index+1,n);\n\t\t}\n\t}",
"@Override\n public String apply(Integer i) {\n List<Character> list = new ArrayList<>();\n RandomStrings rnd = new RandomStrings();\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < i ; j++) {\n list.add((char)rnd.generateNumberAscii());\n }\n for (Character character : list) {\n sb.append(character);\n }\n return sb.toString();\n }",
"public String repeatFront(String str, int n) {\n StringBuilder result = new StringBuilder(str.length() * n);\n for (int i = n; i > 0; i--) {\n result.append(str.substring(0, i));\n }\n return String.valueOf(result);\n }",
"public static String generaSerieAscendente(int n){\n\t\tStringBuilder sb;\n\t\tsb=new StringBuilder();\n\t\t\n\t\tfor(int i=1; i<=n;i++)\n\t\t\tsb.append(i+\" \" );\n\t\t\t\n\t\treturn sb.toString();\t\n\t\t}",
"public String everyNth(String str, int n) {\n \n int len = str.length();\n int i = 0, p = 0;\n StringBuffer sb = new StringBuffer();\n while (p <= len - 1) {\n sb.append(str.charAt(p));\n i++;\n p = n * i; \n }\n \n return sb.toString();\n}",
"static long repeatedString(String s, long n) {\n if (s.contains(\"a\")) {\n StringBuilder stringBuilder = new StringBuilder(s);\n String infiniteString = \"\";\n if (stringBuilder.length() < n) {\n //repeat String if length is less than n\n infiniteString = infiniteString(s, n);\n }\n int count = 0;\n char[] stringArray = infiniteString.toCharArray();\n for (int i = 0; i < n; i++) {\n\n char a = 'a';\n if (stringArray[i] == a) {\n count++;\n }\n }\n return count;\n } else {\n return 0;\n }\n }",
"static long repeatedString(String s, long n) {\n long a_count = 0;\n long total_a_count = 0;\n long modulo_s = 0;\n\n if(n>s.length()){\n for (int i=0; i<s.length(); i++)\n if(s.charAt(i)=='a') a_count++;\n\n total_a_count = a_count*(n/s.length());\n modulo_s = n%s.length();\n\n for (int i=0; i<modulo_s; i++)\n if(s.charAt(i)=='a') total_a_count++;\n\n return total_a_count;\n }\n\n else {\n for (int i=0; i<n; i++)\n if(s.charAt(i)=='a') a_count++;\n return a_count;\n }\n }",
"public static void pack (int []n, String s) {\n\t\tfor (int i = 0; i < n.length; i++) {n[i] = 0; }\n\t\t\n\t\tint idx = n.length-1;\n\t\tfor (int i = s.length()-1; i >= 0; i--) {\n\t\t\tn[idx--] = s.charAt(i) - '0';\n\t\t}\n\t}",
"public static String repeater(char value,int times){\n String res=\"\";\n for (int i = 0; i < times; i++) {\n res= res+value;\n }\n return res;\n }",
"private String getAlphaNumericString(int n) \n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\"; \n \n // create StringBuffer size of AlphaNumericString \n StringBuilder sb = new StringBuilder(n); \n \n for (int i = 0; i < n; i++) { \n \n // generate a random number between \n // 0 to AlphaNumericString variable length \n int index \n = (int)(AlphaNumericString.length() \n * Math.random()); \n \n // add Character one by one in end of sb \n sb.append(AlphaNumericString \n .charAt(index)); \n } \n \n return sb.toString(); \n }",
"private static void stringBuilder(String[] ss, int n) {\n Timer t = new Timer(); \n String res = null;\n StringBuilder buf = new StringBuilder();\n for (int i=0; i<n; i++) \n buf.append(ss[i]);\n res = buf.toString();\n System.out.format(\"Result length:%7d; time:%8.3f sec\\n\" , res.length(), t.Check());\n }",
"public static String pattern(int n) {\n\t\tif(n < 1) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tString sa[] = new String[n];\n\t\tString s = \"\";\n\n\t\tint x = 0;\n\t\tsa[0] = Integer.toString(n);\n\t\twhile(x < sa.length-1) {\n\t\t\tsa[x+1] = sa[x]+Integer.toString(n-1);\n\t\t\tx++; n--;\n\t\t}\n\t\t\n\n\t\tint i = sa.length;\n\t\t//int i =0;\n\t\twhile(i > 0) {\n\t\t\t//if(s.substring(0, i-1).length() >= m.length()) \n\t\t\t\t//s += \"\\n\"+s.substring(0, i-1);\n\t\t\t//s += \"\\n\"+s.substring(0,i-1);\n\t\t\ts += sa[i-1]+\"\\n\";\n\t\t\ti--;\n\t\t}\t\n\t\t\n\t\t\n\t\treturn s.trim();\n\t}",
"public String countAndSay(int n) {\n String input = \"1\";\n\n // As per the constraint: 1 <= n <= 30.\n if(n > 0 && n <= 30) {\n // Loop starts from 0. However, counting starts from the second iteration.\n int i = 1;\n // Iterate recursively.\n while(i < n) {\n input = transform(input);\n // Increment i.\n i++;\n }\n }\n\n // If constraint is not satisfied, \"1\" is returned.\n return input; \n }",
"public static String completeChaine(String p_in, char c, int n) {\n\n\t\t\n\t\tString ret=p_in\t;\n\t\tif (ret!=null){\n\t\t\tfor (int i=0;i<n-p_in.length();i++){\n\t\t\t\tret = c + ret;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public static String lpad(String s, int n, char c)\n {\n String lpad = replicate(c,n-s.length())+s;\n return lpad;\n }",
"public static String getAlphaNumericString(int n) {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\" + \"0123456789\" + \"abcdefghijklmnopqrstuvxyz\";\n\n // create StringBuffer size of AlphaNumericString\n StringBuilder sb = new StringBuilder(n);\n\n for (int i = 0; i < n; i++) {\n\n // generate a random number between\n // 0 to AlphaNumericString variable length\n int index = (int) (AlphaNumericString.length() * Math.random());\n\n // add Character one by one in end of sb\n sb.append(AlphaNumericString.charAt(index));\n }\n\n return sb.toString();\n }",
"public String countAndSay(int n) {\n\n \tif (n <= 0)\n \t\treturn null;\n \t\n \tString[] retString = new String[n];\n \tfor (int i = 0; i < n; i++){\n \t\tif (i < 1)\n \t\t\tretString[i] = \"1\";\n \t\telse{\n \t\t\tString prev = retString[i-1];\n \t\t\tchar[] prevArray = prev.toCharArray();\n \t\t\tStringBuffer buffer = new StringBuffer();\n \t\t\tchar current = prevArray[0];\n \t\t\tint count = 0;\n \t\t\tfor (int j = 0; j < prevArray.length; j++){\n \t\t\t\tif (prevArray[j] == current){\n \t\t\t\t\tcount ++; \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\tbuffer.append(count);\n \t\t\t\t\tbuffer.append(current);\n \t\t\t\t\tcurrent = prevArray[j];\n \t\t\t\t\tcount = 1;\n \t\t\t\t}\n \t\t\t}\n \t\t\tbuffer.trimToSize();\n \t\t\tif (buffer.length() == 0 || buffer.charAt(buffer.length()-1) != current){\n \t\t\t\tbuffer.append(count);\n \t\t\t\tbuffer.append(current);\n \t\t\t}\n \t\t\tretString[i] = buffer.toString();\n \t\t}\n \t}\n \treturn retString[n-1];\n \t\n }",
"public static void main(String args[] ) throws Exception {\n Scanner in = new Scanner(System.in);\n \n String original = in.next();\n int n = original.length();\n long moda = 1000000007;\n long ones = 1;\n long sum=0; \n for (int s=original.length()-1; s>=0; s--) {\n sum = (sum + (s+1) * (original.charAt(s) - '0') * ones) %moda; \n ones = (ones * 10 + 1) % moda;\n \n }\n \n System.out.println(sum);\n \n }",
"static String getAlphaNumericString(int n) \n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\"; \n \n // create StringBuffer size of AlphaNumericString \n StringBuilder sb = new StringBuilder(n); \n \n for (int i = 0; i < n; i++) { \n \n // generate a random number between \n // 0 to AlphaNumericString variable length \n int index \n = (int)(AlphaNumericString.length() \n * Math.random()); \n \n // add Character one by one in end of sb \n sb.append(AlphaNumericString \n .charAt(index)); \n } \n \n return sb.toString(); \n }",
"public static String countAndSay(int n) {\n\t\tStringBuilder curr=new StringBuilder(\"1\");\n\t\tStringBuilder prev;\n\t\tint i =1;\n\t while(i!=n) {\n\t \t\tprev=curr;\n\t curr=new StringBuilder(); \n\t int count=1;\n\t char say=prev.charAt(0);\n\t for (int j=1;j<prev.length();j++){\n\t\t \tif (prev.charAt(j)!=say){\n\t\t \t\tcurr.append(count).append(say);\n\t\t \t\tcount=1;\n\t\t \t\tsay=prev.charAt(j);\n\t\t \t}\n\t\t \telse count++;\n\t\t }\n\t //这句话的作用可以通过n = 5 --> n=6 看出来\n\t curr.append(count).append(say);\n\t i++;\n\t }\t \t \n\t return curr.toString();\n }",
"public String countAndSay(int n) {\n if(n == 1){\n return \"1\";\n }else{\n StringBuilder sb = new StringBuilder();\n int k = 0;\n String s = countAndSay(n-1);\n int l = s.length();\n for(int i = 0; i < l; i++){\n if(i == 0){\n k ++;\n }else{\n if(s.charAt(i) == s.charAt(i-1)){\n k ++;\n }else{\n sb.append(k);\n sb.append(s.charAt(i-1));\n k = 1;\n }\n }\n }\n sb.append(k);\n sb.append(s.charAt(l-1));\n return sb.toString();\n }\n }",
"public static String getAlphaNumericString(int n) \n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\";\n \n // create StringBuffer size of AlphaNumericString \n StringBuilder sb = new StringBuilder(n); \n \n for (int i = 0; i < n; i++) { \n \n // generate a random number between \n // 0 to AlphaNumericString variable length \n int index \n = (int)(AlphaNumericString.length() \n * Math.random()); \n \n // add Character one by one in end of sb \n sb.append(AlphaNumericString \n .charAt(index)); \n } \n \n return sb.toString(); \n }",
"public static void sequence(int n)\n { \n int x = n;\n if(n == 1)\n {\n System.out.print(1);\n }\n else\n { \n System.out.print(n + \" \"); \n sequence(next(x)); \n }\n }",
"public static void main(String args[]) {\n \nScanner sc = new Scanner(System.in);\n\nint n = sc.nextInt();\n\nint i=1; int j=0;\nchar p;\nwhile (i<=n) {\n j=1;\n p = (char) ('A' + i - 1);\n while (j<=n) {\n \n System.out.print(p);\n p=(char)(p+1);\n j=j+1;\n\n }\nSystem.out.println();\ni=i+1;\n}\nsc.close();\n}",
"public static String lpad(String s, int n, char c)\r\n\t{\r\n\t\tint charsToAdd = n - s.length();\r\n\t\treturn replicate(c, charsToAdd) + s;\r\n\t}",
"void set(int n, char s) {\n set(n);\n set(s);\n }",
"public static void m5() {\r\nfor(int i =1;i<=5;i++) {\r\n\tchar ch ='A';\r\n\tfor(int j =1;j<=i;j++) {\r\n\t\tSystem.out.print(ch);\r\n\t\tch++;\r\n\t}\r\n\tSystem.out.println();\r\n}\t\r\n}",
"public String getAlphaNumericString(int n) {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\";\n\n // create StringBuffer size of AlphaNumericString\n StringBuilder sb = new StringBuilder(n);\n\n for (int i = 0; i < n; i++) {\n\n // generate a random number between\n // 0 to AlphaNumericString variable length\n int index\n = (int)(AlphaNumericString.length()\n * Math.random());\n\n\n sb.append(AlphaNumericString\n .charAt(index));\n }\n\n return sb.toString();\n }",
"public String next(int n) throws JSONException {\n if(n == 0) {\n return \"\";\n }\n\n char[] chars = new char[n];\n int pos = 0;\n while(pos < n) {\n chars[pos] = this.next();\n if(this.end()) {\n throw this.syntaxError(\"Substring bounds error\");\n }\n pos += 1;\n }\n\n return new String(chars);\n }",
"public String rightShift(String input, int n) {\n if (input.length() <= 1) {\n return input;\n }\n \n int len = input.length();\n n = n % len;\n \n char[] ch = input.toCharArray();\n char[] ans = new char[len];\n \n for (int i=0; i<ch.length; i++) {\n int idx = i + n;\n if (idx >= len) {\n idx -= len;\n }\n \n ans[idx] = ch[i];\n }\n \n return String.valueOf(ans);\n }",
"public Sequence(String s) {\n for (char c : s.toCharArray()) {\n if (isValid(c)) seq.add(c);\n }\n }",
"private static String padRight(String s, int n) {\n n = n - (countLength(s) - s.length());//한글이 있는 경우 다시 글수를 줄여준다.\n return String.format(\"%1$-\" + n + \"s\", s);\n }",
"void mo9058ad(String str, int i);",
"public static String repeatTextNTimes(int nTimes, String text) {\n return String.join(EMPTY, nCopies(nTimes, text));\n }",
"private static String miniBlow(char c, int n){\n\t\tString result = \"\";\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tresult += c;\n\t\t}\n\t\treturn result;\n\t}",
"public String countAndSay(int n)\n {\n if(n<=0)\n return \"\";\n String origin=\"1\";\n //we iterate n-1 times\n for(int i=1; i<n; i++)\n {\n //we generate a string for each level\n StringBuffer sb=new StringBuffer();\n int count=1;\n char lastChar=origin.charAt(0);\n for(int j=1; j<origin.length(); j++)\n {\n if(origin.charAt(j)==lastChar)\n count++;\n else\n {\n sb.append(count);\n sb.append(lastChar);\n count=1;\n lastChar=origin.charAt(j);\n }\n }\n sb.append(count);\n sb.append(lastChar);\n origin=sb.toString();\n }\n return origin;\n }",
"private void combine(char[] chars, int begin) {\n\t\tif(begin==chars.length) {\r\n\t\t\tString result = String.valueOf(chars);\r\n\t\t\tif(!list.contains(result)) {\r\n\t\t\t\tlist.add(result);\r\n\t\t\t}\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tfor(int i=begin;i<chars.length;i++) {\r\n\t\t\tswap(chars,i,begin);\r\n\t\t\tcombine(chars, begin+1);\r\n\t\t\tswap(chars,i,begin);\r\n\t\t}\t\r\n\t}",
"public static void m7() {\r\n\tchar ch ='A';\r\n\tfor(int i=1;i<=5;i++) {\r\n\t\tfor(int j =1;j<=i;j++)\r\n\t\t{\r\n\t\t\tSystem.out.print(ch);\r\n\t\t}\r\n\t\tch++;\r\n\t\tSystem.out.println();\r\n\t}\r\n}",
"private void printLine(int n, int k) {\n System.out.printf(\"%4d- \", n + 1);\n for (int i = 0; i < k; i++) {\n if (i % 10 == 0) System.out.printf(\" \");\n System.out.printf(\"%c\", seq.get(i + n));\n }\n for (int i = k; i < printLength; i++) {\n if (i % 10 == 0) System.out.printf(\" \");\n System.out.printf(\" \");\n }\n System.out.printf(\" -%4d\\n\", n + printLength);\n }",
"public abstract void substitutedSentences(long ms, int n);",
"public String getSequenceForSpace(int k) {\n\t\tif (k <= 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tfinal int scale = (int) Math.pow(10, k);\n\t\tchar[] visited = new char[scale];\n\t\tint num = scale - 1;\n\t\tvisited[num] = 1;\n\t\tint left = num;\n\t\tStringBuilder seq = new StringBuilder(Integer.toString(num));\n\t\twhile (left > 0) {\n\t\t\tint digit = 0;\n\t\t\tint tmp = (num * 10) % scale;\n\t\t\twhile (digit < 10) {\n\t\t\t\tif (visited[tmp + digit] == 0) {\n\t\t\t\t\tnum = tmp + digit;\n\t\t\t\t\tseq.append(digit);\n\t\t\t\t\tvisited[num] = 1;\n\t\t\t\t\t--left;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t++digit;\n\t\t\t}\n\t\t\tif (digit == 10) {\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\t\t}\n\t\treturn seq.toString();\n\t}",
"public static List<String> findStrobogrammatic(int n) {\n List<String> cur, ans;\n ans = new ArrayList<String>((n & 1) == 0 ? Arrays.asList(\"\") : Arrays.asList(\"0\", \"1\", \"8\"));\n if (n < 2) return ans;\n\n for (;n > 1; n -= 2) {\n cur = ans;\n ans = new ArrayList<String>();\n for (String i : cur) {\n if (n > 3) {\n ans.add('0' + i + '0');\n }\n ans.add('1' + i + '1');\n ans.add('8' + i + '8');\n ans.add('6' + i + '9');\n ans.add('9' + i + '6');\n }\n }\n System.out.println(ans.size());\n return ans;\n }",
"public abstract void substitutedWords(long ms, int n);",
"public static String getRandomString(int n) \r\n {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n + \"0123456789\"\r\n + \"abcdefghijklmnopqrstuvxyz\"; \r\n \r\n // create StringBuffer size of AlphaNumericString \r\n StringBuilder sb = new StringBuilder(n); \r\n \r\n for (int i = 0; i < n; i++) { \r\n \r\n // generate a random number between \r\n // 0 to AlphaNumericString variable length \r\n int index \r\n = (int)(AlphaNumericString.length() \r\n * Math.random()); \r\n \r\n // add Character one by one in end of sb \r\n sb.append(AlphaNumericString \r\n .charAt(index)); \r\n } \r\n \r\n return sb.toString(); \r\n }",
"private int convertUnicodeLiteralToChar(int n) {\n\n final int START_STATE = 1;\n final int MODIFIED_DATA_STATE = START_STATE + 1;\n final int START_OF_ESCAPE = MODIFIED_DATA_STATE + 1;\n final int UNICODE_NIBBLE1 = START_OF_ESCAPE + 1;\n final int UNICODE_NIBBLE2 = UNICODE_NIBBLE1 + 1;\n final int UNICODE_NIBBLE3 = UNICODE_NIBBLE2 + 1;\n final int UNICODE_NIBBLE4 = UNICODE_NIBBLE3 + 1;\n\n int state = START_STATE;\n boolean data_buffer_modified = false;\n\n int ucount = 0;\n\n char u1 = 0, u2 = 0, u3 = 0, c = 0;\n\n int i = 0, j = 0;\n while (i < n) {\n c = data[i++];\n switch (state) {\n case START_STATE:\n if (c == '\\\\') {\n j = i - 1;\n state = START_OF_ESCAPE;\n }\n break;\n case MODIFIED_DATA_STATE:\n if (c != '\\\\') {\n data[j++] = c;\n } else {\n state = START_OF_ESCAPE;\n }\n break;\n case START_OF_ESCAPE:\n if (c != 'u') {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n } else {\n ucount = 1;\n state = UNICODE_NIBBLE1;\n }\n break;\n case UNICODE_NIBBLE1:\n if (isHexadecimalDigit(c)) {\n u1 = c;\n state = UNICODE_NIBBLE2;\n } else if (c == 'u') {\n ucount++;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE2:\n if (isHexadecimalDigit(c)) {\n u2 = c;\n state = UNICODE_NIBBLE3;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE3:\n if (isHexadecimalDigit(c)) {\n u3 = c;\n state = UNICODE_NIBBLE4;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n case UNICODE_NIBBLE4:\n if (isHexadecimalDigit(c)) {\n if (!data_buffer_modified) {\n data_buffer_modified = true;\n }\n data[j++] = (char) ((((((map[u1] << 4) + map[u2]) << 4) + map[u3]) << 4) + map[c]);\n state = MODIFIED_DATA_STATE;\n } else {\n if (data_buffer_modified) {\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n data[j++] = c;\n state = MODIFIED_DATA_STATE;\n } else {\n state = START_STATE;\n }\n }\n break;\n }\n }\n // afterthoughts\n if (data_buffer_modified) {\n switch (state) {\n case START_OF_ESCAPE:\n data[j++] = '\\\\';\n break;\n case UNICODE_NIBBLE1:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n break;\n case UNICODE_NIBBLE2:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n break;\n case UNICODE_NIBBLE3:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n break;\n case UNICODE_NIBBLE4:\n data[j++] = '\\\\';\n for (int k = 0; k < ucount; k++) {\n data[j++] = 'u';\n }\n data[j++] = u1;\n data[j++] = u2;\n data[j++] = u3;\n break;\n }\n n = j;\n }\n return n;\n }",
"public String padSpace(int n) {\n\t\tif (n < 0) { n = 0; }\n\t\tString s = \"\";\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts = s + \" \";\n\t\t}\n\t\treturn s;\n\t}",
"static String infiniteString(String strInput, Long n) {\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = 0; i <= n; i++) {\n //stringWriter.write( strInput );\n //stringBuilder.append( String.format(strInput));\n stringBuilder.append(strInput);\n System.out.println(\"Length:\" + String.valueOf(stringBuilder).length());\n /*if(stringBuilder.length() == n || stringBuilder.length() > 100)*/\n if (String.valueOf(stringBuilder).length() == n) {\n break;\n }\n }\n\n return String.valueOf(stringBuilder);\n }",
"public void insert(String s, int k) {\n assert(k > -1 && k < seq.size() + 1);\n ArrayList<Character> newSeq = new ArrayList<Character>();\n if (k == 0) {\n for (char c : s.toCharArray()) {\n if (isValid(c)) newSeq.add(c);\n }\n }\n else {\n for (int i = 0; i < k; i++) {\n newSeq.add(seq.get(i));\n }\n for (char c : s.toCharArray()) {\n if (isValid(c)) newSeq.add(c);\n }\n }\n for (int i = k; i < seq.size(); i++) {\n newSeq.add(seq.get(i));\n }\n seq = newSeq;\n }",
"public static String termineChaine(String p_in, char c, int n) {\n\n\t\t\n\t\tString ret=p_in\t;\n\t\tif (ret!=null){\n\t\t\tfor (int i=0;i<n-p_in.length();i++){\n\t\t\t\tret = ret + c;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public static String getRandomAlphaNumericString(int n) {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\";\n\n // create StringBuffer size of AlphaNumericString\n StringBuilder sb = new StringBuilder(n);\n\n for (int i = 0; i < n; i++) {\n\n // generate a random number between\n // 0 to AlphaNumericString variable length\n int index\n = (int)(AlphaNumericString.length()\n * Math.random());\n\n // add Character one by one in end of sb\n sb.append(AlphaNumericString\n .charAt(index));\n }\n\n return sb.toString();\n }",
"public String getAlphaNumericString(int n) \n\t {\n\t String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n\t + \"0123456789\"\n\t + \"abcdefghijklmnopqrstuvxyz\"; \n\t \n\t // create StringBuffer size of AlphaNumericString \n\t StringBuilder sb = new StringBuilder(n); \n\t \n\t for (int i = 0; i < n; i++) { \n\t \n\t // generate a random number between \n\t // 0 to AlphaNumericString variable length \n\t int index \n\t = (int)(AlphaNumericString.length() \n\t * Math.random()); \n\t \n\t // add Character one by one in end of sb \n\t sb.append(AlphaNumericString \n\t .charAt(index)); \n\t } \n\t \n\t return sb.toString(); \n\t }",
"static void staircase(int n) {\n\n \t/* Imlementacion para java11 (aqui se creo el repeat)\n \tfor( int i = 1; i <= n; i++ ) {\n \t\tSystem.out.println(\" \".repeat(n - i) + \"#\".repeat(i));\n \t}\n \t */\n\n \tString salida = \"\";\n \tfor( int i = 1; i <= n; i++ ) {\n \t\tfor( int j = 0; j < n - i; j++ ) {\n \t\t\tsalida += \" \"; \n \t\t}\n \t\tfor( int j = 0; j < i; j++ ) {\n \t\t\tsalida += \"#\";\n \t\t}\n \t\tSystem.out.println(salida);\n \t\tsalida = \"\";\n \t}\n }",
"public static String[] keypad(int n)\n\t{\n\t\t// Write your code here\n\t\tString[]map ={\"\",\"\",\"abc\",\"def\",\"ghi\",\"jkl\",\"mno\",\"pqrs\",\"tuv\",\"wxyz\"};\n\t\treturn keypad1(n,map);\n\t}",
"public static String spaces(int n) {\n StringBuffer b = new StringBuffer();\n for (int i = 0; i < n; i++) {\n b.append(' ');\n }\n return b.toString();\n }",
"public abstract void mo2153a(CharSequence charSequence);",
"static void staircase(int n) {\n StringBuilder result = new StringBuilder();\n String result_str;\n for (int i = 1 ; i < n+1 ; i++){\n // append white space (n-i) + i # \n for ( int j = 1 ; j < n-i+1 ; j++ ){\n result = result.append(\" \");\n }\n for ( int j= 1 ; j< i+1; j++){ \n result = result.append(\"#\");\n }\n result_str = (result.toString()); \n System.out.println(result_str);\n result = new StringBuilder();\n }\n\n }",
"public static char[] setCharArray(int n, String line){\n\t char t = line.charAt(0); \n\t char[] arr = new char[n];\n\t if(t < 123 && t > 96){\n\t line = line.toUpperCase();\n\t t = line.charAt(0);\n\t }\n\t if(t > 90 || t < 65){\n\t t = (char)65;\n\t }\n\t for(int i = 0, j = t; i < n; i++, j++){\n\t arr[i] = (char)j;\n\t if(j == 90){\n\t j = 64;\n\t }\n\t }\n\t return arr;\n\t}",
"private static int sumCharacters (char[] num) {\n int dividend = 0;\r\n String stringOfChar;\r\n for (int i=0; i < num.length; i++) {\r\n stringOfChar = Character.toString(num[i]);\r\n dividend += Integer.valueOf(stringOfChar);\r\n }\r\n return dividend;\r\n }",
"public boolean strCopies(String str, String sub, int n) {\n//Solution to problem coming soon\n}",
"public void generateCharacters() {\n for(int i = 0; i < 3; i++) {\n this.characters.add(getRandomCharacter());\n }\n }",
"public abstract void extendSequence (int k);",
"public static String formatNumberString(String s, int n){\n\t\tString output = s;\n\t\twhile (output.length() < n)\n\t\t\toutput = \"0\"+output;\n\t\treturn output;\n\t}",
"@org.junit.Test\n public void everyNthChar() {\n }",
"private static String repeatSpace(int number) {\n StringBuilder space = new StringBuilder();\n\n // Adding spaces.\n for (int i = 0; i < number; i++) {\n space.append(\" \");\n }\n\n //returning spaces.\n return space.toString();\n }",
"@Test\n public void subSequencesTest3() {\n String text = \"wnylazlzeqntfpwtsmabjqinaweaocfewgpsrmyluadlybfgaltgljrlzaaxvjehhygggdsrygvnjmpyklvyilykdrphepbfgdspjtaap\"\n + \"sxrpayholutqfxstptffbcrkxvvjhorawfwaejxlgafilmzrywpfxjgaltdhjvjgtyguretajegpyirpxfpagodmzrhstrxjrpirlbfgkhhce\"\n + \"wgpsrvtuvlvepmwkpaeqlstaqolmsvjwnegmzafoslaaohalvwfkttfxdrphepqobqzdqnytagtrhspnmprtfnhmsrmznplrcijrosnrlwgds\"\n + \"bylapqgemyxeaeucgulwbajrkvowsrhxvngtahmaphhcyjrmielvqbbqinawepsxrewgpsrqtfqpveltkfkqiymwtqssqxvchoilmwkpzermw\"\n + \"eokiraluaammkwkownrawpedhcklrthtftfnjmtfbftazsclmtcssrlluwhxahjeagpmgvfpceggluadlybfgaltznlgdwsglfbpqepmsvjha\"\n + \"lwsnnsajlgiafyahezkbilxfthwsflgkiwgfmtrawtfxjbbhhcfsyocirbkhjziixdlpcbcthywwnrxpgvcropzvyvapxdrogcmfebjhhsllu\"\n + \"aqrwilnjolwllzwmncxvgkhrwlwiafajvgzxwnymabjgodfsclwneltrpkecguvlvepmwkponbidnebtcqlyahtckk\";\n\n String[] expected = new String[6];\n expected[0] = \"wlfaafrdarvgypipgaputcjflmftgepfmrrhpvwllnfofdqqtmhnjlyeewvxhceqpgftysopelkrhhjtmlapcagllpasazflfthohdtrrvobliwnhazafeevpnlk\";\n expected[1] = \"nzpbwemllljggylhdaatprhwgzxdttypzxlhslksmeohkronrpmprwlmubovmylispqkmqizouwactmatlhmedagfmlafktgmfhcjlhxoagjullcrfxbslceoeyk\";\n expected[2] = \"yewjewyytzegvkyespyqtkoaarjhyaiarjbcrvptsgsatpbyhrslogaycawnajvnxspfwxlekakwkftzcujgglldbswjybhktxcizpypppchanlxwawjctgpnba\";\n expected[3] = \"lqtqaglbgahdnlkppshffxrefygjgjrghrfeveaavmllthqtstrrsdpxgjsgprqarrvktvmriaopltfsswevgytwpvslaiwirjfricwgzxmhqjzvljnglrumbth\";\n expected[4] = \"ansiopuflahsjvdbjxoxfvajiwavuepospgwtpeqjzavfezapfmcnsqeurrthmbweqeqqcwmrmwerfbcshaflbzsqjnghlswabsbibwvvdfsrowgwvyowpvwict\";\n expected[5] = \"ztmncsagjxyrmyrftrlsbvwxlpljrgxdtikgumqowaawxpdgnnzirbgalkhahibewtlishkwamndtnflrxgpufngehniexfgwbykxcncyrelwlmkigmdnklkdqc\";\n int keyLen = 6;\n String[] owns = this.ic.subSequences(text, keyLen);\n for (int i = 0; i < expected.length; i++) {\n assertEquals(expected[i], owns[i]);\n }\n }",
"protected final String space(int n) {\n StringBuffer buf = new StringBuffer(0);\n for (int i = 0; i < n; i++) {\n buf.append(\" \");\n }\n return buf.toString();\n }",
"public List<String> findRepeatedDnaSequences(String s){\n HashMap<Character,Integer> map=new HashMap<>();\n Set<Integer> firstSet=new HashSet<>();\n Set<Integer> dupSet=new HashSet<>();\n List<String> res=new ArrayList<>();\n map.put('A',0);\n map.put('C',1);\n map.put('G',2);\n map.put('T',3);\n char[] chars=s.toCharArray();\n for(int i=0;i<chars.length-9;i++){\n int v=0;\n for(int j=i;j<i+10;j++){\n v<<=2;\n v|=map.get(chars[j]);\n }\n if(!firstSet.add(v)&&dupSet.add(v)){\n res.add(s.substring(i,i+10));\n }\n }\n return res;\n }",
"static String getAlphaNumericString(int n) \n {\n byte[] array = new byte[256]; \n new Random().nextBytes(array); \n \n String randomString \n = new String(array, Charset.forName(\"UTF-8\")); \n \n // Create a StringBuffer to store the result \n StringBuffer r = new StringBuffer(); \n \n // Append first 20 alphanumeric characters \n // from the generated random String into the result \n for (int k = 0; k < randomString.length(); k++) { \n \n char ch = randomString.charAt(k); \n \n if (((ch >= 'a' && ch <= 'z') \n || (ch >= 'A' && ch <= 'Z') \n || (ch >= '0' && ch <= '9')) \n && (n > 0)) { \n \n r.append(ch); \n n--; \n } \n } \n \n // return the resultant string \n return r.toString(); \n }",
"public static void main(String[] args) {\n\t\tint n=3;\n\t\tString s=\"1\";\n\t\tint count =1;\n\t\tint k=1;\n\t\twhile(k<n){\n\t\t\tStringBuilder t=new StringBuilder();\n\t\t\t//t.append(s.charAt(0));\n\t\t\tfor(int i=1;i<=s.length();i++){\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(i==s.length() || s.charAt(i-1)!=s.charAt(i)){\n\t\t\t\t\tt.append(count); t.append(s.charAt(i-1));\n\t\t\t\t\tcount=1;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i-1)==s.charAt(i)){count=count+1;}\n\t\t\t }\t\n\t\t\t\ts=t.toString();\n\t\t\t\tk=k+1;\n\t\t\t\tSystem.out.println(\"k:\"+k);\n\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(s);\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void addNewItems(int n){\n\t\tint newindex = -1;\n\t\tfor (int i=0; i<5; ++i)\n\t\t\tfor (int index : indexSets.get(i).all())\n\t\t\t\tnewindex = Math.max(newindex, index);\n\t\tnewindex++;\n\t\tint added = 0;\n\t\tDate old = new Date(0);\n\t\twhile (newindex < AllCards.length() && (added < n || n == 0)){\n\t\t\t// Examine card here to decide if you want it\n\t\t\tCard c = AllCards.getCard(newindex);\n\t\t\tif (c.getEnglish().charAt(0) != '*'){\n\t\t\t\tindexSets.get(0).add(newindex);\n\t\t\t\ttimestamps.put(newindex, old);\n\t\t\t\tadded++;\n\t\t\t}\t\t\n\t\t\tnewindex++;\t\t\t\n\t\t}\n\t}",
"private String intString(int n){\r\n String s=\"\";\r\n if(n>9){\r\n s+=(char)(Math.min(n/10,9)+'0');\r\n }\r\n s+=(char)(n%10+'0');\r\n return s; \r\n }",
"public String padRight(String s, int n) {\n\t\tif (n < 0) { n = 0; }\n\t\tif (s.equals(null)) { s = \"\"; }\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts = s + \" \";\n\t\t}\n\t\treturn s;\n\t}",
"public int distinctSubseqII(String S) {\n int[] end = new int[26]; // 本字符添加之前的长度\n int res = 0;\n int added; // 当前额外增加的数量\n int mod = (int) 1e9 + 7;\n\n System.out.println('\\n' + S);\n for (char c : S.toCharArray()) {\n // 额外增加的数量等于前面的数量加上1(当前字符串)减去最后一次相同字符添加之前的数量\n added = (res + 1 - end[c - 'a']) % mod;\n\n end[c - 'a'] = (res + 1) % mod; // 影响的为前一个字符的数量加上单字符的数量\n\n res = (res + added) % mod;\n System.out.printf(\"%2c, %2d, %2d\\n\", c, res, end[c - 'a']);\n }\n return (res + mod) % mod;\n }",
"public static Node twoSumRegulate(Node n) {\n int len = n.getlength();\n for (int i = 0; i < len; i++) {\n int curpos = len - i - 1;\n int curvalue = n.get(curpos);\n\n if (curvalue > 9) {\n if (curpos == 0) {\n n.set(curpos, curvalue - 10);\n n = n.add(1, 0);\n } else {\n n.set(curpos, curvalue - 10);\n n.set(curpos - 1, n.get(curpos - 1) + 1);\n }\n }\n }\n return n;\n }"
] | [
"0.66066664",
"0.64615875",
"0.64313567",
"0.6408733",
"0.6378851",
"0.62978524",
"0.6150593",
"0.60595554",
"0.60413814",
"0.6030069",
"0.6015422",
"0.59815294",
"0.59346235",
"0.5931563",
"0.57912624",
"0.5789506",
"0.57833034",
"0.57713753",
"0.57516176",
"0.5748072",
"0.5745978",
"0.57409567",
"0.57126945",
"0.56891876",
"0.56691736",
"0.56402546",
"0.56319994",
"0.5609946",
"0.5593695",
"0.55907625",
"0.5589947",
"0.5580992",
"0.5569327",
"0.55680525",
"0.55604124",
"0.5544271",
"0.55387366",
"0.5528654",
"0.5525528",
"0.5515332",
"0.5493738",
"0.5493271",
"0.5473884",
"0.54702884",
"0.54685545",
"0.54670453",
"0.54585564",
"0.54455435",
"0.5435255",
"0.54169416",
"0.5401346",
"0.53971547",
"0.5390575",
"0.53774923",
"0.5371796",
"0.53634804",
"0.53614324",
"0.5359647",
"0.53421307",
"0.53420436",
"0.53405917",
"0.53329307",
"0.5304455",
"0.530178",
"0.5293933",
"0.5289849",
"0.52836835",
"0.526507",
"0.5255615",
"0.52485305",
"0.5244991",
"0.52414066",
"0.52354616",
"0.5213437",
"0.52089804",
"0.5207466",
"0.52052516",
"0.52019674",
"0.51932627",
"0.51917547",
"0.5166031",
"0.5156515",
"0.5155976",
"0.5150086",
"0.5148541",
"0.5146728",
"0.5146514",
"0.51367986",
"0.51247936",
"0.511797",
"0.5111438",
"0.51079667",
"0.5106274",
"0.51017356",
"0.5100534",
"0.5084869",
"0.5080556",
"0.50756294",
"0.5073904",
"0.50725096"
] | 0.7763167 | 0 |
EFFECT: add the given digit c into sequence | public void addSay(ArrayList<Character> sequence, Character c) {
sequence.add(c);
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void test(String c){\n\t\tc = (Integer.parseInt(c) + 1) + \"\";//按理说修改了c的引用了啊\n\t}",
"public void mutate(int k, char c) {\n if (isValid(c)) seq.set(k, c);\n }",
"@Override\n\tprotected void digit(char c, InterimResult ir)\n\t{\n\t\tContinuingIntegerAction ContinuingInteger = new ContinuingIntegerAction();\n\t\tContinuingInteger.execute(ir, c);\n\t}",
"@Override\n\tprotected void digit(char c, InterimResult ir)\n\t{\n\t\tContinuingIntegerAction ContinueInteger = new ContinuingIntegerAction();\n\t\tContinueInteger.execute(ir, c);\n\t\t\n\t}",
"private int combineDigits(int acc, char digit) {\n return acc * 10 + Character.getNumericValue(digit);\n }",
"public static Seq plus(Constant c, Jumble j) {\n int new_size = (c.num < j.count) ? c.num : j.count;\n int new_array[] = new int[new_size];\n for(int i = 0; i< new_size; i++) \n new_array[i] = j.values[i] + c.value; // add each element with a const\n return new Jumble(new_array);\n }",
"public static void increase(){\n c++;\n }",
"int recuperar(int c);",
"private static int calc(int c) {\n\t\treturn 1;\n\t}",
"void add(char c);",
"public void enfoncerChiffre(int c) {\n\t\tif (raz) {\n\t\t\tthis.valC = 0;\n\t\t}\n\t\tif (this.valC == 0) {\n\t\t\tthis.valC = c;\n\t\t\tthis.raz = false;\n\n\t\t}\n\t\telse {\n\t\t\tthis.valC = (this.valC * 10) + c;\n\t\t\tthis.raz = false;\n\t\t}\n\t}",
"private String done(int r, int c) {\n\t\tset(r, c, -1);\n\t\treturn r + \"\" + c;\n\t}",
"public static Seq plus(Constant c, Delta d) {\n return new Delta( (c.num < d.num)?c.num:d.num, c.value + d.initial, d.delta); \n\n }",
"void insertDigit(int digit);",
"public static int forward(int c, int r) {\n return r + c - 2;\n }",
"void addDigit(int digit) {\n preDigits.append((char)('0' + digit));\n }",
"public int addValue(char i) {\n return foldIn(i);\n }",
"public void changeCount(final int c) {\n\t\tcount += c;\n\t}",
"private int Add ( int s, int a){\r\n if (Num10.contains(Card[a].substring(0, 1))) { //To make \"T\",\"J\",\"Q\",\"K\" represent value of 10.\r\n s += 10;\r\n }\r\n if (Card[a].substring(0, 1).equals(\"A\")) { //To make \"A\" represent value of 1.\r\n s += 1;\r\n }\r\n if (!(Num10.contains(Card[a].substring(0, 1))) && !(Card[a].substring(0, 1).equals(\"A\"))){\r\n s += Integer.parseInt(Card[a].substring(0, 1));\r\n }\r\n return s;\r\n }",
"void repeat(StringBuilder sb, char c, int n)\n\t{\n\t\twhile(n-- > 0)\n\t\t\tsb.append(c);\n\t}",
"private static int solve(ArrayList<Integer> digits, int b, int c) {\n for (int i=0;i<digits.size();i++) {\r\n int num = digits.get(i);\r\n int numDigits=b-1;\r\n for (int j=0; j<i && numDigits>0 ; j++) {\r\n num = num*10 + digits.get(j);\r\n }\r\n for (int j=i+1;j<digits.size();j++) {\r\n num = num*10 + digits.get(j);\r\n }\r\n }\r\n \r\n return 0;\r\n }",
"public void add(int c, int d)\n {\n int g = gcd(num, den);\n num = (num * d + den * c) / g;\n den = (den * d) / g;\n }",
"public static String replicate(char c, int n)\n {\n String replicado = \"\";\n for (int i=0;i<n;i++){\n replicado += c;\n }\n return replicado;\n }",
"private int nextDigit(RuleBasedCollator collator, int ce, int cp)\n {\n // We do a check to see if we want to collate digits as numbers; \n // if so we generate a custom collation key. Otherwise we pull out \n // the value stored in the expansion table.\n\n if (m_collator_.m_isNumericCollation_){\n int collateVal = 0;\n int trailingZeroIndex = 0;\n boolean nonZeroValReached = false;\n\n // I just need a temporary place to store my generated CEs.\n // icu4c uses a unsigned byte array, i'll use a stringbuffer here\n // to avoid dealing with the sign problems and array allocation\n // clear and set initial string buffer length\n m_utilStringBuffer_.setLength(3);\n \n // We parse the source string until we hit a char that's NOT a \n // digit.\n // Use this u_charDigitValue. This might be slow because we have \n // to handle surrogates...\n int digVal = UCharacter.digit(cp); \n // if we have arrived here, we have already processed possible \n // supplementaries that trigered the digit tag -\n // all supplementaries are marked in the UCA.\n // We pad a zero in front of the first element anyways. \n // This takes care of the (probably) most common case where \n // people are sorting things followed by a single digit\n int digIndx = 1;\n for (;;) {\n // Make sure we have enough space.\n if (digIndx >= ((m_utilStringBuffer_.length() - 2) << 1)) {\n m_utilStringBuffer_.setLength(m_utilStringBuffer_.length() \n << 1);\n }\n // Skipping over leading zeroes. \n if (digVal != 0 || nonZeroValReached) {\n if (digVal != 0 && !nonZeroValReached) {\n nonZeroValReached = true;\n } \n // We parse the digit string into base 100 numbers \n // (this fits into a byte).\n // We only add to the buffer in twos, thus if we are \n // parsing an odd character, that serves as the \n // 'tens' digit while the if we are parsing an even \n // one, that is the 'ones' digit. We dumped the \n // parsed base 100 value (collateVal) into a buffer. \n // We multiply each collateVal by 2 (to give us room) \n // and add 5 (to avoid overlapping magic CE byte \n // values). The last byte we subtract 1 to ensure it is \n // less than all the other bytes.\n if (digIndx % 2 != 0) {\n collateVal += digVal; \n // This removes trailing zeroes.\n if (collateVal == 0 && trailingZeroIndex == 0) {\n trailingZeroIndex = ((digIndx - 1) >>> 1) + 2;\n }\n else if (trailingZeroIndex != 0) {\n trailingZeroIndex = 0;\n }\n m_utilStringBuffer_.setCharAt(\n ((digIndx - 1) >>> 1) + 2,\n (char)((collateVal << 1) + 6));\n collateVal = 0;\n }\n else {\n // We drop the collation value into the buffer so if \n // we need to do a \"front patch\" we don't have to \n // check to see if we're hitting the last element.\n collateVal = digVal * 10;\n m_utilStringBuffer_.setCharAt((digIndx >>> 1) + 2, \n (char)((collateVal << 1) + 6));\n }\n digIndx ++;\n }\n \n // Get next character.\n if (!isEnd()){\n backupInternalState(m_utilSpecialBackUp_);\n int char32 = nextChar();\n char ch = (char)char32;\n if (UTF16.isLeadSurrogate(ch)){\n if (!isEnd()) {\n char trail = (char)nextChar();\n if (UTF16.isTrailSurrogate(trail)) {\n char32 = UCharacterProperty.getRawSupplementary(\n ch, trail);\n } \n else {\n goBackOne();\n }\n }\n }\n \n digVal = UCharacter.digit(char32);\n if (digVal == -1) {\n // Resetting position to point to the next unprocessed \n // char. We overshot it when doing our test/set for \n // numbers.\n updateInternalState(m_utilSpecialBackUp_);\n break;\n }\n } \n else {\n break;\n }\n }\n \n if (nonZeroValReached == false){\n digIndx = 2;\n m_utilStringBuffer_.setCharAt(2, (char)6);\n }\n \n int endIndex = trailingZeroIndex != 0 ? trailingZeroIndex \n : (digIndx >>> 1) + 2; \n if (digIndx % 2 != 0){\n // We missed a value. Since digIndx isn't even, stuck too many \n // values into the buffer (this is what we get for padding the \n // first byte with a zero). \"Front-patch\" now by pushing all \n // nybbles forward.\n // Doing it this way ensures that at least 50% of the time \n // (statistically speaking) we'll only be doing a single pass \n // and optimizes for strings with single digits. I'm just \n // assuming that's the more common case.\n for (int i = 2; i < endIndex; i ++){\n m_utilStringBuffer_.setCharAt(i, \n (char)((((((m_utilStringBuffer_.charAt(i) - 6) >>> 1) \n % 10) * 10) \n + (((m_utilStringBuffer_.charAt(i + 1) - 6) \n >>> 1) / 10) << 1) + 6));\n }\n -- digIndx;\n }\n \n // Subtract one off of the last byte. \n m_utilStringBuffer_.setCharAt(endIndex - 1, \n (char)(m_utilStringBuffer_.charAt(endIndex - 1) - 1)); \n \n // We want to skip over the first two slots in the buffer. \n // The first slot is reserved for the header byte CODAN_PLACEHOLDER. \n // The second slot is for the sign/exponent byte: \n // 0x80 + (decimalPos/2) & 7f.\n m_utilStringBuffer_.setCharAt(0, (char)RuleBasedCollator.CODAN_PLACEHOLDER);\n m_utilStringBuffer_.setCharAt(1, \n (char)(0x80 + ((digIndx >>> 1) & 0x7F)));\n \n // Now transfer the collation key to our collIterate struct.\n // The total size for our collation key is endIndx bumped up to the next largest even value divided by two.\n ce = (((m_utilStringBuffer_.charAt(0) << 8)\n // Primary weight \n | m_utilStringBuffer_.charAt(1)) \n << RuleBasedCollator.CE_PRIMARY_SHIFT_)\n // Secondary weight \n | (RuleBasedCollator.BYTE_COMMON_ \n << RuleBasedCollator.CE_SECONDARY_SHIFT_) \n | RuleBasedCollator.BYTE_COMMON_; // Tertiary weight.\n int i = 2; // Reset the index into the buffer.\n \n m_CEBuffer_[0] = ce;\n m_CEBufferSize_ = 1;\n m_CEBufferOffset_ = 1;\n while (i < endIndex)\n {\n int primWeight = m_utilStringBuffer_.charAt(i ++) << 8;\n if (i < endIndex) {\n primWeight |= m_utilStringBuffer_.charAt(i ++);\n }\n m_CEBuffer_[m_CEBufferSize_ ++] \n = (primWeight << RuleBasedCollator.CE_PRIMARY_SHIFT_) \n | RuleBasedCollator.CE_CONTINUATION_MARKER_;\n }\n return ce;\n } \n \n // no numeric mode, we'll just switch to whatever we stashed and \n // continue\n // find the offset to expansion table\n return collator.m_expansion_[getExpansionOffset(collator, ce)];\n }",
"public void addCount(ArrayList<Character> sequence, int n) {\n \tString s = Integer.toString(n);\n \tfor(int i = 0; i < s.length(); i++) {\n \t\tsequence.add(s.charAt(i));\n \t}\n \treturn;\n }",
"public static Seq plus(Constant c1, Constant c2) {\n return new Constant((c1.num < c2.num)?c1.num:c2.num, (c1.value + c2.value)); \n }",
"public static String replicate(char c,int n)\r\n\t{\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (int i = 0; i < n; ++i) {\r\n\t\t\tresult.append(c);\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}",
"public static int sumRange(int c) {\r\n int sum = 0;\r\n for(int i = 0; i <= c; i++) {\r\n //System.out.println( i );\r\n sum += i;\r\n } \r\n return sum;\r\n }",
"public static String repeater(char value,int times){\n String res=\"\";\n for (int i = 0; i < times; i++) {\n res= res+value;\n }\n return res;\n }",
"public static Digit plusPlus(Digit digit){\n //return Operations.plus(digit.copy(), new Numbers().one());\n return digit.copy().next();\n }",
"public int putChar(char c, int pos)\n {\n if (pos < 0) {\n if(this.post_comma_digits >= -pos)\n this.raw_value[this.pre_comma()-1-pos] = c;\n else return -2;\n } else {\n if(pos < this.pre_comma())\n this.raw_value[this.pre_comma()-1-pos] = c;\n else return -1;\n }\n return 0;\n }",
"public void putc(int achar){\n if(view!=null) {\n if (achar >= 0) {\n StringBuilder arf = new StringBuilder(1);\n arf.append((char) achar);\n view.append(arf);\n } else {\n //is return code from a failed stream read\n }\n }\n }",
"public void add(char ch)\n\t { if (i == b.length)\n\t { char[] new_b = new char[i+INC];\n\t for (int c = 0; c < i; c++) new_b[c] = b[c];\n\t b = new_b;\n\t }\n\t b[i++] = ch;\n\t }",
"protected static String pad(int c) {\n if (c >= 10)\n return String.valueOf(c);\n else\n return \"0\" + String.valueOf(c);\n }",
"C02(int i){\n\t\t\n\t}",
"public void appendChar(char c){\n\t\ttimer.stop();\n\t\tcursorVisible = false;\n\t\tsetText(getText()+c);\n\t\ttimer.start();\n\t}",
"public void add(char ch) {\n\n int count = 1;\n if (jumble.containsKey(ch)) {\n count = jumble.get(ch) + 1;\n }\n\n jumble.put(ch, count);\n total++;\n }",
"private int inputChange(char c) {\n\n int co = 0;\n if ((c == 'A') || (c == 'a') || (c == '1')) {\n co = 0;\n }\n if ((c == 'B') || (c == 'b') || (c == '2')) {\n co = 1;\n }\n if ((c == 'C') || (c == 'c') || (c == '3')) {\n co = 2;\n }\n if ((c == 'D') || (c == 'd') || (c == '4')) {\n co = 3;\n }\n if ((c == 'E') || (c == 'e') || (c == '5')) {\n co = 4;\n }\n if ((c == 'F') || (c == 'f') || (c == '6')) {\n co = 5;\n }\n if ((c == 'G') || (c == 'g') || (c == '7')) {\n co = 6;\n }\n if ((c == 'H') || (c == 'h') || (c == '8')) {\n co = 7;\n }\n return co;\n }",
"public static int convert(char c) {\n switch (c) {\n case 'A': return 0;\n case 'T': return 1;\n case 'G': return 2;\n case 'C': return 3;\n default: return 4;\n }\n }",
"private void processRelopCnd(int cnd)\n\t{\n\t\tCode.put(Code.jcc + cnd);\n\t\tCode.put2(7);\n\t\t\t\t\t\n\t\t// no: put 0, jmp next\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jmp);\n\t\tCode.put2(4);\n\t\t\t\t\t\n\t\t// yes: put 1\n\t\tCode.loadConst(1);\n\t\t\t\t\t\n\t\t// next\n\t}",
"void overflowDigits() {\n for (int i = 0; i < preDigits.length(); i++) {\n char digit = preDigits.charAt(i);\n // This could be implemented with a modulo, but compared to the main\n // loop this code is too quick to measure.\n if (digit == '9') {\n preDigits.setCharAt(i, '0');\n } else {\n preDigits.setCharAt(i, (char)(digit + 1));\n }\n }\n }",
"public void updateChar(int c) {\n\t\tchars = c;\n\t}",
"public MyStringBuilder2 append(char c)\n\t{\n\t\tif(this.length == 0) {\n\t\t\tfirstC = new CNode(c);\n\t\t\tlength = 1;\n\t\t\tCNode currNode = firstC;\n\t\t\t// Create remaining nodes, copying from String. Note\n\t\t\t// how each new node is simply added to the end of the\n\t\t\t// previous one. Trace this to see what is going on.\n\t\t\tlastC = currNode;\n\t\t} else {\n\t\t\t//adds to the end\n\t\t\tCNode currNode = lastC;\n\t\t\tlastC = currNode;\n\t\t\tCNode newNode = new CNode(c);\n\t\t\tcurrNode.next = newNode;\n\t\t\tcurrNode = newNode;\n\t\t\tlength++;\n\t\t\t//sets last to point here\n\t\t\tlastC = currNode;\n\t\t}\n\t\treturn this;\n\t}",
"void addPiece(int c, int r) {\n _forwardDiag[forward(c, r)] += 1;\n _backwardDiag[backward(c, r)] += 1;\n _col[c - 1] += 1;\n _row[r - 1] += 1;\n }",
"static void cma_with_acc(String passed){\n\t\tint val = hexa_to_deci(registers.get('A'));\n\t\tString bin = Integer.toBinaryString(val);\n\t\tfor(int i=bin.length();i<8;i++)\n\t\t\tbin = \"0\"+bin;\n\t\tval=0;\n\t\tfor(int i=7;i>=0;i--)\n\t\t\tif(bin.charAt(i)=='0')\n\t\t\t\tval+=(Math.pow(2,7-i));\n\t\tregisters.put('A',decimel_to_hexa_8bit(val));\n\t}",
"private static List<Integer> addOnePlus(List<Integer> input) {\n\n\t\tint size = input.size();\n\t\tinput.set(size-1, input.get(size-1)+1);//last element of input is updated/replaced by (original value + 1)\n\n\t\tfor(int i=size-1; i>0 && input.get(i)==10; i--) {\n\t\t\tinput.set(i, 0);\n\t\t\tinput.set(i-1, input.get(i-1)+1);\n\t\t}\n\n\t\tif(input.get(0) == 10) {\n\t\t\tinput.set(0, 0);\n\t\t\tinput.add(0, 1);//add 1 at index0 ,shift all elements after to right\n\t\t}\n\n\t\treturn input;//this modifies the original input\n\t}",
"public String nextTo(char c) {\n char next;\n AppMethodBeat.m2504i(50193);\n StringBuffer stringBuffer = new StringBuffer();\n while (true) {\n next = next();\n if (next != c && next != 0 && next != 10 && next != 13) {\n stringBuffer.append(next);\n } else if (next != 0) {\n back();\n }\n }\n if (next != 0) {\n }\n String trim = stringBuffer.toString().trim();\n AppMethodBeat.m2505o(50193);\n return trim;\n }",
"public RXC insertRXC(int rep) throws HL7Exception { \r\n return (RXC)super.insertRepetition(\"RXC\", rep);\r\n }",
"public static int getDigit(int cnumber) {\n if (cnumber < 9)\n return cnumber;\n return cnumber / 10 + cnumber % 10;\n }",
"public static int add(int a, int b, int c)\n\t{\n\t\treturn a + b + c;\n\t}",
"private char enumerate(char input, int t) {\n boolean charfound = false;\n char output = 0;\n\n char[] n1 = {'1','2','3','4','5','6'}; //first set of numbers\n char[] n2 = {'3','4','5','6','1','2'}; //second set, if previous value was number\n char[] c = {'A','E','I','O','U','Y'};\n\n for (int i=0;i<c.length;i++) { // go through c and see if match is made, and then change to value in n1 and n2\n if (charfound==false) {\n if (t==1 && input==c[i]) {\n charfound = true;\n output = n1[i];\n }\n if (t==2 &&input==c[i]) {\n charfound = true;\n output = n2[i];\n }\n }\n }\n return output;\n }",
"public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}",
"public int ejecutar (char c, Controller ct) {\r\n\t\t\r\n\t\tString aux = String.valueOf(c);\r\n\t\tif ((aux.equals(\"=\"))) {\r\n\t\t\tct.setBuffer(ct.getBuffer()+c);\r\n\t\t\tct.addTokenListCompuesto(ct.getBuffer(), ct.getNroLinea());\r\n\t\t\tct.setEstadoFinal();\r\n\t\t}\t\r\n\t\treturn 0;\r\n\t}",
"public StringBuilder add(StringBuilder m, StringBuilder n)\n {\n \n int carryover=0 , sum=0;\n StringBuilder result=new StringBuilder();\n if(m.length()>=n.length())\n {\n n=align(n,m.length());\n }\n else{\n m=align(m,n.length());\n }\n \n String temp1=new String();\n String temp2=new String();\n for (int i=m.length()-1;i>=0;i--) {\n \n \n temp1=temp1+m.charAt(i);\n temp2=temp2+n.charAt(i);\n sum=Integer.parseInt(temp1)+Integer.parseInt(temp2)+carryover;\n //sum=(int) m.charAt(i)+(int)n.charAt(i)+carryover;\n if (sum>=10)\n {\n carryover=1;\n sum=sum-10;\n result.insert(0,sum);\n temp1=\"\";\n temp2=\"\";\n }\n else{\n carryover=0;\n result.insert(0,sum);\n temp1=\"\";\n temp2=\"\";\n } \n }\n if (carryover==1) {\n result.insert(0,carryover);\n }\n //int value=Integer.parseInt(result.toString());\n //result.delete(0,result.length());\n //result.append(value);\n //if (result.length()<m.length())\n // result=align(result,m);\n \n return result;\n \n }",
"static int baseToInt(char c)\n\t{\n\t\tif(c == 'a' || c == 'A')\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif(c == 'c' || c == 'C')\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\tif(c == 'g' || c == 'G')\n\t\t{\n\t\t\treturn 2;\n\t\t}\n\t\treturn 3;\n\t}",
"void agregar(int c, int x);",
"public static String completeChaine(String p_in, char c, int n) {\n\n\t\t\n\t\tString ret=p_in\t;\n\t\tif (ret!=null){\n\t\t\tfor (int i=0;i<n-p_in.length();i++){\n\t\t\t\tret = c + ret;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public void increment(int symbol);",
"private static int slowCharToNibble( char c ) \r\n { \r\n if ( '0' <= c && c <= '9' ) \r\n { \r\n return c - '0'; \r\n } \r\n else if ( 'a' <= c && c <= 'f' ) \r\n { \r\n return c - 'a' + 0xa; \r\n } \r\n else if ( 'A' <= c && c <= 'F' ) \r\n { \r\n return c - 'A' + 0xa; \r\n } \r\n else \r\n { \r\n throw new IllegalArgumentException( \"Invalid hex character: \" + c ); \r\n } \r\n }",
"public String digit(String digit);",
"public char returnNextColor(char c){\r\n\t\t\r\n\t\tif(c == 'o'){\r\n\t\t\treturn col[0];\r\n\t\t}\r\n\t\tfor(int i = 0; i < col.length-1; i++){\r\n\t\t\tif(c == col[i]){\r\n\t\t\t\treturn col[i+1];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn col[0];\r\n\t}",
"double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }",
"void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}",
"static int plus(int a, int b, int c) {\n return a + b + c;\n }",
"public void arrayadd(char x){\n\t\tint i=loc%(patm);\n\t\tpatarray[i]=x;\n\t}",
"public void addCTypeByRange(int ctype, boolean not, Encoding enc, int sbOut, int mbr[]) {\n int n = mbr[0];\n\n if (!not) {\n for (int i=0; i<n; i++) {\n for (int j=mbr[i * 2 + 1]; j<=mbr[i * 2 + 2]; j++) {\n if (j >= sbOut) {\n if (Config.VANILLA) {\n if (j == mbr[i * 2 + 2]) {\n i++;\n } else if (j > mbr[i * 2 + 1]) {\n addCodeRangeToBuf(j, mbr[i * 2 + 2]);\n i++;\n }\n } else {\n if (j >= mbr[i * 2 + 1]) {\n addCodeRangeToBuf(j, mbr[i * 2 + 2]);\n i++;\n }\n }\n // !goto sb_end!, remove duplication!\n for (; i<n; i++) {\n addCodeRangeToBuf(mbr[2 * i + 1], mbr[2 * i + 2]);\n }\n return;\n }\n bs.set(j);\n }\n }\n // !sb_end:!\n for (int i=0; i<n; i++) {\n addCodeRangeToBuf(mbr[2 * i + 1], mbr[2 * i + 2]);\n }\n\n } else {\n int prev = 0;\n\n for (int i=0; i<n; i++) {\n for (int j=prev; j < mbr[2 * i + 1]; j++) {\n if (j >= sbOut) {\n // !goto sb_end2!, remove duplication\n prev = sbOut;\n for (i=0; i<n; i++) {\n if (prev < mbr[2 * i + 1]) addCodeRangeToBuf(prev, mbr[i * 2 + 1] - 1);\n prev = mbr[i * 2 + 2] + 1;\n }\n if (prev < 0x7fffffff/*!!!*/) addCodeRangeToBuf(prev, 0x7fffffff);\n return;\n }\n bs.set(j);\n }\n prev = mbr[2 * i + 2] + 1;\n }\n\n for (int j=prev; j<sbOut; j++) {\n bs.set(j);\n }\n\n // !sb_end2:!\n prev = sbOut;\n for (int i=0; i<n; i++) {\n if (prev < mbr[2 * i + 1]) addCodeRangeToBuf(prev, mbr[i * 2 + 1] - 1);\n prev = mbr[i * 2 + 2] + 1;\n }\n if (prev < 0x7fffffff/*!!!*/) addCodeRangeToBuf(prev, 0x7fffffff);\n }\n }",
"cc(int i, int s) {\n\t\t\tid = i;\n\t\t\tsize = s;\n\t\t}",
"static char shift(char c, int key) {\n // Handle key values >=ALPHABET_LENGTH \n key %= ALPHABET_LENGTH;\n char start = Character.isUpperCase(c) ? 'A' : 'a';\n // Shift down to 0-25 for a-z\n char shifted = (char) (c - start);\n // Handle wrap-around for negative values:\n shifted = (char) ((shifted + key + ALPHABET_LENGTH) % ALPHABET_LENGTH);\n return (char) (shifted + start);\n }",
"public static void main(String[] args) {\n\t\tString s=\"A\";\n\t\tint l=s.length();\n\t\tint c=0;\n\t\tfor(int i=0;i<l;i++){\n\t\t\tc=(int) (c+(s.charAt(s.length()-i-1)-'A'+1)*Math.pow(26, i));\n\t\t\tSystem.out.println(c);\n\n\t\t}\n\t\t//System.out.println(c);\n\t}",
"public static int roll(int c, int s, int m){\n int sum = m;\n for(int i = 0; i < c; i++)\n sum += Rand.getInt(1, s);\n return sum;\n }",
"private char denumerate(char input, int t) {\n boolean charfound = false;\n char output = 0;\n\n char[] n1 = {'1','2','3','4','5','6'};//first set of numbers\n\n char[] n2 = {'3','4','5','6','1','2'};//second set, if previous value was number\n char[] c = {'A','E','I','O','U','Y'};\n\n for (int i=0;i<c.length;i++) { // go through n1 or n2 and see if match is made, and then change to value in c\n if (charfound==false) {\n if (t==1 && input==n1[i]) {\n charfound = true;\n output = c[i];\n }\n if (t==2 &&input==n2[i]) {\n charfound = true;\n output = c[i];\n }\n }\n }\n return output;\n }",
"static void perform_cc(String passed){\n\t\tint type = type_of_cc(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_when_carry(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"private static int characterToIntegerDigit(char c) {\n\t\t// since all characters are integers in UTF-16\n\t\tif (c >= 48 && c <= 57) {\n\t\t\treturn (c - 48);\n\t\t}\n\t\treturn -1;\n\t}",
"public void insert( final char c ) {\n\t\tbuffer.insert( cursor++, c );\n\t}",
"private void helper(StringBuilder curSb, int n, int c){\n if(curSb.length()==2*n){\n // if valid combination, add it to the result\n if (c==0) {\n result.add(curSb.toString());\n } // else, cannot proceed further, return to backtrack\n return;\n }\n // add open paranthese only if they are less than the max allowed\n if (c<n){\n curSb.append('(');\n helper(curSb, n, c+1);\n curSb.setLength(curSb.length() - 1);\n }\n // add close parantheses only if there is atleast one open parentheses\n if (c>0){\n curSb.append(')');\n helper(curSb, n, c-1);\n curSb.setLength(curSb.length() - 1);\n }\n }",
"protected char map(char c) {\r\n int index = findFromIndex(c);\r\n if(index < 0) return c;\r\n return toChars[index];\r\n }",
"public static void main(String[] args) {\n\t\tint n=345;\r\n\t\tint s=0;\r\n\t\twhile(n!=0)\r\n\t\t{\r\n\t\tint last=n%10;\r\n\t\ts =s+last;\r\n\t\tn= n/10;\t\r\n\t\t\t\r\n\t\t\t}\r\n\r\nSystem.out.println(s);\r\n\t}",
"abstract public int getFromU16SingleLead(char c);",
"static void add_with_reg(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\t/*\n\t\t * This will be valid only when sign arithematic is being performed\n\t\t * if(S)\n\t\t\tsum*=-1;\n\t\t */\n\t\tsum+=(hexa_to_deci(registers.get(passed.charAt(4))));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}",
"int main() {\n int a,i,j,c=0;\ncin>>a;\n for(i=1;i<a+1;i++)\n {\n if(i%2!=0)\n {\nc++;\n for(j=1;j<a;j++)\n {\ncout<<c;\n }\nc++;\ncout<<c<<\"\\n\";\n }\n else\n {\nc++;\ncout<<c--;\n for(j=1;j<a;j++)\n {\ncout<<c;\n }\ncout<<\"\\n\";\n }\n }\n return 0;\n}",
"@Override\n\tprotected void plus(char c, InterimResult ir)\n\t{\n\t\tNoAction NoAction = new NoAction();\n\t\tNoAction.execute(ir, c);\n\t}",
"public void insertRXC(RXC structure, int rep) throws HL7Exception { \r\n super.insertRepetition( \"RXC\", structure, rep);\r\n }",
"private int mapCharToTransition(char c) {\n switch(c) {\n case '-':\n return 0;\n\n case '+':\n return 1;\n\n case '/':\n return 2;\n\n case '*':\n return 3;\n\n case ')':\n return 4;\n\n case '(':\n return 5;\n\n case '=':\n return 6;\n\n case ';':\n return 7;\n\n default:\n if (Character.isDigit(c)) return 8;\n if (Character.isLetter(c)) return 9;\n if (c == '\\n' || c == '\\r' || c == ' ' || c == '\\t') return 10;\n return 11;\n }\n }",
"int main()\n{\n int i,j,n,a=0,b=1,c;\n cin>>n;\n for(i=3;i<=n;i++)\n {\n c=a+b;\n a=b;\n b=c;\n }\n cout<<c;\n}",
"public int[] plusOne(int[] digits) {\r\n\t\t// Start typing your Java solution below\r\n\t\t// DO NOT write main() function\r\n\t\tint c = 1;\r\n\t\tint i;\r\n\t\tfor (i = digits.length - 1; i >= 0; i--) {\r\n\t\t\tif (digits[i] < 9) {\r\n\t\t\t\tdigits[i] += c;\r\n\t\t\t\tbreak;\r\n\t\t\t} else if (digits[i] == 9) {\r\n\t\t\t\tdigits[i] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (i < 0 && digits[0] == 0) {\r\n\t\t\tint[] newDigits = new int[digits.length + 1];\r\n\t\t\tnewDigits[0] = 1;\r\n\t\t\treturn newDigits;\r\n\t\t} else {\r\n\t\t\treturn digits;\r\n\t\t}\r\n\t}",
"static void jump_when_carry(String passed){\n\t\tif(CS)\n\t\t\tcomplete_jump_req(passed.substring(3));\n\t}",
"public void Insert_1(char ch){\n sb.append(ch);\n if(chs[ch] == 0){\n chs[ch] = 1;\n }else{\n chs[ch]++;\n }\n }",
"public AppendableCharSequence append(char c)\r\n/* 44: */ {\r\n/* 45: 57 */ if (this.pos == this.chars.length)\r\n/* 46: */ {\r\n/* 47: 58 */ char[] old = this.chars;\r\n/* 48: */ \r\n/* 49: 60 */ int len = old.length << 1;\r\n/* 50: 61 */ if (len < 0) {\r\n/* 51: 62 */ throw new IllegalStateException();\r\n/* 52: */ }\r\n/* 53: 64 */ this.chars = new char[len];\r\n/* 54: 65 */ System.arraycopy(old, 0, this.chars, 0, old.length);\r\n/* 55: */ }\r\n/* 56: 67 */ this.chars[(this.pos++)] = c;\r\n/* 57: 68 */ return this;\r\n/* 58: */ }",
"public boolean append(final char c) {\n buff[(beg + len) % size] = c;\n if (len == size) {\n beg = (beg + 1) % size;\n return true;\n } else {\n len += 1;\n return false;\n }\n }",
"public void c() {\n\t\tSystem.out.println(\"\\nTask 9c:\");\n\t\tfor(int i=0; i<this.str.length(); i++) {\n\t\t\tchar temp = this.str.charAt(i);\n\t\t\tif(Character.isDigit(temp)==false) {\n\t\t\t\tSystem.out.println(temp);\n\t\t\t}\n\t\t}\n\t}",
"public char generate(int input) {\n\t\tchar cell = '0';\r\n\r\n\t\tif (input == 0) {\r\n\t\t\tif (prev.charAt(input + 1) == '1' && prev.charAt(input) == '1') {\r\n\t\t\t\tcell = '1';\r\n\t\t\t}\r\n\t\t\tif (prev.charAt(input) == '1' && prev.charAt(input + 1) != '1') {\r\n\t\t\t\tcell = '1';\r\n\t\t\t}\r\n\t\t\tif (prev.charAt(input) != '1' && prev.charAt(input + 1) == '1') {\r\n\t\t\t\tcell = '1';\r\n\t\t\t}\r\n\t\t} else if (input == prev.length() - 1) {\r\n\t\t\tif (prev.charAt(input - 1) == '1' && prev.charAt(input) != '1') {\r\n\t\t\t\tcell = '1';\r\n\t\t\t}\r\n\t\t\tif (prev.charAt(input - 1) != '1' && prev.charAt(input) == '1') {\r\n\t\t\t\tcell = '1';\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (prev.charAt(input - 1) == '1' && prev.charAt(input) != '1' && prev.charAt(input + 1) != '1') {\r\n\t\t\t\tcell = '1';\r\n\t\t\t}\r\n\t\t\tif (prev.charAt(input - 1) != '1' && prev.charAt(input) == '1' && prev.charAt(input + 1) == '1') {\r\n\t\t\t\tcell = '1';\r\n\t\t\t}\r\n\t\t\tif (prev.charAt(input - 1) != '1' && prev.charAt(input) == '1' && prev.charAt(input + 1) != '1') {\r\n\t\t\t\tcell = '1';\r\n\t\t\t}\r\n\t\t\tif (prev.charAt(input - 1) != '1' && prev.charAt(input) != '1' && prev.charAt(input + 1) == '1') {\r\n\t\t\t\tcell = '1';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn cell;\r\n\t}",
"public static void sumNum() {\n\t\tint result = 0;\n\t\tfor(int i = 1; i<=112; i = i + 3) {\n\t\t\tresult = result + i;\t\n\t\t}\n\tSystem.out.println(\"Sum = \" + result);\n\t}",
"public static String m155088a(String str, int i, char c) {\n if (str.length() >= i) {\n return str;\n }\n StringBuffer stringBuffer = new StringBuffer(i);\n stringBuffer.append(str);\n int length = i - str.length();\n while (true) {\n length--;\n if (length < 0) {\n return stringBuffer.toString();\n }\n stringBuffer.append(c);\n }\n }",
"public static int asInt(char c) {\n int temp = 0;\n switch (c) {\n case '2':\n temp = 2;\n break;\n case '3':\n temp = 3;\n break;\n case '4':\n temp = 4;\n break;\n case '5':\n temp = 5;\n break;\n case '6':\n temp = 6;\n break;\n case '7':\n temp = 7;\n break;\n case '8':\n temp = 8;\n break;\n case '9':\n temp = 9;\n break;\n case 'T':\n temp = 10;\n break;\n case 'J':\n temp = 11;\n break;\n case 'Q':\n temp = 12;\n break;\n case 'K':\n temp = 13;\n break;\n case 'A':\n temp = 14;\n break;\n\n default:\n throw new AssertionFailedError(\n \"Invalid Character \" + c + \" in card number column: Expected 1-9,J,Q,K,A\");\n\n }\n return temp;\n }",
"protected void incrementSeqNum() {\n intToNetworkByteOrder(mySeqNum++, sequenceNum, 0, 4);\n }",
"public static void main(String[] args) {\nint t = 101010101;\n// koden begynner her\nString s = \"\";\nwhile ( t % 10 > 0 ) {\ns = t % 10 + s;\nt = t / 10;\n}\ns = \"s = \" + s;\nout.println(s);\n\n }",
"public abstract void extendSequence (int k);",
"public static int m66037a(char c) {\n if (c >= '0' && c <= '9') {\n return c - '0';\n }\n char c2 = 'a';\n if (c < 'a' || c > 'f') {\n c2 = 'A';\n if (c < 'A' || c > 'F') {\n return -1;\n }\n }\n return (c - c2) + 10;\n }",
"static void adc_with_reg(String passed){\n\t\tint sum = hexa_to_deci(registers.get('A'));\n\t\t/*\n\t\t * This will be valid only when sign arithematic is being performed\n\t\t * if(S)\n\t\t\tsum*=-1;\n\t\t */\n\t\tsum+=(CS?1:0);\n\t\tsum+=hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tCS = sum>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(sum));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public static String lpad(String s, int n, char c)\n {\n String lpad = replicate(c,n-s.length())+s;\n return lpad;\n }"
] | [
"0.64262456",
"0.6212222",
"0.61518383",
"0.6131735",
"0.6128334",
"0.61182004",
"0.6110624",
"0.60934734",
"0.60378575",
"0.5998551",
"0.59794974",
"0.5897949",
"0.5882663",
"0.5850677",
"0.5813438",
"0.57900095",
"0.5730791",
"0.5722399",
"0.5682603",
"0.5604183",
"0.56020266",
"0.5573328",
"0.55385935",
"0.5519335",
"0.55141467",
"0.5511565",
"0.5507889",
"0.54621875",
"0.5449842",
"0.5428735",
"0.5418304",
"0.54089236",
"0.53985745",
"0.5384896",
"0.53545576",
"0.53496367",
"0.53468776",
"0.53468245",
"0.532312",
"0.5302256",
"0.52970177",
"0.5286596",
"0.5277321",
"0.5276658",
"0.5273704",
"0.5269876",
"0.5261758",
"0.52570784",
"0.5254601",
"0.52506375",
"0.51767105",
"0.51722264",
"0.51665056",
"0.51615554",
"0.51582557",
"0.51556534",
"0.51513654",
"0.51418877",
"0.51390094",
"0.51349646",
"0.51341397",
"0.51106626",
"0.51078045",
"0.51075757",
"0.5105738",
"0.51027054",
"0.50944823",
"0.5089907",
"0.5087501",
"0.50820845",
"0.50817406",
"0.5080677",
"0.5079068",
"0.50783926",
"0.50732565",
"0.5072526",
"0.5062148",
"0.50556505",
"0.50542086",
"0.5050502",
"0.5050452",
"0.50489074",
"0.5048698",
"0.50421846",
"0.5038652",
"0.5025334",
"0.5021966",
"0.5021955",
"0.5021671",
"0.5021",
"0.50163466",
"0.50097245",
"0.50009733",
"0.49974492",
"0.49947983",
"0.49910793",
"0.4983656",
"0.49829546",
"0.4976642",
"0.49700543"
] | 0.5865621 | 13 |
RETURNS: a String representation of the given sequence | public String listToString(ArrayList<Character> sequence) {
char[] cs = new char[sequence.size()];
for(int i = 0; i < cs.length; i++) {
cs[i] = sequence.get(i);
}
return new String(cs);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getSeq();",
"@Override\n\tpublic String toString(){\n return description + \"\\n\" + SequenceUtils.format(sequence);\n\t}",
"public String generateString() {\n List<Trip<String, String, String>> sequence = super.generateSequence(startTrip, endTrip);\n sequence = sequence.subList(1, sequence.size()-1);\n String generated = \"\";\n for (int i = 0; i<sequence.size()-2; i++) generated += sequence.get(i).getThird() + \" \";\n return generated.substring(0, generated.length()-1);\n }",
"public String toString()\n {\n if (stringRep == null)\n {\n StringBuilder sb = new StringBuilder();\n switch (type)\n {\n case THREE_PRIME:\n sb.append(\"DNA 3'-\");\n break;\n case FIVE_PRIME:\n sb.append(\"DNA 5'-\");\n break;\n case RNA:\n sb.append(\"RNA \");\n break;\n }\n \n for (int i = 0; i < seq.length; i++)\n {\n sb.append(seq[i]); // Java magic with Enum types -- converts to string.\n }\n \n switch (type)\n {\n case THREE_PRIME:\n sb.append(\"-5'\");\n break;\n case FIVE_PRIME:\n sb.append(\"-3'\");\n break;\n }\n \n stringRep = sb.toString();\n }\n \n return stringRep;\n }",
"org.hl7.fhir.String getObservedSeq();",
"public java.lang.String getSeq() {\n java.lang.Object ref = seq_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n seq_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSeq() {\n java.lang.Object ref = seq_;\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 seq_ = s;\n }\n return s;\n }\n }",
"private String generateSequenceString(SequenceMetric sequenceMetric, ArrayList allNodes) {\n String sequenceString = \"(\" + sequenceMetric.getCallerClass() + \" \" + sequenceMetric.getCallerMethod();\n Iterator nodesIterator = allNodes.iterator();\n\n while (nodesIterator.hasNext()) {\n SequenceMetric choosenSequenceMetric = (SequenceMetric) nodesIterator.next();\n\n if (choosenSequenceMetric.getCallerClass().equals(sequenceMetric.getCallerClass()) && choosenSequenceMetric.getCallerMethod().equals(sequenceMetric.getCallerMethod())) {\n sequenceString += traverseAllNodes(choosenSequenceMetric, allNodes, \"\\t\");\n }\n }\n\n return sequenceString + \"\\n)\";\n }",
"public static String retornaSequencialFormatado(int sequencial) {\r\n\r\n\t\t// sequencial impressão\r\n\t\tString retorno = Util.adicionarZerosEsquedaNumero(6, \"\" + sequencial);\r\n\r\n\t\tretorno = retorno.substring(0, 3) + \".\" + retorno.substring(3, 6);\r\n\r\n\t\treturn retorno;\r\n\t}",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"public String consensus_sequence () {\n return(current_contig.consensus.sequence.toString());\r\n }",
"private static String buildSequence() {\n\t\tSimpleDateFormat dateFormatGMT = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\");\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\")); // set to Greenwich mean time.\n\t\treturn dateFormatGMT.format(new Date());\n\t}",
"public String toString() {\n\t\tString r = \"\";\n\t\tchar[][] a = toMatrix();\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tif (a[i][j] == '\\0')\n\t\t\t\t\tr += \"-\";\n\t\t\t\telse\n\t\t\t\t\tr += a[i][j];\n\t\t\t}\n\t\t\tr += \"\\n\";\n\t\t}\n\t\treturn r.substring(0, r.length() - 1);\n\t}",
"public String getSequence()\r\n\t{\r\n\t\treturn sequence;\r\n\t}",
"public String getSequence() \n\t{\n\t\treturn sequence;\n\t\t\n\t}",
"public String toString(){\r\n\t DoubleLinkedSeq clone = new DoubleLinkedSeq(); \r\n\t clone = this.clone();\r\n\t String elements = \"{\";\r\n\t for(clone.cursor = head; clone.cursor != null; clone.cursor = clone.cursor.getLink()){\r\n\t\t elements = elements + (clone.cursor.getData() + \",\"); \r\n\t }\r\n\t \r\n\t elements = elements + \")\";\r\n\t \r\n\t return elements; \r\n }",
"public String getSequence() {\r\n return sequence;\r\n }",
"public String toString() {\n\t\t//|| (this.equals(new StatementParse(\"sequence\", 0)))\n\t\tif (this.equals(Parser.FAIL)) {\n\t\t\treturn \"\";\n\t\t}\n String result = \"\";\n result += \"(\";\n result += this.name;\n for (Parse child: this.children) {\n \tresult += \" \" + child.toString();\n }\n result += \")\";\n return result;\t\n }",
"public String toString()\n\t{\n\t\treturn this.defline + \"\\n\" + this.sequence + \"\\n + \\n\" + this.quality + \"\\n\";\n\t}",
"public static String keySequenceToString( KeyStroke[] seq ) {\n StringBuffer sb = new StringBuffer();\n for( int i=0; i<seq.length; i++ ) {\n if( i>0 ) sb.append( ' ' ); // NOI18N\n sb.append( keyStrokeToString( seq[i] ) );\n }\n return sb.toString();\n }",
"public String toString()\r\n\t{\r\n\t\tString s=\"\";\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\ts+=a[i]+\" \";\r\n\t\t}\r\n\t\treturn s;\r\n\t}",
"public String getSequence() {\n\t\treturn sequence;\n\t}",
"public String getSequence() {\n\t\treturn sequence;\n\t}",
"public String getSequence()\n\t{\n\t\treturn this.sequence;\n\t}",
"public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}",
"public String toString()\n {\n return _xstr.subSequence(_start, _end).toString();\n }",
"public String toString() { return new String(b,0,i_end); }",
"public String toString()\n\t{\n\t\tchar [] ToStringChar = new char[length];\n recursiveToString(0, ToStringChar, firstC);\n String contents = new String(ToStringChar);\n return contents;\n\t\t\n\t}",
"public com.google.protobuf.ByteString\n getSeqBytes() {\n java.lang.Object ref = seq_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n seq_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getQuerySequencesString() {\n \t\treturn null;\n \t}",
"public String toString() {\n\t\treturn toString(0, 0);\n\t}",
"@Override\n public String toString() {\n // TODO: this, statically\n StringBuilder builder = new StringBuilder(getObs().toString());\n builder.append(\" S\");\n builder.append(firstStep + 1);\n if (lastStep > firstStep) {\n builder.append(\"-\");\n builder.append(lastStep + 1);\n }\n return builder.toString();\n }",
"@Override\n\tpublic String getNextSequenceValue(String sequence) {\n\t\treturn \"\";\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn String.format(\"%-25s: %d\", this.getSequence(), this.getWeight());\n\t}",
"public static String generateSubarrays(int[] sequence)\n {\n String result = \"\";\n List<String> list = new ArrayList<>();\n list.add(\"[\"+sequence[0]+\"]\");\n return generateSubarraysUsingRecursion(sequence,list,1);\n }",
"public static String getDnaSequence(final DnaComponent component) {\n String rtn = \"\";\n if (component instanceof Part) {\n final Part part = (Part) component;\n rtn = part.getDnaSequence();\n }\n if (component instanceof Gate) {\n final Gate gate = (Gate) component;\n rtn = SBOLDataUtils.getDnaSequence(gate);\n }\n if (component instanceof InputSensor) {\n final InputSensor sensor = (InputSensor) component;\n rtn = SBOLDataUtils.getDnaSequence(sensor);\n }\n if (component instanceof OutputDevice) {\n final OutputDevice reporter = (OutputDevice) component;\n rtn = SBOLDataUtils.getDnaSequence(reporter);\n }\n return rtn;\n }",
"public String toString()\n {\n String str = (continuation ? \"+ \" : \"- \") ;\n for(int i = 0 ; i < values.length ; i++)\n str += values[i] + \" \";\n str += classification;\n return str ;\n }",
"public String toString() {\r\n return super.toString() +\r\n \"sequenceName: \" + sequenceName + \"\\n\" +\r\n \"initial value: \" + initialValue + \"\\n\" +\r\n \"step value: \" + stepValue + \"\\n\" +\r\n \"maxValue: \" + maxValue + \"\\n\" +\r\n \"minValue:\" + minValue + \"\\n\" +\r\n \"cycle: \" + cycle + \"\\n\";\r\n }",
"public String getSequence() {\r\n return mySequenceFragment;\r\n }",
"public com.google.protobuf.ByteString\n getSeqBytes() {\n java.lang.Object ref = seq_;\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 seq_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}",
"public String toString() {\r\n\t\tString salida = \"El inicio de la subsecuencia maxima es \" + izq\r\n\t\t\t\t+ \", el final \" + der + \", la suma maxima es \" + sumaMax\r\n\t\t\t\t+ \" y los datos son \";\r\n\t\tfor (int a : array)\r\n\t\t\tsalida += a + \" \";\r\n\t\treturn salida;\r\n\t}",
"public String toString(){\r\n\t\tString str = \"|\";\r\n\t\tArrayNode<T> temp = beginMarker.next;\r\n\t\twhile (temp != endMarker){\r\n\t\t\tstr+= temp.toString() + \"|\";\r\n\t\t\ttemp = temp.next;\r\n\t\t}\r\n\t\treturn str;\r\n\t}",
"public String toString()\r\n {\r\n String s = new String();\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n s += vi.getObject().toString()+ Static.defaultSeparator;\r\n vi = vi.getNext();\r\n }\r\n \r\n return s;\r\n }",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString() {\n if (N == 0) return \"[ ]\";\n String s = \"\";\n s = s + \"[ \";\n for (int i = 0; i <= N; i++)\n s = s + a[i] + \" \";\n s = s + \"]\";\n return s;\n }",
"public static String getUniqueSequence() {\n\t\treturn UUID.randomUUID().toString();\n\t}",
"static String getSeq(String line)\n{\n\tString pattern = \"SEQ=\";\n\tint idx = line.indexOf(pattern);\n\tif(idx == -1) return \"\";\n\tline = line.toUpperCase();\n\tidx += pattern.length();\n\tint end = idx;\n\twhile(end < line.length() && isBasePair(line.charAt(end))) end++;\n\treturn line.substring(idx, end);\n}",
"public String toString()\n\t{\n\t\tString output = \"\";\n\t\tfor(String[] at:atMat){\n\t\t\tfor(String a:at){\n\t\t\t\toutput += a+ \" \";\n\t\t\t}\n\t\t\toutput += \"\\n\";\n\t\t}\n\t\treturn output;\n\t}",
"public String toString() {\n\t\treturn \"I = \" + i + \" S = \" + s;\n\t}",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"public String toString() {\n String s = \" 1 2 3 4 5 6 7 8\";\n\n\n s += \"\\n --------------------\\n1 |\";\n\n for(int i=0; i < this.TAILLEX; i++){\n for(int k=0; k < this.TAILLEY; k++){\n s += this.plateau[i][k] + \"|\";\n }\n if(i<7) s += \"\\n --------------------\\n\" + (i+2) + \" |\";\n else s += \"\\n --------------------\\n\";\n }\n\n return s;\n }"
] | [
"0.73784673",
"0.69602007",
"0.6868699",
"0.6765579",
"0.6646772",
"0.66095656",
"0.6600437",
"0.6598571",
"0.65575147",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.64628845",
"0.64252275",
"0.6373242",
"0.6339062",
"0.6336747",
"0.63350874",
"0.6320972",
"0.6316612",
"0.6301271",
"0.6283156",
"0.62343985",
"0.6226706",
"0.6226706",
"0.62265956",
"0.6202158",
"0.61987364",
"0.6198712",
"0.61765355",
"0.61246896",
"0.61220473",
"0.6118279",
"0.61113507",
"0.61111045",
"0.61083794",
"0.6089786",
"0.6058182",
"0.6054844",
"0.60353124",
"0.6027161",
"0.60229886",
"0.60212857",
"0.6014053",
"0.5978152",
"0.5976255",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5975653",
"0.5971003",
"0.5968967",
"0.5967113",
"0.5951084",
"0.594841",
"0.59478",
"0.5937667"
] | 0.63218164 | 43 |
tests for method countAndSay() | boolean testCountAndSay(Tester t) {
return
t.checkExpect(s.countAndSay(1), "1") &&
t.checkExpect(s.countAndSay(3), "21") &&
t.checkExpect(s.countAndSay(4), "1211");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void test() {\n\t\tSystem.out.println(countAndSay(5));\n\t\t\n\t}",
"public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(countAndSay(1));\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(countAndSayS(6));\n\t\t\n\t\n\t}",
"public int count();",
"public int count();",
"public int count();",
"public int count();",
"int count();",
"int count();",
"int count();",
"int count();",
"int count();",
"int count();",
"public int countIn(CharSequence sequence, CountMethod countMethod, UnicodeSet.SpanCondition spanCondition) {\n/* 115 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public abstract int count();",
"public abstract int count();",
"int countByExample(AlertQueueExample example);",
"@Override\n\tpublic void count() {\n\t\t\n\t}",
"int countByExample(TbMessageExample example);",
"public abstract long count();",
"public int countIn(CharSequence sequence, CountMethod countMethod) {\n/* 99 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test\n public void countNumberOfWords() {\n final long count = 0; //TODO\n\n assertEquals(20, count);\n }",
"@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }",
"int countByExample(SmsCleanBagLineExample example);",
"public int bobCount ();",
"@Override\n\tpublic <S extends Translator> long count(Example<S> example) {\n\t\treturn 0;\n\t}",
"int getResponsesCount();",
"long count();",
"long count();",
"long count();",
"long count();",
"long count();",
"long count();",
"long count();",
"public int count(String word);",
"@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }",
"public int count() {\n return count(\"\");\n }",
"public int _count() {\n return _count(\"\");\n }",
"int countByExample(OfUserWechatExample example);",
"public long count() ;",
"@Override\n public long count();",
"@Test\n public void countTest() {\n // TODO: test count\n }",
"@Test\n\tpublic void testCountBookWithTitle() {\n\t\t//System.out.println(\"Counting books with the title, The Secret Garden...\");\n\t\tint result = store.countBookWithTitle(\"The Secret Garden\");\n\t\tassertTrue(result == 1);\n\t\t//System.out.println(result);\n\t}",
"@Test(timeout=2000)\n public void countTest()\n {\n int[] mixed = {1,5,3,8,10,34,62,31,45,20};\n int mixedOdds = 5;\n int mixedEvens = 5;\n int[] even = {2,4,6,8,10,20,30,58};\n int[] odd = {1,3,5,7,9,11,13,15,19};\n int[] singleEven = {2};\n int[] singleOdd = {1};\n \n assertEquals( \"Counting odds in array of mixed odds and evens failed.\", mixedOdds, OddsEvens.count( mixed, true ) );\n assertEquals( \"Counting evens in array of mixed odds and evens failed.\", mixedEvens, OddsEvens.count( mixed, false ) );\n assertEquals( \"Counting odds in an array of all evens failed.\", 0, OddsEvens.count( even, true ) );\n assertEquals( \"Counting evens in an array of all evens failed.\", even.length, OddsEvens.count( even, false ) );\n assertEquals( \"Counting odds in an array of all odds failed.\", odd.length, OddsEvens.count( odd, true ) );\n assertEquals( \"Counting evens in an array of all odds failed.\", 0, OddsEvens.count( odd, false ) );\n assertEquals( \"Counting odds in an array of a single even failed.\", 0, OddsEvens.count( singleEven, true ) );\n assertEquals( \"Counting evens in an array of a single even failed.\", 1, OddsEvens.count( singleEven, false ) );\n assertEquals( \"Counting odds in an array of a single odd failed.\", 1, OddsEvens.count( singleOdd, true ) );\n assertEquals( \"Counting evens in an array of a single odd failed.\", 0, OddsEvens.count( singleOdd, false ) );\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hi RAJESH\" + countAndSay(4));\n\n\t}",
"int countByExample(ChronicCheckExample example);",
"int getMessageCount();",
"int getMessageCount();",
"int getMessageCount();",
"int getMessageCount();",
"int getMessageCount();",
"private static void testFrequency(BagInterface<String> aBag, String[] tests)\n {\n System.out.println(\"\\nTesting the method getFrequencyOf:\");\n for (int index = 0; index < tests.length; index++)\n System.out.println(\"In this bag, the count of \" + tests[index] +\n \" is \" + aBag.getFrequencyOf(tests[index]));\n }",
"long countByExample(PrivateMessageExample example);",
"public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}",
"long countByExample(IceAppExample example);",
"@Test\n public void lookAndSay_Test() {\n String start = \"11\";\n int n = 2;\n\n String result = LookAndSay(start, n);\n\n assertThat(result).isEqualTo(\"1211\");\n }",
"int getMsgCount();",
"int getMsgCount();",
"boolean isCounting();",
"public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }",
"int count(State state, Spreadable spreadable);",
"@Test public void getCountTest() {\n DirectMC f = new DirectMC(\"AdMailing\", 10000.00, 3.00, 2000);\n Assert.assertEquals(f.getCount(), 5.0, 1);\n }",
"@Override\r\n\tpublic int count(Integer bno) {\n\t\treturn replyMapper.count(bno); \r\n\t}",
"void onCountFinished();",
"long countByExample(AlertExample example);",
"long count() throws Exception;",
"public void incCount() { }",
"long countByExample(GpPubgPlayerExample example);",
"@Test\n public void countInfosTest() {\n // TODO: test countInfos\n }",
"public boolean haveCount () ;",
"int findCount();",
"public int get_count();",
"long countByExample(ActivityHongbaoPrizeExample example);",
"public int countIn(CharSequence sequence) {\n/* 87 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"int count(State state);",
"@Override\n\tpublic void completed(Void arg0, Void arg1) {\n\t\tif(this.count < max){\n\t\t\tthis.count += 1;\n\t\t\tString msg = \"[\"+client.name+\"] hello this my \"+count+\"rd mssage\";\n\t\t\tclient.writeMessage(msg,this);\n\t\t}\n\t}",
"public int getCount(String username);",
"long getCount();",
"long getCount();",
"@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}",
"public int count (String a, String b) {\n return 0;\n }",
"int getResponseCount();",
"private Count() {}",
"private Count() {}",
"Integer count();",
"Integer count();",
"int countByExample(CraftAdvReqExample example);",
"int countByExample(QuestionExample example);",
"int countByExample(QuestionExample example);",
"int countByExample(CommonQuestionStrategyTypeExample example);",
"int countByExample(CardExample example);",
"int countByExample(UserTipsExample example);",
"@Test\n\tpublic static void main() {\n\t\tSystem.out.println(Stringcount2(\"reddygaru\"));\n\t}",
"@Test\n\tpublic void testSayMessageOnRequest(){\n\t\tSystem.out.println(\"\\nMensajes aleatorios al aparecer el Meesek:\\n\");\n\t\tMrMe.sayMessageOnRequest();\n\t\tMrMe.sayMessageOnRequest();\n\t\tMrMe.sayMessageOnRequest();\n\t}",
"int countByExample(Lbm83ChohyokanriPkeyExample example);",
"int getUserCount();",
"int getUserCount();",
"long countByExample(TCpySpouseExample example);",
"@Test\n public void testGetCountNonEmpty() {\n ArrayList<String> testArray;\n testArray =\n new ArrayList<String>(Arrays.asList(\"one\", \"two\", \"two\", \"three\", \"three\", \"three\"));\n\n fixture.countWords(testArray.iterator());\n\n assertEquals(fixture.getCount(\"one\"), 1);\n assertEquals(fixture.getCount(\"two\"), 2);\n assertEquals(fixture.getCount(\"three\"), 3);\n assertEquals(fixture.getCount(\"aRandomWord\"), -1);\n assertEquals(fixture.getCount(\"notEvenAWord\"), -1);\n assertEquals(fixture.getCount(\"password\"), -1);\n assertEquals(fixture.getCount(\"Habibi\"), -1);\n }"
] | [
"0.79558784",
"0.68172735",
"0.67039335",
"0.6546512",
"0.64237165",
"0.64237165",
"0.64237165",
"0.64237165",
"0.63727987",
"0.63727987",
"0.63727987",
"0.63727987",
"0.63727987",
"0.63727987",
"0.63550776",
"0.6331247",
"0.6331247",
"0.6328666",
"0.63094956",
"0.62904054",
"0.62776923",
"0.6269328",
"0.62507755",
"0.62484896",
"0.6230407",
"0.622399",
"0.6222399",
"0.62163997",
"0.61882174",
"0.61882174",
"0.61882174",
"0.61882174",
"0.61882174",
"0.61882174",
"0.61882174",
"0.6156095",
"0.610799",
"0.610769",
"0.60968554",
"0.6077922",
"0.60756963",
"0.6069989",
"0.6055808",
"0.6035539",
"0.60247093",
"0.6022124",
"0.60132027",
"0.59929025",
"0.59929025",
"0.59929025",
"0.59929025",
"0.59929025",
"0.5992418",
"0.59921503",
"0.59805334",
"0.5970032",
"0.59578204",
"0.5956771",
"0.5956771",
"0.5949311",
"0.59371555",
"0.593559",
"0.5930438",
"0.5911413",
"0.5904994",
"0.59042364",
"0.5904193",
"0.58909374",
"0.5873435",
"0.58727324",
"0.5868989",
"0.5867429",
"0.5859275",
"0.5848378",
"0.583456",
"0.5833874",
"0.58332294",
"0.58108187",
"0.5800085",
"0.5800085",
"0.5793277",
"0.57932556",
"0.57879406",
"0.5786797",
"0.5786797",
"0.5782078",
"0.5782078",
"0.5777987",
"0.5777182",
"0.5777182",
"0.5772049",
"0.5770368",
"0.57655764",
"0.5763588",
"0.5761751",
"0.5755243",
"0.57537293",
"0.57537293",
"0.57536876",
"0.57483196"
] | 0.8031383 | 0 |
Operate on a single cell. | @Override
protected void operateValue(Grid src, Grid dst, int col, int row) {
// Zevenbergen-Thorne method using left and right neighbors
dst.setValue(src.getXGradient(col, row), col, row);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Value evaluateCellAt(int col, int row);",
"public abstract void processCell(int rowIndex, int colIndex);",
"protected abstract double getCell(\r\n int row,\r\n int col);",
"public void doCell(Parse cell, int column) {\n\t\tignore(cell);\n\t}",
"abstract float evalCell(Cell c, float hunger, Random rand);",
"public abstract T getCell(int row, int column);",
"public Cell getCell() {\n\t\treturn cell;\n\t}",
"public int getCell() {\n return this.cell;\n }",
"public int get_cell(int row,int col)\n{\n\treturn cell[row][col] ;\t\n}",
"Cell getCellAt(Coord coord);",
"public boolean computeCell() {\n boolean b = false;\n int[] tab = null;\n switch (course) {\n case 4:\n tab = CMap.givePositionTale(x, y - (CMap.TH / 2));\n break;\n default:\n tab = CMap.givePositionTale(x, y - (CMap.TH / 2));\n break;\n }\n\n Cell c = game.getMap().getCell(tab);\n if (c != current) {\n current = c;\n b = true;\n }\n return b;\n }",
"public void updateDataCell();",
"public synchronized byte getCellValue()\n {\n return cellValue;\n }",
"private boolean update_cell(int row, int col) {\n if (this.cells[row][col].hasNumericValue()) {\n int val = (int)this.cells[row][col].getValue()+1;\n this.cells[row][col].setValue((char)val);\n return true;\n }\n return false;\n }",
"public org.edna.mxv1.xsdata.XSDataCell getCell(\n ) {\n return this._cell;\n }",
"public abstract boolean getCell(int x, int y);",
"public interface Cell {\n\tpublic void interact(Character character);\n}",
"public double getValue(Cell cell) {\n\t\treturn cell.value;\n\t}",
"public int getElement(Pair<Integer, Integer> cell){\n\t\treturn numbers[cell.getFirst()][cell.getSecond()];\n\t}",
"public TableCell getCell() {\n return cell;\n }",
"public abstract AwtCell get(int y, int x);",
"public abstract boolean isOneCell();",
"private void clickCell(MouseButton button, Cell cell){\n if(cleared==0 && button==MouseButton.PRIMARY){\n startTimer();\n }\n if(!cell.getPressed()) {\n if (button == MouseButton.SECONDARY) {\n if (!cell.getFlagged() && !cell.getQuestion()) {\n cell.setFlagged();\n scoreboard.decrementBombs();\n }\n else if (cell.getFlagged()) {\n cell.setQuestion();\n }\n else if (cell.getQuestion()) {\n cell.setDefault();\n scoreboard.incrementBombs();\n }\n }\n if (button == MouseButton.PRIMARY) {\n if (cell.getBomb()) {\n loseGame();\n }\n if (!cell.getBomb() && !cell.getFlagged() && !cell.getQuestion()) {\n cell.setNumber(cell.getBombCount());\n ++cleared;\n winCondition();\n showCells(cell.xPos, cell.yPos);\n }\n }\n }\n }",
"public abstract void gameLogic(Cell currentCell);",
"void editCell(Coord coord, String string);",
"public Object getCell(int col, int row) {\n Vector data = ((DefaultTableModel) getModel()).getDataVector();\n return ((Vector) data.get(row)).get(col);\n }",
"private double getCellValue(Cell cell){\n\n if(cell == null){\n return 0.0;\n }\n else{\n switch (cell.getCellType()){\n case TEXT:\n // we ignore Textcells\n return 0;\n case NUMBER:\n return ((NumberCell) cell).getCellContent();\n\n case FORMULA:\n return ((FormulaCell) cell).getContent();\n default:\n System.out.println(\"ERROR: Calculation-SUM doesn't work\");\n\n }\n }\n return 0;\n }",
"void completeCell(Sheet sheet, Row row, Cell cell, ExcelField excelField, Field field, int index, int colIndex, boolean isHead);",
"int getCellStatus(int x, int y);",
"default void interactWith(EnigmeBehavior.EnigmeCell cell) {\n\t}",
"@Override\n\tpublic void removeCell(Cell arg0) {\n\t\t\n\t}",
"private Object getCellValue(XSSFCell cell) {\n\t\tObject cellValue = null;\n\t\tDecimalFormat df = new DecimalFormat(\"#\");\n\t\tswitch (cell.getCellType()) {\n\t\t// This case to get the data and get the value as strings.\n\t\tcase XSSFCell.CELL_TYPE_STRING:\n\t\t\tcellValue = cell.getRichStringCellValue().getString().trim();\n\t\t\tbreak;\n\t\t// This case to get the data and get the value as number.\n\t\tcase XSSFCell.CELL_TYPE_NUMERIC:\n\t\t\tcellValue = df.format(cell.getNumericCellValue()).toString();\n\t\t\tbreak;\n\t\t// This case to get the data and get the value as boolean.\n\t\tcase XSSFCell.CELL_TYPE_BOOLEAN:\n\t\t\tcellValue = String.valueOf(cell.getBooleanCellValue()).trim();\n\t\t\tbreak;\n\t\tcase XSSFCell.CELL_TYPE_FORMULA:\n\t\t\tcellValue = cell.getCellFormula();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tcellValue = \"空\";\n\t\t}\n\t\treturn cellValue;\n\t}",
"public native Object getEditedCell(int rowNum, int colNum) /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n var ret = self.getEditedCell(rowNum, colNum);\r\n return $wnd.SmartGWT.convertToJavaType(ret);\r\n }-*/;",
"private String getCellValue(Cell cell) {\r\n String value = null;\r\n if (cell != null) {\r\n CellValue cellValue = evaluator.evaluate(cell);\r\n if (cellValue != null) {\r\n switch (cellValue.getCellType()) {\r\n case NUMERIC:\r\n value = String.valueOf(cell.getNumericCellValue());\r\n break;\r\n case STRING:\r\n value = cell.getStringCellValue();\r\n break;\r\n case BLANK:\r\n break;\r\n case ERROR:\r\n break;\r\n default:\r\n value = cell.getStringCellValue();\r\n break;\r\n }\r\n }\r\n }\r\n return value;\r\n }",
"ICell getCellAt(int col, int row) throws IllegalArgumentException;",
"public void setCell(Cell cell)\n {\n myCell = cell;\n }",
"@Override\r\n public boolean isCellEditable(int row, int col) {\r\n return true;\r\n }",
"public void doToEachCell(Consumer<Cell> func) {\n for(int i = 0; i < cells.length; i++) {\n for(int j = 0; j < cells[i].length; j++) { \n func.accept(cells[i][j]);\n }\n } \n }",
"public abstract void setCellValue(int cellValue, int row, int col);",
"public abstract boolean killCell(Cell c);",
"public synchronized void switchCell()\n {\n cellValue = (cellValue == ALIVE) ? DEAD : ALIVE;\n }",
"@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void update(final ViewerCell cell) {\n\t\t\t}",
"public boolean setCell(int row, int col, char value) {\n if (this.cells[row][col] instanceof Cell == false) return false;\n this.cells[row][col].setValue(value);\n return true;\n }",
"@Override\n public boolean isCellEditable(int row, int col) {\n //Note that the data/cell address is constant,\n //no matter where the cell appears onscreen.\n return col==0;\n }",
"@Override\r\n public boolean isCellEditable(int row, int col) {\n return (col == Column.Active.ordinal());\r\n }",
"public abstract void subtractCage(int cellValue, int currentRow, int currentCol);",
"public Integer getValueForCell(int x, int y)\n {\n Integer value=_cells[x][y].getValue();\n return value;\n }",
"protected abstract V convertToModelCell(C column,\n CellValue< ? > cell);",
"public Cell get() {\n return ptSearcher.current();\n }",
"public Cell getEnumCell() {\n\n\t\tString player = getNextPlayer();\n\n\t\tCell value;\n\n\t\tif(player.equals(\"X\"))\n\t\t\tvalue = Cell.X;\n\n\t\telse\n\t\t\tvalue = Cell.O;\n\n\t\treturn value;\n\t}",
"public boolean isCellEditable(int row, int col) {\r\n return true;\r\n }",
"@Override\n public boolean isCellEditable(int row, int col) {\n return col == 2;\n }",
"public void doToEachCell(Consumer<Cell> func) {\n for(Cell c: this) {\n func.accept(c);\n }\n }",
"public synchronized void setCellValue(GoLCell in_cell)\n {\n cellValue = in_cell.getCellValue();\n }",
"public boolean isCellEditable(int row, int col) { return (col!=0); }",
"public void punishment(){\n\t\tthis.cell = 0;\n\t}",
"public boolean isCellEditable(int row, int col) {\n return true;\n }",
"protected boolean computeCell( int col, int row){\n boolean liveCell = getCell(col, row);\r\n\r\n // neighbours is the number of live neighbours to cell (col,row)\r\n int neighbours = countNeighbours(col, row);\r\n //System.out.println(neighbours);\r\n boolean nextCell =false;\r\n //System.out.println(neighbours);\r\n //A live cell with less than two neighbours dies (underpopulation)\r\n if (liveCell && neighbours < 2) {//A live cell with two or three neighbours lives (a balanced population)\r\n nextCell = false;\t\t\t\t//2 stays alive if alive already... see 3 below\r\n }\r\n else if(liveCell & neighbours == 2){\r\n nextCell = true;\r\n }\r\n //A live cell with with more than three neighbours dies (overcrowding)\r\n else if(neighbours > 3){\r\n nextCell = false;\r\n }\r\n //A dead cell with exactly three live neighbours comes alive\r\n // 3 live neighbours guarantees\r\n else if(neighbours == 3){\r\n nextCell = true;\r\n }\r\n return nextCell;\r\n }",
"public interface Cell {\n boolean isDefined();\n\n int getValue();\n\n void setValue(int value);\n}",
"protected abstract V makeModelCellValue(C column);",
"@Override\n\t\t public boolean isCellEditable(int row, int column) {\n\t\t //all cells false\n\t\t return false;\n\t\t }",
"private Cell get_cell(int row, int col){\n if (! cell_in_bounds(row,col)) return null;\n return this.cells[row][col];\n }",
"public boolean isCellEditable(int row, int col) {\n\t if (col ==1) {\r\n\t return true;\r\n\t } else {\r\n\t return false;\r\n\t }\r\n\t }",
"public Cell get(int row, int col) {\n\t\treturn myGrid.get(row, col);\n\t}",
"public void handleCellClicked(MouseEvent event) {\n\t\tObject source = event.getSource();\n\t\tif (source instanceof BoardSquare) {\n\t\t\tBoardSquare cell = (BoardSquare)source;\n\t\t\tint row = cell.getRow();\n\t\t\tint col = cell.getColumn();\n\t\t\tdouble size = cell.getHeight();\n\t\t\tSystem.out.printf(\"Clicked on [%d,%d]\\n\", row, col);\n\t\t\tPlayer player = game.getNextPlayer();\n\t\t\tif (game.canMoveTo(player, col, row)) {\n\t\t\t\tgame.moveTo(new Piece(player, size), col, row);\n\t\t\t\t// The game will add piece to the board\n\t\t\t}\n\t\t\tupdateGameStatus();\n\t\t}\n\t}",
"protected abstract double setCell(\r\n int row,\r\n int col,\r\n double valueToSet);",
"public void updateCell(Cell cell)\r\n {\r\n if (cell.isBomb() == false && cell.active)\r\n {\r\n if (cell.getBombsNearby() > 0)\r\n {\r\n cell.setText(\"\" + cell.getBombsNearby());\r\n cell.setDisable(true);\r\n }\r\n else\r\n {\r\n cell.setDisable(true);\r\n activateNearby(cell.getX(), cell.getY());\r\n }\r\n gameBoard.emptyRemaining--;\r\n }\r\n System.out.println(\"update cell: \" + gameBoard.emptyRemaining);\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n endGame();\r\n }\r\n }",
"@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}",
"String getRawCellAt(Coord coord);",
"void Cell(boolean R, int x, int y, Bridge bridge);",
"public boolean isCellEditable(int row, int column){ \r\n return false; \r\n }",
"public Cell getCell(int row, int column) {\n return cells[row][column];\n }",
"protected void computeTech(Cell cell, Set uncomputedCells)\n \t{\n \t\tuncomputedCells.remove(cell);\n \t}",
"public boolean isCellEditable(int row, int column){\n return true;\n }",
"public double getCell(int row, int col) {\n int di = row - col;\n\n if (di == 0) {\n return B[row];\n } else if (di == -1) {\n return C[row];\n } else if (di == 1) {\n return A[row];\n } else return 0;\n }",
"public boolean isCellEditable(int row, int col) {\n\t\t if (col ==2) {\r\n\t\t return true;\r\n\t\t } else {\r\n\t\t return false;\r\n\t\t }\r\n\t\t }",
"public boolean isCellEditable(int row, int col) {\r\n return false;\r\n }",
"public void setCell(\n final org.edna.mxv1.xsdata.XSDataCell cell) {\n this._cell = cell;\n }",
"int getCellid();",
"public boolean isCellEditable(int row, int col)\n {\n return col != 0;\n }",
"@Override\r\n\t\tpublic boolean isCellEditable(int row, int col) {\n\t\t\tif (col == 1 || col == 2) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}",
"public int cellClicked(Board source, int cellX, int cellY);",
"private void cellClick(int row, int col) {\n if (isMarked(getTd(row, col))) {\n return;\n }\n if (minefield.isMine(row, col)) {\n boom();\n revealAll();\n } else {\n reveal(row, col);\n if (isAllRevealed()) {\n success();\n }\n }\n }",
"public boolean isCellEditable(int row, int col) {\n\t\treturn true;\n\t}",
"void startEditing(Object cell) {\n\n\t}",
"public abstract void manageCell(int x, int y, int livingNeighbours);",
"void clearCell(int x, int y);",
"@Override\r\n\tpublic Cell getCell(Location loc)\r\n\t{\n\t\tint row = loc.getRow();\r\n\t\tint col = loc.getCol();\r\n\t\treturn cells[row][col];\r\n\t}",
"public Cell getSelectedCell() {\n return selectedCell;\n }",
"public boolean isCellEditable(int row, int col) {\r\n\t\t\t\treturn col == 2;\r\n\t\t\t}",
"@Override\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return columnIndex == 1;\n }",
"public void selectCellForEvent(Object cell, MouseEvent e) {\r\n \t\t((JmtGraphUI) graph.getUI()).selectCellForEvent(cell, e);\r\n \t}",
"public Square getSquare(Square cell) {\n\t\treturn (Square) cells[cell.getRow()][cell.getColumn()];\n\t}",
"public Integer getCellNum() {\n return cellNum;\n }",
"public Cell getCell( int rowIndex, int colIndex )\n {\n return cells[ colIndex ][ rowIndex ];\n }",
"@Override\n\t\t public boolean isCellEditable(int row, int column) {\n\t\t //all cells false therefore they are not editable\n\t\t return false;\n\t\t }",
"@Override\n public boolean isCellEditable(int row, int column) { \n return model.isCellEditable(row, column); \n }",
"@Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }",
"@Override\n public boolean isCellEditable(int arg0, int arg1) {\n return false;\n }",
"@Override\n public boolean isCellEditable(int arg0, int arg1) {\n return false;\n }"
] | [
"0.6943999",
"0.68750143",
"0.6615965",
"0.6480874",
"0.63487303",
"0.62967587",
"0.6257742",
"0.62415296",
"0.6224712",
"0.61804557",
"0.6042646",
"0.5998229",
"0.5988923",
"0.59745634",
"0.5967083",
"0.5963716",
"0.5963083",
"0.5948282",
"0.5943258",
"0.5929762",
"0.5927144",
"0.59036195",
"0.58682877",
"0.5860648",
"0.58461565",
"0.5836847",
"0.58259666",
"0.582181",
"0.5820914",
"0.5810744",
"0.58070683",
"0.57912636",
"0.5783039",
"0.57513654",
"0.5747132",
"0.5737234",
"0.5736406",
"0.5734666",
"0.5725761",
"0.57251775",
"0.5720006",
"0.5697435",
"0.5697435",
"0.5642367",
"0.56381166",
"0.56227857",
"0.5617714",
"0.56173617",
"0.56164443",
"0.561395",
"0.55997795",
"0.559762",
"0.5595321",
"0.55938464",
"0.5592907",
"0.55890685",
"0.5583981",
"0.5572931",
"0.5572551",
"0.55708045",
"0.55686355",
"0.5568578",
"0.5563488",
"0.5553984",
"0.5551381",
"0.5540921",
"0.55343914",
"0.5527039",
"0.55058646",
"0.5505466",
"0.5490278",
"0.5478795",
"0.54784024",
"0.54673374",
"0.546559",
"0.54653805",
"0.5463855",
"0.54626983",
"0.54606736",
"0.5455021",
"0.54510844",
"0.5450119",
"0.54487646",
"0.54460657",
"0.54415405",
"0.54371744",
"0.5426675",
"0.54226005",
"0.5422128",
"0.5414994",
"0.5411511",
"0.54101974",
"0.5409848",
"0.5408765",
"0.54087573",
"0.5406621",
"0.5401164",
"0.5399576",
"0.53965354",
"0.53944445",
"0.53944445"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
GenericPair<Integer> ob1 = new GenericPair(1,1);
GenericPair<Integer> ob2 = new GenericPair(2,3);
System.out.println(ob1.equals(ob2));
System.out.println(ob1.getFirst());
System.out.println(ob1.getSecond());
System.out.println(ob2.getFirst());
System.out.println(ob2.getSecond());
System.out.println(ob1.toString());
System.out.println(ob2.toString());
} | {
"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 |
Title: IApiService Description:TODO Company: adwalker | public interface IPlacementPackageService {
/**
* 更新广告
*
* @param advertisement
* @param id
* @return
* @throws Exception
*/
public PlacementPackageVo uploadPath(PackageForm advertisement)
throws Exception;
/**
* <p>
* Title: findAdvByPlacement
* </p>
* <p>
* Description:TODO
* </p>
*
* @param placement_id
* @author cuidd
* @date 2013-5-9
* @return void
* @version 1.0
* @throws Exception
*/
AdvVo findAdvByPlacement(Long placement_id) throws Exception;
/**
* <p>
* Title: findByPPlacement
* </p>
* <p>
* Description:TODO
* </p>
*
* @param placement_id
* @return
* @author cuidd
* @date 2013-5-9
* @return List<PlacementPackageVo>
* @version 1.0
* @throws Exception
*/
List<PlacementPackage> findByPlacement(Long placement_id) throws Exception;
/**
* <p>
* Title: delete
* </p>
* <p>
* Description:TODO
* </p>
*
* @param id
* @author cuidd
* @date 2013-5-9
* @return void
* @version 1.0
*/
public void delete(Long id);
/**
* <p>
* Title: update
* </p>
* <p>
* Description:TODO
* </p>
*
* @param id
* @param code
* @author cuidd
* @date 2013-5-9
* @return void
* @version 1.0
* @throws Exception
*/
public void update(Long id, String code) throws Exception;
/**
* <p>
* Title: query
* </p>
* <p>
* Description:TODO
* </p>
*
* @param code
* @return
* @author cuidd
* @date 2013-5-18
* @return boolean
* @version 1.0
* @param id
* @throws Exception
*/
public boolean query(Long id, String code) throws Exception;
/**
* <p>
* Title: findIosPackageByPlacement
* </p>
* <p>
* Description:TODO
* </p>
*
* @param placement_id
* @return
* @author cuidd
* @date 2013-5-21
* @return IosPackageForm
* @version 1.0
* @throws Exception
*/
public PlacementPackageEditVo getIosPackageByPlacement(Long placement_id)
throws Exception;
/**
* <p>
* Title: addIosPackage
* </p>
* <p>
* Description:TODO
* </p>
*
* @param placement_id
* @param form
* @author cuidd
* @date 2013-5-21
* @return void
* @version 1.0
* @throws Exception
*/
public void addIosPackage(Long placement_id, IosPackageForm form)
throws Exception;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ApiService {\n\n\n}",
"public interface ApiService {\n\n\n\n}",
"public interface ApiService {\n\n}",
"public interface APIService {\n}",
"public interface JanDanApiService {\n\n\n}",
"public interface IApiService {\n\n void callApiArticles();\n}",
"public interface ApiService {\n\t@GET(\"photos\")\n\tCall<List<ApiModel>> getApiData();\n}",
"public interface ApiService {\n\n @GET(\"datacatalog?format=json\")\n Call<Catalog> getTopCatalog();\n\n\n/* @GET(\"item/{storyid}.json\")\n Call<StoryResponse> getStoryDetails(@Path(\"storyid\") String storyid);\n\n @GET(\"autocomplete/json\")\n Call<AutoCompleteGooglePlaces> getAutoCompleteResults(@Query(\"key\") String API_KEY,\n @Query(\"input\") String encode);\n\n @GET(\"nearbysearch/json\")\n Call<GetPlacesResponse> getPlaceDetails(@Query(\"location\") String location,\n @Query(\"radius\") int radius,\n @Query(\"key\") String key);*/\n}",
"@Service\npublic interface MS013002GetDetailService {\n /**\n * [Description]: Method find a holiday with id specification<br/>\n * [ Remarks ]:<br/>\n *\n * @param id\n * @return MS013002UpdateResponse - Model contain data what need to send to client\n */\n BaseResponse getDetail(long holidayID, int companyID);\n}",
"@Service(name = \"CustomerService\")\n@OpenlegacyDesigntime(editor = \"WebServiceEditor\")\npublic interface CustomerServiceService {\n\n public CustomerServiceOut getCustomerService(CustomerServiceIn customerServiceIn) throws Exception;\n\n @Getter\n @Setter\n public static class CustomerServiceIn {\n \n Integer id3;\n }\n \n @ApiModel(value=\"CustomerServiceOut\", description=\"\")\n @Getter\n @Setter\n public static class CustomerServiceOut {\n \n @ApiModelProperty(value=\"Getuserdetails\")\n Getuserdetails getuserdetails;\n }\n}",
"public interface RestApi {\n}",
"public interface IApiManager {\n public BoatitService getSERVICE();\n}",
"@Api(description = \"supermarket client api\")\npublic interface SupermarketClientApi extends ProductApi {\n}",
"@ApiGroup(name = \"demo\", minCode = 1, maxCode = 1000000, codeDefine = DemoReturnCode.class, owner = \"demo\")\n@ApiMockInterfaceImpl(MockServiceImpl.class)\npublic interface DemoMockService {\n @HttpApi(name = \"demo.testMockService\", desc = \"测试模拟服务. \\n en-us:mock service test. \\n ja-jp:モックサービス・テスト\", security = SecurityType.None, owner = \"demo\")\n public DemoEntity testMockService(\n @ApiParameter(required = true, name = \"name\", desc = \"say hello多语言测试. \\nen-us:multi-language test \\nja-jp:多言語テスト\")\n String name) throws ServiceException;\n}",
"public interface MovieInfoService extends IService<MovieInfoEntity> {\n Response insertMovieInfo(MovieInfoEntity movieInfoEntity);\n\n Response getAllInfoList();\n\n\n /**\n * 查看每周收入,整体和每部电影\n * @return\n */\n Response getThisWeekMoney();\n\n\n /**\n * 根据关键字检索电影\n * @param keyWord\n * @return\n */\n Response getMovieByKeyWord(String keyWord);\n\n /**\n * 根据日期检索电影\n * @param date\n * @return\n */\n Response getMovieByDate(String date);\n\n\n /**\n * 查看指定时间段内段电影\n * @param startTime\n * @param endTime\n * @return\n */\n Response getMovieByTime(String startTime,String endTime);\n\n\n /**\n * 根据id查询电影\n * @param id\n * @return\n */\n Response getMovieById(long id);\n\n\n\n\n /**\n * 更新电影信息\n * @return\n */\n Response updateMovieById(MovieInfoEntity movieInfoEntity);\n\n\n /**\n * 删除电影\n * @return\n */\n Response deleteMovieById(long id);\n}",
"public interface ApiService {\n\n\n //--------------------------------------------Movies------------------------------------------------------------------------------\n\n @GET(\"discover/movie?\" + ApiConstants.ApiKey)\n Call<MovieModel> getMoviesByGenre(@Query(\"with_genres\") String genre,@Query(\"page\") int page);\n\n @GET(\"discover/movie?\" + ApiConstants.ApiKey)\n Call<MovieModel> getMoviesByYear(@Query(\"primary_release_year\") int year,@Query(\"page\") int page);\n\n @GET(\"movie/{popular}?\" + ApiConstants.ApiKey)\n Call<MovieModel> getMovies(@Path(\"popular\")String popular,@Query(\"page\") int page);\n\n @GET(\"movie/{movie_id}?\" + ApiConstants.ApiKey)\n Call<Movie> getMovie(@Path(\"movie_id\") int link,@Query(\"append_to_response\")String credits);\n\n @GET(\"movie/{movie_id}/credits?\" + ApiConstants.ApiKey)\n Call<CreditsModel> getMovieCredits(@Path(\"movie_id\") int link);\n\n @GET(\"genre/movie/list?\" + ApiConstants.ApiKey)\n Call<GenresModel> getGenres();\n\n @GET(\"movie/{movie_id}/\" + \"similar?\" + ApiConstants.ApiKey)\n Call<MovieModel> getSimilar(@Path(\"movie_id\") int link);\n\n @GET(\"movie/{movie_id}/\" + \"videos?\" + ApiConstants.ApiKey)\n Call<VideoModel> getVideo(@Path(\"movie_id\") int link);\n\n @GET(\"search/movie?\" + ApiConstants.ApiKey)\n Call<MovieModel> getSearchMovie(@Query(\"query\") String query);\n\n @GET(\"movie/{movie_id}/images?\" + ApiConstants.ApiKey)\n Call<ImageModel> getMovieImages(@Path(\"movie_id\") int link);\n\n @GET(\"movie/{movie_id}/reviews?\" + ApiConstants.ApiKey)\n Call<ReviewsModel> getMovieReviews(@Path(\"movie_id\") int link);\n\n //--------------------------------------------Shows------------------------------------------------------------------------------\n @GET(\"genre/tv/list?\" + ApiConstants.ApiKey)\n Call<GenresModel> getTVGenres();\n\n @GET(\"discover/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getTVByGenre(@Query(\"with_genres\") String genre,@Query(\"page\") int page);\n\n @GET(\"discover/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getTVByNetwork(@Query(\"with_networks\") int id,@Query(\"page\") int page);\n\n @GET(\"discover/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getTVByYear(@Query(\"primary_release_year\") int year,@Query(\"page\") int page);\n\n @GET(\"tv/{tv_id}?\" + ApiConstants.ApiKey)\n Call<Shows> getShows(@Path(\"tv_id\") int link ,@Query(\"append_to_response\")String credits);\n\n @GET(\"tv/{shows}?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getShows(@Path(\"shows\")String shows,@Query(\"page\") int page);\n\n @GET(\"search/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getSearchShows(@Query(\"query\") String query);\n\n @GET(\"tv/{tv_id}/\" + \"videos?\" + ApiConstants.ApiKey)\n Call<VideoModel> getShowVideo(@Path(\"tv_id\") int link);\n\n @GET(\"tv/{tv_id}/\" + \"similar?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getSimilarShows(@Path(\"tv_id\") int link);\n\n @GET(\"tv/{tv_id}/credits?\" + ApiConstants.ApiKey)\n Call<CreditsModel> getShowCredits(@Path(\"tv_id\") int link);\n\n @GET(\"tv/{tv_id}/images?\" + ApiConstants.ApiKey)\n Call<ImageModel> getShowsImages(@Path(\"tv_id\") int link);\n\n\n //--------------------------------------------Person------------------------------------------------------------------------------\n\n @GET(\"person/popular?\" + ApiConstants.ApiKey)\n Call<PersonModel> getPopularPeople(@Query(\"page\") int page);\n\n @GET(\"person/{person_id}/\" + \"movie_credits?\" + ApiConstants.ApiKey)\n Call<CreditsModel> getPersonCredits(@Path(\"person_id\") int link);\n\n @GET(\"person/{person_id}?\" + ApiConstants.ApiKey)\n Call<Person> getPerson(@Path(\"person_id\") int link);\n\n @GET(\"search/person?\" + ApiConstants.ApiKey)\n Call<PersonModel> getSearchPerson(@Query(\"query\") String query);\n\n //--------------------------------------------Login------------------------------------------------------------------------------\n\n @GET(\"authentication/{guest_session}/new?\" + ApiConstants.ApiKey)\n Call<User> getGuestUser(@Path(\"guest_session\")String guest);\n\n @GET(\"authentication/token/validate_with_login?\" + ApiConstants.ApiKey)\n Call<User> getValidateUser(@Query(\"username\") String username,@Query(\"password\") String password,@Query(\"request_token\")String request_token);\n\n @GET(\"authentication/session/new?\" + ApiConstants.ApiKey)\n Call<User> getUserSession(@Query(\"request_token\") String reques_token);\n\n @GET(\"account?\" + ApiConstants.ApiKey)\n Call<User> getUserDetails(@Query(\"session_id\") String session_id);\n\n //--------------------------------------------Favorites------------------------------------------------------------------------------\n\n @GET(\"account/{account_id}/favorite/movies?\" + ApiConstants.ApiKey)\n Call<MovieModel> getUserFavorites(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n @GET(\"movie/{movie_id}/\" + \"account_states?\" + ApiConstants.ApiKey)\n Call<Movie> getFavorites(@Path(\"movie_id\") int link,@Query(\"session_id\")String session_id);\n\n @POST(\"account/{account_id}/favorite?\" + ApiConstants.ApiKey)\n Call<Movie> postUserFavorites(@Path(\"account_id\") String account_id, @Query(\"session_id\") String session_id, @Body FavoriteMoviePost body);\n\n @POST(\"account/{account_id}/favorite?\" + ApiConstants.ApiKey)\n Call<Shows> postUserShowFavorites(@Path(\"account_id\") String account_id, @Query(\"session_id\") String session_id, @Body FavoriteMoviePost body);\n\n @GET(\"account/{account_id}/favorite/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getUserShowsFavorites(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n @GET(\"tv/{tv_id}/\" + \"account_states?\" + ApiConstants.ApiKey)\n Call<Shows> getShowFavorite(@Path(\"tv_id\") int link,@Query(\"session_id\")String session_id);\n\n //--------------------------------------------Watchlist------------------------------------------------------------------------------\n\n @GET(\"account/{account_id}/watchlist/movies?\" + ApiConstants.ApiKey)\n Call<MovieModel> getUserWatchlist(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n @GET(\"movie/{movie_id}/\" + \"account_states?\" + ApiConstants.ApiKey)\n Call<Movie> getWatchlist(@Path(\"movie_id\") int link,@Query(\"session_id\")String session_id);\n\n @POST(\"account/{account_id}/watchlist?\" + ApiConstants.ApiKey)\n Call<Movie> postUserWatchlist(@Path(\"account_id\") String account_id, @Query(\"session_id\") String session_id, @Body WatchlistMoviePost body);\n\n @POST(\"account/{account_id}/watchlist?\" + ApiConstants.ApiKey)\n Call<Shows> postUserShowWatchlist(@Path(\"account_id\") String account_id, @Query(\"session_id\") String session_id, @Body WatchlistMoviePost body);\n\n @GET(\"account/{account_id}/watchlist/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getUserShowsWatchlist(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n //--------------------------------------------Rated------------------------------------------------------------------------------\n\n @POST(\"movie/{movie_id}/rating?\" + ApiConstants.ApiKey)\n Call<Movie> postUserRating(@Path(\"movie_id\") int account_id, @Query(\"session_id\") String session_id,@Body Rated body);\n\n @POST(\"tv/{tv_id}/rating?\" + ApiConstants.ApiKey)\n Call<Shows> postUserShowRating(@Path(\"tv_id\") int account_id, @Query(\"session_id\") String session_id,@Body Rated body);\n\n @GET(\"account/{account_id}/rated/movies?\" + ApiConstants.ApiKey)\n Call<MovieModel> getUserRated(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n\n @GET(\"account/{account_id}/rated/tv?\" + ApiConstants.ApiKey)\n Call<ShowsModel> getUserRatedShows(@Path(\"account_id\") String account_id,@Query(\"session_id\") String session_id);\n}",
"public interface ApiService {\n String interfaceVersion = \"\";//接口版本号\n\n /**\n * post请求\n * 服务端json格式数据请求\n * 处理普通接口网络请求\n *\n * @param interfaceName 接口名称\n * @param maps 请求体参数键值对\n * @return Rx Ovserable\n * @author fjg\n */\n @FormUrlEncoded\n @POST(\"{interface}\")\n Observable<NetResponse> post(\n @Path(value = \"interface\", encoded = true) String interfaceName,\n @FieldMap Map<String, String> maps);\n\n /**\n * get请求\n * 服务端json格式数据请求\n * 处理普通接口网络请求\n *\n * @param interfaceName 接口名称\n * @param maps 请求体参数键值对\n * @return Rx Ovserable\n * @author fjg\n */\n @GET(\"{interface}\")\n Observable<NetResponse> get(\n @Path(value = \"interface\", encoded = true) String interfaceName,\n @QueryMap Map<String, String> maps);\n}",
"interface ApiService {\n\n @GET(\"users/{user}/repos\")\n Call<List<FlickR>> getFlickRItems(@Path(\"user\") String user);\n\n @GET(\"users/{user}\")\n Call<Owner> getFlickRMedia(@Path(\"user\") String user);\n\n }",
"public interface APIService {\n /**\n * 如果不需要转换成Json数据,可以用了ResponseBody;\n * @return call\n */\n @GET(\"apps?api_token={Your API Token}\")\n// Call<AppInfo> getAppInfo();\n Call<ResponseBody> getAppInfo();\n // you can add some other meathod\n}",
"public interface APIService {\n\n\t@POST(Configs.ApiConfig.VIDEO_LINK)\n\tObservable<BaseResponse> getAllVedioBy(@Body boolean once_no);\n}",
"public interface AiravataClientAPIService {\n /**\n * Get all workflows available in the apache airavata server\n * @return workflow list\n * @throws PortalException\n */\n public List<Workflow> getAllWorkflows() throws PortalException;\n\n /**\n * Get workflow by workflow id\n * @param identifier unique id for the workflow\n * @return workflow associate with the given workflow id\n * @throws PortalException\n */\n public Workflow getWorkflow(String identifier) throws PortalException;\n\n /**\n * Execute a available workflow in airavata\n * @param inputs inputs of airavata workflow\n * @param workflowId if of the workflow need to be implemented\n * @return\n * @throws Exception\n */\n public Map<String,Object> executeWorkflow(Map<String,Object> inputs,String workflowId) throws Exception;\n\n /**\n * Query previous data associated with experiments performed in airavata\n * @return experiments data list\n * @throws PortalException\n * @throws AiravataAPIInvocationException\n */\n public List<ExperimentData> getExperimentData() throws PortalException, AiravataAPIInvocationException;\n\n /**\n * Get the data of nodes in a experiment performed in the airavata\n * @param experimentData\n * @return node execution data list will be returned\n * @throws ExperimentLazyLoadedException\n * @throws PortalException\n * @throws AiravataAPIInvocationException\n */\n public List<NodeExecutionData> getNodeData(ExperimentData experimentData) throws ExperimentLazyLoadedException, PortalException, AiravataAPIInvocationException;\n\n /**\n * Get workflow experiment data\n * @return\n * @throws PortalException\n * @throws AiravataAPIInvocationException\n * @throws ExperimentLazyLoadedException\n */\n public List<NodeExecutionData> getWorkflowExperimentData(String experimentId) throws PortalException, AiravataAPIInvocationException, ExperimentLazyLoadedException;\n\n public String executeExperiment(Object[] inputs, String workflowId) throws Exception;\n\n public List<MonitorMessage> getEvents();\n\n public void monitorWorkflow(String experimentId) throws PortalException, IOException, AiravataAPIInvocationException, URISyntaxException;\n}",
"public interface BaseApiService {\n // Empty declaration\n}",
"public interface IInventoryService {\n\n /**\n * <h2>Get coupon inventory info</h2>\n * @param userId User id\n * @return {@link Response}\n * @throws Exception\n */\n Response getInventoryInfo(Long userId) throws Exception;\n}",
"public interface ApiService {\n @GET(\"AppServices/AppWebService.asmx/Catagory\")\n Call<Example> getAllCategory();\n\n @FormUrlEncoded\n @POST(\"AppServices/AppWebService.asmx/PhotoGallary\")\n Call<Example> getAllPhoto(@Field(\"CatagoryId\") String image_id);\n\n\n @GET(\"AppServices/AppWebService.asmx/Notice\")\n Call<Example> GetNotice();\n\n\n @GET(\"AppServices/AppWebService.asmx/GetStandard\")\n Call<Example> GetStandard();\n\n @GET(\"AppServices/AppWebService.asmx/GetSection\")\n Call<Example> GetSection();\n\n @GET(\"AppServices/AppWebService.asmx/News\")\n Call<Example> GetNews();\n\n @GET(\"AppServices/AppWebService.asmx/Assignment\")\n Call<Example> GetAssignment();\n\n @GET(\"AppServices/AppWebService.asmx/Event\")\n Call<Example> GetEvent();\n\n @GET(\"AppServices/AppWebService.asmx/Slider\")\n Call<Example> GetSlider();\n\n @GET(\"AppServices/AppWebService.asmx/Staff\")\n Call<Example> GetStaff();\n\n\n @GET(\"AppServices/AppWebService.asmx/Calander\")\n Call<Example> GetCalander();\n\n @GET(\"AppServices/AppWebService.asmx/Video\")\n Call<Example> GetVideo();\n\n @GET(\"AppServices/AppWebService.asmx/ToDayEvent\")\n Call<Example> GetTodayEvent();\n\n\n @GET(\"AppServices/AppWebService.asmx/ToDayNews\")\n Call<Example> Getodaynews();\n\n @GET(\"AppServices/AppWebService.asmx/RankerStudent\")\n Call<Example> GetSchoolRanker();\n\n\n @GET(\"AppServices/AppWebService.asmx/Medium\")\n Call<Example> GetMedium();\n\n @FormUrlEncoded\n @POST(\"AppServices/AppWebService.asmx/Standard_Div\")\n Call<Example> GetStandard(@Field(\"MediumId\") String stdid);\n\n @FormUrlEncoded\n @POST(\"AppServices/AppWebService.asmx/HomeWork\")\n Call<Example> GetHWork(@Field(\"StdId\") String Stdname);\n\n\n @GET(\"AppServices/AppWebService.asmx/Calander\")\n Call<Example> getcalnder();\n\n @FormUrlEncoded\n @POST(\"AppServices/AppWebService.asmx/TimeTable\")\n Call<Example> GetTimeTable(@Field(\"StdId\")String stdid);\n}",
"public interface IHouseVideoRealtimeService {\r\n /**\r\n * 直播列表\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveList(String params) throws Exception;\r\n\r\n /**\r\n * 直播添加\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveCreate(String params) throws Exception;\r\n\r\n /**\r\n * 直播详情\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveDetail(String params)throws Exception;\r\n\r\n /**\r\n * 直播修改\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveUpdate(String params) throws Exception;\r\n\r\n /**\r\n * 直播删除\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveDelete(String params) throws Exception;\r\n}",
"public interface ApiAction {}",
"public interface OfficialWebsiteHistoryService extends Service<OfficialWebsiteHistory> {\n\n}",
"API createAPI();",
"public interface TestApi {\n}",
"public interface ApiInterface {\n\n @GET(\"{poblacion}.xml\")\n Call<Escrutinio_sitio> getPoblacionData(@Path(\"poblacion\") String poblacion);\n\n }",
"public interface IPokeapiService {\n\n\n\n// @GET(\"lp_iem/result.json\")\n// Call<PokemonWs> listPokemon();\n\n @GET(\"?action=cardlist&\")\n Call<List<Pokemon>> listPokemon(@Query(\"user\")int user);\n //@Query(\"user\")int user\n\n @GET(\"?action=details&\")\n Call<Pokemon> getPokemon(@Query(\"card\")int id_card);\n\n @GET(\"?action=pokedex\")\n Call<List<Pokemon>> getPokedex();\n\n}",
"public interface apiService {\n\n\n\n String base_url= \"http://192.168.43.154:8081/\";\n\n @GET(\"getprofile\")\n Call<Employee> getProfilehero(@Query(\"racf\") String id,@Query(\"password\") String pass);\n\n @GET(\"getpeopleonleave\")\n Call<Datesss> getdetailsondate(@Query(\"date\") String d);\n\n @GET(\"authentication\")\n Call<Auth> getAuth(@Query(\"racf\") String d,@Query(\"password\") String dd);\n\n @GET(\"getleavedates\")\n Call<leaves> getleavedates(@Query(\"racf\") String d);\n\n @GET(\"getwfhdates\")\n Call<WorkFromHome> getwfhdates(@Query(\"racf\") String dd);\n\n @GET(\"updateno\")\n Call<Auth> updating(@Query(\"racf\") String d,@Query(\"contacts\") String dd,@Query(\"contactnames\") String ddd);\n\n @GET(\"updateworkfromhome\")\n Call<Auth> updatingwfh(@Query(\"racf\") String d,@Query(\"dates\") String dd,@Query(\"reasons\") String ddd);\n\n @GET(\"updateonleave\")\n Call<Auth> updatingleave(@Query(\"racf\") String d,@Query(\"date\") String dd,@Query(\"reason\") String ddd);\n\n\n}",
"public interface ApiMovieService {\n\n @GET(\"{filter}\")\n Call<MoviesResponse> getListMovies(@Path(\"filter\") String filter,\n @Query(\"page\") int page,\n @Query(\"api_key\") String apiKey);\n\n @GET(\"{id}\")\n Call<MovieResponse> getMovieDetail(@Path(\"id\") long id, @Query(\"api_key\") String apiKey);\n}",
"public interface IBrandService extends GenericServiceAPI<Brand, Long> {\n \n}",
"public interface TuduListsWebService {\r\n\r\n /**\r\n * Find all the todo lists for the current user.\r\n */\r\n WsTodoList[] getAllTodoLists();\r\n \r\n /**\r\n * Find all todos from a todo list.\r\n */\r\n WsTodo[] getTodosByTodoList(String listId);\r\n \r\n}",
"public interface IApiService {\n\n @GET(\"/its/master_halte/{id}\")\n public Data<Station> getSynchListStation(@Path(\"id\") String id);\n\n @GET(\"/its/eta/{koridor}/{id}\")\n public Data<Incoming> getSynchListIncoming(@Path(\"koridor\") String koridor,@Path(\"id\") String id);\n}",
"public interface ApiInterface {\n\n @GET(\"Articles/\")\n Call<List<Article>> getAllArticles();\n\n\n}",
"public interface ApiService {\n @GET(\"api/timelines/users/918753190470619136\")\n Call<HeadPOJO> pojoGetter();\n}",
"public interface TvApi {\n\n /*\n 获取电视节目表\n */\n @POST(\"getProgram\")\n Call<TvShowData> getProgram(@Query(\"code\") String code, @Query(\"date\") String date, @Query(\"key\") String key);\n\n /*\n 获取频道类型列表\n */\n @POST(\"getCategory\")\n Call<TvTypeData> getCategory(@Query(\"key\") String key);\n\n /*\n\n */\n @POST(\"getChannel\")\n Call<TvChannelData> getChannel(@Query(\"pId\") String pId, @Query(\"key\") String key);\n}",
"public interface MovieApiService {\n\n @GET(\"movie/upcoming\")\n Call<JsonRequestDiscoverMovieResult> getDiscoverMovieFeed(\n @Query(\"api_key\") String apiKey\n );\n\n// @GET(\"movie/{id}/videos\")\n// Call<JsonRequestMovieVideoResult> getMovieVideoFeed(\n// @Path(\"id\") String movieId,\n// @Query(\"api_key\") String apiKey\n// );\n}",
"public interface ConfigurationServiceV1 {\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getBSConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSConfigResponse getBSConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSConfigRequest getBSConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setServiceLocationRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationResponse setServiceLocation\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationRequest setServiceLocationRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getOPSConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSConfigResponse getOPSConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSConfigRequest getOPSConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getClientConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetClientConfigResponse getClientConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetClientConfigRequest getClientConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getQSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsResponse getQSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsRequest getQSLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setClientToBSRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetClientToBSResponse setClientToBS\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetClientToBSRequest setClientToBSRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getESLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationsResponse getESLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationRequest getESLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setBSToOPSRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSResponse setBSToOPS\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSRequest setBSToOPSRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getBSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsResponse getBSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsRequest getBSLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getOPSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsResponse getOPSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsRequest getOPSLocationsRequest\n )\n ;\n \n }",
"public interface ApiInterface {\n // TODO (6) buat class ApiInterface\n //class ini berfungsi untuk mendefinisikan interface untuk retrofit\n\n @GET(\"movie/top_rated\")\n Call<MovieResponse>getTopRatedMovies(@Query(\"api_key\") String apiKey);\n\n @GET(\"move/{id}\")\n Call<MovieResponse> getMovieDetails(@Path(\"id\")int id,@Query(\"api_key\")String apiKey);\n}",
"public interface MetaInformationService extends BasicEcomService{\n\n public String listMetaInformationTypesForPage(String page);\n public Integer getTotalPagesForMetaInformationTypes();\n public Integer getTotalPagesForSearchedMetaInformationTypes(String metaType);\n public String listSearchedMetaInformationTypesForPage(String metaType,String page);\n\n\n}",
"public interface StrockIndexApiService {\r\n// @Headers(GlobalContants.HeadsSet)\r\n// @GET(\"?key=a23cd4983655b336fbd1f440acfb1152\")\r\n// Call<StrockIndexBean> getStrockIndex(\r\n// @Query(\"type\") int type\r\n// );\r\n}",
"public interface AcUspsInternationalMarketAwardServiceIF\n extends AcModelServiceIF\n{\n AcUspsInternationalMarketAward getUspsInternationalMarketAward(Integer id);\n AcUspsInternationalMarketAward getUspsInternationalMarketAward(AcUspsInternationalMarketAwardPkIF pk);\n boolean uspsInternationalMarketAwardExists(Integer id);\n boolean uspsInternationalMarketAwardExists(AcUspsInternationalMarketAwardPkIF pk);\n AcUspsInternationalMarketAward getUspsInternationalMarketAwardByWebKey(String webKey);\n JwList<AcUspsInternationalMarketAward> getAll();\n JwList<AcUspsInternationalMarketAward> getAllAvailable();\n JwList<AcUspsInternationalMarketAward> getAllWhere(String whereClause, Integer rowLimit);\n JwList<AcUspsInternationalMarketAward> getAllByContractedOriginDestination(String contractedCarrierCode, String originAirportCode, String destinationAirportCode);\n Integer insert(AcUspsInternationalMarketAward uspsInternationalMarketAward);\n void update(AcUspsInternationalMarketAward uspsInternationalMarketAward);\n void delete(Integer id);\n JwList<AcUspsInternationalMarketAwardVo> getAllVos();\n AcUspsInternationalMarketAwardVo getVo(int uspsInternationalMarketAwardId);\n void insertAll(JwList<AcUspsInternationalMarketAwardVo> v);\n void deleteAll();\n}",
"public interface ApiInterface {\n\n\n @GET(\"api/jsonBlob/9e44dca2-ad19-11e7-894a-5dc7a0a132b5\")\n Call<List<News>> getNewsAPIList();\n\n @PUT(\"api/jsonBlob/9e44dca2-ad19-11e7-894a-5dc7a0a132b5\")\n Call<List<News>> createNewsAPIBlob();\n\n @DELETE(\"/api/jsonBlob/9e44dca2-ad19-11e7-894a-5dc7a0a132b5\")\n Call deletePost();\n\n}",
"public interface ApiInterface {\n @GET(\"/index.php/api/\")\n Call<Category> getInfo();\n\n @GET(\"/index.php/api/brand\")\n Call<Brand> getBrand();\n\n @GET(\"/index.php/api/featured_products\")\n Call<FeatureProduct> getFeature();\n\n @POST(\"/index.php/api/product_view\")\n Call<CategoryResponse> CategoryIdPost(@Body CatId catId);\n}",
"public interface ISystemUpdateHistoryService extends IBaseService<SystemUpdateHistory> {\n\n}",
"public interface ApiInterface {\n @GET(\"articles?source=hacker-news&sortBy=top\")\n Call<ResponseModel> getTopArticles(@Query(\"apiKey\") String ApiKey);\n @GET(\"articles?source=hacker-news&sortBy=lates\")\n Call<ResponseModel> getLatestArticles(@Query(\"apiKey\") String ApiKey);\n\n}",
"public interface BaseService<Kiruvchi, Chiquvchi, ID> {\n\n //Create Entity\n ApiResponse addEntity(Kiruvchi kiruvchi);\n\n //Get Page<Entity>\n Page<Chiquvchi> getEntiyPageBySort(Optional<Integer> page, Optional<Integer> size, Optional<String> sortBy);\n\n //Get by id Optional<Entity> Sababi Http Status kodini tog'ri jo'natish uchun\n Optional<Chiquvchi> getEntityById(ID id);\n\n //Update Entity by id\n ApiResponse editState(ID id, Kiruvchi kiruvchi);\n\n //Delete Entity by id\n ApiResponse deleteEntityById(Integer id);\n}",
"protected abstract IRawService<T> getApi();",
"public interface IDemoService {\n /**\n * 查询测试申请列表\n *\n * @return\n */\n Map<String, Object> getTestPage(JSONObject jsonObject);\n\n /**\n * 新建测试申请\n *\n * @param jsonObject\n * @return\n */\n int addApply(JSONObject jsonObject);\n\n /**\n * 根据iD获取详细信息\n *\n * @param json\n * @return\n */\n Map<String, Object> getTestItemInfo(JSONObject json);\n\n /**\n * 修改\n */\n\n int updateTestItemInfo(JSONObject json);\n\n /**\n * 审核\n */\n\n int checkTestItemInfo(JSONObject json);\n\n /**\n * 补充\n */\n int addSupply(JSONObject json);\n\n /**\n * 延期\n */\n int addDelay(JSONObject json);\n\n /**\n * 获取补充信息列表\n */\n List<Map<String, Object>> getSupply(JSONObject json);\n /**\n * 获取延期信息列表\n */\n List<Map<String, Object>> getDelay(JSONObject json);\n\n /**\n * 测试完成\n */\n int testComplete(JSONObject json);\n\n /**\n * 导出\n */\n List<Map<String, Object>> export(JSONObject json);\n}",
"private ApiInfo getApiInfo() {\n\t\treturn new ApiInfoBuilder().title(\"Online Salon Appointment API\").version(\"1.0\")\n\t\t\t\t.description(\"API for online salon appointment.\").contact(new Contact(\"TEAM 1\",\n\t\t\t\t\t\t\"http://localhost:8100/OnlineSalonAppointment/swagger-ui/\", \"salonservice.office@gmail.com\"))\n\t\t\t\t.license(\"Apache License Version 2.0\").build();\n\t}",
"@Api(value = \"课程分类管理\",description = \"课程分类管理\",tags = {\"课程分类管理\"})\npublic interface CategoryControllerApi {\n @ApiOperation(\"查询分类\")\n public CategoryNode findList(String id);\n}",
"public interface EndpointsApi {\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getRecentMedia(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_PROFILE_USER_WITH_ID)\n Call<MascotasResponse> getProfile(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_FOLLOWS)\n Call<MascotasResponse> getFollows();\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getFollowsMediaRecent(@Path(\"user-id\") String id);\n}",
"public interface IFoodServiceInfoService extends IBaseService<ZlnfFoodServiceInfo, ZlnfFoodServiceInfoExample, Integer>{\n\n}",
"public interface IOpenWeatherAPI {\n String ENDPOINT = \"http://api.openweathermap.org/\";\n\n String KEY_OPEN_WEATHER_API = \"0d664d5c76a364c4e18b207ac25a0ef4\";\n\n //******** 5 DÍAS/8 HORAS *******\n //@GET(\"/data/2.5/forecast\")\n //Call<RootPredicciones> getPredicciones(@Query(\"lat\") String latitud, @Query(\"lon\") String longitud);//Información meteorológica de 5 días de la latitud y longitud\n\n\n //******** Actual ***********\n @GET(\"data/2.5/weather\")\n Call<Prediccion> getPrediccionActual(@Query(\"lat\") String latitud, @Query(\"lon\") String longitud);//Información meteorológica actual de la latitud y longitud\n}",
"private ApiInfo getApiInfo()\n {\n Contact contact = new Contact(\"Melchior Vrolijk\", \"\",\"vrol0004@gmail.com\");\n\n return new ApiInfo(\n \"Spring boot secure API documentation\",\n \"This is the demo spring boot secure api project documentation\",\n \"1.0\",\"\",contact,\n \"\",\"\",Collections.emptyList());\n }",
"public interface ApiInterface {\n String HOST = \"http://fanyi.youdao.com/\";\n String IMG_HOST = \"http://www.bing.com/\";\n\n @GET(\"openapi.do\")\n Observable<Translation> getTranslation(@Query(\"keyfrom\") String keyfrom,\n @Query(\"key\") String key,\n @Query(\"type\") String type,\n @Query(\"doctype\") String doctype,\n @Query(\"version\") String version,\n @Query(\"q\") String q);\n\n @GET(\"HPImageArchive.aspx\")\n Observable<BackImg> getBackgroundImg(@Query(\"format\") String format,\n @Query(\"idx\") int idx,\n @Query(\"n\") int n);\n\n\n\n}",
"public interface CommunityPostItemService extends Service<CommunityPostItem> {\n\n}",
"public interface ApiService {\r\n\r\n /* Patient*/\r\n @POST(\"patient/login/{username}/{password}\")\r\n Call<Patient> login(@Path(\"username\") String username, @Path(\"password\") String password);\r\n\r\n @POST(\"patient/register\")\r\n Call<Integer> register(@Body Patient patient);\r\n\r\n @POST(\"patient/updateProfile\")\r\n Call<Patient> updateProfile(@Body Patient patient);\r\n\r\n @GET(\"patient/findProfile/{id}\")\r\n Call<Patient> findPatient(@Path(\"id\") String id);\r\n\r\n @Multipart\r\n @POST(\"patient/uploadImage/{patId}\")\r\n Call<Patient> uploadImage(@Part MultipartBody.Part image, @Path(\"patId\") String patId);\r\n\r\n @POST(\"patient/changePassword/{patId}/{oldPass}/{newPass}\")\r\n Call<Boolean> changePassword(@Path(\"patId\") String patId , @Path(\"oldPass\") String oldPass ,@Path(\"newPass\") String newPass);\r\n\r\n @POST(\"patient/forgetPass/send/{email}\")\r\n Call<String> sendEmail(@Path(\"email\") String email );\r\n\r\n /* Record*/\r\n @POST(\"record/create\")\r\n Call<Boolean> createRecord(@Body Record record);\r\n\r\n @GET(\"record/find/{recDate}/{recRound}/{patId}\")\r\n Call<String> findRecId(@Path(\"recDate\") String recDate, @Path(\"recRound\") int round, @Path(\"patId\") String patId);\r\n\r\n @GET(\"record/find/diaTime/{id}\")\r\n Call<List<Record>> findDateAndRound(@Path(\"id\") String id);\r\n\r\n @GET(\"record/find/date/{id}/{month}\")\r\n Call<List<Record>> findRecordByByte(@Path(\"id\") String id, @Path(\"month\") int month);\r\n\r\n @GET(\"record/delete/{id}\")\r\n Call<Record> deleteRecord(@Path(\"id\") String id);\r\n\r\n /* Dialysis*/\r\n @POST(\"dialysis/createDiaIn\")\r\n Call<Void> createDialysis(@Body Dialysis dialysis);\r\n\r\n @GET(\"dialysis/find/dia/{recId}\")\r\n Call<Dialysis> findDialysis(@Path(\"recId\") String recId);\r\n\r\n @POST(\"dialysis/updateDiaInEnd/{record_recId_fk}\")\r\n Call<Void> updateDiaInEnd(@Body Dialysis dialysis, @Path(\"record_recId_fk\") String recId);\r\n\r\n @POST(\"dialysis/updateDiaOutSta/{record_recId_fk}\")\r\n Call<Void> updateDiaOutSta(@Body Dialysis dialysis, @Path(\"record_recId_fk\") String recId);\r\n\r\n @POST(\"dialysis/updateDiaOutEnd/{record_recId_fk}\")\r\n Call<Void> updateDiaOutEnd(@Body Dialysis dialysis ,@Path(\"record_recId_fk\") String recId);\r\n\r\n @GET(\"dialysis/findAll/{recDate}/{patId}\")\r\n Call <List<Dialysis>> findAll(@Path(\"recDate\") String recDate , @Path (\"patId\") String patId);\r\n\r\n @GET(\"dialysis/find/{id}\")\r\n Call<Dialysis> find(@Path(\"id\") String id);\r\n\r\n @GET(\"dialysis/delete/{id}\")\r\n Call<Dialysis> deleteDialysis(@Path(\"id\") String id);\r\n\r\n\r\n @POST(\"patient/uploadImage\")\r\n Call<Patient> uploadImage(@Part MultipartBody.Part image, @Body Patient patient);\r\n\r\n @GET(\"appointment/find/{patId}\")\r\n Call<List<Appointment>> findAppointment(@Path(\"patId\") String id);\r\n\r\n\r\n @GET (\"food/find/{typeId}\")\r\n Call<List<Food>> findFoodByTypeId(@Path(\"typeId\") String typeId);\r\n\r\n @GET(\"doctor/find/hospName\")\r\n Call<List<String>> findHospName();\r\n\r\n @POST (\"record/food/{foodId}/{unit}/{patId}\")\r\n Call<RecordFood> save(@Path(\"foodId\") String foodId, @Path(\"unit\") int unit,@Path(\"patId\") String patId);\r\n\r\n @POST (\"record/food/{foodId}/{recFoodId}/{unit}/{total}\")\r\n Call<RecordFood> updateRecordFood(@Path(\"foodId\") String foodId,@Path(\"recFoodId\") String recFoodId,@Path(\"unit\") int unit,@Path(\"total\") String total);\r\n\r\n @POST (\"food/find/food\")\r\n Call<List<Food>> findFoodByFoodId(@Body List<recAllFood> recAllFood);\r\n\r\n @GET (\"find/recAllFood/{patId}\")\r\n Call<List<recAllFood>> findFoodByPatId(@Path (\"patId\") String patId);\r\n\r\n @GET (\"record/food/find/{patId}\")\r\n Call<RecordFood> findTotal(@Path (\"patId\") String patId);\r\n\r\n @POST (\"recordFood/delete\")\r\n Call<Void> deleteFood(@Body recAllFood recAllFood);\r\n\r\n @GET (\"blood/input/{potass}/{phos}/{alb}/{patId}\")\r\n Call <BloodSample> inputBloodSample (@Path(\"potass\") float potass, @Path(\"phos\") float phos,\r\n @Path(\"alb\") float alb, @Path(\"patId\") String patId);\r\n\r\n @GET (\"blood/input/fix/{gPotass}/{gPhos}/{gAlb}/{patId}\")\r\n Call <BloodSample> fixBloodSample (@Path(\"gPotass\") String gPotass, @Path(\"gPhos\") String gPhos,\r\n @Path(\"gAlb\") String gAlb, @Path(\"patId\") String patId);\r\n\r\n @GET (\"blood/input/fix/{patId}\")\r\n Call <BloodSample> findBloodSample (@Path(\"patId\") String patId);\r\n\r\n /* Noti*/\r\n @GET(\"noti/find/{patId}\")\r\n Call<List<DialysisAlarm>> findNotiList(@Path(\"patId\") String patId);\r\n\r\n @POST(\"noti/save\")\r\n Call<DialysisAlarm> saveNoti(@Body DialysisAlarm alarm);\r\n\r\n @POST(\"patient/noti/graph/one/{patId}\")\r\n Call<Void> setNotiGraphOne(@Path(\"patId\") String patId);\r\n\r\n @POST(\"patient/noti/graph/zero/{patId}\")\r\n Call<Void> setNotiGraphZero(@Path(\"patId\") String patId);\r\n\r\n @GET(\"appointment/find/orderBy/{patId}\")\r\n Call<List<Appointment>> findAppointmentSort(@Path(\"patId\") String id);\r\n\r\n @GET(\"doctor/find/one/{doctorId}\")\r\n Call<Doctor> findHospname(@Path(\"doctorId\") String doctorId);\r\n\r\n @GET(\"patient/find/list/hosp\")\r\n Call<List<String>> findHospital();\r\n\r\n @POST(\"doctor/find/list\")\r\n Call<List<Doctor>> findByDocHospName(@Body Patient patient);\r\n}",
"public interface ApiInterface {\n @GET(\"/contacts\")\n Call<Details> getAllContacts();\n}",
"public interface LooksoftMainApi {\n @GET(\"main\")\n Call<Data> loadData();\n}",
"public interface AppAPI {\n\n @GET(\"weather\")\n Call<WeatherInfo> getCurrentWeather(@Query(\"id\") long cityId,\n @Query(\"units\") String units,\n @Query(\"appid\") String appId);\n\n @GET(\"forecast\")\n Call<Forecast> getForecast3hrs(@Query(\"id\") long cityId,\n @Query(\"units\") String units,\n @Query(\"appid\") String appId);\n\n @GET(\"find\")\n Call<CityResult> findCity(@Query(\"q\") String cityName,\n @Query(\"type\") String type,\n @Query(\"sort\") String sort,\n @Query(\"cnt\") int cnt,\n @Query(\"appid\") String appId);\n}",
"@DebugLog\npublic interface ApiService {\n final static String APPSETTINGS = \"/application_settings.json\";\n final static String MOVIES = \"/in_theaters.json\";\n\n // APPLICATION SETTINGS\n @Headers(\"Cache-Control: no-cache\")\n @GET(APPSETTINGS)\n void getApplicationSettings(Callback<ApplicationSettings> cb);\n\n // IN THEATERS\n @GET(MOVIES)\n void getMovies(@Query(\"apikey\") String key, @Query(\"page\") int page, @Query(\"page_limit\") int page_limit, Callback<Movies> cb);\n}",
"public interface API {\n\n //Penyakit\n @GET(\"penyakitall/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @GET(\"penyakit/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseListByLokasi(@Path(\"page\") String page, @Path(\"count_page\") String count_page, @Query(\"id_desa\") String id_desa);\n\n @POST(\"penyakit\")\n Call<DiseasePostResponse>\n postDisease(@Body DiseaseBody diseaseBody);\n @DELETE(\"penyakit\")\n Call<DeletePenyakitResponse> deletePenyakit(@Query(\"Id_penyakit\") String id_penyakit);\n\n @PUT(\"penyakit\")\n Call<PutPenyakitResponse> editPenyakit(@Query(\"Id_penyakit\") String id_penyakit,\n @Body PutPenyakitBody putPenyakitBody);\n\n @GET(\"tipepenyakit/{page}/{count_page}\")\n Call<TipePenyakitResponse>\n getTipePenyakitList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @POST(\"multimedia\")\n Call<MultimediaPostResponse>\n postMultimedia(@Body MultimediaBody multimediaBody);\n}",
"public interface baseApiService {\n\n @POST(\"login\")\n Call<FeedLogin> loginRequest(@Body LoginUser login);\n\n\n @GET(\"profile\")\n Call<FeedUser> getAllProfile(@Header(\"Content-Type\") String contenType,\n @Header(\"Accept\") String Accept,\n @Header(\"Authorization\") String authToken);\n\n @POST(\"register\")\n Call<DataRegister> registerReques(@Body registerUser registerUser);\n\n\n}",
"public interface WikiAPIService {\n\n // Set a constant of links limits.\n int titleLimits = 200;\n\n /**\n * GET HTTP function to return Wiki extracts from url. Query parameter for the title of\n * the article is added to the function via the @Query annotation. The rest of query\n * parameters are hard-coded since they are always needed.\n *\n * The query parameter 'titles' are added in a {Title1}|{Title2}|...etc. format.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve extracts and thumbnail image associated with article\n \"&prop=extracts|pageimages\" +\n \"&redirects\" +\n // Return extract in plain text (Boolean)\n \"&explaintext=1\" +\n // Return only the intro section (Boolean)\n \"&exintro=1\" +\n // Return the page ids as a list\n \"&indexpageids\" +\n // The max width of the thumbnail.\n \"&pithumbsize=1080\" +\n // Return in a JSON format.\n \"&format=json\" +\n // Return new json format with proper page array.\n \"&formatversion=2\")\n Call<WikiExtractsJSONResponse> requestExtracts(@Query(\"titles\") String titles);\n\n /**\n * GET HTTP function to return a number of featured Wikipedia link titles. These\n * link titles will be chosen at random to then be inserted into the requestExtracts()\n * function that will bring the extracts of these titles.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve title links\n \"&prop=links\" +\n // Retrieve links in the main page\n \"&titles=メインページ\" +\n // Only return articles (Not users or meta pages)\n \"&plnamespace=0\" +\n // Return a limit number defined in companion object\n \"&pllimit=\" + titleLimits +\n // Return in json format\n \"&format=json\" +\n // Return new json format\n \"&formatversion=2\")\n Call<WikiTitlesJSONResponse> requestDailyTitles();\n}",
"interface APIInterface {\n\n @POST(\"/EmployeeApi/v1/Api.php?apicall=createemployee\")\n Call<JsonObject> createEmployee(@QueryMap Map<String, String> options);\n\n @POST(\"/EmployeeApi/v1/Api.php?apicall=updateemployee\")\n Call<JsonObject> updateEmployee(@QueryMap Map<String, String> options);\n\n @GET(\"/EmployeeApi/v1/Api.php?apicall=getemployee\")\n Call<JsonObject> getEmployee();\n\n @GET(\"/EmployeeApi/v1/Api.php?apicall=searhemployee\")\n Call<JsonObject> searchEmployee();\n\n @GET(\"/EmployeeApi/v1/Api.php?apicall=deleteemployee\")\n Call<JsonObject> deleteEmployee(@Field(\"prefix\") String prefix) ;\n\n}",
"public interface IDemoService {\n\n ServerResponse<Page> listDemo(DemoVO demoVO);\n\n}",
"public interface ApiInterface {\n @GET(\"movie/top_rated\")\n Call<MoviesResponse> getTopRatedMovies(@Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}\")\n Call<MoviesResponse> getMovieDetails(@Path(\"id\") int id, @Query(\"api_key\") String apiKey);\n\n}",
"public interface ApiService {\r\n\r\n /**\r\n * 保存标题.\r\n */\r\n @Headers(RequestApi.HEADERS_JSON)\r\n @POST(RequestApi.EDITOR_SAVE_ARTICLE_TITLE)\r\n Observable<SaveTitleResultModel> saveArticleTitle(@Body SaveArticleTitleBody saveArticleTitleBody);\r\n\r\n /**\r\n * 保存内容.\r\n */\r\n @Headers(RequestApi.HEADERS_JSON)\r\n @POST(RequestApi.EDITOR_SAVE_ARTICLE_CONTENT)\r\n Observable<List<ContentModel>> saveArticleContent(@Body List<ContentModel> content);\r\n\r\n /**\r\n * 保存内容.\r\n */\r\n @Headers(RequestApi.HEADERS_JSON)\r\n @POST(RequestApi.EDITOR_SAVE_ARTICLE_CONTENT)\r\n Observable<CodeResultModel> saveArticleContent(@Body SaveArticleContentBody articleContentBody);\r\n\r\n /**\r\n * 修改文章信息.\r\n */\r\n @POST(RequestApi.EDITOR_UPDATE)\r\n Observable<CodeResultModel> update(@Body RequestBody requestBody);\r\n\r\n /**\r\n * 查询文章列表.\r\n */\r\n @GET(RequestApi.EDITOR_SEARCH_HOME)\r\n Observable<ArticleModel> queryArticle(@QueryMap Map<String, String> map);\r\n\r\n /**\r\n * 根据文章Id查询文章.\r\n */\r\n @POST(RequestApi.EDITOR_SEARCH_ARTICLE)\r\n Observable<ArticleResultModel> queryArticleById(@Body RequestBody requestBody);\r\n}",
"private ApiInfo apiInfo()\r\n\t {\r\n\t ApiInfo apiInfo = new ApiInfo(\r\n\t \"My Project's REST API\",\r\n\t \"This is a description of your API.\",\r\n\t \"version-1\",\r\n\t \"API TOS\",\r\n\t \"inferno@mckesson.com\",\r\n\t \"API License\",\r\n\t \"API License URL\"\r\n\t );\r\n\t return apiInfo;\r\n\t }",
"public interface WpApiService<T> {\n T[] getAll();\n T[] getAll(Map<String, String> params);\n T get(int id);\n T get(int id, Map<String, String> params);\n void create(T obj);\n void update(T obj);\n void delete(int id);\n Class<T> getType();\n}",
"public interface ApiService {\n\n\n public static final String BASE_URL = \"http://112.124.22.238:8081/course_api/cniaoplay/\";\n\n// @GET(\"featured\")\n// public Call<PageBean<AppInfo>> getApps(@Query(\"p\") String jsonParam);\n\n @GET(\"featured\")\n public Observable<BaseBean<PageBean<AppInfo>>> getApps(@Query(\"p\") String jsonParam);\n\n}",
"public interface Api {\n\n // we have a BASE_URL. It contains the ROOT URL of our API.\n String BASE_URL = \"https://simplifiedcoding.net/demos/\";\n\n //we have an annotation @GET(“marvel”). It means that we are defining an http GET request.\n // And the String passed inside the get is the api name.\n @GET(\"marvel\")\n\n //we have a method named getHeroes() whose return type is Call.\n // And the type of the Call is a List<>. And type of the List is Hero.\n Call<List<Hero>> getHeroes();\n}",
"public interface SwaggerDescriptions {\n\n String VIN = \"Identifies a vehicle. This is a required parameter unless year, make, and model are provided as input values.\";\n String COUNTRY = \"Identifies a country. This country could be different than the country in which the vehicle was manufactured.\";\n String USED = \"Identifies whether the vehicle is used. If set to true, you can specify install options for the vehicle using other input values.\";\n String VEHICLE_YEAR = \"Identifies the year in which the vehicle was manufactured. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MAKE = \"Identifies the vehicle make. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MODEL = \"Identifies the vehicle model. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_TRIM = \"Identifies the vehicle trim. If you submit a VIN that returns multiple style ids, you can specify a trim to focus the response on one style id.\";\n String VEHICLE_BODY_STYLE = \"Identifies the vehicle body style to install on the vehicle.\";\n String VEHICLE_ENGINE = \"Identifies the vehicle engine code to install on the vehicle.\";\n String VEHICLE_TRANS = \"Identifies the vehicle transmission to install on the vehicle.\";\n String VEHICLE_EXT_COLOR = \"Identifies the vehicle's exterior color to install on the vehicle.\";\n String VEHICLE_INT_COLOR = \"Identifies the vehicle's interior color to install on the vehicle.\";\n String LIST_OPTIONS = \"Identifies a list of vehicle options to install on the vehicle.\";\n String LIST_UNSTRUCTURED = \"Identifies unstructured text that is mapped to the vehicle features you want installed on the vehicle.\";\n\n String INCLUDE_DEBUG_INFO = \"Include debug information in the response object\";\n String INCLUDE_SUPPORT_INFO = \"Include support information in the response object\";\n\n String LANGUAGE = \"Language\";\n\n String GET_WS_VERSION = \"Get the version of the web service\";\n String GET_WS_HEALTH = \"Check the health of the services\";\n String GET_WS_CONNECTION = \"Get the status of micro service connections\";\n\n String WS_RESPONSE_ID = \"Displays a unique identifier of the web service response.\";\n String WS_DATE_TIME = \"Displays the date and time on the server when the request was made.\";\n\n String WS_MESSAGE = \"Displays messages from the server.\";\n String WS_ERROR = \"Identifies whether an error occurred with the request.\";\n String EXECUTION_TIME = \"Displays the execution time of the request in milliseconds.\";\n String WS_DEBUG_INFO = \"Displays debug information.\";\n String WS_SUPPORT_INFO = \"Displays support information.\";\n String WS_RESULT = \"Displays the web service results.\";\n String WS_EXECUTION_DETAILS = \"Displays Akana related billing informations.\";\n String WS_COPYRIGHT = \"Displays the copywrite message.\";\n\n}",
"public interface APIInterface {\n @POST(Constants.POST_ENV_BIDDING)\n Call<String> envBidding(@Body Bidding bidding);\n\n @POST(Constants.POST_UPDATE_OFFER)\n Call<String> updateOffer(@Body Interested interested);\n\n @GET(Constants.GET_INFO_OFFER)\n Call<OfferProduct> getInfoOffer(@Path(\"id_offer\") String id_offer);\n\n @GET(Constants.GET_LIST_OFFER)\n Call<ArrayList<OfferProduct>> getListOffer(@Path(\"product\") String product);\n\n @GET(Constants.GET_LIST_BIDDING)\n Call<ArrayList<Bidding>> getListBidding();\n\n @GET(Constants.GET_LIST_TAG)\n Call<ArrayList<String>> getListTag();\n\n}",
"public interface IServiceApi {\n public static final String VERSION = \"v1/\";\n public static final String BASE = \"/api/\"+VERSION;\n \n}",
"public interface APIClient {\n\n\t// regular expression to parse the action name\n\tPattern actionNamePattern = Pattern.compile(\"violet\\\\.([\\\\w]+)\\\\.([\\\\w]+)\");\n\n\t/**\n\t * The simplest type of call when only one parameter is needed Works only if\n\t * Action type is GET (no side effects)\n\t * \n\t * @param actionName\n\t * @param inMainParamValue\n\t * @return the POJO response\n\t * @throws APIException\n\t */\n\tObject executeMethodCall(String actionName, String inMainParamValue) throws APIException;\n\n\t/**\n\t * A more sophisticated call when multiple structured parameters must be\n\t * passed\n\t * \n\t * @param actionName\n\t * @param inParam\n\t * @return the POJO response\n\t * @throws APIException\n\t */\n\tObject executeMethodCall(ActionType actionType, String actionName, Map<String, Object> inParams) throws APIException;\n\n}",
"public interface UserService {\n /**\n * description: 用户登录\n * version: 1.0\n * date: 2021/1/11 22:38\n * author: LIBEL\n *\n * @param param\n * @return com.adp.FTXSecurity.model.vo.UserVo\n */\n UserVo login(LoginParam param);\n\n /**\n * description: 更新用户信息\n * version: 1.0\n * date: 2021/1/11 22:40\n * author: LIBEL\n *\n * @param param\n * @return void\n */\n void update(UserParam param);\n\n /**\n * description: 新增用户信息\n * version: 1.0\n * date: 2021/1/11 22:40\n * author: LIBEL\n *\n * @param param\n * @return void\n */\n void createUser(UserEntity param);\n}",
"public interface ApiService {\n @GET(\"questcms/floorplan\")\n Call<List<FloorPlan>> listFloorPlan();\n}",
"public interface EmploymentSurveyService extends Service<EmploymentSurvey> {\n\n /**\n * 通过userId获得用户就业意向信息\n * @param stuId\n */\n Result getInfoByUserId(Integer stuId);\n\n}",
"public interface ApiService {\n @POST(\"/AutoComplete/autocomplete/json\")\n void placeAuto(@Query(\"input\") String input, @Query(\"key\") String key, Callback<AutoComplete> callback);\n\n @POST(\"/geocode/json\")\n void getLatLng(@Query(\"address\") String address, @Query(\"key\") String key, Callback<GeocodingMain> callback);\n\n @POST(\"/directions/json\")\n void getroute(@Query(\"origin\") String origin, @Query(\"destination\") String destination, @Query(\"key\") String key, Callback<Directions> callback);\n\n @POST(\"/geocode/json\")\n void reverseGeoCoding(@Query(\"latlng\") String latLng, @Query(\"key\") String key, Callback<RevGeocodingMain> callback);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n}",
"public interface ApiService {\n\n /**\n * 问题列表\n * @param city\n * @return\n */\n @GET(URLs.QUESTIONS)\n Call<Result<ArrayList<Question>>> questions(@Query(\"city\") String city);\n\n /**\n * 用户登录\n * @param mobile\n * @param password\n * @return\n */\n @FormUrlEncoded\n @POST(URLs.LOGIN)\n Call<Result<User>> login(@Field(\"mobile\") String mobile,\n @Field(\"password\") String password);\n\n}",
"public interface TearcherInfoService extends Service<TearcherInfo> {\n\n}",
"public interface Api {\n @GET(\"sites\") //Check urls here https://inthecheesefactory.com/blog/retrofit-2.0/en?fb_comment_id=885081521586565_886605554767495\n Single<List<Site>> sitesGet();\n\n @GET(\"sites/state\")\n Single<List<SiteState>> sitesStateGet(@QueryMap() Map<String, String> query);\n\n @POST(\"sites/state/connection/follow\")\n Single<SiteState> follow(@Body FollowCommand params);\n\n @POST(\"sites/state/connection/unfollow\")\n Completable unfollow(@Body UnfollowCommand params);\n }",
"public interface IVideoApi {\n\n /**\n * 获取视频标题等信息\n * http://toutiao.com/api/article/recent/?source=2&category=类型&as=A105177907376A5&cp=5797C7865AD54E1&count=20\"\n */\n @GET(\"api/article/recent/?source=2&as=A105177907376A5&cp=5797C7865AD54E1&count=30\")\n Observable<ResponseBody> getVideoArticle(\n @Query(\"category\") String category,\n @Query(\"_\") String time);\n\n /**\n * 获取视频信息\n * Api 生成较复杂 详情查看 {@linkplain com.meiji.toutiao.module.video.content.VideoContentPresenter#doLoadVideoData(String)}\n * http://ib.365yg.com/video/urls/v/1/toutiao/mp4/视频ID?r=17位随机数&s=加密结果\n */\n @GET\n Observable<VideoContentBean> getVideoContent(@Url String url);\n\n}",
"public interface GiftSvcApi {\n\n public static final String PASSWORD_PARAMETER = \"password\";\n\n public static final String USERNAME_PARAMETER = \"username\";\n\n public static final String TITLE_PARAMETER = \"title\";\n\n public static final String TOKEN_PATH = \"/oauth/token\";\n\n public static final String DATA_PARAMETER = \"data\";\n\n public static final String ID_PARAMETER = \"id\";\n\n public static final String OBSCENE_PARAMETER = \"obscene\";\n\n // The path where we expect the GiftSvc to live\n public static final String GIFT_SVC_PATH = \"/gift\";\n\n public static final String GIFT_DATA_PATH = GIFT_SVC_PATH + \"/{id}/data\";\n\n public static final String GIFT_OBSCENE_PATH = GIFT_SVC_PATH + \"/{id}/obscene\";\n\n public static final String GIFT_UPDATE_PATH = GIFT_SVC_PATH + \"/update\";\n\n public static final String GIFT_TITLE_SEARCH_PATH = GIFT_SVC_PATH + \"/search/findByTitle\";\n\n public static final String GIFT_OBSCENE_SEARCH_PATH = GIFT_SVC_PATH + \"/search/findByObscene\";\n\n @GET(GIFT_SVC_PATH)\n public Collection<Gift> getGiftList();\n\n @POST(GIFT_SVC_PATH)\n public Gift addGift(@Body Gift gift);\n\n @POST(GIFT_SVC_PATH + \"/{id}\")\n public List<Long> deleteGift(@Path(ID_PARAMETER) long id);\n\n @GET(GIFT_TITLE_SEARCH_PATH)\n public Collection<Gift> findByTitle(@Query(TITLE_PARAMETER) String title);\n\n @Multipart\n @POST(GIFT_DATA_PATH)\n public GiftStatus setGiftData(@Path(ID_PARAMETER) long id, @Part(DATA_PARAMETER) TypedFile giftData);\n\n @GET(GIFT_DATA_PATH)\n Response getData(@Path(ID_PARAMETER) long id);\n\n @POST(GIFT_UPDATE_PATH)\n public Long updateGift(@Body Gift gift);\n\n @POST(GIFT_SVC_PATH + \"/{id}/touch\")\n public Long touchGift(@Path(\"id\") long id);\n\n @POST(GIFT_SVC_PATH + \"/{id}/untouch\")\n public Long untouchGift(@Path(\"id\") long id);\n\n @POST(GIFT_OBSCENE_PATH)\n public Boolean obsceneGift(@Path(\"id\") long id);\n\n public static final String USER_SVC_PATH = \"/user\";\n\n @GET(USER_SVC_PATH)\n public Collection<User> getUserList();\n\n @GET(GIFT_SVC_PATH + \"/{user}\")\n public Collection<Gift> getGiftListForUser(@Path(\"user\") User user);\n\n @POST(USER_SVC_PATH)\n public boolean addUser(@Body User user);\n}",
"public interface ApiService {\n\n @GET(\"classify\")\n Call<GalleryClassResult> getGalleryClassList();\n\n @GET(\"list\")\n Call<GalleryResult> getGalleryList(@Query(\"page\") int page, @Query(\"rows\") int rows, @Query(\"id\") int id);\n\n @GET(\"show\")\n Call<PictureResult> getPictureList(@Query(\"id\") long id);\n\n}",
"public interface Service {\n\n\n @GET(\"/3/search/movie\")\n Call<Lista> getSearch(@Query(\"api_key\") String apiKey, @Query(\"query\") String queryString);\n\n}",
"@Api(value = \"MessageService\", description = \"the MessageService API\")\n@RequestMapping(\"/api/message\")\npublic interface MessageService {\n\n @ApiOperation(value = \"修改消息状态\", notes = \"changeMessageStatus\", response = ChangeMessageStatusResponse.class, tags = {\"MessageService\"})\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"修改消息状态\", response = ChangeMessageStatusResponse.class)})\n @RequestMapping(value = {\"/changestatus\"},\n produces = {\"application/json\"},\n consumes = {\"application/json\"},\n method = RequestMethod.POST)\n ChangeMessageStatusResponse changeMessageStatus(@ApiParam(value = \"request\", required = true) @RequestBody ChangeMessageStatusRequest request);\n\n\n @ApiOperation(value = \"根据消息编号查询消息信息\", notes = \"queryMessageById\", response = QueryMessageByIdResponse.class, tags = {\"MessageService\"})\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"根据消息编号查询消息信息\", response = QueryMessageByIdResponse.class)})\n @RequestMapping(value = {\"/query\"},\n produces = {\"application/json\"},\n consumes = {\"application/json\"},\n method = RequestMethod.POST)\n QueryMessageByIdResponse queryMessageById(@ApiParam(value = \"request\", required = true) @RequestBody QueryMessageByIdRequest request);\n}",
"public interface ResponseService {\n\t\n\t\n\t//CUSTOMER METHODS\n\t\n\tpublic ResponseRepresentation getCustomers();\n\tpublic ResponseRepresentation createCustomer(String firstName, String lastName);\n\tpublic ResponseRepresentation deleteCustomer(String id);\n\tpublic ResponseRepresentation getCustomerById(String id);\n\tpublic ResponseRepresentation updateCity(String id, String city);\n\tpublic ResponseRepresentation updateCustomerAddress(String id, String address);\n\tpublic ResponseRepresentation updateState(String id, String state);\n\tpublic ResponseRepresentation updateZip(String id, String zip);\n\tpublic ResponseRepresentation updatePhoneNumber(String id, String phoneNumber);\n\t\n\t\n\t\n\t//PARTNER METHODS\n\tpublic ResponseRepresentation createPartner(String firstName, String lastName, String company);\n\tpublic ResponseRepresentation getPartnerById(String id);\n\tpublic ResponseRepresentation getPartners();\n\tpublic ResponseRepresentation updatePartnerCity(String id, String city);\n\tpublic ResponseRepresentation updatePartnerAddress(String id, String address);\n\tpublic ResponseRepresentation updatePartnerPhoneNumber(String id, String phoneNumber);\n\tpublic ResponseRepresentation updatePartnerState(String id, String state);\n\t\n\t\n\t\n\t//PRODUCT METHODS\n\tpublic ResponseRepresentation createProduct(String name, String description, String sellerID);\n\tpublic ResponseRepresentation getProductById(String id);\n\tpublic ResponseRepresentation getProductByName(String name);\n\tpublic ResponseRepresentation getProducts();\n\tpublic ResponseRepresentation updateName(String id, String name);\n\tpublic ResponseRepresentation updateDescription(String id, String description);\n\tpublic ResponseRepresentation updateQuantity(String id, String quantity);\n\tpublic ResponseRepresentation updatePrice(String id, String price);\n\t\n\t\n\t//ORDER METHODS\n\tpublic ResponseRepresentation cancelOrder(String id);\n\tpublic ResponseRepresentation createOrder(String customerID);\n\tpublic ResponseRepresentation deliverOrder(String id);\n\tpublic ResponseRepresentation lookupOrder(String id);\n\tpublic ResponseRepresentation processOrder(String id);\n\tpublic ResponseRepresentation shipOrder(String id);\n\tpublic ResponseRepresentation submitOrder(String id);\n\tpublic ResponseRepresentation checkStatus(String id);\n\tpublic ResponseRepresentation addItem(String orderID, String partnerID, String productID, String quantity, String price);\n\tpublic ResponseRepresentation buyItemNow(String productId, String customerID, String partnerID);\n\t\n\n}",
"public interface APIService {\n @GET(GlobalConstant.API_NEWS_TOPHEADLINE_ENDPOINT)\n Observable<NewsResponse> topHeadlineFromSources(@Query(\"sources\") String sourceName, @Query(\"apiKey\") String apiKey);\n\n @GET(GlobalConstant.API_NEWS_TOPHEADLINE_ENDPOINT)\n Observable<NewsResponse> topHeadlineByCategory(@QueryMap Map<String, String> params);\n\n}",
"public interface ApiInterface {\n @GET(\"http://wthrcdn.etouch.cn/weather_mini\") //get temp,temp up,temp down and type\n Call<EtouchWeatherResponse> getWeatherByCity(@Query(\"city\") String city);\n\n// @GET(\"http://wthrcdn.etouch.cn/weather_mini\")\n// Call<EtouchWeatherResponse> getWeatherByCityKey(@Query(\"citykey\") String citykey);\n\n @GET(\"http://api.help.bj.cn/apis/weather/\")//get windspeed and humidity\n Call<HelpWeatherResponse> getWeather(@Query(\"id\") String city);\n\n\n\n}",
"public interface ApiMethod\n{\n\tpublic void func(ApiContext ac) throws JSONException, LibException;\n}",
"public interface RestService {\n\n //\n //\n // AUTH\n //\n //\n @POST(\"auth\")\n Call<AccessToken> logIn(@Body Credentials credentials);\n\n @POST(\"users\")\n Call<Void> signUp(@Body Credentials credentials);\n\n //\n //\n // Fetch Data\n //\n //\n @GET(\"data\")\n Call<CategoriesWrapper> fetchData();\n\n @POST(\"categories\")\n Call<Category> addCategory(@Body AddCategoryWrapper wrapper);\n\n @POST(\"feeds\")\n Call<Void> subscribeFeed(@Body AddFeedWrapper wrapper);\n\n @DELETE(\"feeds/{id_feed}\")\n Call<Void> unsubscribeFeed(@Path(\"id_feed\") Integer channelId);\n\n //\n //\n // Update Read Items. Mark as read.\n //\n //\n @PUT(\"items\")\n Call<Void> updateReadAllItems(@Body ItemStateWrapper wrapper);\n\n @PUT(\"feeds/{id_feed}/items/\")\n Call<Void> updateReadItemsByChannelId(@Path(\"id_feed\") Integer channelId,\n @Body ItemStateWrapper wrapper);\n\n @PUT(\"items/{id_item}\")\n Call<Void> updateStateItem(@Path(\"id_item\") Integer itemId,\n @Body ItemStateWrapper wrapper);\n}",
"public interface ApiService {\n\n @GET(\"/tools/mockapi/2793/kdd_config\")\n Call<JsonObject> getConfig();\n}",
"public interface NhanVienService {\n @GET(\"api/User\")\n Call<List<NhanVien>> getAll(@Query(\"authentication\") String authentication);\n\n @GET(\"api/User\")\n Call<NhanVien> chiTiet(@Query(\"id\") int id, @Query(\"authentication\") String authentication);\n\n @POST(\"api/User\")\n Call<NhanVien> them(@Body NhanVienRequest nhanVienRequest);\n\n @DELETE(\"api/User\")\n Call<Object> xoa(@Query(\"id\") int id, @Query(\"authentication\") String authentication);\n\n @PUT(\"api/User\")\n Call<Object> sua(@Body NhanVienRequest nhanVienRequest);\n}",
"public interface WeatherCurrentServiceAPI {\n /*@GET(\"data/2.5/weather?lat=52&lon=25&APPID=8e401c96e74d2f0c07da113eb27d51d0\")\n Call<WeatherCurentData>getWeatherResponse();*/\n\n @GET\n Call<WeatherCurentData> getWeatherResponse(\n @Url String url\n );\n\n}",
"public interface WeatherDataService {\n /**\n * Author fuyi\n * ClassName WeatherDataService\n * Description 根据城市ID查询天气数据\n * Param\n * Return\n * Date 2018/12/20 23:24\n */\n WeatherResponse getDataByCityId(String cityId);\n\n\n /**\n * Author fuyi\n * ClassName WeatherDataService\n * Description 根据城市名称查询天气数据\n * Param\n * Return\n * Date 2018/12/20 23:33\n */\n WeatherResponse getDataByCityName(String cityName);\n}"
] | [
"0.8217553",
"0.81647354",
"0.8107776",
"0.7924995",
"0.79040664",
"0.7483531",
"0.7453548",
"0.73357606",
"0.72019625",
"0.71469396",
"0.7139586",
"0.7127241",
"0.71011025",
"0.70452875",
"0.702488",
"0.7020962",
"0.7008843",
"0.70068866",
"0.6945344",
"0.69401896",
"0.6940065",
"0.69390684",
"0.6910067",
"0.69097954",
"0.6900291",
"0.6897784",
"0.68841577",
"0.6872848",
"0.6860862",
"0.6857556",
"0.6855625",
"0.6851156",
"0.68425626",
"0.6830749",
"0.68148",
"0.6806869",
"0.67988014",
"0.6790287",
"0.6778095",
"0.67605793",
"0.6757479",
"0.67565566",
"0.67523956",
"0.6738643",
"0.6736109",
"0.6735607",
"0.67222625",
"0.6709595",
"0.6704221",
"0.6702289",
"0.6699116",
"0.66939014",
"0.66911495",
"0.66895163",
"0.6685002",
"0.6680729",
"0.6667519",
"0.66667706",
"0.666094",
"0.6652846",
"0.66473544",
"0.66451734",
"0.66441",
"0.66419595",
"0.66417384",
"0.66366595",
"0.6635755",
"0.6633231",
"0.66302985",
"0.6622802",
"0.66218364",
"0.66203684",
"0.66162384",
"0.6611817",
"0.6609557",
"0.66079706",
"0.660564",
"0.6604716",
"0.66043603",
"0.6602986",
"0.6602042",
"0.65981686",
"0.65962595",
"0.6595629",
"0.6595541",
"0.6586683",
"0.65805185",
"0.6570832",
"0.65676916",
"0.65657955",
"0.6563385",
"0.6551658",
"0.65501183",
"0.6549012",
"0.6544612",
"0.654396",
"0.6543642",
"0.65432715",
"0.6542623",
"0.65396476",
"0.6537699"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.