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 |
---|---|---|---|---|---|---|
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to install it inside the SupportMapFragment. This method will only be triggered once the user has installed Google Play services and returned to the app. | @Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
UiSettings uiSettings = mMap.getUiSettings();
uiSettings.setZoomControlsEnabled(true);
// Add a marker in Sydney and move the camera
LatLng barcelona = new LatLng(41.3887901, 2.1589899);
LatLng marcador1 = new LatLng(41.379564, 2.167203);
LatLng marcador2 = new LatLng(41.394327, 2.191843);
LatLng marcador3 = new LatLng(41.398121, 2.199290);
LatLng marcador4 = new LatLng(41.386235, 2.146300);
LatLng marcador5 = new LatLng(41.395933, 2.136832);
LatLng marcador6 = new LatLng(41.441696, 2.237285);
LatLng marcador7 = new LatLng(41.457493, 2.255982);
LatLng marcador8 = new LatLng(41.316202, 2.028248);
LatLng marcador9 = new LatLng(41.333813, 2.035098);
LatLng marcador10 = new LatLng(41.357954, 2.061158);
mMap.addMarker(new MarkerOptions().position(marcador1).title("Los amigos"));
mMap.addMarker(new MarkerOptions().position(marcador2).title("El dorado"));
mMap.addMarker(new MarkerOptions().position(marcador3).title("Juan y Luca"));
mMap.addMarker(new MarkerOptions().position(marcador4).title("Durums"));
mMap.addMarker(new MarkerOptions().position(marcador5).title("Restaurante Jose Fina"));
mMap.addMarker(new MarkerOptions().position(marcador6).title("Los Hermanos"));
mMap.addMarker(new MarkerOptions().position(marcador7).title("Paella para todos"));
mMap.addMarker(new MarkerOptions().position(marcador8).title("Señor Pollo"));
mMap.addMarker(new MarkerOptions().position(marcador9).title("Restaurante Boliviano"));
mMap.addMarker(new MarkerOptions().position(marcador10).title("Laguna Alalay"));
//mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(barcelona,12), 4000,null);
mMap.setMaxZoomPreference(1000);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n lat = addresses.get(0).getLatitude();\n lng = addresses.get(0).getLongitude();\n } catch (Exception e) {\n lat = -34;\n lng = 151;\n }\n\n LatLng sydney = new LatLng(lat, lng);\n googleMap.addMarker(new MarkerOptions().position(sydney).title(\"WSU Paramatta\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n googleMap.setMyLocationEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney, Australia, and move the camera.\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(17.2231, 78.2827);\n marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Hyderbbad\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n initializeMap();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n ActivityCompat.requestPermissions(this,new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n // Add a marker in Sydney and move the camera\n if (loc != -1 && loc != 0) {\n locationManager.removeUpdates(this);\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(MainActivity.locations.get(loc), 10));\n\n mMap.addMarker(new MarkerOptions().position(MainActivity.locations.get(loc)).title(MainActivity.places.get(loc)));\n } else {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n locationManager.requestLocationUpdates(provider, 400, 1, this);\n\n }\n mMap.setOnMapLongClickListener(this);\n }",
"@SuppressLint(\"MissingPermission\")\n @Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(\"MAP_FRAG\", \"MapCallback\");\n\n mMap = googleMap;\n\n Log.d(\"MAP\", mMap.toString());\n\n mMap.setPadding(0, 0, 0, 300);\n\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mMap.getUiSettings().setMapToolbarEnabled(false);\n\n mMap.addMarker(new MarkerOptions().position(new LatLng(Common.latitude, Common.longitude))\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_mark_red)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Common.latitude, Common.longitude), 15.0f));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n getMarkers();\n\n // Add a marker in Sydney and move the camera\n LatLng penn = new LatLng(39.952290, -75.197060);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(penn, 15));\n mMap.setMyLocationEnabled(true);\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n uiSettings.setCompassEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\")\n //below line is use to add custom marker on our map.\n .icon(BitmapFromVector(getApplicationContext(), R.drawable.ic_flag)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mapReady = true;\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng Bangalore = new LatLng(12.972442, 77.580643);\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(Bangalore)\n .zoom(17)\n .bearing(90)\n .tilt(30)\n .build();\n mMap.addMarker(new MarkerOptions().position(Bangalore).title(\"Marker in Bangalore\"));\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n mMap.setIndoorEnabled(true);\n mMap.setBuildingsEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(43.777365,-79.3406);\n LatLng loc22=new LatLng(43.775748,-79.336674);\n LatLng loc3=new LatLng(43.769240,-79.360010);\n LatLng loc4=new LatLng(43.769290,-79.400101);\n LatLng loc5=new LatLng(43.769552,-79.601201);\n mMap.addMarker(new MarkerOptions().position(sydney).title(values[0]));\n mMap.addMarker(new MarkerOptions().position(loc22).title(values[1]));\n mMap.addMarker(new MarkerOptions().position(loc3).title(values[2]));\n mMap.addMarker(new MarkerOptions().position(loc4).title(values[3]));\n mMap.addMarker(new MarkerOptions().position(loc5).title(values[4]));\n\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng position = new LatLng(latitude, longitude);\n\n // centre the map around the specified location\n mMap.animateCamera(CameraUpdateFactory.newLatLng(position));\n\n // add a marker at the specified location\n MarkerOptions options = new MarkerOptions();\n mMap.addMarker(options.position(position).title(locationName));\n\n // configure the map settings\n mMap.setTrafficEnabled(true);\n mMap.setBuildingsEnabled(true);\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\n // enable the zoom controls\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n\n } else {\n buildGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n }\n\n /* // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in city and move the camera\n LatLng cityCoord = new LatLng(lat, lng);\n float zoom = (float) 9.0;\n mMap.addMarker(new MarkerOptions().position(cityCoord).title(cityAddr));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(cityCoord, zoom));\n }",
"public static void onMapReady() {\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n // For zooming automatically to the Dropped PIN Location\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,\n longitude), 12.0f));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n // Add a marker in Sydney, Australia,\n // and move the map's camera to the same location.\n LatLng singapore = new LatLng(1.338709, 103.819519);\n googleMap.addMarker(new MarkerOptions().position(singapore)\n .title(\"Marker in Singapore\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(singapore));\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(11),3000,null);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n addMarkers();\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng place = new LatLng(Double.parseDouble(lat),Double.parseDouble(longitude));\n\n mMap.addMarker(new MarkerOptions().position(place));\n moveToCurrentLocation(place);\n\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\r\n googleMap.setMyLocationEnabled(true);\r\n\r\n LocationManager locationManager = (LocationManager)\r\n getSystemService(Context.LOCATION_SERVICE);\r\n Criteria criteria = new Criteria();\r\n\r\n Location currentLocation = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\r\n\r\n LatLng sydney = new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude());\r\n\r\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 13));\r\n\r\n } else {\r\n PermissionUtils.requestPermission(this, LOCATION_PERMISSION_REQUEST_CODE, Manifest.permission.ACCESS_FINE_LOCATION, true);\r\n }\r\n\r\n updateMarkersData(googleMap);\r\n\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n CameraUpdate cUpdate = CameraUpdateFactory.newLatLngZoom(new LatLng(35.68, 139.76), 12);\n //mMap.addMarker(new MarkerOptions().position(new LatLng(35.68, 139.76)).title(\"Marker in Tokyo\"));\n mMap.moveCamera(cUpdate);\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setTrafficEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng wroclaw = new LatLng(51.110, 17.034);\n mMap.addMarker(new MarkerOptions().position(wroclaw));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(wroclaw, 12));\n mMap.clear();\n // Setting a click event handler for the map\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng latLng) {\n bSelect.setEnabled(true);\n // Creating a marker\n MarkerOptions markerOptions = new MarkerOptions();\n\n // Setting the position for the marker\n markerOptions.position(latLng);\n\n // Setting the title for the marker.\n // This will be displayed on taping the marker\n markerOptions.title(\"NOWY: \" + latLng.latitude + \" : \" + latLng.longitude);\n\n markerOptions.alpha(0.6f);\n // Clears the previously touched position\n mMap.clear();\n\n // Animating to the touched position\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n\n location = latLng.latitude + \" \" + latLng.longitude;\n\n setupMarker();\n }\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mLocationRequest = LocationRequest.create()\n .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)\n .setInterval(1*1000)\n .setFastestInterval(5 * 100);\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n // Show rationale and request permission.\n }\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n Log.i(TAG, \"map is ready\");\r\n mMap = googleMap;\r\n\r\n mMap.setMyLocationEnabled(true);\r\n mMap.setOnMyLocationButtonClickListener(this);\r\n mMap.setOnMyLocationClickListener(this);\r\n\r\n startLocationUpdates();\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n frLatLng = new LatLng(getLatitude, getLongitude);\n\n map = googleMap;\n map.getUiSettings().setMyLocationButtonEnabled(false);\n\n if (ActivityCompat.checkSelfPermission(getContext()\n , Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(getContext(),\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n\n map.addMarker(new MarkerOptions().position(frLatLng)).setTitle(getString(R.string.my_location));\n googleMap.getUiSettings().setMyLocationButtonEnabled(true);\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(frLatLng, 520));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng montesson = new LatLng(48.9190286,2.1380955);\n mMap.addMarker(new MarkerOptions().position(montesson).title(\"Marker in Montesson\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(montesson));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n } else {\n // Show rationale and request permission.\n int i = 12;\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n i);\n\n }\n mMap.setMyLocationEnabled(true); //when location changed call line. loaction manager\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng myLocation = new LatLng(latitude, longitude);\n addMarker(myLocation, name);\n moveCamera(myLocation, 3);\n\n //search a place\n /*searchInput = (EditText) findViewById(R.id.map_search_input);\n searchInput.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if(actionId == EditorInfo.IME_ACTION_SEARCH\n || actionId == EditorInfo.IME_ACTION_DONE\n || actionId == KeyEvent.ACTION_DOWN\n || actionId == KeyEvent.KEYCODE_ENTER)\n //search location\n geoLocate();\n return false;\n }\n });*/\n\n //add location\n addButton = findViewById(R.id.map_add_button);\n addButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.putExtra(\"latitude\", marker.getPosition().latitude);\n intent.putExtra(\"longitude\", marker.getPosition().longitude);\n intent.putExtra(\"name\", marker.getTitle());\n setResult(4, intent);\n finish();\n }\n });\n\n //long tap to add a marker\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(@NonNull LatLng latLng) {\n addMarker(latLng, name);\n }\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.setOnMyLocationChangeListener(this);\n markerIconBitmapDescriptor = BitmapDescriptorFactory.fromResource(R.mipmap.ic_driver_check_in);\n\n mFillColor = Color.HSVToColor(50, new float[]{0, 1, 1});\n mStrokeColor = Color.BLACK;\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n updateLocationUI();\n getDeviceLocation();\n // Add a marker in Sydney and move the camera\n //float zoom = 15;\n //LatLng gbc = new LatLng(43.676209, -79.410703);\n //mMap.addMarker(new MarkerOptions().position(gbc).title(\"Marker in GBC\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(gbc, zoom));\n\n }",
"@Override\n public void onMapReady(final GoogleMap map) {\n map.moveCamera(CameraUpdateFactory.zoomTo(14));\n //map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n map.setMyLocationEnabled(true);\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n\n return true;\n }\n });\n map.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n Log.d(\"map\", \"onMyLocationChange\");\n if (!isinit) {\n isinit = true;\n if (now_Location == null ||\n now_Location.getLatitude() != location.getLatitude() ||\n now_Location.getLongitude() != location.getLongitude()) {\n now_Location = location;\n initStreetView();\n }\n }\n LatLng sydney = new LatLng(location.getLatitude(), location.getLongitude());\n map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(121.5729889, 25.0776557);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"This is my first Maker\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng CSN = new LatLng(51.87, -8.481);\n mMap.setMapType(MAP_TYPE_HYBRID);\n mMap.addMarker(new MarkerOptions().position(CSN).title(\"Marker at CSN college\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(CSN, 15F));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n }",
"private void setUpMapIfNeeded() {\n if (mGoogleMap != null) {\n if (checkPermission()) {\n mGoogleMap.setMyLocationEnabled(true);\n }\n // Check if we were successful in obtaining the map.\n if (mMapView != null) {\n\n mGoogleMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n mGoogleMap.addMarker(new MarkerOptions().position(new LatLng(location.getLatitude(), location.getLongitude())).title(\"It's Me!\"));\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()), 10));\n }\n });\n\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(\"TEST\", \"MAP READY\");\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n LatLng curLocation = new LatLng(latitude,longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(curLocation,15.0f);\n setPin(latitude,longitude, null);\n mMap.moveCamera(cameraUpdate);\n for(int i = 0; i < restaurantList.size(); i++){\n double lat = restaurantList.get(i).getLatitude();\n double lng = restaurantList.get(i).getLongitude();\n setPin(lat, lng, restaurantList.get(i));\n }\n //Check we have the users permission to access their location\n // if we dont have it, we have to request it\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n mMap.setMyLocationEnabled(true);\n\n } else {\n //we dont have permission, so we have to ask for it\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_LOCATION_REQUEST_CODE);\n //run asychronously.. show an alert dialog\n //user can choose allow or deny\n }\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n // Add a marker in Sydney and move the camera\r\n LatLng charlotte = new LatLng(35.22, -80.84);\r\n //currentMarker = mMap.addMarker(new MarkerOptions().position(charlotte).title(\"Charlotte, NC\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(charlotte));\r\n //currentMarker.setTag(0);\r\n\r\n mMap.setOnMapLongClickListener(this);\r\n\r\n\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\r\n //&& ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED\r\n ) {\r\n // TODO: Consider calling\r\n\r\n return;\r\n }\r\n mMap.setMyLocationEnabled(true);\r\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\r\n @Override\r\n public boolean onMyLocationButtonClick() {\r\n Log.d(\"maps\", \"On my location button click\");\r\n return false;\r\n }\r\n });\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setTrafficEnabled(true);\n googleMap.setMyLocationEnabled(true);\n mMap.setOnMyLocationChangeListener(onMyLocationChangeListener);\n\n // mMap.setPadding(0, 0, 0, 100);\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n\n mMap.addMarker(new MarkerOptions()\n .position(new LatLng(65.9667, -18.5333))\n .title(\"Hello world\"));\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng loc = new LatLng(v, v1);\n mMap.addMarker(new\n MarkerOptions().position(loc).title(\"0000000000\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc));\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMapFragment = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.fragment_show_place_info_map));\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n\n // Use a custom info window adapter to handle multiple lines of text in the\n // info window contents.\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n TextView title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n TextView snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"you are in sydney\").draggable(true));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.setOnMarkerDragListener(this);\n mMap.setOnMapLongClickListener(this);\n\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n final LatLng update = getLastKnownLocation();\n if (update != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(CameraPosition.fromLatLngZoom(update, 11.0f)));\n }\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng latLng) {\n mIsNeedLocationUpdate = false;\n moveToLocation(latLng, false);\n }\n\n });\n\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n // Home Mark\n LatLng home = new LatLng(41.374736, 2.168308);\n float zoom = 13;\n\n // Inicialitzem mapa\n mMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN); //Tipus de mapa\n mMap.addMarker(new MarkerOptions().position(home).title(\"IOC\")); //Marcador inicial\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(home, zoom)); //Centrem mapa en el marcador inicial\n\n this.setMapLongClick(mMap);\n this.enableMyLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n\n final LatLng[] myLoc = {new LatLng(1, 1)};\n mMap.setMyLocationEnabled(true);\n// mMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n// @Override\n// public void onMyLocationChange(Location location) {\n// myLoc[0] = new LatLng(location.getLatitude(), location.getLongitude());\n// mMap.addCircle(new CircleOptions().center(myLoc[0]));\n// mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLoc[0], 15));\n// }\n// });\n\n mMap.addCircle(new CircleOptions().center(new LatLng(lat, lng)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat, lng), 18));\n\n mMap.setOnPoiClickListener(new GoogleMap.OnPoiClickListener() {\n @Override\n public void onPoiClick(PointOfInterest poi) {\n\n }\n });\n\n mMap.getUiSettings().setMapToolbarEnabled(true);\n\n // Add a marker in Sydney and move the camera\n\n\n showItems(lat, lng, radius);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng posini = new LatLng(3.4,-76.5);\n myMarker = mMap.addMarker(new MarkerOptions().position(posini));\n\n requestLocation();\n\n googleMap.setOnCameraMoveListener(new GoogleMap.OnCameraMoveListener() {\n @Override\n public void onCameraMove() {\n if (!flag) {\n\n addMarker();\n flag = true;\n }\n }\n });\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(logTag,\"4\");\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST);\n return;\n }\n mMap.setOnMapLongClickListener(this);\n mMap.setOnInfoWindowClickListener( this );\n mMap.setOnMapClickListener(this);\n mMap.setMyLocationEnabled(true);\n ll=new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());\n MarkerOptions options = new MarkerOptions().position(ll);\n options.title(getAddressFromLatLng(ll));\n\n Log.d(logTag,\"5\");\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng hn = new LatLng(14.079526, -87.180662);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(hn));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(hn,7));\n helperFacturacion = new FacturacionHelper(MapListClientesActivity.this);\n\n\n addMarkers();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n setInitialLocation(VehicleData.getLatitude(), VehicleData.getLongitude());\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED){\r\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},101);\r\n }\r\n loc = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n populateMap(loc);\r\n try {\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lm.getLastKnownLocation(LocationManager.GPS_PROVIDER).getLatitude(), lm.getLastKnownLocation(LocationManager.GPS_PROVIDER).getLongitude()), 15.0f));\r\n }catch(Exception blyat){\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(\"No hemos podido acceder a tu localización, revisa el estado de GPS y reinicia la app\");\r\n builder.show();\r\n }\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n try{\n Geocoder geo = new Geocoder(this);\n\n //Get address provided for location as Address object\n List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1);\n Address address = geo.getFromLocationName(location.getAddress(),1).get(0);\n\n LatLng position= new LatLng(address.getLatitude(),address.getLongitude());\n\n googleMap.addMarker(new MarkerOptions().position(position)\n .title(location.getTitle()));\n googleMap.setMinZoomPreference(12);\n googleMap.setMaxZoomPreference(15);\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(position));\n }\n catch (IOException e){\n e.printStackTrace();\n }\n catch(IndexOutOfBoundsException e){\n e.printStackTrace();\n }\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n\n setUpMap();\n\n }\n });\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n// updateMap(new LocationModel(41.806363, 44.768531, \"Agmasheneblis Xeivani\"));\n if (shoppingList.getLocationReminder() != null) {\n updateMap(shoppingList.getLocationReminder());\n } else {\n updateMap(null);\n }\n }",
"@Override\n @SuppressWarnings({\"MissingPermission\"})\n public void onMapReady(GoogleMap googleMap) {\n\n Log.d(TAG, \"Map is ready.\");\n mMap = googleMap;\n\n mMap.setMyLocationEnabled(true);\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(\n mGoogleApiClient);\n\n setMarkerToCurrentLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(LocationStorage.getInstance().getLocation().getLatitude(), LocationStorage.getInstance().getLocation().getLongitude());\n// BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.ic_large_marker);\n Marker marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Current Location\").snippet(\"Hold and drag to your desired location\"));\n marker.showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(sydney, 15);\n mMap.animateCamera(cameraUpdate);\n marker.setDraggable(true);\n mMap.setOnMarkerDragListener(new GoogleMap.OnMarkerDragListener() {\n @Override\n public void onMarkerDragStart(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDrag(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDragEnd(Marker marker) {\n LatLng latLng=marker.getPosition();\n Location temp = new Location(LocationManager.GPS_PROVIDER);\n temp.setLatitude(latLng.latitude);\n temp.setLongitude(latLng.longitude);\n LocationStorage.getInstance().setLocation(temp);\n }\n });\n// mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n// @Override\n// public boolean onMarkerClick(Marker marker) {\n//\n// return true;\n// }\n// });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(false);\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mcircleOptions = mcircleOptions.center(sydney);\n mcircleOptions = mcircleOptions.radius(500);\n mcircleOptions = mcircleOptions.strokeWidth(2);\n mcircleOptions = mcircleOptions.strokeColor(Color.argb(100, 255, 73, 73));\n mcircleOptions = mcircleOptions.fillColor(Color.argb(100, 255, 73, 73));\n mMap.addCircle(mcircleOptions);\n if (ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n !=\n PackageManager.PERMISSION_GRANTED\n &&\n ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng latLng) {\n mlatLng = latLng;\n mMap.clear();\n mMap.addMarker(new MarkerOptions().position(mlatLng));\n mcircleOptions = mcircleOptions.center(mlatLng);\n mMap.addCircle(mcircleOptions);\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n geocoder = new Geocoder(Maps.this, Locale.getDefault());\n try {\n List<Address> addresses = geocoder.getFromLocation(mlatLng.latitude, mlatLng.longitude, 1);\n for (int i=0; i < addresses.get(0).getMaxAddressLineIndex(); i++) {\n Log.e(\"Address\", addresses.get(0).getAddressLine(i) + \"\");\n caddress = addresses.get(0).getAddressLine(i);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n loc_data = getSharedPreferences(\"loc_data\", MODE_PRIVATE);\n SharedPreferences.Editor loc_data_editor = loc_data.edit();\n loc_data_editor.putString(\"lat\", Double.toString(mlatLng.latitude));\n loc_data_editor.putString(\"lng\", Double.toString(mlatLng.longitude));\n loc_data_editor.putString(\"add\", caddress + \"\");\n loc_data_editor.commit();\n }\n });\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n\r\n //Initialize Google Play Services\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n if (ContextCompat.checkSelfPermission(this,\r\n Manifest.permission.ACCESS_FINE_LOCATION)\r\n == PackageManager.PERMISSION_GRANTED) {\r\n buildGoogleApiClient();\r\n mMap.setMyLocationEnabled(true);\r\n }\r\n }\r\n else {\r\n buildGoogleApiClient();\r\n mMap.setMyLocationEnabled(true);\r\n }\r\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n\n // Use a custom info window adapter to handle multiple lines of text in the\n // info window contents.\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n TextView title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n TextView snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n\n initializeOtherSettlements(new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude()));\n initializeQuestLocations(new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude()));\n\n mMap.setOnMarkerClickListener(this);\n mMap.setOnMapClickListener(this);\n mMap.setOnPoiClickListener(this);\n mMap.setOnInfoWindowClickListener(this);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), 9));\n\n final PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment)\n getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment);\n\n autocompleteFragment.getView().setBackgroundColor(Color.WHITE);\n autocompleteFragment.getView().setVisibility(View.GONE);\n autocompleteFragment.setOnPlaceSelectedListener(new PlaceSelectionListener() {\n @Override\n public void onPlaceSelected(Place place) {\n //Bias results towards the user's current location\n /*autocompleteFragment.setBoundsBias(new LatLngBounds(\n new LatLng(place.getLatLng().latitude, place.getLatLng().longitude),\n new LatLng(place.getLatLng().latitude, place.getLatLng().longitude)));*/\n\n //Get info about the selected place.\n //Log.i(TAG, \"Place: \" + place.getName());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(place.getLatLng().latitude,\n place.getLatLng().longitude), mMap.getCameraPosition().zoom));\n\n addMarkerAtPoi(place);\n }\n\n @Override\n public void onError(Status status) {\n // TODO: Handle the error.\n Log.i(TAG, \"An error occurred: \" + status);\n }\n });\n\n updateMapHistory();\n updateCustomTimeUI();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n enableMyLocation();\n buildGoogleApiClient();\n\n }",
"public void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getChildFragmentManager()\n .findFragmentById(R.id.location_map)).getMap();\n MapsInitializer.initialize(getActivity().getApplicationContext());\n // Check if we were successful in obtaining the map.\n if (mMap != null)\n setUpMap();\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n String info = sTitle;\n // Add a marker in Sydney and move the camera\n LatLng pos = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(pos).title(info));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(pos));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(pos, 8));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n gpsTracker = new GPSTracker(this);\n\n // TODO Cek Permission >= Marshmellow\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&\n checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION\n }, 110);\n return;\n }\n }\n\n if (gpsTracker.canGetLocation()) {\n latawal = gpsTracker.getLatitude();\n lonawal = gpsTracker.getLongitude();\n namelocationawal = myLocation(latawal, lonawal);\n }\n\n // Add a marker in Sydney and move the camera\n LatLng myLocation = new LatLng(latawal, lonawal);\n locawal.setText(namelocationawal);\n mMap.addMarker(new MarkerOptions().position(myLocation).title(namelocationawal));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 14));\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n mMap.setPadding(30, 80, 30, 80);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng oregon = new LatLng(45.3, -122);\n mMap.addMarker(new MarkerOptions().position(oregon).title(\"Marker in Oregon\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(oregon));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n /* mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n //mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n LatLng ifto = new LatLng(-10.199202218157746, -48.31158433109522);\n mMap = googleMap;\n mMap.setOnCameraIdleListener(this);\n mMap.addMarker(new MarkerOptions().position(ifto).title(\"IFTO Campus Palmas\"));\n }",
"private void setupMap() {\n if (googleMap == null) {\n SupportMapFragment mapFrag = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\n mapFrag.getMapAsync(this);\n mLocationProvider = new LocationProvider(this, this);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(TAG, \"onMapReady: map is ready\");\n mMap = googleMap;\n\n if (mLocationPermissionsGranted) {\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n\n mMap.getUiSettings().setCompassEnabled(true);\n// mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setIndoorLevelPickerEnabled(true);\n mMap.getUiSettings().setMapToolbarEnabled(true);\n\n mMap.getUiSettings().setAllGesturesEnabled(true);\n getDeviceLocation();\n mMap.setOnMarkerDragListener(this);\n\n }\n }",
"public void onMapReady(GoogleMap googleMap , double lati, double longi) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(lati, longi);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Your Current Location\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mGoogleMap = map;\n mGoogleMap.setMyLocationEnabled(true);\n Log.d(TAG, \"Map Ready\");\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n\n mMap = googleMap;\n\n attachLocationListener();\n\n\n mMap.setOnMarkerDragListener(this);\n\n }",
"public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n mMap.moveCamera(CameraUpdateFactory.zoomTo(1));\r\n\r\n\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\r\n // TODO: Consider calling\r\n // ActivityCompat#requestPermissions\r\n // here to request the missing permissions, and then overriding\r\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\r\n // int[] grantResults)\r\n // to handle the case where the user grants the permission. See the documentation\r\n // for ActivityCompat#requestPermissions for more details.\r\n return;\r\n }\r\n mMap.setMyLocationEnabled(true);\r\n\r\n /// This allows the user to zoom in and out of the map\r\n mMap.getUiSettings().setZoomControlsEnabled(true);\r\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\r\n mMap.getUiSettings().isMyLocationButtonEnabled();\r\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\r\n\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n //Agafar la localitzacio actual per mostrar-ho al mapa\n LocationManager locationManager = (LocationManager)\n getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n LatLng actual = new LatLng((location.getLatitude()),location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(actual,13));\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public void onMapReady(GoogleMap googleMap) {\n MapsInitializer.initialize(getContext());\n mMap = googleMap;\n mMap.setMinZoomPreference(13.0f);\n mMap.setMaxZoomPreference(20.0f);\n mMap.setOnMapClickListener(this);\n mMap.setInfoWindowAdapter(this);\n mMap.setOnInfoWindowClickListener(MyOnInfoWindowClickListener);\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.\n ACCESS_FINE_LOCATION}, 1);\n } else {\n mMap.setMyLocationEnabled(true);\n }\n }\n\n mMap.setMyLocationEnabled(true);\n\n buildGoogleApiClient();\n mGoogleApiClient.connect();\n\n }",
"@Override\n public void onMapReady(final GoogleMap map) {\n mMap = map;\n\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n @SuppressLint(\"InflateParams\") View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents, null);\n\n TextView title = infoWindow.findViewById(R.id.title);\n title.setText(marker.getTitle());\n\n TextView snippet = infoWindow.findViewById(R.id.snippet);\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng point) {\n mMap.clear();\n buildMarker(\"User Tap\", \"This is snippet\", point, true);\n @SuppressLint(\"DefaultLocale\") String latLong = String.format(\"%f,%f\", point.latitude, point.longitude);\n String endPoint = String.format(placesURL,latLong, String.valueOf(distance), BuildConfig.API_KEY);\n Location locationSelected = new Location(mLastKnownLocation);\n locationSelected.setLatitude(point.latitude);\n locationSelected.setLongitude(point.longitude);\n showPlacesNearby(locationSelected, endPoint);\n }\n });\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n mMap.clear();\n }\n });\n\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n mMap.clear();\n updateLocationUI();\n getDeviceLocation();\n return true;\n }\n });\n\n\n // Prompt the user for permission.\n getLocationPermission();\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mUiSettings = mMap.getUiSettings();\n mUiSettings.setAllGesturesEnabled(mLock);\n\n mMap.setOnMyLocationButtonClickListener(this);\n mMap.setOnMapClickListener(this);\n mMap.setOnMapLongClickListener(this);\n mMap.setOnMarkerDragListener(this);\n\n enableMyLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n riderLat = getIntent().getDoubleExtra(DriverActivity.RIDER_LATITUDE_EXTRA, 0.0);\n riderLong = getIntent().getDoubleExtra(DriverActivity.RIDER_LONGITUDE_EXTRA, 0.0);\n LatLng rider = new LatLng(riderLat, riderLong);\n riderMarker = mMap.addMarker(new MarkerOptions()\n .position(rider)\n .title(\"Rider\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n Toast.makeText(this, \"You don't have location permission\", Toast.LENGTH_LONG).show();\n return;\n }\n\n Location hereNow = mLocationManager.getLastKnownLocation(mBestProvider);\n if (hereNow != null) {\n onLocationChanged(hereNow);\n }\n\n mLocationManager.requestLocationUpdates(mBestProvider, 400, 1, this);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n //Enable Current location\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.\n PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.\n ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION}, MY_REQUEST_INT);\n\n }\n\n\n return;\n\n } else {\n mMap.setMyLocationEnabled(true);\n\n\n }\n\n\n // Add a marker in Sydney and move the camera\n //LatLng sydney = new LatLng(-34, 151);\n //mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\")\n // .icon(BitmapDescriptorFactory.fromResource(R.drawable.blackspot))\n // );\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(sydney,16),5000,null);\n //new MarkerOptions().icon(BitmapDescriptorFactory.fromResource(R.drawable.blackspot));\n\n //LatLng latLng = new LatLng(-1.2652560778411037, 36.81265354156495);\n //mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker in Parklands\"));\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,16),5000,null);\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n //BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.blackspot);\n ////LatLng harmbug = new LatLng(-37, 120);\n //mMap.addMarker(new MarkerOptions().position(harmbug).title(\"Marker in Harmbug\")\n //.icon(icon));\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(harmbug,16),5000,null);\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(harmbug));\n\n //LatLng kenya = new LatLng(-2.456, 37);\n //mMap.addMarker(new MarkerOptions().position(kenya).title(\"Marker in Kenya\"));\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(kenya,16),5000,null);\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(kenya));\n\n LatLng sydney = new LatLng(-0.8041213212075744, 36.53117179870606);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Blackspot at Kinungi\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(sydney, 18), 5000, null);\n\n LatLng gilgil = new LatLng(-0.2167, 36.2667);\n mMap.addMarker(new MarkerOptions().position(gilgil).title(\"Blackspot at Gilgil\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(gilgil));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(gilgil, 18), 5000, null);\n\n LatLng njoro = new LatLng(-0.3290, 35.9440);\n mMap.addMarker(new MarkerOptions().position(njoro).title(\"Blackspot at Njoro\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(njoro));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(njoro, 18), 5000, null);\n\n LatLng bluepost = new LatLng(-1.0226988092777693, 37.06806957721711);\n mMap.addMarker(new MarkerOptions().position(bluepost).title(\"Blackspot at Bluepost Bridge\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(bluepost));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(bluepost, 18), 5000, null);\n\n LatLng Nithi = new LatLng(-0.26649259802107667, 37.66248464584351);\n mMap.addMarker(new MarkerOptions().position(Nithi).title(\"Blackspot at Nithi Bridge\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Nithi));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(bluepost, 18), 5000, null);\n\n LatLng Maungu = new LatLng(-3.558353542362671, 38.74993801116944);\n mMap.addMarker(new MarkerOptions().position(Maungu).title(\"Blackspot at Maungu Area\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Maungu));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(Maungu, 18), 5000, null);\n\n LatLng Misikhu = new LatLng(0.6662027919912484, 34.75215911865235);\n mMap.addMarker(new MarkerOptions().position(Misikhu).title(\"Blackspot at Misikhu\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Misikhu));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(Maungu, 18), 5000, null);\n\n LatLng Muthaiga = new LatLng(-1.2614375406469367, 36.840720176696784);\n mMap.addMarker(new MarkerOptions().position(Muthaiga).title(\"Blackspot at Muthaiga Road\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Muthaiga));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(Maungu, 18), 5000, null);\n\n LatLng Pangani = new LatLng(-1.2665003190843396, 36.834239959716804);\n mMap.addMarker(new MarkerOptions().position(Muthaiga).title(\"Blackspot at Pangani\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(Pangani));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(Pangani, 18), 5000, null);\n\n LatLng KU = new LatLng(-1.1823303731373749, 36.93703293800355);\n mMap.addMarker(new MarkerOptions().position(KU).title(\"Blackspot at KU\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(KU));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(KU, 18), 5000, null);\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Toast.makeText(this, \"Map is Ready\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"onMapReady: map is ready\");\n mMap = googleMap;\n\n if (mLocationPermissionsGranted) {\n getDeviceLocation();\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n init();\n }\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n // This method is called AFTER the map is loaded from Google Play services\n // At this point the map is ready\n\n // Store the reference to the Google Map in our member variable\n mMap = googleMap;\n // Custom marker (Big Blue one - mymarker.png)\n LatLng myPosition = new LatLng(33.671028, -117.911305);\n\n // Add a custom marker at \"myPosition\"\n mMap.addMarker(new MarkerOptions().position(myPosition).title(\"My Location\").icon(BitmapDescriptorFactory.fromResource(R.drawable.my_marker)));\n\n // Center the camera over myPosition\n CameraPosition cameraPosition = new CameraPosition.Builder().target(myPosition).zoom(15.0f).build();\n CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(cameraPosition);\n // Move map to our cameraUpdate\n mMap.moveCamera(cameraUpdate);\n\n // Then add normal markers for all the caffeine locations from the allLocationsList.\n // Set the zoom level of the map to 15.0f\n\n // Now, let's plot each Location form the list with a standard marker\n for (Location location : allLocationsList)\n {\n LatLng caffeineLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.addMarker(new MarkerOptions().position(caffeineLocation).title(location.getName()));\n }\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng location = new LatLng(mLat, mLng);\n moveCamera(location, DEFAUT_ZOOM);\n if (ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(\n this,\n android.Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Pula and move the camera\n LatLng pula = new LatLng(44.86726450096342, 13.850460687162476);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(pula, 13));\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n enableUserLocation();\n zoomTooUserLocation();\n } else {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission\n .ACCESS_FINE_LOCATION)) {\n //we can show user dialog why this permission is necessery\n\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission\n .ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n\n } else {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission\n .ACCESS_FINE_LOCATION}, LOCATION_REQUEST_CODE);\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n MapStyleOptions style = MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.mapstyle_day);\n mMap.setMapStyle(style);\n\n if (locationProvider != null) {\n enableLocationBullet();\n if (lastpos != null) {\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(lastpos));\n }\n }\n // Start clustermanager and add markers\n setUpClusterManager();\n\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n mapReady = true;\n if (searchedRestaurants != null) {\n addRestaurants(searchedRestaurants, false);\n }\n\n Location loc = locationProvider.getLastLocation();\n if (!init) {\n zoomMapToPosition(loc, MY_LOCATION_ZOOM);\n init = true;\n }\n\n }\n });\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n ////run with it to check what is happening and remove it to see\n\n\n //Initialize Google Play Services\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n buildGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n }\n } else {\n buildGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n }\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\r\n\r\n //Initialize Google Play Services\r\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n if (ContextCompat.checkSelfPermission(this,\r\n Manifest.permission.ACCESS_FINE_LOCATION)\r\n == PackageManager.PERMISSION_GRANTED) {\r\n buildGoogleApiClient();\r\n mMap.setMyLocationEnabled(true);\r\n }\r\n }\r\n else {\r\n buildGoogleApiClient();\r\n mMap.setMyLocationEnabled(true);\r\n }\r\n\r\n\r\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n mUiSettings = mMap.getUiSettings();\n mUiSettings.setCompassEnabled(false);\n mUiSettings.setMapToolbarEnabled(false);\n mUiSettings.setZoomControlsEnabled(false);\n mUiSettings.setScrollGesturesEnabled(false);\n mUiSettings.setTiltGesturesEnabled(false);\n mUiSettings.setRotateGesturesEnabled(false);\n\n // Add a marker in Sydney and move the camera\n final LatLng airport = new LatLng(listAirport.get(index).getLatitude(), listAirport.get(index).getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLng(airport));\n mMap.setMinZoomPreference(10.0f);\n mMap.setMaxZoomPreference(10.0f);\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\n map.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n onClick(index, MapsActivity.class);\n }\n });\n\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n SupportMapFragment mapFragment = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map));\n mapFragment.getMapAsync(this);\n mMap = mapFragment.getMap();\n\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n LatLng latlong = new LatLng(29.375859, 47.977405);\n googleMap.addMarker(new MarkerOptions().position(latlong).title(\"\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latlong, 9.0f));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng livraria = new LatLng(maps.getLatitude(), maps.getLongitude());\n if(this.maps.getId() == 1){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Saraiva - Praia de Belas\"));\n } else if(this.maps.getId() == 2){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Cultura - Bourbon Country\"));\n } else if(this.maps.getId() == 3){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Cameron\"));\n } else if(this.maps.getId() == 4){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Siciliano\"));\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(livraria, 15f));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(LOG_TAG, \"called onMapReady()\");\n mMap = googleMap;\n\n // Set up UI for map\n mMap.setMyLocationEnabled(true);\n mMap.setBuildingsEnabled(true);\n mUiSettings = mMap.getUiSettings(); // https://developers.google.com/maps/documentation/android-sdk/controls\n mUiSettings.setMyLocationButtonEnabled(false);\n mUiSettings.setCompassEnabled(true);\n mUiSettings.setTiltGesturesEnabled(true);\n mUiSettings.setRotateGesturesEnabled(true);\n mUiSettings.setScrollGesturesEnabled(true);\n mUiSettings.setZoomGesturesEnabled(true);\n\n\n // Move the camera to last known user location\n fusedLocationClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<Location>() { // this -> getActivity()??\n @Override\n public void onSuccess(Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n LatLng startingLocation = new LatLng(latitude, longitude);\n\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(startingLocation) // Sets the center of the map\n .zoom(16) // Sets the zoom\n .build(); // Creates a CameraPosition from the builder\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition), 250, null);\n Log.d(LOG_TAG, \" > moved map to last known location\");\n }\n }\n });\n addZoneHolesToMap(shiftZones);\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Intent info = getIntent();\n setUpMap(new LatLng(info.getDoubleExtra(\"latitude\", 0), info.getDoubleExtra(\"longitude\", 0)), info.getStringExtra(\"name\"));\n }\n }\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n Log.i(TAG, \"Yes, we have a google map...\");\n setUpMap();\n } else {\n // means that Google Service is not available\n form.dispatchErrorOccurredEvent(this, \"setUpMapIfNeeded\",\n ErrorMessages.ERROR_GOOGLE_PLAY_NOT_INSTALLED);\n }\n\n }\n }",
"private void setupMap() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext());\n \t\tif ( status != ConnectionResult.SUCCESS ) {\n \t\t\t// Google Play Services are not available.\n \t\t\tint requestCode = 10;\n \t\t\tGooglePlayServicesUtil.getErrorDialog( status, this, requestCode ).show();\n \t\t} else {\n \t\t\t// Google Play Services are available.\n \t\t\tif ( this.googleMap == null ) {\n \t\t\t\tFragmentManager fragManager = this.getSupportFragmentManager();\n \t\t\t\tSupportMapFragment mapFrag = (SupportMapFragment) fragManager.findFragmentById( R.id.edit_gpsfilter_area_google_map );\n \t\t\t\tthis.googleMap = mapFrag.getMap();\n \n \t\t\t\tif ( this.googleMap != null ) {\n \t\t\t\t\t// The Map is verified. It is now safe to manipulate the map.\n \t\t\t\t\tthis.configMap();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng liege = new LatLng(50.620552, 5.581177);\n LatLng victime = new LatLng(50.620957, 5.582263);\n mMap.addMarker(new MarkerOptions()\n .position(liege)\n .title(\"You are here !\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW)));\n mMap.addMarker(new MarkerOptions()\n .position(victime)\n .title(\"Aurélie\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(liege,17));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng parque = new LatLng(latitud, longitud);\n mMap.addMarker(new MarkerOptions().position(parque).title(lugar).icon(BitmapDescriptorFactory.fromResource(R.drawable.icons8_terraria_48)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(parque));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitud, longitud),16.0f));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n marker = googleMap.addMarker(markerOptions);\n googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n }",
"private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n mMap.setOnMarkerDragListener(this);\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n buildGoogleApiClient();\n mMap.setMyLocationEnabled(true);\n\n }",
"private void setUpMapIfNeeded() {\r\n if (map == null) {\r\n SupportMapFragment smf = null;\r\n smf = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);\r\n\r\n if (smf != null) {\r\n map = smf.getMap();\r\n if (map != null) {\r\n map.setMyLocationEnabled(true);\r\n }\r\n }\r\n }\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n mapLoaded = true;\n waitForMapPlease();\n }\n });\n }"
]
| [
"0.8187529",
"0.8042839",
"0.80367285",
"0.8032506",
"0.79978335",
"0.7976724",
"0.7957471",
"0.7957164",
"0.7953694",
"0.79421705",
"0.7936087",
"0.79299027",
"0.79150516",
"0.7904874",
"0.7888333",
"0.78849447",
"0.78849447",
"0.78849447",
"0.78849447",
"0.78772956",
"0.78445774",
"0.782789",
"0.7819589",
"0.781224",
"0.7796011",
"0.7791885",
"0.778616",
"0.77860105",
"0.7762842",
"0.77440566",
"0.77420485",
"0.7735449",
"0.77293915",
"0.768611",
"0.7673566",
"0.7666833",
"0.7666377",
"0.76596135",
"0.76591855",
"0.76573867",
"0.7656914",
"0.76467746",
"0.7639643",
"0.76330024",
"0.7627378",
"0.76210725",
"0.76202404",
"0.7617711",
"0.76167035",
"0.7608495",
"0.7604641",
"0.75987947",
"0.7598476",
"0.7593034",
"0.75845426",
"0.7584238",
"0.7578623",
"0.75703716",
"0.7566824",
"0.75639457",
"0.7562468",
"0.75539005",
"0.7551097",
"0.7544213",
"0.75431824",
"0.75383496",
"0.752989",
"0.75259745",
"0.7519025",
"0.7517558",
"0.7514694",
"0.7491785",
"0.74896467",
"0.7489173",
"0.7485475",
"0.7472731",
"0.74668264",
"0.7461357",
"0.7456964",
"0.7456769",
"0.7451187",
"0.7450126",
"0.74490196",
"0.7446563",
"0.74365",
"0.7428749",
"0.7424618",
"0.74174917",
"0.74160016",
"0.741559",
"0.74113756",
"0.7409814",
"0.7408016",
"0.7399398",
"0.73948",
"0.7393532",
"0.7388852",
"0.7388748",
"0.7376698",
"0.7369174",
"0.73583275"
]
| 0.0 | -1 |
List of constructors. Contains a constructor that accepts a parameter of type String representing the name of the list and a parameter of type ArrayList representing the list of Icosahedron objects. | public IcosahedronList(String listIn, ArrayList<Icosahedron> icosListIn) {
list = listIn;
icosList = icosListIn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List constructors();",
"public List<Constructor<?>> getConstructors(int paramCount) {\n return getConstructors(this.type, paramCount);\n }",
"public List getConstructorList() {\n return null;\n }",
"public cCONS(Object... list)\r\n\t{\r\n\t\tinitCons(false, list);\r\n\t}",
"public static List<Constructor<?>> getConstructors(Class<?> type, int paramCount) {\n List<Constructor<?>> result = new ArrayList<Constructor<?>>(type.getConstructors().length);\n for (Constructor<?> constr : type.getConstructors()) {\n if (constr.getParameterTypes().length == paramCount) {\n result.add(constr);\n }\n }\n return result;\n }",
"public MyList() {\n this(\"List\");\n }",
"public Complex(String[] cStr){\r\n\t this(cStr[0], cStr[1]);\r\n\t}",
"private Lists() { }",
"public MultiList(){}",
"public ComandosJuego() //constructor\n\t{\n\t\tlista = new ArrayList<String>();\n\t}",
"public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}",
"public ArrayList() {\n\t\tthis(10, 75);\n\t}",
"HxMethod createConstructor(final String... parameterTypes);",
"public DAO(List<String> listName) {\n super(listName);\n }",
"TDrawingConstructor (ArrayList interpretation){\r\n fInterpretation=interpretation;\r\n}",
"public Object[] getConstructorArgs ();",
"public List(){\n\t\tthis(\"list\", new DefaultComparator());\n\t}",
"public ArrayList<CityArea> makeCities(ArrayList<String> list){\n\t\tArrayList<CityArea> cityData = new ArrayList<CityArea>();\n\t\t\n\t\tString cvsSplitBy = \",\";\n\t\tfor (String string : list){\n\t\t\tCityArea city = new CityArea();\n\t\t\tString[] data = string.split(cvsSplitBy);\n\t\t\tcity.setCityName(data[0]);\n\t\t\tcity.setPopulationDensity(Double.valueOf(data[1]));\n\t\t\tcity.setTemperature(Double.valueOf(data[2]));\n\t\t\tcity.setCostOfLiving(Double.valueOf(data[3]));\n\t\t\tcity.setCrimeRate(Double.valueOf(data[4]));\n\t\t\tcityData.add(city);\n\t\t}\n\t\treturn cityData;\n\t}",
"public MyList(String name) {\n nameList = name;\n }",
"public Lista() {\r\n }",
"public List()\n\t{\n\t\tthis(null, null);\n\t}",
"public ColorList () { \n\t\t\n\t}",
"public MyArrayList() {\n this(DEFAULT_CAP);\n }",
"@SuppressWarnings(\"rawtypes\")\n\tpublic void buildConstructorDetails(List elements) throws Exception {\n\t\tConstructorBuilder.getInstance(\n\t\t\t\tconfiguration,\n\t\t\t\twriter.getClassDoc(),\n\t\t\t\tnew CustomConstructorWriterImpl((SubWriterHolderWriter) writer, writer.getClassDoc(),\n\t\t\t\t\t\ttargetContractMap)).build(elements);\n\t}",
"public list() {\r\n }",
"public Set<ConstructorRepresentation> getConstructors() {\n if (moduleClass != null) {\n final Set<ConstructorRepresentation> cons =\n new HashSet<ConstructorRepresentation>();\n for (Constructor<?> constructor : moduleClass.getConstructors()) {\n List<Class<?>> argumentTypes = new ArrayList<Class<?>>();\n Set<Class<?>> exceptionTypes = new HashSet<Class<?>>();\n for (Object arg : constructor.getParameterTypes()) {\n argumentTypes.add(arg.getClass());\n }\n for (Object exc : constructor.getExceptionTypes()) {\n exceptionTypes.add(exc.getClass());\n }\n cons.add(new ConstructorRepresentation(argumentTypes, exceptionTypes));\n }\n return cons;\n } else {\n return Collections.<ConstructorRepresentation> emptySet();\n }\n }",
"private void __sep__Constructors__() {}",
"public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }",
"public SaccaWrapper(List<Sacca> sacche) {\n this.sacche = sacche;\n }",
"private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWithoutGenerics());\n\t\tconstructor.body.line(\"this.set(value);\");\n\t}",
"List<List<Class<?>>> getConstructorParametersTypes();",
"public cCONS(boolean decl, Object... list)\r\n\t{\r\n\t\tinitCons(decl, list);\r\n\t}",
"public WordList() {\t\t//Default constructor\n\t}",
"public ListParameter()\r\n\t{\r\n\t}",
"public List(String name, Contract of)\n\t{\n\t\tsuper(name);\n\t\tsetOf(of);\n\t}",
"public FpLista() {\r\n\t\t\r\n\t}",
"public Constructor(){\n\t\t\n\t}",
"public List(String name)\n\t{\n\t\tthis(name, null);\n\t}",
"public static List<Treasure> load(){\n List<Treasure> treasures = new ArrayList<>();\n List<Constructor<?>> constructors = FileLoader.getConstructors(FILE_NAME);\n try {\n for (Constructor<?> constructor : constructors)\n treasures.add((Treasure) constructor.newInstance());\n }catch (Exception e) { e.printStackTrace(); }\n\n return treasures;\n }",
"public abstract void init(ArrayList<String> ary);",
"public CSVList(Object[] s)\n\t{\n\t\tsuper(s, sepReg, sep);\n\t}",
"public MemberList(List members)\n/* 10: */ {\n/* 11:10 */ this.members = members;\n/* 12: */ }",
"public CreationMenuModele(ArrayList<String> listPredefinedCourse,ArrayList<String> listCourseName){\n this.listPredefinedCourse = listPredefinedCourse;\n this.listCourseName = listCourseName;\n }",
"public IconList (V... args) {\n\tif (args == null) { return; };\n\taddAll(Arrays.asList(args));\n }",
"ArrayListOfStrings () {\n list = new ArrayList<String>();\n }",
"Constructor<T> newConstructor();",
"public Data(ArrayList<Object> list) {\n try {\n int n = list.size();\n if (n == 0) throw new Exception(\"Specified argument for Data constructor is an empty ArrayList\");\n this.data = new ArrayList<Byte>();\n\n for (int i = 0; i < n; i++) {\n Object o = list.get(i);\n if (o instanceof Byte) {\n byte b = (byte) o;\n this.data.add(b);\n } else if (o instanceof Integer) {\n int v = (int) o;\n for (int j = 0; j < 4; j++) {\n int b = 0;\n for (int k = 0; k < 8; k++) {\n b = b << 1;\n int x = (3 - j) * 8 + (7 - k);\n int c = (v >> x) & 1;\n b = b | c;\n }\n byte d = (byte) b;\n this.data.add(d);\n }\n } else // support for other formats (eg. Double) may be added\n {\n throw new Exception(\"Specified argument for Data constructor contains Objects that are not supported yet\");\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n }",
"public List init(List list) {\n Iterator it = components.iterator();\n PortletComponent comp;\n while (it.hasNext()) {\n comp = (PortletComponent) it.next();\n comp.setTheme(theme);\n list = comp.init(list);\n }\n System.err.println(\"Made a components list!!!! \" + list.size());\n for (int i = 0; i < list.size(); i++) {\n ComponentIdentifier c = (ComponentIdentifier) list.get(i);\n System.err.println(\"id: \" + c.getComponentID() + \" : \" + c.getClassName() + \" : \" + c.hasPortlet());\n \n }\n componentIdentifiers = list;\n return componentIdentifiers;\n }",
"public Complex(String cStr){\r\n\t\tthis(cStr.replaceAll(\" \", \"\").split(\"(?=\\\\+)|(?=\\\\-)\")); // splits cStr at + or - into an array of strings having two elements\r\n\t\t// The first element of the resultant array will be the real portion, \r\n\t\t// while the second is the imaginary portion. This array is passed to the next constructor.\r\n\t}",
"public List<ConstructorInterceptor> modifyConstructorInterceptors(Constructor<?> constructor, List<ConstructorInterceptor> currentList);",
"public abstract Builder zza(List<String> list);",
"public NamedList() {\n\t\tnvPairs = new ArrayList<Object>();\n\t}",
"public MyHashTableCC(){\n\t\tm_arraylists = new MyArraylist[DIFF_CHARACTERS];\n\n\t\tfor (int i = 0; i < m_arraylists.length; i++){\n\t\t\tm_arraylists[i] = new MyArraylist();\n\t\t}\n\t}",
"ListType createListType();",
"public static <T> List<T> createList (T... args) {\n\tif (args == null) { return new ArrayList<T>(); };\n\treturn new ArrayList<T>(Arrays.asList(args));\n }",
"public List(String name) {\n super(name);\n children = new ArrayList<>();\n }",
"TypesOfConstructor(){\n System.out.println(\"This is default constructor\");\n }",
"private Constructor getConstructor() throws Exception {\r\n return type.getConstructor(Contact.class, label, Format.class);\r\n }",
"public Grid(ArrayList<String> headers) {\n }",
"private FplList() {\n\t\tshape = new FplValue[0][];\n\t}",
"public BaselineList(ArrayList<float[]> list) {\n\t\tthis.listNum = list.size();\n\t\tthis.capacity = listNum * 2;\n\t\tthis.list = new ArrayList<float[]>(list);\n\t}",
"public List()\n {\n list = new Object [10];\n }",
"public CSVList(String svl)\n\t{\n\t\tsuper(svl, sepReg, sep);\n\t}",
"HxMethod createConstructor(final HxType... parameterTypes);",
"public ArgList(Object[] argList) {\n this(argList, 0);\n }",
"public static NewExpression new_(Constructor constructor, Iterable<Expression> expressions) { throw Extensions.todo(); }",
"private static ImmutableList<Facet> generateFacetList(List<WorldCoord> vertexList)\r\n {\n return ShapeReader.getFacetsFromResource(RESOURCE, vertexList);\r\n }",
"public ArgList(Object arg1, Object arg2, Object arg3) {\n super(3);\n addElement(arg1);\n addElement(arg2);\n addElement(arg3);\n }",
"public static List<Course> createCourseList() {\n List<Course> courses = new ArrayList<Course>();\n courses.add(createCourse(\"12345\"));\n courses.add(createCourse(\"67890\"));\n return courses;\n }",
"public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }",
"StringList createStringList();",
"public List<Expression> constructorArguments() {\r\n\t\treturn this.constructorArguments;\r\n\t}",
"public OccList()\n {\n int capacity = 8;\n data = new Occ[capacity];\n // initialize data with empty occ\n for (int i=0; i<capacity; i++) data[i] = new Occ(); \n }",
"private ConstList(List<T> list) {\n this.list = list;\n }",
"public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}",
"public SortedList(){\n this(\"list\");\n }",
"public static void main(String[] args) {\n for(int i=0; i<10; i++){\n Constructor c=new Constructor (i);\n c.Constructor(\"Who\");\n \n } \n }",
"public Music(String...files){\n musicFiles = new ArrayList<AudioFile>();\n for(String file: files){\n musicFiles.add(new AudioFile(file));\n }\n }",
"public BasicElementList() {\n\t}",
"public static NewExpression new_(Constructor constructor, Iterable<Expression> expressions, Iterable<Member> members) { throw Extensions.todo(); }",
"public InternmentList() {\n\t\tsuper(\"Internments\", List.IMPLICIT);\n\n\t\tstartData();\n\t\tstartComponents();\n\t}",
"private String processConstructor() {\n int firstBracket = line.indexOf('(');\n //The substring of line after the bracket (inclusive)\n String parameters = line.substring(firstBracket);\n return \"A constructor \"+className+parameters+\" is created.\";\n }",
"@Test\n\tvoid test2ConstructorWithList() {\n\t\t// comp1.setHeight(500); this is now component 4\n\t\tlistItems.add(comp1);\n\t\t// comp3.setWidth(678); now component 5\n\t\tlistItems.add(comp2);\n\t\tlistItems.add(comp3);\n\t\tlistItems.add(comp4);\n\t\tlistItems.add(comp5);\n\t\tvc = new VerticalComponentList(x, y, listItems,0);\n\t\tassertEquals(comp5, vc.getComponentsList().get(4));\n\t\tassertTrue(this.x == vc.getX() && this.y == vc.getY() && 678 == vc.getWidth()\n\t\t\t\t&& (comp1.getHeight() + comp2.getHeight() + comp3.getHeight()) + comp4.getHeight()\n\t\t\t\t\t\t+ comp5.getHeight() == vc.getHeight());\n\t}",
"public ArrayList() { // constructs list with default capacity\n this(CAPACITY);\n }",
"public List<ACL> build() {\n List<ACL> result = new ArrayList<>();\n if (world != null) {\n result.add(world);\n }\n if (auth != null) {\n result.add(auth);\n }\n for (Map<String, ACL> m : asList(digests, hosts, ips)) {\n if (m != null) {\n result.addAll(m.values());\n }\n }\n return result;\n }",
"public void agregarCtor(EntradaCtor c, List<EntradaPar> parametros) throws Exception{\r\n\t\t//tengo el mapeo <int, Ctor> en tabla entradaCtor, donde int es el nombre del Ctor, y \r\n\t\t// esta determinado por la cantidad de parametros\r\n\t\tEntradaCtor ctor = entradaCtor.get(parametros.size()+\"\");\r\n\t\t\r\n\t\t//si mi ctor ya existe, veo si tiene la misma aridad. Si es asi -> error, Sino lo agrego\r\n\t\tif (ctor!= null) {\r\n\t\t\t//misma cant de parametros con algun constructor existente -> error\r\n\t\t\tfor (EntradaCtor eC: entradaCtor.values()) {\r\n\t\t\t\r\n\t\t\t\tif (eC.getEntradaParametros().size() == parametros.size())\r\n\t\t\t\t\tthrow new constructorExistente(c.getNombre(),c.getToken().getNroLinea(), c.getToken().getNroColumna());\r\n\t\t\t}\r\n\t\t}\r\n\t\t//sino, si tiene distinta aridad o no existia Ctor -> lo agrego, chequeando sus parametros\r\n\t\t// <K,V> donde K es cant de parametros y V es el constructor c a agregar\r\n\t\tentradaCtor.put(parametros.size()+\"\", c);\r\n\t\t//pongo la bandera en true\r\n\t\thayCtor=true;\r\n\t\t\r\n\t\tfor (EntradaPar p: parametros) {\r\n\t\t\t//si el Ctor no tiene parametros con ese nombre -> agrego el nuevo parametro p\r\n\t\t\tif (c.esVarMetodoDeclarado(p.getNombre())== null) {\r\n\t\t\t\tc.agregarParametro(p.getNombre(),p.getTipo(),p.getUbicacion(), p.getToken());\r\n\t\t\t}\r\n\t\t\t//sino, ya existe ese nombre de parametro -> error\r\n\t\t\telse\r\n\t\t\t\tthrow new parametroDeclaradoInvalido(p.getNombre(), p.getToken().getNroLinea(), p.getToken().getNroColumna());\r\n\t\t}\r\n\t}",
"public IcecreamCone(){\n this.flavors = new ArrayList(Arrays.asList(\"chocolate\", \"vanilla\", \"strawberry\", \n \"cookies and cream\", \"rocky road\", \n \"cookie dough\", \"butter pecan\", \"coffee\", \n \"cotton candy\", \"peanutbutter cup\", \"moose tracks\",\n \"mint chocolate chip\", \"salted caramel\", \"rum raisin\",\n \"cake batter\", \"butterscotch\", \"bubblegum\", \n \"orange serbert\", \"rainbow\", \"tutti frutti\", \n \"cinnamon toast crunch\", \"cilantro lime\"));\n }",
"MyContainer(ArrayList<T> myList){ // T refers to the generic type we are going to use\r\n\t\tthis.myList = myList;\r\n\t\t\r\n\t}",
"public Curriculum(ArrayList<Fase> fasen, int aantalFasen) {\r\n for (int i = 0; i < aantalFasen; i++) {\r\n this.allefasen.add(fasen.get(i));//voegt alle fasen toe aan het curriculum\r\n }\r\n\r\n }",
"public CaseInsensitiveElementList() {\n this((Locale)null);\n }",
"public AudioList(){}",
"public Graph(ArrayList<Town> verticesList){\n\t\tthis.vertices = new HashMap<String, Vertex>();\n\t\tthis.edges = new HashMap<Integer, Edge>();\n\t\t\n\t\tfor(Town v : verticesList){\n\t\t\tthis.vertices.put(v.getName(), v);\n\t\t}\n\t}",
"public VectorLinearList()\n {// use default capacity of 10\n this(10);\n }",
"public Mesh(ArrayList<Vertex> inputVertices, ArrayList<Triangle> inputFaces) {\r\n \tthis.surfaceAreaMethods.add(Object3D.MESH_SA);\r\n \tthis.volumeMethods.add(Object3D.MESH_VOL);\r\n \t\r\n vertices = inputVertices;\r\n tris = inputFaces;\r\n }",
"public Person(String name, ArrayList<String> pnArray) {\n\n\t}",
"public CoordinateObjects(List<T> points) {\n this.points = new ArrayList<>(points);\n }",
"public TextInputList() {\n\n\t}",
"Constructor(int i,String n ,int x){ //taking three parameters which shows that it is constructor overloaded\r\n\t\t id = i; \r\n\t\t name = n; \r\n\t\t marks =x; \r\n\t\t }",
"public InitListExpr(DataStore data, Collection<? extends ClavaNode> children) {\n super(data, children);\n\n // isOldFormat = false;\n // this.data = null;\n }",
"protected ParameterList(){\n //title = t;\n //cellWorld = cw;\n }"
]
| [
"0.7417797",
"0.6170489",
"0.61074245",
"0.6023596",
"0.58698916",
"0.5719787",
"0.56460834",
"0.5551555",
"0.55499",
"0.5505194",
"0.54399526",
"0.54394495",
"0.54173166",
"0.5409429",
"0.5405652",
"0.53693587",
"0.53467256",
"0.53291756",
"0.53265333",
"0.5311183",
"0.530819",
"0.5279361",
"0.5277791",
"0.52656996",
"0.52431554",
"0.5212886",
"0.5210927",
"0.5196827",
"0.51921815",
"0.5177419",
"0.5173212",
"0.51542324",
"0.51515216",
"0.51329666",
"0.51248866",
"0.5121346",
"0.51195884",
"0.51131153",
"0.5102098",
"0.5097508",
"0.5095254",
"0.50907135",
"0.5089194",
"0.50165",
"0.5014387",
"0.5014341",
"0.50140554",
"0.50113916",
"0.5011116",
"0.50103754",
"0.50052804",
"0.4999235",
"0.4992595",
"0.4986946",
"0.49821976",
"0.4979226",
"0.49743116",
"0.49621403",
"0.49509773",
"0.49225235",
"0.49132636",
"0.4908383",
"0.4903074",
"0.49014503",
"0.49008998",
"0.48981702",
"0.4891482",
"0.48889422",
"0.4887345",
"0.48844364",
"0.487941",
"0.4877965",
"0.48643923",
"0.4862305",
"0.4851786",
"0.48434824",
"0.48325256",
"0.48281026",
"0.48221886",
"0.48199394",
"0.48150867",
"0.48097348",
"0.48060372",
"0.48040098",
"0.48022643",
"0.4801121",
"0.47967708",
"0.4796295",
"0.4791496",
"0.47859588",
"0.47833085",
"0.4780555",
"0.47798198",
"0.4776252",
"0.47716653",
"0.47650036",
"0.47609574",
"0.4759245",
"0.47555095",
"0.47494116"
]
| 0.68548226 | 1 |
List of methods. Returns a String representing the name of the list. | public String getName() {
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();",
"public List<IMethod> getMethods();",
"public List<IMethod> getMethods();",
"List<Method> getAllMethods();",
"public List<ServiceMethod> getMethodList()\n {\n return Collections.unmodifiableList(methods);\n }",
"public String[] getMethods() {\n\t\treturn methods;\n\t}",
"java.util.List<org.mojolang.mojo.lang.FuncDecl> \n getMethodsList();",
"public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }",
"public List<String> getMethodList() throws CallError, InterruptedException {\n return (List<String>)service.call(\"getMethodList\").get();\n }",
"public List<Method> getMethod_list() {\n\t\treturn arrayMethods;\n\t}",
"public abstract String[] getMethodNames();",
"public List<String> getMethodList() throws DynamicCallException, ExecutionException {\n return (List<String>)call(\"getMethodList\").get();\n }",
"@Override\n public String getName() {\n return \"list\";\n }",
"public Future<List<String>> getMethodList() throws DynamicCallException, ExecutionException {\n return call(\"getMethodList\");\n }",
"public String enumerateMethods(){\n Class c = EvaluatingStudent.class; // replace this with your choice, e.g. CreatingStudent.class\n Method[] methods = c.getMethods();\n String result = \"\";\n for(int i = 0; i < methods.length; i++) {\n result += methods[i].toString() + '\\n';\n }\n return result;\n }",
"public java.util.List getColumnNamesMethods() {\n\t\treturn Arrays.asList(columnNamesMethodsTable);\n\t}",
"ISourceMethod[] getMethods();",
"public String getFunctions();",
"public static MethodClass getMethods (){\n\t\treturn methods;\n\t}",
"public ArrayList<Method> getMethods() {\n\t\treturn arrayMethods;\n\t}",
"public Enumeration getMethods()\n {\n ensureLoaded();\n return m_tblMethod.elements();\n }",
"public String toString() {\n\t\treturn methodName;\n\t}",
"@Override\n\tpublic String[] getMethods() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic String[] getMethodNames() {\n\t\treturn this.methodNames;\r\n\t\t//未实现\r\n\t}",
"List<MethodNode> getMethods() {\n return this.classNode.methods;\n }",
"java.util.List<? extends org.mojolang.mojo.lang.FuncDeclOrBuilder> \n getMethodsOrBuilderList();",
"public String list() {\n final StringBuilder list = new StringBuilder(\"Here are the tasks in your list:\\n\\t\");\n records.forEach((el) -> list.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n records.indexOf(el) + 1, el.toString())));\n return list.toString();\n }",
"@Override\n\tpublic StringList getNames() {\n\t\tStringList ss = new StringList();\n\t\tss.add(\"java\");\n\t\treturn ss;\n\t}",
"String getMethodName();",
"String getMethodName();",
"private String getName() {\n return method.getName();\n }",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"public TreeMap<String,CheckOutMethod>\n getMethods()\n {\n TreeMap<String,CheckOutMethod> methods = new TreeMap<String,CheckOutMethod>();\n for(String name : pVersionFields.keySet()) {\n JCollectionField field = pMethodFields.get(name);\n methods.put(name, CheckOutMethod.values()[field.getSelectedIndex()]);\n }\n return methods;\n }",
"public Set<AbstractProgramData<?>> getMethods()\n {\n return this.methods;\n }",
"public ArrayList<String> getNullMethods() {\n\t\treturn methods;\n\t}",
"java.util.List<java.lang.String>\n getCommandList();",
"List<String> getCommands();",
"public List getMethodLines() {\n return methodLines;\n }",
"public static java.util.List getOperationDescByName(java.lang.String methodName) {\r\n return (java.util.List)_myOperations.get(methodName);\r\n }",
"@GetMapping(\"/methods\")\n @Timed\n public List<MethodsDTO> getAllMethods() {\n log.debug(\"REST request to get all Methods\");\n return methodsService.findAll();\n }",
"@Override\r\n\tpublic List<Method> getMethods(File f) {\n\t\tEolModule module = new EolModule();\r\n\t\treturn this.getMethods(f, module);\r\n\t}",
"public static void methodReference(List<String> list) {\n System.out.println(\"ForEach.functionalInterface\");\n list.forEach(System.out::println);\n }",
"public List<ResourceMethod> getResourceMethods() {\n return resourceMethods;\n }",
"public static void printProfilingMethodList(){\r\n for(Map.Entry entry: Instrumentations.profiledMethodMap.entrySet()){\r\n for(String s: (ArrayList<String>)entry.getValue()){\r\n System.out.println(\"Class: \" + entry.getKey() + \", method: \" + s);\r\n }\r\n }\r\n }",
"public String showList() {\n String listMessage = \"Here yer go! These are all your tasks!\";\n return listMessage;\n }",
"public static ArrayList<String> commandList() {\n\r\n\t\tArrayList<String> commands = new ArrayList<String>();\r\n\r\n\t\tcommands.add(\"/HELP\");\r\n\t\tcommands.add(\"/QUIT\");\r\n\t\tcommands.add(\"/REMOVE\");\r\n\t\tcommands.add(\"/BAN\");\r\n\t\tcommands.add(\"/BANIP\");\r\n\t\tcommands.add(\"/REMOVEIP\");\r\n\t\tcommands.add(\"/CLEAR\");\r\n\t\tcommands.add(\"/SHOW\");\r\n\t\tcommands.add(\"/WARN\");\r\n\r\n\t\treturn commands;\r\n\t}",
"public String toString() {\r\n String output = \"\";\r\n int index = 0;\r\n output = getName() + \"\\n\\n\";\r\n while (index < list.size()) {\r\n output += (list.get(index) + \"\\n\\n\");\r\n index++;\r\n }\r\n return output;\r\n }",
"public Enumeration getMethodNames()\n {\n final EnumerationUnion eu = new EnumerationUnion();\n if( methods != null )\n {\n eu.add( methods.keys() );\n }\n if( ancestors != null )\n {\n final int size = ancestors.size();\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n eu.add( clazz.getMethodNames() );\n }\n }\n try\n {\n final ScriptingClass object = getClassLoader().load( \"object\" );\n eu.add( object.getMethodNames() );\n }\n catch( ScriptingClassNotFoundException e )\n {\n }\n return eu;\n }",
"public abstract Set<MethodUsage> getDeclaredMethods();",
"org.mojolang.mojo.lang.FuncDecl getMethods(int index);",
"public static List<Map<String, Object>> getMethods(Map<String, Object> model) {\n @SuppressWarnings(\"unchecked\")\n List<Map<String, Object>> methods = (List<Map<String, Object>>) getRoot(model).get(ModelConstant.METHODS);\n return methods;\n }",
"List<String> getCommandDescription();",
"List<CommandInfo> list();",
"public List<MethodInfo> getMethod(String methodName) {\n List<MethodInfo> matchedMethodInfo = new ArrayList<MethodInfo>();\n for (MethodInfo method : this.lstMethodInfo) {\n if (methodName.equals(method.getName())) {\n matchedMethodInfo.add(method);\n }\n }\n \n return matchedMethodInfo;\n }",
"public String listPatterns() {\n return \"Full list of patterns\";\n }",
"String getMethod();",
"String getMethod();",
"@Override\n public ServiceResponse listMethods(final ServiceRequest request) throws SOAPException {\n return this.soapClient.listMethods(request, this.getTargetUrl());\n }",
"public String getMethodName() {\n return methodName;\n }",
"public String getMethodName() {\n return methodName;\n }",
"List<String> getQualifiedName();",
"@Nonnull List<String> getNameList();",
"public String getMethodName() {\r\n return _methodName;\r\n }",
"public final synchronized String list()\r\n { return a_info(true); }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Lista de todos los Inmuebles\";\n\t}",
"public static void main(String[] args) {\n Class student = Student.class;\n Method[] methods = student.getDeclaredMethods();\n ArrayList<String> methodList = new ArrayList<>();\n for (Method method : methods) {\n methodList.add(method.getName());\n }\n Collections.sort(methodList);\n for (String name : methodList) {\n System.out.println(name);\n }\n }",
"public java.beans.MethodDescriptor[] getMethodDescriptors() {\n\ttry {\n\t\tjava.beans.MethodDescriptor aDescriptorList[] = {\n\t\t\tclearMethodDescriptor()\n\t\t\t,main_javalangString__MethodDescriptor()\n\t\t\t,toggleVisibilityMethodDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}",
"public String toDetailedString() {\n \t\tStringJoiner joiner = new StringJoiner(\"\\r\\n\");\n \t\tfor (MethodInfo method : methods) {\n \t\t\tjoiner.add(method.toString());\n \t\t}\n \t\treturn joiner.toString();\n \t}",
"public List<WjrMethodItem> getMethodItems() {\r\n return new ArrayList<WjrMethodItem>(methodItems.values());\r\n }",
"public List<String> description() {\n return Arrays.asList(new String[]{\"Default Description : Its a Performance Function\"});\n }",
"Collection<String> getVoicedCommandList();",
"private static MethodDescriptor[] getMdescriptor(){\n MethodDescriptor[] methods = new MethodDescriptor[1];\n \n try {\n methods[METHOD_toString0] = new MethodDescriptor(org.yccheok.jstock.gui.MutableStock.class.getMethod(\"toString\", new Class[] {})); // NOI18N\n methods[METHOD_toString0].setDisplayName ( \"\" );\n }\n catch( Exception e) {}//GEN-HEADEREND:Methods\n // Here you can add code for customizing the methods array.\n\n return methods; }",
"public Set<String> getRegisteredFunctions();",
"public MethodDeclaration[] getMethods() {\n return m_classBuilder.getMethods();\n }",
"public\tList<JsClass.Method>\tgetAddedMethods() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.addedMethods);\n\t}",
"public com.google.protobuf.ProtocolStringList\n getInstrumentedOpsList() {\n return instrumentedOps_.getUnmodifiableView();\n }",
"public String getListName() {\n\t\treturn m__listName;\n\t}",
"public String getMethod ()\n {\n return method;\n }",
"public HashMap<String, LabTest> getMethods() {\n HashMap<String, LabTest> methods = new HashMap<>();\n if (isApiAvailable(\"getMethods\")) {\n makeConnection(\"getMethods\");\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n String inputLine = null;\n StringBuilder content = new StringBuilder();\n while (true) {\n try {\n assert in != null;\n if ((inputLine = in.readLine()) == null) break;\n } catch (IOException e) {\n e.printStackTrace();\n }\n content.append(inputLine);\n }\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n String jsonstring = content.toString();\n jsonArray = new JSONArray(jsonstring);\n for (int i = 0; i < jsonArray.length(); i++) {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n JsonObject jsonObject = gson.fromJson(String.valueOf(jsonArray.get(i)), JsonObject.class);\n LabTest method = makeMethod(jsonObject);\n methods.put(method.getNameOfMethod(), method);\n }\n con.disconnect();\n }\n return methods;\n }",
"public String printList() {\n\n\t\treturn plan.toString();\n\t}",
"@SuppressWarnings(\"rawtypes\")\n\tpublic ArrayList getMethodStructures(){\n\t\treturn methodStructures;\n\t}",
"public String getMethodName() {\n\t\t\treturn methodName;\n\t\t}",
"public List<String> getCommands()\n\t{\n\t\treturn commands;\n\t}",
"@Override\n public String[] listAll() {\n return list();\n }",
"public String getMethodName() {\n\t\treturn this.methodName;\n\t}",
"public String getMethodName() {\n\t\treturn this.methodName;\n\t}",
"public java.lang.String getListName() {\r\n return listName;\r\n }",
"public String getMethodName() {\n\t\treturn methodName;\n\t}",
"public\tList<ChangedJsMethod>\tgetChangedMethods() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.changedMethods);\n\t}",
"public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\");\n System.out.println(\" To add an event: \\\"event {Name of task} /at {date} \\\" \\\");\");\n System.out.println(\" To add an item in todo: \\\"todo {Name of task}\\\" \");\n System.out.println(\" To list out all tasks that you have entered: \\\"list\\\"\");\n System.out.println(\" To filter task by date: \\\"list {date}\\\"\");\n System.out.println(\" To mark a task as completed: \\\"done {index of task in list}\\\"\");\n System.out.println(\" To delete a task: \\\"delete {index of task in list}\\\"\");\n System.out.println(\" To find a task: \\\"find {keyword to be searched }\\\"\");\n printLine();\n }",
"public String getName() {\n return nameRule.getMethodName();\n }",
"@Override\n public String getMethod() {\n return METHOD_NAME;\n }",
"java.util.List<UserFunction>\n getUserFunctionsList();",
"public String getFullName() {\n return getFullMethodName(method);\n }",
"public String listTitle();",
"private void addMethods(StringBuilder xml) {\n\t\t\n\t\tfor(MethodRequest method : methods) {\n\t\t\tstartElementWithAttributes(xml, \"Method\");\n\t\t\taddStringAttribute(xml, \"name\", method.getName());\n\t\t\taddStringAttribute(xml, \"contextObject\", method.getContextObject());\n\t\t\tcloseSimpleElementWithAttributes(xml);\n\t\t}\n\t\t\n\t}",
"public String toString() {\r\n \r\n String resultn = \"\";\r\n int index = 0;\r\n while (index < list.size()) {\r\n resultn += \"\\n\" + list.get(index) + \"\\n\"; \r\n index++; \r\n } \r\n return getName() + \"\\n\" + resultn + \"\\n\";\r\n \r\n }"
]
| [
"0.7365527",
"0.7044263",
"0.7044263",
"0.69506437",
"0.6830249",
"0.6823973",
"0.6776593",
"0.6773323",
"0.6669991",
"0.6628715",
"0.66164094",
"0.654714",
"0.6493892",
"0.6489884",
"0.6467349",
"0.6435191",
"0.6333945",
"0.627984",
"0.62223583",
"0.6187025",
"0.61759025",
"0.6113634",
"0.60810435",
"0.6017006",
"0.6005987",
"0.59537196",
"0.5929713",
"0.5921017",
"0.59198624",
"0.59198624",
"0.59003204",
"0.5842235",
"0.5842235",
"0.5842235",
"0.5842235",
"0.5832889",
"0.58328027",
"0.5809988",
"0.5792694",
"0.5781955",
"0.5739223",
"0.57288533",
"0.5699601",
"0.56882495",
"0.568523",
"0.56847054",
"0.5674587",
"0.5665378",
"0.566147",
"0.5658039",
"0.5644012",
"0.56349546",
"0.56109595",
"0.56082207",
"0.5588192",
"0.55567163",
"0.5555897",
"0.5550635",
"0.5550537",
"0.5550537",
"0.55390817",
"0.55387074",
"0.55387074",
"0.55287904",
"0.55224913",
"0.55164",
"0.55132306",
"0.55015707",
"0.5498063",
"0.54873854",
"0.54785526",
"0.547004",
"0.54570854",
"0.54283124",
"0.54237086",
"0.54212105",
"0.54036933",
"0.5400449",
"0.5388468",
"0.5384775",
"0.5360002",
"0.53529334",
"0.5349442",
"0.53493327",
"0.5346134",
"0.53396857",
"0.53338975",
"0.53295124",
"0.53295124",
"0.5327891",
"0.5324928",
"0.5320739",
"0.5318966",
"0.53160405",
"0.5310298",
"0.53096086",
"0.5307815",
"0.53037393",
"0.53015953",
"0.5299059"
]
| 0.5875125 | 31 |
Returns an int representing the number of Icosahedron objects in the IcosahedronList. If there are zero Icosahedron objects in the list, zero is returned. | public int numberOfIcosahedrons() {
return icosList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int size() {\n\t\tint numElements = 0;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (list[i] != null) {\n\t\t\t\tnumElements++;\n\t\t\t}\n\t\t}\n\t\treturn numElements;\n\t}",
"public int numberOfEllipsoids() { \r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n return list.size(); \r\n }",
"public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }",
"public int count() {\n\t\tint q = 0;\n\t\tfor(int i = 0; i < list.length; i++) if (list[i] != null) q++;\n\t\treturn q;\n\t\t\n\t}",
"public int size()\n\t{\n\t\treturn creatures.size();\n\t}",
"public int size()\n {\n if(_list!=null)\n return _list.size();\n return 0;\n }",
"public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }",
"public int size() {\n return list.size();\n }",
"public int size() {\n\t\treturn list.size();\n\t}",
"public int size()\n\t{\n\t\treturn list.size();\n\t}",
"public int size()\n\t{\n\t\treturn list.size();\n\t}",
"public int size()\n {\n return list.size();\n }",
"public int size() {\n return list.size();\n }",
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"public int size() {\n\t\t\treturn gameObjects.size();\n\t\t}",
"public int size(){\n\t\treturn list.size();\n\t}",
"public int size(){\n\t\treturn list.size();\n\t}",
"int getFigureListCount();",
"public int size() {\n\t return list.size();\n }",
"public int length()\n {\n if(integerList == null)\n return 0;\n else\n return integerList.length;\n }",
"@Override\n\tpublic int size() {\n\t\t\n\t\treturn list.size();\n\t}",
"public int getNumObjects(){\n return numObjects;\n }",
"public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}",
"public int getSize() {\n return list.size();\n }",
"public int getSize() {\n\t\t\treturn objects.size();\n\t\t}",
"public int getFigureListCount() {\n return figureList_.size();\n }",
"public int size() {\n\t\treturn vertices.size();\n\t}",
"public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}",
"public int getFigureListCount() {\n return figureList_.size();\n }",
"public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }",
"public int getNumVertices();",
"public int getSize() \r\n {\r\n return list.size();\r\n }",
"public int size(){\n return list.size();\n }",
"public int size()\r\n {\r\n return nItems;\r\n }",
"@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }",
"public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}",
"public final int size()\n {\n return m_count;\n }",
"public static int count() {\n return segmentList.size();\n }",
"public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}",
"public int getSize()\n {\n return pList.size();\n }",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\r\n // TODO\r\n return 0;\r\n }",
"public int size()\r\n {\r\n return count;\r\n }",
"public int size() {\n\t\treturn count;\n\t}",
"public int size() {\n\t\treturn count;\n\t}",
"public int size() {\n\t\treturn count;\n\t}",
"public int size() {\n return nItems;\n }",
"public int size() {\r\n return N;\r\n }",
"public int getUnitCount() {\n return _elements.length;\n }",
"public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }",
"public int size(){\n\n \treturn list.size();\n\n }",
"public int size() {\n return tempoList.size();\n }",
"public int getSpineInstanceCount() {\n if (spineInstanceList == null) {\n return 0;\n }\n return spineInstanceList.size();\n }",
"public int size() {\n return count;\n }",
"public int size()\n\t\t{\n\t\treturn N;\n\t\t}",
"public int getSize () {\n return this.list.size();\n }",
"public int getCount() {\n\t\t\treturn list.size();\r\n\t\t}",
"@Override\n public int size() {\n return list.size();\n }",
"public int size() {\n\t\treturn pointList.size();\n\t}",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"int getNumberOfVertexes();",
"public int numVertices();",
"public int numVertices();",
"public int size() {\n return lists.getSize();\n }",
"public int size() {\n \t\n \tint i = 0;\n \t\n \twhile(this.front != null) {\n \t\ti = i+1;\n \t\tthis.front = this.front.next; \n \t}\n \t\n \treturn i;\n \t\n }",
"public int size()\n {\n return N;\n }",
"public int getNumberOfVertices();",
"public int getCount() {\n return objects.size();\n }",
"public int size() {\r\n\t\tthis.size= 0;\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tthis.size += item.size();\r\n\t\t}\r\n\t\treturn this.size;\r\n\t}",
"public int size()\n {\n return count;\n }",
"public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}",
"public int count() {\n\t\treturn sizeC;\n\t}",
"public int size() {\n // recursive approach seems more perspicuous\n if( headReference == null) return 0;\n else return size( headReference);\n }",
"public int size() {\n return this.wellsets.size();\n }",
"public int size() {\n return numItems;\n }",
"public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}",
"public int getNumOfFloors(){\n return floors.size();\n }",
"Long getNumberOfElement();",
"public int size()\n\t{\n\t\treturn listSize;\n\t}",
"public Integer count() {\n\t\tif(cache.nTriples != null)\n\t\t\treturn cache.nTriples;\n\t\treturn TripleCount.count(this);\n\t}",
"public int size() {\n\t return N;\n\t }",
"public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}",
"public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}",
"public int size() {\n\t\treturn collection.size();\n\t}",
"public synchronized int size(){\n return list.size();\n }",
"public int size() {\n return collection.size();\n }",
"public final int size() {\n int size = 0;\n final Iterator iterator = this.iterator();\n while (iterator.hasNext()) {\n size++;\n iterator.next();\n }\n return size;\n }",
"int sizeOfObjectDefinitionArray();",
"public int size() {\n return this.container.length;\n }",
"public int getListSize() {\n return getRootNode().getItems().size();\n }"
]
| [
"0.68961203",
"0.6878877",
"0.6837006",
"0.67511916",
"0.67291397",
"0.6714151",
"0.66655886",
"0.66369987",
"0.6606443",
"0.6593741",
"0.6593741",
"0.6588188",
"0.6584741",
"0.65795684",
"0.6542965",
"0.6540425",
"0.6540425",
"0.65219766",
"0.6503141",
"0.6470212",
"0.6452465",
"0.6451114",
"0.64310884",
"0.6419542",
"0.64163876",
"0.64150745",
"0.64012253",
"0.63884026",
"0.6381472",
"0.63761544",
"0.6371809",
"0.6366195",
"0.6358046",
"0.63455355",
"0.6344266",
"0.63278615",
"0.6312421",
"0.630551",
"0.63016397",
"0.6298886",
"0.62952185",
"0.62952185",
"0.62952185",
"0.62952185",
"0.62952185",
"0.6293952",
"0.6292781",
"0.6289195",
"0.6289195",
"0.6289195",
"0.62871754",
"0.62847173",
"0.6284096",
"0.62820536",
"0.6280219",
"0.62761885",
"0.6274084",
"0.6271395",
"0.62661034",
"0.62657315",
"0.6264604",
"0.62639534",
"0.62635654",
"0.62632334",
"0.62632334",
"0.62632334",
"0.62632334",
"0.62632334",
"0.62632334",
"0.62632334",
"0.6261528",
"0.6261055",
"0.6261055",
"0.6257438",
"0.6255431",
"0.6248287",
"0.6246593",
"0.62461627",
"0.6245811",
"0.62427056",
"0.62354064",
"0.62257665",
"0.62257195",
"0.62221783",
"0.6218403",
"0.6207902",
"0.62030065",
"0.62022066",
"0.61931336",
"0.61887586",
"0.61877114",
"0.6185212",
"0.61745477",
"0.6174073",
"0.6167361",
"0.61670923",
"0.6166415",
"0.61607325",
"0.6158433",
"0.61557674"
]
| 0.85377276 | 0 |
Returns a double representing the total surface areas for all Icosahedron objects in the list. If there are zero Icosahedron objects in the list, zero is returned. | public double totalSurfaceArea() {
int index = 0;
double total = 0.0;
while (index < icosList.size()) {
total += icosList.get(index).surfaceArea();
index++;
}
return total;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double totalSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return total;\r\n }",
"public double totalSurfaceArea() {\r\n int index = 0;\r\n double listTotalSurfaceArea = 0;\r\n while (index < list.size()) {\r\n listTotalSurfaceArea += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return listTotalSurfaceArea;\r\n }",
"public double averageSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n return total;\r\n }",
"public double averageSurfaceArea() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalSurfaceArea() / numberOfIcosahedrons();\n }\n }",
"public double averageSurfaceArea() {\r\n double listAvgSurfaceArea = 0.0;\r\n if (list.size() != 0) {\r\n listAvgSurfaceArea = totalSurfaceArea() / list.size();\r\n }\r\n return listAvgSurfaceArea;\r\n }",
"public double averageSurfaceToVolumeRatio() {\n int index = 0;\n double total = 0.0;\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceToVolumeRatio();\n index++;\n }\n }\n return total / icosList.size();\n }",
"public double getTotalArea () {\n double total = 0.;\n for (Shape s : polygons) {\n total += Util.area(s);\n }\n\n if (resolution != null) {\n total /= resolution;\n }\n return total;\n }",
"@Override\n\tpublic float surfaceArea() {\n\t\tfloat area = (float) (4 * Math.PI * Math.pow(this.radius, 2));\n\t\treturn area;\n\t}",
"private double getArea(List<Point> points){\n double result = 0.0;\n int n = points.size();\n for (int i = 0; i < n; i++) {\n if (i == 0) {\n result += points.get(i).x * (points.get(n - 1).z - points.get(i + 1).z);\n } else if (i == (n - 1)) {\n result += points.get(i).x * (points.get(i - 1).z - points.get(0).z);\n } else {\n result += points.get(i).x * (points.get(i - 1).z - points.get(i + 1).z);\n }\n }\n return Math.abs(result) / 2.0;\n }",
"public double surfaceArea()\r\n {\r\n double surfaceArea = baseArea() + sideArea();\r\n return surfaceArea;\r\n }",
"public abstract float surfaceArea();",
"public int numberOfIcosahedrons() {\n return icosList.size();\n }",
"public double calculateSurfaceArea() {\n double surfaceArea = 2 * this.getLength() * this.getWidth() +\n 2 * this.getLength() * this.getHeight() +\n 2 * this.getWidth() * this.getHeight();\n return surfaceArea;\n }",
"@Test public void surfaceAreaTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(79.63814556339793, pList.totalSurfaceArea(), 0.00001);\n Assert.assertEquals(26.546048521132644, pList.averageSurfaceArea(), \n 0.00001);\n \n PentagonalPyramidList2 pList2 = new PentagonalPyramidList2(\"ListName\", \n null, 0);\n Assert.assertEquals(0.0, pList2.averageSurfaceArea(), \n 0.00001);\n \n }",
"public int calculateSurfaceArea() {\n return 6 * (int) (Math.pow(this.sideLength, 2));\n }",
"public double surfaceArea() {\n final int six = 6;\n return six * Math.pow(sideLength, 2);\n }",
"public double surfaceArea() {\n\treturn (2*getWidth()*getHeight()) + (2*getHeight()*depth) + (2*depth*getWidth());\n }",
"@Override\n\tpublic float surfaceArea() {\n\t\treturn (float) (4* Math.PI * Math.pow(radius, 2));\n\t}",
"private double SurfaceArea() {\n\t\tdouble surfaceArea = 4f * Math.PI * Math.pow(_radius, 2);\n\t\treturn surfaceArea;\n\t}",
"public int numberOfEllipsoids() { \r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n return list.size(); \r\n }",
"public double getSurfaceArea() {\n\n return surfaceArea;\n }",
"@Override\n\tpublic double getArea(){\n\t\tdouble ab_ac_area = get_triangle_area(getVector_AB(),getVector_AC());\n\t\t\n\t\t//area of vector ac and ad\n\t\tdouble ac_ad_area = get_triangle_area(getVector_AC(),getVector_AD());\n\t\t\n\t\t//area of vector ab and ad\n\t\tdouble ab_ad_area = get_triangle_area(getVector_AC(),getVector_AD());\n\t\t\n\t\t//area of vector bc and bd\n\t\tdouble bc_ad_area = get_triangle_area(getVector_BC(),getVector_BD());\n\t\t\n\t\t//sum \n\t\treturn ab_ac_area + ac_ad_area + ab_ad_area + bc_ad_area;\n\t}",
"public double area() {\n\t\tif (area != 0)\n\t\t\treturn area;\n\n\t\tPoint current = vertices.get(0);\n\t\tfor (int i = 1; i < vertices.size(); i++) {\n\t\t\tPoint next = vertices.get(i);\n\t\t\tarea += current.crossProduct(next);\n\t\t\tcurrent = next;\n\t\t}\n\n\t\torientation = area > 0 ? \"CCW\" : \"CW\";\n\t\tarea = Math.abs(area / 2);\n\n\t\treturn area;\n\t}",
"@Override\n public float getArea() {\n int wart = 0;\n if (!roomList.isEmpty()){\n for (Room room : roomList){\n if (room instanceof Localization){\n wart += room.getArea();\n }\n }\n\n }\n return wart;\n }",
"@Override\n public double getArea() {\n double s = (a + b + c) / 2;\n return Math.sqrt(s * (s - a) * (s - b) * (s - c));\n }",
"public double getCylinderSurfaceArea();",
"private static double computeArea(Point3d[] centers3d) {\n assert centers3d.length == 3;\n Point2d[] centers = new Point2d[] {\n centers3d[0].projectOnY(),\n centers3d[1].projectOnY(),\n centers3d[2].projectOnY()\n };\n Point2d[] vertices = new Point2d[] {\n centers[0].add(centers[1]).add(centers[2]),\n centers[0].add(centers[1]).sub(centers[2]),\n centers[0].sub(centers[1]).add(centers[2]),\n centers[0].sub(centers[1]).sub(centers[2]),\n centers[0].neg().add(centers[1]).add(centers[2]),\n centers[0].neg().add(centers[1]).sub(centers[2]),\n centers[0].neg().sub(centers[1]).add(centers[2]),\n centers[0].neg().sub(centers[1]).sub(centers[2])\n };\n List<Point2d> hull = createConvexHull(vertices);\n double area = 0;\n for (int i = 0; i < hull.size() - 1; i++) {\n area += hull.get(i).x * hull.get(i + 1).y;\n }\n area += hull.get(hull.size() - 1).x * hull.get(0).y;\n for (int i = 0; i < hull.size() - 1; i++) {\n area -= hull.get(i).y * hull.get(i + 1).x;\n }\n area -= hull.get(hull.size() - 1).y * hull.get(0).x;\n area *= 0.5;\n return area;\n }",
"public double area()\n {\n return PdVector.area(p1, p2, p3);\n }",
"public static double calculateVolume(List<Triangle3D> triangles){\n double sum = 0;\n for(Triangle3D triangle: triangles){\n double[] r1 = triangle.getCoordinates(0);\n double[] r2 = triangle.getCoordinates(1);\n double[] r3 = triangle.getCoordinates(2);\n sum += (\n - r3[0]*r2[1]*r1[2] + r2[0]*r3[1]*r1[2] + r3[0]*r1[1]*r2[2]\n - r1[0]*r3[1]*r2[2] - r2[0]*r1[1]*r3[2] + r1[0]*r2[1]*r3[2]\n )/6.0;\n }\n return sum;\n }",
"public int getAreaCount() {\n return area_.size();\n }",
"public int getAreaCount() {\n return area_.size();\n }",
"public int getAreaCount() {\n return area_.size();\n }",
"public abstract double getSurfacearea();",
"static int surfaceArea(int[][] grid) {\n int sum = 0;\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[i].length; j++) {\n if (grid[i][j] != 0) {\n sum += ((grid[i][j] * 4) + 2);\n }\n if (i - 1 >= 0) sum -= Math.min(grid[i - 1][j], grid[i][j]) * 2;\n if (j - 1 >= 0) sum -= Math.min(grid[i][j - 1], grid[i][j]) * 2;\n }\n }\n return sum;\n }",
"public double getArea(){\n double p = (side1 + side2 + side3) / 2;\n return Math.sqrt(p * (p - side1) * (p - side2) * (p - side3));\n }",
"@Override\n\tpublic double getArea() {\n\t\tdouble p = getPerimeter() / 2;\n\t\tdouble s = p * ((p - side1) * (p - side2) * (p - side3));\n\t\tdouble Area = Math.sqrt(s);\n\t\treturn Area;\n\t}",
"public void getArea() {\n\t\ts = (double) (a + b + c) / 2;\n\t\tarea = Math.sqrt(s * (s - a) * (s - b) * (s - c));\n\t\tSystem.out.println(\"Area: \" + area);\n\t}",
"public double area() \n {\n double area = 0;\n for (Line2D line : lines) \n {\n area += line.getP1().getX() * line.getP2().getY();\n area -= line.getP2().getX() * line.getP1().getY();\n }\n area /= 2.0;\n return Math.abs(area);\n }",
"public static float countPolygonSurface(List<Point2D.Float> points) {\n\n\t\t// surface_part1 and surface_part2 are parts of the surface of polygon\n\t\tfloat surface = 0, surface_part1 = 0, surface_part2 = 0;\n\n\t\tint n = points.size();\n\t\tint j = 0;\n\n\t\t// area of irregular polygon formula\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tj = (i + 1) % n;\n\t\t\tsurface_part1 += points.get(i).x * points.get(j).y;\n\t\t\tsurface_part2 += points.get(i).y * points.get(j).x;\n\t\t}\n\t\tsurface = (surface_part1 - surface_part2) / 2;\n\n\t\t// absolute value from surface\n\t\tif (surface < 0) { surface = surface * -1;}\n\t\t\n\t\treturn surface;\n\t}",
"public double Area() {\n return OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_Area(swigCPtr, this);\n }",
"public double getArea() { return Math.sqrt(s * (s - d12) * (s - d23) * (s - d31)); }",
"int getAreaCount();",
"int getAreaCount();",
"int getAreaCount();",
"public double getArea();",
"public double getArea();",
"public double getArea();",
"@Override\n public float getCube() {\n\n int wart = 0;\n if (!roomList.isEmpty()){\n for (Room room : roomList){\n if (room instanceof Localization){\n wart += room.getCube();\n }\n }\n }\n return wart;\n }",
"public double area() {\n double sum = 0.0;\n for (int i = 0; i < N; i++) {\n sum = sum + (a[i].x * a[i+1].y) - (a[i].y * a[i+1].x);\n }\n return 0.5 * sum;\n }",
"double getArea();",
"double getArea();",
"private void calculateAreas() {\n\n\t\t/*\n\t\t * Each section is a trapezoid, so that the area is given by:\n\t\t * \n\t\t * (thicknessAtMainSpar + thicknessAtSecondarySpar)*distanceBetweenSpars*0.5\n\t\t * \n\t\t */\n\t\tint nSections = this._thicknessAtMainSpar.size();\n\t\tfor(int i=0; i<nSections; i++)\n\t\t\tthis._prismoidsSectionsAreas.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\t(this._thicknessAtMainSpar.get(i).plus(this._thicknessAtSecondarySpar.get(i)))\n\t\t\t\t\t\t\t.times(this._distanceBetweenSpars.get(i)).times(0.5).getEstimatedValue(),\n\t\t\t\t\t\t\tSI.SQUARE_METRE\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t}",
"public double averageVolume() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalVolume() / numberOfIcosahedrons();\n }\n }",
"public double calcArea()\n\t{\n\t\treturn (double) oneside * oneside;\n\t}",
"public double computeArea() {\n\t\treturn 0;\n\t}",
"public double findArea() {\r\n return Math.PI * radius * radius; \r\n }",
"public double getArea() {\n\t\treturn 4.0 * Math.PI * this.radius * this.radius;\n\t}",
"@Override\n public double area() {\n double P = this.perimeter() / 2;\n double result = Math.sqrt(P * (P - side1) * (P - side2) * (P - side3));\n return result;\n }",
"public double findArea() {\n return radius * radius * Math.PI;\n }",
"public double totalVolume() { \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n \r\n total += list.get(index).volume();\r\n index++; \r\n } \r\n return total;\r\n }",
"double calculateArea();",
"public double getArea() {\n\t\treturn this.radius * this.radius * Math.PI;\n\t}",
"static Double computeArea() {\n // Area is height x width\n Double area = height * width;\n return area;\n }",
"public double getArea() {\n return radius * radius * Math.PI;\n }",
"public double getArea() {\n return radius * radius * Math.PI;\n }",
"@Override\r\n public double calculateArea() {\n double area = 0;\r\n return area;\r\n }",
"public float get_area() {\r\n return 0;\r\n }",
"public double getArea() {\n return ((radius * radius) * Math.PI);\n }",
"public void calArea()\n {\n //Start of the formula\n for(int i = 0; i < sides-1; i++)\n {\n area += (poly[i].getX()*poly[i+1].getY())-(poly[i].getY()*poly[i+1].getX());\n }\n\n //half the total calculation\n area = area/2;\n\n //if area is negative times by -1\n if(area <= 0)\n {\n area = area*-1;\n }\n }",
"public abstract float getArea();",
"public double computeArea()\n {\n int len = _points.size();\n Point p1 = _points.get(len - 1);\n\n double area = 0.0;\n\n // Compute based on Green's Theorem.\n for(int i = 0; i < len; i++)\n {\n Point p2 = _points.get(i);\n area += (p2.x + p1.x)*(p2.y - p1.y);\n p1 = p2; // Shift p2 to p1.\n }\n\n return -area / 2.0;\n }",
"public double area();",
"@Override\n public double getTotalAreaOfTopReinforcement() {\n return getAreaOfReinforcementLayers(topDiameters, additionalTopDiameters, topSpacings).stream()\n .mapToDouble(Double::doubleValue)\n .sum();\n }",
"public double calculateArea()\n {\n return (Math.PI * radius) * (Math.PI * radius);\n }",
"public double totalVolume() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).volume();\n index++; \n } \n return total;\n }",
"public float getArea() {\n return area;\n }",
"public double getArea() {\n return this.length * this.width;\n }",
"public int getAreaCount() {\n if (areaBuilder_ == null) {\n return area_.size();\n } else {\n return areaBuilder_.getCount();\n }\n }",
"public int getAreaCount() {\n if (areaBuilder_ == null) {\n return area_.size();\n } else {\n return areaBuilder_.getCount();\n }\n }",
"public int getAreaCount() {\n if (areaBuilder_ == null) {\n return area_.size();\n } else {\n return areaBuilder_.getCount();\n }\n }",
"public double getArea() {\n\t\treturn Math.sqrt(3) * this.edgelen * this.edgelen;\n\t}",
"public abstract float area();",
"public float area()\n {\n return Math.abs(signedArea());\n }",
"@Override\r\n\tpublic double area() {\n\r\n\t\tif (cube1.area()>cube2.area()) {\r\n\t\r\nc double volume() {\r\n\t\t\t\treturn super.area() * iDepth;\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic double perimeter() throws UnsupportedOperationException{\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\tpublic class SortByArea implements Comparator<Cuboid>{\r\n\r\n\t\t\t\tSortByArea() {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(Cuboid cub1, Cuboid cub2) {\r\n\t\t\t\t\tif (cub1.area() > cub2.area()) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else if(cub1.area() < cub2.area()) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\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\r\n\t\t\tpublic class SortByVolume implements Comparator<Cuboid>{\r\n\r\n\t\t\t\tSortByVolume() {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(Cuboid cub1, Cuboid cub2) {\r\n\t\t\t\t\tif (cub1.volume() > cub2.volume()) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else if(cub1.volume() < cub2.volume()) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\r\n}\r\n}",
"public double calculatePolyVectorError( List<ConvexPolygon> ls){\n Group image = new Group();\n for (ConvexPolygon p : ls){\n image.getChildren().add(p);\n }\n\n WritableImage wimg = new WritableImage(maxX, maxY);\n image.snapshot(null, wimg);\n PixelReader pr = wimg.getPixelReader();\n\n double res=0;\n for (int i=0;i<maxX;i++){\n for (int j=0;j<maxY;j++){\n Color c = pr.getColor(i, j);\n res += Math.pow(c.getBlue()-target[i][j].getBlue(),2)\n +Math.pow(c.getRed()-target[i][j].getRed(),2)\n +Math.pow(c.getGreen()-target[i][j].getGreen(),2);\n }\n }\n return Math.sqrt(res);\n }",
"public double calculateArea() {\r\n return PI * radius * radius;\r\n }",
"public void calcArea(){\n double p=(side1+side2+side3)/2;\n area=p*(p-side1)*(p-side2)*(p-side3);\n area=Math.sqrt(area);\n\n\n }",
"public double area() { return Math.PI * radius * radius; }",
"public double getArea(){\n return 3.14 * radius * radius;\n }",
"@Override\n double areaFigure() {\n if (!isRealFigure()) {\n return -1;\n }\n //When the triangular prism is real\n double faceArea = (getA() + getB() + getC()) * getD();\n return faceArea + 2 * super.areaFigure();\n }",
"@Override\n public double getArea() {\n double area = this.length*this.width;\n return area;\n }",
"double getArea() {\n return width * height;\n }",
"public double getArea() {\n return radius*radius*Math.PI;\n }",
"public double getArea(){\r\n\t\t\r\n\t\tdouble povrsina = PI * this.radius * this.radius; \r\n\t\t\r\n\t\treturn povrsina;\r\n\t}",
"public double getArea() {\n\t\treturn height * length;\n\t}",
"private void getArea() {\n\t\tdouble a = 0;\n\t\tint n = points.length;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\ta += (points[i-1].x + points[i].x) * (points[i-1].y - points[i].y);\n\t\t}\n\t\t// process last segment if ring is not closed\n\t\tif (!points[0].equals(points[n-1])) {\n\t\t\ta += (points[n-1].x + points[0].x) * (points[n-1].y - points[0].y);\n\t\t}\n\t\tarea = Math.abs(a / 2);\n\t}",
"public double totalVolume() {\r\n int index = 0;\r\n double listTotalVolume = 0;\r\n while (index < list.size()) {\r\n listTotalVolume += list.get(index).volume();\r\n index++;\r\n }\r\n return listTotalVolume;\r\n }",
"public static int surfaceArea(int[][] grid) {\n int m = grid.length;\n int n = grid[0].length;\n int result = 0;\n int[][] direction = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};\n \n for (int i = 0; i < m; i++) {\n \tfor (int j = 0; j < n; j++) {\n \t\tif (grid[i][j] > 0) {\n \t\t\tresult += 2;\n \t\t\tfor (int[] dir: direction) {\n \t\t\tint nextI = i + dir[0];\n \t\t\tint nextJ = j + dir[1];\n \t\t\tif (nextI < 0 || nextI >= m || nextJ < 0 || nextJ >= n) {\n \t\t\t\tresult += grid[i][j];\n \t\t\t} else if (grid[nextI][nextJ] < grid[i][j]) {\n \t\t\t\tresult += grid[i][j] - grid[nextI][nextJ];\n \t\t\t} \t\t\t\t\n \t\t\t}\n \t\t}\n \t}\n }\n \n return result;\n \n }",
"public double area() {\n\t\treturn width*length;\n\t}",
"public double getArea(){\n return radius * radius * Math.PI;\n }"
]
| [
"0.81859213",
"0.7956162",
"0.7636591",
"0.71663064",
"0.7087739",
"0.6756359",
"0.65840054",
"0.64566934",
"0.63802314",
"0.63774836",
"0.6373212",
"0.63593566",
"0.6293299",
"0.62742865",
"0.6238181",
"0.6209355",
"0.62025154",
"0.6179383",
"0.6070121",
"0.60408294",
"0.6035209",
"0.5975734",
"0.588508",
"0.58758694",
"0.586518",
"0.586448",
"0.58634365",
"0.5848659",
"0.58433867",
"0.5827556",
"0.5827556",
"0.5827556",
"0.58208287",
"0.5808335",
"0.57566905",
"0.57038313",
"0.56920296",
"0.5686456",
"0.5638988",
"0.56209886",
"0.5614464",
"0.56016874",
"0.56016874",
"0.56016874",
"0.5597048",
"0.5597048",
"0.5597048",
"0.5591141",
"0.557622",
"0.5569371",
"0.5569371",
"0.55654895",
"0.55431044",
"0.5542353",
"0.55188465",
"0.55053633",
"0.5503173",
"0.54968536",
"0.5489022",
"0.54859567",
"0.54652005",
"0.54513174",
"0.5439316",
"0.5438545",
"0.5438545",
"0.5437083",
"0.54350364",
"0.54316664",
"0.54146725",
"0.54128695",
"0.54047984",
"0.5400902",
"0.5399075",
"0.53979105",
"0.5393436",
"0.53907865",
"0.5390394",
"0.5386232",
"0.5386232",
"0.5386232",
"0.5377008",
"0.53766465",
"0.5376475",
"0.53614014",
"0.535164",
"0.53500026",
"0.53494996",
"0.53449106",
"0.53429514",
"0.53424376",
"0.53414524",
"0.53289264",
"0.5325335",
"0.5320116",
"0.5319799",
"0.5317724",
"0.5312689",
"0.53079003",
"0.5306762",
"0.52942336"
]
| 0.81251764 | 1 |
Returns a double representing the total volumes for all Icosahedron objects in the list. If there are zero Icosahedron objects in the list, zero int returned. | public double totalVolume() {
int index = 0;
double total = 0.0;
while (index < icosList.size()) {
total += icosList.get(index).volume();
index++;
}
return total;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double totalVolume() { \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n \r\n total += list.get(index).volume();\r\n index++; \r\n } \r\n return total;\r\n }",
"public double averageSurfaceToVolumeRatio() {\n int index = 0;\n double total = 0.0;\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceToVolumeRatio();\n index++;\n }\n }\n return total / icosList.size();\n }",
"public double totalVolume() {\r\n int index = 0;\r\n double listTotalVolume = 0;\r\n while (index < list.size()) {\r\n listTotalVolume += list.get(index).volume();\r\n index++;\r\n }\r\n return listTotalVolume;\r\n }",
"public double averageVolume() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalVolume() / numberOfIcosahedrons();\n }\n }",
"public double totalSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return total;\r\n }",
"public double averageVolume() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).volume();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n \r\n return total;\r\n }",
"public static double calculateVolume(List<Triangle3D> triangles){\n double sum = 0;\n for(Triangle3D triangle: triangles){\n double[] r1 = triangle.getCoordinates(0);\n double[] r2 = triangle.getCoordinates(1);\n double[] r3 = triangle.getCoordinates(2);\n sum += (\n - r3[0]*r2[1]*r1[2] + r2[0]*r3[1]*r1[2] + r3[0]*r1[1]*r2[2]\n - r1[0]*r3[1]*r2[2] - r2[0]*r1[1]*r3[2] + r1[0]*r2[1]*r3[2]\n )/6.0;\n }\n return sum;\n }",
"@Override\n\tpublic double getvolume(){\n\t\tdouble[] ab_cross_ac = calculate_vcp(getVector_AB(),getVector_AC());\n\t\t\n\t\t//dot product of ab_cross_ac and ad\n\t\tdouble S = calculate_vdp(ab_cross_ac,getVector_AD());\n\t\t\n\t\t//formula of tetrahedron's volume\n\t\treturn Math.abs(S)/6;\t\n\t}",
"public double getVolume() {\n\n double volume = 0;\n\n double[] v = this.getVertices();\n int[] f = this.getFaces();\n\n for (int i = 0; i < f.length; i += 6) {\n Vector3D v0 = new Vector3D(v[3 * f[i]], v[3 * f[i] + 1], v[3 * f[i] + 2]);\n Vector3D v1 = new Vector3D(v[3 * f[i + 2]], v[3 * f[i + 2] + 1], v[3 * f[i + 2] + 2]);\n Vector3D v2 = new Vector3D(v[3 * f[i + 4]], v[3 * f[i + 4] + 1], v[3 * f[i + 4] + 2]);\n\n v0 = v0.crossProduct(v1);\n volume += v0.dotProduct(v2);\n }\n\n return Math.abs(volume / 6.0);\n }",
"public double totalSurfaceArea() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceArea();\n index++; \n }\n return total;\n }",
"public double totalSurfaceArea() {\r\n int index = 0;\r\n double listTotalSurfaceArea = 0;\r\n while (index < list.size()) {\r\n listTotalSurfaceArea += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return listTotalSurfaceArea;\r\n }",
"@Override\n public double getVolume() {\n return liquids\n .stream()\n .mapToDouble(Liquid::getVolume)\n .sum();\n }",
"private void calculateVolume() {\n\n\t\t/*\n\n\t\t */\n\t\tfor(int i=0; i<this._prismoidsLength.size(); i++) \n\t\t\tthis._prismoidsVolumes.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tthis._prismoidsLength.get(i).divide(3)\n\t\t\t\t\t\t\t.times(\n\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ this._prismoidsSectionsAreas.get(i+1).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ Math.sqrt(\n\t\t\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i)\n\t\t\t\t\t\t\t\t\t\t\t.times(this._prismoidsSectionsAreas.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue()\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t).getEstimatedValue(),\n\t\t\t\t\t\t\tSI.CUBIC_METRE\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tfor(int i=0; i<this._prismoidsVolumes.size(); i++)\n\t\t\tthis._fuelVolume = this._fuelVolume\n\t\t\t\t\t\t\t\t\t\t.plus(this._prismoidsVolumes.get(i));\n\t\tthis._fuelVolume = this._fuelVolume.times(2);\n\t\t\n\t}",
"public double averageVolume() {\r\n double listAvgVolume = 0.0;\r\n if (list.size() != 0) {\r\n listAvgVolume = totalVolume() / list.size();\r\n }\r\n return listAvgVolume;\r\n }",
"public int numberOfIcosahedrons() {\n return icosList.size();\n }",
"public double averageSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n return total;\r\n }",
"public int numberOfEllipsoids() { \r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n return list.size(); \r\n }",
"public double volume() {\n\t\treturn this.iWidth * this.iLength * this.iDepth\r\n\t}",
"public int volume() {\r\n int xLength = this.getMaximumPoint().getBlockX() - this.getMinimumPoint().getBlockX() + 1;\r\n int yLength = this.getMaximumPoint().getBlockY() - this.getMinimumPoint().getBlockY() + 1;\r\n int zLength = this.getMaximumPoint().getBlockZ() - this.getMinimumPoint().getBlockZ() + 1;\r\n\r\n int volume = xLength * yLength * zLength;\r\n return volume;\r\n }",
"public double getVolume() {\n\t\treturn height * depth * length;\n\n\t}",
"public double getTotalVolume() {\n return totalVolume;\n }",
"@Override\n\tpublic float volume() {\n\t\tfloat volume = (float) ((4/3) * Math.PI * Math.pow(this.radius, 3));\n\t\treturn volume;\n\t}",
"public double averageSurfaceArea() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalSurfaceArea() / numberOfIcosahedrons();\n }\n }",
"@Override\n\tpublic float volume() {\n\t\treturn (float) ((4/3) * Math.PI * Math.pow(radius, 3));\n\t}",
"private static double[] getVolumes(final ImageStack aInputStack, final int[] aLables, final double[] aResol)\r\n\t{\r\n\t\tfinal double[] volumes = GeometricMeasures3D.volume(aInputStack, aLables, aResol);\r\n\t\treturn volumes;\r\n\t}",
"public int sizeOfVolumeArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(VOLUME$4);\r\n }\r\n }",
"double volume()\n\t{\n\t\t\n\t\treturn width*height*depth;\n\t\t\n\t}",
"public java.util.List<org.landxml.schema.landXML11.VolumeDocument.Volume> getVolumeList()\r\n {\r\n final class VolumeList extends java.util.AbstractList<org.landxml.schema.landXML11.VolumeDocument.Volume>\r\n {\r\n public org.landxml.schema.landXML11.VolumeDocument.Volume get(int i)\r\n { return IntersectionImpl.this.getVolumeArray(i); }\r\n \r\n public org.landxml.schema.landXML11.VolumeDocument.Volume set(int i, org.landxml.schema.landXML11.VolumeDocument.Volume o)\r\n {\r\n org.landxml.schema.landXML11.VolumeDocument.Volume old = IntersectionImpl.this.getVolumeArray(i);\r\n IntersectionImpl.this.setVolumeArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.VolumeDocument.Volume o)\r\n { IntersectionImpl.this.insertNewVolume(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.VolumeDocument.Volume remove(int i)\r\n {\r\n org.landxml.schema.landXML11.VolumeDocument.Volume old = IntersectionImpl.this.getVolumeArray(i);\r\n IntersectionImpl.this.removeVolume(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfVolumeArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new VolumeList();\r\n }\r\n }",
"public int calculateVolume() {\n return (int) Math.pow(this.sideLength, 3) ;\n }",
"public double volume () {return (4/3)*Math.PI*this.r*this.r*this.r;}",
"public double volume()\r\n {\r\n double volume = Math.pow(radius, 2) * (height / 3) * Math.PI;\r\n return volume;\r\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"public double getVolumeOfPipe(){\n double lengthPipeInches = lengthOfPipe / 0.0254;\n \n double outerRadius = diameterOfPipe / 2;\n outerRadius = Math.pow(outerRadius,2);\n double outervolumeOfPipe = (Math.PI * outerRadius) * lengthPipeInches;\n \n //get the inner volume pi * r^2 * height\n double innerRadius = (diameterOfPipe / 2) * 0.9;\n innerRadius = Math.pow(innerRadius,2);\n double innervolumeOfPipe = (Math.PI * innerRadius) * lengthPipeInches; \n \n //get the total volume of raw materials\n double totalVolume = outervolumeOfPipe - innervolumeOfPipe;\n \n return totalVolume;\n }",
"double volume(){\n\n return widgh*height*depth;\n\n }",
"public abstract float volume();",
"public double averageSurfaceArea() {\r\n double listAvgSurfaceArea = 0.0;\r\n if (list.size() != 0) {\r\n listAvgSurfaceArea = totalSurfaceArea() / list.size();\r\n }\r\n return listAvgSurfaceArea;\r\n }",
"private double Volume() {\n\t\tdouble volume = (4f / 3f) * Math.PI * Math.pow(_radius, 3);\n\t\treturn volume;\n\t}",
"@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}",
"@Test public void volumeTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(28.67462334314945, pList.totalVolume(), 0.00001);\n Assert.assertEquals(9.558207781049816, pList.averageVolume(), 0.00001);\n \n PentagonalPyramidList2 pList2 = new PentagonalPyramidList2(\"ListName\", \n null, 0);\n Assert.assertEquals(0.0, pList2.averageVolume(), 0.00001);\n \n }",
"public List<V1Volume> getVolumes() {\n return volumes;\n }",
"double volume() {\n\t\treturn 0;\n\t}",
"public abstract double volume();",
"public Long[] getVolumes() { return this.volumes; }",
"@Override\n\tpublic void calcularVolume() {\n\t\t\n\t}",
"public abstract double calcVolume();",
"public abstract double calcVolume();",
"public int findTotalVariants() throws DAOException;",
"public static double getArrayListDoubleVariance(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"int getTotalElements();",
"double volume(){\n return width*height*depth;\n }",
"@Override\n\tpublic float volume() {\n\t\treturn 0;\n\t}",
"public double length() {\n\t\tdouble length = 0;\n\t\tif (isEmpty())\n\t\t\treturn 0;\n\t\tjava.util.ListIterator<PathPoint> it = listIterator();\n\t\tPathPoint current = it.next();\n\t\twhile (it.hasNext()) {\n\t\t\tPathPoint next = it.next();\n\t\t\tlength += mc.distance3d(current.getLocation(), next.getLocation());\n\t\t\tcurrent = next;\n\t\t}\n\t\treturn length;\n\t}",
"public double getTotalUnits() {\n double totalUnits = 0;\n for (int i = 0; i < quarters.size(); i++) {\n totalUnits += quarters.get(i).getTotalUnits();\n }\n return totalUnits;\n }",
"static public double calculateVolumeLegacy(double[] direction, double[] positions, List<Triangle3D> triangles ){\n double sum = 0;\n\n for(Triangle3D triangle: triangles){\n triangle.update();\n sum += triangle.area*(triangle.normal[0]*direction[0] + triangle.normal[1]*direction[1] + triangle.normal[2]*direction[2])*\n (triangle.center[0]*direction[0] + triangle.center[1]*direction[1] + triangle.center[2]*direction[2]);\n }\n\n return sum/2.0;\n }",
"public double calcVolume(){\n double area=calcArea(); // calcArea of superclass used\r\n return area*h;\r\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public double getVolume() {\n return (getArea() * height);\n }",
"public double getVolume()\n {\n return volume / 512;\n }",
"public int getUnitCount() {\n return _elements.length;\n }",
"public static double getTotal() throws IOException{\n\t\tPhotovoltaicDao pd = new PhotovoltaicDao();\n\t\tArrayList<Photovoltaic> mdList = pd.selectPhotovoltaic();\n\t\tdouble sum = 0;\n\t\tfor(int iter=0;iter!=mdList.size();iter++)\n\t\t\tsum+=mdList.get(iter).getCurrentGeneration();\n\t\treturn sum;\n\t}",
"@Field(23) \n\tpublic int VolumeTotal() {\n\t\treturn this.io.getIntField(this, 23);\n\t}",
"@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }",
"public double getAlcoholVolume() {\n return isAlcoholic() ?\n liquids\n .stream()\n .filter(liquid -> liquid.getAlcoholPercent() > 0)\n .mapToDouble(liquid -> (liquid.getVolume() * (liquid.getAlcoholPercent() / 100)))\n .sum()\n : 0.0;\n }",
"public float getVolum() {\n return volum;\n }",
"public double getCyclinderVolume();",
"BigDecimal getVolume();",
"public float getVolume()\n {\n return volume;\n }",
"public void calcVolume() {\n this.vol = (0.6666666666666667 * Math.PI) * Math.pow(r, 3);\n }",
"public double getVolume() {\n\t\treturn base.getArea() * height;\n\t}",
"public int size() {\r\n\t\tthis.size= 0;\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tthis.size += item.size();\r\n\t\t}\r\n\t\treturn this.size;\r\n\t}",
"public double getRatio() {\n return (double) vector.length / size;\n }",
"public double getTotalArea () {\n double total = 0.;\n for (Shape s : polygons) {\n total += Util.area(s);\n }\n\n if (resolution != null) {\n total /= resolution;\n }\n return total;\n }",
"public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }",
"@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 }",
"@Override\r\n\tpublic float getVolume() {\n\t\treturn 0;\r\n\t}",
"public double getVolume() {\n return volume;\n }",
"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 double getTotalVolumeOfComponents(Unit unit) {\n\t\tspacecraftBusComponentsVolumeRequirement -= this.getHull().getVolume(unit);\n\t\treturn spacecraftBusComponentsVolumeRequirement;\n\t}",
"public double getVolume() { return volume; }",
"public double media(){\n double soma=0;\n for (int i = 0; i < lista.size(); i++) {\n soma+=lista.get(i).getMedia();\n }\n return soma/lista.size();\n }",
"private INDArray computeVectorAverage(List<float[]> embeddingsList)\r\n {\r\n INDArray sum = Nd4j.zeros(embeddingsList.get(0).length);\r\n\r\n for (float[] vec : embeddingsList) {\r\n INDArray nd = Nd4j.create(vec);\r\n sum = sum.add(nd);\r\n }\r\n sum = sum.div(embeddingsList.size());\r\n return sum;\r\n }",
"public double getVolume() {\n return super.getLado1() * super.getLado2() * this.altura;\n }",
"public Float getVolume() throws DynamicCallException, ExecutionException {\n return (Float)call(\"getVolume\").get();\n }",
"public double getTotalUnits() {\n int total = 0;\n for(int i = 0; i < courses.size(); i++) {\n // don't count if units are null? idk how defensive I need to be (I choose not to check, units should never be null)\n // TODO: test with System.out\n Course course = courses.get(i);\n //if(!course.getUnits().equals(null))\n total += course.getUnits();\n }\n return total;\n }",
"public double getVolumeLitres() {\n return volumeLitres;\n }",
"public int getNumeroVuelos() {\r\n\t\treturn vuelos.size();\r\n\t}",
"public float getVolume() {\n return 1.0f;\n }",
"@Override\n public double obtenerVolumen(){\n return (1.0 / 3.0) * c.obtenerArea() * c.obtenerAltura();\n }",
"public double getVolume()\n {\n return this.volume;\n }",
"public int findTotalPapersWithVariants() throws DAOException;",
"public static double berekenGemiddeldeOmzet(ArrayList<Double> omzet) {\n \tdouble result = 0;\n \tint counter = 0;\n for(double i: omzet) {\n \tcounter += 1;\n \tresult += i;\n }\n return result / counter;\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 abstract double getVolume();",
"public Double getTotal();",
"public double len() {\n \t\treturn Math.sqrt((double)x*x + (double)y*y + (double)z*z);\n \t}",
"public org.landxml.schema.landXML11.VolumeDocument.Volume[] getVolumeArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(VOLUME$4, targetList);\r\n org.landxml.schema.landXML11.VolumeDocument.Volume[] result = new org.landxml.schema.landXML11.VolumeDocument.Volume[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }",
"public int getLength() {\r\n int length = 0;\r\n \r\n Iterator it = collection.iterator();\r\n \r\n while(it.hasNext()) {\r\n length += ((Chunk)it.next()).getSize();\r\n }\r\n \r\n return length;\r\n }",
"public double getVolume()\r\n\t{\r\n\t\treturn (super.getArea())*h;\r\n\t}"
]
| [
"0.7348473",
"0.73266673",
"0.72505414",
"0.7058543",
"0.666135",
"0.6630053",
"0.65239775",
"0.6478722",
"0.64566267",
"0.645365",
"0.6411907",
"0.63505775",
"0.63366956",
"0.63241714",
"0.6277001",
"0.6251496",
"0.6221605",
"0.62123525",
"0.61368924",
"0.61347944",
"0.60352945",
"0.6006223",
"0.59968585",
"0.5900915",
"0.5894538",
"0.5884576",
"0.58450484",
"0.58300656",
"0.58073604",
"0.57827437",
"0.57820606",
"0.5761595",
"0.57522094",
"0.5747013",
"0.57345194",
"0.57343304",
"0.5693387",
"0.56912816",
"0.56912816",
"0.56773937",
"0.5663245",
"0.56519717",
"0.5650541",
"0.56488013",
"0.56486946",
"0.56236875",
"0.56236875",
"0.56180036",
"0.5596683",
"0.55937856",
"0.5587997",
"0.55710405",
"0.5549181",
"0.5548753",
"0.55483764",
"0.5530738",
"0.55299467",
"0.5517139",
"0.55163103",
"0.5501946",
"0.55013674",
"0.5489467",
"0.5477837",
"0.5475329",
"0.54702514",
"0.5465147",
"0.5453002",
"0.53915334",
"0.5389553",
"0.53852975",
"0.53679645",
"0.5362204",
"0.5350359",
"0.5335945",
"0.53299963",
"0.5329177",
"0.5328555",
"0.5321221",
"0.5319155",
"0.5316127",
"0.53105474",
"0.5309121",
"0.53003824",
"0.52968156",
"0.5279545",
"0.52775383",
"0.5270009",
"0.525801",
"0.5253586",
"0.52512735",
"0.5250948",
"0.5230417",
"0.522572",
"0.5223779",
"0.5222304",
"0.52143633",
"0.5207085",
"0.5205992",
"0.52011675",
"0.51987016"
]
| 0.7200284 | 3 |
Returns a double representing the average surface areafor all Icosahedronobjects in the list. If there are zero Icosahedron objects in the list, zero should be returned. | public double averageSurfaceArea() {
if (numberOfIcosahedrons() == 0) {
return 0;
}
else {
return totalSurfaceArea() / numberOfIcosahedrons();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double averageSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n return total;\r\n }",
"public double totalSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return total;\r\n }",
"public double totalSurfaceArea() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceArea();\n index++; \n }\n return total;\n }",
"public double averageSurfaceArea() {\r\n double listAvgSurfaceArea = 0.0;\r\n if (list.size() != 0) {\r\n listAvgSurfaceArea = totalSurfaceArea() / list.size();\r\n }\r\n return listAvgSurfaceArea;\r\n }",
"public double averageSurfaceToVolumeRatio() {\n int index = 0;\n double total = 0.0;\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceToVolumeRatio();\n index++;\n }\n }\n return total / icosList.size();\n }",
"public double totalSurfaceArea() {\r\n int index = 0;\r\n double listTotalSurfaceArea = 0;\r\n while (index < list.size()) {\r\n listTotalSurfaceArea += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return listTotalSurfaceArea;\r\n }",
"public double getTotalArea () {\n double total = 0.;\n for (Shape s : polygons) {\n total += Util.area(s);\n }\n\n if (resolution != null) {\n total /= resolution;\n }\n return total;\n }",
"public double averageVolume() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalVolume() / numberOfIcosahedrons();\n }\n }",
"private double getArea(List<Point> points){\n double result = 0.0;\n int n = points.size();\n for (int i = 0; i < n; i++) {\n if (i == 0) {\n result += points.get(i).x * (points.get(n - 1).z - points.get(i + 1).z);\n } else if (i == (n - 1)) {\n result += points.get(i).x * (points.get(i - 1).z - points.get(0).z);\n } else {\n result += points.get(i).x * (points.get(i - 1).z - points.get(i + 1).z);\n }\n }\n return Math.abs(result) / 2.0;\n }",
"private static double computeArea(Point3d[] centers3d) {\n assert centers3d.length == 3;\n Point2d[] centers = new Point2d[] {\n centers3d[0].projectOnY(),\n centers3d[1].projectOnY(),\n centers3d[2].projectOnY()\n };\n Point2d[] vertices = new Point2d[] {\n centers[0].add(centers[1]).add(centers[2]),\n centers[0].add(centers[1]).sub(centers[2]),\n centers[0].sub(centers[1]).add(centers[2]),\n centers[0].sub(centers[1]).sub(centers[2]),\n centers[0].neg().add(centers[1]).add(centers[2]),\n centers[0].neg().add(centers[1]).sub(centers[2]),\n centers[0].neg().sub(centers[1]).add(centers[2]),\n centers[0].neg().sub(centers[1]).sub(centers[2])\n };\n List<Point2d> hull = createConvexHull(vertices);\n double area = 0;\n for (int i = 0; i < hull.size() - 1; i++) {\n area += hull.get(i).x * hull.get(i + 1).y;\n }\n area += hull.get(hull.size() - 1).x * hull.get(0).y;\n for (int i = 0; i < hull.size() - 1; i++) {\n area -= hull.get(i).y * hull.get(i + 1).x;\n }\n area -= hull.get(hull.size() - 1).y * hull.get(0).x;\n area *= 0.5;\n return area;\n }",
"public double area()\n {\n return PdVector.area(p1, p2, p3);\n }",
"public double surfaceArea()\r\n {\r\n double surfaceArea = baseArea() + sideArea();\r\n return surfaceArea;\r\n }",
"public double area() {\n double sum = 0.0;\n for (int i = 0; i < N; i++) {\n sum = sum + (a[i].x * a[i+1].y) - (a[i].y * a[i+1].x);\n }\n return 0.5 * sum;\n }",
"@Override\n\tpublic double getArea(){\n\t\tdouble ab_ac_area = get_triangle_area(getVector_AB(),getVector_AC());\n\t\t\n\t\t//area of vector ac and ad\n\t\tdouble ac_ad_area = get_triangle_area(getVector_AC(),getVector_AD());\n\t\t\n\t\t//area of vector ab and ad\n\t\tdouble ab_ad_area = get_triangle_area(getVector_AC(),getVector_AD());\n\t\t\n\t\t//area of vector bc and bd\n\t\tdouble bc_ad_area = get_triangle_area(getVector_BC(),getVector_BD());\n\t\t\n\t\t//sum \n\t\treturn ab_ac_area + ac_ad_area + ab_ad_area + bc_ad_area;\n\t}",
"public static double calculateVolume(List<Triangle3D> triangles){\n double sum = 0;\n for(Triangle3D triangle: triangles){\n double[] r1 = triangle.getCoordinates(0);\n double[] r2 = triangle.getCoordinates(1);\n double[] r3 = triangle.getCoordinates(2);\n sum += (\n - r3[0]*r2[1]*r1[2] + r2[0]*r3[1]*r1[2] + r3[0]*r1[1]*r2[2]\n - r1[0]*r3[1]*r2[2] - r2[0]*r1[1]*r3[2] + r1[0]*r2[1]*r3[2]\n )/6.0;\n }\n return sum;\n }",
"@Override\n\tpublic float surfaceArea() {\n\t\tfloat area = (float) (4 * Math.PI * Math.pow(this.radius, 2));\n\t\treturn area;\n\t}",
"public double calculateSurfaceArea() {\n double surfaceArea = 2 * this.getLength() * this.getWidth() +\n 2 * this.getLength() * this.getHeight() +\n 2 * this.getWidth() * this.getHeight();\n return surfaceArea;\n }",
"public double averageVolume() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).volume();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n \r\n return total;\r\n }",
"public static double getArrayListDoubleMean(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"public abstract float surfaceArea();",
"public double area() {\n\t\tif (area != 0)\n\t\t\treturn area;\n\n\t\tPoint current = vertices.get(0);\n\t\tfor (int i = 1; i < vertices.size(); i++) {\n\t\t\tPoint next = vertices.get(i);\n\t\t\tarea += current.crossProduct(next);\n\t\t\tcurrent = next;\n\t\t}\n\n\t\torientation = area > 0 ? \"CCW\" : \"CW\";\n\t\tarea = Math.abs(area / 2);\n\n\t\treturn area;\n\t}",
"@Override\n public double getArea() {\n double s = (a + b + c) / 2;\n return Math.sqrt(s * (s - a) * (s - b) * (s - c));\n }",
"public double computeArea()\n {\n int len = _points.size();\n Point p1 = _points.get(len - 1);\n\n double area = 0.0;\n\n // Compute based on Green's Theorem.\n for(int i = 0; i < len; i++)\n {\n Point p2 = _points.get(i);\n area += (p2.x + p1.x)*(p2.y - p1.y);\n p1 = p2; // Shift p2 to p1.\n }\n\n return -area / 2.0;\n }",
"private double SurfaceArea() {\n\t\tdouble surfaceArea = 4f * Math.PI * Math.pow(_radius, 2);\n\t\treturn surfaceArea;\n\t}",
"public double calcAvg() {\n\t\treturn (double)calcSum() / data.size();\n }",
"public static double average(ArrayList<Integer> list) {\n double average = (double) sum(list);\n return average / list.size();\n }",
"public double average() {\n double average = 0;\n for (int i = 0; i < studentList.size(); i++) {\n Student student = studentList.get(i);\n average += student.average();\n }\n average /= studentList.size();\n return average;\n }",
"public double calcArea()\n\t{\n\t\treturn (double) oneside * oneside;\n\t}",
"public double getArea(){\n double p = (side1 + side2 + side3) / 2;\n return Math.sqrt(p * (p - side1) * (p - side2) * (p - side3));\n }",
"public double computeArea() {\n\t\treturn 0;\n\t}",
"double calculateArea();",
"public double area() \n {\n double area = 0;\n for (Line2D line : lines) \n {\n area += line.getP1().getX() * line.getP2().getY();\n area -= line.getP2().getX() * line.getP1().getY();\n }\n area /= 2.0;\n return Math.abs(area);\n }",
"public double surfaceArea() {\n final int six = 6;\n return six * Math.pow(sideLength, 2);\n }",
"@Override\n public Double average() {\n return (sum() / (double) count());\n }",
"@Test public void surfaceAreaTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(79.63814556339793, pList.totalSurfaceArea(), 0.00001);\n Assert.assertEquals(26.546048521132644, pList.averageSurfaceArea(), \n 0.00001);\n \n PentagonalPyramidList2 pList2 = new PentagonalPyramidList2(\"ListName\", \n null, 0);\n Assert.assertEquals(0.0, pList2.averageSurfaceArea(), \n 0.00001);\n \n }",
"public double surfaceArea() {\n\treturn (2*getWidth()*getHeight()) + (2*getHeight()*depth) + (2*depth*getWidth());\n }",
"public float getAverageBetweenPoint(){\n return getMetric()/list.size();\n }",
"private INDArray computeVectorAverage(List<float[]> embeddingsList)\r\n {\r\n INDArray sum = Nd4j.zeros(embeddingsList.get(0).length);\r\n\r\n for (float[] vec : embeddingsList) {\r\n INDArray nd = Nd4j.create(vec);\r\n sum = sum.add(nd);\r\n }\r\n sum = sum.div(embeddingsList.size());\r\n return sum;\r\n }",
"public double getAverage(){\r\n\t\tdouble sum=0;\r\n\t\tfor(Iterator<T> it=this.iterator();it.hasNext();){\r\n\t\t\tsum+=it.next().doubleValue();\r\n\t\t}\r\n\t\treturn sum/this.size();\r\n\t}",
"@Override\n\tpublic double getArea() {\n\t\tdouble p = getPerimeter() / 2;\n\t\tdouble s = p * ((p - side1) * (p - side2) * (p - side3));\n\t\tdouble Area = Math.sqrt(s);\n\t\treturn Area;\n\t}",
"public double getAverage(){\n return getTotal()/array.length;\n }",
"public double getArea() { return Math.sqrt(s * (s - d12) * (s - d23) * (s - d31)); }",
"public static double average(ArrayList<Double> nums){\n double sum = 0.0;\n for(Double num : nums){\n sum += num;\n }\n return sum / nums.size();\n }",
"public int calculateSurfaceArea() {\n return 6 * (int) (Math.pow(this.sideLength, 2));\n }",
"public double average(){\n double avg = 0;\n double sum = 0;\n for (T t : arr) {\n // sum += t.doubleValue();\n }\n\n return sum / arr.length;\n }",
"public static double getAvg(List<Integer> list) {\n int sum = 0;\n for (int i = 0; i != list.size(); ++i) {\n sum += list.get(i);\n }\n return (double)sum / list.size();\n }",
"@Override\n\tpublic float surfaceArea() {\n\t\treturn (float) (4* Math.PI * Math.pow(radius, 2));\n\t}",
"public double getAverage(){\n double total = 0;\n for(double s : scores)total += s;\n return total/scores.length;\n }",
"public double calculateAverage(List<Integer> list) {\n double sum = 0;\n double avg = 0.0;\n try {\n if (list.isEmpty()) {\n throw new Exception(\"Empty List\");\n }\n\n //loop for values to calculate average\n for (Integer mark : list) {\n sum = sum + mark;\n }\n avg = sum / list.size();\n\n } catch (Exception e) {\n avg = 0.0;\n }\n return avg;\n }",
"public void getArea() {\n\t\ts = (double) (a + b + c) / 2;\n\t\tarea = Math.sqrt(s * (s - a) * (s - b) * (s - c));\n\t\tSystem.out.println(\"Area: \" + area);\n\t}",
"@Override\r\n public double calculateArea() {\n double area = 0;\r\n return area;\r\n }",
"public double averageVolume() {\r\n double listAvgVolume = 0.0;\r\n if (list.size() != 0) {\r\n listAvgVolume = totalVolume() / list.size();\r\n }\r\n return listAvgVolume;\r\n }",
"public double area();",
"public double getArea();",
"public double getArea();",
"public double getArea();",
"public abstract double computeArea();",
"public double calculateMixedArea(int index){\n Node3D node = mesh.nodes.get(index);\n return calculateMixedArea(node);\n }",
"public double getSurfaceArea() {\n\n return surfaceArea;\n }",
"static Double computeArea() {\n // Area is height x width\n Double area = height * width;\n return area;\n }",
"public void calArea()\n {\n //Start of the formula\n for(int i = 0; i < sides-1; i++)\n {\n area += (poly[i].getX()*poly[i+1].getY())-(poly[i].getY()*poly[i+1].getX());\n }\n\n //half the total calculation\n area = area/2;\n\n //if area is negative times by -1\n if(area <= 0)\n {\n area = area*-1;\n }\n }",
"double getArea();",
"double getArea();",
"double area();",
"public double average() {\n return average(0.0);\n }",
"public double totalVolume() { \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n \r\n total += list.get(index).volume();\r\n index++; \r\n } \r\n return total;\r\n }",
"private float calculateAverage(List<Float> tempVoltages) {\r\n\t\t\r\n\t\tfloat runningTotal = 0;\r\n\t\tfor(float i : tempVoltages){\r\n\t\t\trunningTotal += i;\r\n\t\t}\r\n\t\trunningTotal /= tempVoltages.size();\r\n\t\treturn runningTotal;\r\n\t}",
"public double getAverageEdgeLength() {\n\t\tdouble x = this.maxX - this.minX;\n\t\tdouble y = this.maxY - this.minY;\n\t\tdouble z = this.maxZ - this.minZ;\n\t\treturn (x + y + z) / 3.0D;\n\t}",
"@Override\n public double area() {\n double P = this.perimeter() / 2;\n double result = Math.sqrt(P * (P - side1) * (P - side2) * (P - side3));\n return result;\n }",
"public double getArea() {\n\t\treturn Math.sqrt(3) * this.edgelen * this.edgelen;\n\t}",
"private double computeMean(List<Integer> intList) {\n double count = 0;\n for (Integer i : intList) {\n count += i;\n }\n return count / intList.size();\n }",
"public float area()\n {\n return Math.abs(signedArea());\n }",
"public void calcArea(){\n double p=(side1+side2+side3)/2;\n area=p*(p-side1)*(p-side2)*(p-side3);\n area=Math.sqrt(area);\n\n\n }",
"public double getArea() {\n\t\treturn 4.0 * Math.PI * this.radius * this.radius;\n\t}",
"public abstract double getSurfacearea();",
"public double totalVolume() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).volume();\n index++; \n } \n return total;\n }",
"public double Area() {\n return OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_Area(swigCPtr, this);\n }",
"public double calculateArea()\n {\n return (Math.PI * radius) * (Math.PI * radius);\n }",
"public double getArea(){\r\n\t\t\r\n\t\tdouble povrsina = PI * this.radius * this.radius; \r\n\t\t\r\n\t\treturn povrsina;\r\n\t}",
"double average(double[] doubles) {\n double total = 0.0;\n //int count = 0;\n for (double d: doubles) {\n total = total + d;\n //count = count + 1;\n }\n //return total / count;\n return total / doubles.length;\n }",
"public double getArea() {\n\t\treturn this.radius * this.radius * Math.PI;\n\t}",
"@Override\n\tpublic int avg() {\n\t\treturn (this.sum()/3);\n\t}",
"public double getArea() {\n return ((radius * radius) * Math.PI);\n }",
"public static double sum(ArrayList<Double> list){\r\n\t\tdouble sum = 0;\r\n\t\tfor(int i = 0; i < list.size(); i++){\r\n\t\t\tsum += list.get(i);\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t\t\r\n\t}",
"public double Area() {\r\n \treturn(getLength() * getWidth());\r\n }",
"public double area() {\n\t\treturn width*length;\n\t}",
"public static double getArrayListDoubleVariance(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"public abstract float area();",
"public double average(ArrayList<Double> x) {\n double sum = 0;\n double round;\n for (int i = 0; i < x.size(); i++) {\n sum += x.get(i);\n }\n round = sum / x.size() * 100;\n round = Math.round(round);\n round /= 100;\n return round;\n }",
"public double calculateArea() {\r\n return PI * radius * radius;\r\n }",
"private void getArea() {\n\t\tdouble a = 0;\n\t\tint n = points.length;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\ta += (points[i-1].x + points[i].x) * (points[i-1].y - points[i].y);\n\t\t}\n\t\t// process last segment if ring is not closed\n\t\tif (!points[0].equals(points[n-1])) {\n\t\t\ta += (points[n-1].x + points[0].x) * (points[n-1].y - points[0].y);\n\t\t}\n\t\tarea = Math.abs(a / 2);\n\t}",
"public double findArea(){\n\t\tdouble area= (0.5*(length * width));\n\t\treturn area;\n\t}",
"public double findArea() {\n return radius * radius * Math.PI;\n }",
"public double findArea() {\r\n return Math.PI * radius * radius; \r\n }",
"public abstract float calArea();",
"public int numberOfEllipsoids() { \r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n return list.size(); \r\n }",
"@Override\n\tpublic double computeArea()\n\t{\n\t\treturn\n\t\t\t\tthis.length * this.width;\n\t}",
"static int surfaceArea(int[][] grid) {\n int sum = 0;\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid[i].length; j++) {\n if (grid[i][j] != 0) {\n sum += ((grid[i][j] * 4) + 2);\n }\n if (i - 1 >= 0) sum -= Math.min(grid[i - 1][j], grid[i][j]) * 2;\n if (j - 1 >= 0) sum -= Math.min(grid[i][j - 1], grid[i][j]) * 2;\n }\n }\n return sum;\n }",
"public static Double mean(ArrayList<Double> values) {\n\t\tDouble total = 0.0;\n\t\t// iterate through the values and add to the total\n\t\tfor (int i = 0; i < values.size(); i++) {\n\t\t\ttotal += values.get(i);\n\t\t}\n\t\t// return the total devided by the number of values\n\t\treturn total / values.size();\n\t}",
"private static int getAverage(ArrayList<Integer> inList) \n\t{\n\t\tint add = 0; \n\t\tint mean = 0; \n\t\tfor(int pos = 0; pos < inList.size(); ++pos)\n\t\t{\n\t\t\tadd = add + inList.get(pos);\n\t\t\t\n\t\t}\n\t\t\n\t\tmean = add/inList.size(); \n\t\t\n\t\treturn mean; \n\t\t\n\t}"
]
| [
"0.818619",
"0.78111154",
"0.77859956",
"0.77786404",
"0.7707803",
"0.7585364",
"0.6784704",
"0.67605853",
"0.6583091",
"0.64085054",
"0.63234776",
"0.6241981",
"0.6230874",
"0.6212799",
"0.62009746",
"0.6199561",
"0.61957854",
"0.6195523",
"0.61674505",
"0.61217165",
"0.6089335",
"0.6067921",
"0.6044046",
"0.60319906",
"0.6028534",
"0.6026464",
"0.60223055",
"0.6009119",
"0.600875",
"0.60014254",
"0.5995438",
"0.5977367",
"0.59715044",
"0.5965666",
"0.5954456",
"0.5951926",
"0.5921278",
"0.59194463",
"0.5915967",
"0.590901",
"0.5908618",
"0.5887613",
"0.5884171",
"0.58603245",
"0.5842483",
"0.5835108",
"0.582586",
"0.582019",
"0.58166355",
"0.5815556",
"0.5812066",
"0.578597",
"0.5779706",
"0.57725966",
"0.57725966",
"0.57725966",
"0.5767306",
"0.57593924",
"0.575756",
"0.5754063",
"0.57525116",
"0.5751891",
"0.5751891",
"0.57466877",
"0.57251096",
"0.57100666",
"0.57073706",
"0.5705928",
"0.5704614",
"0.5689681",
"0.5669551",
"0.5669439",
"0.56648725",
"0.5662869",
"0.56545997",
"0.56454366",
"0.56397945",
"0.5630848",
"0.56273216",
"0.5619525",
"0.56178945",
"0.55892193",
"0.55862916",
"0.55850554",
"0.5577155",
"0.55755305",
"0.55727047",
"0.5570891",
"0.5566081",
"0.55645525",
"0.55629736",
"0.55610675",
"0.5559637",
"0.5558757",
"0.55560356",
"0.55556905",
"0.5544771",
"0.5543637",
"0.55348885",
"0.5528875"
]
| 0.7905895 | 1 |
Returns a double representing the average volume for all Icosahedron objects in the list. If there are zero Icosahedronobjects in the list, zero should be returned. | public double averageVolume() {
if (numberOfIcosahedrons() == 0) {
return 0;
}
else {
return totalVolume() / numberOfIcosahedrons();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double averageSurfaceToVolumeRatio() {\n int index = 0;\n double total = 0.0;\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceToVolumeRatio();\n index++;\n }\n }\n return total / icosList.size();\n }",
"public double averageVolume() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).volume();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n \r\n return total;\r\n }",
"public double averageVolume() {\r\n double listAvgVolume = 0.0;\r\n if (list.size() != 0) {\r\n listAvgVolume = totalVolume() / list.size();\r\n }\r\n return listAvgVolume;\r\n }",
"public double averageSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n return total;\r\n }",
"public double totalVolume() { \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n \r\n total += list.get(index).volume();\r\n index++; \r\n } \r\n return total;\r\n }",
"public double averageSurfaceArea() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalSurfaceArea() / numberOfIcosahedrons();\n }\n }",
"public double totalVolume() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).volume();\n index++; \n } \n return total;\n }",
"public double totalVolume() {\r\n int index = 0;\r\n double listTotalVolume = 0;\r\n while (index < list.size()) {\r\n listTotalVolume += list.get(index).volume();\r\n index++;\r\n }\r\n return listTotalVolume;\r\n }",
"public double averageSurfaceArea() {\r\n double listAvgSurfaceArea = 0.0;\r\n if (list.size() != 0) {\r\n listAvgSurfaceArea = totalSurfaceArea() / list.size();\r\n }\r\n return listAvgSurfaceArea;\r\n }",
"public static double calculateVolume(List<Triangle3D> triangles){\n double sum = 0;\n for(Triangle3D triangle: triangles){\n double[] r1 = triangle.getCoordinates(0);\n double[] r2 = triangle.getCoordinates(1);\n double[] r3 = triangle.getCoordinates(2);\n sum += (\n - r3[0]*r2[1]*r1[2] + r2[0]*r3[1]*r1[2] + r3[0]*r1[1]*r2[2]\n - r1[0]*r3[1]*r2[2] - r2[0]*r1[1]*r3[2] + r1[0]*r2[1]*r3[2]\n )/6.0;\n }\n return sum;\n }",
"@Override\n public Double average() {\n return (sum() / (double) count());\n }",
"public double getVolume() {\n\n double volume = 0;\n\n double[] v = this.getVertices();\n int[] f = this.getFaces();\n\n for (int i = 0; i < f.length; i += 6) {\n Vector3D v0 = new Vector3D(v[3 * f[i]], v[3 * f[i] + 1], v[3 * f[i] + 2]);\n Vector3D v1 = new Vector3D(v[3 * f[i + 2]], v[3 * f[i + 2] + 1], v[3 * f[i + 2] + 2]);\n Vector3D v2 = new Vector3D(v[3 * f[i + 4]], v[3 * f[i + 4] + 1], v[3 * f[i + 4] + 2]);\n\n v0 = v0.crossProduct(v1);\n volume += v0.dotProduct(v2);\n }\n\n return Math.abs(volume / 6.0);\n }",
"public double average() {\n double average = 0;\n for (int i = 0; i < studentList.size(); i++) {\n Student student = studentList.get(i);\n average += student.average();\n }\n average /= studentList.size();\n return average;\n }",
"public double getAverage(){\r\n\t\tdouble sum=0;\r\n\t\tfor(Iterator<T> it=this.iterator();it.hasNext();){\r\n\t\t\tsum+=it.next().doubleValue();\r\n\t\t}\r\n\t\treturn sum/this.size();\r\n\t}",
"public double totalSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return total;\r\n }",
"public static double getArrayListDoubleMean(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double getvolume(){\n\t\tdouble[] ab_cross_ac = calculate_vcp(getVector_AB(),getVector_AC());\n\t\t\n\t\t//dot product of ab_cross_ac and ad\n\t\tdouble S = calculate_vdp(ab_cross_ac,getVector_AD());\n\t\t\n\t\t//formula of tetrahedron's volume\n\t\treturn Math.abs(S)/6;\t\n\t}",
"public double getAverage(){\n return getTotal()/array.length;\n }",
"private INDArray computeVectorAverage(List<float[]> embeddingsList)\r\n {\r\n INDArray sum = Nd4j.zeros(embeddingsList.get(0).length);\r\n\r\n for (float[] vec : embeddingsList) {\r\n INDArray nd = Nd4j.create(vec);\r\n sum = sum.add(nd);\r\n }\r\n sum = sum.div(embeddingsList.size());\r\n return sum;\r\n }",
"public static double average(ArrayList<Integer> list) {\n double average = (double) sum(list);\n return average / list.size();\n }",
"public double calcAvg() {\n\t\treturn (double)calcSum() / data.size();\n }",
"public double average() {\n return average(0.0);\n }",
"public double totalSurfaceArea() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceArea();\n index++; \n }\n return total;\n }",
"public float getAverageBetweenPoint(){\n return getMetric()/list.size();\n }",
"public double calculateAverage(List<Integer> list) {\n double sum = 0;\n double avg = 0.0;\n try {\n if (list.isEmpty()) {\n throw new Exception(\"Empty List\");\n }\n\n //loop for values to calculate average\n for (Integer mark : list) {\n sum = sum + mark;\n }\n avg = sum / list.size();\n\n } catch (Exception e) {\n avg = 0.0;\n }\n return avg;\n }",
"public int volume() {\r\n int xLength = this.getMaximumPoint().getBlockX() - this.getMinimumPoint().getBlockX() + 1;\r\n int yLength = this.getMaximumPoint().getBlockY() - this.getMinimumPoint().getBlockY() + 1;\r\n int zLength = this.getMaximumPoint().getBlockZ() - this.getMinimumPoint().getBlockZ() + 1;\r\n\r\n int volume = xLength * yLength * zLength;\r\n return volume;\r\n }",
"public double average(){\n double avg = 0;\n double sum = 0;\n for (T t : arr) {\n // sum += t.doubleValue();\n }\n\n return sum / arr.length;\n }",
"private void calculateVolume() {\n\n\t\t/*\n\n\t\t */\n\t\tfor(int i=0; i<this._prismoidsLength.size(); i++) \n\t\t\tthis._prismoidsVolumes.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tthis._prismoidsLength.get(i).divide(3)\n\t\t\t\t\t\t\t.times(\n\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ this._prismoidsSectionsAreas.get(i+1).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ Math.sqrt(\n\t\t\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i)\n\t\t\t\t\t\t\t\t\t\t\t.times(this._prismoidsSectionsAreas.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue()\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t).getEstimatedValue(),\n\t\t\t\t\t\t\tSI.CUBIC_METRE\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tfor(int i=0; i<this._prismoidsVolumes.size(); i++)\n\t\t\tthis._fuelVolume = this._fuelVolume\n\t\t\t\t\t\t\t\t\t\t.plus(this._prismoidsVolumes.get(i));\n\t\tthis._fuelVolume = this._fuelVolume.times(2);\n\t\t\n\t}",
"public double volume() {\n\t\treturn this.iWidth * this.iLength * this.iDepth\r\n\t}",
"public double totalSurfaceArea() {\r\n int index = 0;\r\n double listTotalSurfaceArea = 0;\r\n while (index < list.size()) {\r\n listTotalSurfaceArea += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return listTotalSurfaceArea;\r\n }",
"@Override\n\tpublic int avg() {\n\t\treturn (this.sum()/3);\n\t}",
"public static double average(ArrayList<Double> nums){\n double sum = 0.0;\n for(Double num : nums){\n sum += num;\n }\n return sum / nums.size();\n }",
"@Override\n\tpublic float volume() {\n\t\tfloat volume = (float) ((4/3) * Math.PI * Math.pow(this.radius, 3));\n\t\treturn volume;\n\t}",
"public double getAverage(){\n double total = 0;\n for(double s : scores)total += s;\n return total/scores.length;\n }",
"public static double getAvg(List<Integer> list) {\n int sum = 0;\n for (int i = 0; i != list.size(); ++i) {\n sum += list.get(i);\n }\n return (double)sum / list.size();\n }",
"public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}",
"private float calculateAverage(List<Float> tempVoltages) {\r\n\t\t\r\n\t\tfloat runningTotal = 0;\r\n\t\tfor(float i : tempVoltages){\r\n\t\t\trunningTotal += i;\r\n\t\t}\r\n\t\trunningTotal /= tempVoltages.size();\r\n\t\treturn runningTotal;\r\n\t}",
"@Override\n public double getVolume() {\n return liquids\n .stream()\n .mapToDouble(Liquid::getVolume)\n .sum();\n }",
"@Override\n\tpublic float volume() {\n\t\treturn (float) ((4/3) * Math.PI * Math.pow(radius, 3));\n\t}",
"public static double getArrayListDoubleVariance(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double avg() {\n\t\treturn total()/4.0;\n\t}",
"public double mean() {\n\t\tif (count() > 0) {\n\t\t\treturn _sum.get() / (double) count();\n\t\t}\n\t\treturn 0.0;\n\t}",
"public double volume () {return (4/3)*Math.PI*this.r*this.r*this.r;}",
"public double[] mean() {\n\t\tdouble[] mean = null;\n\t\tif(instances != null) {\n\t\t\tmean = new double[instances.get(0).length];\n\t\t\tfor(double[] instance : instances) {\n\t\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\t\tmean[d] += instance[d];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdouble n = instances.size();\n\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\tmean[d] /= n;\n\t\t\t}\n\t\t}\n\t\treturn mean;\n\t}",
"public abstract float volume();",
"double volume()\n\t{\n\t\t\n\t\treturn width*height*depth;\n\t\t\n\t}",
"private static int getAverage(ArrayList<Integer> inList) \n\t{\n\t\tint add = 0; \n\t\tint mean = 0; \n\t\tfor(int pos = 0; pos < inList.size(); ++pos)\n\t\t{\n\t\t\tadd = add + inList.get(pos);\n\t\t\t\n\t\t}\n\t\t\n\t\tmean = add/inList.size(); \n\t\t\n\t\treturn mean; \n\t\t\n\t}",
"public double getAlcoholVolume() {\n return isAlcoholic() ?\n liquids\n .stream()\n .filter(liquid -> liquid.getAlcoholPercent() > 0)\n .mapToDouble(liquid -> (liquid.getVolume() * (liquid.getAlcoholPercent() / 100)))\n .sum()\n : 0.0;\n }",
"public static double avg(ExpressionContext context, List nodeset) {\n if ((nodeset == null) || (nodeset.size() == 0)) {\n return Double.NaN;\n }\n\n JXPathContext rootContext = context.getJXPathContext();\n rootContext.getVariables().declareVariable(\"nodeset\", nodeset);\n\n Double value = (Double) rootContext.getValue(\"sum($nodeset) div count($nodeset)\", Double.class);\n\n return value.doubleValue();\n }",
"public double calcVolume(){\n double area=calcArea(); // calcArea of superclass used\r\n return area*h;\r\n }",
"public double getVolume() {\n\t\treturn height * depth * length;\n\n\t}",
"public abstract double volume();",
"double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}",
"double average(double[] doubles) {\n double total = 0.0;\n //int count = 0;\n for (double d: doubles) {\n total = total + d;\n //count = count + 1;\n }\n //return total / count;\n return total / doubles.length;\n }",
"public double getAverage(){\n int total = 0; //inicializa o total\n \n //soma notas de um aluno\n for(int grade: grades){\n total += grade;\n }\n \n return (double) total/grades.length;\n }",
"private double computeMean(List<Integer> intList) {\n double count = 0;\n for (Integer i : intList) {\n count += i;\n }\n return count / intList.size();\n }",
"public double getAverage()\n {\n return getSum() / 2.0;\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"public double volume()\r\n {\r\n double volume = Math.pow(radius, 2) * (height / 3) * Math.PI;\r\n return volume;\r\n }",
"private double Volume() {\n\t\tdouble volume = (4f / 3f) * Math.PI * Math.pow(_radius, 3);\n\t\treturn volume;\n\t}",
"double average();",
"double volume(){\n\n return widgh*height*depth;\n\n }",
"double average() { // used double b/c I want decimal places\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsum = sum + array[i];\n\t\t}\n\t\tdouble average = (double) sum / array.length;\n\t\treturn average;\n\n\t}",
"public static double berekenGemiddeldeOmzet(ArrayList<Double> omzet) {\n \tdouble result = 0;\n \tint counter = 0;\n for(double i: omzet) {\n \tcounter += 1;\n \tresult += i;\n }\n return result / counter;\n }",
"public double average(ArrayList<Double> x) {\n double sum = 0;\n double round;\n for (int i = 0; i < x.size(); i++) {\n sum += x.get(i);\n }\n round = sum / x.size() * 100;\n round = Math.round(round);\n round /= 100;\n return round;\n }",
"public abstract double calcVolume();",
"public abstract double calcVolume();",
"public double mean()\n {\n double sum = 0.0;\n for(int t = 0; t<size; t++)\n sum += x[t];\n return sum/size;\n }",
"public double getTotalVolume() {\n return totalVolume;\n }",
"public int average()\n {\n int average = 0;\n int sum = 0;\n\n for ( int index = 0; index < data.length; index++ )\n {\n sum = sum + data[index];\n }\n average = sum / data.length;\n\n return average;\n }",
"private double avgNonEmpty() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (numEntries / percent);\n\t}",
"static double average(double[] data){\n\n // Initializing total placeholder \n double total = 0;\n\n // Traversing data array and adding to total sum\n for (double d : data) {\n total += d;\n }\n\n // Computing average\n double average = (double) total / data.length;\n\n return average;\n }",
"@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double volume() {\n\t\treturn 0;\n\t}",
"double volume() {\n\t\treturn 0;\n\t}",
"public int calculateVolume() {\n return (int) Math.pow(this.sideLength, 3) ;\n }",
"public double media(){\n double soma=0;\n for (int i = 0; i < lista.size(); i++) {\n soma+=lista.get(i).getMedia();\n }\n return soma/lista.size();\n }",
"public double calculateAverage(List<Double> list, String s) {\n double sum = 0;\n double avg = 0.0;\n try {\n if (list.isEmpty()) {\n throw new Exception(\"Empty List\");\n }\n\n //loop for values to calculate average\n for (Double mark : list) {\n sum = sum + mark;\n }\n avg = sum / list.size();\n\n } catch (Exception e) {\n avg = 0.0;\n }\n return avg;\n }",
"public double averagePrice() {\r\n\t\tdouble sum = 0;\r\n\t\tfor(Integer price : ticketPrice) {\r\n\t\t\tsum+=price;\r\n\t\t}\r\n\t\treturn sum/ticketPrice.size();\r\n\t}",
"public abstract double divideForAvg(S o, Long l);",
"public double mean (List<? extends Number> a){\n\t\tint sum = sum(a);\n\t\tdouble mean = 0;\n\t\tmean = sum / (a.size() * 1.0);\n\t\treturn mean;\n\t}",
"public Double computeAverage(){\n\t\tdouble total = 0; //double used to keep total value of elements in arr to determine average\n\t\t\n\t\tfor(int i = 0; i < arr.length; i++)//loop through array and add the total\n\t\t{\n\t\t\ttotal += arr[i].doubleValue(); //add current value of element in arr to total's value\n\t\t}\n\t\t\n\t\tDouble result = total/arr.length; //returns the average as a Double\n\t\t\n\t\treturn result;\n\t}",
"public Quantity<Q> getAverage() {\n return average;\n }",
"public int average() {\n int total = 0;\n\n for (int score : scores) {\n total += score;\n }\n\n return total / scores.length;\n }",
"public float getAverage(){\r\n\t\treturn Average;\r\n\t}",
"public double average()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tdouble sum = this.sum();\n\t\t\treturn sum / arraySize;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\t}",
"@Override\n\tpublic float volume() {\n\t\treturn 0;\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public void getAvg()\n {\n this.avg = sum/intData.length;\n }",
"public Double avgCategoriesPerRendezvous() {\n\t\tDouble result;\r\n\t\tDouble sum = 0.0;\r\n\t\tCollection<Category> auxc = new ArrayList<Category>();\r\n\t\tfinal Collection<Rendezvous> auxr = this.rendezvousService.findAll();\r\n\t\tfor (final Rendezvous r : auxr) {\r\n\t\t\tauxc = this.findByRendezvousID(r.getId());\r\n\t\t\tsum = sum + auxc.size();\r\n\t\t}\r\n\t\tresult = sum / auxr.size();\r\n\t\treturn result;\r\n\t}",
"public double average(double alternative) {\n int cnt = 0;\n double sum = 0.0;\n\n // Compute the average of all values\n for (Number number : this) {\n if (number == null) continue;\n if (Double.isNaN(number.doubleValue())) continue;\n\n sum += number.doubleValue();\n cnt++;\n }\n\n // If we haven't had any element, return 0\n if (cnt == 0) return alternative;\n return sum / cnt;\n }",
"public double getVolume() {\n return (getArea() * height);\n }",
"public float getMean() {\r\n int sum = getSum(rbt.root);\r\n float mean = sum / rbt.size();\r\n return mean;\r\n }",
"public double variance() {\n final double average = average();\n final int size = size();\n\n int cnt = 0;\n double rval = 0;\n\n // Compute the variance\n for (int i = 0; i < size; i++) {\n final Number number = get(i);\n if (number == null) continue;\n if (Double.isNaN(number.doubleValue())) continue;\n\n rval += (average - number.doubleValue()) * (average - number.doubleValue());\n cnt++;\n }\n\n // If we haven't had any element, return 0\n if (cnt == 0) return 0;\n\n return rval / cnt;\n }",
"public double mean() {\n return StdStats.mean(fraction);\n }",
"public static Double mean(ArrayList<Double> values) {\n\t\tDouble total = 0.0;\n\t\t// iterate through the values and add to the total\n\t\tfor (int i = 0; i < values.size(); i++) {\n\t\t\ttotal += values.get(i);\n\t\t}\n\t\t// return the total devided by the number of values\n\t\treturn total / values.size();\n\t}",
"void calculate() {\n\t\tint i;\n\t\tdouble avgVolume = 0.0;\n\t\t\n\t\tfor( i = 0; i < end; i++ ) {\n\t\t\t\n\t\t\tavgVolume += s[i].showVolume();\n\t\t\tSystem.out.println(s[i].toString());\n\t\t}\n\t\tif( end == 0 )\n\t\t\tSystem.out.println(\"Queue is empty\");\n\t\telse\n\t\t\tSystem.out.println(\"Average Volume is :- \" + avgVolume/end);\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public int numberOfEllipsoids() { \r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n return list.size(); \r\n }",
"public static double calculateAverageCurvature(DeformableMesh3D sharedFaces) {\n double sum = 0;\n double area = 0;\n for(Node3D node: sharedFaces.nodes){\n List<Triangle3D> firstNeighbors = sharedFaces.triangles.stream().filter(\n t->t.containsNode(node)\n ).collect(Collectors.toList());\n if(firstNeighbors.size()==0){\n continue;\n }\n double[] row = getNormalAndCurvature(node, firstNeighbors);\n\n double ai = calculateMixedArea(node, firstNeighbors );\n area += ai;\n sum += row[3]*ai/2;\n\n }\n return sum/area;\n }"
]
| [
"0.82123226",
"0.76756865",
"0.7394509",
"0.712803",
"0.6974748",
"0.692704",
"0.6808787",
"0.6795138",
"0.67002326",
"0.65680456",
"0.65458834",
"0.6456715",
"0.6377156",
"0.63621384",
"0.6333795",
"0.62870944",
"0.6279118",
"0.6239754",
"0.623882",
"0.62343246",
"0.6200502",
"0.6187597",
"0.61366403",
"0.61167765",
"0.60829055",
"0.6082413",
"0.6081884",
"0.60809726",
"0.6069799",
"0.60635686",
"0.6036371",
"0.60207474",
"0.6017053",
"0.601105",
"0.6001319",
"0.5976901",
"0.5967303",
"0.5963726",
"0.5948688",
"0.5897427",
"0.5862219",
"0.5857627",
"0.58329326",
"0.583248",
"0.57846516",
"0.5783807",
"0.57829976",
"0.57803285",
"0.5777022",
"0.57759935",
"0.5773975",
"0.5764264",
"0.5763974",
"0.57526165",
"0.57458884",
"0.5732221",
"0.5724495",
"0.57153064",
"0.57130426",
"0.570252",
"0.5701578",
"0.57000524",
"0.5688115",
"0.5682135",
"0.5681995",
"0.5680551",
"0.5680551",
"0.5668205",
"0.566152",
"0.56541795",
"0.56362927",
"0.5631406",
"0.56287825",
"0.56287825",
"0.5628356",
"0.56250393",
"0.56020844",
"0.5596846",
"0.556544",
"0.5560447",
"0.5555819",
"0.5547496",
"0.55436915",
"0.5534415",
"0.5526086",
"0.5517325",
"0.5513231",
"0.55100566",
"0.55063826",
"0.55050147",
"0.5503352",
"0.54969287",
"0.54948163",
"0.54816484",
"0.5479963",
"0.5465853",
"0.54602104",
"0.54487574",
"0.54448",
"0.5442058"
]
| 0.80658287 | 1 |
Returns a double representing the average surface to volume ratio for all Icosahedron objects in the list. If there are zero Icosahedron objects in the list, zero is returned. | public double averageSurfaceToVolumeRatio() {
int index = 0;
double total = 0.0;
if (numberOfIcosahedrons() == 0) {
return 0;
}
else {
while (index < icosList.size()) {
total += icosList.get(index).surfaceToVolumeRatio();
index++;
}
}
return total / icosList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double averageVolume() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalVolume() / numberOfIcosahedrons();\n }\n }",
"public double averageSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n return total;\r\n }",
"public double averageSurfaceArea() {\n if (numberOfIcosahedrons() == 0) {\n return 0;\n }\n else {\n return totalSurfaceArea() / numberOfIcosahedrons();\n }\n }",
"public double averageSurfaceArea() {\r\n double listAvgSurfaceArea = 0.0;\r\n if (list.size() != 0) {\r\n listAvgSurfaceArea = totalSurfaceArea() / list.size();\r\n }\r\n return listAvgSurfaceArea;\r\n }",
"public double averageVolume() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).volume();\r\n index++;\r\n }\r\n if (index == 0)\r\n {\r\n total = 0;\r\n }\r\n else\r\n {\r\n total = total / index;\r\n }\r\n \r\n return total;\r\n }",
"public double totalSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return total;\r\n }",
"public double totalSurfaceArea() {\r\n int index = 0;\r\n double listTotalSurfaceArea = 0;\r\n while (index < list.size()) {\r\n listTotalSurfaceArea += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return listTotalSurfaceArea;\r\n }",
"public double totalSurfaceArea() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceArea();\n index++; \n }\n return total;\n }",
"public double averageVolume() {\r\n double listAvgVolume = 0.0;\r\n if (list.size() != 0) {\r\n listAvgVolume = totalVolume() / list.size();\r\n }\r\n return listAvgVolume;\r\n }",
"public static double calculateVolume(List<Triangle3D> triangles){\n double sum = 0;\n for(Triangle3D triangle: triangles){\n double[] r1 = triangle.getCoordinates(0);\n double[] r2 = triangle.getCoordinates(1);\n double[] r3 = triangle.getCoordinates(2);\n sum += (\n - r3[0]*r2[1]*r1[2] + r2[0]*r3[1]*r1[2] + r3[0]*r1[1]*r2[2]\n - r1[0]*r3[1]*r2[2] - r2[0]*r1[1]*r3[2] + r1[0]*r2[1]*r3[2]\n )/6.0;\n }\n return sum;\n }",
"public double totalVolume() { \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n \r\n total += list.get(index).volume();\r\n index++; \r\n } \r\n return total;\r\n }",
"public static double average(ArrayList<Integer> list) {\n double average = (double) sum(list);\n return average / list.size();\n }",
"public static double getArrayListDoubleMean(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"public double totalVolume() {\r\n int index = 0;\r\n double listTotalVolume = 0;\r\n while (index < list.size()) {\r\n listTotalVolume += list.get(index).volume();\r\n index++;\r\n }\r\n return listTotalVolume;\r\n }",
"public double totalVolume() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).volume();\n index++; \n } \n return total;\n }",
"public static double getAvg(List<Integer> list) {\n int sum = 0;\n for (int i = 0; i != list.size(); ++i) {\n sum += list.get(i);\n }\n return (double)sum / list.size();\n }",
"@Override\n public Double average() {\n return (sum() / (double) count());\n }",
"public float getAverageBetweenPoint(){\n return getMetric()/list.size();\n }",
"public double calcAvg() {\n\t\treturn (double)calcSum() / data.size();\n }",
"public double average() {\n double average = 0;\n for (int i = 0; i < studentList.size(); i++) {\n Student student = studentList.get(i);\n average += student.average();\n }\n average /= studentList.size();\n return average;\n }",
"public static double getArrayListDoubleVariance(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"public static double average(ArrayList<Double> nums){\n double sum = 0.0;\n for(Double num : nums){\n sum += num;\n }\n return sum / nums.size();\n }",
"public double getRatio() {\n return (double) vector.length / size;\n }",
"private INDArray computeVectorAverage(List<float[]> embeddingsList)\r\n {\r\n INDArray sum = Nd4j.zeros(embeddingsList.get(0).length);\r\n\r\n for (float[] vec : embeddingsList) {\r\n INDArray nd = Nd4j.create(vec);\r\n sum = sum.add(nd);\r\n }\r\n sum = sum.div(embeddingsList.size());\r\n return sum;\r\n }",
"public double getVolume() {\n\n double volume = 0;\n\n double[] v = this.getVertices();\n int[] f = this.getFaces();\n\n for (int i = 0; i < f.length; i += 6) {\n Vector3D v0 = new Vector3D(v[3 * f[i]], v[3 * f[i] + 1], v[3 * f[i] + 2]);\n Vector3D v1 = new Vector3D(v[3 * f[i + 2]], v[3 * f[i + 2] + 1], v[3 * f[i + 2] + 2]);\n Vector3D v2 = new Vector3D(v[3 * f[i + 4]], v[3 * f[i + 4] + 1], v[3 * f[i + 4] + 2]);\n\n v0 = v0.crossProduct(v1);\n volume += v0.dotProduct(v2);\n }\n\n return Math.abs(volume / 6.0);\n }",
"public double calculateAverage(List<Integer> list) {\n double sum = 0;\n double avg = 0.0;\n try {\n if (list.isEmpty()) {\n throw new Exception(\"Empty List\");\n }\n\n //loop for values to calculate average\n for (Integer mark : list) {\n sum = sum + mark;\n }\n avg = sum / list.size();\n\n } catch (Exception e) {\n avg = 0.0;\n }\n return avg;\n }",
"public double getAverage(){\r\n\t\tdouble sum=0;\r\n\t\tfor(Iterator<T> it=this.iterator();it.hasNext();){\r\n\t\t\tsum+=it.next().doubleValue();\r\n\t\t}\r\n\t\treturn sum/this.size();\r\n\t}",
"public double getAverage(){\n double total = 0;\n for(double s : scores)total += s;\n return total/scores.length;\n }",
"public double media(){\n double soma=0;\n for (int i = 0; i < lista.size(); i++) {\n soma+=lista.get(i).getMedia();\n }\n return soma/lista.size();\n }",
"public double average(ArrayList<Double> x) {\n double sum = 0;\n double round;\n for (int i = 0; i < x.size(); i++) {\n sum += x.get(i);\n }\n round = sum / x.size() * 100;\n round = Math.round(round);\n round /= 100;\n return round;\n }",
"public double getAverage(){\n return getTotal()/array.length;\n }",
"public double average() {\n return average(0.0);\n }",
"private float calculateAverage(List<Float> tempVoltages) {\r\n\t\t\r\n\t\tfloat runningTotal = 0;\r\n\t\tfor(float i : tempVoltages){\r\n\t\t\trunningTotal += i;\r\n\t\t}\r\n\t\trunningTotal /= tempVoltages.size();\r\n\t\treturn runningTotal;\r\n\t}",
"@Override\n\tpublic int avg() {\n\t\treturn (this.sum()/3);\n\t}",
"public float averageAnswers() {\n\t\tfloat out = 0;\n\t\t\n\t\tIterator<SolveResult> iter = super.iterator();\n\t\t\n\t\twhile(iter.hasNext()) {\n\t\t\tSolveResult thisResult = iter.next();\n\t\t\tfloat clues = ResultSet.clueCount(thisResult.puzzle);\n\t\t\tfloat cardinality = thisResult.puzzle.getCardinality();\n\t\t\tfloat conflicts = thisResult.puzzle.conflictCount();\n\t\t\t\n\t\t\tif(!(cardinality - clues - conflicts < 0)) {\n\t\t\t\tout += ((cardinality - clues - conflicts) / (81 - clues));\n\t\t\t}\n\t\t}\n\t\treturn out / super.size();\n\t}",
"public double average(){\n double avg = 0;\n double sum = 0;\n for (T t : arr) {\n // sum += t.doubleValue();\n }\n\n return sum / arr.length;\n }",
"public double std(ArrayList<Double> x) {\n double sum = 0;\n double round;\n for (int i = 0; i < x.size(); i++) {\n sum += Math.pow((x.get(i) - average(x)), 2) / x.size();\n }\n round = Math.sqrt(sum) * 100;\n round = Math.round(round);\n round /= 100;\n return round;\n\n\n }",
"public double getTotalArea () {\n double total = 0.;\n for (Shape s : polygons) {\n total += Util.area(s);\n }\n\n if (resolution != null) {\n total /= resolution;\n }\n return total;\n }",
"@Override\n\tpublic double getvolume(){\n\t\tdouble[] ab_cross_ac = calculate_vcp(getVector_AB(),getVector_AC());\n\t\t\n\t\t//dot product of ab_cross_ac and ad\n\t\tdouble S = calculate_vdp(ab_cross_ac,getVector_AD());\n\t\t\n\t\t//formula of tetrahedron's volume\n\t\treturn Math.abs(S)/6;\t\n\t}",
"double average(double[] doubles) {\n double total = 0.0;\n //int count = 0;\n for (double d: doubles) {\n total = total + d;\n //count = count + 1;\n }\n //return total / count;\n return total / doubles.length;\n }",
"private double computeMean(List<Integer> intList) {\n double count = 0;\n for (Integer i : intList) {\n count += i;\n }\n return count / intList.size();\n }",
"@Override\n\tpublic double avg() {\n\t\treturn total()/4.0;\n\t}",
"@Override\n\tpublic float volume() {\n\t\tfloat volume = (float) ((4/3) * Math.PI * Math.pow(this.radius, 3));\n\t\treturn volume;\n\t}",
"public double getAlcoholVolume() {\n return isAlcoholic() ?\n liquids\n .stream()\n .filter(liquid -> liquid.getAlcoholPercent() > 0)\n .mapToDouble(liquid -> (liquid.getVolume() * (liquid.getAlcoholPercent() / 100)))\n .sum()\n : 0.0;\n }",
"public double calculateAverage(List<Double> list, String s) {\n double sum = 0;\n double avg = 0.0;\n try {\n if (list.isEmpty()) {\n throw new Exception(\"Empty List\");\n }\n\n //loop for values to calculate average\n for (Double mark : list) {\n sum = sum + mark;\n }\n avg = sum / list.size();\n\n } catch (Exception e) {\n avg = 0.0;\n }\n return avg;\n }",
"public float getAverageWidth() {\n Object value = library.getObject(entries, AVG_WIDTH);\n if (value instanceof Number) {\n return ((Number) value).floatValue();\n }\n return 0.0f;\n }",
"double average() { // used double b/c I want decimal places\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsum = sum + array[i];\n\t\t}\n\t\tdouble average = (double) sum / array.length;\n\t\treturn average;\n\n\t}",
"private double getArea(List<Point> points){\n double result = 0.0;\n int n = points.size();\n for (int i = 0; i < n; i++) {\n if (i == 0) {\n result += points.get(i).x * (points.get(n - 1).z - points.get(i + 1).z);\n } else if (i == (n - 1)) {\n result += points.get(i).x * (points.get(i - 1).z - points.get(0).z);\n } else {\n result += points.get(i).x * (points.get(i - 1).z - points.get(i + 1).z);\n }\n }\n return Math.abs(result) / 2.0;\n }",
"private double avgNonEmpty() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (numEntries / percent);\n\t}",
"private double getAverageRadius(LinkedList<V> pllCommunity) {\n double average = 0.0;\n for (V v : pllCommunity) {\n average += v.getWeight();\n }\n average /= pllCommunity.size();\n\n return average;\n // return average * VertexShapeTransformer.DEFAULT_VERTEX_RADIUS;\n }",
"private static int getAverage(ArrayList<Integer> inList) \n\t{\n\t\tint add = 0; \n\t\tint mean = 0; \n\t\tfor(int pos = 0; pos < inList.size(); ++pos)\n\t\t{\n\t\t\tadd = add + inList.get(pos);\n\t\t\t\n\t\t}\n\t\t\n\t\tmean = add/inList.size(); \n\t\t\n\t\treturn mean; \n\t\t\n\t}",
"public int average() {\n int total = 0;\n\n for (int score : scores) {\n total += score;\n }\n\n return total / scores.length;\n }",
"public float averageTime() {\n\t\tfloat out = 0;\n\t\t\n\t\tIterator<SolveResult> iter = super.iterator();\n\t\t\n\t\twhile(iter.hasNext()) {\n\t\t\tout += iter.next().timeTaken;\n\t\t}\n\t\t\n\t\treturn out / super.size();\n\t}",
"public int getAvgSpec() {\n return totalSpec/totalMatches;\n }",
"public static double getStd(List<Integer> list) {\n double std = 0;\n double avg = getAvg(list);\n // sum values\n for(int i = 0; i != list.size(); ++i) {\n std += Math.pow(list.get(i) - avg, 2);\n }\n // divide by number of values\n // square root\n return Math.sqrt(std/list.size());\n\n }",
"public static double calculateAverageCurvature(DeformableMesh3D sharedFaces) {\n double sum = 0;\n double area = 0;\n for(Node3D node: sharedFaces.nodes){\n List<Triangle3D> firstNeighbors = sharedFaces.triangles.stream().filter(\n t->t.containsNode(node)\n ).collect(Collectors.toList());\n if(firstNeighbors.size()==0){\n continue;\n }\n double[] row = getNormalAndCurvature(node, firstNeighbors);\n\n double ai = calculateMixedArea(node, firstNeighbors );\n area += ai;\n sum += row[3]*ai/2;\n\n }\n return sum/area;\n }",
"public double mean() {\n\t\tif (count() > 0) {\n\t\t\treturn _sum.get() / (double) count();\n\t\t}\n\t\treturn 0.0;\n\t}",
"public double volume() {\n\t\treturn this.iWidth * this.iLength * this.iDepth\r\n\t}",
"@Override\n\tpublic float volume() {\n\t\treturn (float) ((4/3) * Math.PI * Math.pow(radius, 3));\n\t}",
"public double[] mean() {\n\t\tdouble[] mean = null;\n\t\tif(instances != null) {\n\t\t\tmean = new double[instances.get(0).length];\n\t\t\tfor(double[] instance : instances) {\n\t\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\t\tmean[d] += instance[d];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdouble n = instances.size();\n\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\tmean[d] /= n;\n\t\t\t}\n\t\t}\n\t\treturn mean;\n\t}",
"public static Double mean(ArrayList<Double> values) {\n\t\tDouble total = 0.0;\n\t\t// iterate through the values and add to the total\n\t\tfor (int i = 0; i < values.size(); i++) {\n\t\t\ttotal += values.get(i);\n\t\t}\n\t\t// return the total devided by the number of values\n\t\treturn total / values.size();\n\t}",
"@Override\n public double getVolume() {\n return liquids\n .stream()\n .mapToDouble(Liquid::getVolume)\n .sum();\n }",
"public double volume () {return (4/3)*Math.PI*this.r*this.r*this.r;}",
"public static void calculate_average_ratio1() {\n double sum = 0;\n\n for (int i = 0; i < Variables.pixels.size(); i++) {\n sum += Variables.pixels.get(i).getRatio1();\n }\n Variables.average_ratio1 = sum / Variables.pixels.size();\n }",
"public int volume() {\r\n int xLength = this.getMaximumPoint().getBlockX() - this.getMinimumPoint().getBlockX() + 1;\r\n int yLength = this.getMaximumPoint().getBlockY() - this.getMinimumPoint().getBlockY() + 1;\r\n int zLength = this.getMaximumPoint().getBlockZ() - this.getMinimumPoint().getBlockZ() + 1;\r\n\r\n int volume = xLength * yLength * zLength;\r\n return volume;\r\n }",
"public static double avg(ExpressionContext context, List nodeset) {\n if ((nodeset == null) || (nodeset.size() == 0)) {\n return Double.NaN;\n }\n\n JXPathContext rootContext = context.getJXPathContext();\n rootContext.getVariables().declareVariable(\"nodeset\", nodeset);\n\n Double value = (Double) rootContext.getValue(\"sum($nodeset) div count($nodeset)\", Double.class);\n\n return value.doubleValue();\n }",
"public static double sum(ArrayList<Double> list){\r\n\t\tdouble sum = 0;\r\n\t\tfor(int i = 0; i < list.size(); i++){\r\n\t\t\tsum += list.get(i);\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t\t\r\n\t}",
"public double getAverage()\n {\n return getSum() / 2.0;\n }",
"public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}",
"private void calculateVolume() {\n\n\t\t/*\n\n\t\t */\n\t\tfor(int i=0; i<this._prismoidsLength.size(); i++) \n\t\t\tthis._prismoidsVolumes.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tthis._prismoidsLength.get(i).divide(3)\n\t\t\t\t\t\t\t.times(\n\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ this._prismoidsSectionsAreas.get(i+1).getEstimatedValue()\n\t\t\t\t\t\t\t\t\t+ Math.sqrt(\n\t\t\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i)\n\t\t\t\t\t\t\t\t\t\t\t.times(this._prismoidsSectionsAreas.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue()\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t).getEstimatedValue(),\n\t\t\t\t\t\t\tSI.CUBIC_METRE\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tfor(int i=0; i<this._prismoidsVolumes.size(); i++)\n\t\t\tthis._fuelVolume = this._fuelVolume\n\t\t\t\t\t\t\t\t\t\t.plus(this._prismoidsVolumes.get(i));\n\t\tthis._fuelVolume = this._fuelVolume.times(2);\n\t\t\n\t}",
"public double getAverage(){\n int total = 0; //inicializa o total\n \n //soma notas de um aluno\n for(int grade: grades){\n total += grade;\n }\n \n return (double) total/grades.length;\n }",
"public double getAvgDraws() {\n\t\tdouble result = -1.0, sum = 0.0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT SUM(drawCnt) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tsum = this.rs.getDouble(1) ;\n\t\t\t}\n\t\t\tthis.rs = smt.executeQuery(\"SELECT COUNT(id) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tcount = this.rs.getInt(1);\n\t\t\t\tresult = sum / count;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public double findAvgWage() {\n int numLabourer = 0;\n double total = 0;\n \n for (int i = 0; i < staffList.length; i++) {\n if (staffList[i] instanceof Labourer) {\n total += ((Labourer) staffList[i]).getWage();\n numLabourer ++;\n }\n }\n \n return total/numLabourer;\n }",
"public double mean() {\n return StdStats.mean(fraction);\n }",
"double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}",
"public double calculatePolyVectorError( List<ConvexPolygon> ls){\n Group image = new Group();\n for (ConvexPolygon p : ls){\n image.getChildren().add(p);\n }\n\n WritableImage wimg = new WritableImage(maxX, maxY);\n image.snapshot(null, wimg);\n PixelReader pr = wimg.getPixelReader();\n\n double res=0;\n for (int i=0;i<maxX;i++){\n for (int j=0;j<maxY;j++){\n Color c = pr.getColor(i, j);\n res += Math.pow(c.getBlue()-target[i][j].getBlue(),2)\n +Math.pow(c.getRed()-target[i][j].getRed(),2)\n +Math.pow(c.getGreen()-target[i][j].getGreen(),2);\n }\n }\n return Math.sqrt(res);\n }",
"public int numberOfEllipsoids() { \r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n return list.size(); \r\n }",
"public double averagePrice() {\r\n\t\tdouble sum = 0;\r\n\t\tfor(Integer price : ticketPrice) {\r\n\t\t\tsum+=price;\r\n\t\t}\r\n\t\treturn sum/ticketPrice.size();\r\n\t}",
"public double getAverageEdgeLength() {\n\t\tdouble x = this.maxX - this.minX;\n\t\tdouble y = this.maxY - this.minY;\n\t\tdouble z = this.maxZ - this.minZ;\n\t\treturn (x + y + z) / 3.0D;\n\t}",
"public static double berekenGemiddeldeOmzet(ArrayList<Double> omzet) {\n \tdouble result = 0;\n \tint counter = 0;\n for(double i: omzet) {\n \tcounter += 1;\n \tresult += i;\n }\n return result / counter;\n }",
"@Override\n\tpublic float surfaceArea() {\n\t\tfloat area = (float) (4 * Math.PI * Math.pow(this.radius, 2));\n\t\treturn area;\n\t}",
"public Double computeAverage(){\n\t\tdouble total = 0; //double used to keep total value of elements in arr to determine average\n\t\t\n\t\tfor(int i = 0; i < arr.length; i++)//loop through array and add the total\n\t\t{\n\t\t\ttotal += arr[i].doubleValue(); //add current value of element in arr to total's value\n\t\t}\n\t\t\n\t\tDouble result = total/arr.length; //returns the average as a Double\n\t\t\n\t\treturn result;\n\t}",
"double average();",
"public Double avgCategoriesPerRendezvous() {\n\t\tDouble result;\r\n\t\tDouble sum = 0.0;\r\n\t\tCollection<Category> auxc = new ArrayList<Category>();\r\n\t\tfinal Collection<Rendezvous> auxr = this.rendezvousService.findAll();\r\n\t\tfor (final Rendezvous r : auxr) {\r\n\t\t\tauxc = this.findByRendezvousID(r.getId());\r\n\t\t\tsum = sum + auxc.size();\r\n\t\t}\r\n\t\tresult = sum / auxr.size();\r\n\t\treturn result;\r\n\t}",
"public float getMean() {\r\n int sum = getSum(rbt.root);\r\n float mean = sum / rbt.size();\r\n return mean;\r\n }",
"public int average()\n {\n int average = 0;\n int sum = 0;\n\n for ( int index = 0; index < data.length; index++ )\n {\n sum = sum + data[index];\n }\n average = sum / data.length;\n\n return average;\n }",
"public double surfaceArea()\r\n {\r\n double surfaceArea = baseArea() + sideArea();\r\n return surfaceArea;\r\n }",
"public double calculateSurfaceArea() {\n double surfaceArea = 2 * this.getLength() * this.getWidth() +\n 2 * this.getLength() * this.getHeight() +\n 2 * this.getWidth() * this.getHeight();\n return surfaceArea;\n }",
"public double mean()\n {\n double sum = 0.0;\n for(int t = 0; t<size; t++)\n sum += x[t];\n return sum/size;\n }",
"private double Volume() {\n\t\tdouble volume = (4f / 3f) * Math.PI * Math.pow(_radius, 3);\n\t\treturn volume;\n\t}",
"public static double getArrayListDoubleMin(ArrayList<Double> list) {\n\t\treturn 0;\n\t}",
"double volume()\n\t{\n\t\t\n\t\treturn width*height*depth;\n\t\t\n\t}",
"private Double computeRatio(final Collection<?> partial, final Collection<?> complete) {\n\r\n\t\tif (partial.isEmpty() || complete.isEmpty())\r\n\t\t\treturn 0.0;\r\n\t\telse\r\n\t\t\treturn (partial.size() * 1.0) / (complete.size() * 1.0);\r\n\r\n\t}",
"static double average(double[] data){\n\n // Initializing total placeholder \n double total = 0;\n\n // Traversing data array and adding to total sum\n for (double d : data) {\n total += d;\n }\n\n // Computing average\n double average = (double) total / data.length;\n\n return average;\n }",
"public double variance() {\n final double average = average();\n final int size = size();\n\n int cnt = 0;\n double rval = 0;\n\n // Compute the variance\n for (int i = 0; i < size; i++) {\n final Number number = get(i);\n if (number == null) continue;\n if (Double.isNaN(number.doubleValue())) continue;\n\n rval += (average - number.doubleValue()) * (average - number.doubleValue());\n cnt++;\n }\n\n // If we haven't had any element, return 0\n if (cnt == 0) return 0;\n\n return rval / cnt;\n }",
"public abstract float surfaceArea();",
"double volume() {\n\treturn width*height*depth;\n}",
"public double volume()\r\n {\r\n double volume = Math.pow(radius, 2) * (height / 3) * Math.PI;\r\n return volume;\r\n }",
"public double calcVolume(){\n double area=calcArea(); // calcArea of superclass used\r\n return area*h;\r\n }",
"public double getMeanSquare() {\n return sumQ / count;\n }"
]
| [
"0.7492196",
"0.7488533",
"0.73052925",
"0.7120166",
"0.7040114",
"0.69460726",
"0.67249185",
"0.6721093",
"0.6714386",
"0.66277623",
"0.6505776",
"0.6361349",
"0.63453954",
"0.6310279",
"0.6267343",
"0.62009186",
"0.616106",
"0.6153427",
"0.61516154",
"0.6144792",
"0.61106",
"0.6079299",
"0.60080206",
"0.5990779",
"0.59876144",
"0.5977423",
"0.5945803",
"0.591431",
"0.5913593",
"0.5910394",
"0.5902764",
"0.5899081",
"0.589356",
"0.5786415",
"0.5784577",
"0.5772377",
"0.5767551",
"0.5715113",
"0.56936455",
"0.568002",
"0.5664605",
"0.56332433",
"0.5590971",
"0.55899894",
"0.5572596",
"0.55594",
"0.5553476",
"0.552852",
"0.5523837",
"0.5523182",
"0.5521583",
"0.5518394",
"0.55156946",
"0.5508485",
"0.5508008",
"0.55078334",
"0.55031466",
"0.5489655",
"0.54895866",
"0.54871225",
"0.5472674",
"0.5469705",
"0.5462796",
"0.5443044",
"0.5435553",
"0.54350257",
"0.543249",
"0.54285955",
"0.5426053",
"0.54101914",
"0.54010385",
"0.5396226",
"0.53949773",
"0.5387304",
"0.5371012",
"0.5353889",
"0.5350182",
"0.5345306",
"0.5340549",
"0.5336441",
"0.5335747",
"0.532544",
"0.53199875",
"0.53177387",
"0.5296618",
"0.52929515",
"0.529082",
"0.5290034",
"0.52857673",
"0.5282223",
"0.5280998",
"0.5273472",
"0.5270634",
"0.52673906",
"0.5259957",
"0.525162",
"0.52513605",
"0.5230935",
"0.5227606",
"0.5213365"
]
| 0.8703853 | 0 |
Returns a String containing the name of the list followed by each Icosahedron in the ArrayList. In the process of creating the return result, toString() method includes a while loop that calls the toString() method for each Icosahedron object in the list | public String toString() {
String totalOutput = "";
int index = 0;
while (index < icosList.size()) {
totalOutput += icosList.get(index).toString();
index++;
}
return totalOutput;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\r\n String output = \"\";\r\n int index = 0;\r\n output = getName() + \"\\n\\n\";\r\n while (index < list.size()) {\r\n output += (list.get(index) + \"\\n\\n\");\r\n index++;\r\n }\r\n return output;\r\n }",
"@Override\r\n public String toString() {\r\n String result = \"\";\r\n\r\n // Convert each sprite in each ArrayList to its string representation, then print it out.\r\n for (ArrayList<T> list : new ArrayList<ArrayList<T>>()) {\r\n for (T sprite : list) {\r\n result += sprite.toString();\r\n }\r\n result += \"\\n\";\r\n }\r\n\r\n return result;\r\n }",
"public String toString() {\r\n \r\n String resultn = \"\";\r\n int index = 0;\r\n while (index < list.size()) {\r\n resultn += \"\\n\" + list.get(index) + \"\\n\"; \r\n index++; \r\n } \r\n return getName() + \"\\n\" + resultn + \"\\n\";\r\n \r\n }",
"@Override\n public String toString() {\n return \"Liste de \" + this.list.size() + \" polygones\";\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor(GameObject object : this.objects) {\r\n\t\t\tsb.append(object.toString() + \"\\n\");\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\tString theList = \"\";\n\t\t\tfor (int i = 0; i < this.getSize(); i++) {\n\t\t\t\ttheList += \"Ingredient \" + (i+1) + \": \" + this.getList()[i].toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn theList;\n\t\t}",
"@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n builder.append('[');\n for (Object item : list)\n {\n builder.append(item.toString());\n builder.append(\", \");\n }\n builder.append(']');\n return builder.toString();\n }",
"public String toString() {\n\t\tString stringList = Arrays.toString(this.facets.toArray());\n\t\treturn \"solid \" + name + stringList.replace(\"[\", \"\").replace(\"]\", \"\").replace(\",\", \"\") + \"\\nendsolid \" + name;\n\t}",
"public String toString() {\n\treturn triangles.toString(); \n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Cube(\" + this.nom + \")@(\" + this.centre.getX() + \", \" + this.centre.getY() + \", \" + this.centre.getZ() + \") ar�te : \"+this.arete;\n\t}",
"public String toString()\n\t{\t\n\t\tString a = \"\";\n\t\tint counter = 0; //counting how many points we have added to one line so far\n\t\tfor(int i = 0; i < hullVertices.length; i++) //iterate through the whole array\n\t\t{\n\t\t\tif(counter == 5) //go to a new line if you have added 5 points\n\t\t\t{\n\t\t\t\ta += \"\\n\";\n\t\t\t\tcounter = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//add point as a string and increment the counter\n\t\t\t\tString point = hullVertices[i].toString();\n\t\t\t\ta += point;\n\t\t\t\ta += \" \";\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\treturn a; \n\t}",
"public String getOntologyListString()\n {\n String returnString = \"\";\n \n for(int i=0;i<getOntologyListSize();i++)\n {\n VueMetadataElement vme = getOntologyListElement(i);\n returnString += vme.getObject() + \"|\";\n }\n \n return returnString;\n }",
"public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }",
"@Override\n\tpublic String toString() {\n\t\tString string = \"\";\n\t\tfor (int i = list.size() - 1; i >= 0; i--) {\n\t\t\tstring += list.get(i) + \" \";\n\t\t}\n\t\treturn string;\n\t}",
"@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}",
"@Override\n public String toString() {\n \t\n \t//call method is empty to check if there is a first node\n if (isEmpty()) {\n return nameList + \" is empty\";\n }\n \n //here StringBuilder is used to make sentence: \"The (name of list) id\"\n StringBuilder buffer = new StringBuilder();\n buffer.append(\"The \").append(nameList).append(\" contains:\\n\");\n \n //create current node and assign it to first node\n Node<T> current = firstNode;\n \n \n //while current node has next node, retrieve data from current node and append a \",\" to make it readeble\n while (current != null) {\n buffer.append(current.getData()).append(\"\");\n current = current.getNext();\n }\n return buffer.toString();\n }",
"@Override\r\n public String toString() {\r\n return this.objectName + \"{Name: \" + this.getName() + \", index: \" + this.getIndexList() + \", Measured m/z: \" + this.getMeasureValues() + \", Intensities: \" + this.getItensityValues() + \"}\";\r\n }",
"@Override\r\n public String toString() {\r\n String output = \"[ \";\r\n for (int i = 0; i < count; i++) {\r\n output += list[i] + \", \";\r\n }\r\n if (count > 0) {\r\n output = output.substring(0, output.length() - 2);\r\n } else {\r\n output = output.substring(0, output.length() - 1);\r\n }\r\n output += \" ]\";\r\n return output;\r\n }",
"@Override\n\tpublic ArrayList<Shape3D> display() {\n\t\treturn list;\n\t}",
"@Override public String toString(){\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<Bars> i = BarsList.iterator(); i.hasNext();){\r\n output.append(i.next().toString());\r\n }\r\n return output.toString();\r\n }",
"@Override\r\n public String toString()\r\n {\n\tString strAlbums = \"\";\r\n\r\n\t// create a string containing all albums\r\n\tfor (Album album : albumCollection)\r\n\t{\r\n\t strAlbums += album.toString() + \"\\r\\n\";\r\n\t}\r\n\r\n\treturn strAlbums;\r\n }",
"public String toString() {\r\n\t\tString output = \"\";\r\n\t\tfor (int n = 0; n < parts.size(); n++){\r\n\t\t\toutput = output + parts.get(n) + \", \";\r\n\t\t}\r\n\t\t\r\n\t\tint toAdd = 5 - parts.size(); \r\n\t\t\t\r\n\t\tfor( int i = 0; i < toAdd; i++ ) {\r\n \t\r\n\t\toutput = output + \"[ ], \";\r\n \r\n\t\t} \r\n\t\t\r\n\t\treturn output;\r\n\t\t\t\r\n\t}",
"public abstract ArrayList<String[]> toStrings();",
"@Override public String toString(){\r\n \tint counter =1;\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<Meters> i = MetersList.iterator(); i.hasNext();){\r\n \toutput.append(\"Meter #:\"+counter+\" \");\r\n output.append(i.next().toString());\r\n output.append(\"\\n\");\r\n counter ++;\r\n }\r\n return output.toString();\r\n }",
"public String toString(){\r\n String result = \"[ \";\r\n result = result + vertex + \" ]\";\r\n return result;\r\n }",
"public String toString()\n\t{ return \"Vec3[\"+Vec3.this.x+\",\"+Vec3.this.y+\",\"+Vec3.this.z+\"]\"; }",
"public String toString()\n\t{\n\t \n\t\tString str = vertexName + \": \" ;\n\t\tfor(int i = 0 ; i < adjacencyList.size(); i++)\n\t\t\tstr = str + adjacencyList.get(i).vertexName + \" \";\n\t\treturn str ;\n\t\t\n\t}",
"public String listOfMaterials() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Material> it = materials.iterator(); it.hasNext();) {\r\n\t\t\t Material m = (Material) it.next();\r\n sb.append(m.toString());\r\n }\r\n return sb.toString();\r\n }",
"@Override\r\n\tpublic synchronized String toString(){\r\n\r\n\t\tString result = String.valueOf(numberOfSplittedGroups);\r\n\r\n\t\tif(!hierarchy.isEmpty()){\r\n\t\t\tresult = result + Constants.A3_SEPARATOR + hierarchy.get(0);\r\n\t\t\tfor(int i = 1; i < hierarchy.size(); i ++){\r\n\t\t\t\tresult = result + Constants.A3_SEPARATOR + hierarchy.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public String toString() {\n if (size > 0) {\n String display = \"[\";\n for (int i = 0; i < size - 1; i++) {\n display += list[i] + \",\";\n } display += list[size - 1] + \"]\";\n return display;\n }\n return \"[]\";\n }",
"public String toString() {\n String output = \"\";\n for (int i = 0; i < numRegions; i++) {\n if (regionList[i] instanceof Arctic) \n output += (i+1) + \". \" + ((Arctic)regionList[i]).toString();\n else if (regionList[i] instanceof Aquarium) \n output += (i+1) + \". \" + ((Aquarium)regionList[i]).toString();\n else if (regionList[i] instanceof AmazonRainforest) \n output += (i+1) + \". \" + ((AmazonRainforest)regionList[i]).toString();\n }\n return output;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Lista de todos los Inmuebles\";\n\t}",
"public String toString()\n {\n String s = \"\";\n for (int i=0; i<list.length; i++)\n s += i + \":\\t\" + list[i] + \"\\n\";\n return s;\n }",
"public String toString() {\n\t\tString str = \"\";\n\t\tfor (int i = 1 ; i < size - 1; i++ ){\n\t\t\tstr = str + getBlock(i);\n\t\t}\n\t\treturn str;\n\t}",
"public String toString()\n\t{\n\t\tint poleSize = pole.size();\n\t\tString s = \"\";\n\t\tfor(int i = 0; i < poleSize; i++)\n\t\t\ts += pole.get(i).getSize() + (i < poleSize - 1 ? \", \" : \"\");\n\t\treturn s;\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString ret = \"\";\n\t\t\n\t\tfor(Articulo articulo: articulos) {\n\t\t\tret += articulo.toString() + '\\n';\n\t\t}\n\t\t\n\t\treturn ret;\n\t}",
"public String toString() {\n String str = \"\";\n str += \"Shape: \" + name + \"\\n\";\n str += \"Center: \" + \"(\" + (xPosition+radius) + \",\" + (yPosition+radius) + \")\" + \"\\n\";\n str += \"Radius: \" + radius + \"\\n\";\n str += \"Color: \" + color + \"\\n\";\n str += \"Selected: \" + isSelected + \"\\n\";\n return str;\n }",
"public String toString() {\n\t\treturn list.toString();\n\t}",
"@Override\n public String toString() {\n return list.toString();\n }",
"public String toString() {\n\tString result = \"\";\n for (int x = 0; x < list.size(); x++) {\n result += list.get(x).toString();\n }\n\treturn \"Inventory: \\n\" + result + \"\\n\";\n}",
"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 }",
"@Override//overring a library function\n public String toString() {\n return shape + \" \" + name;//toString() is called everytime printing is done\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder stb = new StringBuilder();\r\n\t\tfor (int i = 0; i < elements.size(); i++) {\r\n\t\t\tstb.append(\"Element \" + i + \":\" + elements.get(i) + \" \");\r\n\t\t}\r\n\t\treturn stb.toString();\r\n\t}",
"public String toString()\n\t{\n\t\tString s = \"\";\n\t\tfor(int i = 0; i < numberOfPoles; i++)\n\t\t\ts += \"[\"+i+\"] \"+poles[i]+\"\\n\";\n\t\treturn s;\n\t}",
"@Override\n public String toString() {\n StringBuilder string = new StringBuilder();\n string.append(\"size=\").append(size).append(\", [\");\n for (int i = 0; i < size; i++) {\n if (i != 0) {\n string.append(\", \");\n }\n\n string.append(elements[i]);\n\n//\t\t\tif (i != size - 1) {\n//\t\t\t\tstring.append(\", \");\n//\t\t\t}\n }\n string.append(\"]\");\n return string.toString();\n }",
"@Override\n public String toString() {\n String universeString = \"\" ;\n\n for (Boolean[] line : universe) {\n universeString += \"|\";\n for (Boolean cell : line) {\n if (cell) universeString += \"#|\";\n else universeString += \" |\";\n }\n universeString += \"\\n\";\n }\n return universeString;\n }",
"public String toString() {\r\n String result = \"\";\r\n result += \"My Genealogy contains \" + size() + \" members:\\n\";\r\n\r\n for (int i = 0; i < SIZE; i++) {\r\n // i below is used to check for exponentiation, and create newlines for readability\r\n if (((i+1) & -(i+1)) == (i+1)) {\r\n result += \"\\n\";\r\n }\r\n\r\n result += tree[i] + \" \";\r\n }\r\n\r\n return result;\r\n }",
"@Override\n public String toString() {\n return \"[\" + this.name + \"]\";\n }",
"public String toString(){\n\t\t// Si la liste est vide\n\t\tif(this.nb == 0){\n\t\t\treturn \"[]\";\n\t\t}\n\t\tString retour = \"[\" + this.liste[0];\n\t\tfor(int i = 1 ; i < this.nb ; i++){\n\t\t\tretour += \", \" + this.liste[i];\n\t\t}\n\t\tretour += \"]\";\n\t\t\n\t\treturn retour;\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 IcosahedronList(String listIn, ArrayList<Icosahedron> icosListIn) {\n list = listIn;\n icosList = icosListIn;\n }",
"public String toString() {\r\n\t\treturn \"(\" + this.x + \",\" + this.y + \",\" + this.z + \")\";\r\n\t}",
"public String toString() {\n\t\tif (list.size() < 1)\n\t\t\treturn \"There is no element in the Set.\";\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (Object item : list) {\n\t\t\tif (sb.length() > 0)\n\t\t\t\tsb.append(\", \").append(\"[\").append(item.toString()).append(\"]\");\n\t\t\telse\n\t\t\t\tsb.append(\"[\").append(item.toString()).append(\"]\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"@Override\n public String toString() {\n StringBuilder output = new StringBuilder();\n for (Tile[] tiles : this.map) {\n StringBuilder line = new StringBuilder();\n for (Tile tile : tiles) {\n if (tile.isVisible()) {\n if (tile.isInhabited()) {\n tile.sortInhabitants();\n line.append(tile.getInhabitants().get(0).getSymbol());\n } else {\n Terrain terrain = tile.getTerrain();\n if (terrain == Terrain.EMPTY) {\n line.append(\" \");\n } else {\n line.append(\"#\");\n }\n }\n } else {\n line.append(\".\");\n }\n if (Main.BETTER_GRAPHICS) line.append(\" \");\n }\n line.append(\" \");\n line.append(\"\\n\");\n output.append(line);\n }\n return output.toString();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\t\r\n\t\t// Variables declaration\r\n\t\t\r\n\t\tString output = null;\r\n\t\t\r\n\t\t// Data processing\r\n\t\t\r\n\t\toutput = String.format(\"\\n ID Veículo: %s\", idVeiculo != null ? idVeiculo.toString() : \"\");\r\n\r\n\t\toutput += String.format(\"\\n Placa: %s\", placaVeiculo != null ? placaVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Modelo: %s\", modeloVeiculo != null ? modeloVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Marca: %s\", marcaVeiculo != null ? marcaVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Cor: %s\", corVeiculo != null ? corVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Acentos: %s\", acentosVeiculos != null ? acentosVeiculos : \"\");\r\n\t\t\r\n\t\t// Information output\r\n\t\t\r\n\t\treturn output;\r\n\t}",
"private String vertexNamesAndCoordsToString() {\n \n //make empty string\n String s = \"\";\n \n //add # of vertices & line break\n s += N + \"\\n\";\n \n //for loop to add names/coords to it\n for (int i = 0; i < arrayOfVertices.length; i++) {\n \n //add vertex name, xcoord, & ycoord separated by spaces \n s += arrayOfVertices[i].getName() + \" \" \n + arrayOfVertices[i].getX() + \" \" \n + arrayOfVertices[i].getY() + \"\\n\"; \n \n }\n \n //return the string\n return s;\n \n }",
"@Override\r\n public String toString() {\n String output = \"open melds: \";\r\n \r\n for (Tile[] meld : openMelds) {\r\n output.concat(\"[\");\r\n for (Tile t : meld) {\r\n output.concat(t.toString() + \", \");\r\n }\r\n output.concat(\"], \");\r\n }\r\n \r\n output.concat(\"\\n\");\r\n \r\n for (Tile t : hiddenHand) {\r\n output.concat(t.toString() + \", \");\r\n }\r\n \r\n return output;\r\n }",
"@Override\n\tpublic String toString() {\n\t\tString s = \"[\";\n\t\tif(this.vector != null) {\n\t\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\t\ts = s + this.vector.get(i);\n\t\t\t\tif(i != this.vector.size()-1) s = s + \",\";\n\t\t\t}\n\t\t}\n\t\ts = s + \"]\";\n\t\treturn s;\n\t}",
"@Override public String toString() {\n String toReturn = \"\";\n for (Rotor rotor : rotors)\n toReturn = rotor.getPositionString() + (toReturn.isEmpty() ? \"\" : \" \") + toReturn;\n return toReturn;\n }",
"public ArrayList<String> getObjects(){\n ArrayList<String> objs = new ArrayList<>();\n for (int i = 0; i < field.length; i++){\n objs.add(\"Asteroid\");\n }\n return objs;\n }",
"public void printObjectList(){\n\t\tfor (int i = 0; i < gameObjectsList.size(); i++){\n\t\t\tSystem.out.println(i + \", \" + gameObjectsList.get(i).getCategory() + \" : Type:\" + gameObjectsList.get(i).getObjecttype() + \" X:\" + gameObjectsList.get(i).getX() + \" Y:\" + gameObjectsList.get(i).getY());\n\t\t}\n\t}",
"public String toString() {\n\t\treturn \"[\" + _name + \"] \" + _lexeme;\n\t}",
"@Override\n public String toString() {\n String listOfPhotos = \"\";\n for (Photo a : this.photos) {\n listOfPhotos += a.toString() + \"\\n\";\n }\n return \"Library with id \" + this.ID + \" and name \" + this.name + \" with albums \" + this.albums + \" with photos:\\n\"\n + listOfPhotos;\n }",
"public static String convertArrayListIntoString (ArrayList inputList){\n\n // convert exercisesList to string\n String resultString = \"(\";\n for (int i = 0; i < inputList.size(); i ++) {\n if (i != inputList.size() - 1) {\n resultString = resultString + inputList.get(i) + \", \";\n } else {\n resultString = resultString + inputList.get(i) + \")\";\n }\n }\n\n return resultString;\n }",
"public String toString()\n\t{\n\t\treturn \"[\"+chain+\"|\"+name+\"|\"+idx+\"]\";\n\t}",
"public String toString()\n {\n String contents = \"\";\n double totalArea = 0;\n \n contents = contents + \"\\nThere are \" + shapes.size() + \" shapes in the container.\\n\";\n \n for(int i = 0; i < shapes.size(); i++)\n {\n totalArea = totalArea + shapes.get(i).getArea();\n contents = contents + shapes.get(i).toString();\n }\n contents = contents + \"\\nand total area of shapes is \" + totalArea + \"\\n\";\n return contents;\n }",
"public String listToString() {\n StringBuilder breakfast = headerSetup(BREAKFAST);\n StringBuilder lunch = headerSetup(LUNCH);\n StringBuilder dinner = headerSetup(DINNER);\n StringBuilder snacks = headerSetup(SNACKS);\n\n for (Food f : units) {\n String line = \"\\t\" + f.toString() + \"\\n\";\n\n switch (f.getMeal()) {\n case BREAKFAST: breakfast.append(line);\n break;\n case LUNCH: lunch.append(line);\n break;\n case DINNER: dinner.append(line);\n break;\n default: snacks.append(line);\n break;\n }\n }\n return breakfast.toString() + lunch.toString() + dinner.toString() + snacks.toString();\n }",
"public String toString() \n\t{\n\t\tString toReturn = \"\";\n\t\t\n\t\t\n\t\tfor(Vertex v : vertices) \n\t\t{\n\t\t\tHashMap<Vertex, Integer> E = getEdges(v);\n\t\t\t\n\t\t\tif(!E.isEmpty())\n\t\t\t{\n\t\t\t\ttoReturn = toReturn + v + \"(\";\n\t\t\t\tfor(Vertex edge : E.keySet()) \n\t\t\t\t{\n\t\t\t\t\ttoReturn = toReturn + edge.getName() + \", \";\n\t\t\t\t}\n\t\t\t\ttoReturn = toReturn.trim().substring(0, toReturn.length() - 2);\n\t\t\t\ttoReturn = toReturn + \")\\n\";\n\t\t\t}\n\t\t\telse {toReturn = toReturn + v + \"[]\\n\";}\n\t\t}\n\t\treturn toReturn;\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString path = \"\";\n\tfor (int i = 0; i < paths.size(); i ++) {\n\t\tfor (int j = 0; j < paths.get(i).size(); j++)\n\t\t\tpath += paths.get(i).get(j) + \", \";\n\t\tpath += \"\\n\";\n\t}\n\treturn path;\n\t\t\n\t}",
"public String toString() {\n String result = \"\";\n Iterator<NucleiSelected> itr = nucleiSelected.iterator();\n while (itr.hasNext()) {\n result = result + itr.next().toString() + \"\\n\";\n }\n return result;\n }",
"@Override\r\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder ();\r\n\t\tsb.append(\"Ci sono \"+voti.size()+\" voti\\n\");\r\n\t\tfor (Voto v : this.voti)\r\n\t\t{\r\n\t\t\tsb.append(v); // chiama il toString() di voto\r\n\t\t\tsb.append(\"\\n\");\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public String toString() {\r\n return name + \" \" + height + \" \" + width + \" \" + depth + \" \" + weight;\r\n }",
"public String toString() {\n\t\tStringBuilder temp = new StringBuilder();\n\n\t\tfor (int index = 0; index < verticesNum; index++) {\n\t\t\tif(list[index] == null)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttemp.append(\"node:\");\n\t\t\ttemp.append(index);\n\t\t\ttemp.append(\": \");\n\t\t\ttemp.append(list[index].toString());\n\t\t\ttemp.append(\"\\n\");\n\t\t}\n\n\t\treturn temp.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"(Triangle \"+verts+\")\" ;\n\t}",
"public String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"[\");\n\t\tfor(int i = 0; i < size(); i++) {\n\t\t\tif( i != size()-1)\n\t\t\t\tsb.append(get(i) + \" , \");\n\t\t\telse\n\t\t\t\tsb.append(get(i));\n\t\t}\n\t\tsb.append(\"]\");\n\t\tsb.append(\"\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"icecream in a \");\n sb.append(holder.toString().toLowerCase());\n sb.append(\" with:\\n\");\n for (IceCreamScoop scoop : scoops) {\n sb.append(\"\\t\");\n sb.append(scoop);\n sb.append(\"\\n\");\n }\n\n return sb.toString();\n }",
"@Override\n public String toString() {\n return \"{\" + this.elementos[0] + \",\" + this.elementos[1] + \"}\";\n }",
"public String toString() {\n/* 6387 */ return \"VolaTile [X: \" + this.tilex + \", Y: \" + this.tiley + \", surf=\" + this.surfaced + \"]\";\n/* */ }",
"public String toString () {\n\t\tString s =\"\";\n\t\tString finalStr =\"\";\n\n\t\t// for all the chords in this verse\n\t\tfor (int j=0; j<chords.size(); j++){\n\t\t\t\n\t\t\t// print each element of the chord \n\t\t\tfor (int i=0; i<chords.get(j).length; i++){\n\t\t\t\ts+=chords.get(j)[i]+ \"|\";\n\t\t\t}\n\t\t\tfinalStr+=s+ \"\\n \";\n\t\t\ts =\"\";\n\t\t}\n\t\treturn finalStr;\n\t}",
"public String toString() {\n\t\tString toString = null;\n\t\ttoString = \"[\" + this.px() + \", \" + this.py() + \", \" + this.pz() + \", \" + this.e() + \"]\";\n\t\treturn toString;\n\t}",
"public String toString()\n\t{\n\t\tSystem.out.print(\"Array list contains: [ \");\n\t\tfor(int i=0; i<size; i++)\n\t\t\tSystem.out.print(myArray[i]+ \", \");\n\t\treturn\" ]\";\n\t}",
"public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn songList.toString();\n\t\t}",
"public String toString()\n {\n\treturn adjLists.toString();\n }",
"public String toString() {\n if (size == 0) {\n return \"{}\";\n }\n String str = \"{\";\n for (int i = 0; i < size - 1; i++) {\n str = str + set[i] + \", \";\n } str = str + set[size - 1] + \"}\";\n return str;\n }",
"@Override\n public String toString() {\n StringBuilder outString = new StringBuilder();\n int currentTreeIndex = this.indexCorrespondingToTheFirstElement;\n if (treeSize > 0) {\n while (currentTreeIndex != -1) {\n Node<T> currentNode = getHelper(currentTreeIndex);\n outString.append(currentNode.data).append(\", \");\n currentTreeIndex = currentNode.nextIndex;\n }\n }\n\n if (outString.length() != 0) {\n outString.deleteCharAt(outString.length() - 1); // \", \"\n outString.deleteCharAt(outString.length() - 1);\n }\n return \"[\" + outString.toString() + \"]\";\n }",
"public String listOfFurniture() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Furniture> it = furniture.iterator(); it.hasNext();){\r\n\t\t\t Furniture f = (Furniture) it.next();\r\n \t sb.append(f.toString() + NL);\r\n }\r\n return sb.toString();\r\n }",
"public String toString() {\n\t\tStringBuilder tmpStringBuilder = new StringBuilder(\"(\");\n\t\tint frontIndex = theFrontIndex;\n\t\tfor (int j = 0; j < theSize; j++) {\n\t\t\tif (j > 0)\n\t\t\t\ttmpStringBuilder.append(\", \");\n\t\t\ttmpStringBuilder.append(theData[frontIndex]);\n\t\t\tfrontIndex = (frontIndex + 1) % theData.length;\n\t\t}\n\t\ttmpStringBuilder.append(\")\");\n\t\treturn tmpStringBuilder.toString();\n\t}",
"@Override\n public String toString() {\n return this.area + \"/\" + this.aisle + \"/\" + this.x + \"/\" + this.y + \"/\" + this.z;\n }",
"public String toString() {\n\t\tString s = new String(\"\");\n\t\tfor(int i=0; i<numeros.size(); i++) {\n\t\t\ts += numeros.get(i) + \" \";\n\t\t}\n\t\ts += \"| \";\n\t\tfor(int i=0; i<n_chances.size(); i++) {\n\t\t\ts += n_chances.get(i) + \" \";\n\t\t}\n\t\ts += \"\\n\";\n\t\treturn s;\n\t}",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < 9; i += 1) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(triangleCoords[i] + \" \");\n\t\t}\n\t\treturn sb.toString() + \"\\n\";\n\t}",
"public String toString() {\n\t\tStringBuilder sb = new StringBuilder(\"[\");\n\t\tfor (int i = 0; i < coors.length; ++i)\n\t\t\tsb.append((i == 0 ? \"\" : \",\") + coors[i]);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString objStr = \"\\n\";\n\t\tobjStr += \"Plate Type: Japanese Plate with \"+pieces.size()+\" Piece\\n\";\n\t\tobjStr += \"PLATE PIECE DETAILS:\\n\";\n\t\t\n\t\tint pieceCouter = 1;\n\t\tfor (Piece currentPiece:pieces){\n\t\t\tobjStr += \"Piece \"+pieceCouter+\":\\n\";\n\t\t\tobjStr += \"=========\";\n\t\t\tobjStr += currentPiece.toString() + \"\\n\";\n\t\t\tpieceCouter++;\n\t\t}\n\t\tobjStr += \"Japanese Sauce:\";\n\t\tfor (Ingredient currentSauce:baseSauce){\n\t\t\tobjStr += currentSauce.toString()+\" \";\n\t\t}\n\t\tobjStr += \"\\n\";\n\t\treturn objStr;\n\t}",
"public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Item item : this) {\n\t\t\tsb.append(\"[\" + item + \"],\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public void displayAsList()\n\t{\n\t\tSystem.out.println(\"Printing all vertices\");\n\t\tvertices.show();\n\t}",
"public String toString() {\n String s = \"\";\n for (int x = 0; x < universe.length; x++) {\n s += universe[x];\n }\n return s;\n }",
"@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (Opdracht o : opdrachten){\n\t\t\tresult += o.toString() + \"\\n\";\n\t\t}\n\t\treturn result;\n\t}",
"public @Override String toString() {\n String res= \"[\";\n // invariant: res = \"[s0, s1, .., sk\" where sk is the object before node n\n for (Node n = sentinel.succ; n != sentinel; n= n.succ) {\n if (n != sentinel.succ)\n res= res + \", \";\n res= res + n.data;\n }\n return res + \"]\";\n }",
"public String toString() {\n String cardListOutput = \"\";\n for (Card aCard : this.cards) {\n cardListOutput += aCard.toString() + \"\\n\";\n }\n return cardListOutput;\n }",
"public String toString()\n\t{\n\t\tString output = \"\";\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tString animalType = \"Fish\";\n\t\t\tString genderType = \"F\";\n\t\t\t\n\t\t\tif (river[i] != null)\n\t\t\t{\n\t\t\t\tif (river[i].getGender()) { genderType = \"M\"; }\n\t\t\t\tif (river[i] instanceof Bear) { animalType = \"Bear\"; }\n\t\t\t output += String.format(\"Index %d: %s (Gender: %s | Strength: %.1f)\\n\", i, animalType, genderType, river[i].getStrength());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\toutput += String.format(\"Index %d: \\n\", i);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}"
]
| [
"0.68387973",
"0.68382716",
"0.68343747",
"0.65166974",
"0.6431827",
"0.6410126",
"0.63986325",
"0.63971174",
"0.63805944",
"0.6316651",
"0.6280793",
"0.6264292",
"0.6220637",
"0.62149477",
"0.61630493",
"0.6158984",
"0.61549544",
"0.6145802",
"0.6140055",
"0.6133876",
"0.6101146",
"0.6100574",
"0.60945165",
"0.6093939",
"0.6058681",
"0.6038458",
"0.60299945",
"0.60299313",
"0.60032856",
"0.6002548",
"0.599168",
"0.59860104",
"0.59857094",
"0.5957556",
"0.59407336",
"0.59371054",
"0.59338576",
"0.59293216",
"0.5909694",
"0.59026265",
"0.59014606",
"0.59000754",
"0.58987856",
"0.5892912",
"0.58915466",
"0.5884829",
"0.5878461",
"0.58780825",
"0.5877009",
"0.5876047",
"0.58741164",
"0.58662045",
"0.5856327",
"0.58495975",
"0.5840043",
"0.5838418",
"0.5830302",
"0.5818129",
"0.5815097",
"0.5810596",
"0.581015",
"0.58045477",
"0.58002585",
"0.5795417",
"0.5789865",
"0.5789425",
"0.57760483",
"0.57690203",
"0.5768477",
"0.57671",
"0.57651025",
"0.57630724",
"0.5759877",
"0.57585204",
"0.57558024",
"0.5755198",
"0.57535267",
"0.5746462",
"0.57372373",
"0.5719324",
"0.5719",
"0.5718075",
"0.57055634",
"0.5698268",
"0.5689568",
"0.5686764",
"0.56862825",
"0.56837046",
"0.5682738",
"0.56784767",
"0.56737566",
"0.56665343",
"0.5665295",
"0.5663527",
"0.56601995",
"0.5658241",
"0.56523514",
"0.56506306",
"0.564291",
"0.5642242"
]
| 0.6185485 | 14 |
Returns a String containing the name of the list followed by various summary items: number of Icosahedrons, total surface area, total volume, average surface area, average volume, and average surface to volume ratio. | public String summaryInfo() {
DecimalFormat form2 = new DecimalFormat("#,##0.0##");
String result = "";
result += "----- Summary for " + getName() + " -----";
result += "\nNumber of Icosahedrons: " + (numberOfIcosahedrons());
result += "\nTotal Surface Area: "
+ form2.format(totalSurfaceArea());
result += "\nTotal Volume: " + form2.format(totalVolume());
result += "\nAverage Surface Area: "
+ form2.format(averageSurfaceArea());
result += "\nAverage Volume: " + form2.format(averageVolume());
result += "\nAverage Surface/Volume Ratio: "
+ form2.format(averageSurfaceToVolumeRatio());
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }",
"public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }",
"@Override\r\n public String toString() {\r\n return this.objectName + \"{Name: \" + this.getName() + \", index: \" + this.getIndexList() + \", Measured m/z: \" + this.getMeasureValues() + \", Intensities: \" + this.getItensityValues() + \"}\";\r\n }",
"public String getSummaryStatistics() {\n String format = \"%-50s \\t %12d \\t %12f \\t %12f %n\";\n int n = (int) getCount();\n double avg = getAverage();\n double std = getStandardDeviation();\n String name = getName();\n return String.format(format, name, n, avg, std);\n }",
"public String toString()\n {\n String contents = \"\";\n double totalArea = 0;\n \n contents = contents + \"\\nThere are \" + shapes.size() + \" shapes in the container.\\n\";\n \n for(int i = 0; i < shapes.size(); i++)\n {\n totalArea = totalArea + shapes.get(i).getArea();\n contents = contents + shapes.get(i).toString();\n }\n contents = contents + \"\\nand total area of shapes is \" + totalArea + \"\\n\";\n return contents;\n }",
"@Override public String toString(){\r\n \tint counter =1;\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<Meters> i = MetersList.iterator(); i.hasNext();){\r\n \toutput.append(\"Meter #:\"+counter+\" \");\r\n output.append(i.next().toString());\r\n output.append(\"\\n\");\r\n counter ++;\r\n }\r\n return output.toString();\r\n }",
"@Override\n public String toString() {\n String formattedLiquidNames = liquids\n .stream()\n .map(Liquid::getName)\n .collect(Collectors.joining(\", \"));\n String totalAlcoholPercentage = String.format(\"%.2f\", getAlcoholPercent());\n\n return \"The '\" + name + \"' includes following ingredients\\n[\" +\n formattedLiquidNames + \"] with a total alcohol percentage of \" + totalAlcoholPercentage + \"%.\";\n }",
"java.lang.String getSummary();",
"@Override\n public String toString() {\n return \"Liste de \" + this.list.size() + \" polygones\";\n }",
"public String toString() {\n String totalOutput = \"\";\n int index = 0;\n while (index < icosList.size()) {\n totalOutput += icosList.get(index).toString();\n index++;\n }\n return totalOutput;\n }",
"@Test public void summaryInfoTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(\"summary Test\", true, \n pList.summaryInfo().contains(\"Total\"));\n \n }",
"public String summaryStats() {\n\t\treturn new StringBuilder()\n\t\t\t\t.append(\"Documents: \"+countCorpusDocuments()+\", \")\n\t\t\t\t.append(\"Terms: \"+countCorpusTerms()+\", \")\n\t\t\t\t.append(\"Unique terms: \"+countUniqueTerms()).toString();\n\t}",
"public String toString() {\r\n String output = \"\";\r\n int index = 0;\r\n output = getName() + \"\\n\\n\";\r\n while (index < list.size()) {\r\n output += (list.get(index) + \"\\n\\n\");\r\n index++;\r\n }\r\n return output;\r\n }",
"public String listToString() {\n StringBuilder breakfast = headerSetup(BREAKFAST);\n StringBuilder lunch = headerSetup(LUNCH);\n StringBuilder dinner = headerSetup(DINNER);\n StringBuilder snacks = headerSetup(SNACKS);\n\n for (Food f : units) {\n String line = \"\\t\" + f.toString() + \"\\n\";\n\n switch (f.getMeal()) {\n case BREAKFAST: breakfast.append(line);\n break;\n case LUNCH: lunch.append(line);\n break;\n case DINNER: dinner.append(line);\n break;\n default: snacks.append(line);\n break;\n }\n }\n return breakfast.toString() + lunch.toString() + dinner.toString() + snacks.toString();\n }",
"void prettyPrintFactors(ArrayList<Long> list, long num){\n System.out.print(num + \" = \");\n for(int i = 0; i<list.size(); i++){\n if(i == list.size()-1){\n System.out.print(list.get(i) +\"\\n\");\n }\n else{\n System.out.print(list.get(i) + \" * \");\n }\n }\n }",
"public String getSummary();",
"@Override\n public String toString()\n {\n \treturn getName() + \" (\" + numItem + \")\";\n }",
"public String summary()\n {\n String summary = mName;\n \n if(isARuleBreaker())\n {\n summary += \" – \" + numberOfBrokenRules() + \" st regelbrott, \" + fineAmountOfBrokenRules() + \" kronor\";\n }\n else\n {\n summary += \" – INGA regelbrott!\";\n }\n \n return summary;\n }",
"public String getSummary() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append( \"<html> Carrying <b>\");\r\n\t\tsb.append( getEquipmentCount() );\r\n\t\tsb.append( \"</b> weighing <b>\" );\r\n\t\tsb.append( getEquipmentWeight() );\r\n\t\tsb.append( \"</b>lbs</html>\");\r\n\t\treturn sb.toString();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn getFluidId().toString() + \", \" + NumberUtilities.shorten(getAmount().doubleValue(), \"\") + \"/\" + NumberUtilities.shorten(getSize().doubleValue(), \"\") + \" Buckets\";\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn \"Statistical output: \"\n\t\t\t\t+\"replication size = \"+this.replicationSize+\"; \"\n\t\t\t\t+\"sample size = \"+this.sampleSize+\"; \"\n\t\t\t\t+\"mean = \"+this.mean+\"; \"\n\t\t\t\t+\"std. dev. = \"+this.stDev+\"; \"\n\t\t\t\t+\"CI width (alpha = \"+this.alpha+\"; \"+this.nameOfStatisticalTest+\" ) = \"+this.CIWidth+\".\";\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\tString theList = \"\";\n\t\t\tfor (int i = 0; i < this.getSize(); i++) {\n\t\t\t\ttheList += \"Ingredient \" + (i+1) + \": \" + this.getList()[i].toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn theList;\n\t\t}",
"public String toString() {\r\n \r\n String resultn = \"\";\r\n int index = 0;\r\n while (index < list.size()) {\r\n resultn += \"\\n\" + list.get(index) + \"\\n\"; \r\n index++; \r\n } \r\n return getName() + \"\\n\" + resultn + \"\\n\";\r\n \r\n }",
"public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}",
"public static void inventoryListHeader() {\n System.out.println(\n UI.prettyPrint(\"Items Name\", 15) + \" | \"\n + UI.prettyPrint(\"Price\", 10) + \" | \"\n + UI.prettyPrint(\"Quantity\", 5));\n }",
"public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }",
"@Override\r\n public String toString() {\r\n String output = \"[ \";\r\n for (int i = 0; i < count; i++) {\r\n output += list[i] + \", \";\r\n }\r\n if (count > 0) {\r\n output = output.substring(0, output.length() - 2);\r\n } else {\r\n output = output.substring(0, output.length() - 1);\r\n }\r\n output += \" ]\";\r\n return output;\r\n }",
"private void listToString() {\n textList.clear();\n for (int x = 0; x < party.size(); x++) {\n Agent thisAgent = party.getMember(x);\n Statistics thisAgentStats = thisAgent.getStats();\n textList.add(thisAgent.getName());\n textList.add(\"HP:\" + thisAgentStats.getCurrentHP() + \"/\" + thisAgentStats.getMaxHP() + \" MP:\" + thisAgentStats.getCurrentMP() + \"/\" + thisAgentStats.getMaxMP());\n }\n }",
"public void showStats() {\r\n List<String> list = new ArrayList();\r\n for (int i = 1; i < 31; i++) {\r\n switch (i) {\r\n case 4:\r\n list.add(name);\r\n break;\r\n case 6:\r\n list.add(String.valueOf(stats.get(\"name\")));\r\n break;\r\n case 7:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[0]));\r\n break;\r\n case 8:\r\n list.add(\"Score\");\r\n break;\r\n case 9:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[1]));\r\n break;\r\n case 10:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[0]));\r\n break;\r\n case 11:\r\n list.add(\"Max Break\");\r\n break;\r\n case 12:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[1]));\r\n break;\r\n case 13:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[0]));\r\n break;\r\n case 14:\r\n list.add(\"Fouls\");\r\n break;\r\n case 15:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[1]));\r\n break;\r\n case 16:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[0]));\r\n break;\r\n case 17:\r\n list.add(\"Misses\");\r\n break;\r\n case 18:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[1]));\r\n break;\r\n case 19:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[0]));\r\n break;\r\n case 20:\r\n list.add(\"Pots\");\r\n break;\r\n case 21:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[1]));\r\n break;\r\n case 22:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[0]));\r\n break;\r\n case 23:\r\n list.add(\"Shots\");\r\n break;\r\n case 24:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[1]));\r\n break;\r\n case 25:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 26:\r\n list.add(\"Pot Percentage\");\r\n break;\r\n case 27:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n case 28:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 29:\r\n list.add(\"Safety Percentage\");\r\n break;\r\n case 30:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n default:\r\n list.add(\"\");\r\n }\r\n }\r\n\r\n GridView grid = new GridView(context);\r\n grid.setAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, list));\r\n grid.setNumColumns(3);\r\n\r\n new AlertDialog.Builder(context)\r\n .setNegativeButton(\"Back\", null)\r\n .setTitle(\"Match Statistics\")\r\n .setView(grid)\r\n .show();\r\n }",
"public String toString() {\n\t\tString stringList = Arrays.toString(this.facets.toArray());\n\t\treturn \"solid \" + name + stringList.replace(\"[\", \"\").replace(\"]\", \"\").replace(\",\", \"\") + \"\\nendsolid \" + name;\n\t}",
"public String toString() {\n \tStringBuffer result = new StringBuffer();\n \t\n \tresult.append(\"\\n# artists=\");\n \tresult.append(numArtistsInCollection);\n \tresult.append(\"\\navg. artist rating=\");\n \tresult.append(avgArtistRating);\n \tresult.append(\"\\n# artist ratings=\");\n \tresult.append(numRatedArtists);\n\n \tresult.append(\"\\n# labels=\");\n \tresult.append(numLabelsInCollection);\n \tresult.append(\"\\navg. label rating=\");\n \tresult.append(avgLabelRating);\n \tresult.append(\"\\n# label ratings=\");\n \tresult.append(numRatedLabels);\n \t\n \tresult.append(\"\\n# releases=\");\n \tresult.append(numReleasesInCollection);\n \tresult.append(\"\\navg. release rating=\");\n \tresult.append(avgReleaseRating);\n \tresult.append(\"\\n# release ratings=\");\n \tresult.append(numRatedReleases);\n \t\n \tresult.append(\"\\n# songs=\");\n \tresult.append(numSongsInCollection);\n \tresult.append(\"\\navg. song rating=\");\n \tresult.append(avgSongRating);\n \tresult.append(\"\\n# song ratings=\");\n \tresult.append(numRatedSongs);\n\n \tresult.append(\"\\nstyle preferences=\");\n \tresult.append(stylePreferences.toString(Database.getStyleIndex()));\n \tresult.append(\"\\ntag preferences=\");\n \tresult.append(tagPreferences.toString(Database.getTagIndex()));\n\n \tresult.append(\"\\nartist preferences=\");\n \tresult.append(artistPreferences.toString(Database.getArtistIndex()));\n \tresult.append(\"\\nlabel preferences=\");\n \tresult.append(labelPreferences.toString(Database.getLabelIndex()));\n \tresult.append(\"\\nrelease preferences=\");\n \tresult.append(releasePreferences.toString(Database.getReleaseIndex()));\n \tresult.append(\"\\nsong preferences=\");\n \tresult.append(songPreferences.toString(Database.getSongIndex()));\n \t\n \treturn result.toString();\n }",
"@Override public String toString(){\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<Bars> i = BarsList.iterator(); i.hasNext();){\r\n output.append(i.next().toString());\r\n }\r\n return output.toString();\r\n }",
"String unitsListToString(List<Unit> units);",
"public String getSummaryStatisticsHeader() {\n return String.format(\"%-50s \\t %12s \\t %12s \\t %12s %n\", \"Name\", \"Count\", \"Average\", \"Std. Dev.\");\n }",
"public String toString()\n {\n return \"Name: \" + name + \"\\tTest1: \" + test1 + \"\\tTest2: \" +\n test2 + \"\\tAverage: \" + getAverage();\n }",
"public String toString() {\r\n return name + \" \" + height + \" \" + width + \" \" + depth + \" \" + weight;\r\n }",
"public String toString() {\n\tString result = \"\";\n for (int x = 0; x < list.size(); x++) {\n result += list.get(x).toString();\n }\n\treturn \"Inventory: \\n\" + result + \"\\n\";\n}",
"public String PrintInventoryList()\r\n {\r\n String inventoryInformation = \"\";\r\n\r\n System.out.println(\"Inventory: \");\r\n //You may print the inventory details here\r\n for (Product product: productArrayList) // foreach loop to iterate through the ArrayList\r\n {\r\n // TODO: check if this code is right\r\n inventoryInformation += product.getId() + \" \" + product.getName() + \" \" +\r\n product.getCost() + \" \" + product.getQuantity() + \" \" + product.getMargin() + \"\\n\";\r\n }\r\n System.out.println(inventoryInformation);\r\n return inventoryInformation;\r\n }",
"public String getOntologyListString()\n {\n String returnString = \"\";\n \n for(int i=0;i<getOntologyListSize();i++)\n {\n VueMetadataElement vme = getOntologyListElement(i);\n returnString += vme.getObject() + \"|\";\n }\n \n return returnString;\n }",
"public Item2Vector<Summary> getSummaries() { return summaries; }",
"@Override\n public String toString() {\n return String.format(\"size = %s, numOfCheese = %d, numOfPepperoni = %d, numOfHam = %d\", this.size, this.cheese,\n this.pepperoni, this.ham);\n }",
"public String toString() {\n return \"[Name: \" + itemName + \" Performance:\" + \" \" + itemAttribute + \" Price: \" + \" \" + itemPrice + \"]\";\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n\n sb.append(String.format(\"#Name: %s\", this.name))\n .append(\"\\n\");\n sb.append(String.format(\"##Health: %.2f// Energy: %d// Intelligence: %.2f\", this.health, this.energy, this.intelligence))\n .append(\"\\n\");\n\n return sb.toString();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn name + \" (Deck, \" + cards.size() + \" cards)\";\r\n\t}",
"public String toString()\n\t{\n\t\tint poleSize = pole.size();\n\t\tString s = \"\";\n\t\tfor(int i = 0; i < poleSize; i++)\n\t\t\ts += pole.get(i).getSize() + (i < poleSize - 1 ? \", \" : \"\");\n\t\treturn s;\n\t}",
"@Override\r\n public String toString()\r\n {\r\n return \"================================================================\"\r\n \t\t +\"\\nCylinder is made of \" + metalType + \" with density \" + density + \"kg/dm\\u00B3\"\r\n +\"\\nCylinder radius = \" + radius + \"dm\"\r\n + \"\\nCylinder length = \" + length + \"dm\"\r\n + \"\\nCylinder thickness = \" + thickness + \"dm\"\r\n + \"\\nCylinder surface area = \" + findSurfaceArea()+ \"dm\\u00B2\"\r\n + \"\\nCylinder volume = \" + findVolume() + \"dm\\u00B3\"\r\n + \"\\nCylinder inner volume = \" + findInnerVolume() + \"dm\\u00B3\"\r\n + \"\\nCylinder volume of the metal = \" + findMetalVolume() + \"dm\\u00B3\"\r\n + \"\\nCylinder weight = \" + findWeight() + \"kg\"\r\n +\"\\n================================================================\\n\";\r\n }",
"public int numberOfIcosahedrons() {\n return icosList.size();\n }",
"public List<String> showStorageUnitsName() {\n return queryForListWithLog(proxyDataSource, \"SHOW STORAGE UNITS\").stream().map(each -> String.valueOf(each.get(\"name\"))).collect(Collectors.toList());\n }",
"public String toString()\n {\n return \"The tesseract's dimensions are \" + getLength() + \" X \" + getWidth() + \" X \" + getHeight() + \" X \" + getwDimension();\n }",
"@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }",
"public String getPrintableFormat() {\n String output = new String(\"Articoli del gruppo \" + groupName + \":\\n\");\n for (int i = 0; i < list.size(); i++) {\n Article article = list.get(i);\n output += String.format(\"%2d %s\\n\",i,article.getPrintableFormat());\n }\n return output;\n }",
"public String toString() {\n return super.toString() + \" with specifications:\\n\\tNumber of strings: \" + nrStrings \n + \"\\n\\tString size: \" + stringSize + \"mm\";\n }",
"int getFigureListCount();",
"public String getMetaInfo() {\n \tString metaInfo = \"\";\n \t//Add items\n \tfor (Collectable item : items) {\n \t\tif (item != null) {\n \t\t\tmetaInfo += String.format(META_ITEM_FORMAT, item.getGridCoords().toString(),\n \t\t\t\t\t\t\t\tMETA_ITEM_KEYWORD, item.getMetaInfo());\n \t\t\tmetaInfo += GlobalInfo.NEW_LINE;\n \t\t}\n \t}\n \t//Add numTokens\n \tmetaInfo += String.format(META_TOKEN_FORMAT, \"0,0\", META_TOKEN_KEYWORD, numTokens);\n \treturn metaInfo;\n }",
"private String metadata() {\n\t\tStringBuilder s = new StringBuilder();\n\t\ts.append(\"#######################################\");\n\t\ts.append(\"\\n# Metadata of query set\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Queries\");\n\t\ts.append(\"\\n# \\tTotal: \" + this.num_queries);\n\t\ts.append(\"\\n# \\tPoint: \" + this.num_pt_queries + \" (\" + 100 * ((double) this.num_pt_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n# \\tRange: \" + this.num_range_queries + \" (\" + 100 * ((double) this.num_range_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Operators\");\n\t\ts.append(\"\\n# \\tTotal: \" + (this.num_and_ops + this.num_or_ops) + \" (\" + ((double) (this.num_and_ops + this.num_or_ops)/this.num_queries) +\" per query)\");\n\t\ts.append(\"\\n# \\tAND: \" + this.num_and_ops);\n\t\ts.append(\"\\n# \\tOR: \" + this.num_or_ops);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Attributes\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_attributes);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Bins\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_bins);\n\t\ts.append(\"\\n# \\tPer query: \" + ((double) this.num_bins/this.num_queries));\n\t\ts.append(\"\\n#######################################\\n\");\n\t\treturn s.toString();\n\t}",
"public String toString()\r\n\t{\r\n\t\tString parentDesc = super.toString();\r\n\t\tString myDesc = \"[Size: \" + this.size + \" ]\";\r\n\t\treturn parentDesc + myDesc;\r\n\t}",
"@Override\n\tpublic ArrayList<Shape3D> display() {\n\t\treturn list;\n\t}",
"@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder(\"Hand contains:\\n\");\n for (Card c : cardList) {\n stringBuilder.append(c.getFace().toString());\n stringBuilder.append(\" of \");\n stringBuilder.append(c.getSuit().toString());\n stringBuilder.append(\"\\n\");\n }\n return stringBuilder.toString();\n }",
"@Override\n public String toString() {\n String title = \"\\n#\" + mokedexNo + \" \" + name + \"\\n\";\n StringBuffer outputBuffer = new StringBuffer(title.length());\n for (int i = 0; i < title.length(); i++){\n outputBuffer.append(\"-\");\n }\n String header = outputBuffer.toString();\n String levelStats = \"\\nLevel: \" + level;\n String hpStats = \"\\nHP: \" + hp;\n String attStats = \"\\nAttack: \" + attack;\n String defStats = \"\\nDefense: \" + defense;\n String cpStats = \"\\nCP: \" + cp;\n return title + header + levelStats + hpStats + attStats + defStats + cpStats + \"\\n\";\n }",
"String getOrderSummary(){\n String s = \"\";\n\n for (Pizza p : pizzas) {\n s += p.getInfo() + \"\\n\";\n }\n\n return s;\n }",
"public String listOfMaterials() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Material> it = materials.iterator(); it.hasNext();) {\r\n\t\t\t Material m = (Material) it.next();\r\n sb.append(m.toString());\r\n }\r\n return sb.toString();\r\n }",
"public String toString()\n {\n String output = getName();\n for(int i = 0; i < indicators.length; i++)\n {\n output += \" \" + getIndicatorForYear(indicators[i].getYear());\n }\n return output;\n }",
"@Override\n public String toString()\n {\n return getClass().getName() + \"[# of GrassPatches=\" + grassPatches.length+ \", # of Units=\" + walkers.size()+ \"]\";\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"icecream in a \");\n sb.append(holder.toString().toLowerCase());\n sb.append(\" with:\\n\");\n for (IceCreamScoop scoop : scoops) {\n sb.append(\"\\t\");\n sb.append(scoop);\n sb.append(\"\\n\");\n }\n\n return sb.toString();\n }",
"public String salesPerRoll(){\n\t\tint i;\n\t\tint listSize = ordersPerRoll.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Sales Per Roll: \";\n\t\t//outputText = inventory.get(0).getRoll().getType() + \" Roll Current stock: \" + inventory.get(0).getStock();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + ordersPerRoll.get(i).getRoll().getType() + \"s : \" + ordersPerRoll.get(i).getStock() + \" \";\n\t\t}\n\t\t//System.out.println(outputText);\n\t\treturn outputText;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"[Avg:\" + avg_stock_price + \",\" + \"Count:\" + count + \"]\"; \n\t}",
"@Override\n public String getRecordDetail() {\n return \"[\" + type + \"] \"\n + \"[\" + people + \" pax] \"\n + \"[\" + \"Total: $\" + amount + \"] \"\n + \"[\" + amountToMoney() + \" per person] \"\n + nameList;\n }",
"public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}",
"public String getNameAndAttributes() {\n Formatter sbuff = new Formatter();\n sbuff.format(\"Structure \");\n getNameAndDimensions(sbuff, false, true);\n sbuff.format(\"%n\");\n for (Attribute att : attributes) {\n sbuff.format(\" %s:%s;%n\", getShortName(), att.toString());\n }\n return sbuff.toString();\n }",
"public String toString()\n {\n String output = \"Picture, filename \" + getFileName() + \n \" height \" + getHeight() \n + \" width \" + getWidth();\n return output;\n \n }",
"public String toString()\n {\n String output = \"Picture, filename \" + getFileName() + \n \" height \" + getHeight() \n + \" width \" + getWidth();\n return output;\n \n }",
"public static void showStats() {\n\n List<String> stats = statsList.subList(Math.max(statsList.size() - 3, 0), statsList.size());\n\n System.out.println(\"Stats:\");\n for(String stat : stats){\n System.out.println(stat);\n }\n }",
"public String toString() {\r\n\t\tString[] analysis = new String[26];\r\n\t\tString bigLine = String.format(\"LETTER ANALYSIS: \" + '\\n' + \"%-6s\" + '\\t' + \"%-6s\" + '\\t' + \"%-6s\" +\r\n\t\t\t\t\t\t\t'\\t' + \"%-6s\" + '\\t' + \"%-6s\" + '\\n', \"Letter\", \"Freq\", \"Freq%\", \"AvFreq%\", \"Diff\");\r\n\t\tfor(int i = 0; i < 26; i++) {\r\n\t\t\tanalysis[i] = returnAnArray(i);\r\n\t\t\tbigLine+=analysis[i];\r\n\t\t} bigLine += \"The most frequent letter is \" + mostFrequent + \" at \" + formatDoubles(max);\r\n\t\treturn bigLine;\r\n\t\t\r\n\t}",
"MeasureOrNullListType getQuantityList();",
"public native final String summary() /*-{\n\t\treturn this[\"summary\"];\n\t}-*/;",
"@Override\n public String toString() {\n String listOfPhotos = \"\";\n for (Photo a : this.photos) {\n listOfPhotos += a.toString() + \"\\n\";\n }\n return \"Library with id \" + this.ID + \" and name \" + this.name + \" with albums \" + this.albums + \" with photos:\\n\"\n + listOfPhotos;\n }",
"public String toString() {\n if (size > 0) {\n String display = \"[\";\n for (int i = 0; i < size - 1; i++) {\n display += list[i] + \",\";\n } display += list[size - 1] + \"]\";\n return display;\n }\n return \"[]\";\n }",
"@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n builder.append('[');\n for (Object item : list)\n {\n builder.append(item.toString());\n builder.append(\", \");\n }\n builder.append(']');\n return builder.toString();\n }",
"public String toString() {\r\n\t\tString output = \"\";\r\n\t\tfor (int n = 0; n < parts.size(); n++){\r\n\t\t\toutput = output + parts.get(n) + \", \";\r\n\t\t}\r\n\t\t\r\n\t\tint toAdd = 5 - parts.size(); \r\n\t\t\t\r\n\t\tfor( int i = 0; i < toAdd; i++ ) {\r\n \t\r\n\t\toutput = output + \"[ ], \";\r\n \r\n\t\t} \r\n\t\t\r\n\t\treturn output;\r\n\t\t\t\r\n\t}",
"@Override\n public String toString() {\n StringBuilder string = new StringBuilder();\n string.append(\"size=\").append(size).append(\", [\");\n for (int i = 0; i < size; i++) {\n if (i != 0) {\n string.append(\", \");\n }\n\n string.append(elements[i]);\n\n//\t\t\tif (i != size - 1) {\n//\t\t\t\tstring.append(\", \");\n//\t\t\t}\n }\n string.append(\"]\");\n return string.toString();\n }",
"@Override\n public float getCube() {\n\n int wart = 0;\n if (!roomList.isEmpty()){\n for (Room room : roomList){\n if (room instanceof Localization){\n wart += room.getCube();\n }\n }\n }\n return wart;\n }",
"public String toString() {\n // Replace the following line with your solution.\n\t String result=\"Run Length Encoding for Image:\"+getWidth()+\" by \"+getHeight()+\"\\n\";\n\t DListNode<int[]> node=runs.getFirst();\n\t \n\t \n\t for (int i=1;i<=runs.length();i++) {\n\t\t System.out.print(i);\n\t\t result +=\"(\";\n\t\t result+=node.item[0]+\" , \"+node.item[1]+\" , \"+node.item[2]+\" , \"+node.item[3];\n\t\t result+=\")\";\n\t\t\tresult+=\"\\n\";\n\t\t\t\tnode=node.next;\n\t\t\t}\n\t \n\t \n return result;\n }",
"public double totalSurfaceArea() {\n int index = 0;\n double total = 0.0;\n while (index < icosList.size()) {\n total += icosList.get(index).surfaceArea();\n index++; \n }\n return total;\n }",
"@Override\n public String getDescription() {\n String desc = \"\";\n desc += \"Width: \" + getWidth() + \" Length: \" + getLength() + \"\\n\";\n desc += \"Monsters:\\n\";\n for (Monster m: monsters) {\n desc += m.getDescription() + \"\\n\";\n }\n desc += \"Treasures:\\n\";\n for (Treasure t: treasures) {\n desc += t.getDescription() + \"\\n\";\n }\n\n return desc;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn name() + \" \" + \"w:\" + weight + \" \" + \"d:\" + diameter;\n\t}",
"private static void displayList(ArrayList list) {\n System.out.println(\"The list contains \" + list.getCurrentSize()\n + \" string(s), as follows:\");\n Object[] listArray = list.toArray();\n for (int index = 0; index < listArray.length; index++) {\n System.out.print(listArray[index] + \" \");\n } // end for\n System.out.println();\n }",
"public String toString()\n\t{\n\t\treturn this.dataLineType.toStringLong() + \" (\" + this.count + \" items)\";\n\t}",
"public String toString() {\r\n\t\treturn name + \" @\" + worth; \r\n\t}",
"public String toString() {\n return \"mass||\" + iMass + \"\\t\\tintensity||\" + iIntensity;\n\n }",
"public String toString() {\n if (inCatlog) {\n return name + \" \" + quantity + \" \" + price;\n }\n return name + \" \" + quantity;\n }",
"public double totalSurfaceArea() {\r\n \r\n double total = 0;\r\n int index = 0;\r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n while (index < list.size()) {\r\n total += list.get(index).surfaceArea();\r\n index++;\r\n }\r\n return total;\r\n }",
"public String toString() {\n return \"Storage media: \" + this.getMedia() + \"\\nStorage: \" + this.getStorage() + \"\\nNumber of terabytes: \" + this.getNumTera() + \"\\nMonthly Cost: \" + String.format(\"%.2f\", this.setTotal(media) + \"\\n\");\n }",
"public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor (int i=0; i<MAX_PROPERTY;i++) {\r\n\t\t\tif(properties[i]==null){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\toutput += properties[i].toString()+\"\\n\";\r\n\t\t}\r\n\t\treturn \"List of the properties for \"+name+\", taxID: \"+taxID+\r\n\t\t\t\t\"\\n___________________________________\\n\"+output+\"\\n\"\r\n\t\t\t\t\t\t+ \"___________________________________\\ntotal \"\r\n\t\t\t\t\t\t+ \"management Fee: \"+(totalRent()*mgmFeePer/100);\r\n\t}",
"public void showSamples(){\n\t\tfor(int i=0; i<arrIns.size(); i++){\n\t\t\tfor(int j=0; j<arrIns.get(i).numAttributes(); j++){\n\t\t\t\tSystem.out.print(\" | \" + arrIns.get(i).value(j) + \" | \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"private int getUnitListValue() {\r\n\t\tint value = 0;\r\n\t\tfor (Unit unit : this.unitList) {\r\n\t\t\tvalue += unit.getValue();\r\n\t\t}\r\n\t\treturn value;\r\n\t}",
"@Override\n public String toString() {\n return this.area + \"/\" + this.aisle + \"/\" + this.x + \"/\" + this.y + \"/\" + this.z;\n }",
"public void printSpellList(List<Spell> list) {\n\t\tSystem.out.println(\"**** Available Spells ****\");\n\t\tSystem.out.println(\"ID\\tName\\t\\t\\tDamage\\tMana Cost\\tElement\");\n\t\tSystem.out.println(\"============================================================================================\");\n\t\tint id = 1;\n\t\tfor(Spell s : list) {\n\t\t\n\t\t\tSystem.out.printf(id++ + \"\\t\" + s.getName());\n\t\t\tfor(int i = 0; i < 24-s.getName().length(); i++) {\n\t\t\t\tSystem.out.printf(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(s.getBaseDmg() + \"\\t\" + s.getManaCost() + \"\\t\" + s.getType().toString());\n\t\t\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}",
"private static void printGridletList(GridletList list, String name)\r\n {\r\n int size = list.size();\r\n Gridlet gridlet = null;\r\n\r\n String indent = \" \";\r\n System.out.println();\r\n System.out.println(\"============= OUTPUT for \" + name + \" ==========\");\r\n System.out.println(\"Gridlet ID\" + indent + \"getResourceID\" + \"STATUS\" + indent +\r\n \"Resource ID\" + \" getGridletLength getGridletFileSize getGridletOutputSize getGridletOutputSize getSubmissionTime getWaitingTime getWallClockTime getExecStartTime\");\r\n\r\n // a loop to print the overall result\r\n int i = 0;\r\n for (i = 0; i < size; i++)\r\n {\r\n gridlet = (Gridlet) list.get(i);\r\n printGridlet(gridlet);\r\n \r\n\r\n System.out.println();\r\n }\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Cube(\" + this.nom + \")@(\" + this.centre.getX() + \", \" + this.centre.getY() + \", \" + this.centre.getZ() + \") ar�te : \"+this.arete;\n\t}",
"@Override\r\n \tpublic String toString() {\r\n \t\tStringBuilder result = new StringBuilder();\r\n \t\tresult.append('[');\r\n \t\tif(numItems > 0) {\r\n \t\t\tresult.append(items[0].toString());\r\n \t\t\t// We want number of spaces to be equal to numItems - 1\r\n \t\t\tfor(int i=1; i<numItems; i++) {\r\n \t\t\t\tresult.append(' ');\r\n \t\t\t\tresult.append(items[i].toString());\r\n \t\t\t}\r\n \t\t}\r\n \t\tresult.append(']');\r\n \t\treturn result.toString();\r\n \t}"
]
| [
"0.77241725",
"0.7302504",
"0.62735975",
"0.6194811",
"0.6021682",
"0.60024995",
"0.599071",
"0.5875346",
"0.58683985",
"0.5852001",
"0.5829693",
"0.5815834",
"0.57668954",
"0.5760572",
"0.57531106",
"0.5729699",
"0.5713453",
"0.56892836",
"0.566934",
"0.56661826",
"0.5652676",
"0.5642862",
"0.5629869",
"0.55994374",
"0.55986965",
"0.5595316",
"0.5589295",
"0.5535614",
"0.55251503",
"0.5509994",
"0.5502362",
"0.5480495",
"0.54774624",
"0.54771584",
"0.54767287",
"0.5467391",
"0.5457996",
"0.54538804",
"0.54476804",
"0.54445356",
"0.54167783",
"0.5396235",
"0.53868103",
"0.5382533",
"0.5374091",
"0.5363406",
"0.53416353",
"0.53415376",
"0.5326577",
"0.53224313",
"0.5320993",
"0.5310419",
"0.53066736",
"0.5305304",
"0.53025717",
"0.5301314",
"0.52883613",
"0.52744",
"0.5274356",
"0.52730644",
"0.52681583",
"0.52600044",
"0.5258127",
"0.52555764",
"0.52544475",
"0.52532995",
"0.52482426",
"0.524523",
"0.52388096",
"0.52307665",
"0.52307665",
"0.5229558",
"0.522828",
"0.5227841",
"0.522149",
"0.52182883",
"0.5216551",
"0.5212241",
"0.5210948",
"0.52097064",
"0.52089417",
"0.5208863",
"0.5197464",
"0.5195238",
"0.5189696",
"0.5186158",
"0.5184888",
"0.5184182",
"0.51819295",
"0.51773643",
"0.51685596",
"0.5167827",
"0.51639545",
"0.51620597",
"0.5161933",
"0.5160446",
"0.5157402",
"0.5156993",
"0.51544106",
"0.5153973"
]
| 0.72300124 | 2 |
Registriert ein Tier auf einem bestimmten Feld. | public void placeAnimal(AnimalSol animal, String where) {
for (int i = 0; i < myAnimals.length; i++) {
if (null == myAnimals[i]) {
myAnimals[i] = animal;
animal.square = where;
animal.position = this;
nrAnimals++;
return;
} else if (animal == myAnimals[i]) {
throw new RuntimeException("Animal " + animal + " already placed :(");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void registrarLlegada() {\n\t}",
"@Override\n\tpublic void registrarLlegada() {\n\t\t\n\t}",
"public void register(T t);",
"@Override\n\tpublic void registrarSalida() {\n\n\t}",
"@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}",
"@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}",
"public abstract void register();",
"public void premutoRegistrati()\n\t{\n\t\tnew _FINITO_funzione_registrazioneGUI();\n\t}",
"@Override\n\tpublic void registrarEntrada() {\n\n\t}",
"public void register(){\n }",
"void register(final SimpleHack<?> hack) {\n\t\tthis.hacks.add(hack);\n\t}",
"Registries createExtension();",
"public void register() {\r\n\t\tHandlerSet hs = HandlerSet.getHandlerSet();\r\n\t\ths.addHandler(this);\r\n\t}",
"@Override\n public void register(@Nonnull IModRegistry registry)\n {\n registry.addRecipes(WorldTransmutations.getWorldTransmutations(), WorldTransmuteRecipeCategory.UID);\n registry.getRecipeTransferRegistry().addRecipeTransferHandler(PhilosStoneContainer.class, VanillaRecipeCategoryUid.CRAFTING, 1, 9, 10, 36);\n }",
"private void register()\n {\n ScControlRegistry r = getRegistry();\n\n _key = r.getNextKey();\n r.register(this);\n }",
"protected void __register()\n {\n }",
"protected void __register()\n {\n }",
"public void register(RegistrationData d) {}",
"private void registToWX() {\n }",
"@Override\r\n\tpublic void registriereBeobachter(Beobachter b) {\n\t\tbeobachter.add(b);\r\n\t}",
"public void registerService(Registrant r) {\n namingService.registerService(r);\n }",
"public void register(T o);",
"@Override\r\n\tpublic void register() {\n\t\t\r\n\t}",
"private void register(Path dir) {\n WatchKey key = null;\n\t\t\n try {\n key = dir.register(watcherService, STANDARD_EVENTS, FILE_TREE);\n } catch (UnsupportedOperationException ex) {\n LOG.warn(\"File watching not supported: {}\", ex.getMessage());\n LOG.trace(\"Exception:\", ex);\n } catch (IOException ex) {\n LOG.error(\"IO Error:\", ex);\n }\n\n if (key != null) {\n if (trace) {\n Path prev = keys.get(key);\n if (prev == null) {\n LOG.info(\"Register Watcher for: {}\", dir);\n } else if (!dir.equals(prev)) {\n LOG.info(\"Update Watcher for: {} -> {}\", prev, dir);\n }\n }\n keys.put(key, dir);\n }\n }",
"private void registerIfd(int ifdType, long offset) {\n mCorrespondingEvent.put((int) offset, new IfdEvent(ifdType, isIfdRequested(ifdType)));\n }",
"static void register() {\n }",
"void registerPart(String uniqueName, Object part, Class<?>... implementedInterfaces);",
"int register(String clazz, String method, String branch);",
"@Override\n\tpublic void register(MainFrameUpdater mfu) {\n\t\t\n\t}",
"public Register() {\n\n this.literatureRegister = new ArrayList<>();\n }",
"void registerPart(Object part, Class<?>... implementedInterfaces);",
"void register() {\n Thread patientLoaderThread = new Thread(new RegistrationRunnable(true));\n patientLoaderThread.start();\n }",
"public void register() {\n\t\tPrettyEmailNotificator.templatePath = server.getServerRootPath()+ myPluginDescriptor.getPluginResourcesPath() + \"templates/\";\r\n\t\tPrettyEmailNotificator.attachmentPath = server.getServerRootPath()+ myPluginDescriptor.getPluginResourcesPath() + \"img/\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tinitVelocity();\r\n\t\t\tnotificatorRegistry.register(this);\r\n\t\t\tLoggers.SERVER.info(this.getClass().getSimpleName() + \" :: Registering\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLoggers.SERVER.error(this.getClass().getSimpleName() + \" :: \" + PrettyEmailNotificator.TYPE + \" was NOT successfully registered. See DEBUG for Stacktrace\");\r\n\t\t\tLoggers.SERVER.debug(e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"@Override\n protected void onRegister() {\n Core.register(this);\n }",
"public Register() {\n\t\tsuper();\n\t}",
"public <K, V> void registerInheritableTile(Class<K> clazz, ICapabilityConstructor<?, V, V> constructor) {\n checkNotBaked();\n capabilityConstructorsTileSuper.add(\n Pair.<Class<?>, ICapabilityConstructor<?, ?, ?>>of(clazz, constructor));\n\n if (!registeredTileEventListener) {\n registeredTileEventListener = true;\n MinecraftForge.EVENT_BUS.register(new TileEventListener());\n }\n }",
"public void registraBitacoraFactura(Factura f) {\n if (f.getEsPagada()) {\n bitacoraPago.insertar(f);\n }\n }",
"public void register() {\n\t\tworkbenchWindow.getPartService().addPartListener(this);\n\t}",
"private void register(Path dir) throws IOException {\n\t\tWatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);\n\t\tif (trace) {\n\t\t\tPath prev = keys.get(key);\n\t\t\tif (prev == null) {\n\t\t\t\tif (logger.isDebugEnabled())\n\t\t\t\t\tlogger.debug(String.format(\"register: %s\\n\", dir));\n\t\t\t} else {\n\t\t\t\tif (!dir.equals(prev)) {\n\t\t\t\t\tif (logger.isDebugEnabled())\n\t\t\t\t\t\tlogger.debug(String.format(\"update: %s -> %s\\n\", prev, dir));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tkeys.put(key, dir);\n\t}",
"public void registerPatientMethod1(Patient p);",
"public void registraPart(Part part) throws RemoteException, PartRegistradaException;",
"public void register(String inpuFilePath) {\n\t // urlParams are the stocks portfolios\n\t\tHashMap<String, Double> stocks = (HashMap<String, Double>) \n\t\t\t\tthis.stkIO.readStocks(inpuFilePath, false);\n\t\tif (stocks != null) {\n\t\t\tHashMap<String, Double> urlParams = stocks;\n\t\t\tif (urlParams != null) {\n\t\t\t\t String url = IP + String.valueOf(PORT) + \"/register\";\n\t\t\t\t String jsonMap = new Gson().toJson(urlParams);\n\t\t\t\t String id = sendPost(url, jsonMap);\n\t\t\t\t\tSystem.out.println(\"Server response is: \\n\" +\n\t\t\t\t\t\t\t\"Your Portfoilo was successfully created. \"\n\t\t\t\t\t\t\t+ \"Portfoilo id is: \" + id + \".\");\t\n\t\t\t}\n\t\t}\n\t}",
"public void registerTrapHandler(TrapHandler th) {\r\n\t\tm_TH = th;\r\n\t}",
"public static boolean enregistre(Instance i , String nomFichier){\n\t\tBufferedWriter writer = null;\n\t\ttry\n\t\t{\n\t\t writer = new BufferedWriter( new FileWriter( nomFichier));\n\t\t writer.write( i.toString());\n\t\t return true;\n\n\t\t}\n\t\tcatch ( IOException e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t try\n\t\t {\n\t\t if ( writer != null)\n\t\t writer.close( );\n\t\t }\n\t\t catch ( IOException e)\n\t\t {\n\t\t }\n\t\t}\n\t}",
"@Override\n\tpublic void registrarAtencion(TramiteUsuario tramite) {\n\t\ttramite.setSecUsuario1( Usuario.getUsuarioBean() );\n\t\ttramite.setSecUsuario2( Usuario.getUsuarioBean() );\n\t\ttramite.setEstado(1);\n\t\ttramite.setEstadoTramiteFinal( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramite.setFechaRegistro( new Date() );\n\t\ttramiteDAO.registrarMovimiento( tramite );\n\t\t\n\t\ttramite.getTramite().setEstado( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramiteDAO.registrar( tramite.getTramite() );\n\t\t\n\t}",
"@Override\n public void register() {\n }",
"@Override\n public void register(@Nonnull IModRegistry registry)\n {\n registry.addRecipes(WorldTransmuteRecipeCategory.getAllTransmutations(), WorldTransmuteRecipeCategory.UID);\n registry.getRecipeTransferRegistry().addRecipeTransferHandler(PhilosStoneContainer.class, VanillaRecipeCategoryUid.CRAFTING, 1, 9, 10, 36);\n\n registry.addRecipeCatalyst(new ItemStack(ObjHandler.philosStone), VanillaRecipeCategoryUid.CRAFTING);\n registry.addRecipeCatalyst(new ItemStack(ObjHandler.philosStone), WorldTransmuteRecipeCategory.UID);\n registry.addRecipeCatalyst(new ItemStack(ObjHandler.collectorMK1), CollectorRecipeCategory.UID);\n registry.addRecipeCatalyst(new ItemStack(ObjHandler.collectorMK2), CollectorRecipeCategory.UID);\n registry.addRecipeCatalyst(new ItemStack(ObjHandler.collectorMK3), CollectorRecipeCategory.UID);\n\n mappers.add(new JEIFuelMapper());\n }",
"public void registerForSimNameChange(Handler h, int what, Object obj) {\n Registrant r = new Registrant (h, what, obj);\n\n synchronized (INSTANCE_LOCK) {\n mMultiSimNamesRegistrants.add(r);\n }\n }",
"private InterestRegistration registerInterest(InterestRegistration reg) throws IOException {\n setupTimers();\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINEST)) Log.finest(Log.FAC_NETMANAGER, formatMessage(\"registerInterest for {0}, and obj is \" + _myInterests.hashCode()), reg.interest.name());\n synchronized (_myInterests) {\n _myInterests.add(reg.interest, reg);\n }\n return reg;\n }",
"public static void register() {\n // Registers the GUI Handler\n NetworkRegistry.instance().registerGuiHandler(Dendritis.instance, GUIHandler.instance());\n \n OreDictionaryRegistry.oreDictionary();\n BlockRegistry.registerBlocks();\n WorldRegistry.registerWorld();\n RecipeHandler.init();\n }",
"@Override\n\tpublic void registerRecipe(IForgeRegistry<IRecipe> registry) {\n\t\tRecipeAddedManager.BREWING_RECIPES.add(0, this);\n\t}",
"public int registerFlight(final GenericFlight flight) {\n\t\t// Register a flight, use the size of the hash to generate a flight\n\t\t// number.\n\t\tfinal Integer num = this.flights.size();\n\t\tthis.flights.put(num, flight);\n\t\tflight.setFlightNumber(num);\n\t\treturn num;\n\t}",
"protected abstract void registerSuperTypes();",
"void register();",
"public static void registerISTERs() {\n\n\t}",
"public boolean registrarHabitacion(Habitacion h, int f, int id) {\n if (h.getImagen() == null) {\n throw new MiError(\"Favor seleccionar una imagen.\");\n }\n if (h.getNumero() < 0) {\n throw new MiError(\"Numero de habitacion requerido.\");\n }\n if (h.getTamaño() < 0) {\n throw new MiError(\"Tamaño de habitacion requerido.\");\n }\n HabitacionDAO hdao = new HabitacionDAO();\n if (f == 2) {\n return hdao.modificar(h, id);\n }\n return hdao.registrar(h);\n }",
"public void registerWithServer();",
"public void add(Fit f, int hierarchyIndex) {\n\t\tif (m_indexAdded == -1)\n\t\t\tm_indexAdded = hierarchyIndex;\n\t\tadd(f);\n\t}",
"@Override\r\n\tpublic void addTipoTramite(TipoTramite tipoTramite) {\n\t\t\r\n\t}",
"public interface Registries {\n\n /***/\n ElementHandlerRegistry getElementHandlerRegistry();\n\n /***/\n AnnotationRegistry getAnnotationHandlerRegistry();\n\n /***/\n PainterRegistry getPaintRegistry();\n\n /**\n * Bundles up extension of each registry.\n */\n Registries createExtension();\n}",
"private void register() {\n\t\tInetAddress iNA;\n\t\ttry {\n\t\t\tiNA = InetAddress.getLocalHost();\n\t\t\tmyIPAddress = iNA.getAddress();\n\t\t\tOverlayNodeSendsRegistration register = new OverlayNodeSendsRegistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum);\n\t\t\tthis.registry.getSender().sendData(register.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t}\n\t}",
"@Override\r\n public <T> void registerService(Class<T> clazz, Object implementation) {\r\n synchronized (serviceRegistrations) {\r\n serviceRegistrations.add(bundleContext.registerService(clazz.getName(), implementation, null));\r\n }\r\n }",
"private void registerService() {\r\n DFAgentDescription desc = new DFAgentDescription();\r\n desc.setName(getAID());\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(SERVICE_TYPE);\r\n sd.setName(SERVICE_NAME);\r\n desc.addServices(sd);\r\n try {\r\n DFService.register(this, desc);\r\n } catch (FIPAException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }",
"public ServiceRegistration<WeavingHook> register(BundleContext ctx, int rank) {\n\t\t\tHashtable<String, Object> table = new Hashtable<String, Object>();\n\t\t\ttable.put(Constants.SERVICE_RANKING, Integer.valueOf(rank));\n\t\t\treturn ctx.registerService(WeavingHook.class, this, table);\n\t\t}",
"@Override\n public void register(Asciidoctor asciidoctor) {\n }",
"public void registerContentsToPathway()\r\n\t{\n\t}",
"public abstract void registerListeners();",
"protected void register() {\r\n\t\tif ((audioFile != null) && (audioFile instanceof AudioFileURL)) {\r\n\t\t\t((AudioFileURL) audioFile).addListener(this);\r\n\t\t}\r\n\t}",
"public void testRegisterWizardPanel() {\n System.out.println(\"registerWizardPanel\");\n Object id = null;\n WizardPanelDescriptor panel = null;\n Wizard instance = new Wizard();\n instance.registerWizardPanel(id, panel);\n }",
"@Override\n protected void adicionar(Funcionario funcionario) {\n\n }",
"interface IRegisterable<T> {\n\n /**\n * Register this object T.\n * \n * @param t\n * The object.\n */\n public void register(T t);\n\n /**\n * Unregister this object.\n * \n * @param t\n * The object.\n */\n public void unregister(T t);\n}",
"private WatchKey register(Path dir) throws IOException {\n\t\tWatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);\n\t\tkeys.put(key, dir);\n\t\treturn key;\n\t}",
"public void registerUIExtension(UIExtension extension)\n {\n synchronized (_scorersAndLafs)\n {\n if (!_extensions.contains(extension))\n {\n _extensions.add(extension);\n\n // Register the extension on all existing LookAndFeels\n int lafCount = _lafs.size();\n\n for (int i = 0; i < lafCount; i++)\n {\n LookAndFeel laf = _lafs.get(i);\n extension.registerSelf(laf);\n }\n }\n }\n }",
"public interface ITier {\n\n\tpublic String getName();\n\tpublic void setName(String name);\n\tpublic Zoo getZoo();\n\tpublic void setZoo(Zoo zoo);\n\t\n\tpublic void fuettere(Personal personal); //implemented. Gibt aus, dass tier von personal gefüttert wird.\n\tpublic void lebtIn(/*String gehege, Gehege neuesGehege, */Gehege gehege); //implemented\n\t\t\n}",
"public void registerSerializer(ExtensionRegistry registry) {\n // Register and map Rest Binding\n registry.registerSerializer(Binding.class, RestConstants.QNAME_BINDING, this);\n registry.registerDeserializer(Binding.class, RestConstants.QNAME_BINDING, this);\n registry.mapExtensionTypes(Binding.class, RestConstants.QNAME_BINDING, RestBinding.class);\n\n // Register and map Rest Operation\n registry.registerSerializer(BindingOperation.class, RestConstants.QNAME_OPERATION, this);\n registry.registerDeserializer(BindingOperation.class, RestConstants.QNAME_OPERATION, this);\n registry.mapExtensionTypes(BindingOperation.class, RestConstants.QNAME_OPERATION, RestOperation.class);\n\n // Register and map Rest Address\n registry.registerSerializer(Port.class, RestConstants.QNAME_ADDRESS, this);\n registry.registerDeserializer(Port.class, RestConstants.QNAME_ADDRESS, this);\n registry.mapExtensionTypes(Port.class, RestConstants.QNAME_ADDRESS, RestAddress.class);\n }",
"public static void registerWith(Registrar registrar) {\n final MethodChannel channel = new MethodChannel(registrar.messenger(), FLUTTER_IM_NAME);\n channel.setMethodCallHandler(new FlutterLcImPlugin());\n\n }",
"@Override\n\tpublic boolean register(Librarian librarian) {\n\t\treturn dao.register(librarian);\n\t}",
"public void registerWizardPanel(Object id, WizardPanelDescriptor panel){\n panel.setStepNum(step);\n step++;\n wp.put(id, panel);\n }",
"public static void addTaxi(Taxi taxi) {\n\t\tallTaxies.add(taxi);\n\t}",
"private void regFliter() {\n\t\tIntentFilter filter = new IntentFilter();\r\n\t\tfilter.addAction(OsConstants.JSH.ADD_DEVICES_SUCCES);\r\n\t\tfilter.addAction(OsConstants.JSH.SETTIING_WIFI_SUCCESS);\r\n\t\tregisterReceiver(mReceiver, filter);\r\n\t}",
"public void agregarEnfermera(String nombre, String nit, int dpi,double salario, int anos, boolean intensivista){\r\n Enfermera enf = new Enfermera();\r\n enf.setEnfermera(nombre, nit, dpi,salario, anos, intensivista);\r\n medicosenfermeras.add(enf);\r\n }",
"public static void register() {\n\t\tInteractionEvent.RIGHT_CLICK_BLOCK.register(OriginEventHandler::preventBlockUse);\n\t\t//Replaces ItemStackMixin\n\t\tInteractionEvent.RIGHT_CLICK_ITEM.register(OriginEventHandler::preventItemUse);\n\t\t//Replaces LoginMixin#openOriginsGui\n\t\tPlayerEvent.PLAYER_JOIN.register(OriginEventHandler::playerJoin);\n\t\t//Replaces LoginMixin#invokePowerRespawnCallback\n\t\tPlayerEvent.PLAYER_RESPAWN.register(OriginEventHandler::respawn);\n\t}",
"public void register(Observer or);",
"@Override\n\tpublic void register() {\n\t\tsdClass.withdraw();\n\t}",
"public void register(IPartType partType, Collection<IAspect> aspects);",
"private void register() throws IOException {\n while( true ) {\n try {\n dnRegistration = namenode.register( dnRegistration );\n break;\n } catch( SocketTimeoutException e ) { // namenode is busy\n LOG.info(\"Problem connecting to server: \" + getNameNodeAddr());\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ie) {}\n }\n }\n if( storage.getStorageID().equals(\"\") ) {\n storage.setStorageID( dnRegistration.getStorageID());\n storage.writeAll();\n }\n }",
"public void registerRingerTracker() {\n this.mRingerModeTracker.getRingerMode().observeForever(this.mRingerModeObserver);\n }",
"public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }",
"public void register(IObserver obj);",
"public interface Registry\n {\n /**\n * Collection ids start at 1.\n */\n public <T extends Collection<?>> Registry registerCollection(\n CollectionSchema.MessageFactory factory, int id);\n \n /**\n * Map ids start at 1.\n */\n public <T extends Map<?,?>> Registry registerMap(\n MapSchema.MessageFactory factory, int id);\n \n /**\n * Enum ids start at 1.\n */\n public <T extends Enum<T>> Registry registerEnum(Class<T> clazz, int id);\n \n /**\n * Enum ids start at 1.\n */\n public Registry registerEnum(EnumIO<?> eio, int id);\n \n /**\n * Pojo ids start at 1.\n */\n public <T> Registry registerPojo(Class<T> clazz, int id);\n \n /**\n * Pojo ids start at 1.\n */\n public <T> Registry registerPojo(Schema<T> schema, Pipe.Schema<T> pipeSchema, \n int id);\n \n /**\n * If you are sure that you are only using a single implementation of \n * your interface/abstract class, then it makes sense to map it directly \n * to its impl class to avoid writing the type.\n * \n * Note that the type is always written when your field is \n * {@link java.lang.Object}. \n * \n * Pojo ids start at 1.\n */\n public <T> Registry mapPojo(Class<? super T> baseClass, Class<T> implClass);\n \n /**\n * Register a {@link Delegate} and assign an id.\n * \n * Delegate ids start at 1.\n */\n public <T> Registry registerDelegate(Delegate<T> delegate, int id);\n }",
"HistogramInterface registerHistogram(HistogramInterface histogram);",
"protected void register(String widgetClass, Invoker creator) {\n creators.put(widgetClass, creator);\n }",
"public void registryChange() {\n registryEvent(1);\n }",
"private static void registerFromPackage(String packageName, String packageURL, FileFilter fileFilter) {\n File dir = new File(packageURL);\n if (!dir.exists() || !dir.isDirectory()) return;\n File[] dirFiles = dir.listFiles(fileFilter);\n for (File file : dirFiles)\n if (file.isDirectory()) {\n registerFromPackage(packageName + \".\" + file.getName(), file.getAbsolutePath(), fileFilter);\n } else {\n String className = file.getName().substring(0, file.getName().indexOf(\".\"));\n try {\n Class<?> aClass = Class.forName(packageName + \".\" + className);\n Annotation[] annotations = aClass.getAnnotations();\n //TODO 并不一定是按照顺序的,而且未来有可能不只是2个注解\n\n // 扫描注册 controller requestMapping\n if (annotations.length > 1 && annotations[0].annotationType().equals(Controller.class) && annotations[1].annotationType().equals(RequestMapping.class)) {\n String preUrl = aClass.getAnnotation(RequestMapping.class).value();\n Method[] methods = aClass.getMethods();\n for (Method method : methods) {\n Annotation requestMapping = method.getAnnotation(RequestMapping.class);\n if (requestMapping != null) {\n String pixUrl = ((RequestMapping) requestMapping).value();\n register(preUrl + pixUrl, new Service(aClass.asSubclass(ServiceInterface.class).getConstructor().newInstance(), method));\n System.out.println(((RequestMapping) requestMapping).value());\n }\n }\n\n }\n\n //放弃以下早期的扫描服务代码\n // 实现了注解,并且实现了接口\n// if (annotation != null && ServiceInterface.class.isAssignableFrom(aClass)) {\n//\n//// register(annotation.urlPattern(),aClass.asSubclass(ServiceInterface.class).getDeclaredConstructor().newInstance());\n//// System.out.println(\"成功注册服务: \" + annotation.urlPattern() + \" \" + className);\n// }\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\r\n\tpublic void registerFile(FileVO fvo) {\r\n\t\tfiledao.create(fvo);\r\n\t\t\r\n\t}",
"public IAspect register(IPartType partType, IAspect aspect);",
"public static void register(Recipe recipe){\n Bukkit.getServer().addRecipe(recipe);\n }",
"protected abstract void onElementRegistered(Level level, T element);",
"@CallSuper\n public void registerOrganizer() {\n try {\n getController().registerOrganizer(mInterface);\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }",
"public void registrarTema() {\n\t\ttemaEJB.crearTema(tema);\n\t\tlimpiarCampos();\n\t\tlistaTemas();\n\t}",
"public void register(String classQName, RegEntry regEntry) {\r\n\t\tregMap.put(classQName, regEntry);\r\n\t}"
]
| [
"0.5974048",
"0.5965704",
"0.56674236",
"0.56379074",
"0.56334233",
"0.56334233",
"0.5609401",
"0.5549941",
"0.5456251",
"0.5412173",
"0.538739",
"0.53810555",
"0.53530145",
"0.5310929",
"0.5305471",
"0.5293483",
"0.5293483",
"0.5269547",
"0.5267993",
"0.52471656",
"0.5232511",
"0.52223516",
"0.5214906",
"0.5195079",
"0.51609236",
"0.5144155",
"0.51301783",
"0.5128573",
"0.5122063",
"0.5114788",
"0.51135606",
"0.5106608",
"0.5083069",
"0.50771546",
"0.5061498",
"0.50488496",
"0.5046328",
"0.50400394",
"0.5035086",
"0.50332034",
"0.5032658",
"0.5021938",
"0.5017675",
"0.5016136",
"0.50157005",
"0.5013624",
"0.50130594",
"0.5009946",
"0.50067186",
"0.49966708",
"0.4983955",
"0.49754408",
"0.49697956",
"0.495676",
"0.49485353",
"0.49482182",
"0.49304393",
"0.49271974",
"0.49130148",
"0.48589483",
"0.4857312",
"0.48488104",
"0.484426",
"0.48380715",
"0.48233116",
"0.48136878",
"0.4813082",
"0.4809154",
"0.48088405",
"0.48065838",
"0.47890365",
"0.47873858",
"0.47869155",
"0.47731623",
"0.4759775",
"0.47562185",
"0.47528854",
"0.47441667",
"0.47390303",
"0.47381252",
"0.47379085",
"0.4735839",
"0.47250453",
"0.47176084",
"0.47158343",
"0.4714555",
"0.47130477",
"0.47093776",
"0.47075784",
"0.47073802",
"0.47058883",
"0.4695661",
"0.4688445",
"0.46819797",
"0.4677568",
"0.46749806",
"0.4673165",
"0.4672688",
"0.46611637",
"0.4651049",
"0.4648712"
]
| 0.0 | -1 |
Entfernt ein Tier von einem bestimmten Feld. | public void removeAnimal(AnimalSol animal) {
for (int i = 0; i < myAnimals.length; i++) {
if (animal == myAnimals[i]) {
nrAnimals--;
myAnimals[i]=myAnimals[nrAnimals];
myAnimals[nrAnimals]=null;
return;
} else if (null == myAnimals[i]) {
throw new RuntimeException("Animal " + animal + " not found :(");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void compareFichierTo(Fichier f) {\n\t\t\n\t}",
"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 FilialeVerkaufenEntscheidung(Unternehmenskette kette, Filiale filiale) {\r\n\t\tsuper(kette);\r\n\t\tthis.filiale = filiale;\r\n\t\tnew MitarbeiterEntlassenEntscheidung(kette, filiale, filiale.holeMitarbeiter());\r\n\t}",
"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 T fjern();",
"@Override\r\n\tprotected void doF2() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF7() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public Vector listerFichiers() throws ListerFichiersException\n\t{\n\t\treturn listerFichiers(\"\");\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 }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\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}",
"@Override\n\tpublic void visitTlfold(Tlfold p) {\n\n\t}",
"public void afficherFile() {\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Voici la File (tete a gauche, queue a droite): \");\r\n\t\tSystem.out.println(\"----------------------------------------------\");\r\n\r\n\t\tif (this.estVide() == true) {\r\n\r\n\t\t\tSystem.out.println();\r\n\t\t} else {\r\n\r\n\t\t\tCellule<T> ref = this.tete;\r\n\r\n\t\t\tfor (int i = 1; i <= this.getLongueurFile(); i++) {\r\n\r\n\t\t\t\tSystem.out.print(ref.getValeur() + \" \");\r\n\r\n\t\t\t\tif (ref.getSuivant() != null) {\r\n\r\n\t\t\t\t\tref = ref.getSuivant();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t}",
"private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }",
"public void modifierFiche( Fiche fiche) ;",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}",
"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 schreibeFreizeitbaederInTxtDatei()\r\n\t\t throws IOException{\r\n\t\t\t WriterCreator writerCreator = new ConcreteTxtWriterCreator();\r\n\t\t\t WriterProduct writerProduct = writerCreator.factoryMethod();\r\n\t\t\t //Praktikum 4\r\n \t\t\tthis.getFreizeitbaeder().forEach((fzb) -> {\r\n \t\t\t\ttry {\r\n \t\t\t\t\twriterProduct.fuegeInDateiHinzu(fzb);\r\n \t\t\t\t} catch (IOException e) {\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t});\r\n \t\t\twriterProduct.schliesseDatei();\t\t \r\n }",
"@Override\n\tpublic void generarFactura() {\n\t\t\n\t}",
"public static void afficherFacturier() {\r\n Facture.afficher();\r\n }",
"@Override\n\tpublic Farbe getFuellFarbe() {\n\t\treturn null;\n\t}",
"public interface ITier {\n\n\tpublic String getName();\n\tpublic void setName(String name);\n\tpublic Zoo getZoo();\n\tpublic void setZoo(Zoo zoo);\n\t\n\tpublic void fuettere(Personal personal); //implemented. Gibt aus, dass tier von personal gefüttert wird.\n\tpublic void lebtIn(/*String gehege, Gehege neuesGehege, */Gehege gehege); //implemented\n\t\t\n}",
"@Override\n public Tier getTier(String tierId) {\n return null;\n }",
"public void trenneVerbindung();",
"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 }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n\t\t\t\tpublic void getFile(int k) {\n\t\t\t\t\tsuper.getFile(k);\n\t\t\t\t\tgetfile(k);\n\t\t\t\t}",
"private void lesFil()\n\t{\n\t\tDATAFIL = datafil(false);\n\n\t\ttry ( ObjectInputStream innfil = new ObjectInputStream( new FileInputStream( DATAFIL ) ) )\n\t\t{\n\t\t\tbr = (Boligregister) innfil.readObject();\n\t\t\tvisMelding( \"Data er hentet fra fil.\" );\n\t\t}\n\t\tcatch(ClassNotFoundException cnfe)\n\t\t{\n\t\t\tvisMelding( \"<html>Feil:<br><br>\" + cnfe.getMessage() + \"<br><br>Oppretter tom datafil. Tar vare på gammel datafil.</html>\" );\n\t\t\ttomtRegister();\n\t\t\tDATAFIL = datafil(true);\n\t\t\tskrivTilFil(false);\n\t\t}\n\t\tcatch(FileNotFoundException fne)\n\t\t{\n\t\t\tvisMelding( \"Ingen datafil funnet. Oppretter tom datafil.\" );\n\t\t\ttomtRegister();\n\t\t\tskrivTilFil(false);\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t\tvisMelding( \"<html>Innlesingsfeil. Oppretter tom datafil. Tar vare på gammel datafil.</html>\" );\n\t\t\ttomtRegister();\n\t\t\tDATAFIL = datafil(true);\n\t\t\tskrivTilFil(false);\n\t\t}\n\t}",
"public T fjern(){\n Node temp = hode.neste;\n temp.neste.forrige = hode;\n hode.neste = temp.neste;\n elementer--;\n return temp.element;\n }",
"private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"@Override\n\tpublic void obavesti(KruznaFigura figura) {\n\t\t\n\t}",
"public Rechnung ladeRechnung() throws IOException, ClassNotFoundException {\n \n Rechnung rechnung = liesRechnung(ois);\n \n return rechnung;\n }",
"public interface IKundenSpeicher {\n public void neu(Kunde k) throws IOException;\n public Kunde laden(long kundenNr);\n public void aktualisieren(Kunde k);\n public void loeschen(long kundenNr);\n}",
"@Override\r\n\tpublic void tires() {\n\t\t\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}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic double fiyatlandir() {\n\t\treturn 7.95;\n\t}",
"public boolean fjern(T t);",
"@Override\n protected void iterChildren(TreeFunction f) {\n }",
"@Override\n protected void iterChildren(TreeFunction f) {\n }",
"@Override\n protected void iterChildren(TreeFunction f) {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public Farbe fuehrendesKamel();",
"public interface Filtrado extends ItemFiltro {\n\t/**\n\t * A exemplo da interface Serializable, mas nao necessariamente pelo menos\n\t * motivo, esta interface nao define nenhum metodo.\n\t */\n\t\n\t/**\n\t* Deseja-se ter um elo entre Filtrado e registro,\n\t* visto que o que se deseja eh armazenadar os\n\t* filtrados no output.txt para uso posterior.\n\t* @return Registro Registro \n\t* */\n\tpublic Registro getRegistro();\n\n}",
"@Override\n\tpublic void rotiereNachRechts() {\n\n\t}",
"private void agregarFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"public void testRecupererFichier()\n\t{\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t\tSystem.out.println(\"----Récupération du fichier ----\");\n\t\t\tftp.seConnecter(\"ftp.cict.fr\", \"domino\", \"Nothomb\");\n\t\t\tInputStream in = ftp.recupererFichier(\"testJUnitClassFTP.txt\");\n\t\t\tSystem.out.println(in.read());\n\t\t\tSystem.out.println(in.read());\n\t\t\tSystem.out.println(in.read());\n\t\t\tSystem.out.println(\"Fichier Récupéré\");\n\t\t\tassertTrue(true);\n\t\t\tSystem.out.println(\"---- OK ----\");\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t}\n\t\tcatch (ConnexionException e)\n\t\t{\n\t\t\tSystem.err.println(\"---- ECHEC ---- Probleme de connexion\");\n\t\t\tassertTrue(false);\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t}\n\t\tcatch (RecupererFichierException e)\n\t\t{\n\t\t\tSystem.err.println(\"---- ECHEC ---- Impossible de récupérer le fichier\");\n\t\t\tassertTrue(false);\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tSystem.err.println(\"---- ECHEC ---- Probleme IOException\");\n\t\t\tassertTrue(false);\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t}\n\t\tcatch (LoginFTPException e)\n\t\t{\n\t\t\tSystem.err.println(\"---- ECHEC ---- Probleme de login\");\n\t\t\tassertTrue(false);\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t}\n\t}",
"static void feladat7() {\n\t}",
"public JTable getTableFrise() {\r\n\t\treturn tableFrise;\r\n\t}",
"public Fahrzeug erzeuge() {\n\t\t\n\t\treturn new DieselAuto();\n\t\t\n\t}",
"private void findeNachbarSteine(Stein pStein, java.util.List<Stein> pSteinListe, Richtung pRichtung){\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){ //Schleife ueber alle Steine des Spielfelds\n Stein stein = spielfeld.getContent();\n switch(pRichtung){\n case oben:\n if (pStein.gibZeile()==stein.gibZeile()+1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case links:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()+1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case unten:\n if (pStein.gibZeile()==stein.gibZeile()-1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case rechts:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()-1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n }\n spielfeld.next();\n }\n }",
"@FXML\r\n\tvoid genererForme(ActionEvent event) {\r\n\t\t// TODO\r\n\t\t// Caller la m�thode qui nous fait une forme\r\n\t\t// Cr�er un data avec infos, formesfact avec data, data fait forme, tout\r\n\t\t// remonte\r\n\t\tDataFactory data = null;\r\n\t\tif (getListView().getSelectionModel().getSelectedItem().equals(\"Triangle\")) {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), Integer.parseInt(getTextF2data().getText()),\r\n\t\t\t\t\tgetColorPicker().getValue(), Integer.parseInt(getTextF3data().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF4data().getText()), getListView().getSelectionModel().getSelectedItem());\r\n\t\t} else {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), getColorPicker().getValue(),\r\n\t\t\t\t\tInteger.parseInt(getTextF3data().getText()), Integer.parseInt(getTextF4data().getText()),\r\n\t\t\t\t\tgetListView().getSelectionModel().getSelectedItem());\r\n\t\t}\r\n\t\tFormesFactory formesF = new FormesFactory(600, 600);\r\n\t\ttry {\r\n\t\t\tForme formedessin = formesF.getInstance(data);\r\n\t\t\tajouterForme(data);\r\n\t\t} catch (FormeException e) {\r\n\t\t\t// popper fen�tre forme invalide\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme non valide\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t} catch (ZoneDessinException e) {\r\n\t\t\t// popper fen�tre forme out of bounds\r\n\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme � l'ext�rieur des bordures\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\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 interface FenleiView {\n void getFenlei(List<Fenlei.DataBean> data);\n void onFaliure(Call call, IOException e);\n\n}",
"@Override\n\tpublic void trabajar() {\n\n\t}",
"private void inverseFastFourierTransfrom(Complex[] F, Img i) {\n\n\t\tComplex[] F_u_y = new Complex[i.width * i.height];\n\t\t//do one-direction FFT first for each X\n\t\tfor(int u=0; u < i.height ; u++){\n\t\t\t\tComplex[] F_u_v_oneRow = Arrays.copyOfRange(F, u * i.width, (u+1) * i.width);\n\t\t\t\tComplex[] F_u_y_oneRow = oneDInverseFFT(F_u_v_oneRow);\n\t\t\t //put the one row FFT into F(u,y)\n\t\t\t for(int j = 0; j < F_u_y_oneRow.length; j++)\n\t\t\t {\n\t\t\t\t// F_x_v_oneRow[j].div(F_x_v_oneRow.length);\n\t\t\t\t //F_u_y_oneRow[j].mul(Math.pow(-1,j));\n\t\t\t\t //System.out.print(F_x_v_oneRow[j].r + \" \");\n\t\t\t\t F_u_y[j*i.width+u] = F_u_y_oneRow[j];\n\t\t\t }\n\t\t}\n\n\t\tfor(int y =0; y< i.width; y++){\n\t\t//\tSystem.out.println(\"Computing second FFT at x = \"+y);\n\t\t\tComplex[] F_u_y_oneRow = Arrays.copyOfRange(F_u_y, y * i.height, (y+1) * i.height);\n\t\t\tComplex[] f_x_y_oneRow = oneDInverseFFT(F_u_y_oneRow);\n\t\t\tfor(int j = 0; j < f_x_y_oneRow.length; j++)\n\t\t\t{\n\t\t\t\t//f_x_y_oneRow[j].mul(Math.pow(-1,j+y));\n\t\t\t\tf_x_y_oneRow[j].div(i.height*i.width);\n\t\t\t\t//if(f_x_y_oneRow[j].r<0) f_x_y_oneRow[j].r =0 ;\n\t\t\t\t//System.out.print(f_x_y_oneRow[j].r + \" \");\n\t\t\t\t//i.img[i.img.length - (j*i.width+y+1)] = (byte)(f_x_y_oneRow[j].getNorm());\n\t\t\t\tdouble result = f_x_y_oneRow[j].getNorm();\n\t\t\t\tif(result>255)\n\t\t\t\t{\n\t\t\t\t\tresult = 255;\n\t\t\t\t}\n\t\t\t\ti.img[j*i.width+y] = (byte)result;\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\r\n\tprotected void doF9() {\n\t\t\r\n\t}",
"private void remplirFabricantData() {\n\t}",
"private void heilenTrankBenutzen() {\n LinkedList<Gegenstand> gegenstaende = spieler.getAlleGegenstaende();\n for (Gegenstand g : gegenstaende) {\n if (g.getName().equalsIgnoreCase(\"heiltrank\")) {\n spieler.heilen();\n gegenstaende.remove(g);\n System.out.print(\"Heiltrank wird benutzt\");\n makePause();\n System.out.println(\"Du hast noch \" + zaehltGegenstand(\"heiltrank\") + \" Heiltranke!\");\n return;\n }\n }\n System.out.println(\"Du hast gerade keinen Heiltrank\");\n }",
"private void frapper(IConsole per, IConsole frappe) throws RemoteException {\n\t\t//annonce de la frappe\n\t\tper.getElement().parler(\"Je frappe \" + frappe.getRefRMI(), per.getVueElement());\n\t\tSystem.out.println(per.getRefRMI() + \" frappe \" + frappe.getRefRMI());\n\n\t\t//perte de vie en conséquence\n\t\t//Si la défense de frappe plus grande que l'attaque de per alors il ne se passe rien sinon frappe perd en vie\n\t\t//la quantitié de force moins sa défence\n\t\tif(((Personnage)frappe.getElement()).getDefense()<((Personnage)per.getElement()).getForce()) {\n\t\t\tfrappe.perdreVie(((Personnage) per.getElement()).getForce() - ((Personnage) frappe.getElement()).getDefense());\n\t\t}\n\n\t\t//si le personnage meurt alors on l'enlève de tous les personnages de son équipe\n\t\tif (frappe.getElement().getVie() <= 0) {\n\t\t\tfrappe.enleverTousPersonnagesEquipe();\n\t\t\t//la détermination baisse pour chaque membre de l'équipe\n\t\t\tfor(Integer ref : ((Personnage) frappe.getElement()).getEquipe()){\n\t\t\t\tint baseDeter = ((Personnage)arene.consoleFromRef(ref).getElement()).getDetermination();\n\t\t\t\t//TODO -10% a mettre dans une constante?\n\t\t\t\t((Personnage)arene.consoleFromRef(ref).getElement()).setDetermination(baseDeter-baseDeter/10);\n\t\t\t}\n\t\t}\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 IFilialAux vendaToFilial();",
"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 }",
"static void feladat9() {\n\t}",
"@Override\n\tpublic void frear() throws FrenagemDesligadoException {\n\t\t\n\t}",
"static void feladat4() {\n\t}",
"public T fjern(int pos);",
"public static void feec() {\n\t}",
"public void sendeSpielfeld();",
"public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public IFatura vendaToFatura();",
"public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }",
"public T caseFolge(Folge object)\n {\n return null;\n }",
"@Override\n\tpublic void f1() {\n\n\t}",
"protected void regenerarVista() {\r\n if (this.partida != null) {\r\n\r\n Configuracion config = this.partida.getConfiguracion(); \r\n \r\n /* Tablero y Piezas en el Tablero */\r\n PanelTablero panel = this.fabricaDePanelesTablero.crearTablero(config);\r\n\r\n this.vista.setPanelTablero(panel);\r\n \r\n /* Piezas que no están en el Tablero */\r\n List<BaseEspacial> bases = this.partida.getBases();\r\n\r\n for (BaseEspacial base : bases) {\r\n\r\n this.vista.addInforme(base, INFORMES_BASE);\r\n \r\n /* Naves que están en la Base */\r\n for (Nave nave : base.getNaves()) {\r\n \r\n this.fabricaDePanelesTablero.crearPieza(nave, panel, config);\r\n \r\n this.vista.addInforme(nave, INFORMES_NAVE);\r\n }\r\n }\r\n \r\n // TODO refactorizar\r\n for (Pieza pieza : this.partida.getTablero()) {\r\n\r\n if (pieza instanceof Contenedor) {\r\n \r\n this.vista.addInforme(pieza, INFORMES_CONTENEDOR);\r\n }\r\n }\r\n \r\n } else {\r\n \r\n this.vista.setPanelTablero(this.presentacion);\r\n }\r\n \r\n this.vista.revalidate();\r\n }",
"public void testListerFichiers()\n\t{\n\t\t// Lister les fichiers du serveur marine.edu.ups-tlse.fr\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t\tSystem.out.println(\"---- Lister les fichiers de ftp.cict.fr ----\");\n\t\t\tftp.seConnecter(\"ftp.cict.fr\");\n\t\t\tVector listFic = new Vector(ftp.listerFichiers());\n\t\t\tSystem.out.println(\"Liste des fichiers du serveur : \");\n\t\t\tfor (int i = 0; i < listFic.size(); i++)\n\t\t\t\tSystem.out.println(listFic.get(i));\n\t\t\tSystem.out.println(\"Fin du listing\");\n\t\t\tassertTrue(true);\n\t\t\tSystem.out.println(\"---- OK ----\");\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t}\n\t\tcatch (ConnexionException e)\n\t\t{\n\t\t\tSystem.err.println(\"---- ECHEC ---- Probleme de connexion\");\n\t\t\tassertTrue(false);\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t}\n\t\tcatch (ListerFichiersException e1)\n\t\t{\n\t\t\tSystem.err.println(\"---- ECHEC ---- Probleme de listing de fichiers\");\n\t\t\tassertTrue(false);\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t}\n\t}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"public void donnerEffet(Paquet paquet) {\n\t\tfor(int i=0; i<paquet.getTaille(); i++) {\n\t\t\tswitch (paquet.getCarte(i).getHauteur()) {\n\t\t\tcase \"7\":\n\t \tpaquet.getCarte(i).setEffet(new PasserTour());\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t \tbreak;\n\t\t\tcase \"8\":\n\t\t\t\tpaquet.getCarte(i).setEffet(new ChangerCouleurStopAttaques());\n\t\t\t\tpaquet.getCarte(i).setJouabilite(new JouableSurContre());\n\t \tbreak;\n\t\t\tcase \"9\":\n\t \tpaquet.getCarte(i).setEffet(new FairePiocherSansRecours(1));\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t \tbreak;\n\t case \"10\":\n\t \tpaquet.getCarte(i).setEffet(new Rejouer());\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t \tbreak;\n\t case \"Valet\":\n\t \tpaquet.getCarte(i).setEffet(new ChangerSens());\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t \tbreak;\n\t case \"As\":\n\t \tpaquet.getCarte(i).setEffet(new FairePiocherContre(3));\n\t \tpaquet.getCarte(i).setJouabilite(new JouableSurContre());\n\t \tbreak;\n\t default :\n\t \tpaquet.getCarte(i).setEffet(null);\n\t \tpaquet.getCarte(i).setJouabilite(new Standard());\n\t }\n\t\t}\n\t}",
"void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }",
"public void spillTrekk(List<Terning> terninger) {\n Integer sum = 0;\n for (Terning terning : terninger) {\n terning.trill();\n sum += terning.getVerdi();\n }\n Rute plass = brikke.getPlass();\n plass = brett.finnRute(plass, sum);\n brikke.setPlass(plass);\n }",
"@Override\n public final Float getForfeit() {\n return _forfeit;\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void setTableFrise(JTable tableFrise) {\r\n\t\tthis.tableFrise = tableFrise;\r\n\t}",
"public void testFilaInferiorLlena( )\n {\n setupEscenario1( );\n triqui.limpiarTablero( );\n triqui.marcarCasilla( 7, marcaJugador1 );\n triqui.marcarCasilla( 8, marcaJugador1 );\n triqui.marcarCasilla( 9, marcaJugador1 );\n assertTrue( triqui.filaInferiorLlena( marcaJugador1 ) );\n assertTrue( triqui.ganoJuego( marcaJugador1 ) );\n }",
"static void feladat6() {\n\t}",
"public FI_() {\n }",
"public void setzeSchiffe() {\n\t\tthis.setzeSchiffe = true;\n\t}",
"@Override\n\tpublic Pizza crearPizza(FactoriaIngredientes fi) {\n\t\treturn null;\n\t}",
"private Fdtsucker() {\n\t\tsuper(\"fdtsucker\");\n\t}",
"public Formateur getFormateur(int indice) {\r\n\t\t\treturn formateurs.get(indice);\r\n\t}",
"@Override\n protected void adicionar(Funcionario funcionario) {\n\n }",
"@Override\n\tpublic void f2() {\n\t\t\n\t}",
"@Override\r\n\tpublic void filtrar(ActionEvent actionEvent) {\n\t\t\r\n\t}",
"private void setupSpalteFaz() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteFaz.setCellValueFactory(new PropertyValueFactory<>(\"faz\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteFaz.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteFaz.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setFaz(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}"
]
| [
"0.60610193",
"0.59465826",
"0.57805246",
"0.5558706",
"0.54374564",
"0.53749704",
"0.5343828",
"0.5335048",
"0.53170896",
"0.5296826",
"0.5286593",
"0.52792984",
"0.5266909",
"0.52408546",
"0.52169234",
"0.5177395",
"0.5134761",
"0.51066965",
"0.50904495",
"0.5086032",
"0.5071261",
"0.5065254",
"0.5058453",
"0.504106",
"0.5032782",
"0.50254047",
"0.4998741",
"0.49806467",
"0.49636063",
"0.49438027",
"0.4930711",
"0.49192655",
"0.48989776",
"0.48972312",
"0.48950142",
"0.4886322",
"0.4884021",
"0.4883769",
"0.48825994",
"0.4876236",
"0.48706582",
"0.4863162",
"0.48559624",
"0.48448834",
"0.48448834",
"0.48448834",
"0.48263222",
"0.4824786",
"0.48244083",
"0.48243344",
"0.48105872",
"0.48065892",
"0.48021027",
"0.47964114",
"0.47847542",
"0.47833824",
"0.4782368",
"0.47816578",
"0.47715402",
"0.47696877",
"0.47591743",
"0.4757635",
"0.47514012",
"0.4741708",
"0.47405124",
"0.47289076",
"0.4724778",
"0.47246486",
"0.47246465",
"0.4712304",
"0.47051328",
"0.47045013",
"0.47023767",
"0.47023082",
"0.4697044",
"0.46954516",
"0.46921247",
"0.46881709",
"0.46787745",
"0.46771112",
"0.46600884",
"0.46541107",
"0.46450403",
"0.46306562",
"0.46281713",
"0.4626452",
"0.46258277",
"0.4623867",
"0.46216908",
"0.46206445",
"0.46181074",
"0.4617306",
"0.4610037",
"0.46070293",
"0.46033955",
"0.45969173",
"0.45952573",
"0.45887387",
"0.45851785",
"0.4584748",
"0.4582928"
]
| 0.0 | -1 |
Bewegt ein Tier auf ein bestimmtes Feld. | public void moveAnimal(AnimalSol animal, String from, String to) {
removeAnimal(animal);
placeAnimal(animal, to);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 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 FilialeVerkaufenEntscheidung(Unternehmenskette kette, Filiale filiale) {\r\n\t\tsuper(kette);\r\n\t\tthis.filiale = filiale;\r\n\t\tnew MitarbeiterEntlassenEntscheidung(kette, filiale, filiale.holeMitarbeiter());\r\n\t}",
"@Override\n\tpublic void compareFichierTo(Fichier f) {\n\t\t\n\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }",
"void berechneFlaeche() {\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}",
"@Override\r\n\tprotected void doF7() {\n\t\t\r\n\t}",
"public void trenneVerbindung();",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void rotiereNachRechts() {\n\n\t}",
"public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private void heilenTrankBenutzen() {\n LinkedList<Gegenstand> gegenstaende = spieler.getAlleGegenstaende();\n for (Gegenstand g : gegenstaende) {\n if (g.getName().equalsIgnoreCase(\"heiltrank\")) {\n spieler.heilen();\n gegenstaende.remove(g);\n System.out.print(\"Heiltrank wird benutzt\");\n makePause();\n System.out.println(\"Du hast noch \" + zaehltGegenstand(\"heiltrank\") + \" Heiltranke!\");\n return;\n }\n }\n System.out.println(\"Du hast gerade keinen Heiltrank\");\n }",
"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}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void besucherZuordnen(Spieler besucher) {\n\t\tboolean hinsetzen = false;\n\t\twhile (!hinsetzen) {\n\t\t\tfor (Tisch it : this.tische) {\n\t\t\t\tif (it.AnzahlTeilnehmer() < 8) {\n\t\t\t\t\tit.hinsetzen(besucher);\n\t\t\t\t\tbesucher.setTischNr(this.tische.indexOf(it));\n\t\t\t\t\tbesucher.setCasino(this);\n\t\t\t\t\tit.getDealer().setCasino(this);\n\t\t\t\t\thinsetzen = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!hinsetzen) {\n\t\t\t\ttischAufstellen(new Tisch());\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void visitTlfold(Tlfold p) {\n\n\t}",
"static void feladat7() {\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 Exterior() {\n\t\t\r\n\t}",
"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 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 }",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\r\n\tprotected void doF2() {\n\t\t\r\n\t}",
"public T fjern(){\n Node temp = hode.neste;\n temp.neste.forrige = hode;\n hode.neste = temp.neste;\n elementer--;\n return temp.element;\n }",
"static void feladat9() {\n\t}",
"@Override\n\tpublic double fiyatlandir() {\n\t\treturn 7.95;\n\t}",
"@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}",
"public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}",
"public void setzeSchiffe() {\n\t\tthis.setzeSchiffe = true;\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n public void aktion(Hauptobjekt h) {\n System.out.println(\"Hin\");\n h.setAktuellerZustand(new ZweiterZustand());\n }",
"public interface ITier {\n\n\tpublic String getName();\n\tpublic void setName(String name);\n\tpublic Zoo getZoo();\n\tpublic void setZoo(Zoo zoo);\n\t\n\tpublic void fuettere(Personal personal); //implemented. Gibt aus, dass tier von personal gefüttert wird.\n\tpublic void lebtIn(/*String gehege, Gehege neuesGehege, */Gehege gehege); //implemented\n\t\t\n}",
"public T fjern();",
"public interface IKundenSpeicher {\n public void neu(Kunde k) throws IOException;\n public Kunde laden(long kundenNr);\n public void aktualisieren(Kunde k);\n public void loeschen(long kundenNr);\n}",
"public void spillTrekk(List<Terning> terninger) {\n Integer sum = 0;\n for (Terning terning : terninger) {\n terning.trill();\n sum += terning.getVerdi();\n }\n Rute plass = brikke.getPlass();\n plass = brett.finnRute(plass, sum);\n brikke.setPlass(plass);\n }",
"public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}",
"private void findeNachbarSteine(Stein pStein, java.util.List<Stein> pSteinListe, Richtung pRichtung){\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){ //Schleife ueber alle Steine des Spielfelds\n Stein stein = spielfeld.getContent();\n switch(pRichtung){\n case oben:\n if (pStein.gibZeile()==stein.gibZeile()+1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case links:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()+1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case unten:\n if (pStein.gibZeile()==stein.gibZeile()-1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case rechts:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()-1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n }\n spielfeld.next();\n }\n }",
"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}",
"public void zeichnen_kavalier() {\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /**\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /**Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2] || (A[2]==B[2] && C[2]==D[2])) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n /** Transformiert x,y,z Koordinaten zu x,y Koordinaten */\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax = (A[0] + (A[2] / 2));\n ay = (A[1] + (A[2] / 2));\n bx = (B[0] + (B[2] / 2));\n by = (B[1] + (B[2] / 2));\n cx = (C[0] + (C[2] / 2));\n cy = (C[1] + (C[2] / 2));\n dx = (D[0] + (D[2] / 2));\n dy = (D[1] + (D[2] / 2));\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }",
"public void sendeSpielfeld();",
"@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"public void afficherFile() {\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Voici la File (tete a gauche, queue a droite): \");\r\n\t\tSystem.out.println(\"----------------------------------------------\");\r\n\r\n\t\tif (this.estVide() == true) {\r\n\r\n\t\t\tSystem.out.println();\r\n\t\t} else {\r\n\r\n\t\t\tCellule<T> ref = this.tete;\r\n\r\n\t\t\tfor (int i = 1; i <= this.getLongueurFile(); i++) {\r\n\r\n\t\t\t\tSystem.out.print(ref.getValeur() + \" \");\r\n\r\n\t\t\t\tif (ref.getSuivant() != null) {\r\n\r\n\t\t\t\t\tref = ref.getSuivant();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t}",
"public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}",
"public void modifierFiche( Fiche fiche) ;",
"Debut getDebut();",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"static void feladat6() {\n\t}",
"protected void aktualisierenFirst() {\r\n\t\taktualisieren();\r\n\t\tfarbeSetzen(\"Weiss\");\r\n\t}",
"static void feladat10() {\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 }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"static void feladat4() {\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 }",
"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 void papierkorbAnzeigen() {\n\t\tfor (Datei a:papierkorb) {\n\t\t\ta.anzeigeDateiDetail();\n\t\t}\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"@Override\r\n\tprotected void doF9() {\n\t\t\r\n\t}",
"@Override\n public Tier getTier(String tierId) {\n return null;\n }",
"public static void feec() {\n\t}",
"@Override\n\tpublic void obavesti(KruznaFigura figura) {\n\t\t\n\t}",
"@Override\n\tpublic void transmetDonnee() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"protected final void reduireTempsRestant() {\n arme.reduireTempsRestant();\n }",
"private void auswahlAnzeigen() throws Exception {\n System.out.println(\"Bitte Zahl und dann RETURN eingeben:\");\n System.out.println(\"<1> Freund anlegen\");\n System.out.println(\"<2> Freund suchen\");\n System.out.println(\"<3> Freund veraendern\");\n System.out.println(\"<4> Freund loeschen\");\n System.out.println(\"<5> Anzahl gespeicherter Freunde angeben\");\n System.out.println(\"<6> Telefonliste ausgeben\");\n System.out.println(\"<7> Beenden\");\n auswahlAuswerten();\n }",
"public Vector listerFichiers() throws ListerFichiersException\n\t{\n\t\treturn listerFichiers(\"\");\n\t}",
"static void feladat8() {\n\t}",
"public void auszahlen(int i) {\n kontostand = kontostand + i;\n Bank.auszahlen(i);\n }",
"private void remplirFabricantData() {\n\t}",
"public Rechnung ladeRechnung() throws IOException, ClassNotFoundException {\n \n Rechnung rechnung = liesRechnung(ois);\n \n return rechnung;\n }",
"@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}",
"@Override\r\n\tpublic void benachrichtigeBeobachter() {\n\t\tfor (int i = 0; i < beobachter.size(); i++) {\r\n\t\t\tBeobachter b = (Beobachter)beobachter.get(i);\r\n\t\t\tb.aktualisieren(temperatur, feuchtigkeit, luftdruck);\r\n\t\t}\r\n\t}",
"@Override\r\n\t\tpublic Package hacerRuido() {\n\t\treturn super.hacerRuido();\r\n\t\t}",
"@Override\n\t\t\t\tpublic void getFile(int k) {\n\t\t\t\t\tsuper.getFile(k);\n\t\t\t\t\tgetfile(k);\n\t\t\t\t}",
"public static void afficherFacturier() {\r\n Facture.afficher();\r\n }",
"@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 abstract void aktualisiereZeitpunk(int momentanZeitpunkt);",
"private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"public void updateFaith(int i){\n this.gameboardPanel.faithPathPane.updateIndicator(i);\n }",
"public void schreibeFreizeitbaederInTxtDatei()\r\n\t\t throws IOException{\r\n\t\t\t WriterCreator writerCreator = new ConcreteTxtWriterCreator();\r\n\t\t\t WriterProduct writerProduct = writerCreator.factoryMethod();\r\n\t\t\t //Praktikum 4\r\n \t\t\tthis.getFreizeitbaeder().forEach((fzb) -> {\r\n \t\t\t\ttry {\r\n \t\t\t\t\twriterProduct.fuegeInDateiHinzu(fzb);\r\n \t\t\t\t} catch (IOException e) {\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t});\r\n \t\t\twriterProduct.schliesseDatei();\t\t \r\n }",
"public boolean fjern(T t);",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public void leerPlanesDietas();",
"@SuppressWarnings(\"unused\")\n private RundenZielSpeicher() {\n Log.d(TAG, \"RundenzielSpeicher unused.\");\n }",
"public void ferdig(){\n antallTelegrafister--;\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"static void feladat5() {\n\t}",
"protected void zetPassagierInTrein(Reiziger passagier, Trein trein) {\r\n trein.setPassagier(passagier);\r\n }",
"private void poetries() {\n\n\t}",
"public void test4(){\r\n\t\tZug zug0 = st.zugErstellen(0, 3, \"Zug 0\");\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(21).setStellung(true);\r\n\t\td.getWeiche(17).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(18).setStellung(true);\r\n\t\td.getWeiche(39).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\tst.fahren();\r\n\t}",
"@Override\r\n\tpublic void fly() {\n\t\t\r\n\t}"
]
| [
"0.5863117",
"0.5857763",
"0.5671542",
"0.5621972",
"0.55785257",
"0.5510351",
"0.5488653",
"0.54847825",
"0.5461419",
"0.5453531",
"0.54521966",
"0.5420453",
"0.54202235",
"0.53817004",
"0.5380196",
"0.5356422",
"0.5318279",
"0.53002506",
"0.5295019",
"0.52786785",
"0.5276896",
"0.5259484",
"0.52522886",
"0.52354187",
"0.523516",
"0.5234794",
"0.52328086",
"0.522866",
"0.52240777",
"0.52102697",
"0.51999325",
"0.518399",
"0.5176339",
"0.517291",
"0.51725817",
"0.5147834",
"0.51387846",
"0.5128023",
"0.5123817",
"0.51225126",
"0.51189685",
"0.5117371",
"0.50909877",
"0.5083096",
"0.50811636",
"0.5067907",
"0.50676",
"0.5067502",
"0.50651354",
"0.50484985",
"0.50449485",
"0.5033809",
"0.5033791",
"0.5027506",
"0.50192004",
"0.50162405",
"0.500383",
"0.5000648",
"0.4999132",
"0.49977323",
"0.49936956",
"0.4990107",
"0.4979617",
"0.4977499",
"0.49742284",
"0.49602872",
"0.4958503",
"0.49530098",
"0.4948039",
"0.49459216",
"0.49411896",
"0.4938204",
"0.49349347",
"0.49342644",
"0.4928796",
"0.49287364",
"0.49207583",
"0.49133283",
"0.4908005",
"0.4902506",
"0.48982787",
"0.48952058",
"0.4894318",
"0.48877862",
"0.48779467",
"0.48779467",
"0.4877067",
"0.48758334",
"0.48724225",
"0.48690188",
"0.48644513",
"0.48637295",
"0.48618725",
"0.4858574",
"0.48583585",
"0.4855934",
"0.482294",
"0.48169437",
"0.4815727",
"0.48121306",
"0.48024648"
]
| 0.0 | -1 |
Zufallszahl zwischen low und high | private static int myRandom(int low, int high) {
return (int) (Math.random() * (high + 1 - low) + low);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getLow() {return low;}",
"public double getHigh() { return high;}",
"public double getLow() {\n return low;\n }",
"double getUpperThreshold();",
"public int getLowerBound ();",
"@Override\r\n\tprotected Integer deriveLower() {\r\n\t return 0;\r\n\t}",
"@Override\r\n\tprotected Integer deriveUpper() {\r\n\t return -1;\r\n\t}",
"public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }",
"public int getLow() {\n\t\treturn low;\n\t}",
"public final int getLow() {\n\treturn(this.low);\n }",
"protected abstract D getUpper(R range);",
"public final int getHigh() {\n\treturn(this.high);\n }",
"@Test\r\n public void lowerHigherSimple() throws Exception {\r\n assertEquals(2, (int) sInt.lower(3));\r\n assertEquals(4, (int) sInt.higher(3));\r\n assertEquals(3, (int) sInt.ceiling(3));\r\n assertEquals(3, (int) sInt.floor(3));\r\n }",
"public void setLow(double value){low = value;}",
"@Override\n\tprotected double getLowerBound() {\n\t\treturn 0;\n\t}",
"public double getHigh() {\n return high;\n }",
"public int getLow() {\n\t\t\treturn low;\n\t\t}",
"public int getLowerBound() {\r\n return lowerBound;\r\n }",
"@Test\r\n\tvoid testDominoHighLowSetTwoInts()\r\n\t{\r\n\t\tSystem.out.println(\"NOW TESTING TWO INTS PASSED TO HIGHLOWSET IMPL\");\r\n\t\tint highPip = 5;\r\n\t\tint lowPip = 3;\r\n\t\tDomino d1 = new DominoHighLowSetImpl_Khan(highPip,lowPip);\r\n\t\tint assertHigh = d1.getHighPipCount();\r\n\t\tint assertLow = d1.getLowPipCount();\r\n\t\tassertEquals(assertHigh, 5);\r\n\t\tassertEquals(assertLow, 3);\r\n\t\tSystem.out.println(\"TEST SUCCESFULLY COMPLETED\");\r\n\t}",
"public static int getMid(int low, int high) \r\n\t{\r\n\t\treturn ((low + high + 1) / 2);\r\n\t}",
"private void processLowValue(Bid bid) {\n\t}",
"public int getHigh()\t\n\t{\t//start of getHigh mehtod\n\t\treturn HIGH_NUM;\n\t}",
"@Override\n\tprotected void setLowerBound() {\n\t\t\n\t}",
"public String getLow() {\n return this.low.toString();\n }",
"public float getLimit_lin_x_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 36);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t}\n\t}",
"float getLt();",
"public void setHigh(double value){high = value;}",
"public static void main(String[] args)\r\n\t\t\t{\n\t\t\t\tprintLowerAndUpperBound();\r\n\t\t\t}",
"int range() {\n\t\treturn mpg * fuelcap;\n\t}",
"RangeCoveredRegister(int low, int high, int step) {\n mMode = MODE.LINEAR;\n mStep = step;\n mLow = low;\n mHigh = high;\n init();\n }",
"public int getHigh() {\n\t\treturn high;\n\t}",
"protected abstract D getLower(R range);",
"double getLowerThreshold();",
"int getLower();",
"public void setLow(int low) {\n\t\tthis.low = low;\n\t}",
"public float getLimit_ang_x_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 60);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 52);\n\t\t}\n\t}",
"@Override\n\tprotected double getUpperBound() {\n\t\treturn 0;\n\t}",
"private int unmapToInt(double x, double max, double min, int n) {\n\t\treturn (int) ( (x - max) * ( Math.pow(2, n) - 1 ) / (max - min) );\n\t}",
"public double getLowThreshold(){\n return lowThreshold;\n }",
"@Override\n public int between(int min, int max) {\n return super.between(min, max);\n }",
"public static int encodeAsInt(short high, short low) {\n\n // Store the first short value in the highest 16 bits of the int\n int key = high | 0x00000000;\n key <<= 16;\n\n // Store the second short value in the lowest 16 bits of the int\n int lowInt = low & 0x0000FFFF;\n key |= lowInt;\n\n return key;\n\n }",
"public int gethunger(){\r\n return hunger;\r\n}",
"protected float concat(byte lowByte, byte highByte){\n int value = ((highByte << 8) + lowByte) & 0xFFFF;\n if(value > pow(2,15)){\n value = (int) (value - pow(2,16));\n }\n float ret;\n ret = (float) (value/(pow (2.0,15)));\n ret = (float) (ret*8.0);\n return ret;\n }",
"public float getLimit_ang_y_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 64);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 56);\n\t\t}\n\t}",
"private int getU(int[] inputs, int[] original) {\n\t\tint u = 0; \n\t\tint u2 = 0;\n\t\tfor(int i = 0 ; i < inputs.length ; i++) {\n\t\t\tu += inputs[i];\n\t\t\tu2 += original[i];\n\t\t}\n\t\treturn u <= u2 ? u : u2;\n\t}",
"public int getXLeftUpper() {\n return xLeftUpper;\n }",
"public int upperBound() {\n\t\tif(step > 0)\n\t\t\treturn last;\n\t\telse\n\t\t\treturn first;\n\t}",
"public int GetMinVal();",
"public int getHigh() {\n\t\t\treturn high;\n\t\t}",
"private static int mapLuxToBrightness(float lux,\n int[] fromLux, int[] toBrightness) {\n // TODO implement interpolation and possibly range expansion\n int level = 0;\n final int count = fromLux.length;\n while (level < count && lux >= fromLux[level]) {\n level += 1;\n }\n return toBrightness[level];\n }",
"public static double outside(double[] values, double low, double high) {\n return -1.0; // FIXME Q1\n }",
"int range(){\n return fuelcap*mpg;\n }",
"private int randomNumber(int high, int low){\n \t\t Random r = new Random();\n \t\t return (r.nextInt(high-low) + low);\n \t }",
"int getRange();",
"@Override\n\tpublic AbstractValue greatestLowerBound(AbstractValue d) {\n\t\tif ( !(d instanceof Interval) )\n\t\t\tthrow new IllegalArgumentException(\"v should be of type Interval\");\n\t\tInterval i = (Interval) d;\n\n\t\tif (i.isBottom())\n\t\t\treturn i;\n\t\telse if (i.equals(top))\n\t\t\treturn this;\n\n\t\tString newLow = \"-Inf\", newHigh = \"+Inf\";\n\n\t\t//Calcolare limite inferiore\n\n\t\tif ( this.getLow().equals(\"-Inf\")){\n\t\t\tif( !i.getLow().equals(\"-Inf\"))\n\t\t\t\tif(Integer.parseInt(this.getHigh()) > Integer.parseInt(i.getLow()))\n\t\t\t\t\tnewLow = String.valueOf(Integer.max(Integer.parseInt(this.getLow()), Integer.parseInt(i.getLow())));\n\t\t\t\telse\n\t\t\t\t\treturn BottomAV.getInstance();\n\t\t}else if ( i.getLow().equals(\"-Inf\")){\n\t\t\tif( !this.getLow().equals(\"-Inf\"))\n\t\t\t\tif(Integer.parseInt(i.getHigh()) > Integer.parseInt(this.getLow()))\n\t\t\t\t\tnewLow = String.valueOf(Integer.max(Integer.parseInt(i.getLow()), Integer.parseInt(this.getLow())));\n\t\t\t\telse\n\t\t\t\t\treturn BottomAV.getInstance();\n\t\t}else if(!this.getLow().equals(\"-Inf\") && !i.getLow().equals(\"-Inf\")){\n\t\t\tnewLow = String.valueOf(Integer.max(Integer.parseInt(this.getLow()), Integer.parseInt(i.getLow())));\n\t\t}\n\n\t\t// Calcolare limite superiore\n\n\t\tif ( this.getHigh().equals(\"+Inf\")) {\n\t\t\tif (!i.getHigh().equals(\"+Inf\"))\n\t\t\t\tnewHigh = i.getHigh();\n\t\t}else if ( i.getHigh().equals(\"+Inf\")) {\n\t\t\tif (!this.getHigh().equals(\"+Inf\"))\n\t\t\t\tnewHigh = this.getHigh();\n\t\t}else if(!this.getHigh().equals(\"+Inf\") && !i.getHigh().equals(\"+Inf\")){\n\t\t\tnewHigh = String.valueOf(Integer.min(Integer.parseInt(this.getHigh()), Integer.parseInt(i.getHigh())));\n\t\t}\n\n\t\tInterval res = new Interval(newLow, newHigh);\n\n\t\t// Checks whether low > high\n\t\tif ((!newLow.equals(\"-Inf\") && (!newHigh.equals(\"+Inf\")) && Integer.parseInt(newLow) > Integer.parseInt(newHigh)))\n\t\t\treturn BottomAV.getInstance();\n\n\t\treturn amItop() ? top : res;\n\t}",
"protected void mapValueToWithinBounds() {\n if (getAllele() != null) {\n \tFloat d_value = ( (Float) getAllele());\n if (d_value.isInfinite()) {\n // Here we have to break to avoid a stack overflow.\n // ------------------------------------------------\n return;\n }\n // If the value exceeds either the upper or lower bounds, then\n // map the value to within the legal range. To do this, we basically\n // calculate the distance between the value and the float min,\n // then multiply it with a random number and then care that the lower\n // boundary is added.\n // ------------------------------------------------------------------\n if (d_value.floatValue() > m_upperBound ||\n d_value.floatValue() < m_lowerBound) {\n RandomGenerator rn;\n if (getConfiguration() != null) {\n rn = getConfiguration().getRandomGenerator();\n }\n else {\n rn = new StockRandomGenerator();\n }\n setAllele(new Float((rn.nextFloat()\n * ((m_upperBound - m_lowerBound))) + m_lowerBound));\n }\n }\n }",
"public int getUpperValue() {\n return getValue() + getExtent();\n }",
"public int resta(){\r\n return x-y;\r\n }",
"public float getUpperBound()\n {\n return fUpperBound;\n }",
"boolean incLowValue() { return true; }",
"public double toNumber() {\n\t\treturn high * 4.294967296E9 + (this.low & 0x00000000FFFFFFFFL);\n\t}",
"public float getLimit_ang_z_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 76);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 68);\n\t\t}\n\t}",
"public int getHighUnits()\n {\n return m_cMaxUnits;\n }",
"boolean incHighValue() { return true; }",
"public double getLength() {\n return hi - lo;\n }",
"public String getHigh() {\n return this.high.toString();\n }",
"public float getLimit_lin_z_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 52);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t}\n\t}",
"@Override\n\tprotected void setUpperBound() {\n\t\t\n\t}",
"public Double lookBack(int in);",
"public java.math.BigDecimal getLow() {\n return low;\n }",
"int getLumOff(){\n return getPercentageValue(\"lumOff\");\n }",
"public abstract Self byteRange(byte min, byte max);",
"public float getLimit_ang_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 68);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 60);\n\t\t}\n\t}",
"protected void tickHue(){\r\n if(rUP){\r\n R++;\r\n if(R>=maxR) rUP = false;\r\n }else{\r\n R--;\r\n if(R<=minR) rUP = true;\r\n }\r\n if(gUP){\r\n G++;\r\n if(G>=maxG) gUP = false;\r\n }else{\r\n G--;\r\n if(G<=minG) gUP = true;\r\n }\r\n if(bUP){\r\n B++;\r\n if(B>=maxB) bUP = false;\r\n }else{\r\n B--;\r\n if(B<=minB) bUP = true;\r\n }\r\n \r\n }",
"private int getmax(int red,int green,int blue)\r\n\t{\r\n\t\tif (red>green && red>blue)\r\n\t\t\treturn red;\r\n\t\telse\r\n\t\t\tif (green>blue)\r\n\t\t\t\treturn green;\r\n\t\t\telse\r\n\t\t\t\treturn blue;\r\n\t}",
"public IntervalNode(int low, int high, Object proxy) {\n\t// if the user gave high < low, reverse it\n\tif (high < low) {\n\t int lowtemp = low;\n\t low = high;\n\t high = lowtemp;\n\t}\n\n\t// set the internal values\n\tthis.low = low;\n\tthis.high = high;\n\tthis.max = high;\n\tthis.min = low;\n\n\t// node is \"free\" floating\n\tthis.right = nullIntervalNode;\n\tthis.left = nullIntervalNode;\n\tthis.p = nullIntervalNode;\n\n\tthis.proxyObj = proxy;\n\n\t//System.out.println(low + \" \" + high + \" \" + proxy);\n }",
"public static void main(String[] args) {\n\t\t\n\t\tInteger i =Integer.MAX_VALUE;\n\t\tBoolean b = true;\n\t\t\n\t\t\n\t\t\n\t\t//Find the min and max value of byte data type \n\t\t\n\t\tByte byteMin =Byte.MIN_VALUE;\n\t\tSystem.out.println(byteMin);//-128\n\t\t\n\t\tByte byteMax = Byte.MAX_VALUE;\n\t\tSystem.out.println(byteMax);\n\t\t\n\t\tShort shortMin = Short.MIN_VALUE;\n\t\tSystem.out.println(shortMin);\n\t\t\n\t\tShort shortMax = Short.MAX_VALUE;\n\t\tSystem.out.println(shortMax);\n\t\t\n\t\t//homework:\n\t\t//Find all min and max values of primitive data types\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t}",
"@Override\n public double between(double min, double max) {\n return super.between(min, max);\n }",
"private void processSuperHighValue(Bid bid) {\n\t}",
"int getMindestvertragslaufzeit();",
"public static void main(String[] args) {\n\t\t\r\n\t\tint value = 8;\r\n\t\tint lowIndex = 0;\r\n\t\tint highIndex = arr.length - 1;\r\n\t\t\r\n\t\twhile(lowIndex <= highIndex) {\r\n\t\t\tint middleIndex = lowIndex + (highIndex-lowIndex)/2;\r\n\t\t\t\r\n\t\t\tif(arr[middleIndex] > value) {\r\n\t\t\t\thighIndex = middleIndex - 1;\r\n\t\t\t} else if(arr[middleIndex] < value) {\r\n\t\t\t\tlowIndex = middleIndex + 1;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(middleIndex);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"int getHeatCode(int x, int y);",
"public int randomInRange(int low, int high)\n {\n return ((int) (Math.random() * (high - low + 1)) + low);\n }",
"public int getYLeftUpper() {\n return yLeftUpper;\n }",
"public int getUpperThreshold() {\r\n\t\tint upperThreshold;\r\n\t\tupperThreshold=this.upperThreshold;\r\n\t\treturn upperThreshold;\r\n\t}",
"private static float calcNextValue(float lowerLimit, float upperLimit) {\r\n tempHumValue = lowerLimit + r.nextFloat() * (upperLimit - lowerLimit);\r\n humValue = (float) (Math.round(tempHumValue * 100) / 100.0);\r\n\r\n return humValue;\r\n\r\n }",
"public double lower()\n\t{\n\t\treturn _dblLower;\n\t}",
"public int tget() {\n return denom_hi * 256 + denom_lo;\n }",
"public int getLowUnits()\n {\n return m_cPruneUnits;\n }",
"public float getLimit_ang_x_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 56);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t}\n\t}",
"public int upperBoundary(){\r\n\t\treturn yStart - Constants.FLOOR_HEIGHT;\r\n\t}",
"public static void merge(Value[] arr, int low, int high) {\r\n int mid = low + (high - low) / 2; // the mid-point\r\n // Merge the two \"halves\" into a new array merged\r\n Value[] merged = new Value[high - low];\r\n int low_i = low;\r\n int upp_i = mid;\r\n for (int mer_i = 0; mer_i < merged.length; mer_i++) {\r\n if (low_i == mid) {\r\n // We already put all elements from the lower half in their\r\n // right place, so just put all the elements from the upper half\r\n // in their place, and be done.\r\n while (upp_i < high) {\r\n merged[mer_i] = arr[upp_i];\r\n upp_i++;\r\n mer_i++;\r\n }\r\n break;\r\n } else if (upp_i == high) {\r\n // We already put all elements from the upper half in their\r\n // right place, so just put all the elements from the lower half\r\n // in their place, and be done.\r\n while (low_i < mid) {\r\n merged[mer_i] = arr[low_i];\r\n low_i++;\r\n mer_i++;\r\n }\r\n double x = 0.5;\r\n for (int i = 0; i < merged.length; i++) {\r\n merged[i].draw(x, 0);\r\n }\r\n break;\r\n } else if (arr[low_i].getValue() < arr[upp_i].getValue()) { // when comparing objects, use arr[low_i].compareTo(arr[upp_i) < 0\r\n merged[mer_i] = arr[low_i];\r\n low_i++;\r\n } else {\r\n merged[mer_i] = arr[upp_i];\r\n upp_i++;\r\n }\r\n }\r\n // Copy the elements of merged back into arr in the right place.\r\n for (int i = 0; i < merged.length; i++)\r\n arr[low + i] = merged[i];\r\n }",
"public float getLimit_ang_z_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 72);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 64);\n\t\t}\n\t}",
"public int getHoras() {\r\n\t\treturn super.getHoras()*2;\r\n\t}",
"void calculateRange() {\n //TODO: See Rules\n }",
"public int getByte(float f) {\n if (_dirty)\n update();\n if (f<_flower) f = _flower;\n if (f>_fupper) f = _fupper;\n return (int)((f-_flower)*_fscale);\n }",
"private int getBinI(Location l)\r\n {\r\n return (int)((l.getX()-bl.getX())/di);\r\n }",
"public void setLow(double value) {\n this.low = value;\n }",
"@Override\n public int betweenWeighted(int min, int max, int samples) {\n return super.betweenWeighted(min, max, samples);\n }",
"List<Integer> downSampleLevels();"
]
| [
"0.6604263",
"0.6348055",
"0.60752237",
"0.60015476",
"0.59942436",
"0.5976795",
"0.58894175",
"0.5880801",
"0.58589536",
"0.58544886",
"0.58397055",
"0.58299",
"0.5811736",
"0.58023727",
"0.576835",
"0.5758299",
"0.5728998",
"0.57231325",
"0.5718105",
"0.5703914",
"0.569982",
"0.56882",
"0.5664033",
"0.5619545",
"0.5601287",
"0.5599713",
"0.5598252",
"0.5595417",
"0.5576847",
"0.5571495",
"0.55637944",
"0.556139",
"0.55597",
"0.5556477",
"0.55501187",
"0.55413485",
"0.5518169",
"0.55089754",
"0.55024475",
"0.5489198",
"0.548529",
"0.5482771",
"0.54779273",
"0.54565156",
"0.5456097",
"0.5454191",
"0.5448048",
"0.5443745",
"0.5443085",
"0.54427564",
"0.54422134",
"0.5439714",
"0.5433744",
"0.5431047",
"0.5424146",
"0.5421079",
"0.54129136",
"0.54117465",
"0.540209",
"0.5399267",
"0.53988135",
"0.53911406",
"0.5389776",
"0.5381597",
"0.53792214",
"0.5375174",
"0.53711885",
"0.53698176",
"0.53675073",
"0.536305",
"0.5362978",
"0.5357581",
"0.53321624",
"0.5328759",
"0.5322275",
"0.53219193",
"0.5321431",
"0.53180754",
"0.5313976",
"0.53092444",
"0.53067565",
"0.53020436",
"0.5301091",
"0.5299657",
"0.5298027",
"0.52957416",
"0.5284913",
"0.52763045",
"0.52755284",
"0.5274744",
"0.52722824",
"0.5270293",
"0.5267868",
"0.5261996",
"0.5261894",
"0.5259208",
"0.52580243",
"0.5254048",
"0.52504843",
"0.5249054"
]
| 0.58560735 | 9 |
time = random.nextInt(4) + 1; | @Override
public void run() {
int orders = random.nextInt(5) + 2;
hCrowd.setBreakTimeBetweenOrders(time);
hCrowd.setOrderedAmount(orders);
hCrowd.setDish(Dish.getRandomDish());
System.out.println(hCrowd.getBreakTimeBetweenOrders()+" "+hCrowd.getOrderedAmount()+" "+hCrowd.getDish());;
++i;
if (i == 4) {
synchronized (Main.start) {
Main.start.notify();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static long randomTime() {\n return (random.nextInt(11) + 25)*1000;\n }",
"public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}",
"public static int randomNext() { return 0; }",
"private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;\n }",
"private void setRand(){\n rand = generator.nextInt(9) + 1;\n }",
"private void random() {\n\n\t}",
"public int monsterAttack(){\n Random ran = new Random();\n return ran.nextInt(4);\n }",
"long random(long ws) {\r\n\t\treturn (System.currentTimeMillis() % ws);\r\n\t}",
"public int generateEvent(){\r\n\t\tif (Event()){\r\n\t\t\treturn random.nextInt(12);\r\n\t\t} else {\r\n\t\t\treturn 4;\r\n\t\t}\r\n\t}",
"public void roll(){\n currentValue = rand.nextInt(6)+1;\n }",
"private Random rand()\n\t{\n\t\treturn new Random();\n\t}",
"public static int randomSleepTime() {\n return ThreadLocalRandom.current().nextInt(2000);\n }",
"private int rand() {\n return (int)(Math.random()*(RAND_MAX + 1));\n }",
"public int generateRandom() {\n\t\tint random = (int)(Math.random()*((6-1)+1))+1;\n\t\treturn random;\n\t}",
"public int randomMove()\r\n {\r\n r = new Random();\r\n x = r.nextInt(7);\r\n return x;\r\n }",
"int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }",
"private double getRandom() {\n return 2*Math.random() - 1;\n }",
"public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }",
"public double generateDropTime() {\n return LOWERLIMTIME + (Math.random() * ((UPPERLIMTIME - LOWERLIMTIME) + 1));\n\n }",
"private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}",
"private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }",
"int RandomGeneratorZeroToThree (){\n\t\t int randomInt = 0;\n\t\t Random randomGenerator = new Random();\n\t\t for (int idx = 1; idx <= 10; ++idx) {\n\t\t\t randomInt = randomGenerator.nextInt(4);\n\n\t\t }\n\t\t return randomInt;\n\t }",
"@Override\n public long generateNewTimeToNextContract() {\n return new Random().nextInt(5);\n }",
"@Override\n public int attack() {\n return new Random().nextInt(5);\n }",
"int random(int m)\n {\n return (int) (1 + Math.random()%m);\n }",
"public int eDmg(){\r\n eDmg = rand.nextInt(13);\r\n return eDmg;\r\n }",
"public int decideRandomMove() {\n return (int) (Math.random() * 4);\n }",
"public int generateHour() {\n Random random = new Random();\n int hour = random.nextInt(8);\n\n return hour;\n }",
"public static int getRandomAmount(){\n return rand.nextInt(1000);\n }",
"private int randomHelper() {\n\t\tRandom rand = new Random();\n\t\tint randomNum = rand.nextInt((10000 - 1) + 1) + 1;\n\t\treturn randomNum;\n\t}",
"public void roll()\r\n\t{\r\n\t\tthis.value = rnd.nextInt(6) + 1;\r\n\t}",
"static int getRandomDelta() {\n int d = rand.nextInt(100);\n if (d < 50) {\n return -1;\n } else {\n return 1;\n }\n }",
"public static int getRandom() \n\t{\n\t\treturn rGenerator.nextInt();\n\t}",
"static int randomDelta(int average)\n\t{\n\t\treturn rand.nextInt(4*average + 1) - 2*average;\n\t}",
"public double GenerateTime() {\r\n double d = R.nextDouble();\r\n double generatedtime=mean+range*(d-0.5);\r\n return generatedtime;\r\n }",
"public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}",
"Randomizer getRandomizer();",
"private int randomValue() {\r\n\t\tRandom rand = new Random();\r\n\t\tint val = rand.nextInt(10);\r\n\t\tif(val == 9)\r\n\t\t\treturn 4;\r\n\t\telse\r\n\t\t\treturn 2;\r\n\t}",
"public int roll() {\n return random.nextInt(6) + 1;\n }",
"private static int randomCycleCap() {\n int newValue = 0;\n int iterations = 3;\n Random bombRandGen = new Random();\n\n for (int i = 0; i <= iterations; i++) {\n newValue += bombRandGen.nextInt(4);\n }\n\n return newValue;\n }",
"private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }",
"@Override\n public void run() {\n if (random.nextInt(10) == 0)\n addPowerUp(random.nextInt(256));\n }",
"@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}",
"@Override\n public int orinar() {\n\n return (int) (Math.random() * 400) + 400;\n }",
"protected Random get_rand_value()\n {\n return rand;\n }",
"int getRandom(int max);",
"public void newGame() {\n\t\ttheNumber = (int)(Math.random()* 100 + 1);\r\n\t\t\r\n\t}",
"private static int addRandomScore() {\n Random ran = new Random();\n return ran.nextInt(201) + 400;\n }",
"private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}",
"public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}",
"private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }",
"public int getRandomsNumber(){\n Random random = new Random();\n int number = random.nextInt(12) + 1;\n return number;\n }",
"public int determineDayRandomly() {\n\t\treturn 0;\r\n\t}",
"public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}",
"private int randomAge() {\n \tint low = 18;\n \tint high = 100;\n \tint offset = high - low;\n \tRandom r = new Random();\n \treturn r.nextInt(offset) + low;\n \t\n }",
"public static int randomGet() { return 0; }",
"@Override\n public Integer pee() {\n return (int) (random() * 8);\n }",
"public int randomNum() {\n\t\treturn 1 + (int) (Math.random() * 3); // randomNum = minimum + (int)(Math.random() * maximum);\n\t}",
"public static int getRandomEventChance() {\r\n\t\treturn 10; // 1-in\r\n\t}",
"Boolean getRandomize();",
"public int generarDE(){\n int ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.35){ts=1;}\n else if(rnd<=0.75){ts=2;}\n else {ts=3;}\n \n return ts;\n }",
"public int NewMonster(){\n int r = (int) (Math.random() * (9 - 2 + 1) + 2);\n return r;\n }",
"public int drawpseudocard(){\n Random random = new Random();\n return random.nextInt(9)+1;\n }",
"private static String randomYear()\r\n {\r\n String year = \"\";\r\n int number = ran.nextInt(4);\r\n switch(number)\r\n {\r\n case 0:\r\n year = \"freshman\";\r\n break;\r\n case 1:\r\n year = \"sophmore\";\r\n break;\r\n case 2:\r\n year = \"junior\";\r\n break; \r\n case 3:\r\n year = \"senior\";\r\n break;\r\n }\r\n\r\n return year;\r\n }",
"public Random getRandom() {\n\t\treturn (rand);\n\t}",
"private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }",
"static int random(int mod)\n {\n Random rand = new Random();\n int l= (rand.nextInt());\n if(l<0)\n l=l*-1;\n l=l%mod;\n return l;\n }",
"private int randomWeight()\n {\n return dice.nextInt(1000000);\n }",
"private static void roll()\n {\n rand = (int)(((Math.random())*6)+1); // dice roll #1\n rand2 = (int)(((Math.random())*6)+1);// dice roll #2\n }",
"public int generateServiceTime()\n\t{\n\t\tmyRandom = new Random();\n\t\treturn myRandom.nextInt(this.getMyMaxTimeOfService()) + 1;\n\t}",
"public void tick() {\r\n\t\thunger += (10 + generateRandom());\r\n\t\tthirst += (10 + generateRandom());\r\n\t\ttemp -= (1 + generateRandom());\r\n\t\tboredom += (1 + generateRandom());\r\n\t\tcageMessiness += (1 + generateRandom());\r\n\t}",
"private void eating(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }",
"public int randomNum()\r\n {\r\n Random rand = new Random();\r\n int n = rand.nextInt(52)+1;\r\n return n;\r\n }",
"public static int getRandomNumber(){\n int random = 0; // set variable to 0\r\n random = (int)(Math.random()*10) + 1; //generate random number between 1 and 10\r\n return random; //return random number\r\n }",
"public static int getRandomStayDuration() {\n\t\tint stayDuration = (int)(Math.random()*3+1);\n\t\treturn stayDuration;\n\t}",
"public static void randomInit(int r) { }",
"private void roll() {\n value = (int) (Math.random() * MAXVALUE) + 1;\n }",
"public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}",
"public static int getRandomNum() {\n\t\tRandom rand = new Random();\n\t\tint num = rand.nextInt(3)+1;\n\t\treturn num;\n\t}",
"public void next( long time );",
"private int genRandomWaveNum(int waveNum){\n return genRandomWaveNum(1, waveNum);\n }",
"@Override\n public void run() {\n n =r.nextInt(6)+1;\n rollDieFace(n);\n }",
"public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }",
"public int randInt(int min, int max) {\n Random rand = new Random();\n\n // nextInt is normally exclusive of the top value,\n // so add 1 to make it inclusive\n int randomNum = rand.nextInt((max - min) + 1) + min;\n\n return randomNum;\n}",
"private static int randInt(int max) {\n\t\tRandom rand = new Random(System.currentTimeMillis());\n\t\treturn rand.nextInt(max + 1);\n\t}",
"public static int generateRandomNumber()\n\t{\n\t\tRandom r = new Random();\n\t\treturn r.nextInt();\n\t}",
"public double getRandom(){\n\t\treturn random.nextDouble();\n\t}",
"public static double random() {\r\n return uniform();\r\n }",
"public static double rand() {\n return (new Random()).nextDouble();\n }",
"private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}",
"public float generarTE(){\n float ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.20){ts=1;}\n else if(rnd<=0.50){ts=2;}\n else if(rnd<=0.85){ts=3;}\n else {ts=4;}\n \n return ts;\n }",
"int randInt(int n) {\r\n return _randomSource.nextInt(n);\r\n }",
"public int rand(int idT){\r\n Random r = new Random(); \r\n int Low = ((idT*2) + (idT-2));\r\n int High = idT*3;\r\n \r\n int R = r.nextInt ((High+1)-Low) + Low;\r\n System.out.print(\"Low :\"+Low+\",\"+\" high :\"+High+ \" \");\r\n return R;\r\n }",
"private void randomMove() {\n }",
"public static int RandomNum(){\n\n Random random = new Random();\n int ItemPicker = random.nextInt(16);\n return(ItemPicker);\n }",
"public XorShiftRandom() {\n\t\tthis(System.nanoTime());\n\t}",
"public static int rollDie() {\n int n = ThreadLocalRandom.current().nextInt(1, 7);\n return n;\n }",
"private int rollDie() {\r\n final SecureRandom random = new SecureRandom();\r\n return random.nextInt(6 - 1) + 1;\r\n }",
"public double getRandom() {\n return 20*Math.random() - 10;\n }",
"public static void randomDelay() {\n\n Random random = new Random();\n int delay = 500 + random.nextInt(2000);\n try {\n sleep(delay);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"int time()\n\t{\n\t\treturn totalTick;\n\t}"
]
| [
"0.7603894",
"0.73632103",
"0.72752076",
"0.71901304",
"0.7035197",
"0.6983668",
"0.6963006",
"0.6906816",
"0.68879014",
"0.6860718",
"0.6788131",
"0.67865676",
"0.67364746",
"0.6678105",
"0.66567",
"0.6656649",
"0.6637647",
"0.6589864",
"0.65717185",
"0.6555835",
"0.65510166",
"0.6521389",
"0.6511095",
"0.6495895",
"0.64883107",
"0.6486774",
"0.6483145",
"0.64796793",
"0.6451108",
"0.6449214",
"0.6442766",
"0.6442629",
"0.64387023",
"0.6431537",
"0.64298856",
"0.6426919",
"0.6417464",
"0.64096105",
"0.6398025",
"0.63899934",
"0.63835543",
"0.6370149",
"0.6363605",
"0.6361558",
"0.6352711",
"0.6338093",
"0.6334842",
"0.63321435",
"0.63087344",
"0.62990445",
"0.629482",
"0.6275614",
"0.6272211",
"0.62700886",
"0.6262704",
"0.6255485",
"0.62371904",
"0.62238955",
"0.62237877",
"0.62203074",
"0.6212779",
"0.62114316",
"0.6188315",
"0.618308",
"0.6182198",
"0.6180008",
"0.61737233",
"0.6152294",
"0.6132057",
"0.61142236",
"0.6096122",
"0.6079967",
"0.6079221",
"0.6072647",
"0.60698354",
"0.6062486",
"0.606183",
"0.6053433",
"0.605078",
"0.60449773",
"0.6039238",
"0.6038165",
"0.6026052",
"0.6008593",
"0.6007707",
"0.6007104",
"0.60047066",
"0.60009307",
"0.5996808",
"0.5995239",
"0.5994712",
"0.5972498",
"0.59686565",
"0.59677315",
"0.5965607",
"0.59642994",
"0.59636027",
"0.59585774",
"0.59534216",
"0.59527946",
"0.59374565"
]
| 0.0 | -1 |
Create a matrix using the given 2D array | public Mat2(double[][] data) {
this.data = data;
rows = data.length; cols = (rows==0)? 0 : data[0].length;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix(int[][] array){\n this.matriz = array;\n }",
"public Matrix(int[][] array)\n {\n matrix = array;\n }",
"public void buildLinkedListMatrixfromArray(int[][] array){\r\n\t\tElementNode temp = null;\r\n\t\tElementNode prevRow = null;\r\n\t\tfor (int i = 0; i < this.head.getOrder(); i++) {\r\n\t\t\tprevRow = head.gethead();\r\n\t\t\tif( i > 1){\r\n\t\t\t\tfor (int j = 0; j < i-1; j++) {\r\n\t\t\t\t\tprevRow = prevRow.getNextRow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int j = 0; j <this.head.getOrder(); j++) {\r\n\t\t\t\tElementNode e = new ElementNode(array[i][j], null, null);\r\n\t\t\t\tif ( i==0 && j==0 ){\r\n\t\t\t\t\tthis.head.sethead(e);\r\n\t\t\t\t\tprevRow = head.gethead();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif (temp != null){\r\n\t\t\t\t\t\ttemp.setNextColumn(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(i > 0){\r\n\t\t\t\t\t\tprevRow.setNextRow(e);\r\n\t\t\t\t\t\tprevRow = prevRow.getNextColumn();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttemp = e;\r\n\t\t\t}\r\n\t\t\ttemp = null;\r\n\t\t}\r\n\t}",
"Matrix(double[][] input) {\n matrixVar = input;\n columns = matrixVar[0].length;\n rows = matrixVar.length;\n }",
"protected abstract T createMatrix( int numRows, int numCols, MatrixType type );",
"public Matrix(double[][] array) {\n this.matrix = array;\n }",
"public Matrix(double[][] array) {\n this.array = array; // note: danger!\n }",
"Matrix(int r,int c)\n {\n this.r=r;\n this.c=c;\n arr=new int[r][c];\n }",
"public static Matrix arrayToMatrix(double[] array, int rows, int cols) {\n Matrix result = new Matrix(rows, cols);\n for (int i = 0; i < rows; i++) {\n System.arraycopy(array, i * cols, result.data[i], 0, cols);\n }\n\n return result;\n }",
"public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }",
"Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }",
"public Matrix(double[] data) {\n m = data.length;\n n = 1;\n this.data = new double[m][n];\n for (int i = 0; i < m; i++)\n {\n for (int j = 0; j < n; j++)\n {\n \tthis.data[i][j] = data[i];\n }\n }\n }",
"public int[][] initMatrix(int n)\n {\n\t// create an empty 2d array and return it! Simple stuff here.\n\t int[][] retMatrix = new int[n][n];\n\t return retMatrix;\n }",
"public void constructArray(){\n\t\tfor (int col = 0; col < cols; col++){\n\t\t\tfor (int row = 0; row < rows; row++){\n\t\t\t\tmap[col][row] = new Pixel();\n\t\t\t}\n\t\t}\n\t}",
"public int[][] generateMatrix(int n) {\n int[][] matrix = new int[n][n];\r\n generateMatrix(matrix, 0, 1);\r\n return matrix;\r\n }",
"public static int[][] generateMatrix() {\n int rowsCount = RANDOM.nextInt( MAX_ROWS_COUNT ) + 1;\n int[][] result = new int[rowsCount][];\n for (int i = 0; i < rowsCount; i++) {\n result[i] = new int[RANDOM.nextInt( MAX_COLUMNS_COUNT ) + 1];\n fillArray( result[i] );\n }\n return result;\n }",
"public static Matrix rows(double[] rs) {\n\t\tint rows = rs.length;\n\t\tint columns = 1;\n\t\tMatrix m = new Matrix(rows, columns);\n\t\tfor (int r = 0; r < rows; r++) {\n\t\t\tm.matrix[r][0] = rs[r];\n\t\t}\n\t\treturn m;\n\t}",
"public Matrix(double[][] A, int m, int n) {\n this.data = A;\n this.m = m;\n this.n = n;\n }",
"public static double[][] array1Dto2D(int[] matrixVal) {\n int size = (int) Math.sqrt(matrixVal.length);\n double[][] values = new double[size][size];\n int i, j, k;\n for (i = 0, k = 0; i < size; ++i) {\n for (j = 0; j < size; ++j) {\n values[i][j] = matrixVal[k];\n k++;\n }\n }\n return values;\n }",
"public int[][] matrixCID(String[] array){\n\t\tint[][] matrix = new int[array.length-1][5];\n\t\tfor(int i = 1; i < array.length; i++){\n\t\t\tString[] words = toWord(array[i]);\t\n\t\t\tmatrix[i-1][0] = Integer.valueOf(words[0]); //CID\n\t\t\tmatrix[i-1][1] = Integer.valueOf(words[2]); //POP\n\t\t\tmatrix[i-1][2] = 0; //default length\n\t\t\tmatrix[i-1][3] = 0; //default chunk size\n\t\t\tmatrix[i-1][4] = 0; //default chunk pieces\n\t\t}\n\t\treturn matrix;\n\t}",
"static Matrix vectorize(Matrix input) {\n int m = input.getRowDimension();\n int n = input.getColumnDimension();\n\n Matrix result = new Matrix(m * n, 1);\n for (int p = 0; p < n; p++) {\n for (int q = 0; q < m; q++) {\n result.set(p * m + q, 0, input.get(q, p));\n }\n }\n return result;\n }",
"public static int[][] intArray1Dto2D(int[] matrixVal) {\n int size = (int) Math.sqrt(matrixVal.length);\n int[][] values = new int[size][size];\n int i, j, k;\n for (i = 0, k = 0; i < size; ++i) {\n for (j = 0; j < size; ++j) {\n values[i][j] = matrixVal[k];\n k++;\n }\n }\n return values;\n }",
"public static Matrix constructWithCopy(double[][] A) throws JPARSECException {\n int m = A.length;\n int n = A[0].length;\n Matrix X = new Matrix(m,n);\n double[][] C = X.getArray();\n for (int i = 0; i < m; i++) {\n if (A[i].length != n) {\n throw new JPARSECException\n (\"All rows must have the same length.\");\n }\n for (int j = 0; j < n; j++) {\n C[i][j] = A[i][j];\n }\n }\n return X;\n }",
"public T createLike() {\n return createMatrix(numRows(), numCols(), getType());\n }",
"public static void initTwoD(int[][] array) {\n System.out.println(\"Entering random numbers in matrix of \" + array.length + \" rows and \" + array[0].length + \" columns: \");\n for (int row = 0; row < array.length; row++) {\n for (int column = 0; column < array[0].length; column++) {\n array[row][column] = (int) (Math.random() * 100);\n }\n }\n\n }",
"public Matrix(int n) {\n\t\tsize = n;\n\t\tm = new int[size][size];\n\t}",
"public Matrix(double[][] data) {\n M = data.length;\n N = data[0].length;\n this.data = new double[M][N];\n for (int i = 0; i < M; i++)\n for (int j = 0; j < N; j++)\n this.data[i][j] = data[i][j];\n }",
"public MatrixArray(int[][] MA){\r\n\t\tthis.MA = MA;\r\n\t\tthis.N = MA.length;\r\n\t}",
"public static short[][] constructIdentityMtx(int dimension) {\n \n short[][] rep = new short[dimension][dimension];\n\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n if (i == j) {\n rep[i][j] = 1;\n } else {\n rep[i][j] = 0;\n }\n }\n }\n return rep;\n }",
"public int[][] arrayToMatriz(int vec[]) {\r\n\t\tint matriz[][] = new int[3][3];\r\n\t\tint cont = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < matriz.length; i++) {\r\n\t\t\tfor (int j = 0; j < matriz.length; j++) {\r\n\t\t\t\tmatriz[i][j] = vec[cont];\r\n\t\t\t\tcont++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn matriz;\r\n\t}",
"public static double[][] array1Dto2D(Integer[] matrixVal) {\n int size = (int) Math.sqrt(matrixVal.length);\n double[][] values = new double[size][size];\n int i, j, k;\n for (i = 0, k = 0; i < size; ++i) {\n for (j = 0; j < size; ++j) {\n values[i][j] = matrixVal[k];\n k++;\n }\n }\n return values;\n }",
"public int[][] generateMatrix(int n) {\n\t\tint[][] res = new int[n][n];\r\n\t\tint x = 0;\r\n\t\tint num = 1;\r\n\t\twhile (n > 1) {\r\n\t\t\tfor (int i = x; i < x + n - 1; i++)\r\n\t\t\t\tres[x][i] = num++;\r\n\t\t\tfor (int i = x; i < x + n - 1; i++)\r\n\t\t\t\tres[i][x + n - 1] = num++;\r\n\t\t\tfor (int i = x + n - 1; i > x; i--)\r\n\t\t\t\tres[x + n - 1][i] = num++;\r\n\t\t\tfor (int i = x + n - 1; i > x; i--)\r\n\t\t\t\tres[i][x] = num++;\r\n\t\t\tn -= 2;\r\n\t\t\tx++;\r\n\t\t}\r\n\t\tif (n == 1)\r\n\t\t\tres[x][x] = num;\r\n\t\treturn res;\r\n\t}",
"public static Matrix buildMatrixFromCommandLine (){\n\n int M = 0;\n int N = 0;\n double[][] data;\n\n M = new Double(getDoubleWithMessage(\"Enter rows number: \")).intValue();\n N = new Double(getDoubleWithMessage(\"Enter columns number: \")).intValue();\n System.out.println(\"You have matrix: \" + M + \"x\" + N);\n\n data = new double[M][N];\n\n for (int i = 0; i < M; i++){\n System.out.println(\"Row: \" + i);\n for (int j = 0; j < N; j++){\n data[i][j] = getDoubleWithMessage(\"Column: \" + j);\n }\n }\n return new Matrix(data);\n }",
"public static Matrix Identity(int n) {\n List<List<Double>> backingArray = get2DListOfSize(n);\n for(int i = 0; i < n; i++)\n backingArray.get(i).set(i, 1d);\n return new Matrix(backingArray);\n }",
"public static int [][][] buildMat3d() {\n //defines array to be 3 X 7X 9 dimensioned\n int mat3d [][][]= new int [3][7][9];\n //for loop which runs 3 times\n for(int s=0; s<3; s++) {\n //for loop which runs a different amount of times\n for(int j=0; j<(3+2*s); j++) {\n //for loop which does the same\n for(int c=0; c<(s+j+1); c++) {\n //defines values based on raondom generation\n mat3d[s][j][c]= (int)(Math.random()*99);\n \n }\n }\n }\n //returns the resulting array\n return mat3d;\n }",
"private int[][] convertToTwnDimensionMatrix(int[] oneDimensionMatrix, int varNum)\r\n\t{\r\n\t\t// oneDimensionMatrix: the one dimension matrix that you want to convert:\r\n\t\t// matrixSize: the size (equals to the row or the column length) of the two dimension matrix of the result\r\n\t\tint[][] result = new int[varNum][varNum];\r\n\t\t\r\n\t\tfor (int m = 0; m < varNum; m++)\r\n\t\t{\r\n\t\t\tfor (int n = 0; n < varNum; n++)\r\n\t\t\t{\r\n\t\t\t\tresult[m][n] = oneDimensionMatrix[m*varNum + n];\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t return result;\r\n\t}",
"public Matrice(int dim){\n\t\tnr=dim;\n\t\tnc=nr;\n\t\tmat = new int[nr][nc];\n\t}",
"public int[][] generateMatrix(int n) {\n \n int[][] matrix = new int[n][n];\n \n int i = 0, j = 0, direction = 0;\n \n int right = n - 1, left = 0, top = 1, bottom = n - 1, count = 1;\n \n while (count <= n * n && i >= 0 && i < n && j >= 0 && j < n) {\n switch (direction) {\n case 0:\n if (j == right) {\n matrix[i++][j] = count;\n right--;\n direction = 1;\n } else {\n matrix[i][j++] = count;\n }\n break;\n case 1:\n if (i == bottom) {\n matrix[i][j--] = count;\n bottom--;\n direction = 2;\n } else {\n matrix[i++][j] = count;\n }\n break;\n case 2:\n if (j == left) {\n matrix[i--][j] = count;\n left++;\n direction = 3;\n } else {\n matrix[i][j--] = count;\n }\n break;\n case 3:\n if (i == top) {\n matrix[i][j++] = count;\n top++;\n direction = 0;\n } else {\n matrix[i--][j] = count;\n }\n break;\n }\n count++;\n }\n \n return matrix;\n }",
"public Matrix(double[][] twoD){\r\n\t\tthis.nrow = twoD.length;\r\n\t\tthis.ncol = twoD[0].length;\r\n\t\tfor(int i=0; i<nrow; i++){\r\n\t\t if(twoD[i].length!=ncol)throw new IllegalArgumentException(\"All rows must have the same length\");\r\n\t\t}\r\n\t\tthis.matrix = twoD;\r\n\t\tthis.index = new int[nrow];\r\n for(int i=0;i<nrow;i++)this.index[i]=i;\r\n \t}",
"public static Matrix identityMatrix(int nrow){\r\n \tMatrix u = new Matrix(nrow, nrow);\r\n \tfor(int i=0; i<nrow; i++){\r\n \t\tu.matrix[i][i]=1.0;\r\n \t}\r\n \treturn u;\r\n \t}",
"public int[][] generateMatrix(int n) {\n // input checking\n if (n < 0) {\n return null;\n }\n\n // start fill in the matrix (consider what happen when n == 0)\n // test case: input == 0; expect [];\n int[][] matrix = new int[n][n];\n int lo = 0, hi = matrix.length - 1;\n int num = 1;\n while (lo <= hi) {\n // pay attention to when lo == hi\n if (lo == hi) {\n matrix[lo][lo] = num;\n break;\n }\n // otherwise, fill this layer\n for (int i = lo; i < hi; i++) { // attention i < hi not i <= hi\n matrix[lo][i] = num++;\n }\n for (int i = lo; i < hi; i++) {\n matrix[i][hi] = num++;\n }\n for (int i = hi; i > lo; i--) {\n matrix[hi][i] = num++;\n }\n for (int i = hi; i > lo; i--) {\n matrix[i][lo] = num++;\n }\n lo++;\n hi--;\n }\n return matrix;\n }",
"protected ArrayList<double[]> newMatrix(int _rows, int _cols) {\n ArrayList<double[]> matrix = new ArrayList<double[]>();\n for (int i=0; i<_rows; i++) {\n matrix.add(new double[_cols]);\n }\n return matrix;\n }",
"public Matrix(int nrOfRows, int nrOfCols) {\n this.nrOfRows = nrOfRows;\n this.nrOfCols = nrOfCols;\n inner = new BigInteger[nrOfRows][nrOfCols];\n }",
"Actor[][] toMatrix(Actor[] distArray, int nLocations, Actor[][] world) {\n int length = (int) Math.sqrt(nLocations);\n world = new Actor[length][length];\n\n int n = 0;\n for (int i = 0; i < length; i++) {\n for (int j = 0; j < length; j++) {\n world[i][j] = distArray[n];\n n++;\n }\n }\n return world;\n }",
"public Matrix3x3rc (long[] in_array) throws WrongLength{ //throws error of type WrongLength if input array length is not 9\n\t\tif (in_array.length != 9){\n\t\t\tthrow new WrongLength (9, in_array.length, \"in_array\");\n\t\t}\n\t\telse{ //changes global record if length of input array == 9\n\t\t\t//since every 3 elements of the input array correspond to a row of the matrix, every 3 elements are stored in\n\t\t\t//a column register, then the column registers are stored in a row register\n\t\t\tcolRow3 a1 = new colRow3(in_array[0], in_array[1], in_array[2]); //stores 1st row\n\t\t\tcolRow3 b1 = new colRow3(in_array[3], in_array[4], in_array[5]); //stores 2nd row\n\t\t\tcolRow3 c1 = new colRow3(in_array[6], in_array[7], in_array[8]); //stores 3rd row\n\t\t\tthis.mat = new Row3(a1, b1, c1); //stores all 3 record in global record\n\t\t}\n\t}",
"public Matrix(double[][] data) {\n rowCount = data.length;\n columnCount = data[0].length;\n this.data = new double[rowCount][columnCount];\n for (int i = 0; i < rowCount; i++)\n for (int j = 0; j < columnCount; j++)\n this.data[i][j] = data[i][j];\n }",
"public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"public Matrix(int x, int y) {\n\t\tnrow=x;\n\t\tncol=y;\n\t\tmat = new int[x][y];\n\t\t\n\n\t}",
"public int[][] generateMatrix(int n) {\n\t\tint[][] res = {};\n\t\tif (n <= 0) {\n\t\t\treturn res;\n\t\t}\n\t\tres = new int[n][n];\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint count = 1;\n\n\t\twhile (n > 0) {\n\t\t\tif (n == 1) {\n\t\t\t\tres[x][y] = count;\n\t\t\t}\n\t\t\t// move right\n\t\t\tfor (int i = 0; i < n - 1; ++i) {\n\t\t\t\tres[x][y++] = count++;\n\t\t\t}\n\t\t\t// move down\n\t\t\tfor (int i = 0; i < n - 1; ++i) {\n\t\t\t\tres[x++][y] = count++;\n\t\t\t}\n\t\t\t// move left\n\t\t\tfor (int i = 0; i < n - 1; ++i) {\n\t\t\t\tres[x][y--] = count++;\n\t\t\t}\n\t\t\t// move up\n\t\t\tfor (int i = 0; i < n - 1; ++i) {\n\t\t\t\tres[x--][y] = count++;\n\t\t\t}\n\t\t\tx = x + 1;\n\t\t\ty = y + 1;\n\t\t\tn = n - 2;\n\t\t}\n\t\treturn res;\n\t}",
"public int[][] toCloneMatrix(String[] array, int length){\n\t\tint[][] matrix = new int[length][4];\n\t\tfor(int i = 0; i < length; i++){\t\t\n\t\t\tfor(int j = 0; j < 6; j++){\t\n\t\t\t\tif(j == 0){\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(toWord(array[i])[0]); //matrix[i][0] = array[i][0] CLONE ID\n\t\t\t\t}\n\t\t\t\telse if(j == 1){\n\t\t\t\t\tString temp = toWord(array[i])[1];\n\t\t\t\t\tString[] tempArray = temp.split(\"\\\\.\");\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(tempArray[0]); //matrix[i][1] = array[i][1] FILE ID\n\t\t\t\t}\n\t\t\t\telse if(j == 2){\n\t\t\t\t\tString temp = toWord(array[i])[1];\n\t\t\t\t\tString[] tempArray = temp.split(\"\\\\.\");\n\t\t\t\t\ttemp = tempArray[1]; //bg-end\n\t\t\t\t\ttempArray = temp.split(\"\\\\-\");\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(tempArray[0]); //matrix[i][2] = array[i][2] SL\n\t\t\t\t}\n\t\t\t\telse if(j == 3){\n\t\t\t\t\tString temp = toWord(array[i])[1];\n\t\t\t\t\tString[] tempArray = temp.split(\"\\\\.\");\n\t\t\t\t\ttemp = tempArray[1]; //bg-end\n\t\t\t\t\ttempArray = temp.split(\"\\\\-\");\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(tempArray[1]); //matrix[i][3] = array[i][3] EL\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn matrix;\n\t}",
"private double[][] convertArrayToMatrix(ArrayList<String> data, int row, int column) {\n int ct = 0;\n double[][] mat = new double[row][column];\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < column; j++) {\n mat[i][j] = Double.parseDouble(data.get(ct));\n ct++;\n }\n }\n /*for (String s : data) {\n mat[i][j] = Double.parseDouble(s);\n i++;\n if (i == row) {\n i = 0;\n j++;\n }\n if (i == row && j == column) {\n break;\n }\n }*/\n return mat;\n }",
"public SudokuSolver(int[][] m) {\n // ideally we would have liked to have just done:\n // this.matrix = m; but this would allow outside class\n // to change our internal representation, safer to copy instead.\n // Note: intentionally not doing a clone of rows.\n matrix = new int[DIM][DIM];\n IntStream.range(0, DIM * DIM)\n .forEach(\n n -> {\n int i = n / DIM;\n int j = n % DIM;\n matrix[i][j] = m[i][j];\n });\n }",
"public Matrix(){\r\n\t\t\r\n\t\t//dim = dimension; for now, only 3-dim. matrices are being handled\r\n\t\tmat = new int[dim][dim];\r\n\t\t\r\n\t\tfor(int rowi = 0; rowi < dim; rowi++ )\r\n\t\t\tfor (int coli = 0; coli < dim; coli++)\r\n\t\t\t\tmat[rowi][coli]=0;\r\n\t}",
"public Object[][] get2DArray();",
"public static void main(String[] args) {\n\t\tint[][] array = new int[5][6];\r\n\t\tint[] x = {1,2};array[0] = x;\r\n\t\tSystem.out.println(\"array[0][1] is \" + array[0][1]);\r\n\t\tSystem.out.println(Arrays.deepToString(array));\r\n\t\t\r\n\t\tint[][] arr = {{1,2}, {3,4}, {5,6}};\r\n\t\tfor (int i = arr.length - 1; i >= 0; i--) \r\n\t\t{for (int j = arr[i].length - 1; j >= 0; j--)\r\n\t\t\tSystem.out.print(arr[i][j] + \" \");\r\n\t\tSystem.out.println();\r\n\t\t}\r\n\t\tint[][] array1 = {{1,2}, {3,4}, {5,6}};\r\n\t\tint sum = 0;\r\n\t\tfor (int i = 0; i < array1.length; i++)\r\n\t\t\tsum += array1[i][0];\r\n\t\tSystem.out.println(sum);\r\n\t\r\n\tint [][]matrix = new int [10] [10];\r\n\t\r\n\tfor (int row = 0; row < matrix.length; row++) {\r\n\t\tfor (int column = 0; column < matrix[row].length; column++) {\r\n\t\tmatrix[row][column] = (int)(Math.random() * 100); }}\r\n\tSystem.out.println(Arrays.deepToString(matrix));\r\n\r\n\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\tfor (int j = 0; j < matrix[i].length; j++) {\r\n\t\t\tint i1 = (int)(Math.random() * matrix.length);\r\n\t\t\tint j1 = (int)(Math.random() * matrix[i].length);\r\n\t\t\tint temp = matrix[i][j];\r\n\t\t\tmatrix[i][j] = matrix[i1][j1];\r\n\t\t\tmatrix[i1][j1] = temp;\r\n\t\t}\r\n\t}System.out.println(Arrays.deepToString(matrix));\r\n\t}",
"private int[][] createMatrix(List<Integer> vertices, Set<Edge> edges) {\n int[][] matrix = new int[vertices.size()][vertices.size()];\n\n for (Edge e : edges) {\n int u = e.getU();\n int v = e.getV();\n matrix[u][v] = e.getWeight();\n if (!e.isDirected()) {\n matrix[v][u] = e.getWeight();\n }\n }\n return matrix;\n }",
"public Matrix(int m, int n) {\n this.m = m;\n this.n = n;\n data = new double[m][n];\n }",
"static int[][] getColumns(int[] array){\n int[][] rezultArray = new int[n][n];\n int index = 0;\n for (int i = 0; i < n; i++){\n for (int j = i; j < n * n; j += n){\n rezultArray[i][index++] = array[j];\n }\n index = 0;\n }\n return rezultArray;\n }",
"public Matrix(double[][] matrix) {\r\n this.matrix = matrix;\r\n }",
"public static int[][] transposeMatrix(int[][] A){\n //takes 2 D and returns 2D\n int newWidth=A.length;\n int newHeight=A[0].length;\n //get two dimensions for new matrix\n int[][] transposeA=new int[newHeight][newWidth];\n //switch dimensions\n //use for loop to reassign values\n for(int i=0; i<newHeight; i++){\n for(int k=0; k<newWidth; k++){\n //imbedded for loop for individual values\n transposeA[i][k]=A[k][i];\n System.out.print(transposeA[i][k]+\" \");\n \n }\n System.out.println();\n }\n return transposeA;\n \n }",
"public static int[][] makeSymmetric(int[][] m)\n { \n return new int[m.length][m[0].length];\n }",
"public static Mat2 initIdentity(int size) {\n\t\tdouble[][] data = new double[size][size];\n\t\tfor(int i=0; i<size; i++) {\n\t\t\tfor(int j=0; j<size; j++) {\n\t\t\t\tdata[i][j] = 0;\n\t\t\t\tif(i==j) data[i][j] = 1;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(data);\n\t}",
"@Test\n public void testCreateTranspose2(){\n double[][] a = new double[5][5];\n for(int i = 0 ; i < a.length ; i++){\n for(int j = 0 ; j < a[0].length ; j++){\n a[i][j] = Math.random();\n }\n }\n double[][] newA = HarderArrayProblems.createTranspose(a);\n checkTranspose(a, newA);\n }",
"public Matrix(double[][] A) throws JPARSECException {\n m = A.length;\n n = A[0].length;\n for (int i = 0; i < m; i++) {\n if (A[i].length != n) {\n throw new JPARSECException(\"All rows must have the same length.\");\n }\n }\n this.data = A;\n }",
"public static int[][] init2DArray(int count){\r\n return new int[count][count];\r\n }",
"public int[][] generateMatrix(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn new int[0][0];\n\t\t}\n\n\t\tint[][] res = new int[n][n];\n\t\tint num = 1;\n\t\tint r1 = 0, c1 = 0, r2 = n-1, c2 = n-1;\n\t\twhile (r1 <= r2 && c1 <= c2) {\n\t\t\tfor (int c = c1; c <= c2; c++) {\n\t\t\t\tres[r1][c] = num++;\n\t\t\t}\n\n\t\t\tfor (int r = r1 + 1; r <= r2; r++) {\n\t\t\t\tres[r][c2] = num++;\n\t\t\t}\n\n\t\t\tif (r1 < r2) {\n\t\t\t\tfor (int c = c2 - 1; c > c1; c--) {\n\t\t\t\t\tres[r2][c] = num++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (c1 < c2) {\n\t\t\t\tfor (int r = r2; r > r1; r--) {\n\t\t\t\t\tres[r][c1] = num++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tr1++;\n\t\t\tc1++;\n\t\t\tr2--;\n\t\t\tc2--;\n\t\t}\n\n\t\treturn res;\n\t}",
"private static int[][] transpose(int[][] array) {\n if (array.length == 0 || array[0].length == 0)\n return array;\n int[][] transposed = new int[array[0].length][];\n for (int row = 0; row < array[0].length; row++)\n transposed[row] = new int[array.length];\n for (int row = 0; row < array[0].length; row++)\n for (int col = 0; col < array.length; col++)\n transposed[row][col] = array[col][row];\n return transposed;\n }",
"public Matrix3D(double[] d1) {\n super(3,3);\n int k = -1;\n for (int i=0 ; i<3 ; i++) { // loop over rows\n for (int j=0 ; j<3 ; j++) { // loop over columns\n k++;\n set(i,j,d1[k]); // d[i][j] = d1[k];\n }\n }\n }",
"public static Matrix generate(int[] measurementGroupings) {\n\t\t\n\t\tint numRows = measurementGroupings.length;\n\t\t\n\t\tMap<Integer, List<Integer>> measurementGroups = \n\t\t\tnew HashMap<Integer, List<Integer>>();\n\t\tList<Integer> groupIndicies = new LinkedList<Integer>();\n\t\t\n\t\tfor(int i=0; i<numRows; i++){\n\t\t\tInteger groupIndex = new Integer(measurementGroupings[i]);\n\t\t\tList<Integer> group = measurementGroups.get(groupIndex);\n\t\t\tif (group == null) {\n\t\t\t\tgroup = new LinkedList<Integer>();\n\t\t\t\tmeasurementGroups.put(groupIndex, group);\n\t\t\t\tgroupIndicies.add(groupIndex);\n\t\t\t}\n\t\t\tgroup.add(new Integer(i));\n\t\t}\n\t\t\n\t\tMatrix transformMatrix = new Matrix(numRows - groupIndicies.size(), \n\t\t\t\tnumRows, 0);\n\t\t\n\t\tint rowNumber = 0;\n\t\tint groupNumber = 0;\n\t\tfor(Integer groupIndex : groupIndicies) {\n\t\t\tIterator<Integer> group = measurementGroups.get(groupIndex).iterator();\n\t\t\tint groupMember = group.next().intValue();\n\t\t\twhile(group.hasNext()){\n\t\t\t\ttransformMatrix.set(rowNumber, groupMember, 1);\n\t\t\t\tgroupMember = group.next().intValue();\n\t\t\t\ttransformMatrix.set(rowNumber, groupMember, -1);\n\t\t\t\trowNumber++;\n\t\t\t}\n\t\t\tgroupNumber++;\n\t\t}\n\t\t\n\t\treturn transformMatrix;\n\t}",
"public static int[][][] init3DArray(int count){\r\n return new int[count][count][count];\r\n }",
"public int[][] toMatrix() \n {\n \tint[][] matrix = new int[2][7];\n \tfor (int i = 0; i < 14; ++i)\n \t\tmatrix[i/7][i%7] = state[i];\n \treturn matrix;\n }",
"public long[][] flatTo2D (long[] in_array1d){\n\t\tint sl = (int)Math.sqrt(in_array1d.length);\n\t\tlong[][] out_array = new long[sl][sl]; //declares output 2D array\n\t\tint q = 0; //temporary variable, used in following nested for loop\n\t\tfor(int a = 0; a < sl; a++){ //loops until a == side length\n\t\t\tfor(int b = 0; a < sl ; b++){ //loops until b == side length\n\t\t\t\t//q is initially set to zero. With each iteration of the b for-loop, the value of\n\t\t\t\t//out_array[a][b] is replaced with in_array[q], and q is incremented by 1. This means\n\t\t\t\t//that, for every iteration of the a for-loop, q is incremented by sl\n\t\t\t\tout_array[a][b] = in_array1d[q]; \n\t\t\t\tq = q + 1;\n\t\t\t\t}\n\t\t\t}\n\t\treturn out_array;\n\t\t}",
"public double[][] convert_img_mat()\n\t{\n\t\tif(orderflag)\n\t\t{\n\t\t\tputpixel_1();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//rotate the image and get the pixels as usual form\t\n \t\tputpixel_2();\n\t\t}\n\treturn matrix;\n\t}",
"public Matrix(int nrow, int ncol){\r\n\t\tthis.nrow = nrow;\r\n\t\tthis.ncol = ncol;\r\n\t \tthis.matrix = new double[nrow][ncol];\r\n\t\tthis.index = new int[nrow];\r\n for(int i=0;i<nrow;i++)this.index[i]=i;\r\n }",
"public Matrix(double[][] data) {\n rows = data.length;\n cols = data[0].length;\n this.data = new double[rows][cols];\n for (int i = 0; i < data.length; i++) {\n System.arraycopy(data[i], 0, this.data[i], 0, data[i].length);\n }\n }",
"private Board(int[][] array)\n\t{\n\t\tcols = 0;\n\t\trows = array.length;\n\t\tif (rows > 0)\n\t\t\tcols = array[0].length;\n\t\t\n\t\tpieces = new int[rows][cols];\n\t\tif (pieces.length > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < pieces.length; i++)\n\t\t\t\tfor (int j = 0; j < pieces[0].length; j++)\n\t\t\t\t\tpieces[i][j] = array[i][j];\n\t\t}\n\t}",
"public static Matrix oneDimensionalArrayToVector(double[] array, boolean columnVector) {\n double data[][] = new double[1][array.length]; //Create a two-dimensional array\n data[0] = array;\n Matrix result = new Matrix(data); //Now this is a row vector\n if (columnVector)\n return result.transpose(); //If we need column vector we transpose it.\n else\n return result;\n\n }",
"public MatrixArrayCR (long[] in_array) throws WrongLength{\n\t\tif (in_array.length != 9){ //throws error if length of array != 9\n\t\t\tthrow new WrongLength (9, in_array.length, \"in_array\");\n\t\t}\n\t\telse{ //updates record with in_array if in_array.length == 9\n\t\t\tthis.mat = transpose(flatTo2D(in_array));\n\t\t}\n\t}",
"public static void generatetripletmatrix() {\n\t\tresultMatrix = new int[3][numNonZero];\n\n\t // Generating result matrix\n\t int k = 0;\n\t for (int ro = 0; ro < row; ro++) {\n\t for (int column = 0; column < 6; column++) {\n\t if (matrix[ro][column] != 0)\n\t {\n\t resultMatrix[0][k] = ro;\n\t resultMatrix[1][k] = column;\n\t resultMatrix[2][k] = matrix[ro][column];\n\t k++;\n\t }\n\t }\n\t }\n\t \n\t}",
"Matrix(BigInteger[][] matrix) {\n this.nrOfRows = matrix.length;\n this.nrOfCols = matrix[0].length;\n this.inner = matrix;\n }",
"Matrix(int rows, int columns) {\n try {\n if (rows < 1 || columns < 1) {\n throw zeroSize;\n }\n this.rows = rows;\n this.columns = columns;\n matrix = new int[rows][columns];\n\n for (int rw = 0; rw < rows; rw++) {\n for (int col = 0; col < columns; col++) {\n matrix[rw][col] = (int) Math.floor(Math.random() * 100);\n }\n }\n }\n catch (Throwable zeroSize) {\n zeroSize.printStackTrace();\n }\n\n }",
"public int[][] create2DArrayFrom1D(int[] array1D, int height, int width) {\r\n\t\t//printArray1D(array1D);\r\n\t\tint[][] array2D = new int[height][width];\r\n\t\tfor (int i = 0; i < height; i++) {\r\n\t\t\tfor (int j = 0; j < width; j++) {\r\n\t\t\t\t//System.out.println(\"i: \"+i+\" j: \"+j+\" width: \"+width);\r\n\t\t\t\tarray2D[i][j] = array1D[i * width + j];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//printArray2D(array2D);\r\n\t\treturn array2D;\r\n\t}",
"public static void generateMatrix() {\r\n Random random = new Random();\r\n for (int i = 0; i < dim; i++)\r\n {\r\n for (int j = 0; j < dim; j++)\r\n {\r\n if (i != j)\r\n \r\n adjacencyMatrix[i][j] = I; \r\n }\r\n }\r\n for (int i = 0; i < dim * dim * fill; i++)\r\n {\r\n adjacencyMatrix[random.nextInt(dim)][random.nextInt(dim)] =\r\n random.nextInt(maxDistance + 1);\r\n }\r\n \r\n\r\n\r\n \r\n //print(adjacencyMatrix);\r\n \r\n \r\n //This makes the main matrix d[][] ready\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++)\r\n {\r\n d[i][j] = adjacencyMatrix[i][j];\r\n if (i == j)\r\n {\r\n d[i][j] = 0;\r\n }\r\n }\r\n }\r\n }",
"public int[] create1DArrayFrom2D(int[][] array2D) {\r\n\t\t//printArray2D(array2D);\r\n\t\tint[] array1D = new int[array2D.length * array2D[0].length];\r\n\t\tfor (int i = 0; i < array2D.length; i++) {\r\n\t\t\tfor (int j = 0; j < array2D[i].length; j++) {\r\n\t\t\t\t//System.out.println(\"i: \"+i+\" j: \"+j+\" length: \"+array2D[0].length);\r\n\t\t\t\tarray1D[i * array2D[0].length + j] = array2D[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//printArray1D(array1D);\r\n\t\treturn array1D;\r\n\t}",
"public int[][] generateMatrix(int n) {\n int[][] matrix = new int[n][n];\n int counter = 1;\n for(int layer = 0; layer < (n + 1)/2; layer++){\n matrix[layer][layer] = counter++;\n for(int i = layer + 1; i < n - layer; i++) matrix[layer][i] = counter++;\n for(int i = layer + 1; i < n - layer; i++) matrix[i][n-layer-1] = counter++;\n //if(layer == (n + 1)/2 - 1 && n % 2 == 1) break;\n for(int i = n - layer - 2; i >= layer; i--) matrix[n-layer-1][i] = counter++;\n for(int i = n - layer - 2; i > layer; i--) matrix[i][layer] = counter++;\n }\n return matrix;\n }",
"public static void makeMatrix()\n {\n\n n = Graph.getN();\n m = Graph.getM();\n e = Graph.getE();\n\n connectMatrix = new int[n][n];\n\n // sets the row of value u and the column of value v to 1 (this means they are connected) and vice versa\n // vertices are not considered to be connected to themselves.\n for(int i = 0; i < m;i++)\n {\n connectMatrix[e[i].u-1][e[i].v-1] = 1;\n connectMatrix[e[i].v-1][e[i].u-1] = 1;\n }\n }",
"public int[][] generateMatrix(int n) {\n int[][] result = new int[n][n];\n int val = 1;\n int rowBegin = 0;\n int colBegin = 0;\n int rowEnd = n - 1;\n int colEnd = n - 1;\n while (rowBegin <= rowEnd && colBegin <= colEnd) {\n // travel right\n for (int j = colBegin; j <= colEnd; j++) {\n result[rowBegin][j] = val++;\n }\n rowBegin++;\n // travel down\n for (int i = rowBegin; i <= rowEnd; i++) {\n result[i][colEnd] = val++;\n }\n colEnd--;\n // travel left\n if (rowBegin <= rowEnd) {\n for (int j = colEnd; j >= colBegin; j--) {\n result[rowEnd][j] = val++;\n }\n }\n rowEnd--;\n // travel up\n if (colBegin <= colEnd) {\n for (int i = rowEnd; i >= rowBegin; i--) {\n result[i][colBegin] = val++;\n }\n }\n colBegin++;\n }\n return result;\n\n }",
"public Matrix(double vals[], int m) throws JPARSECException {\n this.m = m;\n n = (m != 0 ? vals.length/m : 0);\n if (m*n != vals.length) {\n throw new JPARSECException(\"Array length must be a multiple of m.\");\n }\n data = new double[m][n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n data[i][j] = vals[i+j*m];\n }\n }\n }",
"public Board(Character[][] matrix) {\n this.matrix = matrix;\n }",
"private static Integer[][] createRandomStart(Integer dimension) {\n Integer[][] startmatrix = new Integer[dimension][dimension];\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n startmatrix[i][j] = (int)(Math.random() * 2);\n }\n }\n return startmatrix;\n }",
"private void generateMatrix(int n) throws InvalidSizeException{\n\t\tif(n%2 == 0 || n == 0 || n < 0) {\n\t\t\tthrow new InvalidSizeException(n);\n\t\t}else {\n\t\t\tmatrix = new int[n][n];\n\t\t\tsize = n;\n\t\t}\n\t}",
"@Test\n public void testCreateTranspose1(){\n double[][] a = new double[1][1];\n a[0][0] = Math.random();\n double[][] newA = HarderArrayProblems.createTranspose(a);\n checkTranspose(a, newA);\n }",
"private int[][] transpose(int [][] inputarray){\n int x = inputarray.length;\n int y = inputarray[x - 1].length;\n int [][] transposedarray = new int[y][x];\n for(int i = 0; i < x; ++i){\n for(int j = 0; j < y; ++j){\n transposedarray[j][i] = inputarray[i][j];\n }\n }\n return transposedarray;\n }",
"public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }",
"public abstract Matrix matrix(double s1, double s2, double s3, double c1, double c2, double c3);",
"public static int[][] computeTable() {\n\t\tint [][] ret = new int[10][10];\n\t\tfor (int m = 0; m < 10; m++) {\n\t\t\tfor (int n = 0; n < 10; n++) {\n\t\t\t\tret[m][n] = m*n;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public Matrix(int n) {\n\t\tif (n < 1) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.n = n;\n\t\tthis.content = new double[n][n];\n\t\tthis.hash = hashCode();\n\t}",
"public Matrix getTranspose() {\r\n double[][] jadi = new double[matrix[0].length][matrix.length];\r\n for (int i = 0; i < jadi.length; i++) {\r\n for (int j = 0; j < jadi[0].length; j++) {\r\n jadi[i][j] = matrix[j][i];\r\n }\r\n }\r\n return new Matrix(jadi);\r\n }",
"public static Matrix identity(int n) {\n\t\tComplexNumber[][] rows = new ComplexNumber[n][];\n\t\tfor (int row = 0; row < n; row++) {\n\t\t\trows[row] = new ComplexNumber[n];\n\t\t\tfor (int col = 0; col < n; col++) {\n\t\t\t\tint term = (row == col) ? 1 : 0;\n\t\t\t\trows[row][col] = new ComplexNumber(term);\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(rows);\n\t}",
"public Matrix(int rowCount, int columnCount) {\n this.rowCount = rowCount;\n this.columnCount = columnCount;\n data = new double[rowCount][columnCount];\n }",
"public Matrix asMatrix() {\n Matrix result;\n try {\n result = new Matrix(COMPONENTS, 1);\n asMatrix(result);\n } catch (final WrongSizeException ignore) {\n // never happens\n result = null;\n }\n return result;\n }"
]
| [
"0.67564726",
"0.66519576",
"0.6234498",
"0.61611545",
"0.61203086",
"0.6098193",
"0.6059387",
"0.600898",
"0.60085213",
"0.5978721",
"0.59114885",
"0.59088725",
"0.5829444",
"0.5766511",
"0.5678845",
"0.5668751",
"0.55887735",
"0.5588616",
"0.5576862",
"0.5570921",
"0.5559135",
"0.555898",
"0.55446184",
"0.55221826",
"0.55166584",
"0.5514245",
"0.55037946",
"0.55008936",
"0.5498263",
"0.54946303",
"0.54909563",
"0.5488693",
"0.5484746",
"0.54780126",
"0.5474496",
"0.5444776",
"0.5443105",
"0.54338753",
"0.5419968",
"0.5408127",
"0.53973097",
"0.53866214",
"0.5370534",
"0.53585345",
"0.5355228",
"0.5355059",
"0.535337",
"0.53514594",
"0.53255093",
"0.5323065",
"0.53226227",
"0.53056717",
"0.5301213",
"0.5286879",
"0.52858895",
"0.52842253",
"0.52731603",
"0.5270436",
"0.52645713",
"0.5261004",
"0.525788",
"0.5253154",
"0.5252182",
"0.52493346",
"0.52468866",
"0.5246238",
"0.52452123",
"0.52343863",
"0.5229919",
"0.52291405",
"0.5214641",
"0.52136695",
"0.521351",
"0.52011645",
"0.51975244",
"0.51933414",
"0.5177191",
"0.5174581",
"0.5170157",
"0.51687396",
"0.51675004",
"0.51672935",
"0.5167263",
"0.5166385",
"0.516464",
"0.5159816",
"0.5156028",
"0.515519",
"0.51512295",
"0.51507676",
"0.5138865",
"0.5135648",
"0.51328415",
"0.51300204",
"0.5123398",
"0.512201",
"0.5117229",
"0.50944525",
"0.5092923",
"0.5091841",
"0.5086973"
]
| 0.0 | -1 |
Initialize an empty matrix with the given dimensions | public Mat2(int rows, int cols) {
data = new double[rows][cols];
for(int i=0; i<rows; i++) {
for(int j=0; j<cols; j++) {
data[i][j] = 0;
}
}
this.rows = rows; this.cols = cols;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix(){\r\n\t\t\r\n\t\t//dim = dimension; for now, only 3-dim. matrices are being handled\r\n\t\tmat = new int[dim][dim];\r\n\t\t\r\n\t\tfor(int rowi = 0; rowi < dim; rowi++ )\r\n\t\t\tfor (int coli = 0; coli < dim; coli++)\r\n\t\t\t\tmat[rowi][coli]=0;\r\n\t}",
"public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"public Matrix() {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"Matrix(int rows, int columns) {\n try {\n if (rows < 1 || columns < 1) {\n throw zeroSize;\n }\n this.rows = rows;\n this.columns = columns;\n matrix = new int[rows][columns];\n\n for (int rw = 0; rw < rows; rw++) {\n for (int col = 0; col < columns; col++) {\n matrix[rw][col] = (int) Math.floor(Math.random() * 100);\n }\n }\n }\n catch (Throwable zeroSize) {\n zeroSize.printStackTrace();\n }\n\n }",
"Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }",
"Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }",
"public Matrice(int dim){\n\t\tnr=dim;\n\t\tnc=nr;\n\t\tmat = new int[nr][nc];\n\t}",
"public Matrix33() {\r\n // empty\r\n }",
"public static Matrix Zero(int n) {\n return new Matrix(get2DListOfSize(n));\n }",
"public static Matrix makeZero(int rows, int columns) {\n\t\treturn new Matrix(rows, columns);\n\t}",
"public int[][] initMatrix(int n)\n {\n\t// create an empty 2d array and return it! Simple stuff here.\n\t int[][] retMatrix = new int[n][n];\n\t return retMatrix;\n }",
"public Matrix(int n) {\n\t\tsize = n;\n\t\tm = new int[size][size];\n\t}",
"public Matrix(int rows, int cols) {\n this.rows = rows;\n this.cols = cols;\n data = new double[rows][cols];\n }",
"public DenseMatrix( int rows , int columns )\n\t{\n\t\tsuper( rows , columns );\n\n\t\tmatrixData\t\t= new double[ rows ][ columns ];\n\t}",
"public Matrix(int rows, int columns) {\n\t\tthis.rows = rows;\n\t\tthis.columns = columns;\n\t\tthis.matrix = new double[rows][columns];\n\t}",
"private void initializeGrid()\n {\n \t\n // initialize grid as a 2D ARRAY OF THE APPROPRIATE DIMENSIONS\n \tgrid = new int [NUM_ROWS][NUM_COLS];\n\n\n //INITIALIZE ALL ELEMENTS OF grid TO THE VALUE EMPTY\n \tfor(int row = 0; row < NUM_ROWS; row++){\n \t\tfor(int col = 0; col < NUM_COLS; col++){\n \t\t\tgrid[row][col] = EMPTY;\n \t\t}\n \t}\n }",
"protected SimpleMatrix() {}",
"private String[][] createEmptyMatrix(int rows, int columns) {\r\n\t\tString[][] outputMatrix = new String[rows][columns];\r\n\t\tfor (int i = 0; i < rows; i++) {\r\n\t\t\tfor (int j = 0; j < columns; j++) {\r\n\t\t\t\toutputMatrix[i][j] = \"\";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn outputMatrix;\r\n\t}",
"Matrix(double[][] input) {\n matrixVar = input;\n columns = matrixVar[0].length;\n rows = matrixVar.length;\n }",
"protected GamaMatrix(final IScope scope, final List objects, final ILocation preferredSize, final IType contentsType) {\r\n\t\tif ( preferredSize != null ) {\r\n\t\t\tnumRows = (int) preferredSize.getY();\r\n\t\t\tnumCols = (int) preferredSize.getX();\r\n\t\t} else if ( objects == null || objects.isEmpty() ) {\r\n\t\t\tnumRows = 1;\r\n\t\t\tnumCols = 1;\r\n\t\t} else if ( GamaMatrix.isFlat(objects) ) {\r\n\t\t\tnumRows = 1;\r\n\t\t\tnumCols = objects.size();\r\n\t\t} else {\r\n\t\t\tnumCols = objects.size();\r\n\t\t\tnumRows = ((List) objects.get(0)).size();\r\n\t\t}\r\n\t\tthis.type = Types.MATRIX.of(contentsType);\r\n\t}",
"public Matrix(ComplexNumber[][] rows) {\n\t\tROWS = rows;\n\t\tM = rows.length;\n\t\tN = rows[0].length;\n\t\tfor (int row = 0; row < M; row++) {\n\t\t\tif (rows[row].length != N) {\n\t\t\t\tthrow new RuntimeException(\"Non-Rectangular Matrix!\");\n\t\t\t}\n\t\t}\n\t}",
"public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }",
"public Matrix(int rowSize, int columnSize) {\n if (rowSize < 1 || columnSize < 1) {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n } else {\n matrix = new double[rowSize][columnSize];\n }\n }",
"public Matrix(int nrOfRows, int nrOfCols) {\n this.nrOfRows = nrOfRows;\n this.nrOfCols = nrOfCols;\n inner = new BigInteger[nrOfRows][nrOfCols];\n }",
"public JCudaMatrix(int rows) {\n this(rows, 1);\n }",
"public MultiArrayDimension() {\n\t\tthis(\"\", 0, 0);\n\t}",
"public int[][] createEmptyGrid() {\n int[][] emptyGrid = new int[9][9];\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n emptyGrid[row][col] = 0;\n }\n }\n return emptyGrid;\n }",
"public Sudoku() {\n\t\tgrid = new Variable[ROWS][COLUMNS];\n\t}",
"public void initializeGrid() {\n for (int i = minRow; i <= maxRow; i++) {\n for (int j = minCol; j <= maxCol; j++) {\n grid[i][j] = 0;\n }\n }\n }",
"public Matrix(int n) {\n\t\tif (n < 1) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.n = n;\n\t\tthis.content = new double[n][n];\n\t\tthis.hash = hashCode();\n\t}",
"public static Mat2 initIdentity(int size) {\n\t\tdouble[][] data = new double[size][size];\n\t\tfor(int i=0; i<size; i++) {\n\t\t\tfor(int j=0; j<size; j++) {\n\t\t\t\tdata[i][j] = 0;\n\t\t\t\tif(i==j) data[i][j] = 1;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(data);\n\t}",
"public Matrix(int rowCount, int columnCount) {\n this.rowCount = rowCount;\n this.columnCount = columnCount;\n data = new double[rowCount][columnCount];\n }",
"@Override\r\n\tpublic void initialise(int dimensions) {\n\t\tinitialise(dimensions, kernelWidth);\r\n\t}",
"public Matrix(int m, int n) {\n this.m = m;\n this.n = n;\n data = new double[m][n];\n }",
"private void initialise() {\r\n\t\tfor(int i = 0; i < board.getWidth(); i++) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), i, j);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Board() {\n\t\tfor(int i = 0; i < board.length; i++){\n\t\t\tfor(int j = 0; j < board[i].length; j++){\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"void makeZero(){\n nnz = 0;\n for(int i=0; i<this.matrixSize; i++){\n this.rows[i] = new List();\n }\n }",
"Matrix(int r,int c)\n {\n this.r=r;\n this.c=c;\n arr=new int[r][c];\n }",
"public static int[][] initializeMatrix(int version) {\n\t\t\n\t\tfinal int SIZE = QRCodeInfos.getMatrixSize(version);\n\t\tint[][] matrix = new int[SIZE][SIZE];\n\t\t\n\t\tfor (int i = 0; i < SIZE; ++i) {\n\t\t\tArrays.fill(matrix[i], 0);\n\t\t}\n\t\t\n\t\treturn matrix;\n\t}",
"public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }",
"public Sudoku() {\n this.board = new int[size][size];\n }",
"public Matrix(int x, int y) {\n\t\tnrow=x;\n\t\tncol=y;\n\t\tmat = new int[x][y];\n\t\t\n\n\t}",
"private Environment(int rows, int columns)\r\n\t{\r\n\t\tthis.rows = rows;\r\n\t\tthis.columns = columns;\r\n\t\tcells = new Cell[rows][columns];\r\n\t\tfor (int i = 0; i < rows; i++)\r\n\t\t\tfor (int j = 0; j < columns; j++)\r\n\t\t\t\tcells[i][j] = new Cell();\r\n\t}",
"private void initialize()\n\t{\n\t\tfor(int i = 0 ; i < SOM.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j < SOM[0].length; j++)\n\t\t\t{ \n\t\t\t\tSOM[i][j] = new Node(INPUT_DIMENSION,i,j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSOM_HORIZONTAL_LENGTH = SOM[0].length;\n\t\tSOM_VERTICAL_LENGTH = SOM.length;\n\t}",
"public Matrix(int M, int N) {\n this.M = M;\n this.N = N;\n data = new double[M][N];\n }",
"public static Matrix Identity(int n) {\n List<List<Double>> backingArray = get2DListOfSize(n);\n for(int i = 0; i < n; i++)\n backingArray.get(i).set(i, 1d);\n return new Matrix(backingArray);\n }",
"public Matrix(int[][] rows) {\n\t\tComplexNumber[][] complexRows = new ComplexNumber[rows.length][];\n\t\tfor (int row = 0; row < rows.length; row++) {\n\t\t\tcomplexRows[row] = new ComplexNumber[rows[row].length];\n\t\t\tfor (int col = 0; col < rows[row].length; col++) {\n\t\t\t\tFraction real = new Fraction(rows[row][col]);\n\t\t\t\tFraction imaginary = new Fraction(0);\n\t\t\t\tcomplexRows[row][col] = new ComplexNumber(real, imaginary);\n\t\t\t}\n\t\t}\n\t\tROWS = complexRows;\n\t\tM = complexRows.length;\n\t\tN = complexRows[0].length;\n\t\tfor (int row = 0; row < M; row++) {\n\t\t\tif (complexRows[row].length != N) {\n\t\t\t\tthrow new RuntimeException(\"Non-Rectangular Matrix!\");\n\t\t\t}\n\t\t}\n\t}",
"public LdpcMatrix(int width, int height) {\r\n this.width = width;\r\n this.height = height;\r\n this.matrix = new byte[height][width];\r\n populate(matrix);\r\n }",
"public void initialise(Graph graph) {\n Entry[][] matrix = graph.matrix();\n matrix[START_INDEX][0] = new Entry(0.0, 0.0);\n double initial = 1.0 / graph.size();\n\n for (int i = 1; i < graph.size(); i++) {\n matrix[i][0] = new Entry(initial, initial);\n }\n }",
"public Matrice(int nr, int nc){\n\t\tthis.nr=nr;\n\t\tthis.nc=nc;\n\t\tmat = new int[nr][nc];\n\t}",
"static public Matrix identityMatrix(int size) {\n Matrix identity = new Matrix(size, size);\n\n for (int i = 0; i < size; i++) {\n identity.data[i][i] = 1;\n }\n\n return identity;\n }",
"public SudokuSolver() {\n matrix = new int[DIM][DIM];\n\n IntStream.range(0, DIM * DIM)\n .forEach(\n n -> {\n int i = n / DIM;\n int j = n % DIM;\n matrix[i][j] = 0;\n });\n }",
"public TriangleSolitaireModelImpl(int dimensions, int emptyRow, int emptyCol)\r\n throws IllegalArgumentException {\r\n super(new TriangleBoard(dimensions, emptyRow, emptyCol));\r\n }",
"private TETile[][] initialize() {\n int width = size.width;\n int height = size.height;\n world = new TETile[width][height];\n for (int w = 0; w < width; w++) {\n for (int h = 0; h < height; h++) {\n world[w][h] = Tileset.NOTHING;\n }\n }\n return world;\n }",
"public Matrix(int nrow, int ncol){\r\n\t\tthis.nrow = nrow;\r\n\t\tthis.ncol = ncol;\r\n\t \tthis.matrix = new double[nrow][ncol];\r\n\t\tthis.index = new int[nrow];\r\n for(int i=0;i<nrow;i++)this.index[i]=i;\r\n }",
"public BuildGrid(int dim)\n {\n System.out.print(\"Creating a new grid: \");\n\n m_grid = new double[dim][dim];\n setDimX(dim);\n setDimY(dim);\n\n this.fillWith(0);\n System.out.println(\"Done\");\n }",
"public static Matrix getIdentityMatrix(int size) {\r\n Matrix m = new Matrix(size, size);\r\n\r\n for (int i = 0; i < size; i++) {\r\n m.setValue(i, i, 1);\r\n }\r\n\r\n return m;\r\n }",
"@Test\n public void testConstructor() {\n final Matrix33d m = new Matrix33d();\n double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n assertEquals(a[i], 0D);\n }\n }",
"public Matrix(double[][] data) {\n M = data.length;\n N = data[0].length;\n this.data = new double[M][N];\n for (int i = 0; i < M; i++)\n for (int j = 0; j < N; j++)\n this.data[i][j] = data[i][j];\n }",
"public Sudoku() {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tthis.initialState[i][j] = this.currentState[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"public void initialize(int size);",
"protected abstract T createMatrix( int numRows, int numCols, MatrixType type );",
"private void initializeGameBoard()\n\t{\n\t\tboard = new State[3][3];\n\t\tfor (int r = 0; r < 3; r++)\n\t\t\tfor (int c = 0; c < 3; c++)\n\t\t\t\tboard[r][c] = State.EMPTY;\n\t}",
"protected ArrayList<double[]> newMatrix(int _rows, int _cols) {\n ArrayList<double[]> matrix = new ArrayList<double[]>();\n for (int i=0; i<_rows; i++) {\n matrix.add(new double[_cols]);\n }\n return matrix;\n }",
"public static Matrix identity(int N) {\n Matrix I = new Matrix(N, N);\n for (int i = 0; i < N; i++)\n I.data[i][i] = 1;\n return I;\n }",
"public static Matrix identity(int N) {\n Matrix I = new Matrix(N, N);\n for (int i = 0; i < N; i++)\n I.data[i][i] = 1;\n return I;\n }",
"public void initIdentity() \r\n\t{\r\n\t\tm[0][0] = 1.0f; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = 0.0f;\r\n\t\tm[1][0] = 0.0f; m[1][1] = 1.0f; m[1][2] = 0.0f; m[1][3] = 0.0f;\r\n\t\tm[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = 1.0f; m[2][3] = 0.0f;\r\n\t\tm[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 0.0f; m[3][3] = 1.0f;\r\n\t}",
"private void initializeGraphAsEmpty() {\n int max = getNumNodes();\n\n parentMatrix = new int[getNumNodes()][max];\n childMatrix = new int[getNumNodes()][max];\n\n for (int i = 0; i < getNumNodes(); i++) {\n parentMatrix[i][0] = 1; //set first node\n childMatrix[i][0] = 1;\n }\n\n for (int i = 0; i < getNumNodes(); i++) {\n for (int j = 1; j < max; j++) {\n parentMatrix[i][j] = -5; //set first node\n childMatrix[i][j] = -5;\n }\n }\n }",
"public Map(){\n this.matrix = new int[10][10];\n }",
"public static Matrix identityMatrix(int nrow){\r\n \tMatrix u = new Matrix(nrow, nrow);\r\n \tfor(int i=0; i<nrow; i++){\r\n \t\tu.matrix[i][i]=1.0;\r\n \t}\r\n \treturn u;\r\n \t}",
"public Matrix(double[] data) {\n m = data.length;\n n = 1;\n this.data = new double[m][n];\n for (int i = 0; i < m; i++)\n {\n for (int j = 0; j < n; j++)\n {\n \tthis.data[i][j] = data[i];\n }\n }\n }",
"public Grid()\n\t{\n\t\tfor (int x =0;x<=8;x++)\n\t\t\tgrid[x]=0;\n }",
"public static IndexedTensor zeros(int[] size, String... indices) {\n return new IndexedTensor(Tensor.zeros(size), indices);\n }",
"public static Matrix buildMatrixFromCommandLine (){\n\n int M = 0;\n int N = 0;\n double[][] data;\n\n M = new Double(getDoubleWithMessage(\"Enter rows number: \")).intValue();\n N = new Double(getDoubleWithMessage(\"Enter columns number: \")).intValue();\n System.out.println(\"You have matrix: \" + M + \"x\" + N);\n\n data = new double[M][N];\n\n for (int i = 0; i < M; i++){\n System.out.println(\"Row: \" + i);\n for (int j = 0; j < N; j++){\n data[i][j] = getDoubleWithMessage(\"Column: \" + j);\n }\n }\n return new Matrix(data);\n }",
"public CellularAutomaton(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tcellMatrix = new int[width][height];\n\t}",
"public SparseMatrix(int rank) {\n\t\t// Update matrix's rank\n\t\tthis.rank = rank;\n\n\t\t//Create empty data structures for this empty matrix\n\t\tfor(int i=0; i<rank+1; i++) {rowPtr.add(0);}\n\t}",
"public Matrix(int nrOfRows, int nrOfCols, Random rand, BigInteger q) {\n this(nrOfRows, nrOfCols);\n for (int col = 0; col < nrOfCols; col++) {\n for (int row = 0; row < nrOfRows; row++) {\n inner[row][col] = rand.nextRandom(q);\n }\n }\n }",
"public void initialize() {\n\t\tnumRows = gridConfig.getNumRows();\n\t\tnumCols = gridConfig.getNumCols();\n\t\tgridCellCount = numRows * numCols;\n\t\tcreateMaps();\n\t\tsetCurrSimulationMap();\n\t\tcellWidth = SIZE / numCols;\n\t\tcellHeight = SIZE / numRows;\n\t\tcurrentGrid = new Cell[numRows][numCols];\n\t\tnewGrid = new Cell[numRows][numCols];\n\t\tempty(currentGrid);\n\t\tempty(newGrid);\n\t\tsetShapes();\n\t\tsetInitialStates();\n\t}",
"public Matrix(double[][] A, int m, int n) {\n this.data = A;\n this.m = m;\n this.n = n;\n }",
"public void setToInitialState(int dimension, int numberOfEmptySlots);",
"protected DenseMatrix()\n\t{\n\t}",
"public Matrix(Fraction[][] rows) {\n\t\tComplexNumber[][] complexRows = new ComplexNumber[rows.length][];\n\t\tfor (int row = 0; row < rows.length; row++) {\n\t\t\tcomplexRows[row] = new ComplexNumber[rows[row].length];\n\t\t\tfor (int col = 0; col < rows[row].length; col++) {\n\t\t\t\tcomplexRows[row][col] = new ComplexNumber(rows[row][col]);\n\t\t\t}\n\t\t}\n\t\tROWS = complexRows;\n\t\tM = complexRows.length;\n\t\tN = complexRows[0].length;\n\t\tfor (int row = 0; row < M; row++) {\n\t\t\tif (complexRows[row].length != N) {\n\t\t\t\tthrow new RuntimeException(\"Non-Rectangular Matrix!\");\n\t\t\t}\n\t\t}\n\t}",
"public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }",
"public void SetMatrixToZeros() {\n \n\t/*\n\tinputs--\n\t*/\n\t\n\t/*\n\toutputs--\n\t*/\n\t\n\tthis.mat_f_m[0][0] = 0;\t this.mat_f_m[0][1] = 0;\tthis.mat_f_m[0][2] = 0;\t this.mat_f_m[0][3] = 0;\n\tthis.mat_f_m[1][0] = 0;\t this.mat_f_m[1][1] = 0;\tthis.mat_f_m[1][2] = 0;\t this.mat_f_m[1][3] = 0;\n\tthis.mat_f_m[2][0] = 0;\t this.mat_f_m[2][1] = 0;\tthis.mat_f_m[2][2] = 0;\t this.mat_f_m[2][3] = 0;\n\tthis.mat_f_m[3][0] = 0;\t this.mat_f_m[3][1] = 0;\tthis.mat_f_m[3][2] = 0;\t this.mat_f_m[3][3] = 0;\t\n \n }",
"public VariableGridLayout() {\n\t\tthis(FIXED_NUM_ROWS, 1, 0, 0);\n\t}",
"public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}",
"private void initGameMatrix() {\n double matrixTileHeight = this.fieldPane.getMaxHeight() / 11;\n double matrixTileWidth = this.fieldPane.getMaxWidth() / 11;\n\n for (int i = 0; i < this.fieldPane.getMaxWidth(); i += matrixTileWidth) {\n for (int j = 0; j < this.fieldPane.getMaxHeight(); j += matrixTileHeight) {\n Rectangle2D r = new Rectangle2D(j, i, matrixTileWidth, matrixTileHeight);\n gameMatrix.add(r);\n }\n }\n }",
"public BuildGrid()\n {\n System.out.print(\"Creating a new grid: \");\n\n m_grid = new double[1][5];\n setDimX(1);\n setDimY(5);\n\n this.fillWith(0);\n System.out.println(\"Done\");\n }",
"public SparseBinaryMatrix(int numRows, int numCols) {\n this.numRows = numRows;\n this.numCols = numCols;\n this.rows = new int[this.numRows][];\n for (int i = 0; i < this.numRows; i++) {\n this.rows[i] = new int[0]; //Util.EMPTY_INT_ARRAY;\n }\n this.cols = new IntSet[this.numCols];\n }",
"public static JTensor newWithSize1d(long size0) {\n return new JTensor(\n TH.THTensor_(newWithSize1d)(size0)\n );\n }",
"private static void InitializeCells()\n {\n cells = new Cell[Size][Size];\n\n for (int i = 0; i < Size; i++)\n {\n for (int j = 0; j < Size; j++)\n {\n cells[i][j] = new Cell(i, j);\n }\n }\n }",
"public Board (int rSize, int cSize)\r\n\t{\r\n\t\tint i, x;\r\n\t\tRow_Size = rSize;\r\n\t\tColumn_Size = cSize;\r\n\t\tLayout = new int [Row_Size][Column_Size];\r\n\r\n\t\tfor(i=0;i<Row_Size;i++)\r\n\t\t{\r\n\t\t\tfor(x=0;x<Column_Size;x++)\r\n\t\t\t{\r\n\t\t\t\tLayout[i][x] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public Matrix(double[][] twoD){\r\n\t\tthis.nrow = twoD.length;\r\n\t\tthis.ncol = twoD[0].length;\r\n\t\tfor(int i=0; i<nrow; i++){\r\n\t\t if(twoD[i].length!=ncol)throw new IllegalArgumentException(\"All rows must have the same length\");\r\n\t\t}\r\n\t\tthis.matrix = twoD;\r\n\t\tthis.index = new int[nrow];\r\n for(int i=0;i<nrow;i++)this.index[i]=i;\r\n \t}",
"public void clear() {\n rows = cols = 0;\n matrix.clear();\n }",
"public static BinaryMatrix fromBlank(int height, int width){\n\t\tboolean[][] array=new boolean[height][width];\n\t\treturn new BinaryMatrix(array);\n\t}",
"@Override\n\tpublic void initialize(int nodeCount, int patternCount, int matrixCount, boolean integrateCategories) {\n\n this.nodeCount = nodeCount;\n this.patternCount = patternCount;\n this.matrixCount = matrixCount;\n\n this.integrateCategories = integrateCategories;\n\n if (integrateCategories) {\n partialsSize = patternCount * stateCount * matrixCount;\n } else {\n partialsSize = patternCount * stateCount;\n }\n\n partials = new double[2][nodeCount][];\n// storedPartials = new double[2][nodeCount][];\n\n currentMatricesIndices = new int[nodeCount];\n storedMatricesIndices = new int[nodeCount];\n\n currentPartialsIndices = new int[nodeCount];\n storedPartialsIndices = new int[nodeCount];\n\n// states = new int[nodeCount][];\n\n for (int i = 0; i < nodeCount; i++) {\n partials[0][i] = null;\n partials[1][i] = null;\n\n// states[i] = null;\n }\n\n matrixSize = stateCount * stateCount;\n\n matrices = new double[2][nodeCount][matrixCount * matrixSize];\n }",
"private static Integer[][] createRandomStart(Integer dimension) {\n Integer[][] startmatrix = new Integer[dimension][dimension];\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n startmatrix[i][j] = (int)(Math.random() * 2);\n }\n }\n return startmatrix;\n }",
"private SparseMatrix<Float64> makeCR0(int numberOfRows) {\n\t\tList<SparseVector<Float64>> matrix =\n\t\t\tnew ArrayList<SparseVector<Float64>>();\n\t\tfor (int i = 0; i < numberOfRows; i++) {\n\t\t\tmatrix.add(SparseVector.valueOf(numberOfRows, Float64.ZERO, i,\n\t\t\t\tFloat64.ONE));\n\t\t}\n\t\treturn SparseMatrix.valueOf(new AllSame<Float64>(numberOfRows,\n\t\t\tFloat64.ONE), Float64.ZERO);\n\t}",
"public Matrix(double[][] data) {\n rowCount = data.length;\n columnCount = data[0].length;\n this.data = new double[rowCount][columnCount];\n for (int i = 0; i < rowCount; i++)\n for (int j = 0; j < columnCount; j++)\n this.data[i][j] = data[i][j];\n }",
"static private double[][] initMatrix(double[][] c) {\n final int N = c.length;\n final double value = 1 / Math.sqrt(2.0);\n\n for (int i = 1; i < N; i++) {\n for (int j = 1; j < N; j++) {\n c[i][j] = 1;\n }\n }\n\n for (int i = 0; i < N; i++) {\n c[i][0] = value;\n c[0][i] = value;\n }\n c[0][0] = 0.5;\n return c;\n }",
"public SimpleMatrix( int numRows, int numCols, MatrixType type ) {\n switch (type) {\n case DDRM:\n setMatrix(new DMatrixRMaj(numRows, numCols));\n break;\n case FDRM:\n setMatrix(new FMatrixRMaj(numRows, numCols));\n break;\n case ZDRM:\n setMatrix(new ZMatrixRMaj(numRows, numCols));\n break;\n case CDRM:\n setMatrix(new CMatrixRMaj(numRows, numCols));\n break;\n case DSCC:\n setMatrix(new DMatrixSparseCSC(numRows, numCols));\n break;\n case FSCC:\n setMatrix(new FMatrixSparseCSC(numRows, numCols));\n break;\n default:\n throw new RuntimeException(\"Unknown matrix type\");\n }\n }"
]
| [
"0.7234714",
"0.71069586",
"0.70669025",
"0.6922624",
"0.67676467",
"0.6659391",
"0.66120905",
"0.66070795",
"0.65068537",
"0.6496498",
"0.643873",
"0.6405048",
"0.63486475",
"0.63136506",
"0.63116026",
"0.63018966",
"0.6263074",
"0.62036324",
"0.6195014",
"0.61745507",
"0.6157364",
"0.6154336",
"0.61387306",
"0.61349636",
"0.61318105",
"0.61131215",
"0.6059927",
"0.6037785",
"0.6018515",
"0.6013298",
"0.5991666",
"0.59725904",
"0.5958186",
"0.5947661",
"0.59464663",
"0.59272647",
"0.59071475",
"0.58947784",
"0.5889095",
"0.5870891",
"0.5868203",
"0.58465105",
"0.5808324",
"0.58080834",
"0.57976013",
"0.57940406",
"0.5786859",
"0.57770294",
"0.57703793",
"0.5761778",
"0.5752928",
"0.57469493",
"0.57257366",
"0.57211334",
"0.5714542",
"0.5709179",
"0.5702496",
"0.56965977",
"0.5695676",
"0.56956655",
"0.5679997",
"0.5677041",
"0.5674286",
"0.56443125",
"0.563948",
"0.563948",
"0.5632989",
"0.56260705",
"0.5607113",
"0.5605183",
"0.5604516",
"0.55999464",
"0.55980617",
"0.55969083",
"0.55967504",
"0.5585334",
"0.5584337",
"0.55842465",
"0.557669",
"0.5553981",
"0.5529426",
"0.5529388",
"0.5528735",
"0.55269074",
"0.55231756",
"0.55152386",
"0.55134416",
"0.55091417",
"0.5509135",
"0.55084527",
"0.5496904",
"0.54902196",
"0.5481649",
"0.5479185",
"0.5474065",
"0.5469549",
"0.54435146",
"0.54401",
"0.5430821",
"0.54147",
"0.5412893"
]
| 0.0 | -1 |
Initialize an empty square matrix of the given size | public Mat2(int size) {
this(size, size);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"public Matrix() {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"static public Matrix identityMatrix(int size) {\n Matrix identity = new Matrix(size, size);\n\n for (int i = 0; i < size; i++) {\n identity.data[i][i] = 1;\n }\n\n return identity;\n }",
"public static Mat2 initIdentity(int size) {\n\t\tdouble[][] data = new double[size][size];\n\t\tfor(int i=0; i<size; i++) {\n\t\t\tfor(int j=0; j<size; j++) {\n\t\t\t\tdata[i][j] = 0;\n\t\t\t\tif(i==j) data[i][j] = 1;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(data);\n\t}",
"public static Matrix getIdentityMatrix(int size) {\r\n Matrix m = new Matrix(size, size);\r\n\r\n for (int i = 0; i < size; i++) {\r\n m.setValue(i, i, 1);\r\n }\r\n\r\n return m;\r\n }",
"private Board(int size)\n {\n array = new char[size][size];\n \n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n array[i][j] = EMPTY;\n }",
"public Matrix(int n) {\n\t\tsize = n;\n\t\tm = new int[size][size];\n\t}",
"public Matrix(int rowSize, int columnSize) {\n if (rowSize < 1 || columnSize < 1) {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n } else {\n matrix = new double[rowSize][columnSize];\n }\n }",
"public void initialize(int size);",
"Matrix(int rows, int columns) {\n try {\n if (rows < 1 || columns < 1) {\n throw zeroSize;\n }\n this.rows = rows;\n this.columns = columns;\n matrix = new int[rows][columns];\n\n for (int rw = 0; rw < rows; rw++) {\n for (int col = 0; col < columns; col++) {\n matrix[rw][col] = (int) Math.floor(Math.random() * 100);\n }\n }\n }\n catch (Throwable zeroSize) {\n zeroSize.printStackTrace();\n }\n\n }",
"public static Matrix Zero(int n) {\n return new Matrix(get2DListOfSize(n));\n }",
"public Sudoku() {\n this.board = new int[size][size];\n }",
"public Board(int size) {\n initialize(size, null);\n }",
"public Sudoku(int size){\n\t\tthis.size = size;\n\t\tnumbers = new int[size*size][size*size];\n\t\tfixedNumbers = new boolean[size*size][size*size];\n\t\t// create sudoku which is yet to be initialized and set them unfixed\n\t\t// (all numbers are zero)\n\t\tfor (int i = 0; i < size*size; i++){\n\t\t\tfor (int j = 0; j < size*size; j++){\n\t\t\t\tnumbers[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"public Matrix(){\r\n\t\t\r\n\t\t//dim = dimension; for now, only 3-dim. matrices are being handled\r\n\t\tmat = new int[dim][dim];\r\n\t\t\r\n\t\tfor(int rowi = 0; rowi < dim; rowi++ )\r\n\t\t\tfor (int coli = 0; coli < dim; coli++)\r\n\t\t\t\tmat[rowi][coli]=0;\r\n\t}",
"Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }",
"public Board (int rSize, int cSize)\r\n\t{\r\n\t\tint i, x;\r\n\t\tRow_Size = rSize;\r\n\t\tColumn_Size = cSize;\r\n\t\tLayout = new int [Row_Size][Column_Size];\r\n\r\n\t\tfor(i=0;i<Row_Size;i++)\r\n\t\t{\r\n\t\t\tfor(x=0;x<Column_Size;x++)\r\n\t\t\t{\r\n\t\t\t\tLayout[i][x] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public int[][] initMatrix(int n)\n {\n\t// create an empty 2d array and return it! Simple stuff here.\n\t int[][] retMatrix = new int[n][n];\n\t return retMatrix;\n }",
"public void initialize(int size) {\n setMaxSize(size);\n }",
"private void generateMatrix(int n) throws InvalidSizeException{\n\t\tif(n%2 == 0 || n == 0 || n < 0) {\n\t\t\tthrow new InvalidSizeException(n);\n\t\t}else {\n\t\t\tmatrix = new int[n][n];\n\t\t\tsize = n;\n\t\t}\n\t}",
"public Matrix(int nrOfRows, int nrOfCols) {\n this.nrOfRows = nrOfRows;\n this.nrOfCols = nrOfCols;\n inner = new BigInteger[nrOfRows][nrOfCols];\n }",
"public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }",
"protected SimpleMatrix() {}",
"public Matrix33() {\r\n // empty\r\n }",
"Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }",
"public static JTensor newWithSize1d(long size0) {\n return new JTensor(\n TH.THTensor_(newWithSize1d)(size0)\n );\n }",
"private void initialise() {\r\n\t\tfor(int i = 0; i < board.getWidth(); i++) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), i, j);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Graph(int size) {\n\t\tmatrix = new int[size][size];\n\t\tthis.size = size;\n\n\t\tfor(int i = 0; i < size; i++) {\n\t\t\tfor(int j = 0; j < size; j++) {\n\t\t\t\tmatrix[i][j] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// make space for the values (and ignore the cast warning)\n\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tType[] values = (Type[]) new Object[size];\n\t\tthis.values = values;\n\t}",
"public int[][] createBoard(int size){\r\n\t\tint[][] newBoard = new int[size+1][size+1];\r\n\t\tfor (int i = 0; i < newBoard.length; i++){\r\n\t\t\tfor (int j = 0; j < newBoard[i].length; j++) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tnewBoard[i][j] = j;\r\n\t\t\t\t} else if (j == 0) {\r\n\t\t\t\t\tnewBoard[i][j] = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}newBoard[0][0] = 0;\r\n\treturn newBoard;\r\n\t}",
"public static Matrix Identity(int n) {\n List<List<Double>> backingArray = get2DListOfSize(n);\n for(int i = 0; i < n; i++)\n backingArray.get(i).set(i, 1d);\n return new Matrix(backingArray);\n }",
"public void makeIdentity() {\n if (rows == cols) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n if (i == j) {\n matrix.get(i)[j] = 1;\n }\n else {\n matrix.get(i)[j] = 0;\n }\n }\n }\n }\n else {\n throw new NonSquareMatrixException();\n }\n }",
"public HashTable(int size) {\n\t\tallocateArray(size);\n\t\tclear();\n\t}",
"void makeZero(){\n nnz = 0;\n for(int i=0; i<this.matrixSize; i++){\n this.rows[i] = new List();\n }\n }",
"public SudokuSolver() {\n matrix = new int[DIM][DIM];\n\n IntStream.range(0, DIM * DIM)\n .forEach(\n n -> {\n int i = n / DIM;\n int j = n % DIM;\n matrix[i][j] = 0;\n });\n }",
"private void initWithSize(int size) {\r\n this.size = size;\r\n if (size == 0) {\r\n size = 1; //Prevents memory allocation problem on GPU\r\n }\r\n\r\n normalX = new double[size];\r\n normalY = new double[size];\r\n normalZ = new double[size];\r\n\r\n vertexAX = new double[size];\r\n vertexAY = new double[size];\r\n vertexAZ = new double[size];\r\n\r\n edgeBAX = new double[size];\r\n edgeBAY = new double[size];\r\n edgeBAZ = new double[size];\r\n\r\n edgeCAX = new double[size];\r\n edgeCAY = new double[size];\r\n edgeCAZ = new double[size];\r\n\r\n centerX = new double[size];\r\n centerY = new double[size];\r\n centerZ = new double[size];\r\n\r\n area = new double[size];\r\n }",
"private void initializeGrid()\n {\n \t\n // initialize grid as a 2D ARRAY OF THE APPROPRIATE DIMENSIONS\n \tgrid = new int [NUM_ROWS][NUM_COLS];\n\n\n //INITIALIZE ALL ELEMENTS OF grid TO THE VALUE EMPTY\n \tfor(int row = 0; row < NUM_ROWS; row++){\n \t\tfor(int col = 0; col < NUM_COLS; col++){\n \t\t\tgrid[row][col] = EMPTY;\n \t\t}\n \t}\n }",
"public Sudoku() {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tthis.initialState[i][j] = this.currentState[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"public CellQueue(int size) {\n\t\tif (size <= 0) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Initial size must be greater than 0\");\n\t\t}\n\t\tmanyItems = 0;\n\t\tdata = new Cell[size];\n\t}",
"public Board() {\n\t\tfor(int i = 0; i < board.length; i++){\n\t\t\tfor(int j = 0; j < board[i].length; j++){\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"public Matrix(int x, int y) {\n\t\tnrow=x;\n\t\tncol=y;\n\t\tmat = new int[x][y];\n\t\t\n\n\t}",
"Matrix(double[][] input) {\n matrixVar = input;\n columns = matrixVar[0].length;\n rows = matrixVar.length;\n }",
"public Sudoku() {\n\t\tgrid = new Variable[ROWS][COLUMNS];\n\t}",
"private static void InitializeCells()\n {\n cells = new Cell[Size][Size];\n\n for (int i = 0; i < Size; i++)\n {\n for (int j = 0; j < Size; j++)\n {\n cells[i][j] = new Cell(i, j);\n }\n }\n }",
"protected GamaMatrix(final IScope scope, final List objects, final ILocation preferredSize, final IType contentsType) {\r\n\t\tif ( preferredSize != null ) {\r\n\t\t\tnumRows = (int) preferredSize.getY();\r\n\t\t\tnumCols = (int) preferredSize.getX();\r\n\t\t} else if ( objects == null || objects.isEmpty() ) {\r\n\t\t\tnumRows = 1;\r\n\t\t\tnumCols = 1;\r\n\t\t} else if ( GamaMatrix.isFlat(objects) ) {\r\n\t\t\tnumRows = 1;\r\n\t\t\tnumCols = objects.size();\r\n\t\t} else {\r\n\t\t\tnumCols = objects.size();\r\n\t\t\tnumRows = ((List) objects.get(0)).size();\r\n\t\t}\r\n\t\tthis.type = Types.MATRIX.of(contentsType);\r\n\t}",
"public double[][] getIdentityMatrix(int size) {\n\t\tdouble[][] identityMatrix = new double[size][size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\tif (i == j) {\n\t\t\t\t\tidentityMatrix[i][j] = 1.;\n\t\t\t\t} else {\n\t\t\t\t\tidentityMatrix[i][j] = 0.;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn identityMatrix;\n\t}",
"public Grid(int recRowSize, int recColSize) {\r\n counter = 0;\r\n rowSize = recRowSize;\r\n colSize = recColSize;\r\n myCells = new Cell[recRowSize + 2][recColSize + 2];\r\n for (int row = 0; row < myCells.length; row++) {\r\n for (int col = 0; col < myCells[row].length; col++) {\r\n myCells[row][col] = new Cell();\r\n }\r\n }\r\n }",
"public ThreeStonesBoard(int size) {\r\n this.size = size;\r\n this.board = new Tile[size][size];\r\n }",
"public Table_old(int _size) {\r\n size = _size;\r\n table = new int[size][size];\r\n temp_table = new int[size][size]; \r\n }",
"public static Matrix identity(int N) {\n Matrix I = new Matrix(N, N);\n for (int i = 0; i < N; i++)\n I.data[i][i] = 1;\n return I;\n }",
"public static Matrix identity(int N) {\n Matrix I = new Matrix(N, N);\n for (int i = 0; i < N; i++)\n I.data[i][i] = 1;\n return I;\n }",
"void init(int size) {\n int numOfElements = size / MAX_BITS;\n if (size % MAX_BITS > 0)\n numOfElements++;\n\n values = new long[numOfElements];\n }",
"public Matrix(int n) {\n\t\tif (n < 1) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.n = n;\n\t\tthis.content = new double[n][n];\n\t\tthis.hash = hashCode();\n\t}",
"public Matrix(int nrOfRows, int nrOfCols, Random rand, BigInteger q) {\n this(nrOfRows, nrOfCols);\n for (int col = 0; col < nrOfCols; col++) {\n for (int row = 0; row < nrOfRows; row++) {\n inner[row][col] = rand.nextRandom(q);\n }\n }\n }",
"public Board(int size, Piece[][] initConfig) {\n initialize(size, initConfig);\n }",
"private static Vector emptyVector (int size)\n\t{\n\t\tVector v = new Vector ();\n\t\tfor (int i=0; i <= size; i++)\n\t\t{\n\t\t\tv.add (i, \"\");\n\t\t}\n\t\treturn v;\n\n\t}",
"public static Matrix makeZero(int rows, int columns) {\n\t\treturn new Matrix(rows, columns);\n\t}",
"public HashTable(int size) {\n \tnumElements = 0;\n Table = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n \tTable.add(new List<>());\n } \n }",
"public int[][] createEmptyGrid() {\n int[][] emptyGrid = new int[9][9];\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n emptyGrid[row][col] = 0;\n }\n }\n return emptyGrid;\n }",
"public static Matrix identityMatrix(int nrow){\r\n \tMatrix u = new Matrix(nrow, nrow);\r\n \tfor(int i=0; i<nrow; i++){\r\n \t\tu.matrix[i][i]=1.0;\r\n \t}\r\n \treturn u;\r\n \t}",
"public MyHashTable( int size )\n {\n allocateArray( size );\n doClear( );\n }",
"public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }",
"private void setEmpty() {\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++)\n\t\t\t\tboard[r][c] = new Cell(false, false,\n\t\t\t\t\t\tfalse, false); // totally clear.\n\t}",
"private SparseMatrix<Float64> makeCR0(int numberOfRows) {\n\t\tList<SparseVector<Float64>> matrix =\n\t\t\tnew ArrayList<SparseVector<Float64>>();\n\t\tfor (int i = 0; i < numberOfRows; i++) {\n\t\t\tmatrix.add(SparseVector.valueOf(numberOfRows, Float64.ZERO, i,\n\t\t\t\tFloat64.ONE));\n\t\t}\n\t\treturn SparseMatrix.valueOf(new AllSame<Float64>(numberOfRows,\n\t\t\tFloat64.ONE), Float64.ZERO);\n\t}",
"@Test\n public void whenCreateTableWithSize4ThenTableSize4x4Elements() {\n int[][] table = Matrix.multiple(4);\n int[][] expect = {\n {1, 2, 3, 4},\n {2, 4, 6, 8},\n {3, 6, 9, 12},\n {4, 8, 12, 16}};\n assertArrayEquals(expect, table);\n\n }",
"public Matrix(int nrow, int ncol){\r\n\t\tthis.nrow = nrow;\r\n\t\tthis.ncol = ncol;\r\n\t \tthis.matrix = new double[nrow][ncol];\r\n\t\tthis.index = new int[nrow];\r\n for(int i=0;i<nrow;i++)this.index[i]=i;\r\n }",
"public HashTable(int size) {\n logicalSize = 0;\n defaultSize = size;\n table = new Handle[size];\n }",
"private String[][] createEmptyMatrix(int rows, int columns) {\r\n\t\tString[][] outputMatrix = new String[rows][columns];\r\n\t\tfor (int i = 0; i < rows; i++) {\r\n\t\t\tfor (int j = 0; j < columns; j++) {\r\n\t\t\t\toutputMatrix[i][j] = \"\";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn outputMatrix;\r\n\t}",
"private void initGameMatrix() {\n double matrixTileHeight = this.fieldPane.getMaxHeight() / 11;\n double matrixTileWidth = this.fieldPane.getMaxWidth() / 11;\n\n for (int i = 0; i < this.fieldPane.getMaxWidth(); i += matrixTileWidth) {\n for (int j = 0; j < this.fieldPane.getMaxHeight(); j += matrixTileHeight) {\n Rectangle2D r = new Rectangle2D(j, i, matrixTileWidth, matrixTileHeight);\n gameMatrix.add(r);\n }\n }\n }",
"public void initializeGrid() {\n for (int i = minRow; i <= maxRow; i++) {\n for (int j = minCol; j <= maxCol; j++) {\n grid[i][j] = 0;\n }\n }\n }",
"private void initialize()\n\t{\n\t\tfor(int i = 0 ; i < SOM.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j < SOM[0].length; j++)\n\t\t\t{ \n\t\t\t\tSOM[i][j] = new Node(INPUT_DIMENSION,i,j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSOM_HORIZONTAL_LENGTH = SOM[0].length;\n\t\tSOM_VERTICAL_LENGTH = SOM.length;\n\t}",
"public Graph(int size){\n this.size=size;\n Matrix=new boolean[size][size];\n color=new int[size];\n }",
"public Matrice(int dim){\n\t\tnr=dim;\n\t\tnc=nr;\n\t\tmat = new int[nr][nc];\n\t}",
"protected abstract T createMatrix( int numRows, int numCols, MatrixType type );",
"public Table(int size) {\n\t\tsuper(size);\n\t}",
"public MagicSquare(int n){\n\t\tthis.size = n;\n\t\tif(n%2!=1) // we don't have an odd number\n\t\t\treturn;\n\t\tthis.numbers = new int[n][n];\n\n\t\tint row = n-1;\n\t\tint column = n/2;\n\t\tint k = 0;\n\t\tfor(k=1; k<=n*n; k++){\n\t\t\tthis.numbers[row][column] = k;\n\t\t\tif(this.numbers[(row+1)%n][(column+1)%n]!=0){\n\t\t\t\trow --;\n\t\t\t}else{\n\t\t\t\tcolumn = (column + 1) % n;\n\t\t\t\trow = (row + 1) % n;\n\t\t\t}\n\t\t}\n\t}",
"Matrix(int r,int c)\n {\n this.r=r;\n this.c=c;\n arr=new int[r][c];\n }",
"public void makeEmpty() {\n defTable = new DList[sizeBucket];\n for(int i=0; i<sizeBucket; i++) {\n defTable[i] = new DList();\n }\n size = 0;\n }",
"public void clear() {\n rows = cols = 0;\n matrix.clear();\n }",
"public void setToInitialState(int dimension, int numberOfEmptySlots);",
"public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }",
"private void initializeGraphAsEmpty() {\n int max = getNumNodes();\n\n parentMatrix = new int[getNumNodes()][max];\n childMatrix = new int[getNumNodes()][max];\n\n for (int i = 0; i < getNumNodes(); i++) {\n parentMatrix[i][0] = 1; //set first node\n childMatrix[i][0] = 1;\n }\n\n for (int i = 0; i < getNumNodes(); i++) {\n for (int j = 1; j < max; j++) {\n parentMatrix[i][j] = -5; //set first node\n childMatrix[i][j] = -5;\n }\n }\n }",
"public Map(){\n this.matrix = new int[10][10];\n }",
"public GameBoard(){\r\n\t\tboard = new Box[boardSize];\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tboard[i] = Box.EMPTY;\r\n\t\t}\r\n\t}",
"private Sudoku(int BlockSize) {\n\t\tB = BlockSize;\n\t\tN = B * B;\n\t\tpuzzle = new int[N + 1][N + 1];\n\t\tconstraints = new BitSet[N + 2][N + 1];\n\t\tnonAssignedCells = new ArrayList<Pair<Integer, Integer>>();\n\t}",
"private void initializeGameBoard()\n\t{\n\t\tboard = new State[3][3];\n\t\tfor (int r = 0; r < 3; r++)\n\t\t\tfor (int c = 0; c < 3; c++)\n\t\t\t\tboard[r][c] = State.EMPTY;\n\t}",
"public void makeEmpty() {\r\n for (int i = 0; i < tableSize; i++) {\r\n table[i] = new DList<Entry<K, V>>();\r\n }\r\n }",
"public Square(int size, Color color){\n\t\tthis.square = new Rectangle();\n\t\tthis.setDimensions(size);\n\t\tthis.setColour(color);\n\t}",
"public Grid() {\n setPreferredSize(new Dimension(960, 640));\n setBounds(0, 0, 960, 640);\n setLayout(null);\n setBackground(Color.black);\n this.size = 30;\n squares = new Square[size][20];\n }",
"public Grid()\n\t{\n\t\tfor (int x =0;x<=8;x++)\n\t\t\tgrid[x]=0;\n }",
"static private double[][] initMatrix(double[][] c) {\n final int N = c.length;\n final double value = 1 / Math.sqrt(2.0);\n\n for (int i = 1; i < N; i++) {\n for (int j = 1; j < N; j++) {\n c[i][j] = 1;\n }\n }\n\n for (int i = 0; i < N; i++) {\n c[i][0] = value;\n c[0][i] = value;\n }\n c[0][0] = 0.5;\n return c;\n }",
"public WordMatrix(int N) {\n solution = new int[N][N];\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n solution[i][j] = 0;\n }\n }\n }",
"public Matrix(ComplexNumber[][] rows) {\n\t\tROWS = rows;\n\t\tM = rows.length;\n\t\tN = rows[0].length;\n\t\tfor (int row = 0; row < M; row++) {\n\t\t\tif (rows[row].length != N) {\n\t\t\t\tthrow new RuntimeException(\"Non-Rectangular Matrix!\");\n\t\t\t}\n\t\t}\n\t}",
"private static void createEmptyBoard()\n {\n for (int index = 1; index < board.length; index++)\n {\n board[index] = ' ';\n }\n }",
"public static Matrix identity(int n) {\n\t\tComplexNumber[][] rows = new ComplexNumber[n][];\n\t\tfor (int row = 0; row < n; row++) {\n\t\t\trows[row] = new ComplexNumber[n];\n\t\t\tfor (int col = 0; col < n; col++) {\n\t\t\t\tint term = (row == col) ? 1 : 0;\n\t\t\t\trows[row][col] = new ComplexNumber(term);\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(rows);\n\t}",
"private TETile[][] initialize() {\n int width = size.width;\n int height = size.height;\n world = new TETile[width][height];\n for (int w = 0; w < width; w++) {\n for (int h = 0; h < height; h++) {\n world[w][h] = Tileset.NOTHING;\n }\n }\n return world;\n }",
"public static int[][] initializeMatrix(int version) {\n\t\t\n\t\tfinal int SIZE = QRCodeInfos.getMatrixSize(version);\n\t\tint[][] matrix = new int[SIZE][SIZE];\n\t\t\n\t\tfor (int i = 0; i < SIZE; ++i) {\n\t\t\tArrays.fill(matrix[i], 0);\n\t\t}\n\t\t\n\t\treturn matrix;\n\t}",
"private void initMatrix() {\n\t\ttry {\n\t\t\tRandom random = new Random();\n\t\t\tfor (int row=0; row<_numRows; ++row) {\n\t\t\t\tfor (int column=0; column<_numColumns; ++column) {\n\t\t\t\t\t// generate alive cells, with CHANCE_OF_ALIVE chance\n\t\t\t\t\tboolean value = (random.nextInt(100) < CHANCE_OF_ALIVE);\n\t\t\t\t\t_matrix.setCellValue(row, column, value);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// This is not supposed to happend because we use only legal row and column numbers\n\t\t}\n\t}",
"public void allocate(int size) {\n int N = PrimeNumbers.nextPrime(size);\n table = new Entry[N];\n elementsCount = 0;\n\n for (int i = 0; i < table.length; ++i) {\n table[i] = null;\n }\n }",
"public MySet(int size) {\n table = (HashNode<E>[]) new HashNode[size];\n }",
"public SparseMatrix(int rank) {\n\t\t// Update matrix's rank\n\t\tthis.rank = rank;\n\n\t\t//Create empty data structures for this empty matrix\n\t\tfor(int i=0; i<rank+1; i++) {rowPtr.add(0);}\n\t}"
]
| [
"0.69483304",
"0.6860943",
"0.6828393",
"0.6746176",
"0.6690906",
"0.6682014",
"0.66735435",
"0.6670181",
"0.6642585",
"0.64932805",
"0.64704216",
"0.6389488",
"0.63495433",
"0.62979114",
"0.62471896",
"0.6227389",
"0.620763",
"0.6199633",
"0.61928046",
"0.61618334",
"0.6129444",
"0.61001235",
"0.608809",
"0.6073303",
"0.606477",
"0.60619736",
"0.6053165",
"0.60530156",
"0.60372436",
"0.6005103",
"0.6003253",
"0.6002539",
"0.59759384",
"0.5925335",
"0.59044033",
"0.58796096",
"0.5833216",
"0.5810223",
"0.5805084",
"0.5803909",
"0.57870466",
"0.5784585",
"0.5775721",
"0.5754662",
"0.57503515",
"0.57453173",
"0.57378",
"0.5735813",
"0.57139754",
"0.57139754",
"0.57105607",
"0.5708574",
"0.5704639",
"0.57031864",
"0.5691208",
"0.56759924",
"0.56724244",
"0.5669456",
"0.5662228",
"0.5647798",
"0.563962",
"0.5632674",
"0.562063",
"0.56191623",
"0.56139374",
"0.5613418",
"0.56076527",
"0.5603276",
"0.558837",
"0.5585189",
"0.55639005",
"0.55570406",
"0.5544263",
"0.5541479",
"0.55368394",
"0.55366653",
"0.55308443",
"0.55066377",
"0.54998124",
"0.54927295",
"0.5491354",
"0.54870534",
"0.548359",
"0.5474739",
"0.5459474",
"0.54536897",
"0.54461485",
"0.5428838",
"0.5425704",
"0.54222435",
"0.5410759",
"0.54105794",
"0.53967077",
"0.5395348",
"0.53939724",
"0.5391977",
"0.53885543",
"0.53840554",
"0.538045",
"0.53714854"
]
| 0.5445422 | 87 |
Initialize an identity matrix of the given size | public static Mat2 initIdentity(int size) {
double[][] data = new double[size][size];
for(int i=0; i<size; i++) {
for(int j=0; j<size; j++) {
data[i][j] = 0;
if(i==j) data[i][j] = 1;
}
}
return new Mat2(data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public Matrix identityMatrix(int size) {\n Matrix identity = new Matrix(size, size);\n\n for (int i = 0; i < size; i++) {\n identity.data[i][i] = 1;\n }\n\n return identity;\n }",
"public static Matrix getIdentityMatrix(int size) {\r\n Matrix m = new Matrix(size, size);\r\n\r\n for (int i = 0; i < size; i++) {\r\n m.setValue(i, i, 1);\r\n }\r\n\r\n return m;\r\n }",
"public double[][] getIdentityMatrix(int size) {\n\t\tdouble[][] identityMatrix = new double[size][size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\tif (i == j) {\n\t\t\t\t\tidentityMatrix[i][j] = 1.;\n\t\t\t\t} else {\n\t\t\t\t\tidentityMatrix[i][j] = 0.;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn identityMatrix;\n\t}",
"public static Matrix Identity(int n) {\n List<List<Double>> backingArray = get2DListOfSize(n);\n for(int i = 0; i < n; i++)\n backingArray.get(i).set(i, 1d);\n return new Matrix(backingArray);\n }",
"public void initialize(int size);",
"public static Matrix identity(int N) {\n Matrix I = new Matrix(N, N);\n for (int i = 0; i < N; i++)\n I.data[i][i] = 1;\n return I;\n }",
"public static Matrix identity(int N) {\n Matrix I = new Matrix(N, N);\n for (int i = 0; i < N; i++)\n I.data[i][i] = 1;\n return I;\n }",
"public void makeIdentity() {\n if (rows == cols) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n if (i == j) {\n matrix.get(i)[j] = 1;\n }\n else {\n matrix.get(i)[j] = 0;\n }\n }\n }\n }\n else {\n throw new NonSquareMatrixException();\n }\n }",
"public void initIdentity() \r\n\t{\r\n\t\tm[0][0] = 1.0f; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = 0.0f;\r\n\t\tm[1][0] = 0.0f; m[1][1] = 1.0f; m[1][2] = 0.0f; m[1][3] = 0.0f;\r\n\t\tm[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = 1.0f; m[2][3] = 0.0f;\r\n\t\tm[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 0.0f; m[3][3] = 1.0f;\r\n\t}",
"public Matrix(int n) {\n\t\tsize = n;\n\t\tm = new int[size][size];\n\t}",
"public static Matrix identityMatrix(int nrow){\r\n \tMatrix u = new Matrix(nrow, nrow);\r\n \tfor(int i=0; i<nrow; i++){\r\n \t\tu.matrix[i][i]=1.0;\r\n \t}\r\n \treturn u;\r\n \t}",
"public IdentityMap(int size) {\n maxSize = size;\n searchKey = new CacheKey(new Vector(1), null, null);\n }",
"public double[][] getIdentityNegativeMatrix(int size) {\n\t\tdouble[][] identityMatrix = new double[size][size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\tif (i == j) {\n\t\t\t\t\tidentityMatrix[i][j] = -1.;\n\t\t\t\t} else {\n\t\t\t\t\tidentityMatrix[i][j] = 0.;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn identityMatrix;\n\t}",
"public static short[][] constructIdentityMtx(int dimension) {\n \n short[][] rep = new short[dimension][dimension];\n\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n if (i == j) {\n rep[i][j] = 1;\n } else {\n rep[i][j] = 0;\n }\n }\n }\n return rep;\n }",
"Matrix(int rows, int columns) {\n try {\n if (rows < 1 || columns < 1) {\n throw zeroSize;\n }\n this.rows = rows;\n this.columns = columns;\n matrix = new int[rows][columns];\n\n for (int rw = 0; rw < rows; rw++) {\n for (int col = 0; col < columns; col++) {\n matrix[rw][col] = (int) Math.floor(Math.random() * 100);\n }\n }\n }\n catch (Throwable zeroSize) {\n zeroSize.printStackTrace();\n }\n\n }",
"public void setIdentity() {\n System.arraycopy(IDENTITY, 0, matrix, 0, 16);\n }",
"public static SimpleMatrix identity( int width ) {\n return identity(width, DMatrixRMaj.class);\n }",
"public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"public static Matrix identity(int n) {\n\t\tComplexNumber[][] rows = new ComplexNumber[n][];\n\t\tfor (int row = 0; row < n; row++) {\n\t\t\trows[row] = new ComplexNumber[n];\n\t\t\tfor (int col = 0; col < n; col++) {\n\t\t\t\tint term = (row == col) ? 1 : 0;\n\t\t\t\trows[row][col] = new ComplexNumber(term);\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(rows);\n\t}",
"public Matrix(){\r\n\t\t\r\n\t\t//dim = dimension; for now, only 3-dim. matrices are being handled\r\n\t\tmat = new int[dim][dim];\r\n\t\t\r\n\t\tfor(int rowi = 0; rowi < dim; rowi++ )\r\n\t\t\tfor (int coli = 0; coli < dim; coli++)\r\n\t\t\t\tmat[rowi][coli]=0;\r\n\t}",
"public Matrix(int nrOfRows, int nrOfCols) {\n this.nrOfRows = nrOfRows;\n this.nrOfCols = nrOfCols;\n inner = new BigInteger[nrOfRows][nrOfCols];\n }",
"public double[][] getVectorWithOnes(int size) {\n\t\tdouble[][] identityMatrix = new double[size][1];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tidentityMatrix[i][0] = 1;\n\t\t}\n\t\treturn identityMatrix;\n\t}",
"private void generateMatrix(int n) throws InvalidSizeException{\n\t\tif(n%2 == 0 || n == 0 || n < 0) {\n\t\t\tthrow new InvalidSizeException(n);\n\t\t}else {\n\t\t\tmatrix = new int[n][n];\n\t\t\tsize = n;\n\t\t}\n\t}",
"public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }",
"public void initialize(int size) {\n setMaxSize(size);\n }",
"public double[][] getHilbertMatrix(int size) {\n\t\tdouble[][] identityMatrix = new double[size][size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\tdouble value = (i + 1) + (j + 1) - 1;\n\t\t\t\tidentityMatrix[i][j] = 1 / value;\n\t\t\t}\n\t\t}\n\t\treturn identityMatrix;\n\t}",
"public int[][] initMatrix(int n)\n {\n\t// create an empty 2d array and return it! Simple stuff here.\n\t int[][] retMatrix = new int[n][n];\n\t return retMatrix;\n }",
"public static Matrix Zero(int n) {\n return new Matrix(get2DListOfSize(n));\n }",
"public Matrice(int dim){\n\t\tnr=dim;\n\t\tnc=nr;\n\t\tmat = new int[nr][nc];\n\t}",
"public void SetMatrixToIdentity() {\n \n\t/*\n\tinputs--\n\t*/\n\t\n\t/*\n\toutputs--\n\t*/\n\t\n\tthis.mat_f_m[0][0] = 1;\t this.mat_f_m[0][1] = 0;\tthis.mat_f_m[0][2] = 0;\t this.mat_f_m[0][3] = 0;\n\tthis.mat_f_m[1][0] = 0;\t this.mat_f_m[1][1] = 1;\tthis.mat_f_m[1][2] = 0;\t this.mat_f_m[1][3] = 0;\n\tthis.mat_f_m[2][0] = 0;\t this.mat_f_m[2][1] = 0;\tthis.mat_f_m[2][2] = 1;\t this.mat_f_m[2][3] = 0;\n\tthis.mat_f_m[3][0] = 0;\t this.mat_f_m[3][1] = 0;\tthis.mat_f_m[3][2] = 0;\t this.mat_f_m[3][3] = 1;\t\n \n }",
"public HashTable(int size) {\n\t\tallocateArray(size);\n\t\tclear();\n\t}",
"public Matrix() {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"@Test\n public void testIdentity() {\n final double junk[] = new double[Matrix33d.LENGTH];\n for (int i = 0; i < Matrix33d.LENGTH; i++) {\n junk[i] = 1089.1451D;\n }\n final Matrix33d m = new Matrix33d();\n m.setA(junk);\n\n m.identity();\n final double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n if (i == 0 || i == 4 || i == 8) {\n assertEquals(a[i], 1D);\n } else {\n assertEquals(a[i], 0D);\n }\n }\n }",
"public Matrix(int rowSize, int columnSize) {\n if (rowSize < 1 || columnSize < 1) {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n } else {\n matrix = new double[rowSize][columnSize];\n }\n }",
"private int[][] initialStateMatrix() {\n return new int[][]{{2,1,-1,3,0,-1},\n {2,-1,-1,3,-1,-1},\n {2,-1,5,4,8,-1},\n {4,-1,-1,-1,-1,-1},\n {4,-1,5,-1,8,-1},\n {7,6,-1,-1,-1,-1},\n {7,-1,-1,-1,-1,-1},\n {7,-1,-1,-1,8,-1},\n {-1,-1,-1,-1,8,-1}};\n }",
"public IntMap(int size){\r\n hashMask=size-1;\r\n indexMask=(size<<1)-1;\r\n data=new int[size<<1];\r\n }",
"public Graph(int size) {\n\t\tmatrix = new int[size][size];\n\t\tthis.size = size;\n\n\t\tfor(int i = 0; i < size; i++) {\n\t\t\tfor(int j = 0; j < size; j++) {\n\t\t\t\tmatrix[i][j] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// make space for the values (and ignore the cast warning)\n\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tType[] values = (Type[]) new Object[size];\n\t\tthis.values = values;\n\t}",
"public void identity(){\n for (int j = 0; j<4; j++){\n \tfor (int i = 0; i<4; i++){\n \t\tif (i == j)\n \t\t\tarray[i][j] = 1;\n \t\telse\n \t\t\tarray[i][j] = 0;\n \t }\n \t }\n\t}",
"public static JTensor newWithSize1d(long size0) {\n return new JTensor(\n TH.THTensor_(newWithSize1d)(size0)\n );\n }",
"void init(int size) {\n int numOfElements = size / MAX_BITS;\n if (size % MAX_BITS > 0)\n numOfElements++;\n\n values = new long[numOfElements];\n }",
"public Matrix(int[][] array)\n {\n matrix = array;\n }",
"public Board(int size) {\n initialize(size, null);\n }",
"public Matrix(int x, int y) {\n\t\tnrow=x;\n\t\tncol=y;\n\t\tmat = new int[x][y];\n\t\t\n\n\t}",
"private SparseMatrix<Float64> makeCR0(int numberOfRows) {\n\t\tList<SparseVector<Float64>> matrix =\n\t\t\tnew ArrayList<SparseVector<Float64>>();\n\t\tfor (int i = 0; i < numberOfRows; i++) {\n\t\t\tmatrix.add(SparseVector.valueOf(numberOfRows, Float64.ZERO, i,\n\t\t\t\tFloat64.ONE));\n\t\t}\n\t\treturn SparseMatrix.valueOf(new AllSame<Float64>(numberOfRows,\n\t\t\tFloat64.ONE), Float64.ZERO);\n\t}",
"public MySet(int size) {\n table = (HashNode<E>[]) new HashNode[size];\n }",
"public static int[][] initializeMatrix(int version) {\n\t\t\n\t\tfinal int SIZE = QRCodeInfos.getMatrixSize(version);\n\t\tint[][] matrix = new int[SIZE][SIZE];\n\t\t\n\t\tfor (int i = 0; i < SIZE; ++i) {\n\t\t\tArrays.fill(matrix[i], 0);\n\t\t}\n\t\t\n\t\treturn matrix;\n\t}",
"protected SimpleMatrix() {}",
"public Sudoku(int size){\n\t\tthis.size = size;\n\t\tnumbers = new int[size*size][size*size];\n\t\tfixedNumbers = new boolean[size*size][size*size];\n\t\t// create sudoku which is yet to be initialized and set them unfixed\n\t\t// (all numbers are zero)\n\t\tfor (int i = 0; i < size*size; i++){\n\t\t\tfor (int j = 0; j < size*size; j++){\n\t\t\t\tnumbers[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"public int[][] createBoard(int size){\r\n\t\tint[][] newBoard = new int[size+1][size+1];\r\n\t\tfor (int i = 0; i < newBoard.length; i++){\r\n\t\t\tfor (int j = 0; j < newBoard[i].length; j++) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tnewBoard[i][j] = j;\r\n\t\t\t\t} else if (j == 0) {\r\n\t\t\t\t\tnewBoard[i][j] = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}newBoard[0][0] = 0;\r\n\treturn newBoard;\r\n\t}",
"public static IndexedTensor zeros(int[] size, String... indices) {\n return new IndexedTensor(Tensor.zeros(size), indices);\n }",
"MatrixElement(int edgesQuantity) {\r\n\t\tthis.edgesQuantity = edgesQuantity;\r\n\t}",
"public static IntArrayList zero(int size) {\n IntArrayList result = new IntArrayList(size);\n result.elementsCount = size;\n return result;\n }",
"public Matrix(int nrOfRows, int nrOfCols, Random rand, BigInteger q) {\n this(nrOfRows, nrOfCols);\n for (int col = 0; col < nrOfCols; col++) {\n for (int row = 0; row < nrOfRows; row++) {\n inner[row][col] = rand.nextRandom(q);\n }\n }\n }",
"private static Integer[][] createRandomStart(Integer dimension) {\n Integer[][] startmatrix = new Integer[dimension][dimension];\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n startmatrix[i][j] = (int)(Math.random() * 2);\n }\n }\n return startmatrix;\n }",
"public static void generateMatrix() {\r\n Random random = new Random();\r\n for (int i = 0; i < dim; i++)\r\n {\r\n for (int j = 0; j < dim; j++)\r\n {\r\n if (i != j)\r\n \r\n adjacencyMatrix[i][j] = I; \r\n }\r\n }\r\n for (int i = 0; i < dim * dim * fill; i++)\r\n {\r\n adjacencyMatrix[random.nextInt(dim)][random.nextInt(dim)] =\r\n random.nextInt(maxDistance + 1);\r\n }\r\n \r\n\r\n\r\n \r\n //print(adjacencyMatrix);\r\n \r\n \r\n //This makes the main matrix d[][] ready\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++)\r\n {\r\n d[i][j] = adjacencyMatrix[i][j];\r\n if (i == j)\r\n {\r\n d[i][j] = 0;\r\n }\r\n }\r\n }\r\n }",
"Matrix(int r,int c)\n {\n this.r=r;\n this.c=c;\n arr=new int[r][c];\n }",
"public Graph(int size){\n this.size=size;\n Matrix=new boolean[size][size];\n color=new int[size];\n }",
"private Board(int size)\n {\n array = new char[size][size];\n \n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n array[i][j] = EMPTY;\n }",
"public Matrix(int n) {\n\t\tif (n < 1) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.n = n;\n\t\tthis.content = new double[n][n];\n\t\tthis.hash = hashCode();\n\t}",
"public Table_old(int _size) {\r\n size = _size;\r\n table = new int[size][size];\r\n temp_table = new int[size][size]; \r\n }",
"Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }",
"public Board (int rSize, int cSize)\r\n\t{\r\n\t\tint i, x;\r\n\t\tRow_Size = rSize;\r\n\t\tColumn_Size = cSize;\r\n\t\tLayout = new int [Row_Size][Column_Size];\r\n\r\n\t\tfor(i=0;i<Row_Size;i++)\r\n\t\t{\r\n\t\t\tfor(x=0;x<Column_Size;x++)\r\n\t\t\t{\r\n\t\t\t\tLayout[i][x] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public SparseSet(int size) {\n\n\t sparse = new int[size];\n\t dense = new int[size];\n\t members = 0;\n\t \n\t // Added so value 0 can be added first.\n\t // TODO, test if that is still necessary after fixing a rare bug with addition.\n\t dense[0] = -1;\n\t}",
"public Hylle(int size) {\n a = (T[]) new Object[size];\n this.size = size;\n }",
"void makeZero(){\n nnz = 0;\n for(int i=0; i<this.matrixSize; i++){\n this.rows[i] = new List();\n }\n }",
"public MyHashTable( int size )\n {\n allocateArray( size );\n doClear( );\n }",
"public Mat2(int size) {\n\t\tthis(size, size);\n\t}",
"public IdentificationSet(int initialCapacity) {\n map = new HashMap<>(initialCapacity);\n init();\n }",
"Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }",
"public int[] initializingArray(int size) {\n\t\tint [] array = createArrays(size);\n\t\tfor(int i = 0;i < array.length; i++) {\n\t\t\tarray[i] = rand.nextInt(10);\n\t\t}\n\t\treturn array;\n\t}",
"private void initWithSize(int size) {\r\n this.size = size;\r\n if (size == 0) {\r\n size = 1; //Prevents memory allocation problem on GPU\r\n }\r\n\r\n normalX = new double[size];\r\n normalY = new double[size];\r\n normalZ = new double[size];\r\n\r\n vertexAX = new double[size];\r\n vertexAY = new double[size];\r\n vertexAZ = new double[size];\r\n\r\n edgeBAX = new double[size];\r\n edgeBAY = new double[size];\r\n edgeBAZ = new double[size];\r\n\r\n edgeCAX = new double[size];\r\n edgeCAY = new double[size];\r\n edgeCAZ = new double[size];\r\n\r\n centerX = new double[size];\r\n centerY = new double[size];\r\n centerZ = new double[size];\r\n\r\n area = new double[size];\r\n }",
"public HashTable(int size) {\n logicalSize = 0;\n defaultSize = size;\n table = new Handle[size];\n }",
"public Matrix33() {\r\n // empty\r\n }",
"public Matrix(int[][] array){\n this.matriz = array;\n }",
"public Table(int size) {\n\t\tsuper(size);\n\t}",
"public HashTable(int size) {\n \tnumElements = 0;\n Table = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n \tTable.add(new List<>());\n } \n }",
"public Map(){\n this.matrix = new int[10][10];\n }",
"protected GamaMatrix(final IScope scope, final List objects, final ILocation preferredSize, final IType contentsType) {\r\n\t\tif ( preferredSize != null ) {\r\n\t\t\tnumRows = (int) preferredSize.getY();\r\n\t\t\tnumCols = (int) preferredSize.getX();\r\n\t\t} else if ( objects == null || objects.isEmpty() ) {\r\n\t\t\tnumRows = 1;\r\n\t\t\tnumCols = 1;\r\n\t\t} else if ( GamaMatrix.isFlat(objects) ) {\r\n\t\t\tnumRows = 1;\r\n\t\t\tnumCols = objects.size();\r\n\t\t} else {\r\n\t\t\tnumCols = objects.size();\r\n\t\t\tnumRows = ((List) objects.get(0)).size();\r\n\t\t}\r\n\t\tthis.type = Types.MATRIX.of(contentsType);\r\n\t}",
"public Matrix4f SetMatrixToIdentityAndGet() {\n \n\t/*\n\tinputs--\n\t*/\n\t\n\t/*\n\toutputs--\n\t\n\tthis :\n\t The self matrix set to identity\n\t*/\n\t\n\tthis.mat_f_m[0][0] = 1;\t this.mat_f_m[0][1] = 0;\tthis.mat_f_m[0][2] = 0;\t this.mat_f_m[0][3] = 0;\n\tthis.mat_f_m[1][0] = 0;\t this.mat_f_m[1][1] = 1;\tthis.mat_f_m[1][2] = 0;\t this.mat_f_m[1][3] = 0;\n\tthis.mat_f_m[2][0] = 0;\t this.mat_f_m[2][1] = 0;\tthis.mat_f_m[2][2] = 1;\t this.mat_f_m[2][3] = 0;\n\tthis.mat_f_m[3][0] = 0;\t this.mat_f_m[3][1] = 0;\tthis.mat_f_m[3][2] = 0;\t this.mat_f_m[3][3] = 1;\t\n\t\n\treturn this;\n \n }",
"public JCudaMatrix(int rows) {\n this(rows, 1);\n }",
"Matrix(BigInteger[][] matrix) {\n this.nrOfRows = matrix.length;\n this.nrOfCols = matrix[0].length;\n this.inner = matrix;\n }",
"public SudokuSolver() {\n matrix = new int[DIM][DIM];\n\n IntStream.range(0, DIM * DIM)\n .forEach(\n n -> {\n int i = n / DIM;\n int j = n % DIM;\n matrix[i][j] = 0;\n });\n }",
"public Sudoku() {\n this.board = new int[size][size];\n }",
"@Test\n public void whenCreateTableWithSize4ThenTableSize4x4Elements() {\n int[][] table = Matrix.multiple(4);\n int[][] expect = {\n {1, 2, 3, 4},\n {2, 4, 6, 8},\n {3, 6, 9, 12},\n {4, 8, 12, 16}};\n assertArrayEquals(expect, table);\n\n }",
"private void setMToIdentity()\n\t\t{\n\t\t\tfor(rowNumber = 0; rowNumber < 4; rowNumber++)\n\t\t\t\tfor(int column = 0; column < 4; column++)\n\t\t\t\t{\n\t\t\t\t\tif(rowNumber == column)\n\t\t\t\t\t\tmElements[rowNumber*4 + column] = 1;\n\t\t\t\t\telse\n\t\t\t\t\t\tmElements[rowNumber*4 + column] = 0;\n\t\t\t\t}\n\t\t\ttransform = new Transform3D(mElements);\n\t\t\trowNumber = 0;\n\t\t}",
"public SparseBinaryMatrix(int numRows, int numCols) {\n this.numRows = numRows;\n this.numCols = numCols;\n this.rows = new int[this.numRows][];\n for (int i = 0; i < this.numRows; i++) {\n this.rows[i] = new int[0]; //Util.EMPTY_INT_ARRAY;\n }\n this.cols = new IntSet[this.numCols];\n }",
"public static int[][] generateMatrix() {\n int rowsCount = RANDOM.nextInt( MAX_ROWS_COUNT ) + 1;\n int[][] result = new int[rowsCount][];\n for (int i = 0; i < rowsCount; i++) {\n result[i] = new int[RANDOM.nextInt( MAX_COLUMNS_COUNT ) + 1];\n fillArray( result[i] );\n }\n return result;\n }",
"Matrix(double[][] input) {\n matrixVar = input;\n columns = matrixVar[0].length;\n rows = matrixVar.length;\n }",
"public Matrix4f() {\n setIdentity();\n }",
"public SparseMatrix(int rank) {\n\t\t// Update matrix's rank\n\t\tthis.rank = rank;\n\n\t\t//Create empty data structures for this empty matrix\n\t\tfor(int i=0; i<rank+1; i++) {rowPtr.add(0);}\n\t}",
"public HashTable(int size) {\n\t\tarraySize = size;\n\t\thashArray = new DataItem[arraySize];\n\t\tnonItem = new DataItem(-1);\n\t}",
"public static Matrix makeZero(int rows, int columns) {\n\t\treturn new Matrix(rows, columns);\n\t}",
"private void initCostMatrix(int[][] costMatrix) {\n if (costMatrix.length != costMatrix[0].length) {\n throw new Errors.MatrixColumnsNotEqualToRows();\n }\n _matrix = new int[costMatrix.length][costMatrix.length];\n for (int i = 0; i < costMatrix.length; i++) {\n _matrix[i] = Arrays.copyOf(costMatrix[i], costMatrix[i].length);\n }\n }",
"private void initMatrix() {\n\t\ttry {\n\t\t\tRandom random = new Random();\n\t\t\tfor (int row=0; row<_numRows; ++row) {\n\t\t\t\tfor (int column=0; column<_numColumns; ++column) {\n\t\t\t\t\t// generate alive cells, with CHANCE_OF_ALIVE chance\n\t\t\t\t\tboolean value = (random.nextInt(100) < CHANCE_OF_ALIVE);\n\t\t\t\t\t_matrix.setCellValue(row, column, value);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// This is not supposed to happend because we use only legal row and column numbers\n\t\t}\n\t}",
"public SimpleArray(int size)\n\t{\n\t\tarray = new int[size];\n\t}",
"public IntegerList(int size)\n {\n list = new int[size];\n }",
"private void inititalzeAnimalMatrixCounter() {\r\n\t\tCounterProperties cp = new CounterProperties();\r\n\t\tcp.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t\tcp.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.BLUE);\r\n\t\tcounter = lang.newCounter(mainMatrix);\r\n\t\tlang.newCounterView(counter, new Offset(200, 0, \"header\", AnimalScript.DIRECTION_NW), cp, true, true);\r\n\t}",
"public HashedVector(int size) {\n\t\tthis.elements = new HashMap<>(size);\n\t}",
"public AdjacencyMatrix(int numberOfNodes) {\n if (numberOfNodes <= 0) {\n throw new IllegalArgumentException(\"Number of nodes must be more than zero\");\n }\n this.links = new int[numberOfNodes][numberOfNodes];\n }",
"public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }"
]
| [
"0.82193124",
"0.78107",
"0.7317985",
"0.70557404",
"0.6624536",
"0.6610463",
"0.6610463",
"0.6594454",
"0.659254",
"0.65803677",
"0.65642667",
"0.65619475",
"0.6509648",
"0.6410799",
"0.6238799",
"0.62307096",
"0.6192926",
"0.6165245",
"0.61321944",
"0.60771793",
"0.6070696",
"0.60217965",
"0.5983991",
"0.59543175",
"0.5953648",
"0.5939045",
"0.5896587",
"0.5872558",
"0.58607584",
"0.58440286",
"0.5836118",
"0.582029",
"0.5813254",
"0.57906544",
"0.5769808",
"0.57364064",
"0.57303905",
"0.5716139",
"0.5699288",
"0.5698742",
"0.56850517",
"0.56229556",
"0.56104064",
"0.5604656",
"0.56001776",
"0.5581099",
"0.5579386",
"0.5562078",
"0.55374295",
"0.55273736",
"0.5525917",
"0.5517699",
"0.55154437",
"0.5514531",
"0.54943067",
"0.5492175",
"0.5488505",
"0.5483",
"0.54714787",
"0.5469272",
"0.54622257",
"0.546134",
"0.5458498",
"0.5454936",
"0.5453879",
"0.54514325",
"0.5450095",
"0.54291594",
"0.5427515",
"0.5426922",
"0.542258",
"0.54146165",
"0.5398722",
"0.53937125",
"0.53852427",
"0.53743076",
"0.537337",
"0.53681165",
"0.53674704",
"0.53670806",
"0.53669417",
"0.5349573",
"0.5345408",
"0.5338269",
"0.52812886",
"0.52799064",
"0.5265062",
"0.52611786",
"0.5255598",
"0.5253185",
"0.5247083",
"0.5241552",
"0.52413",
"0.52364475",
"0.523466",
"0.52322537",
"0.5211535",
"0.52070546",
"0.52045405",
"0.51969254"
]
| 0.7825504 | 1 |
Get a specific element of the matrix | public double get(int i, int j) {
return data[i][j];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int get(int x, int y){\n return matriz[x][y];\n }",
"public double getElement(int i, int j){\r\n \treturn this.matrix[i][j];\r\n \t}",
"private Object get( int r, int c ) {\n\treturn matrix[r][c];\n }",
"public final float getElement(int row, int column) {\n\tif (row == 0)\n\t if (column == 0)\n\t\treturn m00;\n\t else if (column == 1)\n\t\treturn m01;\n\t else if (column == 2)\n\t\treturn m02;\n\t else\n\t\tthrow new ArrayIndexOutOfBoundsException(\"column must be 0 to 2 and is \" + column);\n\telse if (row == 1)\n\t if (column == 0)\n\t\treturn m10;\n\t else if (column == 1)\n\t\treturn m11;\n\t else if (column == 2)\n\t\treturn m12;\n\t else\n\t\tthrow new ArrayIndexOutOfBoundsException(\"column must be 0 to 2 and is \" + column);\n\n\telse if (row == 2)\n\t if (column == 0)\n\t\treturn m20;\n\t else if (column == 1)\n\t\treturn m21;\n\t else if (column == 2)\n\t\treturn m22;\n\t else\n\t\tthrow new ArrayIndexOutOfBoundsException(\"column must be 0 to 2 and is \" + column);\n\telse\n\t\tthrow new ArrayIndexOutOfBoundsException(\"row must be 0 to 2 and is \" + row);\n }",
"public int get(int i, int j) {\n\t\treturn matrix[i][j];\n\t}",
"public int getElement(int rowIndex, int colIndex){\r\n\t\t\r\n\t\tint res = 0;\r\n\t\tres = mat[rowIndex][colIndex];\r\n\t\treturn res;\r\n\t\r\n\t}",
"double get(int row,int col);",
"public int getElement(int i, int j){\n\t\treturn numbers[i][j];\n\t}",
"public double get(int row, int col) {\n return matrix.get(row)[col];\n }",
"public double get( int row, int col ) {\n return ops.get(mat, row, col);\n }",
"public double retrieveElement(int i, int j) {\n\t\t// Keep function invariant true\n\t\tassertInd(i,j);\n\n\t\t// Start and end of row i\n\t\tint start = rowPtr.get(i);\n\t\tint end = rowPtr.get(i+1);\n\n\t\t// If find column j, return\n\t\tfor (int k=start; k<end; k++) {\n\t\t\tif(j == colInd.get(k)) \n\t\t\t\treturn value.get(k);\n\t\t}\n\t\treturn 0;\n\t}",
"Object getArrayElement(int index);",
"Object getArrayElement(int index);",
"public E getFromMatrix(int i, int j) {\r\n\t\treturn getFromArray(i, j);\r\n\t}",
"public T get(int row) {\n\t\tint index = binarysearch(array,currentnnz,row);\n\t\t\n\t\tif (index < 0 || array.at(index).row != row )\n\t\t\treturn null;\n\t\telse\n\t\t\treturn array.at(index).thing;\n\t}",
"public BigInteger get(int row, int column) {\n return inner[row][column];\n }",
"public Move getGridElement (int row, int column)\n {\n return mGrid[row][column];\n }",
"private int getElement(int row, int col) {\n if (!this.isValid(row, col))\n throw new IndexOutOfBoundsException(\"row or col is out of side length!\");\n\n // in our system, index is calculated from 0 but row and col is calculated from 1\n return this.side * (row - 1) + col - 1;\n }",
"public Matrix getValue();",
"Piece getPieceAt(int col, int row);",
"public int getValue(int row, int column);",
"public int getElement(Pair<Integer, Integer> cell){\n\t\treturn numbers[cell.getFirst()][cell.getSecond()];\n\t}",
"private Tile getTileAt(int row, int col) {\n return getTiles()[row][col];\n }",
"public double getElementPointer(int i, int j){\r\n \treturn this.matrix[i][j];\r\n \t}",
"public Thing at ( int row, int col ) {\n\t\treturn field_[row][col];\n\t}",
"public double get(int row, int col){\n \treturn array[row-1][col-1];\n }",
"Object getElementAt(int index);",
"public int getValue(int row, int col) {\n return this.matrix[row][col];\n }",
"final Piece get(int col, int row) {\r\n return board[col][row];\r\n }",
"public int getMatrix(int i, int j) {\n\t\treturn matrix[i][j];\r\n\t}",
"public long getElementAt(int row, int column) {\n\t\treturn _value[(row * _columnCount) + column];\n\t}",
"public int get_cell(int row,int col)\n{\n\treturn cell[row][col] ;\t\n}",
"public Cell getCell(int row, int column) {\n return cells[row][column];\n }",
"public double get(int row, int column) {\n\t\tif (row >= this.rows || row < 0 || column >= this.columns || column < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Values out of range, requested \" + row + \",\" + column\n\t\t\t\t\t+ \", but matrix is only \" + this.rows + \"x\" + this.columns);\n\t\t}\n\t\treturn matrix[row][column];\n\t}",
"public int find(int element){\n while(grid[element] != element)\n element = grid[element];\n return element;\n }",
"Matrix get(final Serializable id);",
"public Cell getCell(int row, int col) {\n return board[row][col];\n }",
"public int getElement(int index) {\r\n\t\t//Defensive\r\n\t\tif (index < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index less than zero\");\r\n\t\t}\r\n\t\tif (index >= getLength()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index out of upper bound\");\r\n\t\t}\r\n\t\tif (getLength() <= 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"The array does not yet exist\");\r\n\t\t}\r\n\t\t\r\n\t\treturn getNodeAt(index).value;\r\n\t}",
"public int getValue(int row, int col) {\n if (row < 0 || col < 0) {\n System.out.println(\"Error: Value does not exist\");\n } else {\n return matrix[row][col];\n }\n return -1;\n }",
"public BoardTile getTile(int column, int row) {\r\n return tiles[column][row];\r\n }",
"int get(int idx);",
"public long getElem(int index) {\r\n return a[index];\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic T get( int row, int column ) {\n\t\tString S = C + \": get(): \";\n\t\tcheckBounds( row, column, S );\n\t\treturn (T)data[row * numCols + column];\n\t}",
"public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }",
"E get( int index );",
"@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}",
"public abstract T getCell(int row, int column);",
"public void get( int row, int col, Complex_F64 output ) {\n ops.get(mat, row, col, output);\n }",
"public double get(int i, int j) {\n return data[i][j];\n }",
"@Nullable\n TObj get(int row, int column) {\n SparseArrayCompat<TObj> array = mData.get(row);\n return array == null ? null : array.get(column);\n }",
"public int returnPieceAt(int row, int col) {\n\t\treturn arr[row][col];\n\t}",
"public int getElementAtIndex(int index){\r\n return mArray[index];\r\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 int getPiece(int row, int col)\n\t{\n\t\treturn pieces[row][col];\n\t}",
"public int get(int r, int c)\n\t{\n\t\treturn _puzzle[r][c];\n\t}",
"@Override\n public double getQuick(int row, int column) {\n return base.getQuick(rowPivot[row], columnPivot[column]);\n }",
"public int getElement(final int columnIndex, final int rowIndex)\n throws MatrixException {\n if (checkRange(columnIndex, rowIndex)) {\n return values[columnIndex][rowIndex];\n } else {\n throw new MatrixException(\"Выход за пределы массива.\");\n }\n\n }",
"public double getElementCopy(int i, int j){\r\n \treturn this.matrix[i][j];\r\n \t}",
"Piece get(int c, int r) {\n return this.boardArr[r - 1][c - 1];\n }",
"public Object getCell(int col, int row) {\n Vector data = ((DefaultTableModel) getModel()).getDataVector();\n return ((Vector) data.get(row)).get(col);\n }",
"public int get(int index);",
"private Student getStudent(int row, int col) {\r\n return this.arrangement[row][col];\r\n }",
"Object get(int index);",
"Object get(int index);",
"int getNumber(int x, int y){\n return board[x][y].getNumber();\n }",
"public E get(int index);",
"public E getElement(int position){\r\n\t\t// Position is larger than the current size.\r\n\t\tif(checkPosition(position)){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn getDoubleNodeAt(position).element;\r\n\t}",
"String get(int i, int j);",
"float get(int idx);",
"public Cell get(int row, int col) {\n\t\treturn myGrid.get(row, col);\n\t}",
"public E get(int index) {\n return this.elements[index];\n }",
"public double get( int row , int column )\n\t{\n\t\tdouble\tresult\t= 0.0D;\n\n\t\tif\t(\t( row > 0 ) && ( row <= rows() ) &&\n\t\t ( columns > 0 ) && ( columns <= columns() ) )\n\t\t{\n\t\t\tresult\t= matrixData[ row - 1 ][ column - 1 ];\n\t\t}\n\n\t\treturn result;\n\t}",
"public E get(int i) {\n\n\t if (i < 0 && i > num_elements)\n\t return null;\n\t \n\t return(elements[i]);\n\t }",
"public double get(int row, int col) {\n if (row >= 0 && row < this.rows && col >= 0 && col < this.cols)\n return data[row][col];\n else\n throw new ArrayIndexOutOfBoundsException();\n }",
"private E getFromArray(int i, int j) {\r\n\t\treturn mElements.get(j*mRowCount+i);\r\n\t}",
"public Cell getCell(int row, int col) {\n\t\treturn board[row][col];\n\t}",
"public E get(int idx) {\n assert idx >= 0;\n \n if(v == array[idx]){\n\t\tv = array[idx];\n\t}\n\t\n\tif(array[idx] == null){\n\t\tv = null;\n\t}\n\treturn v;\n }",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"public int getElement(int index){\n if(index <0 || index >= array.length){\n throw new RuntimeException(\"Array index out of bound\");\n }\n return array[index];\n }",
"public abstract Element getElement(Point2D point) throws PositionEX;",
"public int get(int r, int c)\n\t{\n\t\treturn board[r][c];\n\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 double get(int i, int j) {\n\t\tif (i >= 0 && i < n && j >= 0 && j < n)\n\t\t\treturn content[i][j];\n\t\tthrow new IllegalArgumentException();\n\t}",
"String getValue(String column, int row);",
"Element getElement(Position pos);",
"public int getValue(int column, int row) {\n\t\treturn this.bitmap[column][row];\n\t}",
"public FloorTile getTileFromTheBoard(int row, int col) {\r\n return board[row][col];\r\n }",
"Square getSquare(int x, int y){\n return board[x][y];\n }",
"public Piece getPiece(int x, int y) {\n \treturn board[y][x];\n }",
"public MazeRoom element(int h, int w)\r\n\t{\r\n\t\treturn room[h][w];\r\n\t}",
"public int get(int r, int c) {\n\t\treturn board[r][c];\n\t}",
"public Object get(int index);",
"public Object get(int index);",
"public Object elementAt(int index);",
"protected abstract double getCell(\r\n int row,\r\n int col);",
"public FloorTile getTileAt(int row, int col) {\n return board[row][col];\n }",
"T get(int position);"
]
| [
"0.7295162",
"0.710051",
"0.7067147",
"0.6958817",
"0.69451016",
"0.6923483",
"0.68366563",
"0.6830456",
"0.67515373",
"0.67509425",
"0.674588",
"0.6592055",
"0.6592055",
"0.6540397",
"0.653987",
"0.6494251",
"0.6472126",
"0.6451843",
"0.6446339",
"0.64216936",
"0.6389833",
"0.6388037",
"0.6381465",
"0.63440794",
"0.6337466",
"0.62911767",
"0.6263806",
"0.6261766",
"0.6251759",
"0.62438595",
"0.6219152",
"0.61927617",
"0.61858946",
"0.6175875",
"0.61277544",
"0.61047727",
"0.6101709",
"0.609557",
"0.6090682",
"0.6088109",
"0.60843647",
"0.6083429",
"0.60819244",
"0.60637283",
"0.60583436",
"0.60527426",
"0.6045779",
"0.60234433",
"0.60143095",
"0.6013719",
"0.60105324",
"0.6001714",
"0.59939563",
"0.5989838",
"0.59883773",
"0.5985756",
"0.5977305",
"0.59607065",
"0.59488404",
"0.5940738",
"0.5940278",
"0.5926509",
"0.5924802",
"0.5924802",
"0.5904615",
"0.58780557",
"0.587629",
"0.5873428",
"0.5873371",
"0.5868328",
"0.585887",
"0.58583426",
"0.58544946",
"0.5853731",
"0.5853439",
"0.5851759",
"0.5850454",
"0.58503985",
"0.58503985",
"0.58503985",
"0.58503985",
"0.58503985",
"0.5848737",
"0.58337885",
"0.58231366",
"0.5822473",
"0.5818439",
"0.5817991",
"0.5814724",
"0.581144",
"0.5791146",
"0.5787251",
"0.5786491",
"0.5785946",
"0.57821953",
"0.577417",
"0.577417",
"0.5772057",
"0.57718986",
"0.5765869",
"0.57649314"
]
| 0.0 | -1 |
Set an element to a value | public double set(int i, int j, double value) {
data[i][j] = value;
return value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setValue(T element) {\n\t\t\n\t}",
"public void setElement(T newvalue);",
"void setElementValue(SetElementValue cmd);",
"public void setValue(T v){\n \telement = v;\n }",
"public void setElement(T elem)\n {\n\n element = elem;\n }",
"void set(int index, Object element);",
"Form setElementValue(String elementId, String value);",
"public void setValue(Object value);",
"public void setElement(String newElem) { element = newElem;}",
"@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setValue((V)value);\n }\n }",
"public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}",
"public void setValue(Object val);",
"public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }",
"void setValue(Object value);",
"void setElement(int row, String field, Object value);",
"@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"public void setElement(T element) {\n\t\tthis.element = element;\n\t}",
"public E set(int index, E element);",
"public void setValue(Object value) { this.value = value; }",
"public void setElement(WebElement element) {\n\t\t\r\n\t}",
"public V setValue(V value);",
"void setValue(T value);",
"void setValue(T value);",
"public void setElement(Object e) {\n element = e;\n }",
"void setValue(V value);",
"public void setValue(A value) {this.value = value; }",
"public void setElem(int index, long value) {\r\n a[index] = value;\r\n }",
"public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}",
"public Element set(Element value) {\n if (value instanceof SymmetricLongZrElement)\n this.value = ((SymmetricLongZrElement) value).value;\n else\n this.value = value.toBigInteger().longValue();\n// return this;\n return mod();\n }",
"public void set (Object element)\n {\n if(!isAfterNext){\n throw new IllegalStateException(); \n }\n position.data = element;\n \n \n }",
"@Override\n public int set(int index, int element) {\n checkIndex(index);\n int result = getEntry(index).value;\n getEntry(index).value = element;\n return result;\n }",
"public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }",
"public void setValue(E value)\n {\n }",
"Object setValue(Object value) throws NullPointerException;",
"@Override\n\tpublic E set(int index, E element) {\n\t\tNode<E> node = node(index);\n\t\tE old = node.elementE;\n\t\tnode.elementE = element;\n\t\treturn old;\n\t}",
"public void settInn(T element);",
"public void setElement(Element element) {\n this.element = element;\n }",
"void setValue(Object object, Object value);",
"public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }",
"T set(int index, T element);",
"public void elSetValue(Object bean, Object value, boolean populate, boolean reference);",
"protected abstract void setValue(V value);",
"public void setElement(E element) {\n\t\t\tthis.element = element;\n\t\t}",
"public abstract void setValue(T value);",
"public void setValue(Object value) {\n this.value = value;\n }",
"public static void setValue(WebElement element, Object value) {\r\n\t\ttry {\r\n\t\t\tString className = element.getAttribute(\"class\");\r\n\t\t\tswitch (className) {\r\n\t\t\t\tcase \"ui-input__field\":\r\n\t\t\t\t\telement.click();\r\n\t\t\t\t\telement.clear();\r\n\t\t\t\t\telement.sendKeys(value.toString());\r\n\t\t\t\t\telement.sendKeys(Keys.TAB);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tGlobals.sAssert.fail(className + \" is illegal class name\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogUtils.reportException(e);\r\n\t\t}\r\n\t}",
"public void setValue(T value) {\n this.value = value;\n }",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"public void setElement(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/element\",v);\n\t\t_Element=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}",
"void set(int idx, int val);",
"public void setElement(E e){\r\n\t\trotulo = e;\r\n\t}",
"@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}",
"public void setValue (String Value);",
"@Override\n public boolean set(int index, T element) {\n array[index] = element;\n return true;\n }",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(T value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(T value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(final Object value) { _value = value; }",
"public void setValue(S s) { value = s; }",
"public abstract void setValue(ELContext context, Object value);",
"void setValue(int value);",
"public int set(int index, int element);",
"@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}",
"void setValue(String value);",
"void setValue(String value);",
"public void set(int index, int value) {\n\t\t\tcheckIndex(index);\n\t\t\telementData[index] = value;\n\t\t}",
"void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}",
"@TimeComplexity(\"O(1)\")\n\tpublic E setElement(E eT)\n\t{\n\t\t//TCJ: the cost does not vary with input size so it is constant\n\t\tE temp = element;\n\t\telement = eT;\n\t\treturn temp;\n\t}",
"public void setAt(int iterator, T element) {\n data[iterator] = element;\n }",
"protected void setValue(T value) {\r\n this.value = value;\r\n }",
"public void set(int index, Object value) {\n verifyModifiable();\n\n try {\n elements.set(index, value);\n } catch (IndexOutOfBoundsException exception) {\n if (elements.size() != 0)\n throw new RuntimeException(\"failed to set a value beyond the end of the tuple elements array, size: \" + size() + \" , index: \" + index);\n else\n throw new RuntimeException(\"failed to set a value, tuple may not be initialized with values, is zero length\");\n }\n }",
"public Object set(int index, Object element) {\r\n return deref(refs.set(index, new WeakReference(element)));\r\n }",
"public void setValue(Object o){\n \tthis.value = o;\n }",
"public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}",
"public void setValue(int value);",
"public native void set(T value);",
"@Override\n public T set(int index, T element) {\n if (indexCheck(index)) {\n T previousValue = (T) data[index];\n data[index] = element;\n return previousValue;\n }\n return null;\n }",
"public void setElem(int elem)\r\n\t{\r\n\t\tthis.elem = elem;\r\n\t}",
"void setValue(T value) throws YangException;",
"public void setElement(boolean value) {\r\n this.element = value;\r\n }",
"public void setValue(int node, Type value) {\n\t\tvalues[node] = value;\n\t}",
"public void setValue(Value value) {\n this.value = value;\n }",
"public void setElementAt(Object obj, int index);",
"public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}",
"Form setElementValue(String elementId, List<String> value);",
"@Override\n\tpublic E set(int idx, E element) {\n\t\tif (element == null) throw new NullPointerException();\n\t\tif (idx < 0 || idx >= size()) throw new IndexOutOfBoundsException();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (element.equals(list[i]))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tE output = null;\n\t\toutput = list[idx];\n\t\tlist[idx] = element;\n\t\treturn output;\n\t}",
"public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }",
"public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}",
"public void set(String name, Object value) {\n }",
"public E set(int index, E element) {\n\t\tif(index < 0 || index > size) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t} else if(index == size) {\r\n\t\t\tadd(element);\r\n\t\t\treturn element;\r\n\t\t}\r\n\t\tE e = getNode(index).getData();\r\n\t\tgetNode(index).setData(element);\r\n\t\treturn e;\r\n\t}",
"String setValue();",
"public void setValueAt(Object val, int row, int col) {\r\n }",
"public static void setValue(MobileElement element, String text)\n\t{\n\t\telement.clear();\n\t\telement.setValue(text);\n\t}",
"public void set(int index, T element) {\n genericArrayList[index] = element;\n }",
"public void setValueAt(Object aValue, int row, int column)\n {\n\n }"
]
| [
"0.82229495",
"0.8167128",
"0.7944945",
"0.79443824",
"0.749653",
"0.7457201",
"0.7433626",
"0.7308634",
"0.72945815",
"0.7285555",
"0.7272339",
"0.72402465",
"0.72351074",
"0.71604234",
"0.7142928",
"0.71426404",
"0.7135816",
"0.7135816",
"0.71164167",
"0.7107785",
"0.70767653",
"0.70644945",
"0.7057793",
"0.70520073",
"0.70520073",
"0.6982996",
"0.6949816",
"0.6938049",
"0.6937954",
"0.6928152",
"0.6880001",
"0.68711084",
"0.6870001",
"0.684856",
"0.6839224",
"0.6829249",
"0.6829026",
"0.6797807",
"0.67566097",
"0.67562723",
"0.6748729",
"0.672053",
"0.67040485",
"0.6703564",
"0.66951984",
"0.66809136",
"0.6646834",
"0.66388285",
"0.6632489",
"0.66316247",
"0.66306174",
"0.6626569",
"0.66022784",
"0.6583207",
"0.656958",
"0.6565972",
"0.65651983",
"0.65597814",
"0.65597814",
"0.65597814",
"0.65597814",
"0.65531933",
"0.65531933",
"0.6530706",
"0.6529677",
"0.65177125",
"0.65165716",
"0.6508055",
"0.6507583",
"0.6501575",
"0.6501575",
"0.6499657",
"0.64949435",
"0.648855",
"0.64873195",
"0.64819723",
"0.64776206",
"0.6476638",
"0.6476189",
"0.6473794",
"0.64693856",
"0.6437648",
"0.642986",
"0.64278996",
"0.6426673",
"0.642597",
"0.6412553",
"0.64081025",
"0.63834256",
"0.63723505",
"0.6362441",
"0.63594604",
"0.63583463",
"0.63558763",
"0.6351727",
"0.6337771",
"0.63294435",
"0.6327591",
"0.63154227",
"0.63145125",
"0.63129693"
]
| 0.0 | -1 |
Perform scalar multiplication on the matrix | public Mat2 mult(double s) {
double[][] newData = new double[rows][cols];
for(int i=0; i<rows; i++) {
for(int j=0; j<cols; j++) {
newData[i][j] = data[i][j] * s;
}
}
return new Mat2(newData);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix multiply(double scalar) {\n Matrix result = new Matrix(this.rows, this.cols);\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.cols; j++) {\n result.data[i][j] = this.data[i][j] * scalar;\n }\n }\n\n return result;\n }",
"public void scalarMultiply(double s) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n matrix.get(i)[j] *= s;\n }\n }\n }",
"public final void mul(float scalar) {\n\tm00 *= scalar; m01 *= scalar; m02 *= scalar;\n\tm10 *= scalar; m11 *= scalar; m12 *= scalar;\n\tm20 *= scalar; m21 *= scalar; m22 *= scalar;\n }",
"Matrix scalarMult(double x){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n itRow.moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(i, c.column, (x*c.value));\n itRow.moveNext();\n }\n }\n\n return newM;\n }",
"private RealMatrix scalarMultiplication(RealMatrix matrix1, RealMatrix matrix2) {\n\t\tdouble a = matrix1.getEntry(0, 0);\n\t\tdouble b = matrix1.getEntry(1, 0);\n\t\tdouble c = matrix1.getEntry(2, 0);\n\t\tdouble d = matrix1.getEntry(3, 0);\n\t\t\n\t\tdouble[][] result = new double[matrix2.getRowDimension()][matrix2.getColumnDimension()];\n\t\t\n\t\tfor (int i=0; i < matrix2.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < matrix2.getColumnDimension(); j++) {\n\t\t\t\tif (i == 0) result[i][j] = a * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 1) result[i][j] = b * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 2) result[i][j] = c * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 3) result[i][j] = d * matrix2.getEntry(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MatrixUtils.createRealMatrix(result);\n\t}",
"public Vector<T> multiply(T aScalar);",
"public void multiplyScalar(double scalar) {\n if(scalar==1.0) {\n return;\n }\n for (T value : getFirstDimension()) {\n for (T secondValue : getMatches(value)) {\n double d = get(value, secondValue) * scalar;\n set(value, secondValue, d);\n }\n }\n }",
"Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }",
"public final void mul(float scalar, Matrix3f m1) {\n\t set(m1);\n\t mul(scalar);\n }",
"public void mul_(JType value) {\n TH.THTensor_(mul)(this, this, value);\n }",
"@Override\n\tpublic void\n\tscalarMult( double value )\n\t{\n\t\tdata[0] *= value;\n\t\tdata[1] *= value;\n\t\tdata[2] *= value;\n\t}",
"@Override\n\tpublic IVector scalarMultiply(double number){\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, this.get(i)*number);\n\t\t}\n\t\treturn this;\n\t}",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic IVector nScalarMultiply(double number){\n\t\treturn this.copy().scalarMultiply(number);\n\t}",
"public abstract Vector4fc mul(IMatrix4f mat);",
"public abstract Vector4fc mul(IMatrix4x3f mat);",
"public void matrixMultiply(Matrix m) {\n if (cols == m.getRows()) {\n ArrayList<double[]> result = newMatrix(rows, m.getCols());\n for (int i=0; i<rows; i++) {\n for (int k=0; k<m.getCols(); k++) {\n double sum = 0;\n for (int j=0; j<cols; j++) {\n sum += matrix.get(i)[j] * m.get(j, k);\n }\n result.get(i)[k] = sum;\n }\n }\n setMatrix(result, rows, m.getCols()); // Rows is that of original matrix, Columns is that of the multiplying matrix\n }\n else {\n throw new MatrixMultiplicationDimensionException();\n }\n }",
"public void multiply(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] *= skalar;\r\n }\r\n }\r\n }",
"private void mul() {\n\n\t}",
"public abstract <M extends AbstractMatrix> M elementwiseProduct(M b);",
"public void multiply() {\n\t\t\n\t}",
"private Vector<Double> multiplyRow(Vector<Double> row, double scalar) {\n row.replaceAll(n -> round(scalar * n, 8));\n return row;\n }",
"public Vector2D scalarMult(double scalar)\n {\n return new Vector2D(scalar * this.x, scalar * this.y);\n }",
"public long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);",
"Matrix mul(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] * w;\n }\n return matrix_to_return;\n }",
"public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}",
"public final void mMUL() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.MUL;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:708:5: ( 'mul' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:708:7: 'mul'\n\t\t\t{\n\t\t\t\tthis.match(\"mul\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}",
"abstract void mulS();",
"public T mul(T first, T second);",
"public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}",
"public Scalar mul(Scalar s) {\n\t\treturn new RealScalar(getValue() * ((RealScalar)s).getValue());\n\t}",
"public static short[][] scalarMultiply(short a, short[][] b, short n) {\n short[][] product = new short[b.length][b[0].length];\n for (int i = 0; i < b.length; i++) {\n for (int j = 0; j < b[0].length; j++) {\n product[i][j] = Arithmetic.reducedProduct(a, b[i][j], n);\n }\n } \n return product;\n }",
"double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;",
"@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}",
"public JTensor mul(JType value) {\n JTensor r = new JTensor();\n TH.THTensor_(mul)(r, this, value);\n return r;\n }",
"public T mult( T B ) {\n convertType.specify(this, B);\n\n // Look to see if there is a special function for handling this case\n if (this.mat.getType() != B.getType()) {\n Method m = findAlternative(\"mult\", mat, B.mat, convertType.commonType.getClassType());\n if (m != null) {\n T ret = wrapMatrix(convertType.commonType.create(1, 1));\n invoke(m, this.mat, B.mat, ret.mat);\n return ret;\n }\n }\n\n // Otherwise convert into a common matrix type if necessary\n T A = convertType.convert(this);\n B = convertType.convert(B);\n\n T ret = A.createMatrix(mat.getNumRows(), B.getMatrix().getNumCols(), A.getType());\n\n A.ops.mult(A.mat, B.mat, ret.mat);\n\n return ret;\n }",
"public DVec multiply(DVec arg0) {\n\t\tDVec vec = new DVec(arg0.rowCount());\n\t\tfor (int i = 0; i < rowCount(); i++)\n\t\t\tfor (int j = 0; j < columnCount(); j++)\n\t\t\t\tvec.set(i, get(i, j) * arg0.get(i));\n\t\treturn vec;\n\t}",
"public Vector2f mul(float scalar) {\n return mul(new Vector2f(scalar, scalar));\n }",
"public Matrix times(Matrix B) throws JPARSECException {\n if (B.m != n) {\n throw new JPARSECException(\"Matrix inner dimensions must agree.\");\n }\n Matrix X = new Matrix(m,B.n);\n double[][] C = X.getArray();\n double[] Bcolj = new double[n];\n for (int j = 0; j < B.n; j++) {\n for (int k = 0; k < n; k++) {\n Bcolj[k] = B.data[k][j];\n }\n for (int i = 0; i < m; i++) {\n double[] Arowi = data[i];\n double s = 0;\n for (int k = 0; k < n; k++) {\n s += Arowi[k]*Bcolj[k];\n }\n C[i][j] = s;\n }\n }\n return X;\n }",
"public static Matrix product(Matrix m) {\n int rows_c = m.rows(), cols_c = m.cols();\n Matrix d;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c, m);\n for (int col = 1; col <= cols_c; col++) {\n double prodCol = 1D;\n for (int row = 1; row <= rows_c; row++) {\n prodCol = prodCol * m.get(row, col);\n }\n d.set(1, col, prodCol);\n }\n }\n return d;\n }",
"public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"public Matrix multiply(Matrix other) {\n if (this.cols != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, other.cols); //Matrix full of zeros\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < other.cols; j++) {\n for (int k = 0; k < this.cols; k++) {\n result.data[i][j] += (this.data[i][k] * other.data[k][j]);\n }\n }\n }\n\n return result;\n }",
"public void multL(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = m.a11*a11 + m.a12*a21 + m.a13*a31;\n\t\tb12 = m.a11*a12 + m.a12*a22 + m.a13*a32;\n\t\tb13 = m.a11*a13 + m.a12*a23 + m.a13*a33;\n\t\tb14 = m.a11*a14 + m.a12*a24 + m.a13*a34 + m.a14;\n\t\tb21 = m.a21*a11 + m.a22*a21 + m.a23*a31;\n\t\tb22 = m.a21*a12 + m.a22*a22 + m.a23*a32;\n\t\tb23 = m.a21*a13 + m.a22*a23 + m.a23*a33;\n\t\tb24 = m.a21*a14 + m.a22*a24 + m.a23*a34 + m.a24;\n\n\t\tb31 = m.a31*a11 + m.a32*a21 + m.a33*a31;\n\t\tb32 = m.a31*a12 + m.a32*a22 + m.a33*a32;\n\t\tb33 = m.a31*a13 + m.a32*a23 + m.a33*a33;\n\t\tb34 = m.a31*a14 + m.a32*a24 + m.a33*a34 + m.a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"public abstract Vector4fc mulProject(IMatrix4f mat);",
"public Matrix multiply(int i) {\n\t\treturn multiply(new Fraction(i));\n\t}",
"public final void mul(Matrix3f m1) {\n\tmul(this, m1);\n }",
"public static Matrix multiply(Matrix first, Matrix second) {\n \n Matrix result = new Matrix(first.getRows(), first.getClumns());\n \n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] * second.matrix[row][col];\n }\n }\n \n return result;\n }",
"public Matrix times(double constant){\r\n \tMatrix cmat = new Matrix(this.nrow, this.ncol);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tcarray[i][j] = this.matrix[i][j]*constant;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public static TransformMatrix multiplyMatrix(TransformMatrix a, TransformMatrix b) {\n\t\treturn new TransformMatrix(\n\t\t\t\ta.a * b.a,\n\t\t\t\ta.b * b.b,\n\t\t\t\ta.a * b.c + a.c,\n\t\t\t\ta.b * b.d + a.d\n\t\t\t\t);\n\t}",
"@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}",
"@Override\n\tpublic double scalarProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble scalarSum = 0;\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tscalarSum += (this.get(i) * vector.get(i));\n\t\t}\n\t\treturn scalarSum;\n\t}",
"Matrix dot(Matrix m){\n if(this.cols != m.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n double[][] tmp_this = this.asArray();\n double[][] tmp_m = m.asArray();\n Matrix matrix_to_return = new Matrix(this.rows, m.cols);\n for(int i=0; i<matrix_to_return.rows; i++){\n for(int j=0; j<matrix_to_return.cols; j++){\n for(int k=0; k<matrix_to_return.rows; k++)\n matrix_to_return.data[i*this.cols + j] += tmp_this[i][k] * tmp_m[k][j];\n }\n }\n return matrix_to_return;\n }",
"public Matrix multiply(Matrix b) {\n MultMatrix multCommand = new MultMatrix();\n Matrix result = multCommand.multiply(this, b);\n\n return result;\n }",
"public Matrix times(Matrix bmat){\r\n \tif(this.ncol!=bmat.nrow)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, bmat.ncol);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<bmat.ncol; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat.matrix[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public Matrix times(double[][] bmat){\r\n \t int nr=bmat.length;\r\n \tint nc=bmat[0].length;\r\n\r\n \tif(this.ncol!=nr)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, nc);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public Matrix multiply(ComplexNumber cn) {\n\t\tMatrix a = copy();\n\t\tfor (int row = 0; row < a.M; row++) {\n\t\t\tfor (int col = 0; col < a.N; col++) {\n\t\t\t\ta.ROWS[row][col] = a.ROWS[row][col].multiply(cn);\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}",
"public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }",
"public Matrix mult (Matrix otherMatrix) {\n Matrix resultMatrix = new Matrix(nRows, otherMatrix.nColumns);\n\n ExecutorService executor = Executors.newFixedThreadPool(16);\n\n IntStream.range(0, nRows).forEach(rowIndex -> {\n executor.execute(() -> {\n IntStream.range(0, otherMatrix.nColumns).forEach(otherMatrixColIndex -> {\n double sum = IntStream.range(0, this.nColumns)\n .mapToDouble(colIndex -> this.data[rowIndex][colIndex] * otherMatrix.data[colIndex][otherMatrixColIndex])\n .sum();\n\n resultMatrix.setValue(rowIndex, otherMatrixColIndex, sum);\n });\n });\n });\n\n executor.shutdown();\n\n try {\n if (executor.awaitTermination(60, TimeUnit.MINUTES)){\n return resultMatrix;\n } else {\n System.out.println(\"Could not finish matrix multiplication\");\n }\n } catch (InterruptedException e) {\n System.out.println(\"Could not finish matrix multiplication, thread interrupted.\");\n }\n\n return null;\n }",
"public Matrix calculate();",
"private static void directProd(DMatrixRMaj a, DMatrixRMaj b, DMatrixRMaj c) {\n for (int i=0; i<5; ++i) {\n for (int j=0; j<5; ++j) {\n c.unsafe_set(i, j, a.unsafe_get(i, 0)*b.unsafe_get(j, 0));\n }\n }\n }",
"@Test\n\tpublic void testMultiply() {\n\t\tdouble epsilon = 0.0000000001;\n\n\t\tdouble[][] values2 = {{1.1, 1.2, 1.3}, {2.1, 2.2, 2.3}};\n\t\tMatrix m2 = new Matrix(values2);\n\n\t\tdouble[][] expectedValues = {{3.73, 3.96, 4.19}, {9.67, 10.24, 10.81}, {-2.07, -2.24, -2.41}};\n\t\tMatrix expected = new Matrix(expectedValues);\n\n\t\tMatrix product = m1.multiply(m2);\n\n\t\tassertEquals(3, product.getRowCount(), \"Product have unexpected number of rows.\");\n\t\tassertEquals(3, product.getColCount(), \"Product have unexpected number of columns.\");\n\n\t\tfor (int i = 0; i < product.getRowCount(); i++) {\n\t\t\tfor (int j = 0; j < product.getColCount(); j++) {\n\t\t\t\tassertTrue(Math.abs(product.get(i, j) - expected.get(i, j)) < epsilon,\n\t\t\t\t\t\"Unexpected value on row \" + i + \" column \" + j + \".\");\n\t\t\t}\n\t\t}\n\t}",
"Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }",
"private static void multiplyArray(double [][] matrixA, double [][] matrixB, double [][] matrixC) {\n\t\t\n\t\tmatrixC[0][0] = ((matrixA[0][0] * matrixB[0][0]) + (matrixA[0][1] * matrixB[1][0]));\n\t\tmatrixC[0][1] = ((matrixA[0][0] * matrixB[0][1]) + (matrixA[0][1] * matrixB[1][1]));\n\t\tmatrixC[1][0] = ((matrixA[1][0] * matrixB[0][0]) + (matrixA[1][1] * matrixB[1][0]));\n\t\tmatrixC[1][1] = ((matrixA[1][0] * matrixB[0][1]) + (matrixA[1][1] * matrixB[1][1]));\n\t}",
"public long[][] smultiply(int i){\n\t\tint sl = this.mat.length; //jumps to method sideLength to obtain the side length n of the matrix A\n\t\t//the global record contains an array of columns, where each column is an array of row elements. i.e.\n\t\t//the record contains the transpose of matrix A, where every row in the record is a column in A\n\t\t//a temporary 2D array tempMatA, and is made equal to the transpose of A\n\t\tlong[][] tempMatA = transpose(this.mat);\n\t\tlong[][] tempMat2 = new long[sl][sl]; //creates a temporary 2D matrix of the same size as tempMatA\n\t\tlong[][] outMat = new long[sl][sl];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"+\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\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\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return matrix must be re-transposed to return a the proper format of 2D array for the global array\n\t\toutMat = transpose(outMat);\n\t\treturn outMat;\n\t}",
"private void multiply(float... values) {\n buffer(() -> {\n try (Pooled<Matrix4F> mat = Matrix4F.of(values)) {\n kernel.get().multiply(mat.get());\n }\n trans.set(kernel.get().asArray());\n });\n }",
"private static native double mul(int n);",
"public static Matrix times(Matrix amat, double constant){\r\n \tMatrix cmat = new Matrix(amat.nrow, amat.ncol);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n\r\n \t \tfor(int i=0; i<amat.nrow; i++){\r\n \t\tfor(int j=0; j<amat.ncol; j++){\r\n \t\tcarray[i][j] = amat.matrix[i][j]*constant;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public void multR(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = a11*m.a11 + a12*m.a21 + a13*m.a31;\n\t\tb12 = a11*m.a12 + a12*m.a22 + a13*m.a32;\n\t\tb13 = a11*m.a13 + a12*m.a23 + a13*m.a33;\n\t\tb14 = a11*m.a14 + a12*m.a24 + a13*m.a34 + a14;\n\t\tb21 = a21*m.a11 + a22*m.a21 + a23*m.a31;\n\t\tb22 = a21*m.a12 + a22*m.a22 + a23*m.a32;\n\t\tb23 = a21*m.a13 + a22*m.a23 + a23*m.a33;\n\t\tb24 = a21*m.a14 + a22*m.a24 + a23*m.a34 + a24;\n\n\t\tb31 = a31*m.a11 + a32*m.a21 + a33*m.a31;\n\t\tb32 = a31*m.a12 + a32*m.a22 + a33*m.a32;\n\t\tb33 = a31*m.a13 + a32*m.a23 + a33*m.a33;\n\t\tb34 = a31*m.a14 + a32*m.a24 + a33*m.a34 + a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.columnCount != B.rowCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.rowCount, B.columnCount);\n for (int i = 0; i < C.rowCount; i++)\n for (int j = 0; j < C.columnCount; j++)\n for (int k = 0; k < A.columnCount; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"@Override\n public void run() {\n result.prod(indexes.getI(),indexes.getJ(),matrix1,matrix2);\n }",
"public Mat2 mult(Mat2 m) {\n\t\tdouble[][] newData = new double[rows][m.cols];\n\t\t//if(rows != m.cols) throw new IllegalArgumentException(\"cannot multiply a \" + rows + \" by \" + cols + \n\t\t\t//\t\" matrix and a \" + m.rows + \" by \" + m.cols + \" matrix\");\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<m.cols; j++) {\n\t\t\t\tdouble total = 0.0;\n\t\t\t\tfor(int c=0; c<cols; c++) {\n\t\t\t\t\ttotal += data[i][c] * m.data[c][j];\n\t\t\t\t}\n\t\t\t\tnewData[i][j] = total;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(newData);\n\t}",
"public void testMultiply() {\r\n System.out.println(\"Multiply\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E100, 1.1E100}, \r\n {9., -6.25, 0., 0., 1., -4., 10.2, 12.95, 1.21E200, -1.21E200}};\r\n for(int i = 0; i < 10; i++){\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Multiply(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n }",
"public void postMultiply(Transform transform) {\n matrix = mulMM(matrix, transform.matrix);\n }",
"public Matrix multiply(Matrix m2)\n\t{\n\t\tMatrix result = new Matrix(new double[matrix.length][matrix[0].length]);\n\t\tfor(int i = 0; i < matrix.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < matrix.length; j++)\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < matrix.length; k++)\n\t\t\t\t{\n\t\t\t\t\tresult.matrix[i][j] = result.matrix[i][j] + matrix[i][k] * m2.matrix[k][j];\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn result;\n\t}",
"public Matrix scale(Double scalar) {\n\t\treturn null;\r\n\t}",
"public void mul() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->mul() unimplemented!\\n\");\n }",
"public Vector tensorProduct( final Vector a);",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.n != B.m) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.m, B.n);\n for (int i = 0; i < C.m; i++)\n for (int j = 0; j < C.n; j++)\n for (int k = 0; k < A.n; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.N != B.M) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.M, B.N);\n for (int i = 0; i < C.M; i++)\n for (int j = 0; j < C.N; j++)\n for (int k = 0; k < A.N; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public double scalarProductNS(ThreeVector v1) {\r\n\t\treturn scalarProduct(v1, this);\r\n\t}",
"public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}",
"private static double[] matrixMultiply(double[][] bezier, double[] matrixVars) {\r\n\t\tdouble[] result = {0,0,0,0};\r\n\t\tfor (int i = 0; i < bezier.length; i++) {\r\n\t\t\tfor (int j=0; j < matrixVars.length; j++) {\r\n\t\t\t\tresult[i] += bezier[i][j]*matrixVars[j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n }",
"public void multiply(double val) {\n for (int i = 0; i < numRows; i++) {\n for (int j = 0; j < numCols; j++) {\n data[i][j] = data[i][j] * val;\n }\n }\n }",
"public void rightMultiply(Matrix other){\n \tdouble[][] temp = new double[4][4];\n\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n \t\t array[i][j] += other.array[i][k] * temp[k][j];\n\t\t}\n\t }\n\t}\n }",
"public static int[][] matrixMultiply(int[][] matA, int[][] matB)\n {\n if(isRect(matA)== false || isRect(matB)== false || matA[0].length != matB.length)\n {\n System.out.println(\"You cant not multiply these matrices\");\n int[][] matC = {{}};\n return matC;\n }\n else\n {\n int[][] matC = new int[matA.length][matB[0].length];\n for(int i = 0; i < matA.length; i++)\n for(int j = 0; j < matB[0].length; j++)\n for(int k = 0; k < matA[0].length; k++)\n {\n matC[i][j] += matA[i][k] * matB[k][j];\n }\n return matC;\n }\n }",
"private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }",
"public Scalar evaluate(Scalar scalar) {\n\t\tScalar ans=scalar;\n\t\tans=ans.pow(this.exponent);\n\t\treturn this.coefficient.mul(ans);\n\t}",
"@Test(expectedExceptions = IllegalArgumentException.class)\n\tpublic void testMultiplyWrongDimensions() {\n\t\tm1.multiply(m1);\n\t}",
"public static void mult(TransformationMatrix l, TransformationMatrix r, TransformationMatrix m) {\n\t\tm.a11 = l.a11*r.a11 + l.a12*r.a21 + l.a13*r.a31;\n\t\tm.a12 = l.a11*r.a12 + l.a12*r.a22 + l.a13*r.a32;\n\t\tm.a13 = l.a11*r.a13 + l.a12*r.a23 + l.a13*r.a33;\n\t\tm.a14 = l.a11*r.a14 + l.a12*r.a24 + l.a13*r.a34 + l.a14;\n\t\tm.a21 = l.a21*r.a11 + l.a22*r.a21 + l.a23*r.a31;\n\t\tm.a22 = l.a21*r.a12 + l.a22*r.a22 + l.a23*r.a32;\n\t\tm.a23 = l.a21*r.a13 + l.a22*r.a23 + l.a23*r.a33;\n\t\tm.a24 = l.a21*r.a14 + l.a22*r.a24 + l.a23*r.a34 + l.a24;\n\t\tm.a31 = l.a31*r.a11 + l.a32*r.a21 + l.a33*r.a31;\n\t\tm.a32 = l.a31*r.a12 + l.a32*r.a22 + l.a33*r.a32;\n\t\tm.a33 = l.a31*r.a13 + l.a32*r.a23 + l.a33*r.a33;\n\t\tm.a34 = l.a31*r.a14 + l.a32*r.a24 + l.a33*r.a34 + l.a34;\n\t}",
"public T elementMult( T b ) {\n convertType.specify(this, b);\n T A = convertType.convert(this);\n b = convertType.convert(b);\n\n T c = A.createLike();\n A.ops.elementMult(A.mat, b.mat, c.mat);\n return c;\n }",
"protected MatrixToken _multiply(MatrixToken rightArgument)\n\t\t\tthrows IllegalActionException {\n\t\tLongMatrixToken convertedArgument = (LongMatrixToken) rightArgument;\n\t\tlong[] A = _value;\n\t\tlong[] B = convertedArgument._getInternalLongArray();\n\t\tint m = _rowCount;\n\t\tint n = _columnCount;\n\t\tint p = convertedArgument.getColumnCount();\n\t\tlong[] newMatrix = new long[m * p];\n\t\tint in = 0;\n\t\tint ta = 0;\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tta += n;\n\n\t\t\tfor (int j = 0; j < p; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tint ib = j;\n\n\t\t\t\tfor (int ia = i * n; ia < ta; ia++, ib += p) {\n\t\t\t\t\tsum += (A[ia] * B[ib]);\n\t\t\t\t}\n\n\t\t\t\tnewMatrix[in++] = sum;\n\t\t\t}\n\t\t}\n\n\t\treturn new LongMatrixToken(newMatrix, m, p, DO_NOT_COPY);\n\t}",
"public int multiplication(int[] dsMat, int i, int j, int[][] T)\n\t{\n\t\tif (i == j) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t// variable to store cost of scalar multiplications\n\t\tint min = Integer.MAX_VALUE;\n\n\t\t// if this value is calculted for first time\n\t\tif (T[i][j] == 0)\n\t\t{\n /* M[i,j]\n /\\\n / \\\n / \\\n M[i,k] M[k+1,j] \n */\n\n\t\t\tfor (int k = i ; k < j; k++)\n\t\t\t{\n\t\t\t\t // recur for i x k matrix // recur for k+1 x j matrix \n int cost = multiplication(dsMat, i, k, T) + multiplication(dsMat, k+1, j, T);\n\n // cost to multiply two (i x k) and (k+1 x j) matrix\n cost+= dsMat[i-1] * dsMat[k] * dsMat[j];\n \n // take minimum possible cost\n\t\t\t\tif (cost < min)\n\t\t\t\t\tmin = cost;\n }\n \n // put in table for future reference\n\t\t\tT[i][j] = min;\n\t\t}\n\n\t\t// return min cost to multiply M[i,j]\n\t\treturn T[i][j];\n\t}",
"public void mult(Mat2 m, Mat2 dest) {\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<m.cols; j++) {\n\t\t\t\tdouble total = 0.0f;\n\t\t\t\tfor(int c=0; c<cols; c++) {\n\t\t\t\t\ttotal += data[i][c] * m.data[c][j];\n\t\t\t\t}\n\t\t\t\tdest.set(i, j, total);\n\t\t\t}\n\t\t}\n\t}",
"public Vector3 mul(final Matrix4 matrix) {\r\n\t\tfinal float l_mat[] = matrix.val;\r\n\t\treturn this.set(x * l_mat[Matrix4.M00] + y * l_mat[Matrix4.M01] + z * l_mat[Matrix4.M02] + l_mat[Matrix4.M03],\r\n\t\t\t\tx * l_mat[Matrix4.M10] + y * l_mat[Matrix4.M11] + z * l_mat[Matrix4.M12] + l_mat[Matrix4.M13],\r\n\t\t\t\tx * l_mat[Matrix4.M20] + y * l_mat[Matrix4.M21] + z * l_mat[Matrix4.M22] + l_mat[Matrix4.M23]);\r\n\t}",
"public static Matrix multiply(Matrix mat1, Matrix mat2) throws Exception {\n double[][] temp = new double[mat1.rows][mat2.cols];\n try {\n if(mat1.cols == mat2.rows){\n for(int col = 0; col < mat2.cols; col++) {\n for (int row = 0; row < mat1.rows; row++) {\n for (int rowin = 0; rowin < mat2.rows; rowin++) {\n for (int colin = 0; colin < mat1.cols; colin++) {\n temp[row][col] += mat1.arr[row][colin] * mat2.arr[rowin][col];\n }\n }\n }\n }\n }\n\n }catch (Exception e){\n e.printStackTrace();\n throw new Exception(\"Matrices are the wrong size: \" +\n mat1 +\n \" and \" +\n mat2 +\n \" and temp \" +\n Arrays.toString(temp));\n }\n return new Matrix(mat1.rows, mat2.cols, temp);\n }",
"public Matrix multiply(BigInteger c, BigInteger modulo) {\n Stream<BigInteger[]> stream = Arrays.stream(inner);\n if (concurrent) {\n stream = stream.parallel();\n }\n\n BigInteger[][] res = stream.map(r -> rowMultiplyConstant(r, c, modulo)).toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }",
"public Matrix getValue();",
"public Matrix3 multiplySelf(Matrix3 m)\n {\n Matrix3 temp = Matrix3.REUSABLE_STACK.pop().initZero();\n\n for (int r = 0; r < 3; r++)\n {\n for (int c = 0; c < 3; c++)\n {\n for (int k = 0; k < 3; k++)\n temp.set(c, r, temp.get(c, r) + this.m[k][r] * m.get(c, k));\n }\n }\n\n this.set(temp);\n Matrix3.REUSABLE_STACK.push(temp);\n\n return this;\n }",
"public Matrix multiplyTransposeSelf(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbColumns, m.getNbColumns());\n\t\tmultiplyTransposeA(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}"
]
| [
"0.7612111",
"0.7555338",
"0.73296875",
"0.72368616",
"0.7228951",
"0.69438946",
"0.69158113",
"0.6856788",
"0.6849229",
"0.6789268",
"0.6764683",
"0.6759577",
"0.66476756",
"0.663726",
"0.6634501",
"0.6524826",
"0.65021837",
"0.6480186",
"0.6453657",
"0.6357867",
"0.63509583",
"0.63239753",
"0.63034177",
"0.62893903",
"0.62449855",
"0.62215257",
"0.62145966",
"0.6210929",
"0.62042594",
"0.61921966",
"0.61666536",
"0.6146264",
"0.61440265",
"0.61379045",
"0.61372536",
"0.61021703",
"0.6076442",
"0.60654306",
"0.6037417",
"0.60214394",
"0.601451",
"0.601129",
"0.6006029",
"0.60056645",
"0.59779805",
"0.5971389",
"0.5969264",
"0.5962932",
"0.5929152",
"0.5928129",
"0.59259784",
"0.59204954",
"0.5889834",
"0.5881219",
"0.58799714",
"0.58691245",
"0.58672184",
"0.5845666",
"0.58402175",
"0.5839059",
"0.5836112",
"0.5813003",
"0.58073956",
"0.5804127",
"0.5791213",
"0.5781896",
"0.57741284",
"0.57683057",
"0.576624",
"0.5758345",
"0.57427174",
"0.5742141",
"0.57399917",
"0.57392573",
"0.57301915",
"0.5709787",
"0.5699971",
"0.56961894",
"0.56810945",
"0.5671618",
"0.5669221",
"0.566281",
"0.5654665",
"0.564304",
"0.56413317",
"0.5639954",
"0.56360316",
"0.56308156",
"0.56304526",
"0.5626653",
"0.5626178",
"0.5624096",
"0.5617641",
"0.5606931",
"0.560097",
"0.5593667",
"0.55798817",
"0.55761665",
"0.5569215",
"0.5569106"
]
| 0.56330156 | 87 |
Perform the product A B where A = this matrix and B = m | public Mat2 mult(Mat2 m) {
double[][] newData = new double[rows][m.cols];
//if(rows != m.cols) throw new IllegalArgumentException("cannot multiply a " + rows + " by " + cols +
// " matrix and a " + m.rows + " by " + m.cols + " matrix");
for(int i=0; i<rows; i++) {
for(int j=0; j<m.cols; j++) {
double total = 0.0;
for(int c=0; c<cols; c++) {
total += data[i][c] * m.data[c][j];
}
newData[i][j] = total;
}
}
return new Mat2(newData);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract <M extends AbstractMatrix> M elementwiseProduct(M b);",
"Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }",
"public void matrixMultiply(Matrix m) {\n if (cols == m.getRows()) {\n ArrayList<double[]> result = newMatrix(rows, m.getCols());\n for (int i=0; i<rows; i++) {\n for (int k=0; k<m.getCols(); k++) {\n double sum = 0;\n for (int j=0; j<cols; j++) {\n sum += matrix.get(i)[j] * m.get(j, k);\n }\n result.get(i)[k] = sum;\n }\n }\n setMatrix(result, rows, m.getCols()); // Rows is that of original matrix, Columns is that of the multiplying matrix\n }\n else {\n throw new MatrixMultiplicationDimensionException();\n }\n }",
"public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t for (int i = 0; i < matrix1row; i++) {//outer loop refers to row position\r\n\t\t for (int j = 0; j < matrix2column; j++) {//refers to column position\r\n\t\t for (int k = 0; k < matrix1column; k++) {\r\n\t\t \t //adds the products of row*column elements until the row/column is complete\r\n\t\t \t //updates to next row/column\r\n\t\t matrix3[i][j] = matrix3[i][j] + matrix1[i][k] * matrix2[k][j];\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t print(matrix3);\r\n\t\t }",
"public long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);",
"public static Matrix product(Matrix m) {\n int rows_c = m.rows(), cols_c = m.cols();\n Matrix d;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c, m);\n for (int col = 1; col <= cols_c; col++) {\n double prodCol = 1D;\n for (int row = 1; row <= rows_c; row++) {\n prodCol = prodCol * m.get(row, col);\n }\n d.set(1, col, prodCol);\n }\n }\n return d;\n }",
"Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }",
"public void multR(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = a11*m.a11 + a12*m.a21 + a13*m.a31;\n\t\tb12 = a11*m.a12 + a12*m.a22 + a13*m.a32;\n\t\tb13 = a11*m.a13 + a12*m.a23 + a13*m.a33;\n\t\tb14 = a11*m.a14 + a12*m.a24 + a13*m.a34 + a14;\n\t\tb21 = a21*m.a11 + a22*m.a21 + a23*m.a31;\n\t\tb22 = a21*m.a12 + a22*m.a22 + a23*m.a32;\n\t\tb23 = a21*m.a13 + a22*m.a23 + a23*m.a33;\n\t\tb24 = a21*m.a14 + a22*m.a24 + a23*m.a34 + a24;\n\n\t\tb31 = a31*m.a11 + a32*m.a21 + a33*m.a31;\n\t\tb32 = a31*m.a12 + a32*m.a22 + a33*m.a32;\n\t\tb33 = a31*m.a13 + a32*m.a23 + a33*m.a33;\n\t\tb34 = a31*m.a14 + a32*m.a24 + a33*m.a34 + a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"Matrix dot(Matrix m){\n if(this.cols != m.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n double[][] tmp_this = this.asArray();\n double[][] tmp_m = m.asArray();\n Matrix matrix_to_return = new Matrix(this.rows, m.cols);\n for(int i=0; i<matrix_to_return.rows; i++){\n for(int j=0; j<matrix_to_return.cols; j++){\n for(int k=0; k<matrix_to_return.rows; k++)\n matrix_to_return.data[i*this.cols + j] += tmp_this[i][k] * tmp_m[k][j];\n }\n }\n return matrix_to_return;\n }",
"public void multL(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = m.a11*a11 + m.a12*a21 + m.a13*a31;\n\t\tb12 = m.a11*a12 + m.a12*a22 + m.a13*a32;\n\t\tb13 = m.a11*a13 + m.a12*a23 + m.a13*a33;\n\t\tb14 = m.a11*a14 + m.a12*a24 + m.a13*a34 + m.a14;\n\t\tb21 = m.a21*a11 + m.a22*a21 + m.a23*a31;\n\t\tb22 = m.a21*a12 + m.a22*a22 + m.a23*a32;\n\t\tb23 = m.a21*a13 + m.a22*a23 + m.a23*a33;\n\t\tb24 = m.a21*a14 + m.a22*a24 + m.a23*a34 + m.a24;\n\n\t\tb31 = m.a31*a11 + m.a32*a21 + m.a33*a31;\n\t\tb32 = m.a31*a12 + m.a32*a22 + m.a33*a32;\n\t\tb33 = m.a31*a13 + m.a32*a23 + m.a33*a33;\n\t\tb34 = m.a31*a14 + m.a32*a24 + m.a33*a34 + m.a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"public Matrix multiply(Matrix b) {\n MultMatrix multCommand = new MultMatrix();\n Matrix result = multCommand.multiply(this, b);\n\n return result;\n }",
"public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}",
"public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }",
"public static BigDecimal[][] multiplyMatrices(BigDecimal[][] m1, BigDecimal[][] m2){\n\t\t\n\t\tint size = m1.length;\n\t\t\n\t\tBigDecimal[][] next = new BigDecimal[size][size];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tfor(int j = 0; j < size; j++){\n\t\t\t\tBigDecimal current = new BigDecimal(0);\n\t\t\t\tfor(int k = 0; k < size; k++)\n\t\t\t\t\tcurrent = current.add(m1[i][k].multiply(m2[k][j]));\n\n\t\t\t\tnext[i][j] = current;\n\t\t\t}\n\t\t}\n\t\treturn next;\n\t}",
"public Matrix multiply(Matrix m2)\n\t{\n\t\tMatrix result = new Matrix(new double[matrix.length][matrix[0].length]);\n\t\tfor(int i = 0; i < matrix.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < matrix.length; j++)\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < matrix.length; k++)\n\t\t\t\t{\n\t\t\t\t\tresult.matrix[i][j] = result.matrix[i][j] + matrix[i][k] * m2.matrix[k][j];\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn result;\n\t}",
"@SuppressWarnings(\"UnnecessaryLocalVariable\")//Readability\n public Matrix multiply(Matrix b, BigInteger modulo) {\n if (nrOfCols != b.nrOfRows) {\n throw new MalformedMatrixException(\"Matrix with dimensions \" + nrOfRows + \"x\" + nrOfCols +\n \" cannot be multiplied with matrix with dimensions \" + b.nrOfRows + \"x\" + b.nrOfCols);\n }\n Matrix a = this;\n\n int m = a.nrOfRows;\n int p = b.nrOfCols;\n\n final BigInteger[][] result = new BigInteger[m][p];\n\n //Compute the resulting row, using a parallel stream to properly utilize multi-core CPU\n IntStream range = IntStream.range(0, m);\n if (concurrent) {\n range = range.parallel();\n }\n range.forEach(computeRowMultiplication(result, a, b, modulo));\n\n return new Matrix(result);\n }",
"public Matrix multiplyTransposeM(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbRows, m.getNbRows());\n\t\tmultiplyTransposeB(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}",
"public void MatrixChainMultiply(int[] p) {\n n = p.length - 1;\t// how many matrices are in the chain\n m = new int[n + 1][n + 1];\t// overallocate m, so that we don't use index 0\n s = new int[n + 1][n + 1];\t// same for s\n matrixChainOrder(p);\t// run the dynamic-programming algorithm\n }",
"@Override\n public void run() {\n result.prod(indexes.getI(),indexes.getJ(),matrix1,matrix2);\n }",
"public Matrix multiply(Matrix other) {\n if (this.cols != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, other.cols); //Matrix full of zeros\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < other.cols; j++) {\n for (int k = 0; k < this.cols; k++) {\n result.data[i][j] += (this.data[i][k] * other.data[k][j]);\n }\n }\n }\n\n return result;\n }",
"public static TransformMatrix multiplyMatrix(TransformMatrix a, TransformMatrix b) {\n\t\treturn new TransformMatrix(\n\t\t\t\ta.a * b.a,\n\t\t\t\ta.b * b.b,\n\t\t\t\ta.a * b.c + a.c,\n\t\t\t\ta.b * b.d + a.d\n\t\t\t\t);\n\t}",
"public void multiply(Monom m){\r\n\t\tint temp_power = this.get_power();\r\n\t\tdouble temp_coaf = this.get_coefficient();\r\n\t\ttemp_power += m.get_power();\r\n\t\ttemp_coaf *= m.get_coefficient();\r\n\t\tthis.set_power(temp_power);\r\n\t\tthis.set_coefficient(temp_coaf);\r\n\t}",
"@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}",
"public Matrix multiplyTransposeSelf(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbColumns, m.getNbColumns());\n\t\tmultiplyTransposeA(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}",
"private static void directProd(DMatrixRMaj a, DMatrixRMaj b, DMatrixRMaj c) {\n for (int i=0; i<5; ++i) {\n for (int j=0; j<5; ++j) {\n c.unsafe_set(i, j, a.unsafe_get(i, 0)*b.unsafe_get(j, 0));\n }\n }\n }",
"public T mult( T B ) {\n convertType.specify(this, B);\n\n // Look to see if there is a special function for handling this case\n if (this.mat.getType() != B.getType()) {\n Method m = findAlternative(\"mult\", mat, B.mat, convertType.commonType.getClassType());\n if (m != null) {\n T ret = wrapMatrix(convertType.commonType.create(1, 1));\n invoke(m, this.mat, B.mat, ret.mat);\n return ret;\n }\n }\n\n // Otherwise convert into a common matrix type if necessary\n T A = convertType.convert(this);\n B = convertType.convert(B);\n\n T ret = A.createMatrix(mat.getNumRows(), B.getMatrix().getNumCols(), A.getType());\n\n A.ops.mult(A.mat, B.mat, ret.mat);\n\n return ret;\n }",
"public Matrix3 multiplySelf(Matrix3 m)\n {\n Matrix3 temp = Matrix3.REUSABLE_STACK.pop().initZero();\n\n for (int r = 0; r < 3; r++)\n {\n for (int c = 0; c < 3; c++)\n {\n for (int k = 0; k < 3; k++)\n temp.set(c, r, temp.get(c, r) + this.m[k][r] * m.get(c, k));\n }\n }\n\n this.set(temp);\n Matrix3.REUSABLE_STACK.push(temp);\n\n return this;\n }",
"static public double[][] MatrixMult( double [][] A , double [][] B) {\n\t// A [NxK] * B[KxZ] = M[NxZ]\n\tif ( A.length == 0 || B.length == 0 || A[0].length != B.length ) {\n\t System.out.println( \"Matrix Mult Error, Invalid Input Matricies\" );\n\t return new double[1][1];\n\t}\n\tint Rows = A.length , Cols = B[0].length;\n\tdouble [][] M = new double[Rows][Cols];\n\tfor( int i = 0; i < Rows ; i++ ) {\n\t for( int j = 0; j < Cols ; j++ ) {\n\t\tM[i][j] = multRowByCol( A , B , i , j );\n\t }\n\t}\n\treturn M;\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.columnCount != B.rowCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.rowCount, B.columnCount);\n for (int i = 0; i < C.rowCount; i++)\n for (int j = 0; j < C.columnCount; j++)\n for (int k = 0; k < A.columnCount; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.n != B.m) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.m, B.n);\n for (int i = 0; i < C.m; i++)\n for (int j = 0; j < C.n; j++)\n for (int k = 0; k < A.n; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public static int[][] matrixMultiply(int[][] matA, int[][] matB)\n {\n if(isRect(matA)== false || isRect(matB)== false || matA[0].length != matB.length)\n {\n System.out.println(\"You cant not multiply these matrices\");\n int[][] matC = {{}};\n return matC;\n }\n else\n {\n int[][] matC = new int[matA.length][matB[0].length];\n for(int i = 0; i < matA.length; i++)\n for(int j = 0; j < matB[0].length; j++)\n for(int k = 0; k < matA[0].length; k++)\n {\n matC[i][j] += matA[i][k] * matB[k][j];\n }\n return matC;\n }\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.N != B.M) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.M, B.N);\n for (int i = 0; i < C.M; i++)\n for (int j = 0; j < C.N; j++)\n for (int k = 0; k < A.N; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public static double[][] multiplyMatrices(double[][] firstMatrix, double[][] secondMatrix, int r1, int c1, int c2) {\r\n\t double[][] product = new double[r1][c2];\r\n\t for(int i = 0; i < r1; i++) {\r\n\t for (int j = 0; j < c2; j++) {\r\n\t for (int k = 0; k < c1; k++) {\r\n\t product[i][j] += firstMatrix[i][k] * secondMatrix[k][j];\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t return product;\r\n\t }",
"public Matrix times(Matrix B) throws JPARSECException {\n if (B.m != n) {\n throw new JPARSECException(\"Matrix inner dimensions must agree.\");\n }\n Matrix X = new Matrix(m,B.n);\n double[][] C = X.getArray();\n double[] Bcolj = new double[n];\n for (int j = 0; j < B.n; j++) {\n for (int k = 0; k < n; k++) {\n Bcolj[k] = B.data[k][j];\n }\n for (int i = 0; i < m; i++) {\n double[] Arowi = data[i];\n double s = 0;\n for (int k = 0; k < n; k++) {\n s += Arowi[k]*Bcolj[k];\n }\n C[i][j] = s;\n }\n }\n return X;\n }",
"public static double[][] multiply(double[][] a, double[][] b) {\n int m1 = a.length;\n int n1 = a[0].length;\n int m2 = b.length;\n int n2 = b[0].length;\n if (n1 != m2) throw new RuntimeException(\"Illegal matrix dimensions.\");\n double[][] c = new double[m1][n2];\n for (int i = 0; i < m1; i++)\n for (int j = 0; j < n2; j++)\n for (int k = 0; k < n1; k++)\n c[i][j] += a[i][k] * b[k][j];\n return c;\n }",
"static float[] mulMM(float[] m1, float[] m2){\n \t\n \t\tif(m1.length != 16 || m2.length != 16){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n \t\n float[] result = new float[16];\n for(int i = 0; i < 4; i++){ \n for(int j = 0; j < 4; j++){ \n float rij = 0;\n for(int k = 0; k < 4; k++){\n rij += m1[j*4+k] * m2[i+4*k];\n }\n// result[i*4+j] = rij;\n result[i+j*4] = rij;\n }\n }\n return result;\n }",
"public Matrix mult (Matrix otherMatrix) {\n Matrix resultMatrix = new Matrix(nRows, otherMatrix.nColumns);\n\n ExecutorService executor = Executors.newFixedThreadPool(16);\n\n IntStream.range(0, nRows).forEach(rowIndex -> {\n executor.execute(() -> {\n IntStream.range(0, otherMatrix.nColumns).forEach(otherMatrixColIndex -> {\n double sum = IntStream.range(0, this.nColumns)\n .mapToDouble(colIndex -> this.data[rowIndex][colIndex] * otherMatrix.data[colIndex][otherMatrixColIndex])\n .sum();\n\n resultMatrix.setValue(rowIndex, otherMatrixColIndex, sum);\n });\n });\n });\n\n executor.shutdown();\n\n try {\n if (executor.awaitTermination(60, TimeUnit.MINUTES)){\n return resultMatrix;\n } else {\n System.out.println(\"Could not finish matrix multiplication\");\n }\n } catch (InterruptedException e) {\n System.out.println(\"Could not finish matrix multiplication, thread interrupted.\");\n }\n\n return null;\n }",
"Matrix mul(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] * w;\n }\n return matrix_to_return;\n }",
"private static int[][] sparseMatrixMultiplyBruteForce (int[][] A, int[][] B) {\n int[][] result = new int[A.length][B[0].length];\n\n for(int i = 0; i < result.length; i++) {\n for(int j = 0; j < result[0].length; j++) {\n int sum = 0;\n for(int k = 0; k < A[0].length; k++) {\n sum += A[i][k] * B[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n }",
"public static Matrix multiply(Matrix first, Matrix second) {\n \n Matrix result = new Matrix(first.getRows(), first.getClumns());\n \n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] * second.matrix[row][col];\n }\n }\n \n return result;\n }",
"public static long[][] multiply(long F[][], long M[][]){\n long x = F[0][0]*M[0][0] + F[0][1]*M[1][0]; \n long y = F[0][0]*M[0][1] + F[0][1]*M[1][1]; \n long z = F[1][0]*M[0][0] + F[1][1]*M[1][0]; \n long w = F[1][0]*M[0][1] + F[1][1]*M[1][1]; \n\n return new long[][]{{x,y},{z,w}};\n }",
"public void mult(Mat2 m, Mat2 dest) {\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<m.cols; j++) {\n\t\t\t\tdouble total = 0.0f;\n\t\t\t\tfor(int c=0; c<cols; c++) {\n\t\t\t\t\ttotal += data[i][c] * m.data[c][j];\n\t\t\t\t}\n\t\t\t\tdest.set(i, j, total);\n\t\t\t}\n\t\t}\n\t}",
"private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }",
"private static double[] matrixMultiply(double[][] bezier, double[] matrixVars) {\r\n\t\tdouble[] result = {0,0,0,0};\r\n\t\tfor (int i = 0; i < bezier.length; i++) {\r\n\t\t\tfor (int j=0; j < matrixVars.length; j++) {\r\n\t\t\t\tresult[i] += bezier[i][j]*matrixVars[j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n }",
"public Matriz punto(Matriz B) {\n\t\tMatriz A = this;\n\t\tif (A.getColumnas() != B.getFilas()) { throw new RuntimeException(\"Dimensiones no compatibles.\"); }\n\t\t\n\t\tMatriz C = new Matriz(A.getFilas(), B.getColumnas());\n\t\tfor (int i = 0 ; i < C.getFilas() ; i++) {\n\t\t\tfor (int j = 0 ; j < C.getColumnas() ; j++) {\n\t\t\t\tfor (int k = 0 ; k < A.getColumnas() ; k++) {\n\t\t\t\t\tC.setValor(i, j, C.getValor(i, j) + (A.getValor(i, k) * B.getValor(k, j)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn C;\n\t}",
"public void compose(TransformMatrix mB) {\n\t\ta = mB.a * a;\n\t\tb = mB.b * b;\n\t\tc = mB.a * c + mB.c;\n\t\td = mB.b * d + mB.d;\n\t}",
"public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public void rightMultiply(Matrix other){\n \tdouble[][] temp = new double[4][4];\n\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n \t\t array[i][j] += other.array[i][k] * temp[k][j];\n\t\t}\n\t }\n\t}\n }",
"public static void mult(TransformationMatrix l, TransformationMatrix r, TransformationMatrix m) {\n\t\tm.a11 = l.a11*r.a11 + l.a12*r.a21 + l.a13*r.a31;\n\t\tm.a12 = l.a11*r.a12 + l.a12*r.a22 + l.a13*r.a32;\n\t\tm.a13 = l.a11*r.a13 + l.a12*r.a23 + l.a13*r.a33;\n\t\tm.a14 = l.a11*r.a14 + l.a12*r.a24 + l.a13*r.a34 + l.a14;\n\t\tm.a21 = l.a21*r.a11 + l.a22*r.a21 + l.a23*r.a31;\n\t\tm.a22 = l.a21*r.a12 + l.a22*r.a22 + l.a23*r.a32;\n\t\tm.a23 = l.a21*r.a13 + l.a22*r.a23 + l.a23*r.a33;\n\t\tm.a24 = l.a21*r.a14 + l.a22*r.a24 + l.a23*r.a34 + l.a24;\n\t\tm.a31 = l.a31*r.a11 + l.a32*r.a21 + l.a33*r.a31;\n\t\tm.a32 = l.a31*r.a12 + l.a32*r.a22 + l.a33*r.a32;\n\t\tm.a33 = l.a31*r.a13 + l.a32*r.a23 + l.a33*r.a33;\n\t\tm.a34 = l.a31*r.a14 + l.a32*r.a24 + l.a33*r.a34 + l.a34;\n\t}",
"public static <T extends Vector> T Multiply(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] * b.axis[i];\n }\n return result;\n }\n return result;\n }",
"public Monom multiply2(Monom m){\r\n\t\tint temp_power = this.get_power();\r\n\t\tdouble temp_coaf = this.get_coefficient();\r\n\t\ttemp_power += m.get_power();\r\n\t\ttemp_coaf *= m.get_coefficient();\r\n\t\tMonom ans = new Monom(temp_coaf,temp_power);\r\n\t\treturn ans;\r\n\t}",
"public T elementMult( T b ) {\n convertType.specify(this, b);\n T A = convertType.convert(this);\n b = convertType.convert(b);\n\n T c = A.createLike();\n A.ops.elementMult(A.mat, b.mat, c.mat);\n return c;\n }",
"public byte[][] multiplyMatricesFiniteField(byte[][] m1, byte[][] m2) {\n\n byte[][] result = new byte[m1.length][m2[0].length];\n\n int rows = m1.length;\n int cols = m2[0].length;\n\n for(int i = 0; i < rows; i++) {\n int sum = 0;\n for(int j = 0; j < cols; j++) {\n for(int k = 0; k < 4; k++) {\n sum ^= multiplyPolynomialsMod(m1[i][k],m2[k][j], reductionPolynomial);\n }\n result[i][j] = (byte)sum;\n }\n }\n\n return result;\n }",
"private static void multiplyArray(double [][] matrixA, double [][] matrixB, double [][] matrixC) {\n\t\t\n\t\tmatrixC[0][0] = ((matrixA[0][0] * matrixB[0][0]) + (matrixA[0][1] * matrixB[1][0]));\n\t\tmatrixC[0][1] = ((matrixA[0][0] * matrixB[0][1]) + (matrixA[0][1] * matrixB[1][1]));\n\t\tmatrixC[1][0] = ((matrixA[1][0] * matrixB[0][0]) + (matrixA[1][1] * matrixB[1][0]));\n\t\tmatrixC[1][1] = ((matrixA[1][0] * matrixB[0][1]) + (matrixA[1][1] * matrixB[1][1]));\n\t}",
"private static void multiply(float[] a, float[] b, float[] destination) {\r\n\t\tfor(int i = 0; i < 4; i++){\r\n\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\tfor(int k = 0; k < 4; k++){\r\n\t\t\t\t\tset(destination, i, j, get(destination, i, j) + get(a, i, k) * get(b, k, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }",
"public void multiply() {\n\t\t\n\t}",
"public void multiplyOtherMatrixToEnd(Matrix other){\n Matrix output = Matrix(other.rows, columns);\n for (int a = 0; a < other.rows; a++)\n {\n for (int b = 0; b < columns; b++)\n {\n for (int k = 0; k < other.columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }",
"public boolean rightMult(PointMatrix m2) {\n if (numCols() == m2.numRows()) {\n for (int j = 0; j < m2.numCols(); j++) {\n double[] cur = new double[m2.numRows()];\n for (int i = 0; i < cur.length; i++) {\n cur[i] = 0;\n for (int k = 0; k < m2.numRows(); k++) {\n cur[i] += getEl(i, k) * m2.getEl(k, j);\n }\n }\n for (int i = 0; i < cur.length; i++) {\n m2.replace(i, j, cur[i]);\n }\n }\n return true;\n } else {\n return false;\n }\n }",
"public static double[][] matrixMultiplier(double[][] A, double[][] B) {\n\n if (A[0].length != B.length) {\n System.out.println(\"ERROR MATRIX DIMENSIONS INCORRECT! A: \" + Integer.toString(A[0].length) + \" B: \" + Integer.toString(B.length) + \"\\nSHUTTING DOWN PROGRAM\");\n System.exit(0);\n }\n\n double[][] C = new double[A.length][B[0].length];\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < B[0].length; j++) {\n C[i][j] = 0;\n }\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < B[0].length; j++) {\n for (int k = 0; k < A[0].length; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n }\n }\n return C;\n }",
"public static BigFraction[][] multiply(BigFraction[][] A, BigFraction[][] B) {\n int mA = A.length;\n int nA = A[0].length;\n int mB = B.length;\n int nB = B[0].length;\n if (nA != mB) throw new RuntimeException(\"Illegal matrix dimensions.\");\n BigFraction[][] C = new BigFraction[mA][nB];\n for (int i = 0; i < mA; i++)\n for (int j = 0; j < nB; j++)\n for (int k = 0; k < nA; k++)\n C[i][j] = (A[i][k].multiply(B[k][j]));\n return C;\n }",
"public Matrix times(Matrix bmat){\r\n \tif(this.ncol!=bmat.nrow)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, bmat.ncol);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<bmat.ncol; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat.matrix[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public Matrix times(double[][] bmat){\r\n \t int nr=bmat.length;\r\n \tint nc=bmat[0].length;\r\n\r\n \tif(this.ncol!=nr)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, nc);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"@Test\n\tpublic void testMultiply() {\n\t\tdouble epsilon = 0.0000000001;\n\n\t\tdouble[][] values2 = {{1.1, 1.2, 1.3}, {2.1, 2.2, 2.3}};\n\t\tMatrix m2 = new Matrix(values2);\n\n\t\tdouble[][] expectedValues = {{3.73, 3.96, 4.19}, {9.67, 10.24, 10.81}, {-2.07, -2.24, -2.41}};\n\t\tMatrix expected = new Matrix(expectedValues);\n\n\t\tMatrix product = m1.multiply(m2);\n\n\t\tassertEquals(3, product.getRowCount(), \"Product have unexpected number of rows.\");\n\t\tassertEquals(3, product.getColCount(), \"Product have unexpected number of columns.\");\n\n\t\tfor (int i = 0; i < product.getRowCount(); i++) {\n\t\t\tfor (int j = 0; j < product.getColCount(); j++) {\n\t\t\t\tassertTrue(Math.abs(product.get(i, j) - expected.get(i, j)) < epsilon,\n\t\t\t\t\t\"Unexpected value on row \" + i + \" column \" + j + \".\");\n\t\t\t}\n\t\t}\n\t}",
"public int[][] denseMatrixMult(int[][] A, int[][] B, int size)\n {\n\t int[][] matrix = initMatrix(size);\n\t \n\t // base case\n\t // Just multiply the two numbers in the matrix.\n\t if (size==1) {\n\t\t matrix[0][0] = A[0][0]*B[0][0];\n\t\t return matrix;\n\t }\n\t \n\t // If the base case is not satisfied, we must do strassens. \n\t // Get M0-M6\n\t //a00: x1 = 0, y1 = 0\n\t //a01: x1 = 0; y1 = size/2\n\t //a10: x1 = size/2, y1 = 0\n\t //a11: x1 = size/2,. y1 = size/2\n\t \n\t // (a00+a11)*(b00+b11)\n\t int[][] m0 = denseMatrixMult(sum(A,A,0,0,size/2,size/2,size/2), sum(B,B, 0,0,size/2,size/2,size/2), size/2);\n\t // (a10+a11)*(B00)\n\t int[][] m1 = denseMatrixMult(sum(A,A,size/2,0,size/2,size/2,size/2), sum(B, initMatrix(size/2), 0,0,0,0,size/2), size/2);\n\t //a00*(b01-b11)\n\t int[][] m2 = denseMatrixMult(sum(A, initMatrix(size/2), 0,0,0,0,size/2), sub(B, B, 0, size/2, size/2, size/2, size/2), size/2);\n\t //a11*(b10-b00)\n\t int[][] m3 = denseMatrixMult(sum(A,initMatrix(size/2), size/2, size/2, 0,0,size/2), sub(B,B,size/2,0,0,0,size/2), size/2);\n\t //(a00+a01)*b11\n\t int[][] m4 = denseMatrixMult(sum(A,A,0,0,0,size/2,size/2), sum(B, initMatrix(size/2), size/2, size/2,0,0,size/2), size/2);\n\t //(a10-a00)*(b00+b01)\n\t int[][] m5 = denseMatrixMult(sub(A,A,size/2,0,0,0,size/2), sum(B,B,0,0,0,size/2,size/2), size/2);\n\t //(a01-a11)*(b10-b11)\n\t int[][] m6 = denseMatrixMult(sub(A,A,0,size/2,size/2,size/2,size/2), sum(B,B,size/2,0,size/2,size/2,size/2), size/2);\n\t \n\t // Now that we have these, we can get C00 to C11\n\t // m0+m3 + (m6-m4)\n\t int[][] c00 = sum(sum(m0,m3,0,0,0,0,size/2), sub(m6,m4,0,0,0,0,size/2), 0,0,0,0, size/2);\n\t // m2 + m4\n\t int[][] c01 = sum(m2,m4,0,0,0,0,size/2);\n\t // m1 + m3\n\t int[][] c10 = sum(m1,m3,0,0,0,0,size/2);\n\t // m0-m1 + m2 + m5\n\t int[][] c11 = sum(sub(m0,m1,0,0,0,0,size/2), sum(m2,m5,0,0,0,0,size/2), 0,0,0,0,size/2);\n\t \n\t // Load the results into the return array.\n\t // We are \"stitching\" the four subarrays together. \n\t for (int i = 0; i< size; i++) {\n\t\t for (int j = 0; j<size; j++) {\n\t\t\t if (i<size/2) {\n\t\t\t\t if (j<size/2) {\n\t\t\t\t\t matrix[i][j] = c00[i][j];\n\t\t\t\t } else {\n\t\t\t\t\t matrix[i][j] = c01[i][j-size/2];\n\t\t\t\t }\n\t\t\t } else {\n\t\t\t\t if (j<size/2) {\n\t\t\t\t\t matrix[i][j] = c10[i-size/2][j];\n\t\t\t\t } else {\n\t\t\t\t\t matrix[i][j] = c11[i-size/2][j-size/2];\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t \n\t // return the matrix we made.\n\t return matrix;\n }",
"public static @NotNull Matrix mult(@NotNull Matrix matrA, @NotNull Matrix matrB) {\n final int compatibleValue = matrA.getColumnCount();\n if (compatibleValue != matrB.getRowCount()) {\n throw new IllegalArgumentException(\n \"Error @ MatrixMultiplication.mult() :: incompatible matrix matrA.columns != matrB.rows\");\n }\n\n final int rowCount = matrA.getRowCount();\n final int colCount = matrB.getColumnCount();\n final Matrix.Builder result = new Matrix.Builder(rowCount, colCount);\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < colCount; j++) {\n int val = 0;\n for (int k = 0; k < compatibleValue; k++) {\n val += matrA.get(i, k) * matrB.get(k, j);\n }\n result.set(i, j, val);\n }\n }\n\n return result.build();\n }",
"public long[][] smultiply(int i){\n\t\tint sl = this.mat.length; //jumps to method sideLength to obtain the side length n of the matrix A\n\t\t//the global record contains an array of columns, where each column is an array of row elements. i.e.\n\t\t//the record contains the transpose of matrix A, where every row in the record is a column in A\n\t\t//a temporary 2D array tempMatA, and is made equal to the transpose of A\n\t\tlong[][] tempMatA = transpose(this.mat);\n\t\tlong[][] tempMat2 = new long[sl][sl]; //creates a temporary 2D matrix of the same size as tempMatA\n\t\tlong[][] outMat = new long[sl][sl];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"+\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\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\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return matrix must be re-transposed to return a the proper format of 2D array for the global array\n\t\toutMat = transpose(outMat);\n\t\treturn outMat;\n\t}",
"private void mul() {\n\n\t}",
"public interface IMatrixMultiplicator {\n\n\t/**\n\t * Multiplies two matrixes and returns the result in a new matrix \n\t * \n\t * @param matrixA first matrix\n\t * @param matrixB second matrix \n\t * @return result of the multiplication\n\t */\n\tpublic long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);\n\t \n\t\n}",
"public final void mul(Matrix3f m1) {\n\tmul(this, m1);\n }",
"private static void multiplyMonty(int[] a, int[] x, int[] y, int[] m, int mDash, boolean smallMontyModulus)\n // mDash = -m^(-1) mod b\n {\n int n = m.length;\n long y_0 = y[n - 1] & IMASK;\n\n // 1. a = 0 (Notation: a = (a_{n} a_{n-1} ... a_{0})_{b} )\n for (int i = 0; i <= n; i++)\n {\n a[i] = 0;\n }\n\n // 2. for i from 0 to (n - 1) do the following:\n for (int i = n; i > 0; i--)\n {\n long a0 = a[n] & IMASK;\n long x_i = x[i - 1] & IMASK;\n\n long prod1 = x_i * y_0;\n long carry = (prod1 & IMASK) + a0;\n\n // 2.1 u = ((a[0] + (x[i] * y[0]) * mDash) mod b\n long u = ((int)carry * mDash) & IMASK;\n\n // 2.2 a = (a + x_i * y + u * m) / b\n long prod2 = u * (m[n - 1] & IMASK);\n carry += (prod2 & IMASK);\n// assert (int)carry == 0;\n carry = (carry >>> 32) + (prod1 >>> 32) + (prod2 >>> 32);\n\n for (int j = n - 2; j >= 0; j--)\n {\n prod1 = x_i * (y[j] & IMASK);\n prod2 = u * (m[j] & IMASK);\n\n carry += (prod1 & IMASK) + (prod2 & IMASK) + (a[j + 1] & IMASK);\n a[j + 2] = (int)carry;\n carry = (carry >>> 32) + (prod1 >>> 32) + (prod2 >>> 32);\n }\n\n carry += (a[0] & IMASK);\n a[1] = (int)carry;\n a[0] = (int)(carry >>> 32);\n }\n\n // 3. if x >= m the x = x - m\n if (!smallMontyModulus && compareTo(0, a, 0, m) >= 0)\n {\n subtract(0, a, 0, m);\n }\n\n // put the result in x\n System.arraycopy(a, 1, x, 0, n);\n }",
"public abstract Vector4fc mul(IMatrix4f mat);",
"public static double[][] multiplyMatrixes( double[][] m1, double[][] m2 ) {\n double[][] result = new double[3][3];\n multiplyMatrixes( m1, m2, result );\n return result;\n }",
"public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"public void multiply(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] *= skalar;\r\n }\r\n }\r\n }",
"protected MatrixToken _multiply(MatrixToken rightArgument)\n\t\t\tthrows IllegalActionException {\n\t\tLongMatrixToken convertedArgument = (LongMatrixToken) rightArgument;\n\t\tlong[] A = _value;\n\t\tlong[] B = convertedArgument._getInternalLongArray();\n\t\tint m = _rowCount;\n\t\tint n = _columnCount;\n\t\tint p = convertedArgument.getColumnCount();\n\t\tlong[] newMatrix = new long[m * p];\n\t\tint in = 0;\n\t\tint ta = 0;\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tta += n;\n\n\t\t\tfor (int j = 0; j < p; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tint ib = j;\n\n\t\t\t\tfor (int ia = i * n; ia < ta; ia++, ib += p) {\n\t\t\t\t\tsum += (A[ia] * B[ib]);\n\t\t\t\t}\n\n\t\t\t\tnewMatrix[in++] = sum;\n\t\t\t}\n\t\t}\n\n\t\treturn new LongMatrixToken(newMatrix, m, p, DO_NOT_COPY);\n\t}",
"public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}",
"@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic int mul(int a,int b) {\n\t\treturn a*b;\r\n\t}",
"@Override\n\tpublic double multiply(double a, double b) {\n\t\treturn (a*b);\n\t}",
"public synchronized void matrixMultiplication(cl_mem matrixA, cl_mem matrixB, cl_mem matrixC, \r\n int widthA, int heightA, int widthB) {\r\n confirmActiveState();\r\n \r\n clSetKernelArg(kernelMatrixMultiplication, 1, Sizeof.cl_mem, Pointer.to(matrixB));\r\n clSetKernelArg(kernelMatrixMultiplication, 0, Sizeof.cl_mem, Pointer.to(matrixA));\r\n clSetKernelArg(kernelMatrixMultiplication, 2, Sizeof.cl_mem, Pointer.to(matrixC));\r\n clSetKernelArg(kernelMatrixMultiplication, 3, Sizeof.cl_int, Pointer.to(new int[] {widthA}));\r\n clSetKernelArg(kernelMatrixMultiplication, 4, Sizeof.cl_int, Pointer.to(new int[] {widthB}));\r\n\r\n long globalThreads[] = new long[] {widthB, heightA};\r\n clEnqueueNDRangeKernel(commandQueue, kernelMatrixMultiplication, \r\n 2, null, globalThreads, null, 0, null, null);\r\n }",
"public void postMultiply(Transform transform) {\n matrix = mulMM(matrix, transform.matrix);\n }",
"public static Matrix3D times(Matrix3D A, Matrix3D B) {\n Matrix3D C = new Matrix3D();\n for (int i=0 ; i<=2 ; i++) { // loop over each row of A\n for (int j=0 ; j<=2 ; j++) { // loop over each column of B\n // Calculate the dot product of the ith row of A with the jth column of B:\n double v = 0;\n for (int k=0 ; k<=2 ; k++) { // loop over each item in the row/column\n v += A.d[i][k] * B.d[k][j];\n }\n C.set(i,j,v);\n }\n }\n return C;\n }",
"public void leftMultiply(Matrix other){\n \t double[][] temp = new double[4][4];\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n\t\t array[i][j] += temp[i][k] * other.array[k][j];\n\t\t}\n\t }\n\t}\n }",
"public Matrix multiply(BigInteger c, BigInteger modulo) {\n Stream<BigInteger[]> stream = Arrays.stream(inner);\n if (concurrent) {\n stream = stream.parallel();\n }\n\n BigInteger[][] res = stream.map(r -> rowMultiplyConstant(r, c, modulo)).toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }",
"public static Matrix multiply(Matrix mat1, Matrix mat2) throws Exception {\n double[][] temp = new double[mat1.rows][mat2.cols];\n try {\n if(mat1.cols == mat2.rows){\n for(int col = 0; col < mat2.cols; col++) {\n for (int row = 0; row < mat1.rows; row++) {\n for (int rowin = 0; rowin < mat2.rows; rowin++) {\n for (int colin = 0; colin < mat1.cols; colin++) {\n temp[row][col] += mat1.arr[row][colin] * mat2.arr[rowin][col];\n }\n }\n }\n }\n }\n\n }catch (Exception e){\n e.printStackTrace();\n throw new Exception(\"Matrices are the wrong size: \" +\n mat1 +\n \" and \" +\n mat2 +\n \" and temp \" +\n Arrays.toString(temp));\n }\n return new Matrix(mat1.rows, mat2.cols, temp);\n }",
"private RealMatrix scalarMultiplication(RealMatrix matrix1, RealMatrix matrix2) {\n\t\tdouble a = matrix1.getEntry(0, 0);\n\t\tdouble b = matrix1.getEntry(1, 0);\n\t\tdouble c = matrix1.getEntry(2, 0);\n\t\tdouble d = matrix1.getEntry(3, 0);\n\t\t\n\t\tdouble[][] result = new double[matrix2.getRowDimension()][matrix2.getColumnDimension()];\n\t\t\n\t\tfor (int i=0; i < matrix2.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < matrix2.getColumnDimension(); j++) {\n\t\t\t\tif (i == 0) result[i][j] = a * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 1) result[i][j] = b * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 2) result[i][j] = c * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 3) result[i][j] = d * matrix2.getEntry(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MatrixUtils.createRealMatrix(result);\n\t}",
"public T mul(T first, T second);",
"public Matrix multiplyOtherMatrixToFront(Matrix other) {\n Matrix output = Matrix(rows, other.columns);\n for (int a = 0; a < rows; a++)\n {\n for (int b = 0; b < other.columns; b++)\n {\n for (int k = 0; k < columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }",
"public static double[][] multiplicacaoMatriz(double[][] a, double[][] b) {\n\t\t// linha por coluna\n\n\t\tif (a == null || b == null)\n\t\t\tthrow new NullPointerException(\"Argumentos nulos\");\n\n\t\tif (a[0].length != b.length)\n\t\t\tthrow new IllegalArgumentException(\"Numero de linhas de \\\"A\\\" � diferente de colunas de \\\"B\\\"\");\n\n\t\tfinal double[][] resultado = new double[a.length][b[0].length];\n\n\t\tfor (int x = 0; x < resultado.length; x++)\n\t\t\tfor (int y = 0; y < resultado[0].length; y++) {\n\n\t\t\t\tdouble acomulador = 0;\n\t\t\t\tfor (int i = 0; i < a[0].length; i++)\n\t\t\t\t\tacomulador += a[x][i] * b[i][y];\n\n\t\t\t\tresultado[x][y] = acomulador;\n\t\t\t}\n\n\t\treturn resultado;\n\t}",
"public Matrix4f GetMultipliedMatrix(Matrix4f m) {\n\n\t/*\n\tinputs--\n\t\n\tm :\n\t The input matrix m, instance of Matrix4f\n\t*/\n\t\n\t/*\n\toutputs--\n\t\n\tmul :\n\t The matrix this times m\n\t*/\n\t\n\t// Create new matrix to hold the results\n\tMatrix4f mul = new Matrix4f();\n\t\n\t// Double for loop based standard multiplication\n\tfor (int n_i = 0; n_i < 4; n_i ++) {\n\t \n\t for(int n_j = 0; n_j < 4 ; n_j ++) {\n\t\t\n\t\t// Set entry one by one\n\t\tfloat f_val = 0;\n\t\tfor (int n_k = 0; n_k < 4; n_k ++) {\n\t\t\n\t\t f_val += this.mat_f_m[n_i][n_k]*m.GetComponent(n_k, n_j);\n\t\t\n\t\t}\n\t\tmul.SetComponent(n_i, n_j, f_val);\n\t\t\n\t }\n\t\n\t}\n\t\n\t// Return the multiplied matrix\n\treturn mul;\n \n }",
"public static int MatrixChainMult(int i, int j){ //\n\n if(i == j)\n return 0;\n if(mem[i][j] != 0)\n return mem[i][j];\n int min_ans = Integer.MAX_VALUE;\n\n for(int k=i;k<j;k++){\n int count = MatrixChainMult(i , k)\n + MatrixChainMult(k+1 , j)\n + ar[i-1] * ar[k] * ar[j];\n \n min_ans = Math.min(min_ans, count);\n\n }\n //memoization\n mem[i][j] = min_ans;\n return min_ans;\n }",
"public Matrix multiply(ComplexNumber cn) {\n\t\tMatrix a = copy();\n\t\tfor (int row = 0; row < a.M; row++) {\n\t\t\tfor (int col = 0; col < a.N; col++) {\n\t\t\t\ta.ROWS[row][col] = a.ROWS[row][col].multiply(cn);\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}",
"public long product() {\n\t\tlong result = 1;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult *= theElements[i];\n\t\t}\n\t\treturn result;\n\t}",
"public static double[][] elementWiseMultiply(double[] a, double[][] b){\n\n \tif(a.length != b.length) throw new RuntimeException(\"Illegal vector dimensions.\");\n\n\t\t\tdouble[][] res = new double[b.length][b[0].length];\n\n\t\t\tfor(int i = 0; i < b.length; i++) for(int j = 0; j < b[0].length; j++)\n\t\t\t\tres[i][j] = (a[i] * b[i][j]);\n\n\t\t\treturn res;\n\n }",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"public abstract Vector4fc mul(IMatrix4x3f mat);",
"public double multiplica(double a, double b) {\n\t\treturn a*b;\n\t}",
"public Matrix arrayTimesEquals(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n data[i][j] = data[i][j] * B.data[i][j];\n }\n }\n return this;\n }",
"int multiply (int a, int b) {\n\t\t//let me do it in one step\n\t\treturn a * b; \n\t\t\n\t\t\n\t}"
]
| [
"0.76287025",
"0.72468054",
"0.70508057",
"0.69056624",
"0.68772286",
"0.6855001",
"0.67400265",
"0.67103845",
"0.6708326",
"0.67080116",
"0.66699153",
"0.6654684",
"0.6633656",
"0.6551992",
"0.65162635",
"0.6506749",
"0.6488021",
"0.64569515",
"0.64478135",
"0.64158446",
"0.63753664",
"0.6367664",
"0.6360951",
"0.634982",
"0.6343399",
"0.6342315",
"0.6338308",
"0.63101447",
"0.6252956",
"0.6223407",
"0.6220439",
"0.6207375",
"0.6185306",
"0.6181865",
"0.617299",
"0.6156619",
"0.6131139",
"0.6112807",
"0.60877866",
"0.60550123",
"0.60502535",
"0.60493994",
"0.6048849",
"0.6043604",
"0.60147625",
"0.6009663",
"0.60076696",
"0.5997916",
"0.59892046",
"0.5983162",
"0.5978159",
"0.5972924",
"0.5958492",
"0.595572",
"0.5953075",
"0.5945465",
"0.5928335",
"0.5921915",
"0.5917989",
"0.5910147",
"0.5909337",
"0.5899189",
"0.5889983",
"0.58749145",
"0.581895",
"0.58121336",
"0.58112437",
"0.5801075",
"0.578901",
"0.5782595",
"0.5769138",
"0.5747688",
"0.5744822",
"0.57342935",
"0.57264376",
"0.57247555",
"0.5722692",
"0.57205915",
"0.5718869",
"0.57045436",
"0.5703671",
"0.570294",
"0.5699422",
"0.5690455",
"0.5669211",
"0.5667496",
"0.5664637",
"0.5663819",
"0.56475437",
"0.56439847",
"0.5643567",
"0.5642581",
"0.5631593",
"0.5618485",
"0.5612723",
"0.56113183",
"0.5567925",
"0.5555894",
"0.554572",
"0.55283815"
]
| 0.5958667 | 52 |
Perform the product A B where A = this matrix and B = m | public void mult(Mat2 m, Mat2 dest) {
for(int i=0; i<rows; i++) {
for(int j=0; j<m.cols; j++) {
double total = 0.0f;
for(int c=0; c<cols; c++) {
total += data[i][c] * m.data[c][j];
}
dest.set(i, j, total);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract <M extends AbstractMatrix> M elementwiseProduct(M b);",
"Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }",
"public void matrixMultiply(Matrix m) {\n if (cols == m.getRows()) {\n ArrayList<double[]> result = newMatrix(rows, m.getCols());\n for (int i=0; i<rows; i++) {\n for (int k=0; k<m.getCols(); k++) {\n double sum = 0;\n for (int j=0; j<cols; j++) {\n sum += matrix.get(i)[j] * m.get(j, k);\n }\n result.get(i)[k] = sum;\n }\n }\n setMatrix(result, rows, m.getCols()); // Rows is that of original matrix, Columns is that of the multiplying matrix\n }\n else {\n throw new MatrixMultiplicationDimensionException();\n }\n }",
"public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t for (int i = 0; i < matrix1row; i++) {//outer loop refers to row position\r\n\t\t for (int j = 0; j < matrix2column; j++) {//refers to column position\r\n\t\t for (int k = 0; k < matrix1column; k++) {\r\n\t\t \t //adds the products of row*column elements until the row/column is complete\r\n\t\t \t //updates to next row/column\r\n\t\t matrix3[i][j] = matrix3[i][j] + matrix1[i][k] * matrix2[k][j];\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t print(matrix3);\r\n\t\t }",
"public long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);",
"public static Matrix product(Matrix m) {\n int rows_c = m.rows(), cols_c = m.cols();\n Matrix d;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c, m);\n for (int col = 1; col <= cols_c; col++) {\n double prodCol = 1D;\n for (int row = 1; row <= rows_c; row++) {\n prodCol = prodCol * m.get(row, col);\n }\n d.set(1, col, prodCol);\n }\n }\n return d;\n }",
"Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }",
"public void multR(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = a11*m.a11 + a12*m.a21 + a13*m.a31;\n\t\tb12 = a11*m.a12 + a12*m.a22 + a13*m.a32;\n\t\tb13 = a11*m.a13 + a12*m.a23 + a13*m.a33;\n\t\tb14 = a11*m.a14 + a12*m.a24 + a13*m.a34 + a14;\n\t\tb21 = a21*m.a11 + a22*m.a21 + a23*m.a31;\n\t\tb22 = a21*m.a12 + a22*m.a22 + a23*m.a32;\n\t\tb23 = a21*m.a13 + a22*m.a23 + a23*m.a33;\n\t\tb24 = a21*m.a14 + a22*m.a24 + a23*m.a34 + a24;\n\n\t\tb31 = a31*m.a11 + a32*m.a21 + a33*m.a31;\n\t\tb32 = a31*m.a12 + a32*m.a22 + a33*m.a32;\n\t\tb33 = a31*m.a13 + a32*m.a23 + a33*m.a33;\n\t\tb34 = a31*m.a14 + a32*m.a24 + a33*m.a34 + a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"Matrix dot(Matrix m){\n if(this.cols != m.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n double[][] tmp_this = this.asArray();\n double[][] tmp_m = m.asArray();\n Matrix matrix_to_return = new Matrix(this.rows, m.cols);\n for(int i=0; i<matrix_to_return.rows; i++){\n for(int j=0; j<matrix_to_return.cols; j++){\n for(int k=0; k<matrix_to_return.rows; k++)\n matrix_to_return.data[i*this.cols + j] += tmp_this[i][k] * tmp_m[k][j];\n }\n }\n return matrix_to_return;\n }",
"public void multL(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = m.a11*a11 + m.a12*a21 + m.a13*a31;\n\t\tb12 = m.a11*a12 + m.a12*a22 + m.a13*a32;\n\t\tb13 = m.a11*a13 + m.a12*a23 + m.a13*a33;\n\t\tb14 = m.a11*a14 + m.a12*a24 + m.a13*a34 + m.a14;\n\t\tb21 = m.a21*a11 + m.a22*a21 + m.a23*a31;\n\t\tb22 = m.a21*a12 + m.a22*a22 + m.a23*a32;\n\t\tb23 = m.a21*a13 + m.a22*a23 + m.a23*a33;\n\t\tb24 = m.a21*a14 + m.a22*a24 + m.a23*a34 + m.a24;\n\n\t\tb31 = m.a31*a11 + m.a32*a21 + m.a33*a31;\n\t\tb32 = m.a31*a12 + m.a32*a22 + m.a33*a32;\n\t\tb33 = m.a31*a13 + m.a32*a23 + m.a33*a33;\n\t\tb34 = m.a31*a14 + m.a32*a24 + m.a33*a34 + m.a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"public Matrix multiply(Matrix b) {\n MultMatrix multCommand = new MultMatrix();\n Matrix result = multCommand.multiply(this, b);\n\n return result;\n }",
"public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}",
"public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }",
"public static BigDecimal[][] multiplyMatrices(BigDecimal[][] m1, BigDecimal[][] m2){\n\t\t\n\t\tint size = m1.length;\n\t\t\n\t\tBigDecimal[][] next = new BigDecimal[size][size];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tfor(int j = 0; j < size; j++){\n\t\t\t\tBigDecimal current = new BigDecimal(0);\n\t\t\t\tfor(int k = 0; k < size; k++)\n\t\t\t\t\tcurrent = current.add(m1[i][k].multiply(m2[k][j]));\n\n\t\t\t\tnext[i][j] = current;\n\t\t\t}\n\t\t}\n\t\treturn next;\n\t}",
"public Matrix multiply(Matrix m2)\n\t{\n\t\tMatrix result = new Matrix(new double[matrix.length][matrix[0].length]);\n\t\tfor(int i = 0; i < matrix.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < matrix.length; j++)\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < matrix.length; k++)\n\t\t\t\t{\n\t\t\t\t\tresult.matrix[i][j] = result.matrix[i][j] + matrix[i][k] * m2.matrix[k][j];\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn result;\n\t}",
"@SuppressWarnings(\"UnnecessaryLocalVariable\")//Readability\n public Matrix multiply(Matrix b, BigInteger modulo) {\n if (nrOfCols != b.nrOfRows) {\n throw new MalformedMatrixException(\"Matrix with dimensions \" + nrOfRows + \"x\" + nrOfCols +\n \" cannot be multiplied with matrix with dimensions \" + b.nrOfRows + \"x\" + b.nrOfCols);\n }\n Matrix a = this;\n\n int m = a.nrOfRows;\n int p = b.nrOfCols;\n\n final BigInteger[][] result = new BigInteger[m][p];\n\n //Compute the resulting row, using a parallel stream to properly utilize multi-core CPU\n IntStream range = IntStream.range(0, m);\n if (concurrent) {\n range = range.parallel();\n }\n range.forEach(computeRowMultiplication(result, a, b, modulo));\n\n return new Matrix(result);\n }",
"public Matrix multiplyTransposeM(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbRows, m.getNbRows());\n\t\tmultiplyTransposeB(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}",
"public void MatrixChainMultiply(int[] p) {\n n = p.length - 1;\t// how many matrices are in the chain\n m = new int[n + 1][n + 1];\t// overallocate m, so that we don't use index 0\n s = new int[n + 1][n + 1];\t// same for s\n matrixChainOrder(p);\t// run the dynamic-programming algorithm\n }",
"@Override\n public void run() {\n result.prod(indexes.getI(),indexes.getJ(),matrix1,matrix2);\n }",
"public Matrix multiply(Matrix other) {\n if (this.cols != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, other.cols); //Matrix full of zeros\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < other.cols; j++) {\n for (int k = 0; k < this.cols; k++) {\n result.data[i][j] += (this.data[i][k] * other.data[k][j]);\n }\n }\n }\n\n return result;\n }",
"public static TransformMatrix multiplyMatrix(TransformMatrix a, TransformMatrix b) {\n\t\treturn new TransformMatrix(\n\t\t\t\ta.a * b.a,\n\t\t\t\ta.b * b.b,\n\t\t\t\ta.a * b.c + a.c,\n\t\t\t\ta.b * b.d + a.d\n\t\t\t\t);\n\t}",
"public void multiply(Monom m){\r\n\t\tint temp_power = this.get_power();\r\n\t\tdouble temp_coaf = this.get_coefficient();\r\n\t\ttemp_power += m.get_power();\r\n\t\ttemp_coaf *= m.get_coefficient();\r\n\t\tthis.set_power(temp_power);\r\n\t\tthis.set_coefficient(temp_coaf);\r\n\t}",
"@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}",
"public Matrix multiplyTransposeSelf(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbColumns, m.getNbColumns());\n\t\tmultiplyTransposeA(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}",
"public T mult( T B ) {\n convertType.specify(this, B);\n\n // Look to see if there is a special function for handling this case\n if (this.mat.getType() != B.getType()) {\n Method m = findAlternative(\"mult\", mat, B.mat, convertType.commonType.getClassType());\n if (m != null) {\n T ret = wrapMatrix(convertType.commonType.create(1, 1));\n invoke(m, this.mat, B.mat, ret.mat);\n return ret;\n }\n }\n\n // Otherwise convert into a common matrix type if necessary\n T A = convertType.convert(this);\n B = convertType.convert(B);\n\n T ret = A.createMatrix(mat.getNumRows(), B.getMatrix().getNumCols(), A.getType());\n\n A.ops.mult(A.mat, B.mat, ret.mat);\n\n return ret;\n }",
"private static void directProd(DMatrixRMaj a, DMatrixRMaj b, DMatrixRMaj c) {\n for (int i=0; i<5; ++i) {\n for (int j=0; j<5; ++j) {\n c.unsafe_set(i, j, a.unsafe_get(i, 0)*b.unsafe_get(j, 0));\n }\n }\n }",
"public Matrix3 multiplySelf(Matrix3 m)\n {\n Matrix3 temp = Matrix3.REUSABLE_STACK.pop().initZero();\n\n for (int r = 0; r < 3; r++)\n {\n for (int c = 0; c < 3; c++)\n {\n for (int k = 0; k < 3; k++)\n temp.set(c, r, temp.get(c, r) + this.m[k][r] * m.get(c, k));\n }\n }\n\n this.set(temp);\n Matrix3.REUSABLE_STACK.push(temp);\n\n return this;\n }",
"static public double[][] MatrixMult( double [][] A , double [][] B) {\n\t// A [NxK] * B[KxZ] = M[NxZ]\n\tif ( A.length == 0 || B.length == 0 || A[0].length != B.length ) {\n\t System.out.println( \"Matrix Mult Error, Invalid Input Matricies\" );\n\t return new double[1][1];\n\t}\n\tint Rows = A.length , Cols = B[0].length;\n\tdouble [][] M = new double[Rows][Cols];\n\tfor( int i = 0; i < Rows ; i++ ) {\n\t for( int j = 0; j < Cols ; j++ ) {\n\t\tM[i][j] = multRowByCol( A , B , i , j );\n\t }\n\t}\n\treturn M;\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.columnCount != B.rowCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.rowCount, B.columnCount);\n for (int i = 0; i < C.rowCount; i++)\n for (int j = 0; j < C.columnCount; j++)\n for (int k = 0; k < A.columnCount; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.n != B.m) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.m, B.n);\n for (int i = 0; i < C.m; i++)\n for (int j = 0; j < C.n; j++)\n for (int k = 0; k < A.n; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public static int[][] matrixMultiply(int[][] matA, int[][] matB)\n {\n if(isRect(matA)== false || isRect(matB)== false || matA[0].length != matB.length)\n {\n System.out.println(\"You cant not multiply these matrices\");\n int[][] matC = {{}};\n return matC;\n }\n else\n {\n int[][] matC = new int[matA.length][matB[0].length];\n for(int i = 0; i < matA.length; i++)\n for(int j = 0; j < matB[0].length; j++)\n for(int k = 0; k < matA[0].length; k++)\n {\n matC[i][j] += matA[i][k] * matB[k][j];\n }\n return matC;\n }\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.N != B.M) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.M, B.N);\n for (int i = 0; i < C.M; i++)\n for (int j = 0; j < C.N; j++)\n for (int k = 0; k < A.N; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public static double[][] multiplyMatrices(double[][] firstMatrix, double[][] secondMatrix, int r1, int c1, int c2) {\r\n\t double[][] product = new double[r1][c2];\r\n\t for(int i = 0; i < r1; i++) {\r\n\t for (int j = 0; j < c2; j++) {\r\n\t for (int k = 0; k < c1; k++) {\r\n\t product[i][j] += firstMatrix[i][k] * secondMatrix[k][j];\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t return product;\r\n\t }",
"public Matrix times(Matrix B) throws JPARSECException {\n if (B.m != n) {\n throw new JPARSECException(\"Matrix inner dimensions must agree.\");\n }\n Matrix X = new Matrix(m,B.n);\n double[][] C = X.getArray();\n double[] Bcolj = new double[n];\n for (int j = 0; j < B.n; j++) {\n for (int k = 0; k < n; k++) {\n Bcolj[k] = B.data[k][j];\n }\n for (int i = 0; i < m; i++) {\n double[] Arowi = data[i];\n double s = 0;\n for (int k = 0; k < n; k++) {\n s += Arowi[k]*Bcolj[k];\n }\n C[i][j] = s;\n }\n }\n return X;\n }",
"public static double[][] multiply(double[][] a, double[][] b) {\n int m1 = a.length;\n int n1 = a[0].length;\n int m2 = b.length;\n int n2 = b[0].length;\n if (n1 != m2) throw new RuntimeException(\"Illegal matrix dimensions.\");\n double[][] c = new double[m1][n2];\n for (int i = 0; i < m1; i++)\n for (int j = 0; j < n2; j++)\n for (int k = 0; k < n1; k++)\n c[i][j] += a[i][k] * b[k][j];\n return c;\n }",
"static float[] mulMM(float[] m1, float[] m2){\n \t\n \t\tif(m1.length != 16 || m2.length != 16){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n \t\n float[] result = new float[16];\n for(int i = 0; i < 4; i++){ \n for(int j = 0; j < 4; j++){ \n float rij = 0;\n for(int k = 0; k < 4; k++){\n rij += m1[j*4+k] * m2[i+4*k];\n }\n// result[i*4+j] = rij;\n result[i+j*4] = rij;\n }\n }\n return result;\n }",
"public Matrix mult (Matrix otherMatrix) {\n Matrix resultMatrix = new Matrix(nRows, otherMatrix.nColumns);\n\n ExecutorService executor = Executors.newFixedThreadPool(16);\n\n IntStream.range(0, nRows).forEach(rowIndex -> {\n executor.execute(() -> {\n IntStream.range(0, otherMatrix.nColumns).forEach(otherMatrixColIndex -> {\n double sum = IntStream.range(0, this.nColumns)\n .mapToDouble(colIndex -> this.data[rowIndex][colIndex] * otherMatrix.data[colIndex][otherMatrixColIndex])\n .sum();\n\n resultMatrix.setValue(rowIndex, otherMatrixColIndex, sum);\n });\n });\n });\n\n executor.shutdown();\n\n try {\n if (executor.awaitTermination(60, TimeUnit.MINUTES)){\n return resultMatrix;\n } else {\n System.out.println(\"Could not finish matrix multiplication\");\n }\n } catch (InterruptedException e) {\n System.out.println(\"Could not finish matrix multiplication, thread interrupted.\");\n }\n\n return null;\n }",
"Matrix mul(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] * w;\n }\n return matrix_to_return;\n }",
"private static int[][] sparseMatrixMultiplyBruteForce (int[][] A, int[][] B) {\n int[][] result = new int[A.length][B[0].length];\n\n for(int i = 0; i < result.length; i++) {\n for(int j = 0; j < result[0].length; j++) {\n int sum = 0;\n for(int k = 0; k < A[0].length; k++) {\n sum += A[i][k] * B[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n }",
"public static Matrix multiply(Matrix first, Matrix second) {\n \n Matrix result = new Matrix(first.getRows(), first.getClumns());\n \n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] * second.matrix[row][col];\n }\n }\n \n return result;\n }",
"private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }",
"public static long[][] multiply(long F[][], long M[][]){\n long x = F[0][0]*M[0][0] + F[0][1]*M[1][0]; \n long y = F[0][0]*M[0][1] + F[0][1]*M[1][1]; \n long z = F[1][0]*M[0][0] + F[1][1]*M[1][0]; \n long w = F[1][0]*M[0][1] + F[1][1]*M[1][1]; \n\n return new long[][]{{x,y},{z,w}};\n }",
"private static double[] matrixMultiply(double[][] bezier, double[] matrixVars) {\r\n\t\tdouble[] result = {0,0,0,0};\r\n\t\tfor (int i = 0; i < bezier.length; i++) {\r\n\t\t\tfor (int j=0; j < matrixVars.length; j++) {\r\n\t\t\t\tresult[i] += bezier[i][j]*matrixVars[j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n }",
"public Matriz punto(Matriz B) {\n\t\tMatriz A = this;\n\t\tif (A.getColumnas() != B.getFilas()) { throw new RuntimeException(\"Dimensiones no compatibles.\"); }\n\t\t\n\t\tMatriz C = new Matriz(A.getFilas(), B.getColumnas());\n\t\tfor (int i = 0 ; i < C.getFilas() ; i++) {\n\t\t\tfor (int j = 0 ; j < C.getColumnas() ; j++) {\n\t\t\t\tfor (int k = 0 ; k < A.getColumnas() ; k++) {\n\t\t\t\t\tC.setValor(i, j, C.getValor(i, j) + (A.getValor(i, k) * B.getValor(k, j)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn C;\n\t}",
"public void compose(TransformMatrix mB) {\n\t\ta = mB.a * a;\n\t\tb = mB.b * b;\n\t\tc = mB.a * c + mB.c;\n\t\td = mB.b * d + mB.d;\n\t}",
"public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public void rightMultiply(Matrix other){\n \tdouble[][] temp = new double[4][4];\n\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n \t\t array[i][j] += other.array[i][k] * temp[k][j];\n\t\t}\n\t }\n\t}\n }",
"public static void mult(TransformationMatrix l, TransformationMatrix r, TransformationMatrix m) {\n\t\tm.a11 = l.a11*r.a11 + l.a12*r.a21 + l.a13*r.a31;\n\t\tm.a12 = l.a11*r.a12 + l.a12*r.a22 + l.a13*r.a32;\n\t\tm.a13 = l.a11*r.a13 + l.a12*r.a23 + l.a13*r.a33;\n\t\tm.a14 = l.a11*r.a14 + l.a12*r.a24 + l.a13*r.a34 + l.a14;\n\t\tm.a21 = l.a21*r.a11 + l.a22*r.a21 + l.a23*r.a31;\n\t\tm.a22 = l.a21*r.a12 + l.a22*r.a22 + l.a23*r.a32;\n\t\tm.a23 = l.a21*r.a13 + l.a22*r.a23 + l.a23*r.a33;\n\t\tm.a24 = l.a21*r.a14 + l.a22*r.a24 + l.a23*r.a34 + l.a24;\n\t\tm.a31 = l.a31*r.a11 + l.a32*r.a21 + l.a33*r.a31;\n\t\tm.a32 = l.a31*r.a12 + l.a32*r.a22 + l.a33*r.a32;\n\t\tm.a33 = l.a31*r.a13 + l.a32*r.a23 + l.a33*r.a33;\n\t\tm.a34 = l.a31*r.a14 + l.a32*r.a24 + l.a33*r.a34 + l.a34;\n\t}",
"public static <T extends Vector> T Multiply(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] * b.axis[i];\n }\n return result;\n }\n return result;\n }",
"public Monom multiply2(Monom m){\r\n\t\tint temp_power = this.get_power();\r\n\t\tdouble temp_coaf = this.get_coefficient();\r\n\t\ttemp_power += m.get_power();\r\n\t\ttemp_coaf *= m.get_coefficient();\r\n\t\tMonom ans = new Monom(temp_coaf,temp_power);\r\n\t\treturn ans;\r\n\t}",
"public T elementMult( T b ) {\n convertType.specify(this, b);\n T A = convertType.convert(this);\n b = convertType.convert(b);\n\n T c = A.createLike();\n A.ops.elementMult(A.mat, b.mat, c.mat);\n return c;\n }",
"public Mat2 mult(Mat2 m) {\n\t\tdouble[][] newData = new double[rows][m.cols];\n\t\t//if(rows != m.cols) throw new IllegalArgumentException(\"cannot multiply a \" + rows + \" by \" + cols + \n\t\t\t//\t\" matrix and a \" + m.rows + \" by \" + m.cols + \" matrix\");\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<m.cols; j++) {\n\t\t\t\tdouble total = 0.0;\n\t\t\t\tfor(int c=0; c<cols; c++) {\n\t\t\t\t\ttotal += data[i][c] * m.data[c][j];\n\t\t\t\t}\n\t\t\t\tnewData[i][j] = total;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(newData);\n\t}",
"public byte[][] multiplyMatricesFiniteField(byte[][] m1, byte[][] m2) {\n\n byte[][] result = new byte[m1.length][m2[0].length];\n\n int rows = m1.length;\n int cols = m2[0].length;\n\n for(int i = 0; i < rows; i++) {\n int sum = 0;\n for(int j = 0; j < cols; j++) {\n for(int k = 0; k < 4; k++) {\n sum ^= multiplyPolynomialsMod(m1[i][k],m2[k][j], reductionPolynomial);\n }\n result[i][j] = (byte)sum;\n }\n }\n\n return result;\n }",
"private static void multiplyArray(double [][] matrixA, double [][] matrixB, double [][] matrixC) {\n\t\t\n\t\tmatrixC[0][0] = ((matrixA[0][0] * matrixB[0][0]) + (matrixA[0][1] * matrixB[1][0]));\n\t\tmatrixC[0][1] = ((matrixA[0][0] * matrixB[0][1]) + (matrixA[0][1] * matrixB[1][1]));\n\t\tmatrixC[1][0] = ((matrixA[1][0] * matrixB[0][0]) + (matrixA[1][1] * matrixB[1][0]));\n\t\tmatrixC[1][1] = ((matrixA[1][0] * matrixB[0][1]) + (matrixA[1][1] * matrixB[1][1]));\n\t}",
"private static void multiply(float[] a, float[] b, float[] destination) {\r\n\t\tfor(int i = 0; i < 4; i++){\r\n\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\tfor(int k = 0; k < 4; k++){\r\n\t\t\t\t\tset(destination, i, j, get(destination, i, j) + get(a, i, k) * get(b, k, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }",
"public void multiply() {\n\t\t\n\t}",
"public void multiplyOtherMatrixToEnd(Matrix other){\n Matrix output = Matrix(other.rows, columns);\n for (int a = 0; a < other.rows; a++)\n {\n for (int b = 0; b < columns; b++)\n {\n for (int k = 0; k < other.columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }",
"public boolean rightMult(PointMatrix m2) {\n if (numCols() == m2.numRows()) {\n for (int j = 0; j < m2.numCols(); j++) {\n double[] cur = new double[m2.numRows()];\n for (int i = 0; i < cur.length; i++) {\n cur[i] = 0;\n for (int k = 0; k < m2.numRows(); k++) {\n cur[i] += getEl(i, k) * m2.getEl(k, j);\n }\n }\n for (int i = 0; i < cur.length; i++) {\n m2.replace(i, j, cur[i]);\n }\n }\n return true;\n } else {\n return false;\n }\n }",
"public static double[][] matrixMultiplier(double[][] A, double[][] B) {\n\n if (A[0].length != B.length) {\n System.out.println(\"ERROR MATRIX DIMENSIONS INCORRECT! A: \" + Integer.toString(A[0].length) + \" B: \" + Integer.toString(B.length) + \"\\nSHUTTING DOWN PROGRAM\");\n System.exit(0);\n }\n\n double[][] C = new double[A.length][B[0].length];\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < B[0].length; j++) {\n C[i][j] = 0;\n }\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < B[0].length; j++) {\n for (int k = 0; k < A[0].length; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n }\n }\n return C;\n }",
"public static BigFraction[][] multiply(BigFraction[][] A, BigFraction[][] B) {\n int mA = A.length;\n int nA = A[0].length;\n int mB = B.length;\n int nB = B[0].length;\n if (nA != mB) throw new RuntimeException(\"Illegal matrix dimensions.\");\n BigFraction[][] C = new BigFraction[mA][nB];\n for (int i = 0; i < mA; i++)\n for (int j = 0; j < nB; j++)\n for (int k = 0; k < nA; k++)\n C[i][j] = (A[i][k].multiply(B[k][j]));\n return C;\n }",
"public Matrix times(Matrix bmat){\r\n \tif(this.ncol!=bmat.nrow)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, bmat.ncol);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<bmat.ncol; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat.matrix[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public Matrix times(double[][] bmat){\r\n \t int nr=bmat.length;\r\n \tint nc=bmat[0].length;\r\n\r\n \tif(this.ncol!=nr)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, nc);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"@Test\n\tpublic void testMultiply() {\n\t\tdouble epsilon = 0.0000000001;\n\n\t\tdouble[][] values2 = {{1.1, 1.2, 1.3}, {2.1, 2.2, 2.3}};\n\t\tMatrix m2 = new Matrix(values2);\n\n\t\tdouble[][] expectedValues = {{3.73, 3.96, 4.19}, {9.67, 10.24, 10.81}, {-2.07, -2.24, -2.41}};\n\t\tMatrix expected = new Matrix(expectedValues);\n\n\t\tMatrix product = m1.multiply(m2);\n\n\t\tassertEquals(3, product.getRowCount(), \"Product have unexpected number of rows.\");\n\t\tassertEquals(3, product.getColCount(), \"Product have unexpected number of columns.\");\n\n\t\tfor (int i = 0; i < product.getRowCount(); i++) {\n\t\t\tfor (int j = 0; j < product.getColCount(); j++) {\n\t\t\t\tassertTrue(Math.abs(product.get(i, j) - expected.get(i, j)) < epsilon,\n\t\t\t\t\t\"Unexpected value on row \" + i + \" column \" + j + \".\");\n\t\t\t}\n\t\t}\n\t}",
"public int[][] denseMatrixMult(int[][] A, int[][] B, int size)\n {\n\t int[][] matrix = initMatrix(size);\n\t \n\t // base case\n\t // Just multiply the two numbers in the matrix.\n\t if (size==1) {\n\t\t matrix[0][0] = A[0][0]*B[0][0];\n\t\t return matrix;\n\t }\n\t \n\t // If the base case is not satisfied, we must do strassens. \n\t // Get M0-M6\n\t //a00: x1 = 0, y1 = 0\n\t //a01: x1 = 0; y1 = size/2\n\t //a10: x1 = size/2, y1 = 0\n\t //a11: x1 = size/2,. y1 = size/2\n\t \n\t // (a00+a11)*(b00+b11)\n\t int[][] m0 = denseMatrixMult(sum(A,A,0,0,size/2,size/2,size/2), sum(B,B, 0,0,size/2,size/2,size/2), size/2);\n\t // (a10+a11)*(B00)\n\t int[][] m1 = denseMatrixMult(sum(A,A,size/2,0,size/2,size/2,size/2), sum(B, initMatrix(size/2), 0,0,0,0,size/2), size/2);\n\t //a00*(b01-b11)\n\t int[][] m2 = denseMatrixMult(sum(A, initMatrix(size/2), 0,0,0,0,size/2), sub(B, B, 0, size/2, size/2, size/2, size/2), size/2);\n\t //a11*(b10-b00)\n\t int[][] m3 = denseMatrixMult(sum(A,initMatrix(size/2), size/2, size/2, 0,0,size/2), sub(B,B,size/2,0,0,0,size/2), size/2);\n\t //(a00+a01)*b11\n\t int[][] m4 = denseMatrixMult(sum(A,A,0,0,0,size/2,size/2), sum(B, initMatrix(size/2), size/2, size/2,0,0,size/2), size/2);\n\t //(a10-a00)*(b00+b01)\n\t int[][] m5 = denseMatrixMult(sub(A,A,size/2,0,0,0,size/2), sum(B,B,0,0,0,size/2,size/2), size/2);\n\t //(a01-a11)*(b10-b11)\n\t int[][] m6 = denseMatrixMult(sub(A,A,0,size/2,size/2,size/2,size/2), sum(B,B,size/2,0,size/2,size/2,size/2), size/2);\n\t \n\t // Now that we have these, we can get C00 to C11\n\t // m0+m3 + (m6-m4)\n\t int[][] c00 = sum(sum(m0,m3,0,0,0,0,size/2), sub(m6,m4,0,0,0,0,size/2), 0,0,0,0, size/2);\n\t // m2 + m4\n\t int[][] c01 = sum(m2,m4,0,0,0,0,size/2);\n\t // m1 + m3\n\t int[][] c10 = sum(m1,m3,0,0,0,0,size/2);\n\t // m0-m1 + m2 + m5\n\t int[][] c11 = sum(sub(m0,m1,0,0,0,0,size/2), sum(m2,m5,0,0,0,0,size/2), 0,0,0,0,size/2);\n\t \n\t // Load the results into the return array.\n\t // We are \"stitching\" the four subarrays together. \n\t for (int i = 0; i< size; i++) {\n\t\t for (int j = 0; j<size; j++) {\n\t\t\t if (i<size/2) {\n\t\t\t\t if (j<size/2) {\n\t\t\t\t\t matrix[i][j] = c00[i][j];\n\t\t\t\t } else {\n\t\t\t\t\t matrix[i][j] = c01[i][j-size/2];\n\t\t\t\t }\n\t\t\t } else {\n\t\t\t\t if (j<size/2) {\n\t\t\t\t\t matrix[i][j] = c10[i-size/2][j];\n\t\t\t\t } else {\n\t\t\t\t\t matrix[i][j] = c11[i-size/2][j-size/2];\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t \n\t // return the matrix we made.\n\t return matrix;\n }",
"public static @NotNull Matrix mult(@NotNull Matrix matrA, @NotNull Matrix matrB) {\n final int compatibleValue = matrA.getColumnCount();\n if (compatibleValue != matrB.getRowCount()) {\n throw new IllegalArgumentException(\n \"Error @ MatrixMultiplication.mult() :: incompatible matrix matrA.columns != matrB.rows\");\n }\n\n final int rowCount = matrA.getRowCount();\n final int colCount = matrB.getColumnCount();\n final Matrix.Builder result = new Matrix.Builder(rowCount, colCount);\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < colCount; j++) {\n int val = 0;\n for (int k = 0; k < compatibleValue; k++) {\n val += matrA.get(i, k) * matrB.get(k, j);\n }\n result.set(i, j, val);\n }\n }\n\n return result.build();\n }",
"public long[][] smultiply(int i){\n\t\tint sl = this.mat.length; //jumps to method sideLength to obtain the side length n of the matrix A\n\t\t//the global record contains an array of columns, where each column is an array of row elements. i.e.\n\t\t//the record contains the transpose of matrix A, where every row in the record is a column in A\n\t\t//a temporary 2D array tempMatA, and is made equal to the transpose of A\n\t\tlong[][] tempMatA = transpose(this.mat);\n\t\tlong[][] tempMat2 = new long[sl][sl]; //creates a temporary 2D matrix of the same size as tempMatA\n\t\tlong[][] outMat = new long[sl][sl];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"+\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\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\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return matrix must be re-transposed to return a the proper format of 2D array for the global array\n\t\toutMat = transpose(outMat);\n\t\treturn outMat;\n\t}",
"private void mul() {\n\n\t}",
"public interface IMatrixMultiplicator {\n\n\t/**\n\t * Multiplies two matrixes and returns the result in a new matrix \n\t * \n\t * @param matrixA first matrix\n\t * @param matrixB second matrix \n\t * @return result of the multiplication\n\t */\n\tpublic long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);\n\t \n\t\n}",
"public final void mul(Matrix3f m1) {\n\tmul(this, m1);\n }",
"private static void multiplyMonty(int[] a, int[] x, int[] y, int[] m, int mDash, boolean smallMontyModulus)\n // mDash = -m^(-1) mod b\n {\n int n = m.length;\n long y_0 = y[n - 1] & IMASK;\n\n // 1. a = 0 (Notation: a = (a_{n} a_{n-1} ... a_{0})_{b} )\n for (int i = 0; i <= n; i++)\n {\n a[i] = 0;\n }\n\n // 2. for i from 0 to (n - 1) do the following:\n for (int i = n; i > 0; i--)\n {\n long a0 = a[n] & IMASK;\n long x_i = x[i - 1] & IMASK;\n\n long prod1 = x_i * y_0;\n long carry = (prod1 & IMASK) + a0;\n\n // 2.1 u = ((a[0] + (x[i] * y[0]) * mDash) mod b\n long u = ((int)carry * mDash) & IMASK;\n\n // 2.2 a = (a + x_i * y + u * m) / b\n long prod2 = u * (m[n - 1] & IMASK);\n carry += (prod2 & IMASK);\n// assert (int)carry == 0;\n carry = (carry >>> 32) + (prod1 >>> 32) + (prod2 >>> 32);\n\n for (int j = n - 2; j >= 0; j--)\n {\n prod1 = x_i * (y[j] & IMASK);\n prod2 = u * (m[j] & IMASK);\n\n carry += (prod1 & IMASK) + (prod2 & IMASK) + (a[j + 1] & IMASK);\n a[j + 2] = (int)carry;\n carry = (carry >>> 32) + (prod1 >>> 32) + (prod2 >>> 32);\n }\n\n carry += (a[0] & IMASK);\n a[1] = (int)carry;\n a[0] = (int)(carry >>> 32);\n }\n\n // 3. if x >= m the x = x - m\n if (!smallMontyModulus && compareTo(0, a, 0, m) >= 0)\n {\n subtract(0, a, 0, m);\n }\n\n // put the result in x\n System.arraycopy(a, 1, x, 0, n);\n }",
"public abstract Vector4fc mul(IMatrix4f mat);",
"public static double[][] multiplyMatrixes( double[][] m1, double[][] m2 ) {\n double[][] result = new double[3][3];\n multiplyMatrixes( m1, m2, result );\n return result;\n }",
"public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"public void multiply(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] *= skalar;\r\n }\r\n }\r\n }",
"protected MatrixToken _multiply(MatrixToken rightArgument)\n\t\t\tthrows IllegalActionException {\n\t\tLongMatrixToken convertedArgument = (LongMatrixToken) rightArgument;\n\t\tlong[] A = _value;\n\t\tlong[] B = convertedArgument._getInternalLongArray();\n\t\tint m = _rowCount;\n\t\tint n = _columnCount;\n\t\tint p = convertedArgument.getColumnCount();\n\t\tlong[] newMatrix = new long[m * p];\n\t\tint in = 0;\n\t\tint ta = 0;\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tta += n;\n\n\t\t\tfor (int j = 0; j < p; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tint ib = j;\n\n\t\t\t\tfor (int ia = i * n; ia < ta; ia++, ib += p) {\n\t\t\t\t\tsum += (A[ia] * B[ib]);\n\t\t\t\t}\n\n\t\t\t\tnewMatrix[in++] = sum;\n\t\t\t}\n\t\t}\n\n\t\treturn new LongMatrixToken(newMatrix, m, p, DO_NOT_COPY);\n\t}",
"public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}",
"@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic int mul(int a,int b) {\n\t\treturn a*b;\r\n\t}",
"public synchronized void matrixMultiplication(cl_mem matrixA, cl_mem matrixB, cl_mem matrixC, \r\n int widthA, int heightA, int widthB) {\r\n confirmActiveState();\r\n \r\n clSetKernelArg(kernelMatrixMultiplication, 1, Sizeof.cl_mem, Pointer.to(matrixB));\r\n clSetKernelArg(kernelMatrixMultiplication, 0, Sizeof.cl_mem, Pointer.to(matrixA));\r\n clSetKernelArg(kernelMatrixMultiplication, 2, Sizeof.cl_mem, Pointer.to(matrixC));\r\n clSetKernelArg(kernelMatrixMultiplication, 3, Sizeof.cl_int, Pointer.to(new int[] {widthA}));\r\n clSetKernelArg(kernelMatrixMultiplication, 4, Sizeof.cl_int, Pointer.to(new int[] {widthB}));\r\n\r\n long globalThreads[] = new long[] {widthB, heightA};\r\n clEnqueueNDRangeKernel(commandQueue, kernelMatrixMultiplication, \r\n 2, null, globalThreads, null, 0, null, null);\r\n }",
"public void postMultiply(Transform transform) {\n matrix = mulMM(matrix, transform.matrix);\n }",
"@Override\n\tpublic double multiply(double a, double b) {\n\t\treturn (a*b);\n\t}",
"public static Matrix3D times(Matrix3D A, Matrix3D B) {\n Matrix3D C = new Matrix3D();\n for (int i=0 ; i<=2 ; i++) { // loop over each row of A\n for (int j=0 ; j<=2 ; j++) { // loop over each column of B\n // Calculate the dot product of the ith row of A with the jth column of B:\n double v = 0;\n for (int k=0 ; k<=2 ; k++) { // loop over each item in the row/column\n v += A.d[i][k] * B.d[k][j];\n }\n C.set(i,j,v);\n }\n }\n return C;\n }",
"public void leftMultiply(Matrix other){\n \t double[][] temp = new double[4][4];\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n\t\t array[i][j] += temp[i][k] * other.array[k][j];\n\t\t}\n\t }\n\t}\n }",
"public Matrix multiply(BigInteger c, BigInteger modulo) {\n Stream<BigInteger[]> stream = Arrays.stream(inner);\n if (concurrent) {\n stream = stream.parallel();\n }\n\n BigInteger[][] res = stream.map(r -> rowMultiplyConstant(r, c, modulo)).toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }",
"public static Matrix multiply(Matrix mat1, Matrix mat2) throws Exception {\n double[][] temp = new double[mat1.rows][mat2.cols];\n try {\n if(mat1.cols == mat2.rows){\n for(int col = 0; col < mat2.cols; col++) {\n for (int row = 0; row < mat1.rows; row++) {\n for (int rowin = 0; rowin < mat2.rows; rowin++) {\n for (int colin = 0; colin < mat1.cols; colin++) {\n temp[row][col] += mat1.arr[row][colin] * mat2.arr[rowin][col];\n }\n }\n }\n }\n }\n\n }catch (Exception e){\n e.printStackTrace();\n throw new Exception(\"Matrices are the wrong size: \" +\n mat1 +\n \" and \" +\n mat2 +\n \" and temp \" +\n Arrays.toString(temp));\n }\n return new Matrix(mat1.rows, mat2.cols, temp);\n }",
"private RealMatrix scalarMultiplication(RealMatrix matrix1, RealMatrix matrix2) {\n\t\tdouble a = matrix1.getEntry(0, 0);\n\t\tdouble b = matrix1.getEntry(1, 0);\n\t\tdouble c = matrix1.getEntry(2, 0);\n\t\tdouble d = matrix1.getEntry(3, 0);\n\t\t\n\t\tdouble[][] result = new double[matrix2.getRowDimension()][matrix2.getColumnDimension()];\n\t\t\n\t\tfor (int i=0; i < matrix2.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < matrix2.getColumnDimension(); j++) {\n\t\t\t\tif (i == 0) result[i][j] = a * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 1) result[i][j] = b * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 2) result[i][j] = c * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 3) result[i][j] = d * matrix2.getEntry(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MatrixUtils.createRealMatrix(result);\n\t}",
"public T mul(T first, T second);",
"public Matrix multiplyOtherMatrixToFront(Matrix other) {\n Matrix output = Matrix(rows, other.columns);\n for (int a = 0; a < rows; a++)\n {\n for (int b = 0; b < other.columns; b++)\n {\n for (int k = 0; k < columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }",
"public static double[][] multiplicacaoMatriz(double[][] a, double[][] b) {\n\t\t// linha por coluna\n\n\t\tif (a == null || b == null)\n\t\t\tthrow new NullPointerException(\"Argumentos nulos\");\n\n\t\tif (a[0].length != b.length)\n\t\t\tthrow new IllegalArgumentException(\"Numero de linhas de \\\"A\\\" � diferente de colunas de \\\"B\\\"\");\n\n\t\tfinal double[][] resultado = new double[a.length][b[0].length];\n\n\t\tfor (int x = 0; x < resultado.length; x++)\n\t\t\tfor (int y = 0; y < resultado[0].length; y++) {\n\n\t\t\t\tdouble acomulador = 0;\n\t\t\t\tfor (int i = 0; i < a[0].length; i++)\n\t\t\t\t\tacomulador += a[x][i] * b[i][y];\n\n\t\t\t\tresultado[x][y] = acomulador;\n\t\t\t}\n\n\t\treturn resultado;\n\t}",
"public static int MatrixChainMult(int i, int j){ //\n\n if(i == j)\n return 0;\n if(mem[i][j] != 0)\n return mem[i][j];\n int min_ans = Integer.MAX_VALUE;\n\n for(int k=i;k<j;k++){\n int count = MatrixChainMult(i , k)\n + MatrixChainMult(k+1 , j)\n + ar[i-1] * ar[k] * ar[j];\n \n min_ans = Math.min(min_ans, count);\n\n }\n //memoization\n mem[i][j] = min_ans;\n return min_ans;\n }",
"public Matrix4f GetMultipliedMatrix(Matrix4f m) {\n\n\t/*\n\tinputs--\n\t\n\tm :\n\t The input matrix m, instance of Matrix4f\n\t*/\n\t\n\t/*\n\toutputs--\n\t\n\tmul :\n\t The matrix this times m\n\t*/\n\t\n\t// Create new matrix to hold the results\n\tMatrix4f mul = new Matrix4f();\n\t\n\t// Double for loop based standard multiplication\n\tfor (int n_i = 0; n_i < 4; n_i ++) {\n\t \n\t for(int n_j = 0; n_j < 4 ; n_j ++) {\n\t\t\n\t\t// Set entry one by one\n\t\tfloat f_val = 0;\n\t\tfor (int n_k = 0; n_k < 4; n_k ++) {\n\t\t\n\t\t f_val += this.mat_f_m[n_i][n_k]*m.GetComponent(n_k, n_j);\n\t\t\n\t\t}\n\t\tmul.SetComponent(n_i, n_j, f_val);\n\t\t\n\t }\n\t\n\t}\n\t\n\t// Return the multiplied matrix\n\treturn mul;\n \n }",
"public Matrix multiply(ComplexNumber cn) {\n\t\tMatrix a = copy();\n\t\tfor (int row = 0; row < a.M; row++) {\n\t\t\tfor (int col = 0; col < a.N; col++) {\n\t\t\t\ta.ROWS[row][col] = a.ROWS[row][col].multiply(cn);\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}",
"public long product() {\n\t\tlong result = 1;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult *= theElements[i];\n\t\t}\n\t\treturn result;\n\t}",
"public static double[][] elementWiseMultiply(double[] a, double[][] b){\n\n \tif(a.length != b.length) throw new RuntimeException(\"Illegal vector dimensions.\");\n\n\t\t\tdouble[][] res = new double[b.length][b[0].length];\n\n\t\t\tfor(int i = 0; i < b.length; i++) for(int j = 0; j < b[0].length; j++)\n\t\t\t\tres[i][j] = (a[i] * b[i][j]);\n\n\t\t\treturn res;\n\n }",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"public abstract Vector4fc mul(IMatrix4x3f mat);",
"public double multiplica(double a, double b) {\n\t\treturn a*b;\n\t}",
"public Matrix arrayTimesEquals(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n data[i][j] = data[i][j] * B.data[i][j];\n }\n }\n return this;\n }",
"int multiply (int a, int b) {\n\t\t//let me do it in one step\n\t\treturn a * b; \n\t\t\n\t\t\n\t}"
]
| [
"0.76275563",
"0.7247203",
"0.70510024",
"0.6906605",
"0.68784195",
"0.6851212",
"0.6740527",
"0.6710429",
"0.67075",
"0.67072517",
"0.66726553",
"0.66565",
"0.66335064",
"0.65516615",
"0.65163034",
"0.6508859",
"0.6488219",
"0.6455797",
"0.6448578",
"0.64172775",
"0.6377682",
"0.63669723",
"0.6360347",
"0.6350439",
"0.63434076",
"0.6340592",
"0.63392246",
"0.6311227",
"0.6253927",
"0.6224225",
"0.62213093",
"0.6208336",
"0.6184102",
"0.6182807",
"0.61717",
"0.6155697",
"0.6133896",
"0.6114069",
"0.6088326",
"0.60556835",
"0.6050161",
"0.60491383",
"0.60443157",
"0.6015694",
"0.6010827",
"0.60079426",
"0.599732",
"0.5989073",
"0.59818053",
"0.5977303",
"0.5972651",
"0.59593225",
"0.59581614",
"0.595678",
"0.5952738",
"0.59436226",
"0.5926598",
"0.59242946",
"0.59173995",
"0.5909813",
"0.59083486",
"0.59004146",
"0.58911884",
"0.5872644",
"0.5819499",
"0.5812005",
"0.5810664",
"0.57989746",
"0.57902765",
"0.5783355",
"0.5768182",
"0.57472664",
"0.5744809",
"0.5731434",
"0.5726783",
"0.5724449",
"0.5720286",
"0.571812",
"0.57179546",
"0.5706352",
"0.5704712",
"0.57034993",
"0.5698824",
"0.5689704",
"0.56696665",
"0.56680524",
"0.5664545",
"0.56604356",
"0.56495214",
"0.56439435",
"0.5642595",
"0.5641467",
"0.56317395",
"0.561242",
"0.56101835",
"0.56090707",
"0.556739",
"0.5555466",
"0.5547444",
"0.55273205"
]
| 0.60508204 | 40 |
Performs multiplication the given vector by this matrix | public double[] mult(double[] vector) {
if(this.cols != vector.length) return null;
double[] result = new double[this.rows];
for(int i=0; i<this.rows; i++) {
for(int j=0; j<this.cols; j++) {
result[i] += data[i][j] * vector[j];
}
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void multiply(Double[] vector, Double multiplier) {\r\n // ...\r\n for (int i = 0; i < vector.length; i++){\r\n vector[i] = vector[i] * multiplier;\r\n }\r\n }",
"public Vector<T> multiply(T aScalar);",
"public Vector tensorProduct( final Vector a);",
"public Vector product(Vector vec) {\n\t\t// Create data structure for containing the result vector\n\t\tdouble[] r = new double[vec.len];\n\n\t\t// Iteratively assign each element of the new vector to be the sum of row*vec\n\t\tfor(int i=0; i < rank; i++) {\n\t\t\tfor(int j=0; j < rank; j++) {\n\t\t\t\tr[i] += retrieveElement(i, j) * vec.v[j]; \n\t\t\t}\n\t\t}\t\n\t\treturn new Vector(r);\n\t}",
"public final native Vec4 multiply(Vec4 vec) /*-{\n return $wnd.mat4.multiplyVec4(this, vec, $wnd.vec4.create());\n }-*/;",
"private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }",
"public void mul_(JType value) {\n TH.THTensor_(mul)(this, this, value);\n }",
"public static double[] multiplyVectorByMatrix( double[] v, double[][] m ) {\n double[] result = new double[3];\n multiplyVectorByMatrix(v, m, result);\n return result;\n }",
"@Override\n\tpublic IVector scalarMultiply(double number){\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, this.get(i)*number);\n\t\t}\n\t\treturn this;\n\t}",
"public void vectorProductToSelf(Vector3 vector) {\n\t\tthis.setAsSelf(this.vectorProduct(vector));\n\t}",
"public static <T extends Vector> T Multiply(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] * b.axis[i];\n }\n return result;\n }\n return result;\n }",
"public double[] vectorMult(double[] v1, double[] v2) {\n\n double[] res = new double[v1.length];\n\n for(int i = 0; i < v1.length; i++) {\n res[i] = v1[i]*v2[i];\n }\n return res;\n }",
"static float[] mulMV(float[] m, float[] v, float v3){ 0\n // 1\n // 2\n // 3\n\t // 0 1 2 3 \n\t // 4 5 6 7\n\t // 8 9 10 11\n\t // 12 13 14 15\n\t // \n \n return new float[]{\n \t m[ 0]*v[0] + m[ 1]*v[1] + m[ 2]*v[2] + m[ 3]*v3,\n \t m[ 4]*v[0] + m[ 5]*v[1] + m[ 6]*v[2] + m[ 7]*v3,\n \t m[ 8]*v[0] + m[ 9]*v[1] + m[10]*v[2] + m[11]*v3,\n \t m[12]*v[0] + m[13]*v[1] + m[14]*v[2] + m[15]*v3};\n }",
"public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }",
"public Vector2f mult (float v, Vector2f result)\n {\n return result.set(x*v, y*v);\n }",
"public T dotProduct(Vector<T> aVector) throws VectorSizeException;",
"public Vec3 multiply(Vec3 vect){\n if(values == null || values[0] == null || values[1] == null\n || values[2] == null){\n throw new IllegalStateException(\"Ill-formed transform\");\n }\n if(vect == null){\n throw new IllegalArgumentException(\"multiply by null vector\");\n }\n float x = values[0][3];\n float y = values[1][3];\n float z = values[2][3];\n x += values[0][0] * vect.x + values[0][1] * vect.y + values[0][2]\n * vect.z;\n y += values[1][0] * vect.x + values[1][1] * vect.y + values[1][2]\n * vect.z;\n z += values[2][0] * vect.x + values[2][1] * vect.y + values[2][2]\n * vect.z;\n return new Vec3(x, y, z);\n }",
"public abstract Vector4fc mul(IVector4f v);",
"public static double[] sequentialMultiplyMatrixVector(double[][] m, double[] v) {\n double[] result = new double[v.length];\n for(int rowM = 0; rowM < v.length; rowM++) {\n double c = 0.0;\n for (int columnM = 0; columnM < v.length; columnM++)\n c+= m[rowM][columnM] * v[columnM]; /* columnA = rowB */\n result[rowM] = c;\n }\n return result;\n }",
"public static double[] multiplyRotationMatrixVector(double[][] matrix, double[] vector) {\n double[] rotatedVector = new double[3];\n for (int i = 0; i < 3; i++) {\n for (int x = 0; x < 3; x++) {\n rotatedVector[i] += matrix[i][x] * vector[x];\n }\n }\n return rotatedVector;\n }",
"public Vector2f multLocal (float v)\n {\n return mult(v, this);\n }",
"public Vector2f mult (float v)\n {\n return mult(v, new Vector2f());\n }",
"public Vector3 multLocal (double v) {\n return mult(v, this);\n }",
"public Vector2f mul(Vector2f vec) {\n this.x *= vec.x;\n this.y *= vec.y;\n return this;\n }",
"@Override\n\tpublic double scalarProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != vector.getDimension()){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble scalarSum = 0;\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tscalarSum += (this.get(i) * vector.get(i));\n\t\t}\n\t\treturn scalarSum;\n\t}",
"public abstract Vector4fc mul(IMatrix4f mat);",
"@Override\n public DoubleVector multiply(DoubleVector s) {\n DoubleVector smallestVector = s.getLength() < getLength() ? s : this;\n DoubleVector vec = new SparseDoubleVector(s.getDimension(),\n smallestVector.getLength());\n DoubleVector largerVector = smallestVector == this ? s : this;\n Iterator<DoubleVectorElement> it = smallestVector.iterateNonZero();\n while (it.hasNext()) {\n DoubleVectorElement next = it.next();\n double otherValue = largerVector.get(next.getIndex());\n vec.set(next.getIndex(), next.getValue() * otherValue);\n }\n\n return vec;\n }",
"public static double[] matrixVectorMult(double[][] A, double[] x) {\n\t\tint n = A.length;\n\t\tint m = x.length;\n\n\t\tdouble[] y = new double[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ty[i] = 0;\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\ty[i] += A[i][j] * x[j];\n\t\t\t}\n\t\t}\n\n\t\treturn y;\n\t}",
"public void\n\tmult( Vector3 other )\n\t{\n\t\tdata[0] *= other.data[0];\n\t\tdata[1] *= other.data[1];\n\t\tdata[2] *= other.data[2];\n\t}",
"public Vector3D multVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(\n\t\t\t\tthis.x = (u.y * v.z) - (u.z * v.y), \n\t\t\t\tthis.y = (u.z * v.x) - (u.x * v.z),\n\t\t\t\tthis.z = (u.x * v.y) - (u.y * v.x));\n\t}",
"Matrix scalarMult(double x){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n itRow.moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(i, c.column, (x*c.value));\n itRow.moveNext();\n }\n }\n\n return newM;\n }",
"@Override\n\tpublic IVector nScalarMultiply(double number){\n\t\treturn this.copy().scalarMultiply(number);\n\t}",
"Matrix( Vector a, Vector b )\n {\n x = b.times(a.x);\n y = b.times(a.y);\n z = b.times(a.z);\n }",
"public final void mul(float scalar) {\n\tm00 *= scalar; m01 *= scalar; m02 *= scalar;\n\tm10 *= scalar; m11 *= scalar; m12 *= scalar;\n\tm20 *= scalar; m21 *= scalar; m22 *= scalar;\n }",
"public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}",
"public double dot(SparseVector vector) {\n SparseVector v1 = this;\n SparseVector v2 = vector;\n double result = 0.0;\n int i = 0;\n int j = 0;\n \n while (i < v1.size() && j < v2.size()) {\n Element e1 = v1.get(i);\n Element e2 = v2.get(j);\n \n if (e1.index == e2.index) {\n result += e1.value * e2.value;\n i++;\n j++;\n } else if (e1.index < e2.index) {\n i++;\n } else {\n j++;\n }\n }\n \n return result;\n }",
"@Override\n\tpublic void\n\tscalarMult( double value )\n\t{\n\t\tdata[0] *= value;\n\t\tdata[1] *= value;\n\t\tdata[2] *= value;\n\t}",
"public void multiply(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] *= skalar;\r\n }\r\n }\r\n }",
"public double dot( T v ) {\n convertType.specify(this, v);\n T A = convertType.convert(this);\n v = convertType.convert(v);\n\n if (!isVector()) {\n throw new IllegalArgumentException(\"'this' matrix is not a vector.\");\n } else if (!v.isVector()) {\n throw new IllegalArgumentException(\"'v' matrix is not a vector.\");\n }\n\n return A.ops.dot(A.mat, v.getMatrix());\n }",
"@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}",
"Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }",
"public DVec multiply(DVec arg0) {\n\t\tDVec vec = new DVec(arg0.rowCount());\n\t\tfor (int i = 0; i < rowCount(); i++)\n\t\t\tfor (int j = 0; j < columnCount(); j++)\n\t\t\t\tvec.set(i, get(i, j) * arg0.get(i));\n\t\treturn vec;\n\t}",
"public Matrix multiply(double scalar) {\n Matrix result = new Matrix(this.rows, this.cols);\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.cols; j++) {\n result.data[i][j] = this.data[i][j] * scalar;\n }\n }\n\n return result;\n }",
"public Matrix multiply(Matrix b) {\n MultMatrix multCommand = new MultMatrix();\n Matrix result = multCommand.multiply(this, b);\n\n return result;\n }",
"public void multiply() {\n\t\t\n\t}",
"public abstract Vector4fc mul(IMatrix4x3f mat);",
"public double carre(double v) {\n return v*v;\n }",
"double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;",
"public static <T extends Vector> T Multiply(T a, float val, T result){\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] * val;\n }\n return result;\n }",
"public void multiply(Object mulValue) {\n\t\tvalue = operate(\n\t\t\t\ttransform(value),\n\t\t\t\ttransform(mulValue),\n\t\t\t\t(v1, v2) -> v1 * v2,\n\t\t\t\t(v1, v2) -> v1 * v2\n\t\t);\n\t}",
"public static Vector3D multiplyVector(Vector3D v1, Vector3D v2) {\n//\t\tthis.x1 = this.x2 * other.getX3() - this.x3 * other.getX2();\n//\t\tthis.x2 = this.x3 * other.getX1() - this.x1 * other.getX3();\n//\t\tthis.x3 = this.x1 * other.getX2() - this.x2 * other.getX1();\n\t\tdouble x1 = v1.getX2() * v2.getX3() - v1.getX3() * v2.getX2();\n\t\tdouble x2 = v1.getX3() * v2.getX1() - v1.getX1() * v2.getX3();\n\t\tdouble x3 = v1.getX1() * v2.getX2() - v1.getX2() * v2.getX1();\n\t\t\n\t\treturn new Vector3D(x1,x2,x3);\n\t}",
"public double dot(VectorA v)\n {\n return (this.mag()*v.mag());\n }",
"public static double scalarProduct(Vector v1, Vector v2){\r\n\t\treturn v1.getX()*v2.getX() + v1.getY()*v2.getY();\r\n\t\t\r\n\t}",
"@Override\n public InterpreterValue mul(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() * ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() * ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '*' is not defined for type double and \" + v.getName());\n\n }",
"public Vector<T> crossProduct(Vector<T> aVector) throws VectorSizeException;",
"@Override\n public void run() {\n result.prod(indexes.getI(),indexes.getJ(),matrix1,matrix2);\n }",
"public void matrixMultiply(Matrix m) {\n if (cols == m.getRows()) {\n ArrayList<double[]> result = newMatrix(rows, m.getCols());\n for (int i=0; i<rows; i++) {\n for (int k=0; k<m.getCols(); k++) {\n double sum = 0;\n for (int j=0; j<cols; j++) {\n sum += matrix.get(i)[j] * m.get(j, k);\n }\n result.get(i)[k] = sum;\n }\n }\n setMatrix(result, rows, m.getCols()); // Rows is that of original matrix, Columns is that of the multiplying matrix\n }\n else {\n throw new MatrixMultiplicationDimensionException();\n }\n }",
"void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}",
"public void multiply(double val) {\n for (int i = 0; i < numRows; i++) {\n for (int j = 0; j < numCols; j++) {\n data[i][j] = data[i][j] * val;\n }\n }\n }",
"public MAT(Vector v) {\n super(dimension(v), dimension(v));\n final int n = this.nRows();\n\n int k = 1;\n for (int i = 1; i <= n; ++i) {\n for (int j = i; j <= n; ++j) {\n double vk = v.get(k++);\n if (j != i) {\n vk /= Constant.ROOT_2;\n }\n\n set(i, j, vk);\n set(j, i, vk);\n }\n }\n }",
"public Vector2f mult (Vector2f other, Vector2f result)\n {\n return result.set(x*other.x, y*other.y);\n }",
"public final void mMUL() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.MUL;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:708:5: ( 'mul' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:708:7: 'mul'\n\t\t\t{\n\t\t\t\tthis.match(\"mul\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}",
"Matrix mul(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] * w;\n }\n return matrix_to_return;\n }",
"public Matrix multiply(BigInteger c, BigInteger modulo) {\n Stream<BigInteger[]> stream = Arrays.stream(inner);\n if (concurrent) {\n stream = stream.parallel();\n }\n\n BigInteger[][] res = stream.map(r -> rowMultiplyConstant(r, c, modulo)).toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }",
"public double multScalar(Vector3D u, Vector3D v) {\n\t\treturn ((u.x * v.x) + (u.y * v.y) + (u.z * v.z));\n\t}",
"public void scalarMultiply(double s) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n matrix.get(i)[j] *= s;\n }\n }\n }",
"public JTensor mul(JType value) {\n JTensor r = new JTensor();\n TH.THTensor_(mul)(r, this, value);\n return r;\n }",
"private void mul() {\n\n\t}",
"public Coordinates scaleVector(Coordinates vector, double factor);",
"@Override\n\tpublic IVector nVectorProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != 3){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble[] dims = new double[3];\n\t\t\n\t\tdims[0] = this.get(1)*vector.get(2) - vector.get(1)*this.get(2);\n\t\tdims[1] = (-1)*this.get(0)*vector.get(2)+vector.get(0)*this.get(2);\n\t\tdims[2] = this.get(0)*vector.get(1)-vector.get(0)*this.get(1);\n\t\t\n\t\tIVector newVector = new Vector(dims);\n\t\t\n\t\treturn newVector;\n\t\t\n\t\t\n\t}",
"public double dot(Vec vthat);",
"public T mul(T first, T second);",
"public Vector3 vectorProduct(Vector3 vector) {\n\t\treturn new Vector3(\n\t\t\t\tthis.y * vector.z - this.z * vector.y, \n\t\t\t\tthis.z * vector.x - this.x * vector.z,\n\t\t\t\tthis.x * vector.y - this.y * vector.x \n\t\t);\n\t}",
"public Vector2D multiply(float number) {\n return new Vector2D(this.x * number, this.y * number);\n }",
"static float[] mulVM(float[] vt, float[] m){\n \n if(vt.length != 4){\n \t \tthrow new IllegalArgumentException();\n }\n \n return mulVM(vt, vt[3], m); \t\n }",
"private static SbVec4f\nmultVecMatrix4(final SbMatrix m, final SbVec4f v)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int i;\n final SbVec4f v2 = new SbVec4f();\n\n for (i = 0; i < 4; i++)\n v2.getValueRead()[i] = (v.getValueRead()[0] * m.getValue()[0][i] +\n v.getValueRead()[1] * m.getValue()[1][i] +\n v.getValueRead()[2] * m.getValue()[2][i] +\n v.getValueRead()[3] * m.getValue()[3][i]);\n\n return v2;\n}",
"public final void mul(Matrix3f m1) {\n\tmul(this, m1);\n }",
"public static int[] mul(int[][] in, int[] vec) {\n int[] out = new int[vec.length];\n\n for (int i = 0; i < NEURONS_COUNT; i++) {\n for (int j = 0; j < NEURONS_COUNT; j++) {\n out[i] += in[i][j] * vec[j];\n }\n }\n\n return out;\n }",
"public double dotProduct(Vector330Class v){\n return ((this.x * v.x) + (this.y * v.y));\n }",
"public abstract Vector4fc mul(float x, float y, float z, float w);",
"static float[] mulVM(float[] vt, float vt3, float[] m){\n \t // 0 1 2 3 \n \t // 4 5 6 7\n \t // 8 9 10 11\n \t // 12 13 14 15\n \t // 0 1 2 3 \n \t\n \t return new float[] {vt[0]*m[0] + vt[1]*m[4] + vt[2]*m[ 8] + vt3*m[12],\n\t\t \t \t\t vt[0]*m[1] + vt[1]*m[5] + vt[2]*m[ 9] + vt3*m[13],\n\t\t \t \t\t vt[0]*m[2] + vt[1]*m[6] + vt[2]*m[10] + vt3*m[14],\n\t\t \t \t\t vt[0]*m[3] + vt[1]*m[7] + vt[2]*m[11] + vt3*m[15]};\n \t\n }",
"public Matrix multiply(int i) {\n\t\treturn multiply(new Fraction(i));\n\t}",
"public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}",
"public static final Vector2 multiply(final Vector2 vector, final float scalar) {\n\t\tVector2 r = new Vector2();\n\t\tr.X = vector.X * scalar;\n\t\tr.Y = vector.Y * scalar;\n\t\t\n\t\treturn r;\n\t}",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"public void multiply(Object mulValue) {\r\n\r\n\t\tNumberOperation operator = new NumberOperation(this.value, mulValue) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() * getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() * getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}",
"public abstract <M extends AbstractMatrix> M elementwiseProduct(M b);",
"public int dotProduct(SparseVector vec) {\n\t\tint result = 0;\n\t\tfor (int index : set) {\n\t\t\tif (vec.set.contains(index)) {\n\t\t\t\tresult += nums[index] * vec.nums[index];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public Vector3 mul(final Matrix4 matrix) {\r\n\t\tfinal float l_mat[] = matrix.val;\r\n\t\treturn this.set(x * l_mat[Matrix4.M00] + y * l_mat[Matrix4.M01] + z * l_mat[Matrix4.M02] + l_mat[Matrix4.M03],\r\n\t\t\t\tx * l_mat[Matrix4.M10] + y * l_mat[Matrix4.M11] + z * l_mat[Matrix4.M12] + l_mat[Matrix4.M13],\r\n\t\t\t\tx * l_mat[Matrix4.M20] + y * l_mat[Matrix4.M21] + z * l_mat[Matrix4.M22] + l_mat[Matrix4.M23]);\r\n\t}",
"public Coordinates scaleVector(Coordinates vector, double factor, Coordinates origin);",
"public interface VectorOperations extends MatrixOperations\n{\n /**\n * \n * Multiplies the vectors in a specific way, not sure of the term\n * \n * @param a\n * @param b\n * @return\n */\n public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }\n \n /**\n * \n * Makes the tensor product of this and a\n * \n * @param a\n * @return\n */\n public Vector tensorProduct( final Vector a);\n \n /**\n * \n * Pretty much like List.sublist\n * \n * @param indexFrom\n * @param indexTo\n * @return\n */\n public Vector get( final int indexFrom, final int indexTo );\n \n /**\n * \n * @return size of the vector\n */\n public int size();\n}",
"public T elementMult( T b ) {\n convertType.specify(this, b);\n T A = convertType.convert(this);\n b = convertType.convert(b);\n\n T c = A.createLike();\n A.ops.elementMult(A.mat, b.mat, c.mat);\n return c;\n }",
"public void multiply(double multiplier) {\n x *= multiplier;\n y *= multiplier;\n }",
"@Override\r\n\tpublic int mul(int a,int b) {\n\t\treturn a*b;\r\n\t}",
"public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}",
"private void multiply(float... values) {\n buffer(() -> {\n try (Pooled<Matrix4F> mat = Matrix4F.of(values)) {\n kernel.get().multiply(mat.get());\n }\n trans.set(kernel.get().asArray());\n });\n }",
"public void multiply(double amount) {\n x *= amount;\n y *= amount;\n }",
"public void multiply(MyDouble val) {\n this.setValue(this.getValue() * val.getValue());\n }",
"public static void translate(Double[] vector, Double[] translateVector) {\r\n for(int i = 0; i < vector.length; i++){\r\n vector[i] += translateVector[i];\r\n }\r\n }",
"public final void mul(float scalar, Matrix3f m1) {\n\t set(m1);\n\t mul(scalar);\n }"
]
| [
"0.7177874",
"0.6947472",
"0.69315714",
"0.6790862",
"0.66632044",
"0.6655343",
"0.6517989",
"0.65128785",
"0.6501568",
"0.6474028",
"0.64494896",
"0.6436513",
"0.6361098",
"0.6352228",
"0.63190526",
"0.62587637",
"0.6235337",
"0.6233058",
"0.62096035",
"0.6194952",
"0.6179245",
"0.6175668",
"0.6156948",
"0.6142554",
"0.611738",
"0.6109336",
"0.6098724",
"0.6092044",
"0.6087641",
"0.60784405",
"0.6076342",
"0.6059182",
"0.6057059",
"0.60335654",
"0.60307676",
"0.60165584",
"0.6016325",
"0.6006781",
"0.5997919",
"0.5995934",
"0.5954683",
"0.59529674",
"0.59199065",
"0.5918151",
"0.59172094",
"0.5913327",
"0.58960986",
"0.5889583",
"0.58894455",
"0.58664846",
"0.58628243",
"0.58619565",
"0.5861275",
"0.5829245",
"0.5828755",
"0.58198065",
"0.5810391",
"0.5810147",
"0.5804485",
"0.5799818",
"0.57987136",
"0.5779361",
"0.57678926",
"0.5745955",
"0.5742726",
"0.5726754",
"0.5725673",
"0.5712445",
"0.5698469",
"0.56853545",
"0.56763536",
"0.56571513",
"0.56571275",
"0.5655052",
"0.56538355",
"0.56413215",
"0.56411076",
"0.56403494",
"0.5640075",
"0.5634585",
"0.56225055",
"0.56202525",
"0.56176573",
"0.5612337",
"0.56003433",
"0.5586161",
"0.5565994",
"0.55623436",
"0.5561004",
"0.5556406",
"0.5540575",
"0.55394185",
"0.5533449",
"0.5531668",
"0.5531153",
"0.5517154",
"0.54791725",
"0.5477749",
"0.5475358",
"0.547297"
]
| 0.7334237 | 0 |
Add the two matrices | public Mat2 add(Mat2 m) {
if(this.getRows()!=m.getRows() || this.getCols()!=m.getCols()) return null;
Mat2 m2 = new Mat2(this.getRows(), this.getCols());
for(int i=0; i<this.getRows(); i++) {
for(int j=0; j<this.getCols(); j++) {
m2.set(i, j, this.get(i, j)+m.get(i, j));
}
}
return m2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Matrix addMatrices(Matrix mat1, Matrix mat2){\r\n\t\t\r\n\t\tMatrix resultMat = new Matrix();\r\n\t\t\r\n\t\tfor(int rowi = 0; rowi < dim; rowi++ )\r\n\t\t\tfor (int coli = 0; coli < dim; coli++)\r\n\t\t\tresultMat.setElement(mat1.getElement(rowi, coli) + mat2.getElement(rowi, coli), rowi, coli);\r\n\t\treturn resultMat;\r\n\t}",
"public static Matrix add(Matrix first, Matrix second) {\n\n Matrix result = new Matrix(first.getRows(), first.getClumns());\n\n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] + second.matrix[row][col];\n }\n }\n\n return result;\n }",
"public static void add(int[][] matrix1, int[][] matrix2) {\n\tfor(int x=0;x<matrix1.length; x++) {\r\n\t\tfor(int y=0;y<matrix2.length;y++) {\r\n\t\t\tSystem.out.print(matrix1[x][y] +matrix2[x][y] + \" \");\r\n\t\t\t}\r\n\t\tSystem.out.println();\r\n\t\t}\t\r\n\t}",
"public static SquareMatrix add(SquareMatrix m1, SquareMatrix m2) throws Exception{\n SquareMatrix result;\n \n if (m1.size() == m2.size()) {\n result = new SquareMatrix(m1.size());\n for (int row=0; row<m1.size(); row++) {\n for(int col=0; col<m1.size(); col++) {\n double value = m1.get(row, col) + m2.get(row, col);\n result.set(row, col, value);\n }\n }\n } else {\n throw new Exception(\"Le due matrici devo avere la stessa dimensione\");\n }\n return result;\n }",
"public Matrix add(Matrix m2)\n\t{\n\t\tMatrix result = new Matrix(new double[matrix.length][matrix.length]); \n\t\tfor (int i = 0; i < matrix.length; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < matrix.length; j++)\n\t\t\t{\n\t\t\t\tresult.matrix[i][j] = matrix[i][j] + m2.matrix[i][j];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n\tpublic IMatrix add(IMatrix other) {\n\t\tif (this.getColsCount() != other.getColsCount()\n\t\t\t\t|| this.getRowsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For operation 'add' matrixes should be compatible!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = this.getColsCount();\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tthis.set(i, j, this.get(i, j) + other.get(i, j));\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}",
"public Matrix plus(Matrix B) {\n Matrix A = this;\n if (B.rowCount != A.rowCount || B.columnCount != A.columnCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(rowCount, columnCount);\n for (int i = 0; i < rowCount; i++)\n for (int j = 0; j < columnCount; j++)\n C.data[i][j] = A.data[i][j] + B.data[i][j];\n return C;\n }",
"public Matrix plus(Matrix B) {\n Matrix A = this;\n if (B.M != A.M || B.N != A.N) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(M, N);\n for (int i = 0; i < M; i++)\n for (int j = 0; j < N; j++)\n C.data[i][j] = A.data[i][j] + B.data[i][j];\n return C;\n }",
"public Matrix add(Matrix other) {\n if (this.cols != other.cols || this.rows != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, this.cols);\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.cols; j++) {\n result.data[i][j] = this.data[i][j] + other.data[i][j];\n }\n }\n\n return result;\n }",
"public Matrix plus(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n Matrix X = new Matrix(m,n);\n double[][] C = X.getArray();\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n C[i][j] = data[i][j] + B.data[i][j];\n }\n }\n return X;\n }",
"public static Matrix plus(Matrix amat, Matrix bmat){\r\n \tif((amat.nrow!=bmat.nrow)||(amat.ncol!=bmat.ncol)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n \tint nr=amat.nrow;\r\n \tint nc=amat.ncol;\r\n \tMatrix cmat = new Matrix(nr,nc);\r\n \tdouble[][] carray = cmat.getArrayReference();\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tcarray[i][j]=amat.matrix[i][j] + bmat.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"private int[][] matrixSum(int[][] a, int[][]b) {\n\t\tint row = a.length;\n\t\tint col = a[0].length;\n\t\t// creat a matrix array to store sum of a and b\n\t\tint[][] sum = new int[row][col];\n\t\t\n\t\t// Add elements at the same position in a matrix array\n\t\tfor (int r = 0; r < row; r++) {\n\t\t\tfor (int c = 0; c < col; c++) {\n\t\t\t\tsum[r][c] = a[r][c] + b[r][c]; \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sum;\n\t}",
"public void add(SquareMatrix other) throws Exception{\n if (this.size() == other.size()) {\n for (int row=0; row<this.size(); row++) {\n for(int col=0; col<this.size(); col++) {\n double value = this.get(row, col) + other.get(row, col);\n this.set(row, col, value);\n }\n }\n } else {\n throw new Exception(\"Le due matrici devo avere la stessa dimensione\");\n }\n }",
"public Matrix plus(Matrix bmat){\r\n \tif((this.nrow!=bmat.nrow)||(this.ncol!=bmat.ncol)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n \tint nr=bmat.nrow;\r\n \tint nc=bmat.ncol;\r\n \tMatrix cmat = new Matrix(nr,nc);\r\n \tdouble[][] carray = cmat.getArrayReference();\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tcarray[i][j]=this.matrix[i][j] + bmat.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public Matrix plus(double[][] bmat){\r\n \t int nr=bmat.length;\r\n \tint nc=bmat[0].length;\r\n \tif((this.nrow!=nr)||(this.ncol!=nc)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n\r\n \tMatrix cmat = new Matrix(nr,nc);\r\n \tdouble[][] carray = cmat.getArrayReference();\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tcarray[i][j]=this.matrix[i][j] + bmat[i][j];\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public Matrix plusEquals(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n data[i][j] = data[i][j] + B.data[i][j];\n }\n }\n return this;\n }",
"@Override\n\tpublic IMatrix nAdd(IMatrix other) {\n\t\treturn this.copy().add(other);\n\t}",
"private static void sum(int[][] first, int[][] second) {\r\n\t\tint row = first.length;\r\n\t\tint column = first[0].length;\r\n\t\tint[][] sum = new int[row][column];\r\n\r\n\t\tfor (int r = 0; r < row; r++) {\r\n\t\t\tfor (int c = 0; c < column; c++) {\r\n\t\t\t\tsum[r] = first[r] + second[r];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\nSum of Matrices:\\n\");\r\n\t\tprint2dArray(sum);\r\n\t}",
"public T plus( T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n\n T ret = A.createMatrix(mat.getNumRows(), mat.getNumCols(), A.getType());\n\n A.ops.plus(A.mat, B.mat, ret.mat);\n\n return ret;\n }",
"public void addOtherMatrix(Matrix other) {\n if (other.rows != rows || other.columns != columns) {\n return;\n }\n matrixVar = matrixVar + other.matrixVar;\n }",
"Matrix add(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] + m.data[i];\n }\n return matrix_to_return;\n }",
"public static JTensor addmm(JType b, JTensor t, JType a, JTensor mat1, JTensor mat2) {\n JTensor r = new JTensor();\n TH.THTensor_(addmm)(r, b, t, a, mat1, mat2);\n return r;\n }",
"public static int[][] add(int[][] a, int[][] b) {\n\t\tint[][] C = new int[4][4];\n\t\t \n for (int q = 0; q < C.length; q++) {\n for (int w = 0; w < C[q].length; w++) {\n C[q][w] = a[q][w] + b[q][w];\n }\n }\n \n for (int q = 0; q < b.length; q++ ){\n for(int w = 0; w < C[q].length;w++){\n }\n }\n \n return C;\n \n \n }",
"public final void add(Matrix3f m1, Matrix3f m2) {\n\t// note this is alias safe.\n\tset(\n\t m1.m00 + m2.m00,\n\t m1.m01 + m2.m01,\n\t m1.m02 + m2.m02,\n\t m1.m10 + m2.m10,\n\t m1.m11 + m2.m11,\n\t m1.m12 + m2.m12,\n\t m1.m20 + m2.m20,\n\t m1.m21 + m2.m21,\n\t m1.m22 + m2.m22\n\t );\n }",
"public void plusEquals(Matrix bmat){\r\n \tif((this.nrow!=bmat.nrow)||(this.ncol!=bmat.ncol)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n \tint nr=bmat.nrow;\r\n \tint nc=bmat.ncol;\r\n\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tthis.matrix[i][j] += bmat.matrix[i][j];\r\n\t \t}\r\n \t}\r\n \t}",
"Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++) {\n int sum;\n int commonality = first.getColumns(); // number to handle summation loop\n for (int rw = 0; rw < this.getRows(); rw++) {\n sum = 0;\n // summation loop\n for (int x = 0; x < commonality; x++) {\n sum += first.getValue(rw, x) * second.getValue(x, col);\n }\n matrix[rw][col] = sum;\n }\n\n }\n } else {\n System.out.println(\"Matrices cannot be multiplied\");\n }\n }",
"public static Seq plus(Jumble j1, Jumble j2){\n int new_size = (j1.count < j2.count) ? j1.count : j2.count;\n int new_arr[] = new int[new_size];\n for(int i = 0; i < new_size; i++) {\n new_arr[i] = j1.values[i] + j2.values[i]; //add each corresponding element\n }\n return new Jumble(new_arr); // the Jumble constructor does copy \n }",
"public static JTensor addbmm(JType b, JTensor mat, JType a, JTensor bmat1, JTensor bmat2) {\n JTensor r = new JTensor();\n TH.THTensor_(addbmm)(r, b, mat, a, bmat1, bmat2);\n return r;\n }",
"public Matrix add(Matrix b, BigInteger modulo) {\n Matrix a = this;\n if (a.getColumns() != b.getColumns() ||\n a.getRows() != b.getRows()) {\n throw new MalformedMatrixException(\"Matrix with dimensions \" + nrOfRows + \"x\" + nrOfCols +\n \" cannot be added to matrix with dimensions \" + b.nrOfRows + \"x\" + b.nrOfCols);\n }\n\n IntStream outerStream = IntStream.range(0, a.getRows());\n if (concurrent) {\n outerStream = outerStream.parallel();\n }\n\n BigInteger[][] res = outerStream\n .mapToObj(i -> rowAddition(a.getRow(i), b.getRow(i), modulo))\n .toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }",
"Matrix add(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = w + this.data[i];\n }\n return matrix_to_return;\n }",
"public void concat(Matrix matrix) {\n\t\t\n\t}",
"public static ArrayList<Float> mathematicalAdd(ArrayList<Float> firstWave, ArrayList<Float> secondWave) {\r\n ArrayList<Float> newWave = new ArrayList<>();\r\n int size = getSize(firstWave,secondWave);\r\n for (int i = 0; i < size; i++) {\r\n newWave.add(i, firstWave.get(i) + secondWave.get(i));\r\n }\r\n return newWave;\r\n }",
"public static BigDecimal[][] multiplyMatrices(BigDecimal[][] m1, BigDecimal[][] m2){\n\t\t\n\t\tint size = m1.length;\n\t\t\n\t\tBigDecimal[][] next = new BigDecimal[size][size];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tfor(int j = 0; j < size; j++){\n\t\t\t\tBigDecimal current = new BigDecimal(0);\n\t\t\t\tfor(int k = 0; k < size; k++)\n\t\t\t\t\tcurrent = current.add(m1[i][k].multiply(m2[k][j]));\n\n\t\t\t\tnext[i][j] = current;\n\t\t\t}\n\t\t}\n\t\treturn next;\n\t}",
"public int[][] sumOfMatrices(int row, int col, int array1[][], int array2[][]) {\n int[][] sum = new int[row][col];\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) {\n sum[i][j] = array1[i][j] + array2[i][j];\n }\n }\n return sum;\n }",
"public final void add(Matrix3f m1) {\n\tm00 += m1.m00; m01 += m1.m01; m02 += m1.m02;\n\tm10 += m1.m10; m11 += m1.m11; m12 += m1.m12;\n\tm20 += m1.m20; m21 += m1.m21; m22 += m1.m22;\n }",
"public static JTensor baddbmm(JType b, JTensor t, JType a, JTensor bmat1, JTensor bmat2) {\n JTensor r = new JTensor();\n TH.THTensor_(baddbmm)(r, b, t, a, bmat1, bmat2);\n return r;\n }",
"public static double[][] sum(double[][] t1,double[][] t2)\n\t{\n\t\t// Vérifie si t1 & t2 sont régulier\n\t\tif (!regular(t1) || !regular(t2))\n\t\t\treturn null;\n\t\t// Vérifie si t1 & t2 sont de même longeur\n\t\tif (t1.length!=t2.length)\n\t\t\treturn null;\n\t\tif (t1[0].length!=t2[0].length)\n\t\t\treturn null;\n\t\tint nLin=t1.length; int nRow=t1[0].length;\n\t\t\n\t\tdouble[][] somme=new double[nLin][nRow];\n\t\t\n\t\tfor (int i=0;i<nLin;i++)\n\t\t\tfor (int j=0;j<nRow;j++)\n\t\t\t\tsomme[i][j]=t1[i][j]+t2[i][j];\n\t\treturn somme;\n\t}",
"public Matrix add(Matrix matrix) {\n if (check(matrix)) {\n Matrix sum = new Matrix(this.getWidth(), this.getHeight());\n for (int i = 0; i < this.getHeight(); i++) {\n for (int j = 0; j < this.getWidth(); j++) {\n sum.setEntry(j, i, this.getEntry(j, i) + matrix.getEntry(j, i));\n }\n }\n return sum;\n } else {\n return null;\n }\n }",
"public Matrix4f add(Matrix4f other) {\n Matrix4f result = new Matrix4f();\n\n result.m00 = this.m00 + other.m00;\n result.m10 = this.m10 + other.m10;\n result.m20 = this.m20 + other.m20;\n result.m30 = this.m30 + other.m30;\n\n result.m01 = this.m01 + other.m01;\n result.m11 = this.m11 + other.m11;\n result.m21 = this.m21 + other.m21;\n result.m31 = this.m31 + other.m31;\n\n result.m02 = this.m02 + other.m02;\n result.m12 = this.m12 + other.m12;\n result.m22 = this.m22 + other.m22;\n result.m32 = this.m32 + other.m32;\n\n result.m03 = this.m03 + other.m03;\n result.m13 = this.m13 + other.m13;\n result.m23 = this.m23 + other.m23;\n result.m33 = this.m33 + other.m33;\n\n return result;\n }",
"public void getConcatMatrix(Matrix matrix2) {\n matrix2.postConcat(this.matrix);\n }",
"Matrix add(Matrix M) {\n if(getSize() != M.getSize()) {\n throw new RuntimeException(\"Matrix Error: Matrices not same size\");\n }\n if (M.equals(this)) return M.scalarMult(2);\n int c = 0, e2 = 0;\n double v1 = 0, v2 = 0;\n List temp1, temp2;\n Matrix addM = new Matrix(getSize());\n for(int i = 1; i <= rows.length; i++) {\n temp1 = M.rows[i-1];\n temp2 = this.rows[i-1];\n if(temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }else if(!temp1.isEmpty() && temp2.isEmpty()) {\n temp1.moveFront();\n while(temp1.index() != -1) {\n addM.changeEntry(i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n }else if(!temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n temp1.moveFront();\n while(temp1.index() != -1 && temp2.index() != -1) {\n if(((Entry)temp1.get()).column == ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, (v1+v2));\n temp1.moveNext();\n if(!this.equals(M))\n temp2.moveNext();\n ///if temp1 < temp2\n //this < M\n }else if(((Entry)temp1.get()).column < ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n c = ((Entry)temp1.get()).column;\n addM.changeEntry(i, c, v1);\n temp1.moveNext();\n //if temp1>temp2\n }else if(((Entry)temp1.get()).column > ((Entry)temp2.get()).column) {\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, v2);\n temp2.moveNext();\n }\n }\n while(temp1.index() != -1) {\n addM.changeEntry( i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }\n }\n return addM;\n }",
"static void Adding(int[][] array, int[][] second_array) {\n System.out.println(\"\\t\\t\\t<<=======================================================>>\");\n System.out.println(\"\\t\\t\\t\\tHere's Your Addition of Mutli_Dimentional Matrix::\");\n for (int i = 0; i < array.length; i++) {\n for (int j = 0; j < second_array.length; j++) {\n System.out.print(array[i][j] + second_array[i][j] + \" \");\n }\n System.out.println();\n }\n }",
"public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }",
"public static int[][] add(int[][] x,int[][] y){\n int[][] result = new int[x.length][x.length];\n for (int i = 0; i < x.length; i++) {\n for (int j = 0; j < x.length; j++) {\n result[i][j] = x[i][j] + y[i][j];\n }\n }\n return result;\n }",
"public void add(ConfusionMatrix other){\n\t\t\n\t\t//the confusion matrix must be of same dimesions\n\t\tif(other.size() != this.size()){\n\t\t\tthrow new IllegalArgumentException(\"cannot add confusino matrix's together. The other confusion matrix is of different dimensions\");\n\t\t}\n\t\t\n\t\t//make sure the labels match\n\t\tfor(int i = 0; i < this.size(); i++){\n\t\t\tLabel lable = this.labels.get(i);\n\t\t\tLabel otherLabel = other.labels.get(i);\n\t\t\t\n\t\t\tif(!lable.equals(otherLabel)){\n\t\t\t\tthrow new IllegalArgumentException(\"cannot add confusino matrix's together. The other confusion matrix has different labels\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t//iterate the labels and add the cells\n\t\tfor(Label row : this.labels){\n\t\t\tfor(Label col : this.labels){\n\t\t\t\tint rowIx = resolveIndex(row);\n\t\t\t\tint colIx = resolveIndex(col);\n\n\t\t\t\tInteger cell = matrix.get(rowIx).get(colIx);\n\t\t\t\tInteger otherCell = other.matrix.get(rowIx).get(colIx);\n\t\t\t\t\n\t\t\t\tInteger newValue = cell+otherCell;\n\t\t\t\tmatrix.get(rowIx).set(colIx, newValue);\n\t\t\t}\t\n\t\t}//end iterate labels\n\t\t\t\n\t}",
"public org.apache.spark.mllib.linalg.distributed.BlockMatrix add (org.apache.spark.mllib.linalg.distributed.BlockMatrix other) { throw new RuntimeException(); }",
"public static double[][] multiplyMatrices(double[][] firstMatrix, double[][] secondMatrix, int r1, int c1, int c2) {\r\n\t double[][] product = new double[r1][c2];\r\n\t for(int i = 0; i < r1; i++) {\r\n\t for (int j = 0; j < c2; j++) {\r\n\t for (int k = 0; k < c1; k++) {\r\n\t product[i][j] += firstMatrix[i][k] * secondMatrix[k][j];\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t return product;\r\n\t }",
"public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t for (int i = 0; i < matrix1row; i++) {//outer loop refers to row position\r\n\t\t for (int j = 0; j < matrix2column; j++) {//refers to column position\r\n\t\t for (int k = 0; k < matrix1column; k++) {\r\n\t\t \t //adds the products of row*column elements until the row/column is complete\r\n\t\t \t //updates to next row/column\r\n\t\t matrix3[i][j] = matrix3[i][j] + matrix1[i][k] * matrix2[k][j];\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t print(matrix3);\r\n\t\t }",
"public static Matrix multiply(Matrix mat1, Matrix mat2) throws Exception {\n double[][] temp = new double[mat1.rows][mat2.cols];\n try {\n if(mat1.cols == mat2.rows){\n for(int col = 0; col < mat2.cols; col++) {\n for (int row = 0; row < mat1.rows; row++) {\n for (int rowin = 0; rowin < mat2.rows; rowin++) {\n for (int colin = 0; colin < mat1.cols; colin++) {\n temp[row][col] += mat1.arr[row][colin] * mat2.arr[rowin][col];\n }\n }\n }\n }\n }\n\n }catch (Exception e){\n e.printStackTrace();\n throw new Exception(\"Matrices are the wrong size: \" +\n mat1 +\n \" and \" +\n mat2 +\n \" and temp \" +\n Arrays.toString(temp));\n }\n return new Matrix(mat1.rows, mat2.cols, temp);\n }",
"public static <T extends Vector> T Add(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] + b.axis[i];\n }\n return result;\n }\n return result;\n }",
"public int[][] sum(int[][] A, int[][] B, int x1, int y1, int x2, int y2, int n)\n {\n\t // create return matrix\n\t int[][] matrix = initMatrix(n);\n\t \n\t // populate the return matrix by adding together the elements of the two given arrays.\n\t for (int i = 0; i<n; i++) {\n\t\t for (int j = 0; j<n; j++) {\n\t\t\t matrix[i][j] = A[x1+i][y1+j] + B[x2+i][y2+j];\n\t\t }\n\t }\n\t \n\t // return the matrix\n\t return matrix;\n }",
"Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }",
"public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }",
"public static BigFraction[][] add(BigFraction[][] A, BigFraction[][] B) {\n int m = A.length;\n int n = A[0].length;\n BigFraction[][] C = new BigFraction[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n C[i][j] = A[i][j].add(B[i][j]);\n return C;\n }",
"public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);",
"public Matrix multiply(Matrix other) {\n if (this.cols != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, other.cols); //Matrix full of zeros\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < other.cols; j++) {\n for (int k = 0; k < this.cols; k++) {\n result.data[i][j] += (this.data[i][k] * other.data[k][j]);\n }\n }\n }\n\n return result;\n }",
"public static double[] vectorAddition(double[] a, double[] b) {\r\n\t\tdouble[] retval = new double[a.length];\r\n\t\tfor(int i = 0; i < a.length; i += 1) {\r\n\t\t\tretval[i] = a[i] + b[i];\r\n\t\t}\r\n\t\treturn retval;\r\n\t}",
"void addRows(int row1, int row2, int k)\r\n {\n \r\n int tmp[] = new int[cols];\r\n \r\n for(int j=0; j<cols; j++)\r\n tmp[j] = k*(matrix[row2][j]);\r\n \r\n for(int j=0; j<cols; j++)\r\n matrix[row1][j]+=tmp[j];\r\n \r\n \r\n }",
"public static BigFraction[] vectorAddition(BigFraction[] a, BigFraction[] b) {\n a = a.clone();\n b = b.clone();\n if (a.length != b.length) throw new RuntimeException(\"Illegal vector dimensions.\");\n for (int i = 0; i < a.length; i++) {\n a[i] = a[i].add(b[i]);\n }\n return a;\n }",
"public static void addVectors( double[] v1, double[] v2, double[] result ) {\n result[0] = v1[0]+v2[0];\n result[1] = v1[1]+v2[1];\n result[2] = v1[2]+v2[2];\n }",
"public static Matrix multiply(Matrix first, Matrix second) {\n \n Matrix result = new Matrix(first.getRows(), first.getClumns());\n \n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] * second.matrix[row][col];\n }\n }\n \n return result;\n }",
"public static void testMulRecStrassen() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.strassen(m1, m2);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }",
"private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }",
"private RealMatrix scalarMultiplication(RealMatrix matrix1, RealMatrix matrix2) {\n\t\tdouble a = matrix1.getEntry(0, 0);\n\t\tdouble b = matrix1.getEntry(1, 0);\n\t\tdouble c = matrix1.getEntry(2, 0);\n\t\tdouble d = matrix1.getEntry(3, 0);\n\t\t\n\t\tdouble[][] result = new double[matrix2.getRowDimension()][matrix2.getColumnDimension()];\n\t\t\n\t\tfor (int i=0; i < matrix2.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < matrix2.getColumnDimension(); j++) {\n\t\t\t\tif (i == 0) result[i][j] = a * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 1) result[i][j] = b * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 2) result[i][j] = c * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 3) result[i][j] = d * matrix2.getEntry(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MatrixUtils.createRealMatrix(result);\n\t}",
"public static double[][] multiplyMatrixes( double[][] m1, double[][] m2 ) {\n double[][] result = new double[3][3];\n multiplyMatrixes( m1, m2, result );\n return result;\n }",
"public void add(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] += skalar;\r\n }\r\n }\r\n }",
"public void multiplyOtherMatrixToEnd(Matrix other){\n Matrix output = Matrix(other.rows, columns);\n for (int a = 0; a < other.rows; a++)\n {\n for (int b = 0; b < columns; b++)\n {\n for (int k = 0; k < other.columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }",
"public RealMatrix add(SparseRealMatrix m) throws IllegalArgumentException {\n\n // safety check\n checkAdditionCompatible(m);\n\n final RealMatrix out = new SparseRealMatrix(this);\n for (OpenIntToDoubleHashMap.Iterator iterator = m.entries.iterator(); iterator.hasNext();) {\n iterator.advance();\n final int row = iterator.key() / columnDimension;\n final int col = iterator.key() - row * columnDimension;\n out.setEntry(row, col, getEntry(row, col) + iterator.value());\n }\n\n return out;\n\n }",
"public static Matrix rowAddE(int row1, int row2, ComplexNumber weight, \n\t\t\t\t\t\t\t\t int m) {\n\t\treturn identity(m).rowAdd(row1, row2, weight);\n\t}",
"public Matrix add(double a) {\n\t\tMatrix m = new Matrix(this.rows, this.columns);\n\t\tfor (int r = 0; r < rows; r++) {\n\t\t\tfor (int c = 0; c < columns; c++) {\n\t\t\t\tm.matrix[r][c] = this.matrix[r][c] + a;\n\t\t\t}\n\t\t}\n\t\treturn m;\n\t}",
"public static double [] combineArray(double []num1, double []num2){\n\t\t\n\t\t double []sum=new double[num1.length + num2.length];\n\n\t\t for (int i=0; i<num1.length; i++){\n\t\t sum[i]+=num1[i];\n\t\t }\n\t\t for (int i=0; i<num2.length; i++){\n\t\t \tsum[i+num1.length]+=num2[i];\n\t\t }\n\t\t\treturn sum;\n\t}",
"private static @NotNull Matrix mergeMatrices(\n @NotNull Matrix matrC11, @NotNull Matrix matrC12, @NotNull Matrix matrC21, @NotNull Matrix matrC22) {\n\n assert matrC11.getRowCount() == matrC11.getColumnCount();\n assert (matrC11.getRowCount() == matrC12.getRowCount())\n && (matrC21.getRowCount() == matrC22.getRowCount())\n && (matrC11.getRowCount() == matrC22.getRowCount());\n assert (matrC11.getColumnCount() == matrC12.getColumnCount())\n && (matrC21.getColumnCount() == matrC22.getColumnCount())\n && (matrC11.getColumnCount() == matrC22.getColumnCount());\n\n final int halfRows = matrC11.getRowCount();\n final int halfCols = matrC11.getColumnCount();\n\n int[][] matrixData = new int[halfRows * 2][halfCols * 2];\n\n // Merging top part, C11 and C12\n for (int i = 0; i < halfRows; i++) {\n int[] row11 = matrC11.getRow(i);\n System.arraycopy(row11, 0, matrixData[i], 0, row11.length);\n int[] row12 = matrC12.getRow(i);\n System.arraycopy(row12, 0, matrixData[i], row11.length, row12.length);\n }\n\n // Merging bottom part, C21 and C22\n for (int i = 0; i < halfRows; i++) {\n int[] row21 = matrC21.getRow(i);\n System.arraycopy(row21, 0, matrixData[halfRows + i], 0, row21.length);\n int[] row22 = matrC22.getRow(i);\n System.arraycopy(row22, 0, matrixData[halfRows + i], row21.length, row22.length);\n }\n\n return Matrix.fromArray(matrixData);\n\n }",
"private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }",
"public SparseMatrix add(SparseMatrix m, double d) {\n\t\t// Keep function invariants true\n\t\tassert m.rank == rank : \"Unmatching matrix size for matrix addition!\";\n\n\t\t// Create data structure for storing the addition result\n\t\tSparseMatrix sum = new SparseMatrix(rank);\n\n\t\t// Iteratively add two matrixes' (this matrix and matrix m) corresponding values into the sum\n\t\tfor(int i=0; i<rank; i++) {\n\t\t\tfor(int j=0; j<rank; j++) {\n\t\t\t\tsum.matrixSetter(i, j, retrieveElement(i,j) + (m.retrieveElement(i, j)*d));\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}",
"public static void main(String[] args) {\n\t\tint[][] a = {{1,2}, {5,3}};\n\t\tint[][] b = {{3,2}, {4,5}};\n\t\tint[][] c = {{1,2}, {4,3}};\n\t\tint[][] d = {{1,2,3}, {4, 5, 6}};\n\t\tint[][] e = {{1, 4}, {2, 5}, {3,6}};\n\n\n\t\t//create new matrices using multidimensional arrays to get a size\n\t\tMatrix m = new Matrix(a);\n\t\tMatrix m2 = new Matrix(b);\n\t\tMatrix m3 = new Matrix(c);\n\t\tMatrix m4 = new Matrix(d);\n\t\tMatrix m5 = new Matrix(e);\n\n\n\n\t\t//Example of matrix addition\n\t\tSystem.out.println(\"Example of Matrix addition using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nSUM:\");\n\t\tSystem.out.println(m.add(m2));\n\t\t\n\t\t//Example of matrix subtraction\n\t\tSystem.out.println(\"Example of Matrix subtraction using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nDIFFERENCE:\");\n\t\tSystem.out.println(m.subt(m2));\n\n\t\t//Example of matrix multiplication\n\t\tSystem.out.println(\"Example of Matrix multiplication using the following matrices:\");\n\t\tSystem.out.println(m3.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nPRODUCT:\");\n\t\tSystem.out.println(m2.mult(m3));\n\t\t\n\t\t//Example of scalar multiplication\n\t\tSystem.out.println(\"Example of scalar multiplication using the following matrices with a scalar value of 2:\");\n\t\tSystem.out.println(m3.toString() + \"\\nSCALAR PRODUCT:\");\n\t\tSystem.out.println(m3.scalarMult(2));\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m.transpose());\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m4.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m4.transpose());\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"Example of equality using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m.equality(m));\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"\\nExample of equality using the following matrices:\");\n\t\tSystem.out.println(m4.toString());\n\t\tSystem.out.println(m5.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m4.equality(m5));\n\n\t}",
"public static JTensor addcmul(JTensor t, JType a, JTensor s1, JTensor s2) {\n JTensor r = new JTensor();\n TH.THTensor_(addcmul)(r, t, a, s1, s2);\n return r;\n }",
"public static void main(String[] args) {\n\t\tint row, col;\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter number of rows for matrix: \");\n\t\trow = s.nextInt();\n\t\tSystem.out.println(\"Enter number of columns for matrix: \");\n\t\tcol = s.nextInt();\n\t\tint[][] mat1 = new int[row][col];\n\t\tSystem.out.println(\"Enter the elements\");\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\t\t\t\tSystem.out.println(\"Enter [\" + i + \"][\" + j + \"] : \");\n\t\t\t\tmat1[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] mat2 = new int[row][col];\n\t\tSystem.out.println(\"Enter the elements\");\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\t\t\t\tSystem.out.println(\"Enter [\" + i + \"][\" + j + \"] : \");\n\t\t\t\tmat2[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] res = new int[row][col];\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\t\t\t\tres[i][j] = mat1[i][j] + mat2[i][j];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The result of matrix addition is\");\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\t\t\t\tSystem.out.print(res[i][j]+ \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}",
"public SMat add(SMat arg0) {\n\n\t\t// cast given matrix\n\t\tUSB2Mat arg = (USB2Mat) arg0;\n\n\t\t// check for dimensions\n\t\tif (rowCount() != arg.rowCount() || columnCount() != arg.columnCount())\n\t\t\texceptionHandler(\"Matrix dimensions don't agree!\");\n\n\t\t// check half bandwidths\n\t\tif (getHalfBandwidth() < arg.getHalfBandwidth())\n\t\t\texceptionHandler(\"Matrix bandwidths don't agree!\");\n\n\t\t// add\n\t\tfor (int i = 0; i < rowCount(); i++)\n\t\t\tfor (int j = 0; j < columnCount(); j++)\n\t\t\t\tadd(i, j, arg.get(i, j));\n\t\treturn this;\n\t}",
"@Override\r\n\t@operator(value = IKeyword.APPEND_VERTICALLY,\r\n\t\tcontent_type = ITypeProvider.BOTH,\r\n\t\tcategory = { IOperatorCategory.MATRIX })\r\n\tpublic IMatrix opAppendVertically(final IScope scope, final IMatrix b) {\r\n\t\tif ( this instanceof GamaIntMatrix && b instanceof GamaIntMatrix ) { return ((GamaIntMatrix) this)\r\n\t\t\t._opAppendVertically(scope, b); }\r\n\t\tif ( this instanceof GamaFloatMatrix && b instanceof GamaFloatMatrix ) { return ((GamaFloatMatrix) this)\r\n\t\t\t._opAppendVertically(scope, b); }\r\n\t\tif ( this instanceof GamaIntMatrix && b instanceof GamaFloatMatrix ) { return new GamaFloatMatrix(\r\n\t\t\t((GamaIntMatrix) this).getRealMatrix())._opAppendVertically(scope, b); }\r\n\t\tif ( this instanceof GamaFloatMatrix && b instanceof GamaIntMatrix ) { return ((GamaFloatMatrix) this)\r\n\t\t\t._opAppendVertically(scope, new GamaFloatMatrix(((GamaIntMatrix) b).getRealMatrix())); }\r\n\t\tif ( this instanceof GamaObjectMatrix && b instanceof GamaObjectMatrix ) { return ((GamaObjectMatrix) this)\r\n\t\t\t._opAppendVertically(scope, b); }\r\n\t\t/*\r\n\t\t * Object[] ma = this.getMatrix();\r\n\t\t * Object[] mb = b.getMatrix();\r\n\t\t * Object[] mab = ArrayUtils.addAll(ma, mb);\r\n\t\t * \r\n\t\t * GamaObjectMatrix fl = new GamaObjectMatrix(a.getCols(scope), a.getRows(scope) + b.getRows(scope), mab);\r\n\t\t */\r\n\t\t// throw GamaRuntimeException.error(\"ATTENTION : Matrix additions not implemented. Returns nil for the moment\");\r\n\t\treturn this;\r\n\t}",
"@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}",
"public byte[][] multiplyMatricesFiniteField(byte[][] m1, byte[][] m2) {\n\n byte[][] result = new byte[m1.length][m2[0].length];\n\n int rows = m1.length;\n int cols = m2[0].length;\n\n for(int i = 0; i < rows; i++) {\n int sum = 0;\n for(int j = 0; j < cols; j++) {\n for(int k = 0; k < 4; k++) {\n sum ^= multiplyPolynomialsMod(m1[i][k],m2[k][j], reductionPolynomial);\n }\n result[i][j] = (byte)sum;\n }\n }\n\n return result;\n }",
"public T concatRows( SimpleBase... matrices ) {\n convertType.specify0(this, matrices);\n T A = convertType.convert(this);\n\n int numCols = A.numCols();\n int numRows = A.numRows();\n for (int i = 0; i < matrices.length; i++) {\n numRows += matrices[i].numRows();\n numCols = Math.max(numCols, matrices[i].numCols());\n }\n\n SimpleMatrix combined = SimpleMatrix.wrap(convertType.commonType.create(numRows, numCols));\n\n A.ops.extract(A.mat, 0, A.numRows(), 0, A.numCols(), combined.mat, 0, 0);\n int row = A.numRows();\n for (int i = 0; i < matrices.length; i++) {\n Matrix m = convertType.convert(matrices[i]).mat;\n int cols = m.getNumCols();\n int rows = m.getNumRows();\n A.ops.extract(m, 0, rows, 0, cols, combined.mat, row, 0);\n row += rows;\n }\n\n return (T)combined;\n }",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.columnCount != B.rowCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.rowCount, B.columnCount);\n for (int i = 0; i < C.rowCount; i++)\n for (int j = 0; j < C.columnCount; j++)\n for (int k = 0; k < A.columnCount; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"public void add()\r\n {\r\n resultDoubles = Operations.addition(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"public interface MatrixSummator {\n /**\n * Sums matrices\n * @param mtx1 first matrix\n * @param mtx2 second matrix\n * @throws ServiceException if matrices have different sizes\n */\n Matrix sum(Matrix mtx1, Matrix mtx2) throws ServiceException;\n}",
"public static int[][] matrixMultiply(int[][] matA, int[][] matB)\n {\n if(isRect(matA)== false || isRect(matB)== false || matA[0].length != matB.length)\n {\n System.out.println(\"You cant not multiply these matrices\");\n int[][] matC = {{}};\n return matC;\n }\n else\n {\n int[][] matC = new int[matA.length][matB[0].length];\n for(int i = 0; i < matA.length; i++)\n for(int j = 0; j < matB[0].length; j++)\n for(int k = 0; k < matA[0].length; k++)\n {\n matC[i][j] += matA[i][k] * matB[k][j];\n }\n return matC;\n }\n }",
"public Matrix multiply(Matrix m2)\n\t{\n\t\tMatrix result = new Matrix(new double[matrix.length][matrix[0].length]);\n\t\tfor(int i = 0; i < matrix.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < matrix.length; j++)\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < matrix.length; k++)\n\t\t\t\t{\n\t\t\t\t\tresult.matrix[i][j] = result.matrix[i][j] + matrix[i][k] * m2.matrix[k][j];\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn result;\n\t}",
"public T plus( double beta, T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n\n T ret = A.createLike();\n A.ops.plus(A.mat, beta, B.mat, ret.mat);\n return ret;\n }",
"@Override\n\tpublic double add(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public void pushMatrix()\n\t{\n\t\tmats.push( new Matrix4f( mat ) );\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint row,column;\r\n\t\tSystem.out.println(\"Enter the number of rows\");\r\n\t\trow=sc.nextInt();\r\n\t\tSystem.out.println(\"Enter the number of columns\");\r\n\t\tcolumn=sc.nextInt();\r\n\t\tint[][] arr1=new int[row][column];\r\n\t\tint[][] arr2=new int[row][column];\r\n\t\tint[][] arr3=new int[row][column];\r\n\t\tSystem.out.println(\"Enter the elements of 1st matrix\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tarr1[i][j]=sc.nextInt();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the elements of 2nd matrix\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tarr2[i][j]=sc.nextInt();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t\tSystem.out.println(\"The Addition of above 2 matrix is:\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tarr3[i][j]=arr1[i][j]+arr2[i][j];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\t\t//System.out.println(\"The Addition of above 2 matrix is:\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(arr3[i][j]+\" \");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\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\tsc.close();\r\n\t}",
"public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.n != B.m) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.m, B.n);\n for (int i = 0; i < C.m; i++)\n for (int j = 0; j < C.n; j++)\n for (int k = 0; k < A.n; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }",
"Matrix dot(Matrix m){\n if(this.cols != m.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n double[][] tmp_this = this.asArray();\n double[][] tmp_m = m.asArray();\n Matrix matrix_to_return = new Matrix(this.rows, m.cols);\n for(int i=0; i<matrix_to_return.rows; i++){\n for(int j=0; j<matrix_to_return.cols; j++){\n for(int k=0; k<matrix_to_return.rows; k++)\n matrix_to_return.data[i*this.cols + j] += tmp_this[i][k] * tmp_m[k][j];\n }\n }\n return matrix_to_return;\n }",
"public void add(vec3 a, vec3 b) {\r\n\t\tx = a.x + b.x;\r\n\t\ty = a.y + b.y;\r\n\t\tz = a.z + b.z;\r\n\t}",
"public void linear_regression(double w_sum, DMatrixRMaj a, DMatrixRMaj b, DMatrixRMaj x_wsum, DMatrixRMaj y_wsum,\n DMatrixRMaj xy_wsum, DMatrixRMaj xx_wsum, DMatrixRMaj ret, int ret_y, int ret_x) {\n\n\n // 0,0 item\n m1.set(0,0,w_sum);\n\n // 0,1; 1,0 item\n elementMult(a,x_wsum,lin_reg_buf_b_1);\n //elementSum(lin_reg_buf_b_1);\n m1.set(0,1, elementSum(lin_reg_buf_b_1) );\n m1.set( 1,0, elementSum(lin_reg_buf_b_1) );\n\n // 1,1 item\n\n transpose(a,lin_reg_buf_1_b);\n mult(a,lin_reg_buf_1_b,lin_reg_buf_b_b);\n elementMult(lin_reg_buf_b_b,xx_wsum);\n m1.set(1,1,elementSum(lin_reg_buf_b_b) );\n\n // Step2 - calculate m2 matrix\n\n // 0,0 item\n elementMult(b,y_wsum,lin_reg_buf_b_1);\n m2.set(0,0,elementSum(lin_reg_buf_b_1));\n\n // 1,0 item\n transpose(b,lin_reg_buf_1_b);\n mult(a,lin_reg_buf_1_b,lin_reg_buf_b_b);\n elementMult(lin_reg_buf_b_b,xy_wsum);\n m2.set( 1,0, elementSum(lin_reg_buf_b_b) );\n\n // Step 3 - calculate b and intercept\n\n invert(m1);\n\n DMatrixRMaj ret2 = new DMatrixRMaj(2,1);\n //DMatrixRMaj ret3 = new DMatrixRMaj()\n mult(m1,m2,ret2);\n\n // Insert numbers into provided return position\n transpose(ret2);\n insert(ret2,ret,ret_y,ret_x);\n }",
"Matrix( Vector a, Vector b )\n {\n x = b.times(a.x);\n y = b.times(a.y);\n z = b.times(a.z);\n }",
"public void rightMultiply(Matrix other){\n \tdouble[][] temp = new double[4][4];\n\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n \t\t array[i][j] += other.array[i][k] * temp[k][j];\n\t\t}\n\t }\n\t}\n }",
"public Matrix multiplyOtherMatrixToFront(Matrix other) {\n Matrix output = Matrix(rows, other.columns);\n for (int a = 0; a < rows; a++)\n {\n for (int b = 0; b < other.columns; b++)\n {\n for (int k = 0; k < columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }"
]
| [
"0.7849462",
"0.76766723",
"0.74303293",
"0.7394096",
"0.7362798",
"0.7353918",
"0.7311268",
"0.7245026",
"0.7206089",
"0.72041994",
"0.70857084",
"0.70105696",
"0.6885614",
"0.68851733",
"0.6836696",
"0.6803839",
"0.677767",
"0.67129225",
"0.66630065",
"0.6651936",
"0.6629468",
"0.65755296",
"0.65329885",
"0.6484983",
"0.6430375",
"0.6406531",
"0.6350793",
"0.63371813",
"0.6253414",
"0.62531334",
"0.6231598",
"0.62139744",
"0.619991",
"0.6188486",
"0.618168",
"0.6174824",
"0.6110899",
"0.60997427",
"0.6075622",
"0.60599816",
"0.6008776",
"0.5998627",
"0.5994628",
"0.5989572",
"0.5952268",
"0.5949945",
"0.5928795",
"0.5921202",
"0.574699",
"0.56916386",
"0.56881565",
"0.5662876",
"0.5652724",
"0.56506413",
"0.5635679",
"0.5586222",
"0.5554859",
"0.55132556",
"0.5507279",
"0.54933226",
"0.5464018",
"0.5454339",
"0.54534143",
"0.54114765",
"0.54114765",
"0.54051197",
"0.54022604",
"0.5391389",
"0.53652155",
"0.53613234",
"0.53346956",
"0.5314672",
"0.52928615",
"0.5288442",
"0.52879375",
"0.52858305",
"0.5281265",
"0.52761596",
"0.5273989",
"0.5270747",
"0.5266482",
"0.52579635",
"0.52286595",
"0.52218056",
"0.52216256",
"0.5215808",
"0.52057666",
"0.5203063",
"0.51952624",
"0.5187079",
"0.5182996",
"0.51536435",
"0.5122306",
"0.51192415",
"0.5118713",
"0.51178485",
"0.5117016",
"0.5115317",
"0.5112303",
"0.5109514"
]
| 0.62124425 | 32 |
Ideally would not be public, but needed something to test | public int generateNumber(int difficulty) {
Random generator = new Random();
return 1 + generator.nextInt((int) Math.pow(10, difficulty));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private stendhal() {\n\t}",
"private void test() {\n\n\t}",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private test5() {\r\n\t\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"private Util() { }",
"abstract int pregnancy();",
"private ProtomakEngineTestHelper() {\r\n\t}",
"public void method_4270() {}",
"public void smell() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"Reproducible newInstance();",
"@Test\n public void publicInstanceTest() {\n // TODO: test publicInstance\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"public void testGetInsDyn() {\n }",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Mocks() { }",
"boolean internal();",
"public abstract void mo70713b();",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"@Test public void singletonResolutionInFunctions() {\n fail( \"Not yet implemented\" );\n }",
"@Override\n public void test() {\n \n }",
"private JacobUtils() {}",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"private void m50366E() {\n }",
"private boolean isInternal(String name) {\n return name.startsWith(\"java.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"com.sun.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"oracle.\");\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"boolean isInternal();",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Test\n public void testDAM30203001() {\n testDAM30102001();\n }",
"@Test\n public void testGetProductInfo() throws Exception {\n }",
"@Test\n public void testGetOnlinePosition() {\n assert false : \"testGetOnlinePosition not implemented.\";\n }",
"public abstract String use();",
"zzafe mo29840Y() throws RemoteException;",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"@Test\n public void testDAM30903001() {\n testDAM30802001();\n }",
"@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }",
"public void testSetBasedata() {\n }",
"private FlyWithWings(){\n\t\t\n\t}",
"private OMUtil() { }",
"private BuilderUtils() {}",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"@Test\r\n public void testGetStringRepresentation() {\r\n }",
"public abstract String mo9752q();",
"private Rekenhulp()\n\t{\n\t}",
"private MApi() {}",
"@Test\n\tpublic abstract void testTransform4();",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"protected OpinionFinding() {/* intentionally empty block */}",
"java.lang.String getHowToUse();",
"java.lang.String getHowToUse();",
"@Test\n\tpublic void getWorksTest() throws Exception {\n\t}",
"@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }",
"@Test\r\n\tpublic void testFrontTimes() {\r\n//\t\tassertEquals(\"ChoCho\", WarmUpTwo.frontTimes)\r\n\t\tfail(\"Not yet implemented\");\r\n\t\t\r\n\t}",
"@Test\n public void testGetNumberAvailable() {\n }",
"public abstract Object mo26777y();",
"@Override\n public int describeContents() { return 0; }",
"public boolean method_2434() {\r\n return false;\r\n }",
"public void checkPublic() {\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 }",
"void mo57277b();",
"public final void mo51373a() {\n }",
"public boolean method_2453() {\r\n return false;\r\n }",
"public void testGetBasedata() {\n }",
"@Test\n public void testGetOwner() {\n \n }",
"public static void dummyTest(){}",
"public static void dummyTest(){}",
"@Test\n public void testDAM30402001() {\n testDAM30101001();\n }",
"protected TestBench() {}",
"public abstract void mo6549b();",
"private void kk12() {\n\n\t}",
"@Test\n public void testDAM30601001() {\n testDAM30102001();\n }",
"void testCanGetList();",
"public abstract String mo13682d();",
"protected void mo6255a() {\n }",
"public void testCheckOxyEmpty() {\n }",
"@Test\r\n\tpublic void contents() throws Exception {\n\t}",
"private Inspect() {\n }",
"public void mo21877s() {\n }",
"public void mo38117a() {\n }",
"public abstract void mo30696a();",
"public abstract void mo27386d();",
"private Mth()\n\t{\n\t\tthrow new AssertionError();\n\t}",
"private CanonizeSource() {}",
"@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}",
"public abstract String mo41079d();",
"protected boolean func_70041_e_() { return false; }",
"public boolean method_4088() {\n return false;\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}"
]
| [
"0.6049149",
"0.6009396",
"0.59659666",
"0.5863901",
"0.5863901",
"0.5793543",
"0.57544214",
"0.570624",
"0.56881",
"0.5655897",
"0.56352854",
"0.55726075",
"0.5525435",
"0.5498976",
"0.5480937",
"0.54606706",
"0.545835",
"0.545749",
"0.54524326",
"0.54524326",
"0.54524326",
"0.54524326",
"0.5448657",
"0.541318",
"0.5410424",
"0.5401627",
"0.539965",
"0.5397957",
"0.5397285",
"0.5393426",
"0.5375853",
"0.5373767",
"0.5371794",
"0.5366356",
"0.5362104",
"0.5355619",
"0.5351922",
"0.53496027",
"0.5342746",
"0.53406507",
"0.53375006",
"0.5333193",
"0.5331676",
"0.5328851",
"0.532516",
"0.532211",
"0.5319907",
"0.531633",
"0.53086674",
"0.5306185",
"0.5305724",
"0.5305292",
"0.5304429",
"0.53017116",
"0.52973837",
"0.5295559",
"0.5295559",
"0.5287315",
"0.52832896",
"0.5278805",
"0.5276905",
"0.5272729",
"0.5270456",
"0.5269867",
"0.5263648",
"0.5258125",
"0.5258125",
"0.5258125",
"0.5258125",
"0.5258125",
"0.5258125",
"0.5258125",
"0.5257929",
"0.52564394",
"0.5255243",
"0.5253505",
"0.5251",
"0.5249347",
"0.5249347",
"0.52437943",
"0.5242424",
"0.5237792",
"0.52351224",
"0.52313673",
"0.52301985",
"0.52278155",
"0.5224508",
"0.5221547",
"0.5217638",
"0.5207043",
"0.52035373",
"0.52030927",
"0.52029395",
"0.52001315",
"0.51994556",
"0.5197566",
"0.51971847",
"0.51966864",
"0.5191778",
"0.5190467",
"0.5190259"
]
| 0.0 | -1 |
Searches for 'Animal Shelters' near me | @Override
public void onClick(View view) {
Uri gmmIntentUri = Uri.parse("geo:0, 0?q=Animal+Shelter+near+me");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void searchAnimalByName() {\n\t\tshowMessage(\"type in the animal's name: \\n\");\n\t\t\n\t\tString name = getUserTextTyped();\n\t\tToScreen.listAnimal(AnimalSearch.byName(name), true);\n\t\t\n\t\t//condition to do another search by name or go back to the main menu\n\t\t//if the user decide for doing another search the method is called again, otherwise it will go back to the main menu\n\t\tint tryAgain = askForGoMainMenu(\"Would you like to search for another name or go back to main menu?\\n Type 1 to search someone else \\n Type 0 to go to menu. \\n Choice: \");\n\t\tif(tryAgain == 1){\n\t\t\tsearchAnimalByName();\n\t\t} else {\n\t\t\tmain();\n\t\t}\n\t\t\n\t}",
"@In String search();",
"abstract public void search();",
"List<Map<String, Object>> searchIngredient(String name);",
"public abstract int search(String[] words, String wordToFind) throws ItemNotFoundException;",
"public abstract List<Direction> searchForCheese(Maze maze);",
"void search();",
"void search();",
"List<Cloth> findByNameContaining(String name);",
"public static void findName(String searchedWord, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getName().contains(searchedWord)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }",
"public Animal findAnimalZoo(String species) {\n for (int i = 0; i < numRegions; i++) {\n Animal[] temp = regionList[i].getRegionAnimals(); //regionList[i].getAnimalList(); @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ NO GETANIMALIST METHOD YET@@@@@@@@@@@@@@@@@@@@@@@@@\n for (int j = 0; j < regionList[i].getRegionSpec().getNumAnimals(); j++) {\n if (temp[j].getSpecies().equals(species)) {\n return temp[i]; \n }\n }\n }\n return null;\n }",
"public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }",
"public void search() {\r\n \t\r\n }",
"public void search() {\n }",
"@Test\n public void findsByKeyword() throws Exception {\n final Base base = new DyBase(\n this.dynamo.region(), new MkSttc().counters().get(\"ttt\")\n );\n final Book book = base.books().add(\n \"@book{best2014, author=\\\"Walter\\\"}\"\n );\n final Quotes quotes = base.quotes();\n quotes.add(\n book, \"never give up and never think about bad things, Bobby\",\n \"99-101, 256-257, 315\"\n );\n MatcherAssert.assertThat(\n quotes.refine(\"bobby\").iterate(),\n Matchers.<Quote>iterableWithSize(1)\n );\n MatcherAssert.assertThat(\n quotes.refine(\"another-something\").iterate(),\n Matchers.<Quote>iterableWithSize(0)\n );\n }",
"public MagicSearch createMagicSearch();",
"List<Dish> getDishesWhichContains(String subStr);",
"@Override\n public List<KBHandle> searchItems(KnowledgeBase aKB, String aQuery)\n {\n return disambiguate(aKB, null, ConceptFeatureValueType.ANY_OBJECT, aQuery, null, 0, null);\n }",
"public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);",
"public void search( final String haystack ) {\n search( mNeedle, haystack );\n }",
"public List<Ve> searchVe(String maSearch);",
"@Override\n\tpublic void search() {\n\t}",
"List<PilotContainer> Search(String cas, String word);",
"private void search(String[] searchItem)\n {\n }",
"public abstract HashMap search(String keyword);",
"ResultSet searchHabitat(String habitat) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon AS P, Habitats AS H \"\n \t\t\t+ \"WHERE H.HabitatID = P.HabitatID \"\n \t\t\t+ \"AND H.Name = \" + \"'\" + habitat + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }",
"public Artist[] getAllArtistsMatchingQuery(String query) {\n List<Artist> results = new ArrayList<>();\n for(Artist Artist: getArtistList()){\n if(Artist.getName().toLowerCase().contains(query.toLowerCase())){\n results.add(Artist);\n }\n }\n return results.toArray(new Artist[results.size()]);\n }",
"@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}",
"@Override\r\n\tpublic void search() {\n\r\n\t}",
"private void searchFunction() {\n\t\t\r\n\t}",
"List<Cemetery> search(String query);",
"@Override\r\n\tpublic List<BIrd> searchByName(String birdName) throws Exception {\n\t\tList<BIrd> list=new ArrayList<BIrd>();\r\n\t\ttry{\r\n\t\tsession=sessionfactory.openSession();\r\n\t\ttransaction = session.beginTransaction();\r\n\t\tString sql=\"SELECT * FROM tbl_bird WHERE BirdName LIKE '%\"+birdName+\"%'\";\r\n\t\tSQLQuery query=session.createSQLQuery(sql);\r\n\t\tquery.addEntity(BIrd.class);\r\n\t\tlist=query.list();\r\n\t\tSystem.out.println(list.size());\r\n\t\t} catch (Exception e) {\r\n\t\t\ttransaction.rollback();\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tsession.close();\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"List<Corretor> search(String query);",
"@Override\n public void onSearchConfirmed(CharSequence text) {\n searchForFoods(text);\n }",
"public abstract S getSearch();",
"@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}",
"public ArrayList<ParsedRestaurant> searchText(String location){\r\n\t\ttypeSearch = \"/textsearch\";\r\n\t\tHttpURLConnection conn = null;\r\n\t\tStringBuilder jsonResults = new StringBuilder();\r\n\t\tlocation = location.replaceAll(\" \", \"+\");\r\n//\t\tlocation.replace('õ', 'ä');\r\n//\t\tlocation.replace('Õ', 'å');\r\n//\t\tlocation.replace('÷', 'ö');\r\n\t\tLogger.info(\"Searching for restaurants in location: \"+location);\r\n\t\ttry{\r\n\t\t\tStringBuilder request = new StringBuilder(PLACES_API_SOURCE);\r\n\t\t\trequest.append(typeSearch);\r\n\t\t\trequest.append(JSON_OUT);\r\n\t\t\trequest.append(\"?query=restaurants+in+\");\r\n\t\t\t//FIXME : POSSIBLE FIX OF ENCODING ,, it didn't\r\n//\t\t\trequest.append(URLEncoder.encode(location, \"UTF-8\"));\r\n\t\t\trequest.append(location);\r\n\t\t\t//+\"+Stockholm\");//TODO use this to search in sthlm vicinity\r\n\t\t\trequest.append(\"&key=\" + KEY);\r\n\r\n//\t\t\tSystem.out.println(\"<Connecting to Google API>\"); //TODO remove: TEST\r\n\t\t\tLogger.info(\"connected to Google API\");\r\n\t\t\tLogger.info(\"Searching using URL: \" + request);\r\n\t\t\tURL url = new URL(request.toString());\r\n//\t\t\tconn.setRequestProperty(\"accepted-charset\", \"UTF-8\");\r\n\t\t\tconn = (HttpURLConnection) url.openConnection();\r\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream(), \"UTF-8\"));\r\n\t\t\tString line = \"\";\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tjsonResults.append(line);\r\n\t\t\t\tLogger.debug(\"Reading line: \" + line);\r\n\t\t\t}\r\n\t\t}catch(MalformedURLException e){\r\n\t\t\tSystem.out.println(\"URL ERROR [search] \");\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.println(\"CONNECTION ERROR [search] \"+ e);\r\n\t\t}finally{\r\n\t\t\tif(conn!=null)\r\n\t\t\t\tconn.disconnect();\r\n\t\t}\r\n\t\tparseResults(jsonResults);\r\n\t\tArrayList<ParsedRestaurant> results = parseResults(jsonResults);\r\n\t\treturn results;\r\n\t}",
"@Test\n\tpublic void testKeywordQuery(){\n\t\t//manager.getResponse(\"american football \"); //match multiple keywords\n//\t\tmanager.getResponse(\"list of Bond 007 movies\");\n//\tmanager.getResponse(\"Disney movies\");\n\t\t//manager.keywordQuery(\"Paul Brown Stadium location\");\n\t\t//manager.keywordQuery(\"0Francesco\");\n System.out.println(\"******* keyword query *******\");\n\t\t//manager.keywordQuery(\"sportspeople in tennis\");\n\t\t//manager.keywordSearch(\"list of movies starring Sean Connery\",ElasticIndex.analyzed,100 );\n//\t\tmanager.keywordSearch(\"movies starring Sean Connery\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"musical movies tony award\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"United states professional sports teams\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"movies academy award nominations\",ElasticIndex.notStemmed,100 );\n System.out.println(SearchResultUtil.toSummary(manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.notLowercased,20 )));\n //manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notAnalyzed,100 );\n //(better than analyzed) manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notStemmed,100 );\n System.out.println(\"*****************************\");\n\n\t\t//manager.keywordQuery(\"Disney movies\");\n\t}",
"public void searchByArtist()\n {\n String input = JOptionPane.showInputDialog(null,\"Enter the artist you'd like to search for:\");\n input = input.replaceAll(\" \", \"_\").toUpperCase(); //standardize output.\n \n Collections.sort(catalog, new ArtistComparator());\n int index = Collections.binarySearch(catalog, \n new Album(input,\"\",null), new ArtistComparator());\n //Since an artist could be listed multiple times, there is *no guarantee*\n //which artist index we find. So, we have to look at the artists\n //left and right of the initial match until we stop matching.\n if(index >= 0)\n {\n Album initial = catalog.get(index);\n String artist = initial.getArtist();\n \n ArrayList<Album> foundAlbums = new ArrayList<>();\n //this ArrayList will have only the albums of our found artist \n foundAlbums.add(initial);\n try { \n int j = index, k = index;\n while(artist.equalsIgnoreCase(catalog.get(j+1).getArtist()))\n {\n foundAlbums.add(catalog.get(j+1));\n j++;\n }\n while(artist.equalsIgnoreCase(catalog.get(k-1).getArtist()))\n {\n foundAlbums.add(catalog.get(k-1));\n k--;\n }\n }\n catch(IndexOutOfBoundsException e) {\n //happens on the last round of the while-loop test expressions\n //don't do anyhting because now we need to print out our albums.\n }\n System.out.print(\"Artist: \" + artist + \"\\nAlbums: \");\n for(Album a : foundAlbums)\n System.out.print(a.getAlbum() + \"\\n\\t\");\n System.out.println();\n }\n else System.err.println(\"Artist '\" + input + \"' not found!\\n\"); \n }",
"@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }",
"public void search(String searchTerm)\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon WHERE name LIKE '%\" + searchTerm + \"%'\");\r\n\t}",
"public static ArrayList<Result> findMatches(Query query, DataManager myVocab){\n\n\t\t//Uncomment this for logging in this class\t\n//\t\tmyLogger.setLevel(Level.INFO); \n\n\t\t// get the term we're going to search for and\n\t\t// take out any leading or trailing whitespaces\n\t\tString querystr = query.getQuery();\n\t\tquerystr = querystr.trim();\n\t\tString uncleaned = querystr;\n\t\t\n\t\t// This is in case of numeric entries. Google Refine doesn't seem\n\t\t// to have int cell types, instead it adds an invisible .0 to all\n\t\t// numbers. This fixes that issue, as it sometimes causes false negatives.\n\t\tif (querystr.endsWith(\".0\")){\n\t\t Pattern p = Pattern.compile(\"[^0-9\\\\.]+\");\n\t\t Matcher m = p.matcher(querystr);\n\t\t boolean result = m.find();\n\t\t if (!result){\n\t\t \t querystr = querystr.substring(0, querystr.length()-2);\n\t\t }\n\t\t}\n\t\t// see if it's in the synonyms map, if it is\n\t\t// replace it with the appropriate term, if it's\n\t\t// not, don't do anything. \n\n\t\tif (myVocab.subMap.get(querystr)!=null){\n\t\t\tquerystr = myVocab.subMap.get(querystr);\n\t\t\tquery.setQuery(querystr);\n\t\t}\n\t\t\n\t\t// Clean up the query string if it isn't case/punctuation sensitive\n\t\tif (!myVocab.capsSensitive()){\t\t\n\t\t\tquerystr = querystr.toLowerCase();\n\t\t}\n\t\tif (! myVocab.punctSensitive()){\t\t\n\t\t\tquerystr = querystr.replaceAll(\"[\\\\W_]\", \"\");\n\t\t}\n\t\t\n\t\t// see if it's in the synonyms map, if it is\n\t\t// replace it with the appropriate term, if it's\n\t\t// not, don't do anything. \n\t\tif(myVocab.subMap.get(querystr)!=null){\n\t\t\tquerystr = myVocab.subMap.get(querystr);\n\t\t\tquery.setQuery(querystr);\n\t\t}\n\n\t\tString type = query.getType();\n\n\t\t// This ArrayList is the results that are going to be returned. \n\t\tArrayList<Result> results = getDirectMatches(myVocab, querystr, uncleaned, type);\n\t\t\n\t\t// If there's a perfect match return it.\n\t\tif (results.size() == 1 && results.get(0).match){\n\t\t\treturn results;\n\t\t}else{\n\t\t\t// Otherwise, add the initial ones and try matching\n\t\t\t// based on distance to vocabulary terms.\n\t\t\tresults.addAll(distanceMatching(query, myVocab));\n\t\t\t\n\t\t\t// Split the original query term by space and non-alphanumeric characters \n\t\t\t// to find how many words there are.\n\t\t\t//querystr = query.getQuery().replaceAll(\"[\\\\W_]\", \" \");\n\t\t\tString [] termList = querystr.split(\" \");\n\t\t\t\n\t\t\t// if there's more than one, run bagOfWords\n\t\t\t// which tries to find a match for each of the words.\n\t\t\tif (termList.length > 1){\n\t\t\t\tresults.addAll(bagOfWords(query, myVocab));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Clean the results: no duplicates\n\t\t// no extra results to return, and sorted\n\t\t// them by score before returning them\n\t\tresults = removeDuplicates(results);\n\t\t\n\t\t// They do not need to be reduced in \n\t\t// number if there are fewer than \n\t\t// the max results.\n\t\t// The pruneResults sorts them\n\t\t// by score already.\n\t\tif(query.getLimit()!=null){\n\t\t\tresults = pruneResults(results,Integer.parseInt(query.getLimit()));\n\t\t}else{\n\t\t\tresults = pruneResults(results,MAX_RESULTS);\n\t\t}\n\t\t\t\n\t\tresults = sortByScore(results);\n\t\tfor (int i = 0; i< results.size(); i++){\n//\t\t\tmyLogger.log(Level.SEVERE,results.get(i).getScore()+ \" is bigger than 100?\");\n\t\t\tif(results.get(i).getScore() > (double)100){\n\t\t\t\tresults.get(i).setScore((double)100 - (results.get(i).getScore()-(double)100));\n//\t\t\t\tmyLogger.log(Level.SEVERE,results.get(i).getScore()+\" is bigger than 100! and was set to \"+\n//\t\t\t\t\t\t((double)100 - (results.get(i).getScore()-(double)100)));\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}",
"@Override\n public List<FoodItem> filterByName(String substring) {\n if (foodItemList == null || foodItemList.size() == 0)\n return foodItemList;\n List<FoodItem> foodCandidate = new ArrayList<>();\n \tfor (FoodItem food : foodItemList) {\n if (food.getName().equals(substring)) {\n foodCandidate.add(food);\n }\n \t}\n return foodCandidate;\n \n }",
"public static void main(String[] args) {\n\t\tString[] words = {\"at\",\"\",\"\",\"\",\"ball\",\"\",\"\",\"\",\"car\",\"\",\"\",\"\"};\n\t\tString searchWord = \"at\";\n\n\t\tsearch(words,searchWord,0,words.length-1);\n\n\t}",
"List<Card> search(String searchString) throws PersistenceCoreException;",
"public String getAllFarmAnimals(){\r\n\t\tPlayer[] p = Bukkit.getOnlinePlayers();\r\n\t\t\tfor(Player player : p){\r\n\t\t\tif(plugin.getAnimalData().contains(\"Farmer.\" + player.getUniqueId().toString())){\r\n\t\t\tString farmer = player.getUniqueId().toString();\t\r\n\t\t\tSet<String> animals = plugin.getAnimalData().getConfigurationSection(\"Farmer.\" + farmer + \".Animals\").getKeys(false);\r\n\t\t\tfor(String animal : animals){\r\n\t\treturn animal;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn null;\r\n\t}",
"public void searchSong(String name)\n {\n for(int i=0; i<songs.size(); i++)\n if(songs.get(i).getFile().contains(name) || songs.get(i).getSinger().contains(name))\n {\n System.out.print((i+1) + \"- \");\n listSong(i);\n\n }\n }",
"public void findHouse() {\n\t\tSystem.out.println(\"找房子\");\n\t}",
"public String search() {\r\n currentRoom = player.getCurrentRoom();\r\n String res = \"You start searching the room....\";\r\n if (currentRoom.getChestSize() > 0) {\r\n res += \"You find a treasure chest in the corner...\" + System.lineSeparator();\r\n res += \"You pick up the following items from the chest and put them in your backpack\" + System.lineSeparator();\r\n res += currentRoom.getItemsInChest();\r\n } else {\r\n res = \"You find nothing of intrest in the room...\";\r\n }\r\n return res;\r\n }",
"public Inventory inventorySearch (TheGroceryStore g, String searchKey);",
"public void doSearch(){\n boolean possible=currPlanet.searchForArtifact();\n if(possible==true){\n System.out.println(\"the spaceship \"+this.name+\" found an artifact!\");\n numberOfArtifacts=numberOfArtifacts+1;\n \n }else{\n System.out.println(\"the spaceship \"+ this.name+\" did not find an artifact\");\n }\n //Call the getDamageTaken method on the current planet to find out how much damage the spaceship took while \n //performing the search\n double damageTaken=currPlanet.getDamageTaken();\n //Print a message saying that the spaceship took that much damage\n String damageStr = String.format(\"%1$.2f\", damageTaken);\n System.out.println(\"The spaceship \"+this.name+\" took \"+damageStr+\" damage while searching for an artifact on \"+currPlanet.getName());\n //Subtract the damage from the current health of the spaceship\n currentHealth=currentHealth-damageTaken;\n String currHealth=String.format(\"%1$.2f\", currentHealth);\n System.out.println(\"Name: \"+this.name+\" Current Health: \"+currHealth+\" Artifacts: \"+this.numberOfArtifacts);\n //If the current health is below zero, print a message that the spaceship explodes\n if(currentHealth<0){\n System.out.println(\"The spaceship \"+this.name+\" explodes\");\n }\n }",
"private void search(String query) {\n final List<Artist> foundartists = new ArrayList<Artist>();\n final String usrquery = query;\n\n spotifysvc.searchArtists(query, new Callback<ArtistsPager>() {\n @Override\n public void success(ArtistsPager artists, Response response) {\n List<Artist> artistlist = artists.artists.items;\n Log.d(LOG_TAG_API, \"found artists [\" + artistlist.size() + \"]: \" + artistlist.toString());\n datalist.clear();\n\n if (artistlist.size() > 0) {\n setListdata(artistlist);\n } else {\n Toast.makeText(getActivity(), \"no artists found by the name: \" + usrquery, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(LOG_TAG_API, \"failed to retrieve artists:\\n\" + error.toString());\n Toast.makeText(getActivity(), \"failed to retrieve artists. Possible network issues?: \", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public interface ActorRepository extends Neo4jRepository<Actor, Long> {\n\n\t\n\t@Query(\"MATCH (p:Actor) WHERE lower(p.name) CONTAINS lower($name) or lower(p.fullName) CONTAINS lower($name) RETURN p ORDER BY p.name\")\n\tCollection<Actor> findByNameLike(@Param(\"name\") String name);\n\n\t\n\t\n}",
"public Inventory searchForItem (TheGroceryStore g, Inventory i, String key);",
"public List<Product> search(String searchString);",
"public static void search(){\n\t\tfor (Page p:heap){\n\t\t\tfor(Building b:p.buildings){\n\t\t\t\t\n\t\t\t\t//System.out.println(b.buildingName);\n\t\t\t\tif(b.getBuildingName()!=null) {\n\t\t\t\t\tif(b.getBuildingName().contains(searchQuery)){\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println(\"Building Name: \" + b.getBuildingName());\n\t\t\t\t\t\tSystem.out.println(\"Property ID: \" + b.getPropID());\n\t\t\t\t\t\tSystem.out.println(\"Census year: \" + b.getCensusYear());\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tbuildingsFound++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpagesSearched++;\n\t\t}\n\t}",
"public List<Map<String, String>> searchByName(String name) throws IOException {\n\t\tString queryString = \n\t\t\t\"PREFIX pkm: <http://pokedex.dataincubator.org/pkm/> \" +\n\t\t\t\"SELECT \" +\n\t\t\t\" ?number\" +\n\t\t\t\" ?name\" +\n\t\t\t\" ?numberAndName\" + \n\t\t\t\" (GROUP_CONCAT(?typeName;separator=\\\"|\\\") as ?types)\" +\n\t\t\t\" ?color\" +\n\t\t\t\" ?height\" +\n\t\t\t\" ?weight\" +\n\t\t\t\" (str(?image) as ?imageUrl)\" + // get url string from image RDF node\n\t\t\t\" ?attack\" +\n\t\t\t\" ?defense\" +\n\t\t\t\" ?spAttack\" +\n\t\t\t\" ?spDefense\" +\n\t\t\t\" ?speed\" +\n\t\t\t\" ?hp\" +\n\t\t\t\" ?description \" +\n\t\t\t\"WHERE {\" +\n\t\t\t\" ?pokemon <http://www.w3.org/2000/01/rdf-schema#label> ?name. \" +\n\t\t\t\" ?pokemon pkm:nationalNumber ?number. \" +\n\t\t\t\" BIND(CONCAT(?name, \\\" #\\\", str(?number)) as ?numberAndName) \" + // used for UI search\n\t\t\t\" ?pokemon pkm:type ?type. \" +\n\t\t\t\" ?type <http://www.w3.org/2000/01/rdf-schema#label> ?typeDescription. \" +\n\t\t\t\"\t BIND(REPLACE(?typeDescription, \\\" Type\\\", \\\"\\\") AS ?typeName). \" +\n\t\t\t\" ?pokemon pkm:colour ?color. \" +\n\t\t\t\" ?pokemon pkm:description ?description. \" +\n\t\t\t\" ?pokemon pkm:length ?height. \" +\n\t\t\t\" ?pokemon pkm:weight ?weight. \" +\n\t\t\t\" ?pokemon <http://xmlns.com/foaf/0.1/depiction> ?image. \" +\n\t\t\t\" ?pokemon pkm:baseAttack ?attack. \" +\n\t\t\t\" ?pokemon pkm:baseDefense ?defense. \" +\n\t\t\t\" ?pokemon pkm:baseSpAtk ?spAttack. \" +\n\t\t\t\" ?pokemon pkm:baseSpDef ?spDefense. \" +\n\t\t\t\" ?pokemon pkm:baseSpeed ?speed. \" +\n\t\t\t\" ?pokemon pkm:baseHP ?hp. \" +\n\t\t\t\" FILTER strStarts(?name, \\\"\" + name + \"\\\" ) \" +\n\t\t\t\"\t FILTER (langMatches(lang(?description), \\\"EN\\\")) \" +\t// only return English description\n\t\t\t\"\t FILTER contains(str(?image), \\\"legendarypokemon.net\\\") \" + // only return url of image from legendarypokemon.net\n\t\t\t\"}\" +\n\t\t\t\"GROUP BY ?number ?name ?numberAndName ?color ?description ?height ?weight ?image ?attack ?defense ?spAttack ?spDefense ?speed ?hp \" +\n\t\t\t\"ORDER BY ?name LIMIT 10\"; // return 10 results ordered by name\n\t\treturn runQuery(queryString);\n\t}",
"Search getSearch();",
"public List<Recipe> searchWithIngredients(String[] keywords, boolean searchLocally, \r\n \t\t\t\t\t\t\t\t\t boolean searchFromWeb) {\n \t\treturn model.searchRecipe(keywords);\r\n \t}",
"ArtistCommunitySearch getArtistSearch();",
"public HashMap<String, Shelter> getByRestriction(CharSequence gender, CharSequence age,\n CharSequence name){\n HashMap<String, Shelter> searchedList = shelters;\n if (!(gender == null)) {\n Set entries = searchedList.entrySet();\n for(Iterator<Map.Entry<String, Shelter>> it = entries.iterator();\n it.hasNext(); ) {\n Map.Entry<String, Shelter> entry = it.next();\n Shelter shelter = entry.getValue();\n String genderVal = shelter.getGender();\n if (!genderVal.contains(gender) && (genderVal.contains(\"Men\")\n || genderVal.contains(\"Women\"))){\n it.remove();\n }\n }\n }\n if (!(age == null)) {\n Set entries = searchedList.entrySet();\n for(Iterator<Map.Entry<String, Shelter>> it = entries.iterator();\n it.hasNext(); ) {\n Map.Entry<String, Shelter> entry = it.next();\n Shelter shelter = entry.getValue();\n String genderVal = shelter.getGender();\n if (!genderVal.contains(age) && (genderVal.contains(\"Children\")\n || genderVal.contains(\"Families w/ newborns\")\n || genderVal.contains(\"Young adults\"))){\n it.remove();\n }\n }\n }\n if (!(name == null)) {\n Set entries = searchedList.entrySet();\n for(Iterator<Map.Entry<String, Shelter>> it = entries.iterator();\n it.hasNext(); ) {\n Map.Entry<String, Shelter> entry = it.next();\n Shelter shelter = entry.getValue();\n String nameVal = shelter.getName();\n if (!nameVal.contains(name)){\n it.remove();\n }\n }\n }\n return searchedList;\n }",
"private void search(String product) {\n // ..\n }",
"public void searchTitle(String srchttl){\r\n \t\r\n \tboolean found = false;\t\t\t\t\t\r\n \tIterator<Item> i = items.iterator();\r\n \tItem current = new Item();\r\n\r\n\twhile(i.hasNext()){\r\n\t current = i.next();\r\n\t \r\n\t if(srchttl.compareTo(current.getTitle()) == 0) {\r\n\t System.out.print(\"Found \" + current.toString());\r\n\t found = true;\r\n\t } \r\n }\r\n \r\n\tif(found != true){\r\n\t System.out.println(\"Title \" + srchttl + \" could not be found.\");\r\n\t System.out.println(\"Check the spelling and try again.\");\r\n\t}\r\n \r\n }",
"void findMatchings(boolean isProtein) {\n\n GraphDatabaseFactory dbFactory = new GraphDatabaseFactory();\n HashSet<String > searchSpaceList = new HashSet<>();\n GraphDatabaseService databaseService = dbFactory.newEmbeddedDatabase(graphFile);\n for (int id: queryGraphNodes.keySet()) {\n if(isProtein)\n searchSpaceList.add(queryGraphNodes.get(id).label);\n else\n searchSpaceList.add(String.valueOf(queryGraphNodes.get(id).labels.get(0)));\n }\n for(String x: searchSpaceList) {\n ResourceIterator<Node> xNodes;\n try(Transaction tx = databaseService.beginTx()) {\n xNodes = databaseService.findNodes(Label.label(x));\n tx.success();\n }\n\n while (xNodes.hasNext()) {\n Node node = xNodes.next();\n if (searchSpaceProtein.containsKey(x))\n searchSpaceProtein.get(x).add(node.getId());\n else {\n HashSet<Long> set = new HashSet<>();\n set.add(node.getId());\n searchSpaceProtein.put(x, set);\n }\n }\n\n }\n\n if(isProtein)\n search(0, databaseService, true);\n else\n search(0, databaseService, false);\n databaseService.shutdown();\n }",
"public boolean search (String s)\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tTreeNode pos = Pos;\n\t\tboolean found = true;\n\t\touter: while (Pos.node().getaction(\"C\").indexOf(s) < 0 || Pos == pos)\n\t\t{\n\t\t\tif ( !Pos.haschildren())\n\t\t\t{\n\t\t\t\twhile ( !hasvariation())\n\t\t\t\t{\n\t\t\t\t\tif (Pos.parent() == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfound = false;\n\t\t\t\t\t\tbreak outer;\n\t\t\t\t\t}\n\t\t\t\t\telse goback();\n\t\t\t\t}\n\t\t\t\ttovarright();\n\t\t\t}\n\t\t\telse goforward();\n\t\t}\n\t\tshowinformation();\n\t\tcopy();\n\t\treturn found;\n\t}",
"Heaver findByName(String name);",
"public static void findIngredient(String ingredient, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getIngredients().contains(ingredient)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }",
"@Override\n public void searchArtists(String query) {\n mSpotifyInteractor.performArtistsSearch(query, this);\n }",
"@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}",
"public List<Artist> searchArtistOnly(String text) throws SQLException {\n\t\tList<Artist> artist = new ArrayList<Artist>();\n\n\t\tString sql = \"SELECT * FROM artist\" + \" WHERE Artist_Name LIKE ? ORDER BY Artist_Id\";\n\t\tDriver driver = new Driver();\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\n\t\ttry {\n\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, \"%\" + text + \"%\");\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\tartist.add(new Artist(res.getInt(\"Artist_Id\"), res.getString(\"Artist_Name\"),\n\t\t\t\t\t\tres.getString(\"Start_Year_Active\"), res.getString(\"End_Year_Active\")));\n\t\t\t}\n\t\t\treturn artist;\n\t\t}\n\n\t\tfinally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\n\t}",
"public static Animal getByName(String name) {\n for(var animal : animals){\n if(animal.getName().equalsIgnoreCase(name))\n return animal;\n }\n return null;\n\n //Diffrent way of finding the animal\n /*return animals.stream()\n .filter(a -> a.getName().equalsIgnoreCase(name))\n .findAny()\n .orElse(null);*/\n }",
"public WordList find(String s) {\n \treturn index.get(s);\n }",
"public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}",
"@Override\n public Set<Restaurant> getMatches(String queryString) {\n\n /* Setup grammar listener */\n CharStream stream = new ANTLRInputStream(queryString);\n QueryLexer lexer = new QueryLexer(stream);\n TokenStream tokens = new CommonTokenStream(lexer);\n QueryParser parser = new QueryParser(tokens);\n ParseTree tree = parser.root();\n ParseTreeWalker walker = new ParseTreeWalker();\n\n // Setup custom walker\n QueryCreator creator = new QueryCreator();\n walker.walk(creator, tree);\n\n Set<Restaurant> matches = new HashSet<Restaurant>();\n RestaurantHandle rH = creator.getHandle();\n Expression expTree = creator.getExpression();\n\n // Look through every restaurant, if one matches query add it to the set\n for (Restaurant r : this.restaurantMap.values()) {\n rH.setRestaurant(r);\n if (expTree.eval()) {\n matches.add(r);\n }\n }\n\n return matches;\n }",
"public SearchByArtistPrefix(SongCollection sc) {\n\t\tsongs = sc.getAllSongs();\n\t}",
"public List<Recipe> search(String[] keywords, boolean searchLocally, boolean searchFromWeb) {\n \t\treturn model.searchRecipe(keywords);\r\n \t}",
"public PokemonSpecies findSeenSpeciesData(String name) throws PokedexException {\n PokemonSpecies rv = null;\n String nameLower = name.toLowerCase();\n Iterator<PokemonSpecies> it = pokedex.iterator();\n PokemonSpecies currentSpecies;\n while(it.hasNext()) {\n currentSpecies = it.next();\n if(currentSpecies.getSpeciesName().equals(nameLower)) {\n rv = currentSpecies;\n break;\n }\n }\n if(rv == null) {\n throw new PokedexException(String.format(Config.UNSEEN_POKEMON, name));\n }\n return rv;\n }",
"@Override\n public ArrayList<ItemBean> searchAll(String keyword)\n {\n String query= \"SELECT * FROM SilentAuction.Items WHERE Item_ID =?\";\n //Seacrh by Category Query\n String query1=\"SELECT * FROM SilentAuction.Items WHERE Category LIKE?\";\n //Seaches and finds items if Category is inserted\n ArrayList<ItemBean> resultsCat = searchItemsByCategory(query1,keyword);\n //Searches and finds items if number is inserted \n ArrayList<ItemBean> resultsNum= searchItemsByNumber(query,keyword);\n resultsCat.addAll(resultsNum);\n return resultsCat;\n }",
"public void handleSearchQuery(String query) {\n // Iterate through Spot list looking for a Spot whose name matches the search query String\n for (Spot spot : mSpotList) {\n if (spot.getName().equalsIgnoreCase(query)) {\n mMap.addCircle(new CircleOptions()\n .center(new LatLng(spot.getLatLng().latitude, spot.getLatLng().longitude))\n .radius(10)\n .strokeColor(Color.BLACK) // Border color of the circle\n // Fill color of the circle.\n // 0x represents, this is an hexadecimal code\n // 55 represents percentage of transparency. For 100% transparency, specify 00.\n // For 0% transparency ( ie, opaque ) , specify ff\n // The remaining 6 characters(00ff00) specify the fill color\n .fillColor(0x8800ff00)\n // Border width of the circle\n .strokeWidth(2)); // Todo: Make this transparent blue?\n\n // To change the position of the camera, you must specify where you want\n // to move the camera, using a CameraUpdate. The Maps API allows you to\n // create many different types of CameraUpdate using CameraUpdateFactory.\n // Animate the move of the camera position to spot's coordinates and zoom in\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(CameraPosition.fromLatLngZoom(spot.getLatLng(), 18)),\n 2000, null);\n break;\n }\n }\n }",
"private static void searchForItem() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println(\" Please type your search queries\");\r\n\t\tSystem.out.println();\r\n\t\tString choice = \"\";\r\n\t\tif (scanner.hasNextLine()) {\r\n\t\t\tchoice = scanner.nextLine();\r\n\t\t}\r\n\t\t//Currently only supports filtering by name\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" All products that matches your search are as listed\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Id|Name |Brand |Price |Total Sales\");\r\n\t\tint productId = 0;\r\n\t\tfor (Shop shop : shops) {\r\n\t\t\tint l = shop.getAllSales().length;\r\n\t\t\tfor (int j = 0; j < l; j++) {\r\n\t\t\t\tif (shop.getAllSales()[j].getName().contains(choice)) {\r\n\t\t\t\t\tprintProduct(productId, shop.getAllSales()[j]);\r\n\t\t\t\t}\r\n\t\t\t\tproductId++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"List<SongVO> searchSong(String searchText) throws Exception;",
"private void seeAnimal() {\n\r\n\t}",
"public void searchByAlbum()\n {\n String input = JOptionPane.showInputDialog(null,\"Enter the album you'd like to search for:\");\n input = input.replaceAll(\" \", \"_\").toUpperCase();\n \n Collections.sort(catalog);\n int index = Collections.binarySearch(catalog, new Album(\"\",input,null), null);\n if(index >= 0)\n System.out.println(\"Album:\\t\" + catalog.get(index).getAlbum()\n + \"\\nArtist: \" + catalog.get(index).getArtist()+\"\\n\");\n else System.err.println(\"Album '\" + input + \"' not found!\\n\"); \n }",
"public ArrayList<ADFilmBEAN> search(int thang, int nam, int start) throws Exception{\r\n\t\treturn film.search(thang, nam, start);\r\n\t}",
"public static void printMatches(ArrayList<Glootie> aliens, Glootie g) {\r\n\t\tSystem.out.println(\"Matches for \"+ g);\r\n\t\tArrayList<Glootie> gMatches = findMatches(g,aliens);\r\n\t\tif(gMatches.size() < 10) {\r\n\t\t\tSystem.out.println(gMatches);\r\n\t\t}else {\r\n\t\t\tSystem.out.println(gMatches.size() + \" matches is too many to print\");\r\n\t\t}\r\n\r\n\t}",
"public abstract Solution<T> search(Searchable<T> s);",
"List<Codebadge> search(String query);",
"private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }",
"public List<T> findByName(String text) {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u where u.name like :name\");\n\t q.setParameter(\"name\", \"%\" + text + \"%\");\n\t return q.getResultList();\n\t }",
"private static void searchchildren(String keyword, Individual root, ListView<Individual> list) {\n\t\tif(root.getName().toLowerCase().contains(keyword.toLowerCase())){\n\t\t\t//System.out.println(root.getInfo());\n\t\t\tlist.getItems().add(root);\n\t\t\thits++;\n\t\t}\n\t\tif(root.getChildren()!=null){\n\t\t\tList<Individual> children = root.getChildren();\n\t\t\tfor(Individual e: children){\n\t\t\t\tsearchchildren(keyword, e, list);\n\t\t\t}\n\t\t}\n\t}",
"void findInGoods(String str) {\n Iterator<Map.Entry<SportEquipment, Integer>> i = goods.entrySet().iterator();\n int count = 1;\n boolean flag = false; //indicates whether sequences were found or not\n\n while (i.hasNext()) {\n\n Map.Entry<SportEquipment, Integer> pair = i.next();\n SportEquipment seq = pair.getKey();\n String category = seq.getCategory().toString();\n String name = seq.getTitle();\n if (category.contains(str.toUpperCase()) || name.contains(str.toLowerCase())) {\n System.out.println(Integer.toString(count) + Strings.DROP + category + Strings.SEPARATOR2 +\n name + Strings.CURRENCY + seq.getPrice() + Strings.SEPARATOR + pair.getValue());\n flag = true;\n }\n count++;\n }\n if (!flag) System.out.println(Strings.ITEM_IS_NOT_FOUND);\n\n }",
"void searchProbed (Search search);",
"public static String itemNameForSearch(){\n\n String[] itemNameArr = new String[3];\n itemNameArr[0] = \"nivea\";\n itemNameArr[1] = \"dove\";\n itemNameArr[2] = \"ricci\";\n\n return itemNameArr[CommonMethods.getRandomValue(0,2)];\n }",
"public List<Song> findArtistSongs(String search) {\n\t\treturn lookifyRepository.findByArtistContaining(search);\n\t}",
"public static void itemsearch(List<String> shoppingList) {\n\n\n\n if(shoppingList.contains(\"milk\")){\n System.out.println(\"The list contains milk\");\n }\n else{\n System.out.println(\"We dont have milk on our list\");\n }\n\n if(shoppingList.contains(\"bananas\")){\n System.out.println(\"the list contains bananas\");\n }\n else{\n System.out.println(\"We dont have bananas on our list\");\n }\n }",
"void searchByName(String name) {\n\t\tint i=0;\n\t\t\tfor (Entity entity : Processing.nodeSet) {\n\t\t\t\t\n\t\t\t\t/* if Entity is person */\n\t\t\t\tif(entity instanceof Person) {\n\t\t\t\t\tPerson person=(Person)entity;\n\t\t\t\t\tif(person.getName().equalsIgnoreCase(name)){\n\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\tSystem.out.println(\" name : \" + person.getName());\n\t\t\t\t\tSystem.out.println(\" phone : \" + person.getPhone());\n\t\t\t\t\tSystem.out.println(\" email : \" + person.getEmail());\n\t\t\t\t\tSystem.out.println(\" school : \" + person.getSchool());\n\t\t\t\t\tSystem.out.println(\" college : \" + person.getCollege() + \"\\n\");\n\t\t\t\t\t\tfor(String interest:person.getInterests()){\n\t\t\t\t\t\t\tSystem.out.println(\" interest in : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* If entity is organization */\n\t\t\t\telse {\n\t\t\t\t\tOrganization organization=(Organization)entity;\n\t\t\t\t\tif(organization.getName().equalsIgnoreCase(name)){\n\t\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\t\tSystem.out.println(\" name : \" + organization.getName());\n\t\t\t\t\t\tSystem.out.println(\" phone : \" + organization.getPhone());\n\t\t\t\t\t\tSystem.out.println(\" email : \" + organization.getEmail());\n\t\t\t\t\t\tfor(String interest:organization.getCourses()){\n\t\t\t\t\t\t\tSystem.out.println(\" courses are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getFaculty()){\n\t\t\t\t\t\t\tSystem.out.println(\" Faculties are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getPlacements()){\n\t\t\t\t\t\t\tSystem.out.println(\" Placements are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(i>=Processing.nodeSet.size()) {//if no such name exist\n\t\t\t\tSystem.out.println(name+\" does not exist\");\n\t\t\t}\n\t}",
"public Show search(String title){\n return super.search(title);\n }",
"@Test\n public void searchFindsPlayer() {\n Player jari = stats.search(\"Kurri\");\n assertEquals(jari.getName(), \"Kurri\");\n\n }",
"public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"@Test\r\n public void testSearchPeople() throws MovieDbException {\r\n LOG.info(\"searchPeople\");\r\n String personName = \"Bruce Willis\";\r\n boolean includeAdult = false;\r\n List<Person> result = tmdb.searchPeople(personName, includeAdult, 0);\r\n assertTrue(\"Couldn't find the person\", result.size() > 0);\r\n }"
]
| [
"0.6287115",
"0.6044298",
"0.5962924",
"0.57776356",
"0.56935054",
"0.56854373",
"0.5675335",
"0.5675335",
"0.56314707",
"0.560975",
"0.5570901",
"0.55556774",
"0.5547043",
"0.55060595",
"0.54879266",
"0.54791933",
"0.54683465",
"0.5448647",
"0.5446465",
"0.5445338",
"0.5432506",
"0.5427749",
"0.5426992",
"0.54228115",
"0.5415335",
"0.53982556",
"0.5389021",
"0.53870165",
"0.5371511",
"0.53551245",
"0.5350637",
"0.53457445",
"0.53368634",
"0.53358346",
"0.53179514",
"0.52961856",
"0.52924013",
"0.5261675",
"0.52615666",
"0.52570534",
"0.52563393",
"0.5253865",
"0.52535284",
"0.5246547",
"0.5229382",
"0.5226021",
"0.5225049",
"0.5221393",
"0.51950777",
"0.5179116",
"0.51737833",
"0.51692456",
"0.5166385",
"0.5159999",
"0.5151276",
"0.5151056",
"0.5141857",
"0.5134044",
"0.51311475",
"0.5122571",
"0.5112899",
"0.510583",
"0.508923",
"0.5088617",
"0.5082765",
"0.5078951",
"0.50742686",
"0.5061682",
"0.5056874",
"0.50559795",
"0.5030246",
"0.50263166",
"0.50239694",
"0.502199",
"0.5021773",
"0.5017498",
"0.49980474",
"0.49952742",
"0.49931675",
"0.49924782",
"0.49921772",
"0.4992115",
"0.49915332",
"0.49903634",
"0.4986175",
"0.4983486",
"0.49824727",
"0.49746808",
"0.4964036",
"0.49625218",
"0.49553582",
"0.49548408",
"0.49467912",
"0.4941428",
"0.49373412",
"0.49306777",
"0.49294564",
"0.4927728",
"0.4926255",
"0.49206156",
"0.49201018"
]
| 0.0 | -1 |
/ perform your actions here | @Override
public void onSuccess(AuthResult authResult) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}",
"@Override\n protected void doAct() {\n }",
"public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }",
"public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }",
"public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"protected void execute() {\n\t\t\n\t}",
"public void logic(){\r\n\r\n\t}",
"public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }",
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"abstract public void performAction();",
"public void execute(){\n\t\t\n\t}",
"public void action() {\n action.action();\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"protected void execute() {\n\n\t}",
"@Override\n\tpublic void action() {\n\n\t}",
"protected void execute()\n\t{\n\t}",
"public void performAction();",
"protected void execute() {}",
"public void performActions(){\n GameInformation gi = this.engine.getGameInformation();\n\n if(gi.getTeam() == 0)\n this.engine.performPlayerAction(\n new MoveAction(src, dst)\n );\n\n }",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"@Override\n\tpublic void execute() {\n\t\tempfaengerA.doAction1();\n\t\tempfaengerA.doAction2();\n\t\tempfaengerA.doAction3();\n\n\t}",
"public void execute() {\r\n\t\r\n\t}",
"@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}",
"public void act() {\n\t}",
"public void interactWhenApproaching() {\r\n\t\t\r\n\t}",
"public void execute() {\n\t\t\n\t}",
"protected void execute() {\n\t}",
"public void doAction(){}",
"public void executeAction()\n\t{\t\t\n\t\tthis.getUser().setHealth(this.getUser().getHealth()+HEALTH);\n\t}",
"protected void execute() {\n\n\n \n }",
"protected void execute() {\n \t\n }",
"protected void execute() {\n \t\n }",
"@Override\n public void act() {\n }",
"protected void execute() {\r\n }",
"public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }",
"protected void additionalProcessing() {\n\t}",
"public void processing();",
"public void execute() {\n\n\t}",
"public void actions() {\n\t\t\tProvider p = array_provider[theTask.int_list_providers_that_tried_task.get(0)];\n\t\t\t\n\t\t\t//there is a percentage of probability that the user will fail to complete the task\n\t\t\tif(random.draw((double)PERCENTAGE_TASK_FAILURE/100)){ // SUCCESS\n\n\t\t\t\ttot_success_tasks++;\n\t \tthrough_time += time() - theTask.entryTime;\n\t\t\t\ttheTask.out();\n\t\t\t\t\n\t\t\t\tif(FIXED_EARNING_FOR_TASK) earning_McSense = earning_McSense + FIXED_EARNING_VALUE;\n\t\t\t\telse {\n\n\t\t\t\t\t//Provider p = (Provider) theTask.providers_that_tried_task.first();\n\t\t\t\t\tearning_McSense = earning_McSense + (p.min_price*PERCENTAGE_EARNING)/100;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\telse { // FAILURE\n\t\t\t\t//we should check again and if the check fails insert the task in rescheduled_waiting\n\t\t\t\ttheTask.into(taskrescheduled);\n\t\t\t\ttot_failed_tasks++;\n\t\t\t\t//new StartTaskExecution(theTask).schedule(time());\n\n\t\t\t}\n\t\t\t// the provider frees one slot\n\t\t\tp.number_of_task_executing--;\n\t\t\ttot_scheduled_completed_in_good_or_bad_tasks++;\n\n \t}",
"public void act() \n {\n // Add your action code here.\n tempoUp();\n }",
"public void action() {\n }",
"protected abstract void executeActionsIfError();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"Operations operations();",
"@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}",
"public void dispatch();",
"public void performOtherTasks() {\n\t\t\tSystem.out.println(\"performing tasks other than servicing\");\n\t\t\t// do whatever you want to do in the servicing package\n\t\t}",
"private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}",
"protected abstract void action(Object obj);",
"public void act();",
"public void postPerform() {\n // nothing to do by default\n }",
"@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"protected void execute()\n {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"private void executeActions (Action action, Player joueur) {\n WarPlayer player = this.castPlayer(joueur);\n super.roundSteps(action, player, player.getFood());\n this.transformResources(player);\n this.feedArmies(player);\n }",
"protected void execute() {\n \t// literally still do nothing\n }",
"abstract protected QaIOReporter performAction(Node[] nodes);",
"void act();",
"private void entryAction() {\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n \tpublic void addActions() {\n \t\t\n \t}",
"public void act() \n {\n if(s == 0)\n {\n lead();\n lookForFood();\n lookForEdge();\n lookForTail();\n }\n else\n {\n follow();\n }\n }",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"@Override\r\n\tpublic void performAction(Client client, RentUnit rentUnit) {\n\t\tSystem.err.println(\"Program was not implemented\");\r\n\t}"
]
| [
"0.6735331",
"0.66611767",
"0.6630897",
"0.6608044",
"0.65401614",
"0.6531968",
"0.6455636",
"0.64211726",
"0.64211726",
"0.64211726",
"0.63896674",
"0.63838017",
"0.636537",
"0.63592464",
"0.6292882",
"0.6290442",
"0.6266849",
"0.6240044",
"0.6240044",
"0.62334955",
"0.62238705",
"0.62210685",
"0.62073064",
"0.6205166",
"0.62048656",
"0.6195316",
"0.6195316",
"0.6195316",
"0.6183592",
"0.6183592",
"0.6183592",
"0.6183592",
"0.6183592",
"0.6183592",
"0.6183592",
"0.6183592",
"0.61775506",
"0.6159562",
"0.61564016",
"0.61453116",
"0.61395246",
"0.6138712",
"0.61324495",
"0.61284214",
"0.61182195",
"0.61130035",
"0.61010146",
"0.61010146",
"0.60569865",
"0.6054115",
"0.6052112",
"0.60363185",
"0.60330474",
"0.6018545",
"0.5988116",
"0.59868944",
"0.5984765",
"0.596974",
"0.5955426",
"0.5955426",
"0.5955426",
"0.5955426",
"0.59519184",
"0.5950661",
"0.5940187",
"0.5939976",
"0.59378767",
"0.5931122",
"0.59271735",
"0.5924329",
"0.59162045",
"0.5914491",
"0.5914491",
"0.5914491",
"0.5914491",
"0.5914491",
"0.5914491",
"0.5914491",
"0.59065145",
"0.5897811",
"0.5897811",
"0.5897811",
"0.5897811",
"0.5897811",
"0.5897811",
"0.5897811",
"0.5897811",
"0.5897811",
"0.5897811",
"0.5897811",
"0.5897811",
"0.58914524",
"0.5888767",
"0.5883804",
"0.58814037",
"0.58795345",
"0.5876091",
"0.58744055",
"0.5874103",
"0.58534545",
"0.5852656"
]
| 0.0 | -1 |
key save user info get string preference | public static String getStringPreference(Context pContext, String strKey) {
if (pContext.getSharedPreferences(PREF_KEY, 0) != null) {
return pContext.getSharedPreferences(PREF_KEY, 0)
.getString(strKey, "");
} else {
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeUserInro(String name,String key){\n SharedPreferences user = context.getSharedPreferences(\"user_info\",0);\n SharedPreferences.Editor mydata = user.edit();\n mydata.putString(\"uName\" ,name);\n mydata.putString(\"uKey\",key);\n mydata.commit();\n }",
"private String getUserStringPref(String key, String defaultVal)\n\t{\n\t\treturn mVDH.getUserStringPreference(key, defaultVal, PreferencesModel.class);\n\t}",
"public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userinfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n\n editor.apply();\n Toast.makeText(this,\"Saved!\",Toast.LENGTH_LONG).show();\n }",
"String getSettingByKey(HawkularUser user, String key);",
"ReadOnlyUserPrefs getUserPrefs();",
"ReadOnlyUserPrefs getUserPrefs();",
"ReadOnlyUserPrefs getUserPrefs();",
"ReadOnlyUserPrefs getUserPrefs();",
"public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }",
"protected abstract String getHintGivenSharedPreferencesKey();",
"public String getUserPreference(String aKey) {\r\n\t\tString result = null;\r\n\t\tif (this.getUserPreferences().containsKey(aKey)) {\r\n\t\t\tresult = this.getUserPreferences().get(aKey);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n String difficultySummary = \"Username: \" + newValue;\n usernamePref.setSummary(difficultySummary);\n // Since we are handling the pref, we must save it\n SharedPreferences.Editor ed = sharedPrefs.edit();\n name = newValue.toString();\n ed.putString(\"user_id\", newValue.toString());\n ed.apply();\n return true;\n }",
"public static String getStringForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserStringPref(key, null);\n\t}",
"private String getSavedPassword(){\n return new PrefManager(this).getPassword();\n }",
"public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE); //This means the info is private and hence secured\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }",
"String getPreference(String user, String preferenceName) throws OntimizeJEERuntimeException;",
"protected void savePreferences() {\n String tmp_hostname = hostname.getHostName();\n System.out.println(\"stringified hostname was: \" + tmp_hostname);\n if (tmp_hostname != null) {\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"last_hostname\", tmp_hostname);\n editor.commit();\n }\n }",
"private void saveInPreferences(String gameName) {\n //Store name in shared preferences\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"gameName\", gameName);\n editor.commit();\n\n //Check if gameName stored\n //String storedPreference = preferences.getString(\"gameName\",\"none\");\n //Log.d(\"checkGameName\", storedPreference);\n }",
"public boolean saveuser_details(String skey, String svalue){\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(user_details, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(skey, svalue);\n editor.apply();\n return true;\n }",
"protected void SavePreferences(String key, String value) {\n SharedPreferences data = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = data.edit();\n editor.putString(key, value);\n editor.commit();\n\n\n }",
"private void storeKeyWord(String keyWord) {\n SharedPrefsUtils.setStringPreference(application.getApplicationContext(),\"KEY\",keyWord);\n }",
"public void saveInfo(View view) {\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n usernameInput.setText(\"\");\n passwordInput.setText(\"\");\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"UserSettings store(String key, String value);",
"private void savePreferenceData(String role){\n if (getIntent()!=null){\n SharedPreferences preferences = getSharedPreferences(detailPreference, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(preferenceKey, role);\n editor.apply();\n }\n }",
"public void getProfile() {\n\n String mKey = getString(R.string.preference_name);\n SharedPreferences mPrefs = getSharedPreferences(mKey, MODE_PRIVATE);\n\n // Load the user email\n\n /*userEmail = getString(R.string.preference_key_profile_email);\n userPassword = getString(R.string.preference_key_profile_password);*/\n\n // Load the user email\n\n mKey = getString(R.string.preference_key_profile_email);\n userEmail = mPrefs.getString(mKey, \"\");\n\n // Load the user password\n\n mKey = getString(R.string.preference_key_profile_password);\n userPassword = mPrefs.getString(mKey, \"\");\n\n\n //userEmail = getString(R.string.register_email);\n //userPassword = getString(R.string.register_password);\n\n }",
"public void getLocal(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n user = preferences.getString(\"Username\", \"\");\n email = preferences.getString(\"Email\", \"\").replace(\".\", \",\");\n role = preferences.getString(\"Role\", \"\");\n }",
"public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPassword.getText().toString());\n editor.apply();\n }",
"UserSettings store(HawkularUser user, String key, String value);",
"private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }",
"public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }",
"public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }",
"public interface Key {\n\n String SHARE_KEY = \"userIndo\";//用户信息\n String SHARE_USER_ID = \"userId\";//用户账号\n\n}",
"public static interface Prefs{\n /**\n * The key-value pair stores the name of the file\n */\n public static final String FILE_NAME = \"game_preferences\";\n\n /**\n * The key that stores the field name: the best score\n */\n public static final String KEY_BEST_SCORE = \"best_score\";\n }",
"private void savePreferences(String key, String value) {\n\t\tSharedPreferences sp = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tEditor edit = sp.edit();\n\t\tedit.putString(key, value);\n\t\tedit.commit();\n\t}",
"private void savePreferences(String key, String value) {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(c);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key, value);\n editor.apply();\n }",
"public void storeUserPrefs(User user) {\n //start writing (open the file)\n SharedPreferences.Editor editor = prefs.edit();\n //put the data\n Gson gson = new Gson();\n String json = gson.toJson(user);\n editor.putString(USER_PREFS, json);\n //close the file\n editor.apply();\n }",
"@Override\n\tprotected void onPause() {\n\t\tSharedPreferences.Editor editor = myprefs.edit();\n\t\teditor.putString(\"userN\", userName);\n\t\teditor.putString(\"name\",person_name);\n\t\teditor.commit();\n\t\tsuper.onPause();\n\t}",
"public String getPreference(DataPreferenceEnum key)\n {\n return (preferencesHashMap.get(key));\n }",
"private void savePreference() {\n\t\tString myEmail = ((TextView) findViewById(R.id.myEmail)).getText().toString();\n\t\tString myPassword = ((TextView) findViewById(R.id.myPassword)).getText().toString();\n\t\t\n\t\tEditor editor = sharedPreferences.edit();\n\t\teditor.putString(\"myEmail\", myEmail);\n\t\teditor.putString(\"myPassword\", myPassword);\n\t\teditor.putString(\"readOPtion\", Constants.READ_OPTION_SUBJECT_ONLY);\n\t\teditor.putInt(\"increment\", 10);\n\t\teditor.putString(\"bodyDoneFlag\", bodyDoneFlag);\n\t\teditor.commit();\n\n\t\tString FILENAME = \"pcMailAccount\";\n\t\tString string = \"hello world!\";\n\t\tString del = \"_____\";\n\t\t\n\t\tFile folder = new File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM + \"/VoiceMail\");\n\t\tif (!folder.isDirectory()) {\n\t\t\tfolder.mkdirs();\n\t\t}\n \n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfolder.createNewFile();\n//\t\t\tfos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\t fos = new FileOutputStream(new File(folder, FILENAME));\n\t string = \"myEmail:\" + myEmail + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"myPassword:\" + myPassword + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"bodyDoneFlag:\" + bodyDoneFlag + del;\n\t\t\tfos.write(string.getBytes());\n\t\t\t\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }",
"public void writeUserLog(String name){\n SharedPreferences user = context.getSharedPreferences(\"user_info\",0);\n SharedPreferences.Editor mydata = user.edit();\n mydata.putString(\"userlist\" ,name);\n mydata.commit();\n }",
"public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }",
"private String getPlayerName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String storedName = preferences.getString(\"playerName\",\"none\");\n return storedName;\n }",
"@Override\n public Path getUserPrefsFilePath() {\n return userPrefsStorage.getUserPrefsFilePath();\n }",
"@Override\n public void onSharedPreferenceChanged(\n SharedPreferences sharedPreferences, String key) {\n preferencesChanged = true; // user changed app setting\n\n if (key.equals(USER_NAME)) {\n //update user name\n user.setName(sharedPreferences.getString(USER_NAME, \"\"));\n //update user name to firebase database\n databaseHandler.updateUserData(user.getUserId(), user.getUserName(),\n MessageEnum.UPDATE_USER_NAME);\n\n } else if (key.equals(LOCATION)) {\n //update user location\n user.setLocation(sharedPreferences.getString(LOCATION, \"\"));\n databaseHandler.updateUserData(user.getUserId(), user.getUserLocation(),\n MessageEnum.UPDATE_USER_LOCATION);\n }\n }",
"public String getCurrentIdentity(){\n mSharedPreference = mContext.getSharedPreferences( mContext.getString(R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n if(mSharedPreference.contains(\"zzxxyz\")) {\n\n return mSharedPreference.getString(\"zzxxyz\", \"\");\n }\n else\n return \"\";\n}",
"private void showUserPreferences() {\r\n MyAccount ma = state.getAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n \r\n mOriginName.setEnabled(!state.builder.isPersistent() && TextUtils.isEmpty(ma.getUsername()));\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary;\r\n if (ma.getUsername().length() > 0) {\r\n summary = new StringBuilder(ma.getUsername());\r\n } else {\r\n summary = new StringBuilder(this.getText(ma.alternativeTermForResourceId(R.string.summary_preference_username)));\r\n }\r\n mEditTextUsername.setDialogTitle(this.getText(ma.alternativeTermForResourceId(R.string.dialog_title_preference_username)));\r\n mEditTextUsername.setTitle(this.getText(ma.alternativeTermForResourceId(R.string.title_preference_username)));\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(!state.builder.isPersistent() && !ma.isUsernameValidToStartAddingNewAccount());\r\n \r\n boolean isNeeded = ma.canChangeOAuth();\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(isNeeded);\r\n if (isNeeded) {\r\n mOAuth.setTitle(R.string.title_preference_oauth);\r\n mOAuth.setSummary(ma.isOAuth() ? R.string.summary_preference_oauth_on : R.string.summary_preference_oauth_off);\r\n } else {\r\n mOAuth.setTitle(\"\");\r\n mOAuth.setSummary(\"\");\r\n }\r\n \r\n isNeeded = ma.getConnection().isPasswordNeeded();\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n if (isNeeded) {\r\n mEditTextPassword.setTitle(R.string.title_preference_password);\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n } else {\r\n summary = null;\r\n mEditTextPassword.setTitle(\"\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(isNeeded);\r\n \r\n int titleResId;\r\n boolean addAccountOrVerifyCredentialsEnabled = ma.isOAuth() || ma.getCredentialsPresent();\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (state.builder.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n if (!ma.isUsernameValidToStartAddingNewAccount()) {\r\n addAccountOrVerifyCredentialsEnabled = false;\r\n }\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n addAccountOrVerifyCredentials.setTitle(titleResId);\r\n addAccountOrVerifyCredentials.setSummary(summary);\r\n addAccountOrVerifyCredentials.setEnabled(addAccountOrVerifyCredentialsEnabled);\r\n }",
"public interface PreferencesHelper {\r\n\r\n int getUserLoggedInMode();\r\n\r\n void setUserLoggedInMode(DataManager.LoggedInMode mode);\r\n\r\n String getUserName();\r\n\r\n void setUserName(String userName);\r\n\r\n String getAccessToken();\r\n\r\n void setAccessToken(String accessToken);\r\n\r\n String getUserProfilePicUrl();\r\n\r\n void setUserProfilePicUrl(String profilePicUrl);\r\n\r\n String getStoredProfilePicPath();\r\n\r\n void setStoredProfilePicPath(String profilePicPath);\r\n\r\n}",
"public String getPref(String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t String value = settings.getString(key, \"\");\n\t return value;\n\t}",
"public void retrieveDataFromSharedPreference(View view) {\n\n name = sharedPreferences.getString(\"name\",\"no data\");\n email = sharedPreferences.getString(\"email\",\"no data\");\n\n nameEditText.setText(name);\n emailEditText.setText(email);\n\n }",
"public String getPreferences(String key) {\n return getPreferencesImpl(key);\n }",
"public String getPreferences(String key) {\n return getPreferencesImpl(key);\n }",
"private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }",
"@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.difficulty_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.word_category_key));\n }",
"public interface PrefsKey {\n\n String Ssid = \"Ssid\";\n String HotKeys = \"HotKeys\";\n String HistoryKeys = \"HistoryKeys\";\n String HistoryCooking = \"HistoryCooking\";\n\n String Guided = \"Guided\";\n}",
"private void getDataFromSharedPrefernce() {\r\n\r\n\t\tprofileImageString = mSharedPreferences_reg.getString(\"ProfileImageString\",\"\");\r\n\t\tpsedoName = mSharedPreferences_reg.getString(\"PseudoName\", \"\");\r\n\t\tprofiledescription = mSharedPreferences_reg.getString(\"Pseudodescription\", \"\");\r\n\r\n\t\tsetDataToRespectiveFields();\r\n\t}",
"private void savePreferences() {\n SharedPrefStatic.mJobTextStr = mEditTextJobText.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobSkillStr = mEditTextSkill.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobLocationStr = mEditTextLocation.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobAgeStr = mEditTextAge.getText().toString().replace(\" \", \"\");\n\n SharedPreferences sharedPref = getSharedPreferences(AppConstants.PREF_FILENAME, 0);\n SharedPreferences.Editor editer = sharedPref.edit();\n editer.putString(AppConstants.PREF_KEY_TEXT, SharedPrefStatic.mJobTextStr);\n editer.putString(AppConstants.PREF_KEY_SKILL, SharedPrefStatic.mJobSkillStr);\n editer.putString(AppConstants.PREF_KEY_LOCATION, SharedPrefStatic.mJobLocationStr);\n editer.putString(AppConstants.PREF_KEY_AGE, SharedPrefStatic.mJobAgeStr);\n\n // The commit runs faster.\n editer.apply();\n\n // Run this every time we're building a query.\n SharedPrefStatic.buildUriQuery();\n SharedPrefStatic.mEditIntentSaved = true;\n }",
"public String getUserKey()\r\n {\r\n return getAttribute(\"userkey\");\r\n }",
"protected void storeSharedPrefs(String un2, String pwd2) {\n \teditor.putString(\"username\", un2);\n \teditor.putString(\"password\", pwd2); \t\n\t\teditor.commit(); //Commiting changes\n\t}",
"public String getPrefData(String key) {\n String data = pref.getString(key, null);\n return data;\n }",
"private void saveValues() {\n for (Map.Entry<EditText, Integer> e : mPrefKeys.entrySet()) {\n // If the field is disabled, add the DEACTIVATED marker to the value of the field\n if (e.getKey().isEnabled())\n Pref.put(this, e.getValue(), e.getKey().getText().toString());\n else\n Pref.put(this, e.getValue(), Data.DEACTIVATED_MARKER + e.getKey().getText().toString());\n }\n\n }",
"public void testKeyGeneratedFromUserPassword() {\n final String prefFileName = generatePrefFileNameForTest();\n\n SecurePreferences securePrefs = new SecurePreferences(getContext(), \"password\", prefFileName);\n SharedPreferences normalPrefs = getContext().getSharedPreferences(prefFileName, Context.MODE_PRIVATE);\n\n Map<String, ?> allTheSecurePrefs = securePrefs.getAll();\n Map<String, ?> allThePrefs = normalPrefs.getAll();\n\n assertTrue(\n \"the preference file should not contain any enteries as the key is generated via user password.\",\n allThePrefs.isEmpty());\n\n\n //clean up here as pref file created for each test\n deletePrefFile(prefFileName);\n }",
"private void saveSharedPref() {\n SharedPreferences.Editor editor = this.sharedPreferences.edit();\n if (checkBox.isChecked()) {\n editor.putBoolean(Constants.SP_IS_REMEMBERED_KEY, true);\n }\n editor.apply();\n }",
"public void savingPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n\n //tao doi tuong editer\n SharedPreferences.Editor editor = sharedPreferences.edit();\n String user = txtUserName.getText().toString();\n String pass = txtPassWord.getText().toString();\n\n boolean bchk = chkSave.isChecked();\n\n\n if(!bchk)\n {\n //xoa du lieu luu truoc do\n editor.clear();\n }\n else\n {\n editor.putString(\"user\",user);\n editor.putString(\"pass\",pass);\n editor.putBoolean(\"checked\",bchk);\n }\n\n editor.commit();\n\n\n }",
"public String getPreference(String key) {\n return prefs.get(key, null);\n }",
"private String getSavedEmail(){\n return new PrefManager(this).getEmail();\n }",
"public void shared() {\n\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n String username = userstring;\n\n SharedPreferences sharedlog = getSharedPreferences(\"usernamelast\" , MODE_PRIVATE);\n SharedPreferences.Editor editorlogin = sharedlog.edit();\n editorlogin.putString(\"usernamelast\", username);\n editorlogin.apply();\n\n SharedPreferences sharedPref = getSharedPreferences(\"email\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"email\", Email);\n editor.apply();\n //Los estados los podemos setear en la siguiente actividad\n SharedPreferences sharedPref2 = getSharedPreferences(\"password\", MODE_PRIVATE);\n SharedPreferences.Editor editor2 = sharedPref2.edit();\n editor2.putString(\"password\", Password);\n editor2.apply();\n\n\n }",
"public void saveString(int prefKey, String value) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(getResources().getString(prefKey), value);\n editor.apply();\n }",
"@Override\n public void saveValue(String key, Object value) {\n SharedPreferences.Editor editor = preferences.edit();\n if (value instanceof String) {\n editor.putString(key, (String) value);\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n } else if (value instanceof Float) {\n editor.putFloat(key, (Float) value);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n }\n editor.apply();\n }",
"public String getPreference(String key) {\n return preferences.get(key).value;\n }",
"public void savePreferences(SharedPreferences preferences){\r\n\t\tSharedPreferences.Editor editor = preferences.edit();\r\n editor.putBoolean(\"initialSetupped\", initialSetuped);\r\n editor.putString(\"username\", userName);\r\n editor.putString(\"useremail\", userEmail);\r\n editor.putString(\"recipientemail\", recipientEmail);\r\n editor.putBoolean(\"option\", option.isPound());\r\n\r\n // Commit the edits!\r\n editor.commit();\r\n\t}",
"private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }",
"public static void savePreferences(Context context, String strKey, String strValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(strKey, strValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n\n }\n }",
"public interface GeneralPreferenceHelper {\n String PREF_USER_NAME = \"pref_name_user\";\n String PREF_ENABLE_SOCIAL = \"pref_social_recomendation\";\n}",
"DataStoreInfo getUserDataStoreInfo();",
"public void showPreference(View v){\n String prefvalue = settings.getString(\"key1\",\"Not Found\");\n cHelpers.show_toast(this,\"key1 was \"+prefvalue);\n }",
"private void storeUser(User user){\n // instantiate SharedPreferences\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n // stores each attribute in a variable, if attribute is null the editor will clear the corresponding value.\n editor.putString(KEY_USER, user.toJSONString());\n // commit changes\n editor.apply();\n }",
"public interface PreferenceHelper {\r\n // Preference Name\r\n String PREFERENCE_NAME = \"Embedded_Downloads_preference\";\r\n // Preference mode\r\n int PRIVATE_MODE = 0;\r\n String INITIAL_START = \"initial_start\";\r\n String WALLET_ADDRESS = \"wallet_address\";\r\n String WALLET_NAME = \"wallet_name\";\r\n String TRANSACTION_WALLET_ADDRESS = \"transaction_wallet_address\";\r\n String WALLET_POSITION =\"wallet_position\";\r\n String CALL_TRANSACTION_STATUS = \"call_transaction_status\";\r\n String CALL_INCOMING = \"call_incoming\";\r\n String CALL_OUTGOING = \"call_outgoing\";\r\n}",
"public void restoringPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n //lay gia tri checkbook, k co mac dinh la false\n boolean bchk = sharedPreferences.getBoolean(\"checked\",false);\n if(bchk)\n {\n //lay user, pass, neu k co mac dinh gia tri la rong\n String user = sharedPreferences.getString(\"user\",\"\");\n String pass = sharedPreferences.getString(\"pass\",\"\");\n txtUserName.setText(\"user\");\n txtPassWord.setText(\"pass\");\n }\n\n chkSave.setChecked(bchk);\n }",
"public void putRoleValue(String key, String value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putString(key,value);\n editor.apply();\n }",
"public static void savePreferences(Context context, String strKey, Boolean blnValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(strKey, blnValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n }\n }",
"Object getAuthInfoKey();",
"Preferences userRoot();",
"public static String getPrefStringData(Context context, String key) {\n try {\n SharedPreferences pref = context.getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n return pref.getString(key, \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t str1=editText1.getText().toString();\n\t\t\t\t\tSharedPreferences preferences=getSharedPreferences(\"user\",Context.MODE_PRIVATE);\n\t\t\t Editor editor=preferences.edit();\n\t\t\t editor.putString(\"str1\", str1);\n\t\t\t editor.commit();\n\t\t\t \n\t\t\t}",
"void setPreference(String user, String preferenceName, String value) throws OntimizeJEERuntimeException;",
"public void saveName(String name, Context context){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n prefs.edit().putString(\"spillernavn\", name).apply();\n }",
"@JavascriptInterface\n public String getPreference(String name) {\n Log.d(TAG, \"getPreference: \" + name);\n return preferences.getString(name, \"\");\n }",
"private void getAutonomousPrefs() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(hardwareMap.appContext);\n alliance = preferences.getString(\"AllianceColor\", \"error\");\n frontBack = preferences.getString(\"FrontBack\", \"error\");\n getPartnerGlyph = preferences.getBoolean(\"PickupAllianceGlyph\", false);\n getPitGlyph = preferences.getBoolean(\"PickupPitGlyph\", false);\n }",
"public void storeChoicePrefs(ResultDetail restaurant) {\n SharedPreferences.Editor editor = prefs.edit();\n //put the data\n Gson gson = new Gson();\n String json = gson.toJson(restaurant);\n editor.putString(RESTAURANTS, json);\n //close the file\n editor.apply();\n }",
"private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1OfActiveChallenge);\n editor.putString(\"dateOfLastEdit\", dateOfLastEdit);\n editor.putFloat(\"goal\", goal);\n editor.putFloat(\"carry\", carry);\n editor.putInt(\"challengeDaysRunning\", challengeDaysRunning);\n editor.commit();\n }",
"public void storeLogUser(UserModel user)\n {\n\n // convert User object into String\n //convert to string using gson\n String stringUser= gson.toJson(user);\n\n //creating an Editor object ; to Edit(write into the file)\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n //storing the VoiceMArkerModel object\n editor.putString(\"LogUser\",stringUser);\n\n //apply the changes\n editor.apply();\n }",
"public IPreferenceStore getPreferenceStore(String name);",
"@Override\n public void saveString(String key, String value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putString(key, checkNotNull(value));\n prefs.commit();\n }",
"private void saveCurrentPreferences() {\n\t\toldUnitType = preferences.getInt(\"displayUnit\", UnitType.FOOTINCH.getId());\n\t\toldPrecision = preferences.getInt(\"precision\", 16);\n\t\toldRounding = preferences.getBoolean(\"roundUp\", true);\n\t\toldDisplayOptions = preferences.getString(\"displayOptions\", context.getString(R.string.displayAutomatic));\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.preferences);\n\n SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n\n //String ip = SP.getString(\"ip\", \"NULL\");\n // Config.ip = SP.getString(\"ip\", \"NULL\");\n // Log.e(\"IP\",Config.ip );\n String language = SP.getString(\"language\",\"NULL\");\n // Toast.makeText(getApplicationContext(),Config.ip,Toast.LENGTH_SHORT).show();\n //Toast.makeText(getApplicationContext(),language,Toast.LENGTH_SHORT).show();\n }",
"public void saveDataToSharedPreference(View view) {\n email = emailEditText.getText().toString();\n name = nameEditText.getText().toString();\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n editor.putString(\"name\",name);\n editor.putString(\"email\",email);\n editor.apply();\n\n Toast.makeText(context, \"Data saved successfully into SharedPreferences!\", Toast.LENGTH_SHORT).show();\n clearText();\n }",
"public static void saveUserConstituencyName(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_CONSTITUENCY_NAME, type);\n editor.apply();\n }",
"public String getPrefsAutoLoadDescription();",
"protected abstract IPreferenceStore getPreferenceStore();"
]
| [
"0.6952658",
"0.6900851",
"0.67885846",
"0.67508715",
"0.6699854",
"0.6699854",
"0.6699854",
"0.6699854",
"0.6653818",
"0.6651611",
"0.66180253",
"0.66068727",
"0.65999335",
"0.6557622",
"0.65532935",
"0.6498802",
"0.64824784",
"0.6465273",
"0.64388907",
"0.643062",
"0.63985753",
"0.639408",
"0.6371174",
"0.6368478",
"0.63497806",
"0.6346985",
"0.6318924",
"0.6312355",
"0.6311588",
"0.630482",
"0.6300459",
"0.6300459",
"0.6251459",
"0.624618",
"0.62411344",
"0.62399596",
"0.62051755",
"0.61898315",
"0.6173274",
"0.6156596",
"0.61395055",
"0.6137094",
"0.61338156",
"0.6117076",
"0.61166006",
"0.6102471",
"0.6094351",
"0.6087882",
"0.6081038",
"0.6071173",
"0.6068654",
"0.6068325",
"0.6068325",
"0.60445476",
"0.60144717",
"0.60110605",
"0.60086215",
"0.6008293",
"0.59925556",
"0.59882075",
"0.59744996",
"0.5972621",
"0.59614515",
"0.5958443",
"0.595699",
"0.594159",
"0.59192014",
"0.5918488",
"0.5910755",
"0.5909763",
"0.590305",
"0.5897541",
"0.5894727",
"0.5887382",
"0.58854717",
"0.58835876",
"0.5883144",
"0.58773935",
"0.5869518",
"0.58563435",
"0.5846565",
"0.58343536",
"0.5820956",
"0.58194274",
"0.5811087",
"0.5804263",
"0.57998425",
"0.5789753",
"0.5781983",
"0.57809556",
"0.5774571",
"0.57736",
"0.57693344",
"0.57674545",
"0.5761887",
"0.5753069",
"0.57476777",
"0.57476145",
"0.57469505",
"0.57430375",
"0.5735079"
]
| 0.0 | -1 |
These conditions are pulled from my withdraw/deposit conditions | @Override
public boolean isValid() {
return (27 - Inventory.getAll().length <= Inventory.find("Soft clay").length)
|| (Inventory.find("Soft clay").length < 1 || Inventory
.find("Astral rune").length < 1)
&& !Banking.isBankScreenOpen()
&& GlassBlower.antiban.canInteractObject();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void makeWithdraw() {\n\t\t\r\n\t}",
"public static void main(String[]args){\n\t\n\tdouble budget =500;\n\t\n\tdouble phone =250.0;\n\tdouble watch =105.5;\n\tdouble bag = 80.00;\n\t\n\t\n\tif(budget< 80.0) {\n\t\tSystem.out.println(\"Cannot buy anything\");\n\t\t\n\t}if (budget >=435.5) {\n\t\tSystem.out.println(\"You can buy all items\");\n\t\n\t\t\n\t} else if (budget >= phone + watch) {\n\t\tSystem.out.println(\"You can buy Phone +Watch OR Phone + Bag OR watch + Bag\");\n\t\t\n\t} else if (budget >= phone +bag); {\n\t\tSystem.out.println(\"You can buy Phone OR watch + bag\");\n\t\t\t\t\n\t if (budget >= watch) {\n\t\tSystem.out.println(\"You can buy a watch or a bag\");\n\t\t\n\t} else {\n\t\tSystem.out.println(\"You can buy a bag\");}\n\t\n\t}\n\t}",
"@Test\n\tpublic void withdrawTest(){\n\t\tCustomer cus = new Customer(\"wgl\", myDate, \"Beijing\");\n\t\tAccount cAcc = new CurrentAccount(cus);\n\t\tbc.withdraw(cAcc, 300);\n\t\tboolean flag = false;\n\t\tif(cAcc.getBalance() == -300.0){\n\t\t\tflag = true;\n\t\t}\n\t\tassertTrue(flag);\n\t}",
"@Override\n protected void withdraw(int request, boolean isOverdraft){\n if(request>0){\n request += SERVICE_FEE;\n }\n //need to change both balances just in case there was a LARGE_DEPOSIT \n //making it so that the 2 balance values differ\n setBalance(getBalance() - request);\n setBalanceAvailable(getBalanceAvailable() - request);\n }",
"public static void main(String[] args) {\n int moneyAmount = 10;\n\n int capuccinoPrice = 180;\n int lattePrice = 120;\n int espressoPrice = 80;\n int pureWaterPrise = 20;\n\n var canBuyAnything = false;\n var isMilkEnough = true;\n\n if(moneyAmount >= capuccinoPrice && isMilkEnough) {\n System.out.println(\"Вы можете купить капуччино\");\n canBuyAnything = true;\n }\n\n if(moneyAmount >= lattePrice && isMilkEnough) {\n System.out.println(\"Вы можете купить латте\");\n canBuyAnything = true;\n }\n\n if(moneyAmount >= espressoPrice) {\n System.out.println(\"Вы можете купить еспрессо\");\n canBuyAnything = true;\n }\n\n if(moneyAmount >= pureWaterPrise) {\n System.out.println(\"Вы можете купить воду\");\n canBuyAnything = true;\n }\n\n if(canBuyAnything == false) {\n System.out.println(\"Недостаточно денег\");\n }\n }",
"public abstract boolean withdraw(float amount);",
"private void makeDeposit() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n boolean freeShipping = true;\n boolean onSale = true;\n boolean hasItem = false;\n String item = \"Wooden Spoon\";\n\n if (freeShipping && onSale) {\n System.out.println(\"Purchase the - \" + item);\n } else {\n System.out.println(\"Next time when item \" + item + \" on sale\");\n }\n System.out.println(\"==================================\");\n\n // 2nd job offer selector\n\n String location = \"Toronto\";\n double salary = 85_000.0;\n boolean remote = true;\n boolean hasBenefit = true;\n\n if (location.equals(\"Toronto\") && salary == 85_000 && remote && hasBenefit) {\n\n System.out.println(\"Accept job offer\");\n } else {\n System.out.println(\"Reject the offer\");\n }\n System.out.println(\"==================================\");\n // 3rd practice OR(||)\n System.out.println(\"false || true = \" + (false || true)); // true\n System.out.println(\"true || false = \" + (false || true)); // true\n System.out.println(\"==================================\");\n\n // 4th practice OR||\n\n int apples = 10;\n int oranges = 8;\n\n if (apples > 11 || oranges > 10) {\n System.out.println(\"I have enough fruits\");\n } else {\n System.out.println(\"Go to Giant buy fruits\");\n\n }\n System.out.println(\"==================================\");\n\n // 4th practice CitySelector\n\n String city = \"VA\";\n if (city.equals(\"LA\") || city.equals(\"Toronto\")) {\n System.out.println(\"Willing to relocate LA\");\n\n } else {\n System.out.println(\"Not considering Seattle\");\n }\n System.out.println(\"==================================\");\n\n char grade = 'A';\n if (grade == 'A' || grade == 'B' || grade == 'C') {\n System.out.println(\"passed with grade\");\n\n } else if (grade == 'D') {\n System.out.println(\"quality for retake\");\n } else if(grade == 'E') {\n\n } else {\n System.out.println(\"invalid grade\");\n }\n\n // 4 th dealership\n\n double budget = 5000.0;\n String model = (\"Toyota\");\n double carPrice = 4500;\n\n if (carPrice == 4500 && (model.equals(\"Toyota\") || model.equals(\"Honda\"))) {\n\n System.out.println(\"Ready to purchase + \" + model + \", price = \" + carPrice);\n\n }else {\n System.out.println(\"Not interested in model = \" + model + \", price = \" + carPrice);\n }\n\n // ! not Operator\n\n\n System.out.println(\"!true = \" + (!true));\n int age = 5;\n if (!(age < 4)) {\n System.out.println(\"Need to seat in child seat = \" + age);\n }else {\n System.out.println(\"Can seat in adult seat = \" + age);\n }\n\n boolean isSmokingAllowed = false;\n\n if (!isSmokingAllowed) {\n System.out.println(\"Need to exit and smoke outside\");\n }else {\n System.out.println(\"You can smoke\");\n }\n\n String inputPassword = \"abd123\";\n String correctPassword = \"123abc\";\n\n if (!inputPassword.equals(\"abc123\")) {\n\n System.out.println(\"Access granted\");\n }else {\n System.out.println(\"Access denied\" );\n }\n\n\n\n\n }",
"boolean canAcceptTrade();",
"private void givenExchangeRateExistsForABaseAndDate() {\n }",
"private final void d(com.iqoption.core.microservices.billing.response.deposit.d r21) {\n /*\n r20 = this;\n r0 = r20;\n r1 = r20.asp();\n r1 = r1.cCg;\n r2 = \"binding.depositAmountEdit\";\n kotlin.jvm.internal.i.e(r1, r2);\n if (r21 == 0) goto L_0x0158;\n L_0x000f:\n r2 = r0.cFG;\n r3 = 1;\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r2 = r1.getText();\n r2 = r2.toString();\n r4 = r0.cFG;\n r2 = kotlin.jvm.internal.i.y(r2, r4);\n r2 = r2 ^ r3;\n if (r2 == 0) goto L_0x0027;\n L_0x0025:\n goto L_0x0158;\n L_0x0027:\n r2 = r20.ass();\n r4 = 0;\n if (r2 == 0) goto L_0x0068;\n L_0x002e:\n r2 = (java.lang.Iterable) r2;\n r2 = r2.iterator();\n L_0x0034:\n r5 = r2.hasNext();\n if (r5 == 0) goto L_0x0050;\n L_0x003a:\n r5 = r2.next();\n r6 = r5;\n r6 = (com.iqoption.core.features.c.a) r6;\n r6 = r6.getName();\n r7 = r21.getName();\n r6 = kotlin.jvm.internal.i.y(r6, r7);\n if (r6 == 0) goto L_0x0034;\n L_0x004f:\n goto L_0x0051;\n L_0x0050:\n r5 = r4;\n L_0x0051:\n r5 = (com.iqoption.core.features.c.a) r5;\n if (r5 == 0) goto L_0x0068;\n L_0x0055:\n r6 = r5.Xy();\n if (r6 == 0) goto L_0x0068;\n L_0x005b:\n r7 = 0;\n r8 = 0;\n r9 = 1;\n r10 = 0;\n r11 = 0;\n r12 = 19;\n r13 = 0;\n r2 = com.iqoption.core.util.e.a(r6, r7, r8, r9, r10, r11, r12, r13);\n goto L_0x0069;\n L_0x0068:\n r2 = r4;\n L_0x0069:\n r5 = r0.ayL;\n if (r5 == 0) goto L_0x0084;\n L_0x006d:\n r5 = r5.Km();\n if (r5 == 0) goto L_0x0084;\n L_0x0073:\n r5 = r5.aar();\n if (r5 == 0) goto L_0x0084;\n L_0x0079:\n r6 = r21.getName();\n r5 = r5.get(r6);\n r5 = (java.util.ArrayList) r5;\n goto L_0x0085;\n L_0x0084:\n r5 = r4;\n L_0x0085:\n if (r2 != 0) goto L_0x00a5;\n L_0x0087:\n if (r5 == 0) goto L_0x00a5;\n L_0x0089:\n r2 = r20.asr();\n r2 = r2.getItems();\n r2 = kotlin.collections.u.bV(r2);\n r2 = (com.iqoption.deposit.light.d.b) r2;\n if (r2 == 0) goto L_0x00a4;\n L_0x0099:\n r2 = r2.asL();\n if (r2 == 0) goto L_0x00a4;\n L_0x009f:\n r2 = com.iqoption.deposit.f.a(r2);\n goto L_0x00a5;\n L_0x00a4:\n r2 = r4;\n L_0x00a5:\n r6 = r0.cxs;\n r7 = r0.cFE;\n r8 = r4;\n r8 = (java.lang.Double) r8;\n if (r2 != 0) goto L_0x00f4;\n L_0x00ae:\n r9 = r6 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n if (r9 == 0) goto L_0x00f4;\n L_0x00b2:\n if (r7 == 0) goto L_0x00f4;\n L_0x00b4:\n r6 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r6;\n r6 = r6.aaI();\n if (r6 == 0) goto L_0x00cd;\n L_0x00bc:\n r7 = r7.getName();\n r6 = r6.get(r7);\n r6 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d.b) r6;\n if (r6 == 0) goto L_0x00cd;\n L_0x00c8:\n r6 = r6.OL();\n goto L_0x00ce;\n L_0x00cd:\n r6 = r4;\n L_0x00ce:\n if (r6 == 0) goto L_0x00f5;\n L_0x00d0:\n r7 = r0.f(r6);\n if (r7 != 0) goto L_0x00f5;\n L_0x00d6:\n r8 = r6.doubleValue();\n r10 = 0;\n r11 = 0;\n r12 = 1;\n r13 = 0;\n r14 = 0;\n r15 = 0;\n r16 = 0;\n r2 = java.util.Locale.US;\n r7 = \"Locale.US\";\n kotlin.jvm.internal.i.e(r2, r7);\n r18 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n r19 = 0;\n r17 = r2;\n r2 = com.iqoption.core.util.e.a(r8, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19);\n goto L_0x00f5;\n L_0x00f4:\n r6 = r8;\n L_0x00f5:\n if (r2 == 0) goto L_0x00f8;\n L_0x00f7:\n goto L_0x00fa;\n L_0x00f8:\n r2 = \"\";\n L_0x00fa:\n r0.cFG = r2;\n r2 = (java.lang.CharSequence) r2;\n r1.setText(r2);\n r1 = r2.length();\n r2 = 0;\n if (r1 != 0) goto L_0x010a;\n L_0x0108:\n r1 = 1;\n goto L_0x010b;\n L_0x010a:\n r1 = 0;\n L_0x010b:\n if (r1 == 0) goto L_0x0155;\n L_0x010d:\n r1 = r0.cxs;\n r7 = r1 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n if (r7 != 0) goto L_0x0114;\n L_0x0113:\n r1 = r4;\n L_0x0114:\n r1 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r1;\n if (r1 == 0) goto L_0x011e;\n L_0x0118:\n r1 = r1.aaE();\n if (r1 == r3) goto L_0x0155;\n L_0x011e:\n if (r6 == 0) goto L_0x0122;\n L_0x0120:\n r1 = r6;\n goto L_0x0138;\n L_0x0122:\n if (r5 == 0) goto L_0x0137;\n L_0x0124:\n r5 = (java.util.List) r5;\n r1 = kotlin.collections.u.bV(r5);\n r1 = (com.iqoption.core.microservices.billing.response.deposit.e) r1;\n if (r1 == 0) goto L_0x0137;\n L_0x012e:\n r5 = r1.ZC();\n r1 = java.lang.Double.valueOf(r5);\n goto L_0x0138;\n L_0x0137:\n r1 = r4;\n L_0x0138:\n if (r1 == 0) goto L_0x013b;\n L_0x013a:\n goto L_0x0141;\n L_0x013b:\n r5 = 0;\n r1 = java.lang.Double.valueOf(r5);\n L_0x0141:\n r1 = r0.f(r1);\n if (r1 == 0) goto L_0x014b;\n L_0x0147:\n r4 = r1.getErrorMessage();\n L_0x014b:\n if (r1 == 0) goto L_0x0151;\n L_0x014d:\n r2 = r1.aso();\n L_0x0151:\n r0.u(r4, r2);\n goto L_0x0158;\n L_0x0155:\n r0.u(r4, r2);\n L_0x0158:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.d(com.iqoption.core.microservices.billing.response.deposit.d):void\");\n }",
"private boolean allocatePaySelection() {\n /**\n *\n * \t\tModificación para diferenciar\n *\tcobros/pagos en Consulta de Asignación\n *\n */\n MAllocationHdr alloc;\n\n if (isReceipt()) {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"IsReceipt\") + \": \" + getDocumentNo() + \" [n]\", get_TrxName());\n } else {\n alloc = new MAllocationHdr(getCtx(), false, getDateTrx(), getC_Currency_ID(),\n Msg.translate(getCtx(), \"C_Payment_ID\") + \": \" + getDocumentNo() + \" [n]\", get_TrxName());\n }\n alloc.setAD_Org_ID(getAD_Org_ID());\n\n String sql = \"SELECT psc.C_BPartner_ID, psl.C_Invoice_ID, psl.IsSOTrx, \" //\t1..3\n + \" psl.PayAmt, psl.DiscountAmt, psl.DifferenceAmt, psl.OpenAmt \"\n + \"FROM C_PaySelectionLine psl\"\n + \" INNER JOIN C_PaySelectionCheck psc ON (psl.C_PaySelectionCheck_ID=psc.C_PaySelectionCheck_ID) \"\n + \"WHERE psc.C_Payment_ID=?\";\n PreparedStatement pstmt = null;\n try {\n pstmt = DB.prepareStatement(sql, get_TrxName());\n pstmt.setInt(1, getC_Payment_ID());\n ResultSet rs = pstmt.executeQuery();\n while (rs.next()) {\n int C_BPartner_ID = rs.getInt(1);\n int C_Invoice_ID = rs.getInt(2);\n if (C_BPartner_ID == 0 && C_Invoice_ID == 0) {\n continue;\n }\n boolean isSOTrx = \"Y\".equals(rs.getString(3));\n BigDecimal PayAmt = rs.getBigDecimal(4);\n BigDecimal DiscountAmt = rs.getBigDecimal(5);\n BigDecimal WriteOffAmt = rs.getBigDecimal(6);\n BigDecimal OpenAmt = rs.getBigDecimal(7);\n BigDecimal OverUnderAmt = OpenAmt.subtract(PayAmt).subtract(DiscountAmt).subtract(WriteOffAmt);\n //\n if (alloc.get_ID() == 0 && !alloc.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Hdr\");\n rs.close();\n pstmt.close();\n return false;\n }\n MAllocationLine aLine = null;\n if (isSOTrx) {\n aLine = new MAllocationLine(alloc, PayAmt,\n DiscountAmt, WriteOffAmt, OverUnderAmt);\n } else {\n aLine = new MAllocationLine(alloc, PayAmt.negate(),\n DiscountAmt.negate(), WriteOffAmt.negate(), OverUnderAmt.negate());\n }\n aLine.setDocInfo(C_BPartner_ID, 0, C_Invoice_ID);\n aLine.setC_Payment_ID(getC_Payment_ID());\n if (!aLine.save(get_TrxName())) {\n log.log(Level.SEVERE, \"Could not create Allocation Line\");\n }\n }\n rs.close();\n pstmt.close();\n pstmt = null;\n } catch (Exception e) {\n log.log(Level.SEVERE, \"allocatePaySelection\", e);\n }\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n pstmt = null;\n } catch (Exception e) {\n pstmt = null;\n }\n\n //\tShould start WF\n boolean ok = true;\n if (alloc.get_ID() == 0) {\n log.fine(\"No Allocation created - C_Payment_ID=\"\n + getC_Payment_ID());\n ok = false;\n } else {\n alloc.processIt(DocAction.ACTION_Complete);\n ok = alloc.save(get_TrxName());\n m_processMsg = \"@C_AllocationHdr_ID@: \" + alloc.getDocumentNo();\n }\n return ok;\n }",
"private void createTransaction() {\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n if(mCategory == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Category_Income_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(etAmount.getText().toString().replaceAll(\",\", \"\"));\n if(amount < 0) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Amount_Invalid));\n return;\n }\n\n int CategoryId = mCategory != null ? mCategory.getId() : 0;\n String Description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n boolean isDebtValid = true;\n // Less: DebtCollect, More: Borrow\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n }\n\n if(isDebtValid) {\n Transaction transaction = new Transaction(0,\n TransactionEnum.Income.getValue(),\n amount,\n CategoryId,\n Description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n long newTransactionId = mDbHelper.createTransaction(transaction);\n\n if (newTransactionId != -1) {\n\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) newTransactionId);\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n mDbHelper.deleteTransaction(newTransactionId);\n }\n } else {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n\n if(getFragmentManager().getBackStackEntryCount() > 0) {\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n } else {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));\n }\n }\n\n }",
"public boolean withdrawal (double amount) \r\n {\r\n\r\n boolean result = false;\r\n\r\n if ( ! super.withdrawal (amount) ) \r\n {\r\n System.out.println (\"Using overdraft...\");\r\n if ( ! overdraft.withdrawal (amount-balance) )\r\n System.out.println (\"Overdraft source insufficient.\");\r\n else {\r\n balance = 0;\r\n System.out.println (\"Current Balance on account \" + account + \": \" + balance);\r\n result = true;\r\n }\r\n }\r\n System.out.println ();\r\n\r\n return result;\r\n\r\n }",
"public boolean isBenefitAvailableFor(Account account, Dining dining);",
"private String E19Conditions() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 60;\n int leftMargin = 17;\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_CONDITIONS + \"\\n\\n\");\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 0);\n\n if (data.getRiverstat().getMile() != HydroConstants.MISSING_VALUE) {\n tmp1 = String.format(\"%-6.1f\", data.getRiverstat().getMile());\n }\n if (data.getRiverstat().getDa() != HydroConstants.MISSING_VALUE) {\n tmp2 = String.format(\"%-6.1f\", data.getRiverstat().getDa());\n }\n if (data.getRiverstat().getPool() != HydroConstants.MISSING_VALUE) {\n tmp3 = String.format(\"%-6.1f\", data.getRiverstat().getPool());\n }\n\n buffer.append(String.format(\n \" MILES ABOVE MOUTH: %s%sDRAINAGE AREA: %s%sPOOL STAGE: %s\",\n tmp1, \" \", tmp2, \" \", tmp3));\n buffer.append(\"\\n\\n\\n\");\n\n buffer.append(\" STREAM BED: \");\n\n if (data.getDescrip().getBed() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getBed(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REACH: \");\n if (data.getDescrip().getReach() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getReach(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REGULATION: \");\n if (data.getDescrip().getRes() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRes(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" DIVERSION: \");\n if (data.getDescrip().getDivert() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getDivert(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" WINTER: \");\n if (data.getDescrip().getIce() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getIce(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" TOPOGRAPHY: \");\n if (data.getDescrip().getTopo() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getTopo(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REMARKS: \");\n if (data.getDescrip().getRemark() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRemark(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(0, buffer.toString()));\n\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_CONDITIONS, \"CONDITIONS\", null,\n E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n return buffer.toString();\n }",
"public int withdraw() {\n\t\tif ((acc.getBalance() - keyboard.getAmt()) > acc.getMinimumBalace()) {\r\n\t\t\tif (casher.withdraw(keyboard.getAmt()) == 1) {\r\n\t\t\t\tsetNewBalance();\r\n\t\t\t\t\r\n\t\t\t\treciept.printer(acc.getAccountNumber(), acc.getBalance(), keyboard.getAmt());\r\n\t\t\t\treturn 1;\r\n\t\t\t} else\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 0;\r\n\r\n\t}",
"public abstract boolean isBalanced();",
"public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }",
"public static boolean accountDebitIsPos(String accountType) throws Exception {\n System.String __dummyScrutVar0 = accountType;\n //asset\n if (__dummyScrutVar0.equals(\"0\") || __dummyScrutVar0.equals(\"4\"))\n {\n return true;\n }\n else //expense\n //liability\n //equity //because liabilities and equity are treated the same\n if (__dummyScrutVar0.equals(\"1\") || __dummyScrutVar0.equals(\"2\") || __dummyScrutVar0.equals(\"3\"))\n {\n return false;\n }\n \n return true;\n }",
"boolean withdraw(UUID name, double amount);",
"private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }",
"public void update() {\n\t\n\tif(getBalance() > 0) {\n\t\tcanWithdraw = true;\n\t}else {canWithdraw = false;}//end else statement\n}",
"public void withdrawMoney(double amount, boolean checkingAccount) {\n if (checkingAccount && amount <= checkingBalance) {\n checkingBalance -= amount;\n totalBalance -= amount;\n } else if (!checkingAccount && amount <= savingsBalance) {\n savingsBalance -= amount;\n totalBalance -= amount;\n } else {\n System.out.println(\"Insufficient Funds.\");\n }\n }",
"public boolean canWithdraw(double withdrawalAmount){\n double potentialAmountOwed = withdrawalAmount + Math.abs(super.getCurrentBalance());\n if(potentialAmountOwed < creditLine) return true;\n \n return false;\n }",
"public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}",
"@Test\n\tpublic void testWithdraw() {\n\t\tAccount acc1 = new Account(00000, \"acc1\", true, 1000.00, 0, false);;\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"acc1\", 00000, 0, \"\"));\n\t\ttransactions.add(1, new Transaction(01, \"acc1\", 00000, 50.00, \"\"));\n\t\ttransactions.add(2, new Transaction(00, \"acc1\", 00000, 0, \"\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tArrayList<Account> expected = new ArrayList<>();\n\t\texpected.add(0, new Account(00000, \"acc1\", true, 949.90, 0002, false));\n\n\t\tif (outContent.toString().contains(\"Withdrawl Successful\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"fail withdrawing $50 + fee\", testResult);\n\t}",
"void preWithdraw(double amount) {\n\t\tSystem.out.println(\"Your account is not saver account.\");\n\t}",
"private void validt() {\n\t\t// -\n\t\tnmfkpinds.setPgmInd99(false);\n\t\tstateVariable.setZmsage(blanks(78));\n\t\tfor (int idxCntdo = 1; idxCntdo <= 1; idxCntdo++) {\n\t\t\tproductMaster.retrieve(stateVariable.getXwabcd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00005 Product not found on Product_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OEM0003\", \"XWABCD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - If addition, pull the price from file:\n\t\t\tif (nmfkpinds.funKey06()) {\n\t\t\t\tstateVariable.setXwpric(stateVariable.getXwanpr());\n\t\t\t}\n\t\t\t// -\n\t\t\tstoreMaster.retrieve(stateVariable.getXwaacs());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00006 Store not found on Store_Master\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0369\", \"XWAACS\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstockBalances.retrieve(stateVariable.getXwabcd(), stateVariable.getXwaacs());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00007 Store not found on Stock_Balances or CONDET.Contract_Qty >\n\t\t\t// BR Onhand_Quantity\n\t\t\tif (nmfkpinds.pgmInd99() || (stateVariable.getXwa5qt() > stateVariable.getXwbhqt())) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0370\", \"XWAACS\", msgObjIdx, messages);\n\t\t\t\tnmfkpinds.setPgmInd99(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - Transaction Type:\n\t\t\ttransactionTypeDescription.retrieve(stateVariable.getXwricd());\n\t\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t\t// BR00008 Trn_Hst_Trn_Type not found on Transaction_type_description\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setXwtdsc(all(\"-\", 20));\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0371\", \"XWRICD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// - Unit of measure:\n\t\t\t// BR00009 U_M = 'EAC'\n\t\t\tif (equal(\"EAC\", stateVariable.getXwa2cd())) {\n\t\t\t\tstateVariable.setUmdes(replaceStr(stateVariable.getUmdes(), 1, 11, um[1]));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnmfkpinds.setPgmInd99(true);\n\t\t\t\tmsgObjIdx = setMsgObj(\"OES0372\", \"XWA2CD\", msgObjIdx, messages);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public Masary_Error CheckBillType(String BTC, double CusAmount, String CustId, double serv_balance, double masry_balance, double billamount, double fees, Main_Provider provider, double deductedAmount) {\n Masary_Error Status = new Masary_Error();\n try {\n Masary_Bill_Type bill_type = MasaryManager.getInstance().getBTC(BTC);\n double trunccusamount = Math.floor(CusAmount);\n// double deductedAmount = MasaryManager.getInstance().GetDeductedAmount(Integer.parseInt(CustId), Integer.parseInt(BTC), CusAmount, provider.getPROVIDER_ID());\n if ((deductedAmount > serv_balance) || deductedAmount == -1) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-501\", provider);\n } else if (!bill_type.isIS_PART_ACC() && CusAmount < billamount) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-502\", provider);\n } else if (!bill_type.isIS_OVER_ACC() && CusAmount > billamount && billamount != 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-503\", provider);\n } else if (!bill_type.isIS_ADV_ACC() && billamount == 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-504\", provider);\n } else if (!bill_type.isIS_FRAC_ACC() && (CusAmount - trunccusamount) > 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-505\", provider);\n } else if ((CusAmount > masry_balance) || deductedAmount == -2 || deductedAmount == -3 || deductedAmount == -4) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-506\", provider);\n } else {\n Status = MasaryManager.getInstance().GETMasary_Error(\"200\", provider);\n }\n } catch (Exception ex) {\n\n MasaryManager.logger.error(\"Exception \" + ex.getMessage(), ex);\n }\n\n return Status;\n }",
"public boolean getAccountHasWithdrawLimit(){\n if (currentAccount instanceof SavingAccount){\n return ((SavingAccount)currentAccount).getHasWithdrawLimit();\n \n }\n else if (currentAccount instanceof NetSavingAccount){\n return ((NetSavingAccount)currentAccount).getHasWithdrawLimit();\n }\n else if (currentAccount instanceof ChequeAccount){\n return ((ChequeAccount)currentAccount).getHasWithdrawLimit(); \n }\n else if (currentAccount instanceof FixedAccount){\n return ((FixedAccount)currentAccount).getHasWithdrawLimit();\n }\n else{\n System.out.println(\"Get Account WithdrawLimit (Bool) Account not found\");\n return false;\n }\n }",
"boolean hasAccountBudget();",
"private void updateTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(inputtedAmount);\n int categoryId = mCategory != null ? mCategory.getId() : 0;\n String description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n // Less: Repayment, More: Lend\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n\n boolean isDebtValid = true;\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n\n } // End DebtType() == Category.EnumDebt.LESS\n if(isDebtValid) {\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n Debt debt = mDbHelper.getDebtByTransactionId(mTransaction.getId());\n debt.setCategoryId(mCategory.getId());\n debt.setAmount(amount);\n debt.setPeople(tvPeople.getText().toString());\n\n int debtRow = mDbHelper.updateDebt(debt);\n if(debtRow == 1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } else {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) mTransaction.getId());\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } // End create new Debt\n\n } // End Update transaction OK\n } // End isDebtValid\n\n } else { // CATEGORY NORMAL\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n LogUtils.logLeaveFunction(Tag);\n }",
"private boolean shouldDisplay(double balance) {\n\t\tif((accountType==MenuOption.CREDIT_BALANCE) && (balance<0))\r\n\t\t\treturn true;\r\n\t\telse if ((accountType==MenuOption.DEBIT_BALANCE) && (balance>0))\r\n\t\t\treturn true;\r\n\t\telse if ((accountType==MenuOption.ZERO_BALANCE) && (balance==0))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"static void primitiveBoolean() {\n\n double coveragerByInsurance = 0.8;\n double billAmount = 1000.0;\n double amountPaidByInsurance = 0.0;\n double amountPaidByPatient = billAmount;\n if (isInsured) {\n amountPaidByInsurance = billAmount * coveragerByInsurance;\n amountPaidByPatient = billAmount - amountPaidByInsurance;\n }\n System.out.println(\"AmountPaidByInsurance=\" + amountPaidByInsurance);\n System.out.println(\"AmountPaidBypatient=\" + amountPaidByPatient);\n }",
"protected KualiDecimal calculatePendEncum1(boolean isYearEndDocument, String extrnlEncumFinBalanceTypCd, String intrnlEncumFinBalanceTypCd, String preencumbranceFinBalTypeCd, Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String acctSufficientFundsFinObjCd, boolean isEqualDebitCode, List expenditureCodes) {\n Criteria criteria = new Criteria();\n\n Criteria sub1 = new Criteria();\n sub1.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, extrnlEncumFinBalanceTypCd);\n Criteria sub1_1 = new Criteria();\n sub1_1.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, intrnlEncumFinBalanceTypCd);\n Criteria sub1_2 = new Criteria();\n sub1_2.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, preencumbranceFinBalTypeCd);\n sub1_1.addOrCriteria(sub1_2);\n sub1.addOrCriteria(sub1_1);\n criteria.addOrCriteria(sub1);\n\n\n criteria.addEqualTo(OLEConstants.UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME, universityFiscalYear);\n criteria.addEqualTo(OLEConstants.CHART_OF_ACCOUNTS_CODE_PROPERTY_NAME, chartOfAccountsCode);\n criteria.addEqualTo(OLEConstants.ACCOUNT_NUMBER_PROPERTY_NAME, accountNumber);\n criteria.addEqualTo(OLEConstants.ACCOUNT_SUFFICIENT_FUNDS_FINANCIAL_OBJECT_CODE_PROPERTY_NAME, acctSufficientFundsFinObjCd);\n criteria.addIn(OLEConstants.FINANCIAL_OBJECT_TYPE_CODE, expenditureCodes);\n\n if (isEqualDebitCode) {\n criteria.addEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n else {\n criteria.addNotEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n\n criteria.addNotEqualTo(OLEConstants.DOCUMENT_HEADER_PROPERTY_NAME + \".\" + OLEConstants.DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME, OLEConstants.DocumentStatusCodes.CANCELLED);\n\n if (isYearEndDocument) {\n criteria.addLike(OLEConstants.FINANCIAL_DOCUMENT_TYPE_CODE, YEAR_END_DOC_PREFIX);\n }\n else {\n criteria.addNotLike(OLEConstants.FINANCIAL_DOCUMENT_TYPE_CODE, YEAR_END_DOC_PREFIX);\n }\n\n ReportQueryByCriteria reportQuery = QueryFactory.newReportQuery(GeneralLedgerPendingEntry.class, criteria);\n reportQuery.setAttributes(new String[] { \"sum(\" + OLEConstants.TRANSACTION_LEDGER_ENTRY_AMOUNT + \")\" });\n\n return executeReportQuery(reportQuery);\n\n\n }",
"public boolean withdraw(CashTransaction transaction)throws IOException {\n if (transaction.getAmount() % 5 != 0)\n {\n JOptionPane.showMessageDialog(null, \"Invalid input\");\n return false;\n }\n\n HashMap<Integer, Integer> billsRetrieved = obtainBills(transaction.getAmount()*-1);\n if (billsRetrieved == null)\n {\n checkAmount();\n return false;\n }\n if (transaction.parse())\n {\n for (int denomination: billsRetrieved.keySet())\n {\n typeOfCash.put(denomination, typeOfCash.get(denomination) - billsRetrieved.get(denomination));\n }\n checkAmount();\n return true;\n }\n return false;\n }",
"public static void main(String[] args) {\n \t\t\t Random numGen = new Random();\n \tdouble balance=(numGen.nextDouble()*4000+1000); //random number between 1000 and 5000\n Scanner myScanner = new Scanner( System.in );\n System.out.print(\"Would you like to VIEW your balance, make a DEPOSIT, or WITHDRAW? \");\n String choice= myScanner.next(); //accept user input\n //switch statement depending on what the user wants to do\nswitch (choice){\n case (\"VIEW\"): //view bank account\n System.out.print(\"your balance is $\"+balance); //display ballance\n break;\ncase (\"DEPOSIT\"): //deposit to account\n System.out.print(\"how much would you like to diposit? $\");\n double deposit= myScanner.nextDouble(); //amount user wants to deposit\n if (deposit>0){ //make sure its a valid entry\n double totalDeposit=deposit+balance; //find amount in bank after deposit\n System.out.print(\"Your total balance is \"+totalDeposit);\n }\n else {\n System.out.print(\"That is not a possitive number.\");\n }\n break;\ncase (\"WITHDRAW\"): //withdraw from account\n System.out.print(\"how much would you like to withdraw? $\");\n double withdraw= myScanner.nextDouble(); //how much will be withdrawn\n if (withdraw>0 && withdraw<balance){\n double totalWithdraw=balance-withdraw; //amount left after transacton\n System.out.print(\"Your total balance is $\"+totalWithdraw);\n }\n else{\n System.out.print(\"This amount can not be withdrawn\");\n }\n break;\n default:\nSystem.out.print(\"enter VIEW, DEPOSIT, or WITHDRAW\"); //incase of invalid entery\nreturn;\n}// swich\n}",
"protected static Boolean withdrawCanBeMade(\n Account account,\n Integer amount,\n Transaction.TransactionType type\n ) {\n return doWithdrawCheck(account, null, null, amount, type);\n }",
"private static boolean hasFunds(double cost)\n {\n if (Clock.getRoundNum() < 200) { //TODO edit this out if necessary\n return rc.getTeamOre() > cost;\n } else {\n return rc.getTeamOre() > cost*2;\n }\n }",
"@Test\n public void holdTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String firstPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //init and authorize second payment, but there is 700 cents of 1000 withhold - ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String secondPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n\n //confirm first payment - OK\n\n paymentDto = confirmPayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n\n //confirm second payment, which was filed on authorization - still got ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = confirmPayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n }",
"boolean CanBuySettlement();",
"public abstract boolean deposit(float amount);",
"public boolean isOverdrawn() {\n return balance < 0;\n }",
"public boolean withdraw(long id, String password, String currency, double amount);",
"public boolean posicaoCompravel(int posicao) {\n // System.out.println(\"posicao\" + posicao);\n String dono = (String) this.Donos.get(posicao);\n // System.out.println(\"DONO\"+ dono);\n if (dono.equals(\"bank\")) {\n if (this.publicServices == false && posicao != 12 && posicao != 28) {\n return true;\n } else if (this.publicServices == true && (posicao == 12 || posicao == 28)) {\n return true;\n } else if (this.publicServices == false && (posicao == 12 || posicao == 28)) {\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n }",
"public boolean isBalanced ();",
"int main()\n{\n int f_amt,f_dis,f_shp,s_amt,s_dis,s_shp,a_amt,a_dis,a_shp,f_tot,s_tot,a_tot;\n std::cin>>f_amt>>f_dis>>f_shp>>s_amt>>s_dis>>s_shp>>a_amt>>a_dis>>a_shp;\n f_dis=(f_amt/100)*f_dis;\n s_dis=(s_amt/100)*s_dis;\n a_dis=(a_amt/100)*a_dis;\n f_tot=(f_amt-f_dis)+f_shp;\n s_tot=(s_amt-s_dis)+s_shp;\n a_tot=(a_amt-a_dis)+a_shp;\n std::cout<<\"In Flipkart Rs.\"<<f_tot;\n std::cout<<\"\\nIn Snapdeal Rs.\"<<s_tot;\n std::cout<<\"\\nIn Amazon Rs.\"<<a_tot;\n if((f_tot<s_tot)&&(f_tot<a_tot)||(f_tot==s_tot)&&(f_tot<a_tot)){\n std::cout<<\"\\nHe will prefer Flipkart\";\n }\n else if((s_tot<f_tot)&&(s_tot<a_tot)||(s_tot==a_tot)&&(s_tot<f_tot)){\n std::cout<<\"\\nHe will prefer Snapdeal\";\n \n }\n else if((a_tot<f_tot)&&(a_tot<s_tot)){\n std::cout<<\"\\nHe will prefer Amazon\";\n }\n}",
"private boolean isValidTransaction(double remainingCreditLimit, double transactionAmount){\n return transactionAmount <= remainingCreditLimit;\n }",
"boolean isSetCapitalPayed();",
"private void defaultForEmptyConditions()\n {\n /*\n * When any of the Conditions has all Left Hand Side, Operator and\n * Right Hand Side as empty then set Operator to default value of\n * CVL_WF_OPRSImpl.EQUAL(mimic default situation).\n * Note if this is not done then the condition will store null value\n * for Left Hand Side, Operator and Right Hand Side, and the whole condition\n * record will not be displayed on \"Manage Approval Conditions\" page\n * because the page selection query uses an equal join with R_WF_APRV_COND\n * and CVL_WF_OPRS tables.\n */\n for ( int liCtr = 1 ; liCtr <= 5 ; liCtr++ )\n {\n if( isNull(\"AND_COND_LHS_\" + liCtr) && isNull(\"AND_COND_OPR_\" + liCtr)\n && isNull(\"AND_COND_RHS_\" + liCtr) )\n {\n getData(\"AND_COND_OPR_\" + liCtr).setbyte((byte)3);\n }\n }//end for\n }",
"private void withdraw() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at hæve: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n if ((userInput * 100) <= balance) {\n moneyController(-userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Withdraw\");\n } else {\n System.out.println(\"Utilstrækkelig balance på kontien\");\n }\n }",
"public void testOneWithdrawal(){\n\t\t//Pre-conditions\n\t\tteller.setWorking(true);\n\t\tteller.setHost(host);\n\t\t\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\t\n\t\tassertEquals(\"Teller should have no pending loans, but it has \" + teller.pendingLoans.size(),0,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller should have no accountsListed, but it has \" + teller.accountsListed.size(),0,teller.accountsListed.size());\n\t\t\n\t\t//Step 0 of test - Teller has an account for this customer already \n\t\tteller.accountsListed.add(new BankAccount(withdraw,100));\n\t\t\n\t\t//Post-conditions of step 0 \n\t\tassertEquals(\"Teller should have one account listed, instead it has \" + teller.accountsListed.size(),1,teller.accountsListed.size());\n\t\tassertEquals(\"Teller's only account should have a balance of 100, instead it has \" + teller.accountsListed.get(0).getBalance(), \n\t\t\t\t100.0,teller.accountsListed.get(0).getBalance());\n\t\t\n\t\t//Step 1 of test\n\t\t//msgGoSeeTeller(Banker)\n\t\twithdraw.msgGoSeeTeller(teller);\n\t\t\n\t\t//Post-conditions of step 1 \n\t\tassertEquals(\"Teller's state should be busy, but instead it is: \" + teller.getState(),\"Busy\",teller.getState());\n\t\tassertEquals(\"Teller should have one pending transaction, but it has: \" +teller.pendingTransactions.size(),\n\t\t\t\t1,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller's transaction should be to withdraw 100 dollars, instead it is for \" + teller.pendingTransactions.get(withdraw), \n\t\t\t\t-100.0, teller.pendingTransactions.get(withdraw));\n\t\t\n\t\t//Step 2 of test\n\t\tassertTrue(\"Teller's scheduler should return true, but it doesn't.\", teller.pickAndExecuteAnAction());\n\t\t\n\t\t//Post-conditions of step 2 \n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\tassertTrue(\"Host's log should have a message stating \\\"Updated account, and added teller\\\", instead it reads: \" + host.log.getLastLoggedEvent().toString(), \n\t\t\t\thost.log.containsString(\"Updated account, and added teller\"));\n\t\tassertTrue(\"Customer's log should have a message stating \\\"Got 100.0 dollars, leaving bank.\\\", instead it reads: \" + withdraw.log.getLastLoggedEvent().toString(),\n\t\t\t\twithdraw.log.containsString(\"Got 100.0 dollars, leaving bank.\"));\n\t\tassertEquals(\"Customer's account stored in teller should be updated with the correct balance of 0.0, instead it has \" + teller.accountsListed.get(0).getBalance(), \n\t\t\t\t0.0, teller.accountsListed.get(0).getBalance());\n\t\t\n\t}",
"public boolean withdraw(float amount) {\r\n\t\tif (amount > 0.0f) {\t\t\r\n\t\t\t// KG: incorrect, last balance check should be >=\r\n\t\t\tif (getState() == State.OPEN || (getState() == State.OVERDRAWN && balance > -100.0f)) {\r\n\t\t\t\tbalance = balance - amount;\r\n\t\t\t\t_numWithdraws++;\r\n\t\t\t\tif (_numWithdraws > 10)\r\n\t\t\t\t\tbalance = balance - 2.0f;\r\n\t\t\t\tif (balance < 0.0f) {\r\n\t\t\t\t\tsetState(State.OVERDRAWN);\r\n\t\t\t\t}\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\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}",
"protected static Boolean withdrawCanBeMade(\n Account fromAccount,\n Integer toAccountId,\n Integer userId,\n Integer amount,\n Transaction.TransactionType type\n ) {\n return doWithdrawCheck(fromAccount, toAccountId, userId, amount, type);\n }",
"@Override\r\n\tvoid withdraw(double amount) {\n\t\tsuper.withdraw(amount);\r\n\t\tif(minimumblc>500)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"you have withdraw rupees\"+ (amount));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"withdraw failed \");\r\n\t\t}\r\n\t\t\r\n\t}",
"private String eligibleToDonote() {\n if(Integer.parseInt(bloodPressureTxtField.getText())>100 || Integer.parseInt(heartRateTxtField.getText())>80 \n || alcoholConsumptionTxtField.getText().equals(\"Y\") || drugConsumptionTxtField.getText().equals(\"Y\"))\n {\n return \"Ineligibe to Donate Blood\";\n }\n return \"Eligible to Donate Blood\";\n }",
"@Override\n\tpublic boolean withdraw(int accNo, double money) {\n\t\treturn false;\n\t}",
"private boolean checkIsValid(BankClient client, Message message) {\n int lastDigit = message.getMessageContent() % BASE_TEN;\n int amount = message.getMessageContent() / BASE_TEN;\n if (lastDigit <= DEPOSIT_WITHDRAWAL_FLAG) {\n return amount <= client.getDepositLimit();\n } else {\n return amount <= client.getWithdrawalLimit();\n }\n }",
"public CheckingAccount()\n {\n withdrawals = 0;\n deposits = 0;\n }",
"public static void main(String[] args) {\n SavingAccount savings = new SavingAccount(1112, 200);\r\n CheckingAccount checking = new CheckingAccount(1113, 200, -200);\r\n\r\n //account.setAnnualInterestRate(4.5);\r\n savings.setAnnualInterestRate(4.5);\r\n checking.setAnnualInterestRate(4.5);\r\n\r\n\r\n //account.withdraw(250);\r\n //account.deposit(30);\r\n //System.out.println(account.toString());\r\n\r\n\r\n\r\n\r\n checking.withdraw(250);\r\n checking.deposit(30);\r\n System.out.println(checking.toString());\r\n\r\n savings.withdraw(2504);\r\n savings.deposit(30);\r\n System.out.println(savings.toString());\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n }",
"private static Boolean doWithdrawCheck(\n Account fromAccount,\n Integer toAccountId,\n Integer userId,\n Integer amount,\n Transaction.TransactionType type\n ) {\n // Check that there is enough money\n switch (fromAccount.type) {\n case Credit:\n if (fromAccount.balance - amount < MAX_CREADIT) {\n return false;\n }\n break;\n default:\n if (fromAccount.balance - amount < 0) {\n return false;\n }\n break;\n }\n\n // Check that account type can be used for action\n switch (type) {\n case Transfer:\n if (fromAccount.type == AccountType.Savings) {\n return userOwnsDestination(fromAccount, toAccountId, userId);\n }\n break;\n case Payment:\n if (fromAccount.type == AccountType.Savings) {\n return false;\n }\n break;\n default:\n return true;\n }\n return true;\n }",
"boolean isSetAmount();",
"boolean examinePaidItems(){\n\t\t\tint count = 0;\n\t\t\tif (!this.items.isEmpty()){\n\t\t\t\tfor (int i = 0; i < this.items.size(); i++){\n\t\t\t\t\tif (this.items.get(i).montaryValue != 0){\n\t\t\t\t\t\tSystem.out.print(this.items.get(i).itemName + \" ($\" + (this.items.get(i).montaryValue * -1) + \"), \");\n\t\t\t\t\t\tcount++;}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!this.receptacle.isEmpty()){//if the location has containers.\n\t\t\t\tfor (int k = 0; k < this.receptacle.size(); k++){//loops through the containers in the location\n\t\t\t\t\tif (!(this.receptacle.get(k) instanceof SpecialtyContainer)){//some containers are hidden, like the depths of the cove. \n\t\t\t\t\t\tfor (int j = 0; j < this.receptacle.get(k).contents.size(); j++){//looks for the items in the non hidden containers\n\t\t\t\t\t\t\tif (this.receptacle.get(k).contents.get(j).montaryValue < 0){//if the item needs to be bought\n\t\t\t\t\t\t\t\tSystem.out.print(this.receptacle.get(k).contents.get(j).itemName + \" ($\" + \n\t\t\t\t\t\t\t\t\t\t(this.receptacle.get(k).contents.get(j).montaryValue * -1) + \"), \");\n\t\t\t\t\t\t\t\tcount++;}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == 0){//it didn't find any items you need to pay for.\n\t\t\t\tSystem.out.println(\"There's nothing here that costs money.\");\n\t\t\t\treturn false;}\n\t\t\treturn true;\n\t\t}",
"private boolean tryPay() {\n return new Random().nextInt(100) + 1 <= 50;\n }",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"protected boolean withdraw(double amount)\n\t{\n\t\tif(amount>acc_balance)\n\t\t\treturn false;\n\t\t\n\t\t//else the deduction is done from balance and success message is passed\n\t\tacc_balance-=amount;\n\t\treturn true;\n\t}",
"private static void withdraw(double amount) {\n double resultWithdraw = balance - amount;\r\n if (resultWithdraw < 0 || amount > 2000) {\r\n System.out.println(\"Withdrawal cannot exceed $2000. Balance cannot be reduced below $0.\");\r\n } else {\r\n System.out.println(amount + \" has been withdrawn from your bank account.\\nCurrent balance \" + resultWithdraw + \".\");\r\n }\r\n }",
"public boolean isBancrupt(){\r\n \treturn _budget <= 0;\r\n }",
"public static void main(String[] args)\n {\n final String DISPLAYMESSAGE = \"Please enter your account number (int), account type (char), minimum balance, and current balance: \";\n \n final double SAVINGSINTREST = 0.04;\n final double CHECKINGSERVICEFEE = 25;\n final double SAVINGSSERVICEFEE = 10;\n double minimumBalance, currentBalance, checkingIntrestRate, serviceCharge;\n \n int accountNumber;\n \n char accountType;\n \n boolean checking = false;\n boolean savings = true;\n boolean applyFee = false;\n \n checkingIntrestRate = 0;\n \n //\n Scanner accountInfo = new Scanner(System.in);\n \n System.out.println(DISPLAYMESSAGE);\n accountNumber = accountInfo.nextInt();\n accountType = accountInfo.next().charAt(0);\n accountType = Character.toLowerCase(accountType);\n minimumBalance = accountInfo.nextDouble();\n currentBalance = accountInfo.nextDouble();\n //System.out.printf(\"Account Number: %0d\", accountNumber);\n \n // \n switch (accountType)\n {\n case 'c':\n checking = true;\n System.out.println(\"Account Number: \" + accountNumber);\n System.out.println(\"Account type: \" + accountType);\n \n\n if ((minimumBalance + 5000) > currentBalance)\n {\n checkingIntrestRate = 0.03;\n System.out.printf(\"You have earned $%.2f intrest on your account%n\", (currentBalance * checkingIntrestRate));\n currentBalance = currentBalance + (currentBalance * checkingIntrestRate);\n \n }\n else\n {\n checkingIntrestRate = 0.05;\n System.out.printf(\"You have earned $%.2f intrest on your account%n\", (currentBalance * checkingIntrestRate));\n currentBalance = currentBalance + (currentBalance * checkingIntrestRate);\n }\n \n break;\n \n case 's':\n savings = true;\n System.out.println(\"Account Number: \" + accountNumber);\n System.out.println(\"Account type: \" + accountType);\n System.out.printf(\"You have earned $%.2f intrest on your account%n\", (currentBalance * SAVINGSINTREST));\n currentBalance = currentBalance + (currentBalance * SAVINGSINTREST);\n\n\n break;\n \n default:\n System.out.println(\"Invalid account type!\");\n \n }\n \n if (minimumBalance > currentBalance)\n { \n if (accountType == 'c')\n {\n System.out.printf(\"Your account balance has fallen below the $%.0f minimum balance %n\", minimumBalance);\n System.out.printf(\"You have been charged a $%.2f Service Fee %n\", CHECKINGSERVICEFEE);\n currentBalance = (currentBalance - CHECKINGSERVICEFEE);\n System.out.printf(\"Your current balance is $%.2f%n\", currentBalance);\n \n }\n else\n {\n System.out.printf(\"Your account balance has fallen below the $%.0f minimum balance %n\", minimumBalance);\n System.out.printf(\"You have been charged a $%.2f Service Fee %n\", SAVINGSSERVICEFEE);\n currentBalance = (currentBalance - SAVINGSSERVICEFEE);\n System.out.printf(\"Your current balance is $%.2f%n\", currentBalance);\n }\n }\n \n \n \n \n }",
"public void getSavingsWithdrawlInput()\r\n\t{\r\n\t\tSystem.out.println(\"Savings Account Balance : \" + Double.toString(savingsBalance));\r\n\t\tSystem.out.println(\"Enter the Amount to withdraw : \");\r\n\t\tdouble amount = input.nextDouble();\r\n\t\tif((savingsBalance-amount)>=0)\r\n\t\t{\r\n\t\t\tcalcSavingsWithdraw(amount);\r\n\t\t\tSystem.out.println(\"Withdrawl Successful\" + \"Savings Account Balance : \" + Double.toString(savingsBalance));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Insufficient Amount in your Account to withdraw\");\r\n\t\t}\r\n\t}",
"public double withdraw(double withdrawalAmount) {\n\t\tdouble savingsBalance = getBalance();\n\t\tif ((savingsBalance - withdrawalAmount) >= overdraft) { // Check if balance is less than overdraft limit.\n\t\t\tsuper.withdraw(withdrawalAmount);\n\t\t}\n\t\tif ((savingsBalance - withdrawalAmount) < overdraft) {\n\t\t\tSystem.out.print(\"Cannot execute withdraw action: greater than savings withdraw limit.\\n\");\n\t\t}\n\t\treturn getBalance();\n\t}",
"if(true==adhocTicket.isPaid()){\n System.out.println(\"isPaid() is passed\");\n }",
"public int checkEND(int amount, boolean burnStun);",
"@Override\n public boolean hasRentabilityValues() {\n return (pensionParameters.getRentRisk() != null &&\n pensionParameters.getRentCons() != null &&\n pensionParameters.getRentMod() != null);\n }",
"private void drawCharacterConditionals(Canvas canvas)\n {\n if (announceDamage && damageToAnnounce > 0)\n {\n flashDamagedPieceTimer--;\n\n //the flashDamagedPieceSwitch runs from 0 - 12,\n // but the FacePiece is only drawn during 0 - 5.\n //That means it is drawn slightly less than half the time,\n // with a \"draw / don't draw\" phase lasting several iterations.\n if (flashDamagedPieceTimer > 0) {\n flashDamagedPieceSwitch++;\n } else {flashDamagedPiece = false;}\n\n if (flashDamagedPieceSwitch > 12)\n {\n flashDamagedPieceSwitch = 0;\n }\n\n // Display visual information about damage inflicted, or HP absorbed.\n damageAnnouncementTimer--;\n paint.setTextSize(122);\n paint.setColor(Color.RED);\n canvas.drawText(\"-\" + damageToAnnounce + \" HP!\", x + 5, y + 230, paint);\n\n if (damageAnnouncementTimer <= 0)\n {\n announceDamage = false;\n flashDamagedPiece = false;\n antagonistDamage = 0;\n heroDamage = 0;\n }\n }\n\n if (announceHealthBenefit && healthBenefitToAnnounce > 0)\n {\n healthBenefitAnnouncementTimer--;\n paint.setTextSize(142);\n paint.setColor(getResources().getColor(R.color.yellow));\n canvas.drawText(\"+\" + healthBenefitToAnnounce + \" HP!\", x + 37, y + 650, paint);\n\n if (healthBenefitAnnouncementTimer <= 0)\n {\n announceHealthBenefit = false;\n }\n }\n }",
"@Override\r\n\tpublic boolean withdraw(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tif (balance > amount) {\r\n\t\t\t\t\tbalance = (float) (balance - amount);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new InsufficientBalanceException(\"You'er Balance is insufficient to make this transation !\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean isEstConditionne();",
"public void testSumAtSelectionOnOthersAccount() {\r\n addAccount();\r\n addAccount2();\r\n solo.pressSpinnerItem(0, 1);\r\n addOp();\r\n tools.printCurrentTextViews();\r\n assertTrue(solo.getText(FIRST_SUM_AT_SEL_IDX).getText().toString().contains(Formater.getSumFormater().format(2000.50 - 10.50)));\r\n }",
"private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }",
"final void checkForComodification() {\n\t}",
"private void modifyDepositDue(PrintItinerary itinerary, String xslFormat) {\n\t\tif (xslFormat.equalsIgnoreCase(\"CUSTOMERFORMATBOOKING\")) {\n\t\t\t// long datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t// .getBookingHeader().getBookingDate(), itinerary\n\t\t\t// .getBookingHeader().getDepartureDate());\n\t\t\t// if (datediff <= 45) { //CQ#8927 - Condition added for equal to 45\n\n\t\t\t// for Holiday period 60 days and non holdiday persion 45 scenarion\n\t\t\t// both opt date and finalpayment date will be same\n\t\t\t// according to kim\n\t\t\tlong datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t\t\t.getBookingHeader().getOptionDate(), itinerary\n\t\t\t\t\t.getBookingHeader().getFinalDueDate());\n\t\t\tif (datediff == 0) { // CQ#8927 - Condition added for equal to 45\n\t\t\t\titinerary.getBookingHeader().setMinimumAmount(\n\t\t\t\t\t\titinerary.getBookingHeader().getTourPrice()\n\t\t\t\t\t\t\t\t- itinerary.getBookingHeader().getAmountPaid());\n\t\t\t}\n\t\t\t// CQ#8955 - Added for displaying Gross balance Due in Agent\n\t\t} else if (xslFormat.equalsIgnoreCase(\"AGENTFORMATBOOKING\")) {\n\t\t\tlong datediff = DateUtils.dateDifferenceInDays(itinerary\n\t\t\t\t\t.getBookingHeader().getBookingDate(), itinerary\n\t\t\t\t\t.getBookingHeader().getDepartureDate());\n\t\t\t// if (datediff > 45) {\n\t\t\titinerary.getBookingHeader().setGrossBalanceDue(\n\t\t\t\t\titinerary.getBookingHeader().getTourPrice()\n\t\t\t\t\t\t\t- itinerary.getBookingHeader().getAmountPaid());\n\t\t\t// }\n\n\t\t}\n\t}",
"private void ensureConditionContinuity( )\n {\n /* If the operators are not valid, then do not move the conditions */\n if ( checkOperators() )\n {\n /*\n * When Left Hand Side, Operator and Right Hand Side for a Condition\n * are empty then infer the default value, i.e., set Operator to\n * CVL_WF_OPRSImpl.EQUAL. Left Hand Side and Right Hand Side will continue\n * to remain empty.\n */\n defaultForEmptyConditions();\n\n int liCount = 0;\n int liNumber = 0 ;\n int liCurrentRow = 0;\n Data loNewData = null ;\n Data loOldData = null ;\n\n /* Cycle through the conditions. Make sure the conditions in front */\n /* of current condition are not blank, if so, move current condition up */\n\n for (liCount = 2; liCount < 6; liCount++ )\n {\n liNumber = liCount ;\n while (liNumber > 1)\n {\n liCurrentRow = liCount - ( liNumber - 1 );\n if (getAND_COND_LHS(liCurrentRow) == null)\n {\n /*\n * copy old condition to new condition, or condition 2 to 1 ...\n * first get data from new left hand side, and get data from\n * old left hand side, and copy new to old. Repeat for right\n * hand side , operator and Condition Type.\n */\n\n loNewData = getData(\"AND_COND_LHS_\" + liCount ) ;\n loOldData = getData(\"AND_COND_LHS_\" + liCurrentRow ) ;\n loOldData.setString(loNewData.getString() );\n loNewData = getData(\"AND_COND_RHS_\" + liCount ) ;\n loOldData = getData(\"AND_COND_RHS_\" + liCurrentRow ) ;\n loOldData.setString(loNewData.getString() );\n loNewData = getData(\"AND_COND_RHS_FLD_\" + liCount ) ;\n loOldData = getData(\"AND_COND_RHS_FLD_\" + liCurrentRow ) ;\n loOldData.setString(loNewData.getString() );\n loNewData = getData(\"AND_COND_OPR_\" + liCount ) ;\n loOldData = getData(\"AND_COND_OPR_\" + liCurrentRow ) ;\n loOldData.setbyte(loNewData.getbyte() );\n loNewData = getData(\"AND_COND_TYP_\" + liCount ) ;\n loOldData = getData(\"AND_COND_TYP_\" + liCurrentRow ) ;\n loOldData.setint(loNewData.getint() );\n /*\n * reset the old condition back to null ,operator to default 3\n * and Condition type to 1 (i.e. Actual Value)\n */\n loNewData = getData(\"AND_COND_LHS_\" + liCount ) ;\n loNewData.setString(null);\n loNewData = getData(\"AND_COND_RHS_\" + liCount ) ;\n loNewData.setString(null);\n loNewData = getData(\"AND_COND_RHS_FLD_\" + liCount ) ;\n loNewData.setString(null);\n loNewData = getData(\"AND_COND_OPR_\" + liCount ) ;\n loNewData.setbyte((byte)3);\n loNewData = getData(\"AND_COND_TYP_\" + liCount ) ;\n loNewData.setint(CVL_WF_COND_TYPImpl.ACTUAL_VAL);\n\n } /* end if (getAND_COND_LHS(liCurrentRow) == null) */\n\n liNumber-- ;\n\n } /* end while (liNumber > 1) */\n } /* end for (liCount = 2; liCount < 6; liCount++ ) */\n } /* end if ( checkOperators() ) */\n }",
"public abstract String withdrawAmount(double amountToBeWithdrawn);",
"@Test\n public void shouldCreateContractWithPreAndPostconditions() {\n // Given\n final Clause[] preconditions = { ContractFactory.alwaysTrueDefaultClause(),\n ContractFactory.alwaysTrueDefaultClause() };\n final Clause[] postconditions = { ContractFactory.alwaysTrueDefaultClause(),\n ContractFactory.alwaysTrueDefaultClause() };\n\n // When\n final Contract contract = ContractFactory.contract(preconditions, postconditions);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has not all given preconditions!\", contract.preconditions().length == 2);\n Assert.assertTrue(\"The created contract has not all given postconditions!\",\n contract.postconditions().length == 2);\n }",
"@Override\n public void withdraw(double amount) //Overridden method\n {\n elapsedPeriods++;\n \n if(elapsedPeriods<maturityPeriods)\n {\n double fees = getBalance()*(interestPenaltyRate/100)*elapsedPeriods;\n super.withdraw(fees);//withdraw the penalty\n super.withdraw(amount);//withdraw the actual amount\n \n }\n \n }",
"public boolean withdrawl(double withdrawAmount) {\n\t\tif (balance-withdrawAmount < 0 || withdrawAmount < 0) return false; // Special cases: can't withdraw more than your balance; can't withdraw negative money\n\t\tbalance -= withdrawAmount;\n\t\treturn true;\n\t}",
"public void subtractCreditTransaction(double withdrawAmount){\n if(!checkAccountOpen()){\n System.out.println(\"Your credit transaction in the amount of -$\" + withdrawAmount +\" has been declined\");\n }\n else {\n this.currentBalance = this.currentBalance - withdrawAmount;\n if(this.currentBalance<0){\n System.out.println(\"Appropriate funds not found. Please check your current balance.\");\n this.currentBalance = this.currentBalance + withdrawAmount;\n }\n else {\n System.out.println(\"Your credit transaction has been approved!\");\n System.out.println(\"Your current balance is: $\" + currentBalance);\n }\n }\n\n }",
"boolean hasAmount();",
"boolean hasAmount();",
"public boolean checkPayment(int debt) {\n\t\tboolean couldSell = false;\t\n\t\tSystem.out.println(\"here\");\n\t\tcouldSell = checkSellHouses(debt);\n\t\tSystem.out.println(\"here\");\n\t\tSystem.out.println(getMoney());\n\t\tif(!couldSell) {\n\t\t\tArrayList<PropertyCard> soloCardsToMortgage = new ArrayList<>();\n\t\t\tfor(PropertyCard c: getCards()) {\n\t\t\t\tif(!c.isInMortgage() && !isCollectionFull(c) && !checkCollection(this, c)) {\n\t\t\t\t\tsoloCardsToMortgage.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<PropertyCard> almostCompleteCards = new ArrayList<>();\n\t\t\tfor(PropertyCard c: getCards()) {\n\t\t\t\t//still will not get full Collection and in Mortgage but will dodge already taken\n\t\t\t\tif(checkCollection(this, c)) {\n\t\t\t\t\talmostCompleteCards.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcouldSell = checkMortgageCards(soloCardsToMortgage, almostCompleteCards, debt);\n\t\t\tif(!couldSell) {\n\t\t\t\tcouldSell = chooseWhatToSell(soloCardsToMortgage, debt);\n\t\t\t\tif(!couldSell) {\n\t\t\t\t\tcouldSell = chooseWhatToSell(almostCompleteCards, debt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn couldSell;\n\t}",
"boolean hasTotalBet();",
"boolean hasTotalBet();",
"public abstract boolean isAcceptable(Bid plannedBid);",
"@Test\n\tpublic void depositTest(){\n\t\tCustomer cus = new Customer(\"wgl\", myDate, \"Beijing\");\n\t\tAccount cAcc = new CurrentAccount(cus);\n\t\tbc.deposit(cAcc, 500, true);\n\t\tboolean flag = false;\n\t\tif(cAcc.getBalance() == 500.0){\n\t\t\tflag = true;\n\t\t}\n\t\tassertTrue(flag);\n\t}",
"@Test\n public void shouldCreateContractWithPostconditions() {\n // Given\n final Clause postcondition1 = ContractFactory.alwaysTrueDefaultClause();\n final Clause postcondition2 = ContractFactory.alwaysTrueDefaultClause();\n\n // When\n final Contract contract = ContractFactory.contractWithPostconditions(postcondition1, postcondition2);\n\n // Then\n Assert.assertNotNull(\"The created contract is NULL!\", contract);\n Assert.assertTrue(\"The created contract has unknown preconditions!\", contract.preconditions().length == 0);\n Assert.assertTrue(\"The created contract has not all given postconditions!\",\n contract.postconditions().length == 2);\n }",
"private boolean DeriveStockWith_FundIsAvailable() {\n\t\tif (getFunds() > 0) {\n\t\t\tif (calculateInputStock_Items() > getFunds()) {\n\t\t\t\tSystem.err.println(\"Insufficient Funds, Cannot restock\");\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t\t// available funds can accommodate input stock requirement\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.err.println(\"Insufficient Funds\");\n\t\t}\n\t\treturn false;\n\t}",
"private void onDrawConditionals() {\n\n //when the opponent attacks,\n //the user has a short time period to press a button and initiate a responsive move.\n if (showResponseMoves) {\n responseTimer--;\n if (responseTimer <= 0) {\n showResponseMoves = false;\n fightActivity.hideButtons();\n fightActivity.getFight().getTurn().resolveBattleSequence();\n }\n }\n //Wait a reasonable amount of time BEFORE showing the buttons\n if (countdownToResponsiveButtonsTimer > 0)\n {\n countdownToResponsiveButtonsTimer--;\n if (countdownToResponsiveButtonsTimer == 0)\n {\n responsiveButtonsCountdown();\n }\n }\n\n //When the user initiates an attack on their Turn,\n //the opponent may make a response. This creates a countdown so the response happens after a reasonable amount of time.\n if (opponentResponseSwitch) {\n responseTimer--;\n if (responseTimer <= 0) {\n opponentResponseSwitch = false;\n fightActivity.getFight().chooseAntagonistResponse();\n }\n }\n\n //After all BattleMoves (attacks and responses) have been chosen,\n //we countdown a reasonable amount of time before resolving and displaying their effects.\n if (resolveTurn) {\n resolveTurnTimer--;\n if (resolveTurnTimer <= 0) {\n resolveTurn = false;\n fightActivity.getFight().getTurn().resolveBattleSequence();\n }\n }\n\n //After the current Turn has been fully resolved,\n //we wait a reasonable amount of time before beginning the next turn.\n if (newTurn) {\n newTurnTimer--;\n if (newTurnTimer <= 0) {\n newTurn = false;\n fightActivity.getFight().nextTurn();\n }\n }\n\n //At the BEGINNING of each new turn, we wait a reasonable amount of time\n //before the \"bad guy\" soundEffectPlayer can choose their attack.\n //(Only used if it is NOT the user's Turn).\n if (pauseNewTurn)\n {\n pauseNewTurnTimer--;\n if (pauseNewTurnTimer <= 0)\n {\n pauseNewTurn = false;\n fightActivity.getFight().chooseAntagonistAttack();\n }\n }\n\n //If the game is over and there is a winner and a loser,\n //we wait a reasonable amount of time before we actually end the game.\n if (endgame)\n {\n endgameTimer--;\n if (endgameTimer <= 0)\n {\n endgame = false;\n fightActivity.getFight().endgame();\n }\n }\n }",
"boolean withdraw (int value )\n {\n if (value>balance)\n {\n return false;\n }\n else {\n balance-=value;\n return true;\n }\n }",
"public boolean withdrawal (double amount)\r\n {\r\n\r\n System.out.println (\"Penalty incurred: \" + PENALTY);\r\n return super.withdrawal (amount+PENALTY);\r\n\r\n }"
]
| [
"0.60001194",
"0.57735056",
"0.5715922",
"0.57122165",
"0.57114905",
"0.5698737",
"0.5581068",
"0.5573175",
"0.5526552",
"0.552376",
"0.5509915",
"0.55004287",
"0.5492873",
"0.5485451",
"0.5463934",
"0.5460895",
"0.54543316",
"0.5448259",
"0.5436212",
"0.5422637",
"0.5415281",
"0.5411128",
"0.5410456",
"0.5406663",
"0.5404633",
"0.53896254",
"0.5386735",
"0.53844553",
"0.53798974",
"0.5362122",
"0.5359256",
"0.5344814",
"0.5342803",
"0.5341625",
"0.5334718",
"0.53249943",
"0.53239775",
"0.53187364",
"0.53160167",
"0.5311109",
"0.53104025",
"0.5306661",
"0.5306433",
"0.53024477",
"0.52905285",
"0.5285929",
"0.5282079",
"0.52730995",
"0.527156",
"0.52694905",
"0.52630633",
"0.52630633",
"0.52570754",
"0.52520865",
"0.52500635",
"0.5248628",
"0.5243607",
"0.5217207",
"0.5210497",
"0.5209866",
"0.5206129",
"0.5204962",
"0.5189528",
"0.5185578",
"0.5183429",
"0.5180172",
"0.51772803",
"0.51766527",
"0.5174489",
"0.51742655",
"0.5172451",
"0.51701534",
"0.5165022",
"0.51599926",
"0.51508623",
"0.51488245",
"0.5142048",
"0.5140429",
"0.51398146",
"0.5136996",
"0.5134596",
"0.51332384",
"0.5129726",
"0.5127193",
"0.5124879",
"0.51237816",
"0.51235247",
"0.5122136",
"0.5120668",
"0.5120287",
"0.5120287",
"0.5120099",
"0.51190287",
"0.51190287",
"0.5117114",
"0.5115377",
"0.51149136",
"0.5112624",
"0.5109082",
"0.51088965",
"0.5108118"
]
| 0.0 | -1 |
Toast.makeText(this, "in book", Toast.LENGTH_SHORT).show(); | void CheckFirebase(String bks)
{
DBR = FDB.getReference("Books");
//DBR.orderByChild("NAME").equals(b);
b = bks.split(",");
i=0;
DBR.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
//if(data.NAME.equals(b))
// Toast.makeText(ViewBooksActivity.this, "***"+dataSnapshot.getKey(), Toast.LENGTH_SHORT).show();
if(dataSnapshot.getKey().equals(b[i]) && i<b.length)
{
MyDataSetGet data = dataSnapshot.getValue(MyDataSetGet.class);
// Toast.makeText(ViewBooksActivity.this, "value aded"+i, Toast.LENGTH_SHORT).show();
listData.add(data);
i++;
}
rv2.setAdapter(adapter);
}
@Override
public void onChildChanged(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }",
"void showToast(String message);",
"void showToast(String message);",
"public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }",
"private void sendToCatTheater()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Theater'\", Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }",
"private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my XYZ Reader app!\", Toast.LENGTH_SHORT);\n toast.show();\n }",
"public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Goodbye!\", Toast.LENGTH_SHORT).show();\n }",
"protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}",
"@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }",
"public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Scores app!\", Toast.LENGTH_SHORT);\n toast.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Booked\", 500).show();\n\t\t\t}",
"private void toast(String string){\n Toast.makeText(this, string, Toast.LENGTH_SHORT).show();\n }",
"private void toast(String bread) {\n Toast.makeText(getActivity(), bread, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }",
"private void showToast(String msg) {\r\n Toast.makeText(Imprimir.this, msg, Toast.LENGTH_LONG).show();\r\n }",
"public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}",
"@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Hello World\", Toast.LENGTH_LONG).show();\n }",
"public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }",
"public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Library app!\", Toast.LENGTH_SHORT);\n toast.show();\n }",
"public void showMessage(String text)\n {\n Toast.makeText(this, text, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }",
"private void showMessage(String message) {\n Toast.makeText(getApplicationContext(),message, Toast.LENGTH_LONG).show();\n }",
"private void sendToCatEd()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Education'\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface dialog, int id) {\n\r\n Context context = getApplicationContext();\r\n CharSequence text = \"Welcome \" + name + \"! Signing up...\";\r\n int duration = Toast.LENGTH_SHORT;\r\n\r\n Toast toast = Toast.makeText(context, text, duration);\r\n toast.show();\r\n }",
"private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"public void ting(String msg) {\r\n\t\tToast.makeText(this, msg, Toast.LENGTH_SHORT).show();\r\n\t}",
"private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }",
"void toast(int resId);",
"private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }",
"private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }",
"public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }",
"void showToast(String value);",
"private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}",
"protected void showToast(String string)\r\n\t{\n\t\tToast.makeText(MainActivity.this, string, Toast.LENGTH_SHORT).show();\r\n\t}",
"public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }",
"private void showToast (String appName) {\n Toast.makeText(this,getString(R.string.openAppMessage,appName), Toast.LENGTH_SHORT).show();\n }",
"private void sendToCatFilm()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Film'\", Toast.LENGTH_SHORT).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"protected void toast() {\n }",
"private void sendToCatVA()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Visual Art'\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Spotify Streamer app!\", Toast.LENGTH_SHORT);\n toast.show();\n }",
"static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }",
"protected void showToast(CharSequence text) {\r\n\t Context context = getApplicationContext();\r\n\t int duration = Toast.LENGTH_SHORT;\r\n\t \r\n\t Toast toast = Toast.makeText(context, text, duration);\r\n\t toast.show();\r\n\t}",
"void toast(CharSequence sequence);",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }",
"private void sendToCatLit()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Literary'\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"I'm a toast!\", Toast.LENGTH_SHORT).show();\n }",
"public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }",
"public void run() {\n Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); // toast for whatever reason\n }",
"private void showMessage(String msg) {\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n Context context = getApplicationContext();\n // When the Hello button on the app is pressed this line of code will show *Hello, how are you?!\"\n Toast toast = Toast.makeText(context,\n \"Contact details for the college are - \" +\n \"\\n\\t CSN College, Tramore Road, Co.Cork\" +\n \"\\n\\t Phone number: 021-4961020\" +\n \"\\n\\t Email: [email protected]\", Toast.LENGTH_LONG);\n // This is for the toast message to show.\n toast.show();\n\n }",
"private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n // the button was clicked\n Toast.makeText(getApplicationContext(), \"Professional backhand-Male Video\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void toastSemEnderecos() {\n Toast.makeText(MainActivity.this, R.string.semEndereco, Toast.LENGTH_SHORT).show();\n }",
"public void displayAnswer(){\r\n String message = \"That is the correct answer!\";\r\n\r\n Toast.makeText(QuizActivity.this,\r\n message, Toast.LENGTH_SHORT).show();\r\n }",
"private void sendToCatDance()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Dance'\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Capstone app!\", Toast.LENGTH_SHORT);\n toast.show();\n }",
"private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }",
"public void ToastPopper(String t){\n Context context = getApplicationContext();\n CharSequence text = t;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void loadToast(){\n Toast.makeText(getApplicationContext(), \"Could not find city\", Toast.LENGTH_SHORT).show();\n }",
"protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}",
"public static void displayToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n\n }",
"@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }",
"@Override\n public void onClick(View v) {\n Toast tst = Toast.makeText(MainActivity.this, \"test\", Toast.LENGTH_SHORT);\n tst.show();\n Test();\n }",
"private static void showToast(String stringToDisplay, Context context) {\n Toast.makeText(context, stringToDisplay, Toast.LENGTH_SHORT).show();\n }",
"public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }",
"public void onClick(View v) {\n Toast.makeText( getActivity(),\"Voice Recognition\", Toast.LENGTH_SHORT).show();\n }",
"public void showToast(View clickedButton) {\n String greetingText = getString(R.string.greeting_text);\n Toast tempMessage\n = Toast.makeText(this, greetingText,\n Toast.LENGTH_SHORT);\n tempMessage.show();\n }",
"public static void showToast(Context context, String msg) {\n Toast.makeText(context, \"\" + msg, Toast.LENGTH_LONG).show();\n\n }",
"private void showToast(final String message) {\n main.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(main.getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n });\n }",
"private void showErrorToast() {\n }",
"public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }",
"private void mostrarToast () {\n Toast.makeText(this, \"Imagen guardada en la galería.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\r\n\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"등록완료\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\r\n\t\t\t\t\t \r\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\tToast.makeText(getContext(), \"告辞!\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}",
"private void makeToast(String string) {\n\t\tToast.makeText(this, string, Toast.LENGTH_SHORT).show();\r\n\r\n\t}",
"public void showMessage(String message){\n Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show();\n }",
"public static void showToast(Context context, CharSequence message) {\n Toast.makeText(context, message, Toast.LENGTH_SHORT).show();\n }",
"public void showToast(final String message){\n\t runOnUiThread(new Runnable() {\n\t public void run()\n\t {\n\t Toast.makeText(VisitMultiplayerGame.this, message, Toast.LENGTH_SHORT).show();\n\t }\n\t });\n\t}",
"@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }",
"private void showToast(final int resid) {\n\t\tm_toastHandler.post(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tToast.makeText(InstrumentService.this, resid, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\t}",
"public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }",
"@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }",
"private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText( LoginActivity.this, \"Saved\", Toast.LENGTH_SHORT ).show();\n }",
"public void successfulReservation()\n {\n showToastMessage(getResources().getString(R.string.successfulReservation));\n }",
"public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Build It Bigger app!\", Toast.LENGTH_SHORT);\n toast.show();\n }"
]
| [
"0.7446859",
"0.7446055",
"0.7446055",
"0.73769844",
"0.7371049",
"0.73395395",
"0.73295534",
"0.7285358",
"0.72826076",
"0.72742915",
"0.7253731",
"0.7253731",
"0.7234076",
"0.72216314",
"0.7215667",
"0.71916443",
"0.71660197",
"0.71643054",
"0.7161829",
"0.7161799",
"0.7152935",
"0.7150362",
"0.71499324",
"0.71477336",
"0.71455806",
"0.7138747",
"0.7133839",
"0.7120881",
"0.71090996",
"0.7107365",
"0.7107365",
"0.71029663",
"0.7096434",
"0.70887744",
"0.7083166",
"0.7077099",
"0.70527506",
"0.704991",
"0.70491976",
"0.7027246",
"0.69998",
"0.69918364",
"0.6991766",
"0.69833595",
"0.6981766",
"0.69625324",
"0.69519174",
"0.6948092",
"0.6939097",
"0.6939097",
"0.6939097",
"0.6923841",
"0.6920164",
"0.6910328",
"0.6905729",
"0.6905586",
"0.69040537",
"0.68998563",
"0.68936044",
"0.68595785",
"0.68558276",
"0.6853013",
"0.68410397",
"0.6834813",
"0.6828253",
"0.6827583",
"0.682485",
"0.68245304",
"0.6820353",
"0.6817453",
"0.6813607",
"0.6811718",
"0.67934006",
"0.6788958",
"0.67832255",
"0.67732245",
"0.67512786",
"0.67428666",
"0.6736362",
"0.6717627",
"0.67174894",
"0.6713042",
"0.67104375",
"0.67087114",
"0.6693976",
"0.66889197",
"0.668509",
"0.6684083",
"0.6672148",
"0.6671906",
"0.6664777",
"0.6638838",
"0.6604144",
"0.6602683",
"0.6597555",
"0.65826267",
"0.6580349",
"0.6567911",
"0.65637416",
"0.6554408",
"0.65543115"
]
| 0.0 | -1 |
if(data.NAME.equals(b)) Toast.makeText(ViewBooksActivity.this, ""+dataSnapshot.getKey(), Toast.LENGTH_SHORT).show(); | @Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
if(dataSnapshot.getKey().equals(b[i]) && i<b.length)
{
MyDataSetGet data = dataSnapshot.getValue(MyDataSetGet.class);
// Toast.makeText(ViewBooksActivity.this, "value aded"+i, Toast.LENGTH_SHORT).show();
listData.add(data);
i++;
}
rv2.setAdapter(adapter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void CheckFirebase(String bks)\n {\n DBR = FDB.getReference(\"Books\");\n //DBR.orderByChild(\"NAME\").equals(b);\n b = bks.split(\",\");\n i=0;\n DBR.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n //if(data.NAME.equals(b))\n\n // Toast.makeText(ViewBooksActivity.this, \"***\"+dataSnapshot.getKey(), Toast.LENGTH_SHORT).show();\n if(dataSnapshot.getKey().equals(b[i]) && i<b.length)\n {\n MyDataSetGet data = dataSnapshot.getValue(MyDataSetGet.class);\n // Toast.makeText(ViewBooksActivity.this, \"value aded\"+i, Toast.LENGTH_SHORT).show();\n listData.add(data);\n i++;\n\n }\n rv2.setAdapter(adapter);\n }\n\n\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }",
"@Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n Map<String, Object> map = (Map<String, Object>) dataSnapshot.getValue();\n String message = map.get(\"message\").toString();\n String userName = map.get(\"user\").toString();\n\n String sent=\"<b>\"+\"You\"+\"</b>\";\n if(userName.equals(myid)){\n addMessageBox(\"You\"+\"\\n\" + message, 1);\n }\n else{\n\n\n\n addMessageBox(friendname.get(pos).name + \":-\\n\" + message, 2);\n\n }\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Log.d(\"data \", dataSnapshot.toString());\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n listStudents((Map<String, Object>) dataSnapshot.getValue());\n Log.d(TAG, sStud);\n if (sStud.contains(isStudent)) {\n startActivity(new Intent(SignInActivity.this.getApplicationContext(), StudentHomeActivity.class));\n } else {\n startActivity(new Intent(SignInActivity.this.getApplicationContext(), HomeActivity.class));\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n iboClass ibo = dataSnapshot.getValue(iboClass.class);\n\n System.out.println(\"IBONum_Input: \" + ibo.IBONum);\n fullName = ibo.fullName;\n\n SharedPreferences.Editor ed = savedValues.edit();\n makeToast(\"Welcome back, \" + fullName);\n ed.putString(\"IBONum\", ibo.IBONum);\n ed.commit();\n startNewActivity();\n\n\n\n }",
"@Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n if (documentSnapshot.exists()) {\n\n String name = documentSnapshot.getString(\"name\");\n textView.setText(name);\n\n } else {\n Toast.makeText(MainActivity.this, \"Something went wrong\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(dataSnapshot!=null) {\n\n //iterate through each user, ignoring their UID\n for (DataSnapshot messageSnapshot : dataSnapshot.getChildren()) {\n\n String name = messageSnapshot.child(\"name\").getValue().toString();\n\n\n if (name.equals(names)) {\n\n ispresentWishList[0] = 0;\n return;\n\n }\n\n\n }\n }\n\n ispresentWishList[0] = 2;\n\n Log.v(\"Sync back\", ispresent[0] + names + noOfItemQuantities);\n\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n TextView profileName = findViewById(R.id.profileName);\n profileName.setText(dataSnapshot.child(\"name\").getValue(String.class));\n\n//\n// //Show classes that you/others will tutor\n// TextView classesTutored = findViewById(R.id.tvClasses);\n// classesTutored.setText(dataSnapshot.child(\"classes\").getValue(String.class));\n//\n// TextView availability = findViewById(R.id.tvAvailability);\n// availability.setText(dataSnapshot.child(\"availability\").getValue(String.class));\n\n }",
"@Override\n public void onDataChange(@NonNull @NotNull DataSnapshot snapshot) {\n if (snapshot.exists()) {\n Food food = snapshot.getValue(Food.class);\n foodName = food.getName();\n TextView textView = holder.getTxtFood();\n textView.setText(textView.getText() + \"\\n\" + foodName + \" : \" + od.getQuantity());\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n Log.d(\"TAG\", \"Value is: \" + value);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n Log.d(\"Oof\", \"Value is: \" + value);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n noOfItemQuantities = Integer.parseInt(textQuantity.getText().toString());\n\n //iterate through each user, ignoring their UID\n for (DataSnapshot messageSnapshot : dataSnapshot.getChildren()) {\n\n String name = messageSnapshot.child(\"name\").getValue().toString();\n\n\n\n int quantity = Integer.parseInt(messageSnapshot.child(\"quantity\").getValue().toString());\n if (name.equals(names)) {\n if (noOfItemQuantities == quantity) {\n\n ispresent[0] = 0;\n Log.v(\"Sync back \", ispresent[0] + names + noOfItemQuantities);\n return;\n\n } else {\n key = messageSnapshot.getKey();\n ispresent[0] = 1;\n Log.v(\"Sync back\", ispresent[0] + names + noOfItemQuantities);\n return;\n\n\n }\n\n\n }\n }\n\n\n ispresent[0] = 2;\n\n Log.v(\"Sync back inout\", ispresent[0] + names + noOfItemQuantities);\n\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.child(\"bookmarks\") != null && dataSnapshot != null) {\n DataSnapshot dp = dataSnapshot.child(\"bookmarks\");\n BookmarksList.clear();\n for (DataSnapshot ps : dp.getChildren()) {\n String key = ps.getKey().toString();\n Log.d(TAG, \"-------------------onDataChange:\\n Book Sync:\\n\" + key + \"\\n\" + ps.child(\"1\").getValue(Integer.class));\n if (BookmarksList.contains(key)) {\n Log.e(TAG, \"onDataChange: Bookmark already exist = \" + key);\n } else {\n BookmarksList.add(key);\n }\n\n }\n Log.d(TAG, \"-------------------onDataChange:\\n Book Sync:\\n\" + dp.toString());\n\n } else {\n Log.e(TAG, \"Bookmarks Empty !!\");\n }\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n Log.d(TAG, \"Value is: \" + value);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n Log.d(TAG, \"Value is: \" + value);\n }",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n if (Objects.requireNonNull(dataSnapshot.getValue()).toString().equals(\"Fake\")) //if wasn't accepted to any university\n uniName.setText(\"You have not been accepted to any university. Try again next time :(\");\n else\n uniName.setText(dataSnapshot.getValue().toString());\n }\n else\n uniName.setText(\"No results yet.\"); //if algorithm didn't run yet\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n Log.d(TAG, \"Update Status \" + value);\n if(value!=null){\n if(value.equals(VersionCode)){\n UpdateCardView.setVisibility(View.GONE);\n }else{\n UpdateCardView.setVisibility(View.VISIBLE);\n }\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String name = dataSnapshot.child(\"Name\").getValue().toString();\n String surname = dataSnapshot.child(\"Surname\").getValue().toString();\n String time = dataSnapshot.child(\"time\").getValue().toString();\n\n\n kullanıcı.setText(name + \" \"+surname);\n hesap_no.setText(Anasayfa.email);\n kyt_tarih.setText(time);\n }",
"@Override\n public void onClick(View view)\n {\n String PostKey = getSnapshots().getSnapshot(position).getKey();\n String ustazName = getSnapshots().get(position).getName();\n\n\n /* Intent click_post = new Intent(getActivity(),Agency_Details.class);\n click_post.putExtra(\"PostKey\", PostKey);\n //click_post.putExtra(\"Agencyname\", Agencyname);\n startActivity(click_post);*/\n\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n indirizzo = dataSnapshot.getValue(String.class);\n Log.d(TAG, \"Value indirizzo is: \" + indirizzo);\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Name value = dataSnapshot.getValue(Name.class);\n Log.d(\"Oof\", \"Value is: \" + value.last);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n showData((Map<String, Object>) dataSnapshot.getValue());\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n String BookName = dataSnapshot.child(\"bookname\").getValue(String.class);\n String BookAuthor = dataSnapshot.child(\"bookauthor\").getValue(String.class);\n String BookYear = dataSnapshot.child(\"bookyear\").getValue(String.class);\n String BookCategory = dataSnapshot.child(\"bookcategory\").getValue(String.class);\n String BookCover = dataSnapshot.child(\"bookcover\").getValue(String.class);\n String BookURL = dataSnapshot.child(\"bookurl\").getValue(String.class);\n String BookID = String.valueOf(dataSnapshot.child(\"bookid\").getValue(Integer.class));\n\n StoreBook.put(\"bookname\", BookName);\n StoreBook.put(\"bookauthor\", BookAuthor);\n StoreBook.put(\"bookyear\", BookYear);\n StoreBook.put(\"bookcategory\", BookCategory);\n StoreBook.put(\"bookcover\", BookCover);\n StoreBook.put(\"bookurl\", BookURL);\n StoreBook.put(\"bookid\", BookID);\n\n\n Log.d(TAG, \"-------------------onDataChange:\\n Book Details:\\n\" + StoreBook);\n LoadPDF();\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String name=dataSnapshot.child(\"UserInformation\").child(FirebaseAuth.getInstance().getCurrentUser().getUid()).child(\"name\").getValue(String.class);\n user_name.setText(name);\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n img.setImageResource(R.drawable.like_clickled);\n text.setText(\"Liked\");\n text.setTextColor(Color.parseColor(\"#0090FF\"));\n\n } else {\n img.setImageResource(R.drawable.like);\n text.setText(\"Like\");\n text.setTextColor(Color.parseColor(\"#000000\"));\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n HashMap<String, Object> value = (HashMap<String, Object>) dataSnapshot.getValue();\n\n NameDet.setText(value.get(\"Name\").toString());\n PhoneDet.setText(value.get(\"Phone\").toString());\n EmailDet.setText(value.get(\"Email\").toString());\n DescDet.setText(desc);\n//\n// Log.d(\"orderid\",\"\"+OrderId);\n\n gotoButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Intent intent = new Intent(GroceryWorkDetails.this, ConfirmGroceryWorkDetails.class);\n intent.putExtra(\"id\", CheckAvailability.id);\n intent.putExtra(\"valueofi\", i);\n intent.putExtra(\"OrderDescId\",OrderDescId);\n intent.putExtra(\"OrderId\",OrderId);\n startActivity(intent);\n }\n });\n\n }",
"@Override\r\n public void onClick(View v) {\n DocumentReference docRef = holder.firestore.collection(\"Users\").document(holder.id);\r\n docRef.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if (task.isSuccessful()) {\r\n DocumentSnapshot document = task.getResult();\r\n if (document.exists()) {\r\n java.util.Map tempMap = document.getData();\r\n matches = (ArrayList) tempMap.get(\"MatchHistory\");\r\n name = ((String) tempMap.get(\"name\")).split(\" \")[0];\r\n stats = matches.get(position);\r\n showStats();\r\n } else {\r\n }\r\n } else {\r\n Toast.makeText(context, \"Failed to connect to database\", Toast.LENGTH_LONG).show();\r\n }\r\n }\r\n });\r\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Object value = dataSnapshot.getValue();\n Log.d(TAG, \"Value is: \" + value);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Object value = dataSnapshot.getValue();\n Log.d(TAG, \"Value is: \" + value);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n\n for (DataSnapshot student_snapshot : dataSnapshot.getChildren()) {\n //databaseStudent ref = student_snapshot.getValue(DatabaseReference.class);\n // for(DataSnapshot s2 : student_snapshot.child(\"Company_msg\").getChildren()){\n\n String s=student_snapshot.child(\"companyName\").getValue(String.class);\n holder.b_company.setText(userlist.get(position).getCompany().toString());\n\n\n //}\n }\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n btnAddres.setText(value);\n // Log.d(TAG, \"Value is: \" + value);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String list = dataSnapshot.getValue(String.class);\n\n //output to TextView\n setContentView(R.layout.activity_needs);\n TextView textView = (TextView) findViewById(R.id.textView1);\n textView.setText(\"List: \" + list);\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue().toString();\n Toast.makeText(Alertothers.this, value, Toast.LENGTH_SHORT).show();\n Duid=value;\n if(Duid.length()>=10)\n {\n //myRefambu=database.getReference(\"Ambulances/\"+Duid);\n myRefAge=database.getReference(\"Ambulances/\"+Duid+\"/PAge\");\n myRefBloodgr=database.getReference(\"Ambulances/\"+Duid+\"/PBloodGr\");\n lat=database.getReference(\"Ambulances/\"+Duid+\"/PLat\");\n lon=database.getReference(\"Ambulances/\"+Duid+\"/PLon\");\n name=database.getReference(\"Ambulances/\"+Duid+\"/PName\");\n relmob1=database.getReference(\"Ambulances/\"+Duid+\"/PRelMob1\");\n puid=database.getReference(\"Ambulances/\"+Duid+\"/PUID\");\n // if(Duid.length()==28) {\n myRefAge.setValue(\"N/A\");\n name.setValue(\"N/A\");\n lat.setValue(\"N/A\");\n lon.setValue(\"N/A\");\n myRefBloodgr.setValue(\"N/A\");\n relmob1.setValue(\"N/A\");\n puid.setValue(\"N/A\");\n // }\n myRefdname.setValue(\"N/A\");\n myRefduid.setValue(\"N/A\");\n myRefaccident.setValue(\"N/A\");\n dialog.dismiss();\n Intent intent=new Intent(Alertothers.this,MainActivity.class);\n startActivity(intent);\n\n }\n //Log.d(TAG, \"Value is: \" + value);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n data[0]= dataSnapshot.child(userID).child(\"Name\").getValue(String.class);\n data[1]= FirebaseAuth.getInstance().getCurrentUser().getEmail();\n\n name.setText(data[0]);\n email.setText(data[1]);\n\n\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Student ss = dataSnapshot.getValue(Student.class);\n String name = ss.getName();\n int marks = ss.getMarks();\n\n String displayStr = name + \"|\" + marks;\n txt.setText(displayStr);\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n firebaseData = (HashMap<String, Object>) dataSnapshot.getValue();\n Log.d(TAG, \"Value is: \" + firebaseData);\n progressBar.setVisibility(View.INVISIBLE);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n value = dataSnapshot;\n // Toast.makeText(getActivity(),\" loading\",Toast.LENGTH_LONG ).show();\n try {\n companyName.setText(value.child(\"companyName\").getValue().toString());\n city.setText(value.child(\"city\").getValue().toString());\n address.setText(value.child(\"address\").getValue().toString());\n contact.setText(value.child(\"contact\").getValue().toString());\n }\n catch(Exception e){\n Toast.makeText(getActivity(),\"error loading\",Toast.LENGTH_LONG ).show();\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User value = dataSnapshot.getValue(User.class);\n Toast.makeText(MainActivity.this, \"Response: \" + value.getNama(), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onDataChange(DataSnapshot snapshot) {\n showData(snapshot); // comment thyo\n UserInformation post = snapshot.getValue(UserInformation.class);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n HashMap<String,MapElements> testing1 = new HashMap<String, MapElements>();\n\n for(DataSnapshot snapshot:dataSnapshot.getChildren())\n {\n Log.d(TAG, \"SNAPSHOT \"+snapshot.getKey());\n String Key = snapshot.getKey();\n\n //Log.d(TAG, \"SPECIFIC\" +snapshot.child(Key).getValue().toString());\n\n }\n }",
"@Override\n public void onEvent(@Nullable DocumentSnapshot documentSnapshot, @Nullable FirebaseFirestoreException error) {\n petnamex = documentSnapshot.getString(\"Pet Name\");\n pettype = documentSnapshot.getString(\"Pet Type\");\n petbreed = documentSnapshot.getString(\"Pet Breed\");\n petstatus = documentSnapshot.getString(\"Status\");\n\n petDOB = documentSnapshot.getString(\"Pet DOB\");\n intent.putExtra(\"petname\", petnamex);\n intent.putExtra(\"pettype\", pettype);\n intent.putExtra(\"petbreed\", petbreed);\n intent.putExtra(\"petstatus\", petstatus);\n intent.putExtra(\"petdob\", petDOB);\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n for(DataSnapshot ds: dataSnapshot.getChildren())\n {\n if(ds.child(\"sender1\").getValue().equals(id)&& ds.child(\"sender2\").getValue().equals(uid))\n {\n roomexist=true;\n goToChat(ds.getKey());\n return;\n }\n else if(ds.child(\"sender2\").getValue().equals(id)&& ds.child(\"sender1\").getValue().equals(uid))\n {\n roomexist=true;\n goToChat(ds.getKey());\n return;\n }\n }\n if(!roomexist)\n {\n String key = mChat.push().getKey();\n makeRoom(key);\n }\n Log.d(TAG, \"Value is: \" + cartRef);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n txtDis.setText(value);\n // Log.d(TAG, \"Value is: \" + value);\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n for(DataSnapshot childrenSnapshot : dataSnapshot.getChildren()){\n //User aUser = childrenSnapshot.getValue(User.class);\n if(childrenSnapshot.child(\"username\").getValue().toString().equals(username_string)){\n String temp_string = childrenSnapshot.child(\"email\").getValue().toString();\n temp_string.equals(childrenSnapshot.child(\"email\").getValue().toString());\n\n //demo.equals(temp_string);\n demo = temp_string;\n signIn(demo, password_string);\n //demo.equals(childrenSnapshot.child(\"email\").getValue().toString());\n if(!TextUtils.isEmpty(temp_string)){\n Toast.makeText(Login.this,demo, Toast.LENGTH_SHORT).show();\n\n\n }\n }\n }\n }",
"@Override\n public void onDataChange(DataSnapshot snapshot) {\n if (snapshot.hasChild(id)) {\n\n //load User data\n FirebaseManager firebaseManager = new FirebaseManager(\"user\",getApplicationContext());\n firebaseManager.getUser(\"facebook\", id);\n\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n\n\n //gotta check if Authority\n\n } else {\n\n JSONParser jsonParser = new JSONParser();\n\n //if not registered then we need some more details\n Intent intent = new Intent(getApplicationContext(), UserFormActivity.class);\n intent.putExtras(jsonParser.makePreliminaryUserData(jsonObject,\"facebook\"));\n startActivity(intent);\n\n }\n }",
"@Override\n public void onDataChange(DataSnapshot snapshot) {\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n text.setText(value);\n }",
"public void FindItem(View view) {\n String child = \"friendName\";\n String name = \"Peter Pan\";\n Query query = friendsDatabaseReference.orderByChild(child).equalTo(name);\n query.addChildEventListener(childEventListener);\n }",
"private boolean nameEntry() {\n EditText nameField = (EditText) findViewById(R.id.batman_identity);\n String batmanIdentity = nameField.getText().toString();\n\n if (batmanIdentity.equalsIgnoreCase(\"bruce wayne\")) {\n return true;\n }\n\n return false;\n\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n int weight = Integer.parseInt(dataSnapshot.child(\"weight\").getValue(String.class));\n int height = Integer.parseInt(dataSnapshot.child(\"height\").getValue(String.class));\n int age = Integer.parseInt(dataSnapshot.child(\"age\").getValue(String.class));\n String gender = String.valueOf((dataSnapshot.child(\"gender\").getValue(String.class)));\n\n int result = bereken(gender, weight, height, age);\n\n Intent intent = new Intent(CalorieOwn.this, CalResult.class);\n intent.putExtra(\"Result\", result);\n startActivity(intent);\n\n\n }",
"private void getItemDataFromFb(final String data) {\n\n String userId = getIntent().getStringExtra(\"userId\");\n Log.i(\"myLog\", \" userId in Calendar= \" + userId);\n final List<String> list = new ArrayList<>();\n\n reference.child(\"users\").child(userId).child(\"items\").addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n Log.i(\"myLog \", \"\" + snapshot.getChildrenCount());\n\n\n for (DataSnapshot postSnapshot : snapshot.getChildren()) {\n Item item = postSnapshot.getValue(Item.class);\n Log.i(\"myLog text\", item.getText());\n Log.i(\"myLog getData\", item.getData());\n Log.i(\"myLog data\", data);\n\n if(item.getData().equals(data)){\n itemList.add(item);\n list.add(item.getData() + \" \" + item.getText());\n }\n\n }\n// if (list.size() != 0)\n setListView(list); //callBack\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.e(\"The read failed: \", databaseError.getMessage());\n }\n });\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot)\n {\n if(dataSnapshot.exists())\n {\n User user=dataSnapshot.getValue(User.class);\n name=user.getName();\n LastName=user.getLastName();\n Picture=user.getPicture();\n }\n }",
"private void checkUserType() {\n\n\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"SchoolFirst\");\n\n if (code.equals(\"123456\")){\n\n ref\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n for (DataSnapshot ds : snapshot.getChildren()) {\n String account = \"\"+ds.child(\"accountType\").getValue();\n if (account.equals(\"User\")) {\n progressDialog.dismiss();\n //user is seller\n saverFirebaseData();\n }\n\n }\n }\n\n\n\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n\n\n }\n\n else {\n progressDialog.dismiss();\n Toast.makeText(this, \"Wrong Code\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n btnNumber.setText(value);\n // Log.d(TAG, \"Value is: \" + value);\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if(dataSnapshot.getValue(AccountPost.class) != null){\n\n final ValueEventListener postListener=new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Log.d(\"onDataChange\",\"Data is Updated\");\n for(DataSnapshot postSnapshot: dataSnapshot.getChildren()){\n String key=postSnapshot.getKey();\n AccountPost get = postSnapshot.getValue(AccountPost.class);\n String info[] = {get.name, get.email};\n\n if(email.equals(get.email)==true){\n Intent gotomain = new Intent(LoginActivity.this, MainActivity.class);\n gotomain.putExtra(\"name\", get.name);\n gotomain.putExtra(\"email\", email);\n progressDialog.dismiss();\n startActivity(gotomain);\n finish();\n }else{\n// Toast.makeText(LoginActivity.this,\"\", Toast.LENGTH_SHORT).show();\n }\n\n Log.d(\"login_check\",\"info: \"+ info[0]+\" \"+ info[1]);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n };\n mPostReference.child(\"account_list\").addValueEventListener(postListener);\n\n } else {\n Toast.makeText(LoginActivity.this, \"데이터 없음...\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void getBookName(){\n db = DatabaseHelper.getInstance(this).getWritableDatabase();\n cursor = db.rawQuery(\"SELECT Name FROM Book WHERE _id = \"+bookIDSelected+\";\", null);\n startManagingCursor(cursor);\n String bookNameSelected = \"Failed to load Book Name\";\n while(cursor.moveToNext()){\n bookNameSelected = cursor.getString(0);\n }\n\n TextView txtBookTitle = findViewById(R.id.rvTxtName);\n txtBookTitle.setText(String.valueOf(bookNameSelected));\n }",
"@Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }",
"public void showFirstName() {\n Cursor cursor = db.firstName();\n if (cursor.getCount() > 0) {\n while (cursor.moveToNext()) {\n firstName.setText(cursor.getString(cursor.getColumnIndex(\"firstName\")));\n }\n } else {\n Toast.makeText(getApplicationContext(), \"NO DATA\", Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n }",
"private void queryEqualToValueChildKey(JSONArray data) {\n \tString strURL = String.format(\"https://%s.firebaseio.com\", appName); // = \"https://%@.firebaseio.com\" + appName;\n \tString strChildKey;\n \tObject objValue;\n\n if ( data.length() >= 3 )\n {\n \ttry {\n\t\t\t\tstrURL = data.getString(0);\n\t\t\t\tobjValue = data.get(1);\n\t\t\t\tstrChildKey = data.getString(2);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n }\n else{\n \tPluginResult pluginResult = new PluginResult(Status.ERROR, \"queryEqualToValueChildKey : Parameter Error\");\n \tmCallbackContext.sendPluginResult(pluginResult);\n \treturn;\n }\n\n Firebase urlRef = new Firebase(strURL);\n\n if(isUsed != true)\n isUsed = true;\n ValueEventListener listener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n JSONObject resultObj;\n\t\t\t\ttry {\n HashMap result = snapshot.getValue(HashMap.class);\n if (result == null)\n resultObj = new JSONObject();\n else\n resultObj = new JSONObject(result);\n\t PluginResult pluginResult = new PluginResult(Status.OK, resultObj);\n\t //pluginResult.setKeepCallback(true);\n\t mCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tPluginResult pluginResult = new PluginResult(Status.ERROR, e.getMessage());\n\t\t\t\t\tmCallbackContext.sendPluginResult(pluginResult);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n System.out.println(\"queryEqualToValueChildKey().addListenerForSingleValueEvent failed: \" + firebaseError.getMessage());\n PluginResult pluginResult = new PluginResult(Status.ERROR, \"queryEqualToValueChildKey failded: \" + firebaseError.getMessage());\n mCallbackContext.sendPluginResult(pluginResult);\n }\n };\n\n // Read data and react to changes\n if( objValue.getClass() == Double.class )\n \turlRef.equalTo(((Double)objValue).doubleValue(), strChildKey).addListenerForSingleValueEvent(listener);\n else if(objValue.getClass() == Boolean.class )\n \turlRef.equalTo(((Boolean)objValue).booleanValue(), strChildKey).addListenerForSingleValueEvent(listener);\n else if( objValue.getClass() == String.class )\n \turlRef.equalTo((String)objValue, strChildKey).addListenerForSingleValueEvent(listener);\n else\n \turlRef.equalTo(objValue.toString(), strChildKey).addListenerForSingleValueEvent(listener);\n }",
"@Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\n checkifUsernameExists(username);\r\n\r\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n // Set and put the data in MainActivity\n dataSnapshot.getRef().child(\"nama\").setValue(namahutang.getText().toString());\n dataSnapshot.getRef().child(\"jumlah\").setValue(jumlahhutang.getText().toString());\n dataSnapshot.getRef().child(\"deskripsi\").setValue(deskripsihutang.getText().toString());\n dataSnapshot.getRef().child(\"tanggal\").setValue(tanggalhutang.getText().toString());\n dataSnapshot.getRef().child(\"keyhutang\").setValue(keyhutang);\n\n // Show the data in MainActivity\n Toast.makeText(getApplicationContext(), \"Data successfully added\", Toast.LENGTH_SHORT).show();\n\n Intent a = new Intent(NewHutangAct.this, MainActivity.class);\n startActivity(a);\n finish();\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String phn = dataSnapshot.child(\"Phone\").getValue(String.class);\n String nam = dataSnapshot.child(\"Name\").getValue(String.class);\n\n String pass2 = dataSnapshot.child(\"Password\").getValue(String.class);\n String ema = dataSnapshot.child(\"Email\").getValue(String.class);\n\n username.setText(nam);\n email.setText(ema);\n phone.setText(phn);\n password.setText(pass2);\n }",
"@Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(firebaseMethods.checkIfUsernameExists(username, dataSnapshot)){\n append = myRef.push().getKey().substring(0,7);\n }\n username = username + append;\n\n //add new user to the database\n firebaseMethods.addNewUser(\"notdone\",username,\"emp\",userID);\n Toast.makeText(mContext, \"Signup successful. Admin Verification \" +\n \"Left.\", Toast.LENGTH_SHORT).show();\n Intent i = new Intent(Register.this, Login.class);\n startActivity(i);\n finish();\n }",
"private void showData1(DataSnapshot dataSnapshot) {\n boolean cond = false;\n String emailaddress2 = email.getText().toString();\n for (DataSnapshot ds : dataSnapshot.getChildren()) {\n User eid = new User(ds.getValue());\n eid.setEmail(ds.child(\"email\").getValue().toString());\n if (eid.email.equals(emailaddress2)) {\n cond=true;\n break;\n }\n }\n if (cond == false){\n //if user does not exist then go ahead with sign up\n addemail();\n }\n if (cond ==true){\n Toast.makeText(getApplicationContext(),\"User already exists. Please login\",Toast.LENGTH_SHORT).show();\n }\n\n }",
"@Override\n public void onClick(View view){\n String username = search.getText().toString();\n String userid = \"\";\n if (users != null) {\n for (String id : users.keySet()) {\n if (users.get(id).getUserName().equals(username)){\n userid = id;\n break;\n }\n }\n if (userid.equals(\"\")){\n Toast.makeText(getContext(), \"No Such User\", Toast.LENGTH_LONG).show();\n } else {\n readUserInfo(userid, username);\n Toast.makeText(getContext(), \"Loading User\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(getContext(), \"Loading User List\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n Map<String,Object> helpcenter = (Map<String, Object>) dataSnapshot.getValue();\n showHelpCenters (helpcenter );\n\n }",
"@Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.child(\"Playing\").child(\"invite\").child(SyntexPlayer).child(\"Invite\").getValue(String.class);\n\n if (dataSnapshot.hasChild(\"Invite\")){\n\n goToMultiActivity();\n myRef.child(\"Playing\")\n .child(\"invite\")\n .child(SyntexPlayer)\n .child(\"Invite\").removeValue();\n if (!SelectionMultiActivity.this.isFinishing()){\n dialog.dismiss();\n }\n\n }else {\n dialog.show();\n dialog.setTitle(\"Request Sending!\");\n dialog.setMessage(\"Please wait Until Your Friend Accept it....\");\n dialog.setCanceledOnTouchOutside(true);\n\n }\n\n // checkValue(value);\n\n\n /*Toast.makeText(MultiplayerActivity.this, \"\"+value, Toast.LENGTH_SHORT).show();*/\n }",
"@Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n Platform.runLater(() -> {\n LoadBookingChange load = new LoadBookingChange();\n// System.out.println(\"UPDATING BOOKING: \"+Integer.parseInt(dataSnapshot.getKey()));\n load.loadBookingChange(Integer.parseInt(dataSnapshot.getKey()));\n });\n }",
"private void checkUserExists() {\n dblogin.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n showData1(dataSnapshot);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"public void cekNotif(){\n try{\n Gref.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n\n\n\n String a = dataSnapshot.child(\"to_id\").getValue().toString();\n\n if (a.equals(BerandaActivity.id)){\n\n Toast.makeText(context.getApplicationContext(),\"Ada pesan komunitas baru\",Toast.LENGTH_SHORT).show();\n }\n\n\n\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n\n }\n });}\n catch (Exception e){\n\n Log.e(\"eror add child : \",\"\"+e);\n }\n\n }",
"public void viewdata(View view){\n\n viewall.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Cursor data = dbHandler.getSeller();\n if(data.getCount() == 0){\n\n showMessage(\"Error\",\"Nothing found\");\n return;\n }\n\n StringBuffer buffer = new StringBuffer();\n\n while (data.moveToNext()){\n\n buffer.append(\"User Name\" +data.getString(0)+ \"\\n\");\n buffer.append(\"Password\" +data.getString(1)+ \"\\n\");\n buffer.append(\"Email\" +data.getString(2)+\"\\n\");\n buffer.append(\"Seller Name\" +data.getString(3)+\"\\n\");\n buffer.append(\"Contatct\" +data.getString(4)+\"\\n\\n\");\n\n //ShowableListMenu(\"Data\",buffer.toString());\n showMessage(\"Data\",buffer.toString());\n\n }\n\n }\n });\n\n\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n int count = 0;\n for (DataSnapshot keywordSnapshot : dataSnapshot.getChildren()) {\n // keyword, description\n if (count == 0) {\n mTodayKeyword = keywordSnapshot.getKey();\n mTodayDescription = keywordSnapshot.child(\"description\").getValue().toString();\n mTvTitle.setText(mTodayKeyword);\n mTvDescription.setText(mTodayDescription);\n }\n count++;\n }\n }",
"@Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n Match m = dataSnapshot.getValue(Match.class);\n assert m != null;\n if(!ActivityLogin.currentUserID.equals(m.getCreatorID())){ //if I am the creator, then m is not even listed\n boolean booked = dataSnapshot.child(\"members/\" + ActivityLogin.currentUserID).exists();\n //TODO notify select match to update in real time\n if(booked || m.getPlayersNumber() == 0 || !isLocationNearby(m.getLatitude(), m.getLongitude()) || m.getTimestamp() < Calendar.getInstance().getTimeInMillis())\n FragmentAvailableMatches.this.removeUI(m.getMatchID());\n else\n FragmentAvailableMatches.this.addUpdateUI(m);\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Survey survey = dataSnapshot.getValue(Survey.class);\n if (survey!=null) {\n binding.basicInfo.postAuthorLayout.surveyAuthor.setText(survey.getAuthor());\n binding.basicInfo.surveyTitle.setText(\"Survey Title: \"+survey.getTopic());\n binding.basicInfo.postBody.setText(\"Description: \" +survey.getDescription());\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Iterable<DataSnapshot> snapshotIterator = dataSnapshot.getChildren();\n Iterator<DataSnapshot> iterator = snapshotIterator.iterator();\n while (iterator.hasNext()) {\n DataSnapshot snapshot = iterator.next();\n Friend friend = snapshot.getValue(Friend.class);\n /*does it match what we're looking for?*/\n if (friend.getFriendName().equals(\"Vicky Victoria\")) {\n /*we found the item, now get its id*/\n String snapshotKey = snapshot.getKey();\n /*now delete it*/\n friendsReference.child(snapshotKey).removeValue();\n } else {\n /*no match*/\n Log.i(TAG, \"deleteItem(), no matching item to delete\");\n }\n }\n }",
"@Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n Match m = dataSnapshot.getValue(Match.class);\n assert m != null;\n //see if it is relevant to the user\n boolean booked = dataSnapshot.child(\"members/\" + ActivityLogin.currentUserID).exists();\n if(m.getPlayersNumber() > 0 && m.getTimestamp() > Calendar.getInstance().getTimeInMillis() && !booked && isLocationNearby(m.getLatitude(), m.getLongitude())\n && !ActivityLogin.currentUserID.equals(m.getCreatorID()))\n FragmentAvailableMatches.this.addUI(m);\n }",
"@Override\n public void onDataChange(DataSnapshot snapshot) {\n HashMap<String, Object> datas = (HashMap<String, Object>) snapshot.getValue();\n if(datas==null)\n return;\n String sName = (String)datas.get(\"Name\");\n String sMotto = (String)datas.get(\"Motto\");\n Person person = new Person(personID,sName);\n person.setMotto(sMotto);\n list.add(person);\n adapter.notifyDataSetChanged();\n }",
"@Override\n public void onEvent(@Nullable DocumentSnapshot documentSnapshot, @Nullable FirebaseFirestoreException error) {\n status.setText(documentSnapshot.getString(\"Status\"));\n String statusText = status.getText().toString().toLowerCase();\n if (statusText.equals(\"lost\")) markPetAsLost.setText(\"mark pet as found\");\n\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n table_user.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User user = dataSnapshot.child(edtPhone.getText().toString()).getValue(User.class);\n\n if (user.getSecureCode().equals(edtSecureCode.getText().toString()))\n Toast.makeText(SignIn.this, \"Your password: \"+user.getPass(), Toast.LENGTH_LONG).show();\n else\n Toast.makeText(SignIn.this, \"Wrong secure code !!!\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }",
"private void validDataCheck() {\n dblogin.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n showData(dataSnapshot);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"@Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\n\r\n if (dataSnapshot.exists()) {\r\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\r\n Artista artista = snapshot.getValue(Artista.class);\r\n if (artista.getArtist_id().equals(id)) {\r\n resultListenerDelController.finish(artista);\r\n break;\r\n }\r\n }\r\n } else {\r\n resultListenerDelController.finish(new Artista());\r\n }\r\n }",
"@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.child(user).exists()) {\n // Get user information\n mDialog.dismiss();\n User currentUser = dataSnapshot.child(user).getValue(User.class);\n if (currentUser.getPassword().equals(password)) {\n Toast.makeText(MainActivity.this, \"Sign In Successfully !\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(MainActivity.this, HomeActivity.class).putExtra(\"name\", currentUser.getName()).putExtra(\"rollNo\", currentUser.getRollNo()));\n finish();\n } else {\n Toast.makeText(MainActivity.this, \" Sign In Failed !!\\nCheck Credentials\", Toast.LENGTH_SHORT).show();\n }\n } else {\n mDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"User not exist inside Database\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void append_chat_conversation(DataSnapshot dataSnapshot) {\n Vibrator mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);\n Iterator i = dataSnapshot.getChildren().iterator();\n while (i.hasNext()) {\n String chat_msg = (String) ((DataSnapshot) i.next()).getValue();\n String chat_user_name = (String) ((DataSnapshot) i.next()).getValue();\n if (chat_user_name.equals( ad.getName())) {\n Spannable Chatme = new SpannableString(chat_user_name + \" : \" + chat_msg + \" \\n\");\n Chatme.setSpan(new ForegroundColorSpan(Color.BLUE), 0, chat_user_name.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n chat_conversation.append(Chatme);\n\n } else {\n chat_conversation.append( chat_user_name + \" : \" + chat_msg + \" \\n\");\n mVibrator.vibrate(200);\n }\n }\n }",
"private void showAlertDialog(String key) {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n //create a new layout xml for this?\n //final View customLayout = getLayoutInflater().inflate(R.layout.activity_scanner_result, null);\n //alertDialog.setView(customLayout);\n alertDialog.setTitle(\"Alert Dialog - Duplicate Check\").setMessage(\"Oh No!! Record \"+key+\" is found in database..\");\n alertDialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // send data from the AlertDialog to the Activity\n //EditText editText = customLayout.findViewById(R.id.edit_studentName);\n Toast.makeText(ScannerActivity.this,\"Redirecting...\",Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(ScannerActivity.this, ScannerResult.class);\n assignObjValue(laptopCheckOutInfoList, key);\n intent.putExtra(\"laptop_record_info\", laptopCheckOutInfo); //return the object li as a serialized object\n startActivity(intent);\n }\n });\n AlertDialog alert = alertDialog.create();\n alert.setCanceledOnTouchOutside(false);\n alert.show();\n }",
"@Override\n protected Integer doInBackground(String... params) {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"user_info\").child(userId).child(ItemContract.ItemEntry.TABLE_NAME_CART);\n ref.addListenerForSingleValueEvent(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n\n\n //Get map of users in datasnapshot\n noOfItemQuantities = Integer.parseInt(textQuantity.getText().toString());\n\n //iterate through each user, ignoring their UID\n for (DataSnapshot messageSnapshot : dataSnapshot.getChildren()) {\n\n String name = messageSnapshot.child(\"name\").getValue().toString();\n\n\n\n int quantity = Integer.parseInt(messageSnapshot.child(\"quantity\").getValue().toString());\n if (name.equals(names)) {\n if (noOfItemQuantities == quantity) {\n\n ispresent[0] = 0;\n Log.v(\"Sync back \", ispresent[0] + names + noOfItemQuantities);\n return;\n\n } else {\n key = messageSnapshot.getKey();\n ispresent[0] = 1;\n Log.v(\"Sync back\", ispresent[0] + names + noOfItemQuantities);\n return;\n\n\n }\n\n\n }\n }\n\n\n ispresent[0] = 2;\n\n Log.v(\"Sync back inout\", ispresent[0] + names + noOfItemQuantities);\n\n\n }\n\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n //handle databaseError\n }\n });\n Log.v(\"Sync back outside\", ispresent[0] + names + noOfItemQuantities);\n if(names==null) {\n ispresent[0] =2;\n\n }\n\n return ispresent[0];\n\n }",
"@Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\n\r\n\r\n }",
"private void check_1() {\n\n Intent l = new Intent(MainActivity.this, MapsView.class);\n //l.putExtra(\"kategori\", \"Bank\");\n\n\n startActivity(l);\n }",
"public void searchByPhoto(String string){\n boolean flag = false;\n for(int i=0; i<arrayList.size(); i++){\n Event event = arrayList.get(i);\n\n if(string.contains(event.getName())){\n flag = true;\n\n // Goes To Event Details Activity\n Intent intent = new Intent(getApplicationContext(), EventDetailsActivity.class);\n // putting an object as an intent extra\n intent.putExtra(\"Event\",(Serializable) event);\n startActivity(intent);\n\n\n }\n }\n if(flag == false){\n Toast.makeText(this, \"Not found!\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n userName.set(position, dataSnapshot.getValue().toString());\n chatUserAdapter.notifyDataSetChanged();\n Log.d(TAG, \"User Name: \" + userName);\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n UserProfile userProfile = dataSnapshot.getValue(UserProfile.class);\n profileName.setText(userProfile.getname());\n profileEmail.setText(userProfile.getemail());\n profilePhone.setText(userProfile.getphone());\n /* profileName.setText(fname);\n profileEmail.setText(cemail);\n profilePhone.setText(cphone);*/\n\n\n\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(getApplicationContext(),\n \"like to watch: \"+((Movie)v.getTag()).title,\n Toast.LENGTH_SHORT).show();\n }",
"private void verifyDatabaseNickname(String nickname){\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"User\").orderBy(\"Nickname\", Query.Direction.DESCENDING)\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n int nb=0;\n for (DocumentSnapshot doc : task.getResult())\n {\n System.out.println(\"===== \"+doc.getString(\"Nickname\"));\n System.out.println(\"===== N to test : \" + nickname);\n if(nickname.equals(doc.getString(\"Nickname\"))){\n nb++;\n }\n\n\n }\n TextView status = findViewById(R.id.inscr_verif_state);\n if(nb==0){\n\n status.setText(\"'\"+ nickname + \"'\" + \" is free to use !\");\n status.setTextColor(Color.GREEN);\n\n Button btn = findViewById(R.id.inscr_btn_next2);\n btn.setEnabled(true);\n btn.setVisibility(View.VISIBLE);\n user.nickname = nickname;\n } else {\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.invalid_nickname), Toast.LENGTH_SHORT ).show();\n\n status.setText(nickname + \": already in use.\");\n status.setTextColor(Color.RED);\n }\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(Subscription_part2_Activity.this,\"Fail on loading database.\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Test\n public void wrongContact(){\n solo .sleep (1000);\n solo.assertCurrentActivity(\"Wrong activity\", UserProfileActivity.class);\n\n String username = firebaseAuth.getCurrentUser().getDisplayName();\n db.collection(\"users\").document(username).get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if (task.isSuccessful()) {\n DocumentSnapshot document = task.getResult();\n if (document.exists()) {\n Map userData = document.getData();\n if (userData != null) {\n String correctContact = userData.get(\"contactNo\").toString();\n TextView view = (TextView) solo .getView ( \"user_contact\" );\n assertEquals ( correctContact , view.getText());\n\n }\n }\n }\n }\n });\n }",
"@Override\n public void onClick(View v) {\n String vehicleNo=et_vehicleNo.getText().toString().trim();\n if(vehicleNo.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Please Enter a Vehicle No\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n String msg=repo.CheckVehhicleAlreadyExist(vehicleNo);\n if(!msg.equals(\"exist\"))\n {\n repo.addVehicleNo(vehicleNo);\n List<Student> l=repo.getAllVehhicle();\n dialog.dismiss();\n // Student barcode = l.get(0);\n // Toast.makeText(AdminHomeActivity.this, \"\"+barcode.getVehicleNo(), Toast.LENGTH_SHORT).show();\n }\n else\n {\n Toast.makeText(AdminHomeActivity.this, \"Vehicle No Alreay Exist\", Toast.LENGTH_SHORT).show();\n }\n\n }\n\n\n\n }",
"@Override\n\n public void onClick(final DialogInterface dialog, int which) {\n final Event eventToSignUp = events.get(position);\n csSignUpEventsRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(!dataSnapshot.hasChild(eventToSignUp.getID())){\n Log.i(\"REF TEST\", \"child \"+ eventToSignUp.getID() + \" doesn't exist\");\n DatabaseReference signUpRef = csSignUpEventsRef.child(eventToSignUp.getID());\n DatabaseReference errorCheck = csSignUpEventsRef.child(\"for_testing_pls\");\n dialog.dismiss();\n Log.i(\"REF TEST\", \"toString: \" + errorCheck.toString() + \"\\nKey: \" + errorCheck.getKey());\n Map<String, String> userData = new HashMap<String, String>();\n\n userData.put(\"date\", eventToSignUp.getDate());\n userData.put(\"description\", eventToSignUp.getDescription());\n userData.put(\"location\", eventToSignUp.getLocation());\n userData.put(\"time\", eventToSignUp.getTime());\n userData.put(\"title\", eventToSignUp.getTitle());\n\n signUpRef.setValue(userData);\n\n\n } else {\n Log.i(\"REF TEST\", \"child \"+ eventToSignUp.getID() + \" exists\");\n AlertDialog.Builder errorD = new AlertDialog.Builder(v.getContext());\n errorD.setTitle(\"Sign up error\");\n errorD.setMessage(\"You've already signed up for this event\");\n errorD.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n AlertDialog alertE = errorD.create();\n alertE.show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n// if (true){\n// DatabaseReference signUpRef = csSignUpEventsRef.child(eventToSignUp.getID());\n// DatabaseReference errorCheck = csSignUpEventsRef.child(\"for_testing_pls\");\n// dialog.dismiss();\n// Log.i(\"REF TEST\", \"toString: \" + errorCheck.toString() + \"\\nKey: \" + errorCheck.getKey());\n// Map<String, String> userData = new HashMap<String, String>();\n//\n// userData.put(\"date\", eventToSignUp.getDate());\n// userData.put(\"description\", eventToSignUp.getDescription());\n// userData.put(\"location\", eventToSignUp.getLocation());\n// userData.put(\"time\", eventToSignUp.getTime());\n// userData.put(\"title\", eventToSignUp.getTitle());\n//\n// signUpRef.setValue(userData);\n//\n// events.remove(position);\n// adapter.notifyDataSetChanged();\n// } else{\n// AlertDialog.Builder errorD = new AlertDialog.Builder(v.getContext());\n// errorD.setTitle(\"Sign up error\");\n// errorD.setMessage(\"You've already signed up for this event\");\n// errorD.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// dialog.dismiss();\n// }\n// });\n// }\n\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(ct,\" Blood Group \"+bloodgroup[position], Toast.LENGTH_LONG).show();\n }"
]
| [
"0.67897034",
"0.6557191",
"0.6433888",
"0.6368415",
"0.63503605",
"0.6307618",
"0.62789947",
"0.6168221",
"0.6142758",
"0.6140858",
"0.61135274",
"0.60826653",
"0.6080286",
"0.6059826",
"0.6059826",
"0.59990156",
"0.5974579",
"0.59159195",
"0.5906201",
"0.58939135",
"0.5893841",
"0.5884426",
"0.58711106",
"0.58594435",
"0.58443296",
"0.58292365",
"0.58165294",
"0.5809953",
"0.57869625",
"0.57869625",
"0.57571405",
"0.5684262",
"0.564695",
"0.564574",
"0.56273437",
"0.5598854",
"0.559395",
"0.5575955",
"0.5562878",
"0.5549367",
"0.5546601",
"0.55457497",
"0.5522406",
"0.5515042",
"0.55096537",
"0.5504686",
"0.5494441",
"0.547644",
"0.54611385",
"0.54477745",
"0.54412496",
"0.5432618",
"0.5428882",
"0.54177934",
"0.5413051",
"0.5406451",
"0.54015183",
"0.53903973",
"0.53720886",
"0.5362016",
"0.53607",
"0.53598046",
"0.53533834",
"0.534583",
"0.53364384",
"0.5329429",
"0.5326571",
"0.5321986",
"0.53214216",
"0.53178674",
"0.52924836",
"0.52919686",
"0.52748275",
"0.52700746",
"0.52696514",
"0.526727",
"0.5266231",
"0.5264972",
"0.5263263",
"0.52618396",
"0.5257578",
"0.52571017",
"0.5248908",
"0.5235445",
"0.52242875",
"0.52120066",
"0.5197852",
"0.5193773",
"0.5192547",
"0.51889706",
"0.51886076",
"0.5186729",
"0.51857036",
"0.51832044",
"0.5182617",
"0.51786584",
"0.5176091",
"0.5156989",
"0.51526695",
"0.51434433"
]
| 0.6476353 | 2 |
Intent i = new Intent(ViewBooksActivity.this,DisplayActivity.class); i.putExtra("URL VALUE",url); startActivity(i); | @Override
public void onClick(View v) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClick(View v){\n EditText et = findViewById(R.id.et_1);\n String n;\n n = et.getText().toString();\n Bundle bundle = new Bundle();\n bundle.putString(\"url\",n);\n Intent intent = new Intent(getBaseContext(),t1.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }",
"public void onClick(View v) {\n\n Intent visitSite_intent = new Intent(MainActivity.this, DetailActivity.class);\n visitSite_intent.putExtra(\"url\",\"http://aanm-vvrsrpolytechnic.ac.in/\");\n startActivity(visitSite_intent);\n }",
"@Override\n public void onClick(View v) {\n Intent detail=new Intent(getBaseContext(),DetailArticle.class);\n detail.putExtra(\"webURL\",webHotURL);\n startActivity(detail);\n }",
"public void accederClick(View view){\n //Declarar activity web\n Intent i = new Intent(this, ActivityWeb.class);\n\n //Enviar url a la activity web\n i.putExtra(\"url\", etUrlM.getText().toString());\n\n //Cargar Activity\n startActivity(i);\n }",
"@Override\n public void onClick(View view) {\n Intent detail = new Intent(getBaseContext(), DetailArticle.class);\n detail.putExtra(\"webURL\", webHotURL);\n startActivity(detail);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(Constant.INTENT_WEB_URL, webHotUrl);\n startActivity(intent);\n }",
"private void GotoGraficos(String data){\n Intent intent = new Intent(this, Graficos_Sesion.class);\n intent.putExtra(\"url\", data);\n startActivity(intent);\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent=new Intent();\r\n\t\t\t\tintent.putExtra(\"goods_id\", goods_id);\r\n\t\t\t\tintent.setClass(GoodsActivity.this, LoadurlActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"public void bookResource(View view)\r\n {\n startActivity(new Intent(this, BookResource.class));\r\n // Intent intent_bookResource = new Intent(this, BookResource.class );\r\n // intent_bookResource.putExtra(\"userName\", userName);\r\n // this.startActivity(intent_bookResource);\r\n\r\n\r\n\r\n\r\n }",
"private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=201\");\n\t\t\t\tstartActivity(intent);\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, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=213\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void goToDisplayActivity(View view)\n {\n Intent intent = new Intent(MainActivity.this, DisplayActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n String Url= currentNews.getWebUrl();\n //sent intent to the website\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n intent.setData(Uri.parse(Url));\n getContext().startActivity(intent);\n }",
"@Override\n public void onClick(View view){\n Intent intentWeb = new Intent(Intent.ACTION_VIEW);\n intentWeb.setData(Uri.parse(buttonUrl.getText().toString()));\n startActivity(intentWeb); //lancement\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=209\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=217\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override //Con esto se redirige a la DisplayActivity\n public void onClick(View v) {Intent goToDisplay = new Intent(context,DisplayActivity.class);\n\n /*Se añaden además otros dos parámetros: el id (para que sepa a cuál libro buscar)\n y el título (para ponerlo como título\n */\n goToDisplay.putExtra(\"ID\",id);\n goToDisplay.putExtra(\"titulo\", title);\n\n //Se inicia la DisplayActivity\n context.startActivity(goToDisplay);\n String url=null;\n goToDisplay.putExtra(\"http://http://127.0.0.1:5000/archivo/<ID>\", url);\n\n }",
"@Override\n public void onClick(View v) {\n \tIntent in = new Intent(getApplicationContext(), DownloadFile.class);\n in.putExtra(\"url\", url_get_file);\n startActivityForResult(in, 100);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=207\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }",
"@Override\n public void onClick(View v) {\n Intent activityIntent = new Intent(MainActivity.this, LocalList.class);\n// activityIntent.putExtra(\"reps\", getInfo(MainActivity.this, link));\n activityIntent.putExtra(\"zipcode\", zipcode.getText().toString());\n startActivity(activityIntent);\n }",
"@Override\n public void onClick(View v) {\n\n String url = \"https://club-omnisports-des-ulis.assoconnect.com/billetterie/offre/146926-a-adhesion-karate-2020-2021\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n\n }",
"public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.e(\"debug\", \"url\");\n\t\t\t\tIntent i;\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\ti = new Intent(activity, InfoDetailActivity.class);\n\t\t\t\ti.putExtra(InfoDetailActivity.TITLE, \"优质产品\");\n\t\t\t\ti.putExtra(\n\t\t\t\t\t\tInfoDetailActivity.URL,\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=11\");\n\t\t\t\ti.setAction(\"push\");\n\t\t\t\tbundle.putString(\"title\", \"优质产品\" + \"\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"key\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=11\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"url\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=11\");\n\t\t\t\ti.putExtras(bundle);\n\n\t\t\t\tactivity.startActivity(i);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(url);\n //Se crea un intent implicito para visualizar los links en un navegador\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n //Se inicia la actividad del navegador\n activityt.startActivity(intent);\n }",
"private void goToUrl (String url) {\n Intent launchWebview = new Intent(this, ManualWebviewActivity.class);\n launchWebview.putExtra(\"url\", url);\n startActivity(launchWebview);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.e(\"debug\", \"url\");\n\t\t\t\tIntent i;\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\ti = new Intent(activity, InfoDetailActivity.class);\n\t\t\t\ti.putExtra(InfoDetailActivity.TITLE, \"品牌概况\");\n\t\t\t\ti.putExtra(\n\t\t\t\t\t\tInfoDetailActivity.URL,\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=13\");\n\t\t\t\ti.setAction(\"push\");\n\t\t\t\tbundle.putString(\"title\", \"品牌概况\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"key\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=13\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"url\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=13\");\n\t\t\t\ti.putExtras(bundle);\n\n\t\t\t\tactivity.startActivity(i);\n\t\t\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Log.d(\"url-clicked\",fileu.get(position));\n // mediaPlayer.setDataSource(fileu.get(position));\n Intent i= new Intent(homepage.this,Playeractivity.class);//create an isntent for the player activity class\n i.putExtra(\"FILE_URL\",user.Lecture);//pass the lecture url to the next activity\n startActivity(i);//start the new activity\n //Intent i = new Intent(getActivity(), DiscussAddValu.class);\n // startActivity(i);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.e(\"debug\", \"url\");\n\t\t\t\tIntent i;\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\ti = new Intent(activity, InfoDetailActivity.class);\n\t\t\t\ti.putExtra(InfoDetailActivity.TITLE, \"产品概况\");\n\t\t\t\ti.putExtra(\n\t\t\t\t\t\tInfoDetailActivity.URL,\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=10\");\n\t\t\t\ti.setAction(\"push\");\n\t\t\t\tbundle.putString(\"title\", \"产品概况\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"key\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=10\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"url\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=10\");\n\t\t\t\ti.putExtras(bundle);\n\t\t\t\tactivity.startActivity(i);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(v.getContext(), WebViewActivity.class);\n //intent.setData(Uri.parse(listOfArticles.get(position).getLinkToArticle()));\n intent.putExtra(LINK_URL_KEY, listOfArticles.get(position).getLinkToArticle());\n v.getContext().startActivity(intent);\n }",
"public void Click(View view){\n\n\n EditText editText=(EditText)findViewById(R.id.e);\n String str = editText.getText().toString();\n Intent intent = new Intent(NewActivity.this, WeatherActivity.class);\n//使用putExtra(key,value)方法传递数据\n intent.putExtra(\"editTextValue\",str);\n//跳转到第2个Activity页面\n startActivity(intent);\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.e(\"debug\", \"url\");\n\t\t\t\tIntent i;\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\ti = new Intent(activity, InfoDetailActivity.class);\n\t\t\t\ti.putExtra(InfoDetailActivity.TITLE, \"公司简介\");\n\t\t\t\ti.putExtra(\n\t\t\t\t\t\tInfoDetailActivity.URL,\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=9\");\n\t\t\t\ti.setAction(\"push\");\n\t\t\t\tbundle.putString(\"title\", \"公司简介\" + \"\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"key\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=9\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"url\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=9\");\n\t\t\t\ti.putExtras(bundle);\n\n\t\t\t\tactivity.startActivity(i);\n\t\t\t}",
"public void openActivity2(){\n Intent intent = new Intent(this, SearchBook.class);\n startActivity(intent);\n }",
"@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 Intent i = new Intent(context, DetailActivity.class); //create intent to switch screen\n\n //trying to place movie into putExtra by putting it into Parcelable value (bc method can't take movie object)\n //we use Parcelable (go to AndroidStudio ref. where they have the code to allow u to use Parceler library\n //essentially, you place the implementation code into buildgradle file\n i.putExtra(\"movie\", Parcels.wrap(movie));\n //add @Parcel to Movie class and add empty constructor as shown in AU (android U) page + empty constructor\n //now you can go to DetailActivity to retrieve the whole movie object just by using an intent\n\n context.startActivity(i);\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.e(\"debug\", \"url\");\n\t\t\t\tIntent i;\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\ti = new Intent(activity, InfoDetailActivity.class);\n\t\t\t\ti.putExtra(InfoDetailActivity.TITLE, \"企业文化\");\n\t\t\t\ti.putExtra(\n\t\t\t\t\t\tInfoDetailActivity.URL,\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=12\");\n\t\t\t\ti.setAction(\"push\");\n\t\t\t\tbundle.putString(\"title\", \"企业文化\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"key\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=12\");\n\t\t\t\tbundle.putString(\n\t\t\t\t\t\t\"url\",\n\t\t\t\t\t\t\"http://cloud.yofoto.cn/index.php?gr=wapsite&mr=shwuczb&ar=showpageshtml&comid=12\");\n\t\t\t\ti.putExtras(bundle);\n\n\t\t\t\tactivity.startActivity(i);\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(DriverPrefrActivity.this, SearchParkActivity.class);\n //Creating a bundle\n Bundle bundle = new Bundle();\n //Adding values to bundle\n bundle.putString(\"driverlargecar\", String.valueOf(largecar));\n bundle.putString(\"drivertype\", String.valueOf(type));\n bundle.putString(\"driverprice\", String.valueOf(price));\n bundle.putString(\"driverdistancepklot\", String.valueOf(distpklot));\n\n myIntent.putExtra(\"mybundle\", bundle);\n startActivity(myIntent);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(CuisineActivity.this,BookActivity.class);\n // Intent intent = new Intent(mContext,BookActivity.class);\n intent.putExtra(\"res_id\",restDetails.get(position).getRestId());\n intent.putExtra(\"Title\",restDetails.get(position).getRestName());\n intent.putExtra(\"Email\",restDetails.get(position).getRestEmail());\n intent.putExtra(\"Details\",restDetails.get(position).getRestAddress());\n intent.putExtra(\"thumbnail\",restDetails.get(position).getRestImage());\n intent.putExtra(\"phoneNumber\",restDetails.get(position).getRestPhone());\n intent.putExtra(\"restStatus\",restDetails.get(position).getRestStatus());\n intent.putExtra(\"openingTime\",restDetails.get(position).getRestOpeningTime());\n intent.putExtra(\"closingTime\",restDetails.get(position).getRestClosingTime());\n intent.putExtra(\"Badge\",restDetails.get(position).getRestRating());\n //intent.putExtra(\"thumbnail\",image);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(BoilerRoom.this, ScanQR.class);\n //intent.putExtra( \"id\", tvmechID.getText().toString() );\n startActivity(intent);\n }",
"private void toWebViewActivity(){\n Intent toWebViewActivity = new Intent(this, AmazonActivity.class);\n startActivity(toWebViewActivity);\n }",
"public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }",
"@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }",
"@Override\n public void onClick(View view) {\n Intent httpIntent = new Intent(Intent.ACTION_VIEW);\n httpIntent.setData(Uri.parse(\"http://bvmengineering.ac.in\"));\n\n startActivity(httpIntent);\n\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"public void funcionAppian(View v){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(\"https://ustglobalspaindemo.appiancloud.com/suite/tempo/news\"));\n if(intent.resolveActivity(getPackageManager())!= null){\n startActivity(intent);\n }\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname2.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(\"YourValueKey\", array_detailview.get(position));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n\n// view.getContext().startActivity(new Intent(view.getContext(), DetailActivity.class));\n// context.startActivity(new Intent(context, DetailActivity.class));\n\n\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname3.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.gteducation.in\"));\n startActivity(intent);\n Toast.makeText(NoticeActivity.this,\"go to my website\",Toast.LENGTH_SHORT).show();\n\n }",
"public void GoToMain() {\n\t \t Intent intent = new Intent(this, MainActivity.class);\n\t \t intent.putExtra(\"Test value\", testList);\n\t \t startActivity(intent);\n\t }",
"@Override\n public void onClick(View view) {\n //Convert the String URL into a URI object (to pass into the Intent constructor)\n Uri newsUri = Uri.parse(url);\n\n // Create a new intent to view the earthquake URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, newsUri);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname5.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Book currentBook = adapter.getItem(position);\n\n // Convert the String URL into a URI object (to pass into the Intent constructor)\n Uri bookUri = Uri.parse(currentBook.getUrl());\n\n // Create a new intent to view the book URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, bookUri);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n }",
"public void Call_My_Blog(View v) {\n Intent intent = new Intent(MainActivity.this, My_Blog.class);\n startActivity(intent);\n\n }",
"public static void openURL(Context activity, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n activity.startActivity(i);\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname4.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"public void searchProduct(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n\n if(intent.resolveActivity(getContext().getPackageManager()) != null) {\n getContext().startActivity(intent);\n }\n }",
"public void openBrowser(View view){\n String url = (String)view.getTag();\n\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n\n //pass the url to intent data\n intent.setData(Uri.parse(url));\n\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"2\");\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(1).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }",
"public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }",
"@Override\n public void onClick(View v) {\n String s1=e1.getText().toString();\n String s2=e2.getText().toString();\n Intent i=new Intent(MainActivity.this,Secondactivity.class);\n //use method of intent class this is putExtra(through putextra method)send data in form of key n valu\n i.putExtra(\"name_key\",s1);\n i.putExtra(\"phone_name\",s2);\n startActivity(i);\n\n\n\n }",
"@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(2).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Book currentBook = mAdapter.getItem(position);\n\n // Convert the String URL into a URI object (to pass into the Intent constructor)\n Uri bookUri = Uri.parse(currentBook.getBookPreviewUrl());\n\n // Create a new intent to view the book URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, bookUri);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n }",
"@Override\n public void onClick(View view) {\n final String e = imagedat.get(0).getCategory();\n Intent c = new Intent(MainActivity.this, categories_Activity.class) ;\n c.putExtra(\"Cat\", e);\n startActivity(c);\n }",
"@Override\n public void onItemClick(AdapterView<?> aView, View view, int position, long id) {\n TextView pos_Id = (TextView) view.findViewById(R.id.posterID);\n TextView pos_Title = (TextView) view.findViewById(R.id.posterTitle);\n TextView pos_Author = (TextView) view.findViewById(R.id.posterAuthor);\n TextView pos_Email = (TextView) view.findViewById(R.id.posterEmail);\n String idNo = (String) pos_Id.getText();\n String title = pos_Title.getText().toString();\n String author = pos_Author.getText().toString();\n String email = pos_Email.getText().toString();\n\n\n Intent intent = new Intent(MainActivity.this, EvaluateActivity.class);\n intent.putExtra(\"ID\",idNo);\n intent.putExtra(\"Title\",title);\n intent.putExtra(\"Author\",author);\n intent.putExtra(\"Email\",email);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(Visa.this,Recepit.class);\n startActivity(intent);\n\n\n }",
"@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(3).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }",
"@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), web1.class);\n startActivity(i);\n }",
"@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), web.class);\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(4).webUrl);\n\n //startActivity(intent);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }",
"private void TransferDataToMainActivity(){\n Intent intent = new Intent(ChooseService.this, MainActivity.class);\n intent.putExtra(\"Professional\", professionalName);\n intent.putExtra(\"Service\", serviceName);\n intent.putExtra(\"Price\", servicePrice);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"1\");\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(context, NewsDetails.class);\n intent.putExtra(\"desc\", desc.getText().toString()); // here key is = desc\n intent.putExtra(\"pubdate\", pub.getText().toString()); //key is = pubdate ,, nd in next activity key must be same\n intent.putExtra(\"title\", txtTitle.getText().toString());\n intent.putExtra(\"shdesc\", shdesc.getText().toString());\n intent.putExtra(\"postedby\", uname.getText().toString());\n context.startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setClass(getApplicationContext(), Atividade2.class);\n //envio do parametro chamado parametro1\n intent.putExtra(\"parametro1\", \"este é um parametro\");\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext,CheeseDetailActivity.class);\n intent.putExtra(CheeseDetailActivity.EXTRA_CHEESE_NAME,cheeseString);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, ListDataActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n String txt_display = txtDisplay.getText().toString();\n Intent myIntent = new Intent(MainActivity.this,\n SecondActivity.class);\n myIntent.putExtra(Intent.EXTRA_TEXT, txt_display);\n startActivity(myIntent);\n }",
"public void onClick(View view){\n Intent toDetailActivity = new Intent (view.getContext(), Detail.class);\n toDetailActivity.putExtra(\"nama\", nama.getText().toString());\n toDetailActivity.putExtra(\"gender\",avatarCode);\n toDetailActivity.putExtra(\"pekerjaan\", job.getText().toString());\n view.getContext().startActivity(toDetailActivity);\n }",
"@Override\n public void onClick(View v) {\n Intent opnWebIntent = new Intent(getActivity(), WebViewActivity.class);\n opnWebIntent.putExtra(\"url\", \"http://www.mbtabackontrack.com/performance/index.html#/home\");\n startActivity(opnWebIntent);\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), BPActivity.class);\n startActivity(i);\n }",
"private void getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setClass(AddPlan.this,Favorite_Site.class);\n// Bundle bundle = new Bundle();\n// bundle.putString(\"myChoice\",\"hello\");\n// intent.putExtras(bundle);\n// startActivityForResult(intent,0);\n startActivity(intent);\n// //AddPlan.this.finish();\n finish();\n\n }",
"@Override\n public void onClick(View v) {\n if (postmodel.getSellType() == 1) {\n\n Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(postmodel.getProductLink()));\n context.startActivity(i);\n } else {\n Bundle bundle = new Bundle();\n bundle.putStringArray(\"images\", finalImageArray);\n Intent intent = new Intent(context, ProductPage.class);\n intent.putExtra(\"product_name\", postmodel.getProductName());\n intent.putExtra(\"product_cat\", postmodel.getProductCat());\n intent.putExtra(\"product_desc\", postmodel.getProductDesc());\n intent.putExtra(\"product_link\", postmodel.getProductLink());\n intent.putExtra(\"product_price\", String.valueOf(postmodel.getProductPrice()));\n intent.putExtra(\"id\", String.valueOf(postmodel.getId()));\n intent.putExtras(bundle);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }\n\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, SecondActivity.class);\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainDashBoardActivity.this, DealerSearchActivity.class);\n startActivity(intent);\n\n\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class)\n .putExtra(\"title\", model.getMovieName())\n .putExtra(\"vote_average\", model.getVotes() + \"\")\n .putExtra(\"overview\", model.getMovieOverview())\n .putExtra(\"popularity\", model.getMoviePopularity() + \"\")\n .putExtra(\"release_date\", model.getMovieReleaseDate())\n .putExtra(\"vote_count\", model.getMovieVoteCount())\n .putExtra(\"Picture\", model.getMoviePoster());\n\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(v.getContext(), DetailViewActivity.class);\n intent.putExtra(\"title\", countries.get(position).getName());\n intent.putExtra(\"link\", countries.get(position).altSpellings.get(0));\n v.getContext().startActivity(intent);\n\n\n\n }",
"@Override\n public void onClick(View view) {\n\n Intent Main_Save_Intent = new Intent(getApplicationContext(),PingTestSetup.class);\n Bundle Main_Save_Bundle = new Bundle();\n Main_Save_Bundle.putSerializable(\"Play_TC_List\",Play_TC_List);\n Main_Save_Intent.putExtras(Main_Save_Bundle);\n startActivity(Main_Save_Intent);\n\n\n }",
"@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, SettingActivity.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}",
"@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n Review reviewsarapan = this.list.get(position);\n\n Intent intent = new Intent(ctx, ReviewDetails.class);\n intent.putExtra(\"detail_id\", reviewsarapan.getId_review());\n intent.putExtra(\"detail_gambar\", \"http://192.168.1.36/Pampo/gambar_detail/\"+reviewsarapan.getGambar_detail());\n System.out.println(\"Gambar : \"+ reviewsarapan.getGambar_detail());\n intent.putExtra(\"detail_judul\", reviewsarapan.getJudul_review());\n intent.putExtra(\"detail_deskripsi\", reviewsarapan.getDeskripsi_review());\n this.ctx.startActivity(intent);\n }",
"private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, PageDetailDestinasiPopuler.class);\n startActivity(intent);\n }",
"void openActivity() {\n Intent intent = new Intent(\"myaction\");\n Bundle bundle = new Bundle();\n bundle.putString(\"name\", \"hui\");\n intent.putExtras(bundle);\n startActivityForResult(intent, 1);\n }",
"private void startBookingDetails() {\n\t\t\n\t\n\t Intent launchBookingDetails = new Intent(this, BookingDetails.class);\n\t launchBookingDetails.putExtra(\"obj\", obj);\n\t startActivity(launchBookingDetails);\n\n\t }",
"public void GoToTestDetails() {\n\t \t Intent intent = new Intent(this, TestDetails.class);\n\t \t intent.putExtra(\"Test value\", testList);\n\t \t startActivity(intent);\n\t }",
"@Override\n public void onClick(View v) {\n Intent libraryIntent = new Intent(MainActivity.this, LibraryActivity.class);\n startActivity(libraryIntent);\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainActivity.this, ListViewActivity.class);\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n intent.putExtra(\"NAME\", (String) mNameTextView.getText());\n intent.putExtra(\"REALNAME\", (String) mRealNameTextView.getText());\n intent.putExtra(\"URL\", (String) mHero.getUrl());\n startActivity(intent);\n }"
]
| [
"0.7879128",
"0.75900596",
"0.75103664",
"0.7323278",
"0.72916216",
"0.72514963",
"0.7081915",
"0.6972045",
"0.689653",
"0.68620676",
"0.6849364",
"0.6845547",
"0.6836897",
"0.68345124",
"0.6828702",
"0.6827805",
"0.68182194",
"0.6813728",
"0.6810719",
"0.67881596",
"0.6786789",
"0.67462355",
"0.6705747",
"0.6704178",
"0.66814446",
"0.6679604",
"0.6676996",
"0.66757345",
"0.666571",
"0.6637098",
"0.66265553",
"0.6621886",
"0.6612755",
"0.65915877",
"0.6578139",
"0.65718365",
"0.6547953",
"0.65382534",
"0.65376395",
"0.6528418",
"0.65186316",
"0.6516511",
"0.6504653",
"0.6498883",
"0.647518",
"0.6470036",
"0.6457977",
"0.6454363",
"0.6446593",
"0.6427278",
"0.64261407",
"0.64180344",
"0.6407649",
"0.64042455",
"0.6398607",
"0.6393001",
"0.6389991",
"0.6376426",
"0.63738847",
"0.6372521",
"0.63717306",
"0.6354283",
"0.63470006",
"0.63453054",
"0.63443804",
"0.63344085",
"0.6329406",
"0.6324644",
"0.6317743",
"0.6315948",
"0.6314988",
"0.6306291",
"0.6295629",
"0.62887436",
"0.62833256",
"0.62802976",
"0.62733114",
"0.62660646",
"0.6251348",
"0.62505937",
"0.6249047",
"0.62477773",
"0.62417287",
"0.62395936",
"0.62363076",
"0.6223476",
"0.6216613",
"0.62161463",
"0.6215158",
"0.6210031",
"0.62098175",
"0.62083256",
"0.6205045",
"0.6200558",
"0.61930335",
"0.618324",
"0.6182903",
"0.6175607",
"0.61736566",
"0.6173058",
"0.6172104"
]
| 0.0 | -1 |
Gets the value of the verformung property. | public double getVerformung() {
return verformung;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getVer() {\n return ver;\n }",
"public Integer getVer() {\n\t\treturn ver;\n\t}",
"public void setVerformung(double value) {\r\n this.verformung = value;\r\n }",
"public String getVer() {\r\n return this.ver;\r\n }",
"public double getVerdienst()\n {\n return gehalt;\n }",
"public String getvNumanoreg() {\n return vNumanoreg;\n }",
"public int getAantalVerwerkt() {\n return aantalVerwerkt;\n }",
"public Integer getVerCode() {\n return verCode;\n }",
"public short getVnom() {\n return vnom;\n }",
"public String getVerName() {\n return verName;\n }",
"public boolean isVerkauft() {\n\t\treturn this.verkauft;\n\t}",
"public String getVeriStat()\n\t{\n\t\treturn veriStat;\n\t}",
"String getVorlesungKennung();",
"public VrstaVezbe getVv() {\n return vv;\n }",
"public Versteck getVersteck() {\n return versteck;\n }",
"public Vragenlijst getVragenlijst() {\n return vragenlijst;\n }",
"public boolean vegallomasonVan()\r\n\t{\r\n\t\treturn vegallomas;\r\n\t}",
"public String getVersion()\n {\n return ver;\n }",
"public short getFreiVerantwortlicher() {\n\t\treturn freiVerantwortlicher;\n\t}",
"public String getVin() {\r\n return vin;\r\n }",
"public String getVin() {\r\n return vin;\r\n }",
"public String getvFlgact() {\n return vFlgact;\n }",
"public String getVigencia() { return this.vigencia; }",
"public java.lang.String getVTWEG() {\n return VTWEG;\n }",
"public String getVin() {\n\t\treturn vin;\n\t}",
"public String getVinField() {\r\n return vinField.getText();\r\n }",
"@Override\n\tpublic java.lang.String getVcampo() {\n\t\treturn _esfShooterAffiliationChrono.getVcampo();\n\t}",
"public String getJustificacionVerTipo() {\n\t\treturn justificacionVerTipo;\n\t}",
"public String getMapVer() {\n\t\t\treturn mapVer;\n\t\t}",
"public String getvNumreg() {\n return vNumreg;\n }",
"public String getVerDescription() {\n return verDescription;\n }",
"public String getZahlart() {\n\t\treturn this.zahlart;\n\t}",
"public String getErjiguanlianzd() {\n return erjiguanlianzd;\n }",
"public int getPesoV() \r\n\t\t{\r\n\t\t\treturn PesoV;\r\n\t\t}",
"@Override\n\t\t\tpublic String getValue(Bewerbung object) {\n\t\t\t\treturn object.getErstelldatum().toString();\n\t\t\t}",
"public static String getVmVersion() {\r\n\t\treturn vmVersion;\r\n\t}",
"public String getKazeikbn() {\r\n return kazeikbn;\r\n }",
"public String getVersion() {\n return this.version;\n }",
"public RegelAnmerkung getRegelAnmerkung() {\r\n return regelAnmerkung;\r\n }",
"public String getLugarVisita() {\n return lugarVisita.get();\n }",
"public String getVersion () {\n return this.version;\n }",
"public long getV() {\n return v;\n }",
"public String getvDestmon() {\n return vDestmon;\n }",
"public Valore getValore() {\n\t\treturn valore;\n\t}",
"@Nullable\n public String getVersion() {\n return gav.getVersion();\n }",
"public String getVoorNaam(){\n return voornaam;\n }",
"public float getVolum() {\n return volum;\n }",
"public float getVlValor() {\n return vlValor;\n }",
"public java.lang.String getEnsemblVersion() {\n return ensemblVersion;\n }",
"public Long getFormversionid() {\n return formversionid;\n }",
"public double getVolga() {\r\n return volga;\r\n }",
"public String getVersionNumber() {\n return versionNumber;\n }",
"public String getVersion() {\n\t\treturn _version;\n\t}",
"public double getV() {\r\n\t\treturn v;\t\r\n\t\t}",
"public String getAktifEh() {\r\n\t\treturn aktifEh;\r\n\t}",
"public java.lang.String getEnsemblVersion() {\n return ensemblVersion;\n }",
"public String getVille() {\n\t\treturn ville;\n\t}",
"public Long getVersion() {\n return this.version;\n }",
"public Long getVersion() {\n return this.version;\n }",
"String getV();",
"public Integer getAnzplaetze() {\n\t\treturn this.anzplaetze;\n\t}",
"public Integer getAnzplaetze() {\n\t\treturn this.anzplaetze;\n\t}",
"public String getVisitortel() {\n return visitortel;\n }",
"public String getFbzt() {\n return fbzt;\n }",
"public int getVie() {\n\t\treturn vie;\n\t}",
"public String getVersion() {\n return _version;\n }",
"public Float getVersionNumber() {\n return versionNumber;\n }",
"public String getBeizhu() {\n return beizhu;\n }",
"public String getHinbannm() {\r\n return hinbannm;\r\n }",
"public String getSystemVer() {\n return systemVer;\n }",
"public Veranstaltung get(VeranstaltungKey veranstaltungKey)\n\t\t\tthrows RuntimeException;",
"public String getvAbrtmon() {\n return vAbrtmon;\n }",
"public static String getAppVersion(){\r\n return getProperty(\"version\");\r\n }",
"public String getVersionname() {\r\n return versionname;\r\n }",
"public long getVersionNo() {\r\n return versionNo;\r\n }",
"public String getFakultet() {\r\n\t\treturn fakultet;\r\n\t}",
"public String getVersion() {\n\t\treturn version;\n\t}",
"@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}",
"public java.lang.String getMotpasseemetteur() {\r\n\t\treturn motpasseemetteur;\r\n\t}",
"public double berechneVolumen() {\n\t\treturn laenge * breite * hoehe;\n\t}",
"public java.lang.String getVersion() {\r\n return version;\r\n }",
"public String getvCodtupa() {\n return vCodtupa;\n }",
"public double getManaregen(){\n\t\treturn manaregen;\n\t}",
"public String getvDesregpen() {\n return vDesregpen;\n }",
"public String getValor() {\n return valor;\n }",
"public String getIsontv() {\r\n return isontv;\r\n }",
"public String getVersion(){\r\n return version;\r\n }",
"public java.lang.String getVersionNumber() {\n return versionNumber;\n }",
"public float getUmfang() {\r\n return umfang;\r\n }",
"public Double getAltVa() {\n\t\treturn altVa;\n\t}",
"public String getFoundVersion() {\r\n\t\treturn this.fnd;\r\n\t}",
"public String getGeslacht(){\n if(geslacht == \"man\" || geslacht == \"vrouw\"){\n return geslacht;\n }\n else {\n return \"onbekent\";\n }\n }",
"@Override\n\t\t\tpublic String getValue(Bewerbung object) {\n\t\t\t\treturn object.getBewerbungstext();\n\t\t\t}",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }"
]
| [
"0.6801299",
"0.6779326",
"0.66434234",
"0.6604012",
"0.65369475",
"0.6524955",
"0.6468444",
"0.64410543",
"0.63982326",
"0.6386419",
"0.6371039",
"0.632676",
"0.6320527",
"0.62651074",
"0.62469095",
"0.622858",
"0.6179951",
"0.6160635",
"0.60881907",
"0.6051333",
"0.6051333",
"0.60478425",
"0.602675",
"0.597474",
"0.5941889",
"0.59221673",
"0.59217757",
"0.58987427",
"0.58977646",
"0.58866006",
"0.5877851",
"0.5853951",
"0.584242",
"0.58335704",
"0.58098924",
"0.57995474",
"0.57829815",
"0.575871",
"0.5757446",
"0.5754207",
"0.5752737",
"0.5746184",
"0.5727856",
"0.57253444",
"0.57158166",
"0.57056165",
"0.57015276",
"0.5695387",
"0.5691531",
"0.56902933",
"0.5682326",
"0.5678948",
"0.56648713",
"0.566225",
"0.5658789",
"0.56545454",
"0.56463987",
"0.56408185",
"0.56408185",
"0.56383896",
"0.56352",
"0.56352",
"0.5627361",
"0.56238794",
"0.5614346",
"0.5614225",
"0.5609315",
"0.5607631",
"0.56066215",
"0.5604849",
"0.56027025",
"0.55964977",
"0.5595836",
"0.5590573",
"0.55896735",
"0.55885035",
"0.55818456",
"0.55714434",
"0.55652696",
"0.55623126",
"0.5559432",
"0.5555476",
"0.5554079",
"0.55531144",
"0.55488026",
"0.554677",
"0.5546676",
"0.55401707",
"0.55393064",
"0.5533935",
"0.5531745",
"0.5529419",
"0.5527926",
"0.5524412",
"0.5524412",
"0.5524412",
"0.5524412",
"0.5524412",
"0.5524412",
"0.5524412"
]
| 0.83953696 | 0 |
Sets the value of the verformung property. | public void setVerformung(double value) {
this.verformung = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getVerformung() {\r\n return verformung;\r\n }",
"void setAnzahlVerkauft(String anzahlVerkauft);",
"public void setAantalVerwerkt(int aantalVerwerkt) {\n this.aantalVerwerkt = aantalVerwerkt;\n }",
"public void setVer(Integer ver) {\n this.ver = ver;\n }",
"public MaschinenVerwaltung() {\r\n setMaschinenListe();\r\n setEinKopfMaschinenListe();\r\n setZweiBisAchtKopfMaschine();\r\n setZehnUndMehrKopfMaschine();\r\n }",
"public void setVer(Integer ver) {\n\t\tthis.ver = ver;\n\t}",
"public void setVigencia(String vigencia) { this.vigencia = vigencia; }",
"public boolean isVerkauft() {\n\t\treturn this.verkauft;\n\t}",
"public void setEntfernung(float entf)\r\n\t{\r\n\t\tthis.entfernung=entf;\r\n\t}",
"@Test\n public void testSetVer() {\n System.out.println(\"setVer\");\n String ver = \"\";\n VM instance = null;\n instance.setVer(ver);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public void setVegallomas(boolean ertek)\r\n\t{\r\n\t\tvegallomas = ertek;\r\n\t}",
"public void setAnfang(Vektor anfang) {\n\t\tthis.anfang = anfang;\n\t}",
"public void setVerfuegbar(boolean verfuegbarNeu) {\r\n\t\tverfuegbar = verfuegbarNeu;\r\n\t}",
"public void setGeslacht(char geslacht)\n {\n if (geslacht == 'm' || geslacht == 'v'){\n\n if (geslacht == 'm'){\n this.geslacht = \"man\";\n }\n\n if (geslacht == 'v'){\n this.geslacht = \"vrouw\"; \n }\n }\n else {\n System.out.println (\"geslacht moet m of v zijn\"); \n }\n }",
"public Gel_BioInf_Models.VirtualPanel.Builder setEnsemblVersion(java.lang.String value) {\n validate(fields()[2], value);\n this.ensemblVersion = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setVnom(short value) {\n this.vnom = value;\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 boolean vegallomasonVan()\r\n\t{\r\n\t\treturn vegallomas;\r\n\t}",
"public void setVolga(double value) {\r\n this.volga = value;\r\n }",
"public void setV(long value) {\n this.v = value;\n }",
"public final void setVerw(java.lang.String verw)\n\t{\n\t\tsetVerw(getContext(), verw);\n\t}",
"public void setVerCode(Integer verCode) {\n this.verCode = verCode;\n }",
"public Versteck getVersteck() {\n return versteck;\n }",
"public void setvNumanoreg(String vNumanoreg) {\n this.vNumanoreg = vNumanoreg;\n }",
"public Kollege(Vermittler v) {\r\n\t\tvermittler = v;\r\n\t}",
"public void setV(boolean v) {\n\tthis.v = v;\n }",
"@Override\n\tpublic void setVcampo(java.lang.String Vcampo) {\n\t\t_esfShooterAffiliationChrono.setVcampo(Vcampo);\n\t}",
"public void setEnde(Vektor ende) {\n\t\tthis.ende = ende;\n\t}",
"public String getvNumanoreg() {\n return vNumanoreg;\n }",
"public VrstaVezbe getVv() {\n return vv;\n }",
"public static void propertyVar1Main()\n {\n //Verwaltung<Artikel> artikelVerwaltung = new Verwaltung<Artikel>();\n\n Artikel artikel = new Artikel(50,\"test\");\n //artikelVerwaltung.add(artikel);\n\n PropertyChangeListener propertyChangeListener = (PropertyChangeEvent e) -> Werbung.drucken((int) e.getNewValue());\n\n artikel.addPropertyChangeListener(propertyChangeListener);\n artikel.setPreis(55);\n artikel.setPreis(55);\n artikel.setPreis(150);\n }",
"public void setVega(double value) {\r\n this.vega = value;\r\n }",
"public void setFhBezeichnung(String fhBezeichnung) {\n\t\tthis.fhBezeichnung = fhBezeichnung;\n\t}",
"public void setVolum(float value) {\n this.volum = value;\n }",
"public void setzePunkteanzeigeFarbe( String farbe ) \n { \n anzeige.setzeFarbePunktestand( farbe ); \n }",
"private void vorgangParameterUebernehmen(\n String autorEmail,\n Vorgang vorgang,\n String typ,\n Long kategorie,\n String positionWGS84,\n String oviWkt,\n String adresse,\n String beschreibung,\n Boolean fotowunsch,\n String bild,\n Boolean verlaufErgaenzen\n ) throws BackendControllerException {\n\n if (verlaufErgaenzen == null) {\n verlaufErgaenzen = false;\n }\n\n if (typ != null) {\n EnumVorgangTyp evt = EnumVorgangTyp.valueOf(typ);\n if (verlaufErgaenzen && !vorgang.getTyp().equals(evt)) {\n verlaufDao.persist(verlaufDao.addVerlaufToVorgang(vorgang, EnumVerlaufTyp.typ,\n vorgang.getTyp().getText(), evt.getText(), autorEmail));\n }\n vorgang.setTyp(evt);\n if (vorgang.getTyp() == null) {\n throw new BackendControllerException(2, \"[typ] nicht korrekt\", \"Der Typ ist nicht korrekt.\");\n }\n }\n\n if (kategorie != null) {\n Kategorie newKat = kategorieDao.findKategorie(kategorie);\n\n if (verlaufErgaenzen && !vorgang.getKategorie().getId().equals(newKat.getId())) {\n verlaufDao.persist(verlaufDao.addVerlaufToVorgang(vorgang, EnumVerlaufTyp.kategorie,\n vorgang.getKategorie().getParent().getName() + \" / \" + vorgang.getKategorie().getName(),\n newKat.getParent().getName() + \" / \" + newKat.getName(), autorEmail));\n }\n vorgang.setKategorie(newKat);\n if (vorgang.getKategorie() == null\n || vorgang.getKategorie().getParent() == null\n || vorgang.getKategorie().getParent().getTyp() != vorgang.getTyp()) {\n throw new BackendControllerException(4, \"[kategorie] nicht korrekt\", \"Die Kategorie ist nicht gültig.\");\n }\n }\n\n if (positionWGS84 != null) {\n try {\n vorgang.setPositionWGS84(positionWGS84);\n } catch (Exception e) {\n throw new BackendControllerException(12, \"[positionWGS84] nicht korrekt\", \"Die Ortsangabe ist nicht korrekt.\", e);\n }\n }\n\n if (oviWkt != null) {\n try {\n vorgang.setOviWkt(oviWkt);\n } catch (Exception e) {\n throw new BackendControllerException(6, \"[oviWkt] nicht korrekt\", \"Die Ortsangabe ist nicht korrekt.\");\n }\n }\n\n if (vorgang.getOviWkt() == null) {\n throw new BackendControllerException(5, \"[position] nicht korrekt\", \"Keine gültige Ortsangabe.\");\n }\n\n if (!vorgang.getOvi().within(grenzenDao.getStadtgrenze().getGrenze())) {\n throw new BackendControllerException(13, \"[position] außerhalb\", \"Die neue Meldung befindet sich außerhalb des gültigen Bereichs.\");\n }\n\n if (adresse != null) {\n vorgang.setAdresse(adresse);\n } else {\n String neueAdresse = \"nicht zuordenbar\";\n if (oviWkt != null) {\n Point point = pointWktToPoint(oviWkt);\n neueAdresse = geoService.calculateAddress(point);\n } else if (positionWGS84 != null) {\n try {\n Point point = transformPosition(pointWktToPoint(positionWGS84), wgs84Projection, internalProjection);\n neueAdresse = geoService.calculateAddress(point);\n } catch (FactoryException | MismatchedDimensionException | TransformException e) {\n logger.error(e);\n }\n }\n vorgang.setAdresse(neueAdresse);\n }\n\n if (beschreibung != null) {\n if (verlaufErgaenzen && (vorgang.getBeschreibung() == null || !vorgang.getBeschreibung().equals(beschreibung))) {\n verlaufDao.persist(verlaufDao.addVerlaufToVorgang(vorgang, EnumVerlaufTyp.beschreibung, vorgang.getBeschreibung(), beschreibung, autorEmail));\n }\n vorgang.setBeschreibung(beschreibung);\n }\n\n if (fotowunsch != null) {\n if (verlaufErgaenzen && !Objects.equals(vorgang.getFotowunsch(), fotowunsch)) {\n verlaufDao.persist(verlaufDao.addVerlaufToVorgang(vorgang, EnumVerlaufTyp.fotowunsch,\n vorgang.getFotowunsch() ? \"aktiv\" : \"inaktiv\", vorgang.getFotowunsch() ? \"inaktiv\" : \"aktiv\", autorEmail));\n }\n vorgang.setFotowunsch(fotowunsch);\n }\n\n if (bild != null && bild.getBytes().length > 0) {\n vorgangDao.persist(vorgang);\n try {\n imageService.setImageForVorgang(Base64.decode(bild.getBytes()), vorgang);\n vorgang.setFotoFreigabeStatus(EnumFreigabeStatus.intern);\n vorgang.setFotowunsch(false);\n } catch (Exception e) {\n throw new BackendControllerException(11, \"[bild] nicht korrekt\", \"Das Bild ist fehlerhaft und kann nicht verarbeitet werden.\", e);\n }\n }\n }",
"public void setVivant(boolean vivant)\r\n\t{\r\n\t\tthis.vivant = vivant;\r\n\t}",
"public GehaltsAbrechnung(int p, Mitarbeiter m, double v)\n {\n super();\n this.periode = p;\n this.mitarbeiter = m;\n this.gehalt = v;\n getVerdienst();\n }",
"public Vragenlijst getVragenlijst() {\n return vragenlijst;\n }",
"public void setVBat(float vBat) {\r\n this.vBat = vBat;\r\n }",
"public short getVnom() {\n return vnom;\n }",
"public void setVide() {\n\t\tvide = true;\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}",
"void setVersion(long version);",
"public int getAantalVerwerkt() {\n return aantalVerwerkt;\n }",
"public double getVerdienst()\n {\n return gehalt;\n }",
"public void setAlgoformer(Algoformer superion, VistaAlgoformer vistasuperion) {\n\t\t\n\t}",
"public Gel_BioInf_Models.VirtualPanel.Builder setDataModelCatalogueVersion(java.lang.String value) {\n validate(fields()[3], value);\n this.dataModelCatalogueVersion = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }",
"public String getVer() {\r\n return this.ver;\r\n }",
"public Integer getVer() {\n return ver;\n }",
"public void setzeSchuppenart(String schuppenart)\n {\n this.schuppenart=schuppenart;\n }",
"public Integer getVer() {\n\t\treturn ver;\n\t}",
"public void init() {\n\n\n verdiend = 133;\n\n verdeling = verdiend / 4;\n }",
"void setKarafVersion(String version);",
"public void setVoornaam(String voornaam)\n {\n this.voornaam = voornaam;\n }",
"public final void setHavaitutFrekvenssit(final int[] frekvenssit) {\r\n this.havaitutFrekvenssit = frekvenssit;\r\n }",
"public void setDPSeitenangaben(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPSeitenangaben)));\n\t\tthis.m_sDPSeitenangaben=value;\n\t}",
"public final void setVerw(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String verw)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Verw.toString(), verw);\n\t}",
"public EichhoernchenKnoten(Versteck versteck) {\n this.versteck = versteck;\n }",
"public void setzeSchiffe() {\n\t\tthis.setzeSchiffe = true;\n\t}",
"void setVersion(String version);",
"void setVersion(String version);",
"public void setEnsemblVersion(java.lang.String value) {\n this.ensemblVersion = value;\n }",
"public void SetBilangan(float f){\n\t\tTkn=TipeToken.Bilangan;\n\t\tTipeBilangan = Tipe._float;\n\t\tVal.F = f;\n\t}",
"public String getVigencia() { return this.vigencia; }",
"public void setzeAllePunkteanzeigenSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( true );\n anzeige.punkteRechtsSichtbarSetzen( true );\n }",
"public void setDataModelCatalogueVersion(java.lang.String value) {\n this.dataModelCatalogueVersion = value;\n }",
"public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}",
"public final void setNbVie(final int nbV) {\n this.nbVie = nbV;\n }",
"public void setVersion(long param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Long.MIN_VALUE) {\n localVersionTracker = false;\n \n } else {\n localVersionTracker = true;\n }\n \n this.localVersion=param;\n \n\n }",
"public void setzeHintergrundgrafik( String pfad ) \n {\n ea.edu.FensterE.getFenster().hintergrundSetzen( new Bild(0,0,pfad) );\n }",
"public void setGegenkontoNummer(String kontonummer) throws RemoteException;",
"public void setComputeV(boolean val) {\n computeV = val;\n }",
"private void setVersion(long value) {\n bitField0_ |= 0x00000002;\n version_ = value;\n }",
"public void setVersion(String version)\n {\n this.ver = version;\n }",
"public void setVersion(String version);",
"@Override\n public void set(Voluntario a) {\n if (a==null) a=new Voluntario();\n \n txtNome.setText(a.getNome());\n DateFormat df = new SimpleDateFormat(\"dd/mm/yyyy\");\n txtDataN.setText(df.format(a.getDataNascimento().getTime()));\n txtNacionalidade.setText(a.getNacionalidadeIndiv());\n txtProfissao.setText(a.getProfissao());\n txtMorada.setText(a.getMorada());\n txtCodPostal.setText(a.getCodigoPostal());\n txtLocalidade.setText(a.getLocalidade());\n txtTelefone.setText(a.getTelefone());\n txtTelemovel.setText(a.getTelemovel());\n txtEmail.setText(a.getEmail());\n txtNif.setText(a.getNif()+\"\");\n txtHabilit.setText(a.getHabilitacoes());\n txtConhecimentosL.setText(a.getConhecimentosLing());\n txtFormComp.setText(a.getFormacaoComp());\n txtExpV.setText(a.getExperienciaVolunt());\n txtConhecimentosC.setText(a.getConhecimentosConstr());\n txtDispon.setText(a.getDisponibilidade());\n txtComoConheceu.setText(a.getComoConheceu());\n checkReceberInfo.setSelected(a.getReceberInfo());\n checkIsParceiro.setSelected(a.isParceiro()); \n \n voluntario = a;\n }",
"public void setValore(Valore valore) {\n\t\tthis.valore = valore;\n\t}",
"public void trenneVerbindung();",
"@Test\n\tpublic void testSetBehandelingNaam(){\n\t\tString expResult = \"Enkel\";\n\t\tinstance.setBehandelingNaam(\"Enkel\");\n\t\tassertTrue(expResult == Behandelcode.getBehandelingNaam());\n\t}",
"public void setzeGegnerStein(int gegnerZug){\t\n\t\t//Falls eigener Agent startet wird -1 uebergeben\n\t\tif(gegnerZug >= 0){\t\t\t\t\n\t\t\tfor(int i=0; i<6; i++) {\n\t\t\t\tif(spielfeld[gegnerZug][i].equals(\"_\")){\n\t\t\t\t\tspielfeld[gegnerZug][i] = gegnerStein;\n\t\t\t\t\tgegnerPunkt.setLocation(gegnerZug, i);\n\t\t\t\t\tbreak;\n\t\t\t\t} //end if\n\t\t\t} //end for\t\t\t\t\n\t\t} \t\t\n\t}",
"public void setVoltage(double voltage) {\n\t\tthis.voltage = voltage;\n\t}",
"public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }",
"public void setValor(java.lang.String valor);",
"public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }",
"void setVida(int vida)\n\t{\n\t\t// variable declarada anteriormente igual a la declarada en el set\n\t\tthis.vida = vida;\n\t}",
"public void setVersion(final Long version);",
"public void azzera() { setEnergia(0.0); }",
"@Test(expected = KundeZuJungException.class)\n\t\tpublic void setGeburtsdatumZuJungInKundeVO() throws KundeKeinGeburtsdatumException, KundeZuJungException {\n\t\t\tint alter = 12;\n\t\t\tLocalDate heute = LocalDate.now();\n\t\t\tint jahr = heute.getYear();\n\t\t\tint monat = heute.getMonthValue();\n\t\t\tint tag = heute.getDayOfMonth();\n\t\tkundeIni.setGeburtsdatum(LocalDate.of(jahr - alter, monat, tag));\n\t\tassertEquals(kundeIni.getClass() + \" hat im Geburtsdatum das Jahr \"\n\t\t\t\t+ (jahr - alter) + \", ist zu jung und daher kein Objekt\", null,\n\t\t\t\tkundeIni.getGeburtsdatum());\n\n\t\t// Setzt Alter 60\n\t\talter = 60;\n\t\tkundeIni.setGeburtsdatum(LocalDate.of(jahr - alter, monat, tag));\n\t\tassertEquals(kundeIni.getClass() + \" hat im Geburtsdatum das Jahr \"\n\t\t\t\t+ (jahr - alter) + \", ist zu alt und daher kein Objekt\",LocalDate.of(jahr - alter, monat, tag),\n\t\t\t\tkundeIni.getGeburtsdatum());\n\t\t}",
"public void setVlValor(float vlValor) {\n this.vlValor = vlValor;\n }",
"public void setFhBeschreibung(String fhBeschreibung) {\n\t\tthis.fhBeschreibung = fhBeschreibung;\n\t}",
"public void setVersion(int value) {\n this.version = value;\n }",
"public void setGegenkontoBLZ(String blz) throws RemoteException;",
"public void setFbBezeichnung(String fbBezeichnung) {\n\t\tthis.fbBezeichnung = fbBezeichnung;\n\t}",
"public void setIdDetalle_Ventaf(int idDetalle_Ventaf) {\n this.idDetalle_Ventaf = idDetalle_Ventaf;\n }",
"public void setBunga(int tipeBunga){\n }",
"public final void setZicht(java.math.BigDecimal zicht)\n\t{\n\t\tsetZicht(getContext(), zicht);\n\t}",
"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 farbeSetzen(String farbe) {\r\n\t\t//farbeSetzen(zuFarbeKonvertieren(farbe));\r\n\t}"
]
| [
"0.6977465",
"0.64672047",
"0.6216282",
"0.60773957",
"0.60303855",
"0.6000545",
"0.59534913",
"0.58169144",
"0.5810382",
"0.5797353",
"0.5744212",
"0.5731157",
"0.57204217",
"0.5666025",
"0.5637762",
"0.5628947",
"0.55912113",
"0.55911267",
"0.5515181",
"0.549083",
"0.5450545",
"0.5444145",
"0.54326785",
"0.5399712",
"0.5382883",
"0.5377693",
"0.53474534",
"0.53462696",
"0.53440607",
"0.53293455",
"0.5297884",
"0.529681",
"0.5291717",
"0.52856106",
"0.5261618",
"0.5249046",
"0.52448595",
"0.52425",
"0.5219104",
"0.5215355",
"0.5214729",
"0.5198979",
"0.51910144",
"0.51904285",
"0.5173858",
"0.51672953",
"0.51599514",
"0.5148361",
"0.5146282",
"0.5138085",
"0.51374435",
"0.5136169",
"0.51190096",
"0.5108549",
"0.5108143",
"0.51037043",
"0.5089416",
"0.50873345",
"0.5086843",
"0.50849164",
"0.5066765",
"0.50595695",
"0.50595695",
"0.5058781",
"0.5033886",
"0.502615",
"0.50203496",
"0.501996",
"0.50105953",
"0.50105906",
"0.5008697",
"0.49949646",
"0.4986425",
"0.49817142",
"0.49783373",
"0.49745932",
"0.4973455",
"0.4971182",
"0.49677804",
"0.49635905",
"0.49521247",
"0.49510774",
"0.4941104",
"0.49317196",
"0.49250597",
"0.49221042",
"0.49203217",
"0.49158263",
"0.49095824",
"0.49071392",
"0.4903532",
"0.49034697",
"0.49028477",
"0.48932222",
"0.48910987",
"0.48893324",
"0.488849",
"0.48846775",
"0.48835006",
"0.4877009"
]
| 0.7901158 | 0 |
Creates a new notifications user with the primary key. Does not add the notifications user to the database. | public static com.b2b2000.agbar.historico.model.NotificationsUser createNotificationsUser(
long id) {
return getService().createNotificationsUser(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}",
"@Override\n public User create( User user ) {\n //- Save user to persistence -//\n final User newUser = this.userRepository.save(user);\n\n //- Check created user -//\n notNull( newUser, \"Cannot save user.\" );\n\n //- Send notification -//\n try {\n //- Prepare content -//\n Template template = this.templateManager.compile( \"security.signup\" );\n\n Context context = Context\n .newBuilder( newUser )\n .combine( \"locale\", LocaleContextHolder.getLocale().toLanguageTag() )\n .build();\n\n //FIXME: get email more safely\n //- Send notification-//\n this.notificationService.send(\n new EmailAddress( \"[email protected]\" ),\n new EmailAddress( newUser.getEmails().get( 0 ).getAddress() ),\n new Email(\n this.messageSource.getMessage(\n \"notification.security.signup.subject\",\n null,\n LocaleContextHolder.getLocale()\n ),\n template.apply( context )\n )\n );\n } catch ( IOException e ) {\n //- Error. Cannot send notification -//\n log.error( \"Cannot prepare or send notification.\", e );\n }\n\n return newUser;\n }",
"public void createUser(User user) {\n\n\t}",
"public void createUser(User user);",
"@Transactional\n public Long createUser(User user) {\n user.setId(null);\n final User createdUser = userRepository.save(user);\n return createdUser.getId();\n }",
"@Override\n\tpublic void create(User user) {\n\t\t\n\t}",
"@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}",
"public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }",
"UserCreateResponse createUser(UserCreateRequest request);",
"User createUser(User user);",
"User create(final User user) throws DatabaseException;",
"@Override\n\tpublic String createUser(User users) {\n\t\tuserRepository.save(users);\n\t\treturn \"Save Successful\";\n\t}",
"@POST\n\t@Path(\"/newUser\")\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Transactional\n\tpublic Response createUser(User user) {\n\t\tuserDao.createUser(user);\n\n\t\treturn Response.status(201)\n\t\t\t\t.entity(\"A new user has been created\").build();\n\t}",
"private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }",
"void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;",
"@RequestMapping(method = RequestMethod.POST, headers = \"Content-Type=application/json\")\n\t@ResponseStatus(HttpStatus.CREATED)\n\tpublic @ResponseBody\n\tResult createUser(@RequestBody Map<String, String> userInfo) {\n\t\tif (userInfo == null || !userInfo.containsKey(\"email\")\n\t\t\t\t|| !userInfo.containsKey(\"password\")) {\n\t\t\treturn new Result().setErrCode(ErrorCode.INVALID_DATA).setErrMsg(\n\t\t\t\t\t\"Invalid regiestration information.\");\n\t\t}\n\t\tWlsUser user = new WlsUser();\n\t\tuser.setEmail(userInfo.get(\"email\"));\n\t\tuser.setPassword(userInfo.get(\"password\"));\n\t\tuser.setFullName(userInfo.get(\"fullName\"));\n\t\tuser.setMobilePhone(userInfo.get(\"mobilePhone\"));\n\t\tuser.setQq(userInfo.get(\"qq\"));\n\t\tuser.setCityCode(userInfo.get(\"area\"));\n\t\tuser.setIndustry(userInfo.get(\"industry\"));\n\t\tuser.setStatus(UserStatusEnum.PENDING_STATUS_AUDIT.value());\n\t\tuser.setUserType(UserType.USER.toString());\n\t\tResult result = new Result();\n\t\ttry {\n\t\t\tuserService.createUser(user);\n\t\t} catch (ServiceException e) {\n\t\t\tresult.setSuccess(false).setErrMsg(e.getMessage());\n\t\t\treturn result;\n\t\t}\n\t\treturn result.setData(user);\n\t}",
"@Override\n\tpublic User Create(User t) {\n\t\tsessionFactory.getCurrentSession().save(t);\n\t\t\n\t\treturn t;\n\t}",
"public static com.inkwell.internet.productregistration.model.PRUser create(\n\t\tlong prUserId) {\n\t\treturn getPersistence().create(prUserId);\n\t}",
"public void createUser(User u) {\n\n em.persist(u);\n\n String content = \"new user: \" + u.getName() + \" => \" + u.getPassword();\n\n MailMessage mailMessage = new MailMessage();\n\n mailMessage.addRecipient(\"[email protected]\");\n mailMessage.setContent(content);\n mailMessage.setSubject(\"new user: \" + u.getName());\n mailer.sendAsyncMail(mailMessage);\n\n mailer.sendSyncMail(mailMessage);\n\n }",
"@Override\n\tpublic User createUser(User user) {\n\t\tem.persist(user);\n\t\tem.flush();\n\t\treturn user;\n\t}",
"User createUser();",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser addNewCreateUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser target = null;\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().add_element_user(CREATEUSER$0);\n return target;\n }\n }",
"public void create() throws DuplicateException, InvalidUserDataException, \n NoSuchAlgorithmException, SQLException {\n\tUserDA.create(this);\n }",
"boolean create(User user) throws Exception;",
"@Override\n public void onClick(View v) {\n\n String Id = FCMdatabase.push().getKey();\n residentUser user = new residentUser(Id.toString(), txtusername.getText().toString(), txtpassword.getText().toString(), \"\");\n FCMdatabase.child(Id).setValue(user);\n Toast.makeText(getContext(), \"user added successfully\", Toast.LENGTH_SHORT).show();\n }",
"User create(User user);",
"private void createNewUser() {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.GENDER, getSelectedGender());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.PIN, edtConfirmPin.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.LAST_NAME, edtLastName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.FIRST_NAME, edtFirstName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.STATUS, spnStatus.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.DATE_OF_BIRTH, edtDateOfBirth.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.BLOOD_GROUP, spnBloodGroup.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.IS_DELETED, \"N\");\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.MOBILE_NUMBER, edtMobileNumber.getText().toString());\n contentValues.put(DataBaseConstants.Constants_TBL_CATEGORIES.CREATE_DATE, Utils.getCurrentDateTime(Utils.DD_MM_YYYY));\n\n dataBaseHelper.saveToLocalTable(DataBaseConstants.TableNames.TBL_PATIENTS, contentValues);\n context.startActivity(new Intent(CreatePinActivity.this, LoginActivity.class));\n }",
"@Override\n public void createNotification(Notification notification) {\n Player p = Bukkit.getPlayer(notification.getPlayer()); //TODO uuid\n if (p != null && p.isOnline()) {\n showNotification(notification, false);\n }\n try {\n notificationIntegerDao.createIfNotExists(notification);\n } catch (SQLException e) {\n logSQLError(e);\n }\n }",
"public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}",
"User createUser(UserCreationModel user);",
"public EOSUser createUser(EOSUser user, Map<String, String> userData) throws EOSDuplicatedEntryException,\n\t\t\tEOSForbiddenException, EOSUnauthorizedException, EOSValidationException;",
"@Override\n\tpublic User insertNewUser(User User) {\n\t\treturn null;\n\t}",
"Boolean registerNewUser(User user);",
"@Override\n public void createUser(User user) {\n run(()->{this.userDAO.save(user);});\n\n }",
"@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}",
"@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}",
"public void newUser(User user);",
"private void createNewUser(final User unmanagedUser) {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n //create by administrator\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n User u2 = realm.createObject(User.class, PrimaryKeyFactory.getInstance().nextKey(User.class));\n u2.setLoggedIn(false);\n u2.setUserId(unmanagedUser.getUserId());\n\n String password = unmanagedUser.getPassword();\n if (password == null) {\n password = \"\";\n }\n u2.setPassword(password);\n\n u2.setUserName(unmanagedUser.getUserName());\n u2.setStartDate(unmanagedUser.getStartDate());\n u2.setEndDate(unmanagedUser.getEndDate());\n u2.setCreated(new Date());\n u2.setActive(unmanagedUser.getActive());\n u2.setSpecial(false);\n u2.setPermission(unmanagedUser.getPermission());\n u2.setEnabled(unmanagedUser.getEnabled());\n }\n });\n\n if (mRealm == null)\n realm.close();\n }",
"public void createUserInFirebase(String name, String email, String Uid) {\n User user = new User();\n user.setName(name);\n user.setEmail(email);\n mDatabase.child(\"users\").child(Uid).setValue(user);\n }",
"private void signUpNewUserToDB(){\n dbAuthentication.createUserWithEmailAndPassword(this.newUser.getEmail(), this.newUser.getPassword())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n /**signUp success, will update realTime DB ant firebase Authentication*/\n FirebaseUser currentUser = dbAuthentication.getCurrentUser();\n addToRealDB(currentUser.getUid());\n /**will send verification email to the user from Firebase Authentication*/\n currentUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n }\n });\n }else{isBadEmail = true;}\n }\n });\n }",
"public void createUserInDatabase(@NonNull String id, @NonNull String fullName) {\n // First we create a new UserData object\n UserData data = new UserData();\n // Set the fields with the data we have\n data.id = id;\n data.fullName = fullName;\n\n // And then we call the function that will create our user reference in the database\n // using our data, which we convert into a HashMap first\n // We do not expect a callback, therefore we let the observer field be null\n FirebaseFunction.call(FirebaseFunction.FUNCTION_CREATE_USER, data.toMap(), null);\n }",
"private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }",
"public void insertUser() {}",
"@Override\n\tpublic String DBcreateUser(String userJson) {\n\t\tUser newUser = (User) jsonToUserPOJO(userJson);\n\t\tString id = userRepository.create(newUser);\n\t\treturn id;\n\t}",
"public void addUser(String id, String display_name, String phone, String national_number, String country_prefix, String created_at) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(User.KEY_UID, id); // FirstName //values.put(User.KEY_FIRSTNAME, id); // FirstName\r\n values.put(\"display_name\", display_name); // LastName\r\n values.put(\"phone\", phone); // Email\r\n values.put(\"national_number\", national_number); // UserName\r\n values.put(\"country_prefix\", country_prefix); // Email\r\n values.put(User.KEY_CREATED_AT, created_at); // Created At\r\n\r\n // Inserting Row\r\n db.insert(User.TABLE_USER_NAME, null, values);\r\n db.close(); // Closing database connection\r\n }",
"@Test\n\tpublic void newUser() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\n\t\tassertThat(user).isNotNull();\n\t\tassertThat(user).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t}",
"public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }",
"private void createUser(final String email, final String password) {\n\n }",
"public User createUser(User newUser) {\n if(userRepository.findByUsername(newUser.getUsername()) != null){\n throw new UsernameException(\"The username is already taken please choose another one\");\n }\n newUser.setToken(\"dummy_token\"); //not really needed after registration;\n\n newUser.setStatus(UserStatus.ONLINE);\n userRepository.save(newUser); //userRepository creates User entity for the first time\n\n newUser.setToken(generateToken(newUser));\n userRepository.save(newUser); //userRepository saves the new entity items to existing user\n\n log.debug(\"Created Information for User: {}\", newUser);\n return newUser;\n }",
"int createUser(User data) throws Exception;",
"void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }",
"public UserEntity create(String userId) throws CreateException;",
"public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}",
"public User createUser(User user) {\n\t\treturn userRepository.save(user);\n\t}",
"public User createUser(User user) {\n\t\treturn userRepository.save(user);\n\t}",
"@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}",
"@Override\n\tpublic boolean create(User user) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic Notification addNotification(Notification notification, int idUser) {\n\t\treturn dao.addNotification(notification, idUser);\n\t}",
"public int insertUser(final User user);",
"public void createUser(SignUpDto signupdto) {\n\t\tUser user = new User();\r\n\t\t\r\n\t\tuser.setId(signupdto.getId());\r\n\t\tuser.setPw(signupdto.getPw());\r\n\t\tuser.setNickname(signupdto.getNickname());\r\n\t\t\r\n\t\tuserRepository.save(user);\t\r\n\t}",
"public User create(final User user) {\n if (getUserByEmail(user.getEmail()) != null) {\n return null;\n }\n\n em.persist(user);\n\n return user;\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }",
"public void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }",
"@RequestMapping(value = \"create\", method = RequestMethod.POST)\n\tpublic String create(@ModelAttribute(\"usermodel\") User user, Errors errors)\n\t\t\tthrows NoSuchAlgorithmException, IOException {\n\t\tuser.setId(0);\n\t\tvalidator.validate(user, errors);\n\t\tif (errors.hasErrors()) {\n\t\t\treturn VIEW_DEFAULT;\n\t\t}\n\t\tuser.setCreated(new Date());\n\t\tString password = user.getPassword();\n\t\tStandardPasswordEncoder encoder = new StandardPasswordEncoder();\n String encodedPassword = encoder.encode(password);\n user.setPassword(encodedPassword);\n String uuid = UUID.randomUUID().toString();\n user.setUuid(uuid);\n user.setStatus(EnumStatus.INACTIVE.toString());\n // if there is the inactive user, update it with new data\n User userDb = userRepository.findInactiveByEmail(user.getEmail());\n if (userDb != null) {\n \tuser.setId(userDb.getId());\n }\n userRepository.save(user);\n\n // send registration email\n sendRegistrationEmail(user.getEmail(), uuid);\n\n\t\treturn VIEW_EMAIL_SENT;\n\t}",
"private void writeNewUser(String userId, String name, String email) {\n User user = new User(name, email);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Name\").setValue(name);\n\n mDatabase.child(\"users\")\n .child(userId)\n .child(\"Email\").setValue(email);\n\n\n }",
"public void userCreated(UserCreateCommand command) {\n\t\t}",
"@Override\n\tpublic void createUser(User user) {\n\t\tSystem.out.println(\"INSIDE create user function\");\n\t\tem.persist(user);\n\t\t\t\n\t}",
"@FXML\n\tpublic void createUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtUserNames.getText();\n\t\tString lastName = txtUserSurnames.getText();\n\t\tString id = txtUserId.getText();\n\t\tString username = txtUserUsername.getText();\n\t\tString password = PfUserPassword.getText();\n\n\t\tif (!name.equals(empty) && !lastName.equals(empty) && !id.equals(empty) && !username.equals(empty)\n\t\t\t\t&& !password.equals(empty)) {\n\t\t\tcreateSystemUser(name, lastName, id, username, password);\n\t\t\ttxtUserNames.setText(\"\");\n\t\t\ttxtUserSurnames.setText(\"\");\n\t\t\ttxtUserId.setText(\"\");\n\t\t\ttxtUserUsername.setText(\"\");\n\t\t\tPfUserPassword.setText(\"\");\n\t\t\t// labelUserMessage.setText(\"The user has been created\");\n\t\t} else if (name.equals(empty) && lastName.equals(empty) && id.equals(empty) && username.equals(empty)\n\t\t\t\t&& password.equals(empty)) {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"public static User createUser(String id) {\n\n User user = new User();\n user.setId(id);\n\n return user;\n }",
"private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }",
"public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public User create(Map<String, String> userParameters) throws ServiceException {\n for (Map.Entry entry : userParameters.entrySet()) {\n if (entry.getValue() == null) {\n throw new ServiceException(\"Error when add user - incorrect data\");\n }\n }\n if (!userParameters.get(PASSWORD_PARAMETER_NAME).equals(userParameters.get(CONFIRM_PASSWORD_PARAMETER_NAME))) {\n throw new ServiceException(\"Error password and confirmation password do not match.\");\n }\n if (!UserValidator.isValidParamsWithPatterns(userParameters)) {\n throw new ServiceException(\"Error when add user - incorrect data\");\n }\n User newUser = createWithParameters(userParameters);\n try {\n manager.beginTransaction(userDao);\n newUser = userDao.create(newUser);\n manager.endTransaction();\n } catch (DaoException exception) {\n try {\n manager.rollback();\n } catch (DaoException rollbackException) {\n logger.error(rollbackException);\n }\n throw new ServiceException(exception);\n }\n return newUser;\n }",
"@RequestMapping(value=\"\", method=RequestMethod.POST, consumes=MediaType.MULTIPART_FORM_DATA_VALUE, produces = \"application/json\")\n\tpublic @ResponseBody Object createUser(@RequestParam String userName, @RequestParam String userPassword, @RequestParam String userFirstName, \n\t\t\t@RequestParam String userLastName, @RequestParam String userPicURL,@RequestParam String userEmail, @RequestParam String userEmployer,\n\t\t\t@RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState, @RequestParam(required=false) String programId, \n\t\t\t@RequestParam long updatedBy, @RequestParam String userExpertise, @RequestParam String userRoleDescription,\n\t\t\t@RequestParam String userPermissionCode, @RequestParam String userPermissionDescription, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn userService.createUser(userName, userPassword, userFirstName, userLastName, userPicURL, userEmail, userEmployer, userDesignation, userCity, userState, programId, updatedBy, userExpertise, userRoleDescription, userPermissionCode, userPermissionDescription, request, response);\n\t}",
"public void createUser(User user) throws JsonProcessingException {\n\n userRepo.save(user);\n redis.opsForValue().set(REDIS_USER_KEY_PREFIX+user.getUserId(),user);\n\n\n JSONObject jObj = new JSONObject();\n jObj.put(\"userId\",user.getUserId());\n jObj.put(\"balance\",defaultBalance);\n\n // Produce an event for User Creation ( Would be Consumed by Wallet Creation Service)\n kafka.send(TOPIC_USER_CREATED,user.getUserId(), objectMappper.writeValueAsString(jObj));\n\n\n }",
"private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }",
"public void newUser(User user) {\n users.add(user);\n }",
"@POST\n public User create(User user) {\n SecurityUtils.getSubject().checkPermission(\"User:Edit\");\n\n userFacade.create(user);\n return user;\n }",
"@Override\n public User signUpUser(String name, String username, String password, String email) throws UsernameExistsException {\n User u = new User(name, username, password, email);\n if (userDataMapper.getUserByUserName(username) != null)\n throw new UsernameExistsException();\n userDataMapper.add(u);\n return u;\n }",
"@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/users\", method = RequestMethod.POST)\n\tpublic ResponseEntity<AppUser> createUser(@RequestBody AppUser appUser) {\n\t\tif (appUserRepository.findOneByUsername(appUser.getUsername()) != null) {\n\t\t\tthrow new RuntimeException(\"Username already exist\");\n\t\t}\n\t\treturn new ResponseEntity<AppUser>(appUserRepository.save(appUser), HttpStatus.CREATED);\n\t}",
"private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }",
"public void createAndAddUser(String fName, String lName){\n ModelPlayer user = new ModelPlayer(fName, lName);\n user.setUserID(this.generateNewId());\n userListCtrl.addUser(user);\n }",
"public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}",
"@Override\n\tpublic void insertUser(User user) {\n\t\t\n\t}",
"@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}",
"public void createUser(String email, String password) {\n\n if (!validateForm()) {\n return;\n }\n\n signupBtn.setEnabled(false);\n startLoadAnim(getString(R.string.registering_user));\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(LoginActivity.this, R.string.registration_failed, Toast.LENGTH_SHORT).show();\n signupBtn.setEnabled(true);\n stopLoadAnim();\n }\n }\n });\n }",
"public void addNewUser(String email) {\n String userName = email.split(\"@\")[0];\n mUsersRef.child(userName).setValue(userName);\n userRef = db.getReference(\"users/\" + getUsername());\n userRef.child(\"email\").setValue(email);\n userSigns = new HashMap<String, UserSign>();\n }",
"public long create_user(User user)\r\n\t{ \r\n\t long id = 0; //id de la tabla user (único) \r\n\r\n\t try \r\n\t { \r\n\t iniciaOperacion(); \r\n\t id = (Long)sesion.save(user); //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t tx.commit(); \r\n\t }catch(HibernateException he) \r\n\t { \r\n\t manejaExcepcion(he);\r\n\t throw he; \r\n\t }finally \r\n\t { \r\n\t sesion.close(); \r\n\t } \r\n\t return id; \r\n\t}",
"private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"Future<Void> createPubSubUser(OkapiConnectionParams params);",
"private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }",
"public static int createUser(String firstName, String secondName,\n\t\t\tString email, String nickname, String password, int language)\n\t\t\tthrows SQLException {\n\n\t\tVariables nowLanguage;\n\t\tif (language == Variables.ENGLISH.getValue())\n\t\t\tnowLanguage = Variables.ENGLISH;\n\t\telse\n\t\t\tnowLanguage = Variables.PORTUGUESE;\n\t\tUserDB newUser = new UserDB(firstName, secondName, nickname, email,\n\t\t\t\tpassword, nowLanguage, Variables.DEFAULT_COINS.getValue());\n\n\t\tint result = newUser.addUser().getValue();\n\t\tif (result != Variables.SUCCESS.getValue())\n\t\t\treturn result;\n\n\t\tList<RoomsDB> rooms = Rooms.getRoomsCreatedByUser(\"master\");\n\t\tif (rooms == null)\n\t\t\treturn result;\n\n\t\tfor (RoomsDB room : rooms) {\n\t\t\tRooms.enterToRoom(nickname, \"12345\", room.getRoomId());\n\t\t}\n\n\t\treturn result;\n\t}",
"static void CreateNewUserToDB(String[] userData, boolean[] userPermissions) throws IOException, InvalidKeySpecException, NoSuchAlgorithmException, ClassNotFoundException {\n if (CreateNewUser(userData, GetListOfUsers())) {\n Socket client = ConnectionToServer();\n\n // connects to the server with information and attempts to get the auth token\n // for the user after successful Login\n if (client.isConnected()) {\n OutputStream outputStream = client.getOutputStream();\n InputStream inputStream = client.getInputStream();\n\n ObjectOutputStream send = new ObjectOutputStream(outputStream);\n ObjectInputStream receiver = new ObjectInputStream(inputStream);\n\n send.writeUTF(\"createNewUser\");\n send.writeUTF(userData[0]);\n send.writeUTF(userData[1]);\n send.writeUTF(userData[2]);\n send.writeUTF(userData[3]);\n send.writeBoolean(userPermissions[0]);\n send.writeBoolean(userPermissions[1]);\n send.writeBoolean(userPermissions[2]);\n send.writeBoolean(userPermissions[3]);\n send.writeUTF(loggedInUser);\n send.writeUTF(token);\n send.flush();\n\n WasRequestSuccessful(receiver.readBoolean(), receiver.readUTF());\n\n // End connections\n send.close();\n receiver.close();\n client.close();\n }\n }\n }",
"public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }",
"@PostMapping(\"/user\")\n\tpublic ResponseEntity<User> createUser(@RequestBody User user) throws Exception {\n\t\tlog.debug(\"REST request to save User : {}\", user);\n\t\tif (user.getId() != null) {\n\t\t\tthrow new Exception(\"A new user cannot already have an ID\");\n\t\t}\n\t\tUser result = userService.save(user);\n\t\tlog.debug(\"Added new user:: \" + user);\n\t\treturn new ResponseEntity<User>(result, HttpStatus.CREATED);\n\t}",
"void registerUser(User newUser);",
"@PostMapping(value=\"/addUser\")\n\t\t@Consumes({\"application/json\"})\n\t\t@ResponseBody\n\t\tpublic ResponseEntity<User> createUser(@RequestBody User user) throws TaskTrackerException{\n\t\t\tboolean isCreated = false;\n\t\t\ttry {\n\t\t\t\tisCreated = userService.createUser(user);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new TaskTrackerException(\"usernot created, Check if Parent task exists!\",e);\n\t\t\t}\n\t\t\t\n\t\t\tif(isCreated){\n\t\t\t\treturn new ResponseEntity<User>(HttpStatus.CREATED);\n\t\t\t} else {\n//\t\t\t\treturn new ResponseEntity<Product>(HttpStatus.OK);\n\t\t\t\t\n\t\t\t\treturn ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).header(\"message\", \"User not created, Check if User exists!\").build();\n\t\t\t}\n\t\t}",
"Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);",
"public SignUpModel createUser(SignUpModel user) {\n\t\tSignUpModel result = signUpRepo.save(user);\n\t\treturn result;\n\t}"
]
| [
"0.6919166",
"0.6729048",
"0.66870844",
"0.6659923",
"0.65443385",
"0.64588374",
"0.64290977",
"0.64056593",
"0.6332637",
"0.63103133",
"0.6293025",
"0.6282213",
"0.62668633",
"0.62406915",
"0.62248915",
"0.6215895",
"0.621399",
"0.61975163",
"0.6196264",
"0.6176686",
"0.61761963",
"0.6173886",
"0.61718726",
"0.6163884",
"0.61602217",
"0.61384887",
"0.6121603",
"0.6110323",
"0.60978925",
"0.60924506",
"0.6088595",
"0.60810256",
"0.6078174",
"0.60550696",
"0.60539097",
"0.6040624",
"0.6034057",
"0.6032691",
"0.60247344",
"0.601651",
"0.59935254",
"0.5989748",
"0.5962872",
"0.595833",
"0.59534115",
"0.5951974",
"0.59481156",
"0.5937647",
"0.5929611",
"0.59294784",
"0.5924596",
"0.5912464",
"0.59108263",
"0.59089065",
"0.59082603",
"0.59045756",
"0.59045756",
"0.59023464",
"0.58996123",
"0.58946234",
"0.5889622",
"0.5888565",
"0.58829904",
"0.5880869",
"0.58800817",
"0.5871276",
"0.58710814",
"0.58706087",
"0.5868589",
"0.5861404",
"0.5858278",
"0.58510214",
"0.5844693",
"0.5822716",
"0.58204484",
"0.5818997",
"0.5799953",
"0.57897085",
"0.57843727",
"0.5761483",
"0.57607704",
"0.57579285",
"0.57539314",
"0.5734048",
"0.57317525",
"0.573063",
"0.57297593",
"0.572734",
"0.5720565",
"0.5719998",
"0.57143307",
"0.5712297",
"0.5705521",
"0.56984323",
"0.56888914",
"0.5685029",
"0.5683467",
"0.5680022",
"0.56758404",
"0.56719357"
]
| 0.73784375 | 0 |
Deletes the notifications user with the primary key from the database. Also notifies the appropriate model listeners. | public static com.b2b2000.agbar.historico.model.NotificationsUser deleteNotificationsUser(
long id)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().deleteNotificationsUser(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Notification delNotification(int idUser) {\n\t\treturn dao.delNotification(idUser);\n\t}",
"public static com.b2b2000.agbar.historico.model.NotificationsUser deleteNotificationsUser(\n\t\tcom.b2b2000.agbar.historico.model.NotificationsUser notificationsUser)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().deleteNotificationsUser(notificationsUser);\n\t}",
"@Override\r\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userDao.deleteByPrimaryKey(id);\r\n\t}",
"@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}",
"@Override\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userMapper.deleteByPrimaryKey(id);\n\t}",
"@Override\r\n\tpublic void deleteByIdUser(int id) {\n\t\tuserReposotory.deleteById(id);\r\n\t}",
"void deleteUserById(Integer id);",
"@Override\n\tpublic void delete_User(String user_id) {\n\t\tuserInfoDao.delete_User(user_id);\n\t}",
"@Override\r\n\tpublic String deleteNotification(String userId, String notificationId)\r\n\t\t\tthrows Exception {\r\n\r\n\t\tif (StringUtils.isNotBlank(userId)) {\r\n\t\t\tUser user = userDAO.findOne(userId);\r\n\t\t\tif (user != null) {\r\n\t\t\t\tif (StringUtils.isNotBlank(notificationId)) {\r\n\t\t\t\t\tNotification notification = notificationDAO\r\n\t\t\t\t\t\t\t.findOne(notificationId);\r\n\t\t\t\t\tif (notification != null) {\r\n\t\t\t\t\t\tnotificationDAO.delete(notification);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlogger.info(\"Notification doesn't exists\");\r\n\t\t\t\t\t\tthrow new Exception(\"Notification doesn't exist\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.info(\"user doesn't exists\");\r\n\t\t\t\tthrow new Exception(\"User doesn't exist\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn notificationId;\r\n\t}",
"@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}",
"void deleteUserById(Long id);",
"@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}",
"public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }",
"int deleteByPrimaryKey(String pkUserid);",
"@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}",
"int deleteByPrimaryKey(Integer user);",
"@Override\r\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn adminUserMapper.deleteByPrimaryKey(id);\r\n\t}",
"public void deleteUser(User userToDelete) throws Exception;",
"@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}",
"public void deleteUserById(Long userId);",
"public void deleteUserRecord() {\n\t\tSystem.out.println(\"Calling deleteUserRecord() Method To Delete User Record\");\n\t\tuserDAO.deleteUser(user);\n\t}",
"public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }",
"public void deleteUser(long id){\n userRepository.deleteById(id);\n }",
"public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}",
"@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}",
"public void deleteAppUser(AppUserTO appUser) {\n\t\ttry {\n\t\t\tthis.jdbcTemplate.update(\"delete from carbon_app_user where id=?\",\n\t\t\t\t\tappUser.getId());\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in AppUserDAO: deleteAppUser\", e);\n\t\t}\n\t}",
"@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}",
"public void deleteUser(Integer uid);",
"@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}",
"public void deleteUser(int id) {\n\t\tuserRepository.delete(id);\r\n\t}",
"@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}",
"public void deleteUser(long userId);",
"@Override\r\n\tpublic void deleteByUser(User user) {\n\t\tuserReposotory.delete(user);\r\n\t}",
"private void deleteNotification(final Notification notification, final NotifyItemHolder holder) {\n Call<Object> httpRequest = LoggedUserActivity.getNotificationsService().deleteNotification(notification.getNotificationId());\n\n httpRequest.enqueue(new Callback<Object>() {\n @Override\n public void onResponse(Call<Object> call, Response<Object> response) {\n if (response.isSuccessful()) {\n notificationsListFragment.removeUserNotification(notificationsListFragment, notification, fragmentView, recyclerView, holder);\n } else {\n Toast.makeText(LoggedUserActivity.getLoggedUserActivity(), response.code() + \" \" + response.message(), Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onFailure(Call<Object> call, Throwable t) {\n Toast.makeText(LoggedUserActivity.getLoggedUserActivity(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }",
"@Override\n\tpublic void deleteUser(int id) {\n\t\tuserMapper.deleteUser(id);\n\t}",
"public void delete(User user){\n userRepository.delete(user);\n }",
"@FXML\n\tpublic void deleteUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString id = txtDeleteUserId.getText();\n\t\tif (!id.equals(empty)) {\n\t\t\tboolean found = restaurant.findUser(id);\n\t\t\tif (found == true) {\n\t\t\t\ttry {\n\t\t\t\t\trestaurant.deleteUser(txtDeleteUserId.getText());\n\t\t\t\t\trestaurant.saveUsersData();\n\t\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\t\talert.setTitle(\"Confirmation Dialog\");\n\t\t\t\t\talert.setHeaderText(\"Delete User\");\n\t\t\t\t\talert.setContentText(\"The user has been deleted\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t\ttxtDeleteUserId.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"El usuario no existe\");\n\t\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrese la identificacion del usuario a eliminar\");\n\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}",
"@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic int deleteUser(Integer id) {\n\t\treturn userDao.deleteUser(id);\n\t}",
"@Override\r\n\tpublic void delete(int userId) {\n\t\ttheUserRepository.deleteById(userId);\r\n\t}",
"Integer removeUserByUserId(Integer user_id);",
"@Override\n public boolean deleteUser(User user) {\n return controller.deleteUser(user);\n }",
"@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}",
"void deleteUser(int id);",
"public void deleteUser(int id) {\r\n userRepo.deleteById(id);\r\n }",
"@Override\n\tpublic int delete(Users user) {\n\t\t\n\t\treturn userDAO.delete(user);\n\t}",
"public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }",
"public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }",
"@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }",
"@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}",
"public boolean delete(User user);",
"@Delete(\"delete from website_cooperativeuser where id = #{id}\")\r\n int deleteByPrimaryKey(String id);",
"@Override\n\tpublic void deleteUser(Long userId) {\n\t\tusersRepo.deleteById(userId);\n\n\t}",
"public void deleteNotification(String zipCode, String notificationId){\n notificationRef.child(notificationId).removeValue();\r\n\r\n // Remove notification id from '{zipCode}' node\r\n baseRef.child(zipCode).child(notificationId).removeValue();\r\n\r\n // Get user and remove from their list\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n String uuid = user.getUid();\r\n getIndexOfNotification(uuid, notificationId).addOnSuccessListener(new OnSuccessListener<String>() {\r\n @Override\r\n public void onSuccess(String s) {\r\n userRef.child(\"notificationIds\").child(s).removeValue();\r\n }\r\n });\r\n }",
"@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}",
"public static void deleteUser() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.deleteUser());\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void deleteItem(Long id) {\n\t\tUser user = new User();\n\t\tuser.setId(id);\n\t\tuserRepository.delete(user);\n\t\tSystem.out.println(\"user deleted with succes !\");\n\t}",
"public void deleteUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().delete(user);\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}",
"@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }",
"@Override\n public void delete(User user) {\n dao.delete(user);\n }",
"UserInfo deleteByPrimaryKey(Integer id);",
"public void deleteUser(User user) {\n\t\tdelete(user);\r\n\t}",
"public void deleteUser(int id){\r\n\t\tconfigDao.deleteUserById(id);\r\n\t}",
"int deleteByPrimaryKey(Integer userId);",
"void deleteUser(String userId);",
"int deleteByPrimaryKey(Integer userCode);",
"public void delete(User user) {\n repository.delete(user);\n }",
"public void deleteUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USER, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }",
"@Delete({\n \"delete from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);",
"@Override\n\tpublic String deleteUser(UserKaltiaControlVO userKaltiaControl) {\n\t\treturn null;\n\t}",
"public void deleteUserRequest(UserRequest request){\n userRequests.remove(request);\n }",
"@Override\n\tpublic void deleteUser(int userId) {\n\t\tuserDao.deleteUser(userId);\n\t}",
"void deleteUser(String deleteUserId);",
"public void deleteUser(user user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_NAME, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }",
"@Override\n\tpublic void delete(Long id) {\n\t\tuserNotificationRepository.deleteByUserId(id);\n\t\thistoryQuotationRepository.deleteByUserId(id);\n\t\thistorySuppliesRepository.deleteByUserId(id);\n\t\tuserRepository.deleteById(id);\n\t}",
"@Override\n\tpublic int deleteByPrimaryKey(Integer userId) {\n\t\treturn 0;\n\t}",
"public void deleteUser(int id) {\n\t\tet.begin();\n\t\tem.remove(em.find(User.class, id));\n\t\tet.commit();\n\t}",
"@Override\n public boolean deleteUser(User user) {\n return false;\n }",
"@Override\n\tpublic User deleteUser(String email) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\tuserDao.delete(id);\n\t}",
"public void deleteNotification(Long notificationId) {\n\t\tEntityManager manager = Resources.getEntityManager();\n\t\tEntityTransaction transaction = manager.getTransaction();\n\n\t\ttry {\n\t\t\tmanager.getTransaction().begin();\n\t\t\tmanager.createQuery(\"DELETE FROM Notification x WHERE x.id = :id\").setParameter(\"id\", notificationId)\n\t\t\t\t\t.executeUpdate();\n\t\t\tmanager.getTransaction().commit();\n\t\t} catch (RuntimeException e) {\n\t\t\tif (transaction != null)\n\t\t\t\ttransaction.rollback();\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tmanager.close();\n\t\t}\n\n\t}",
"public void deleteUser(ExternalUser userMakingRequest, String userId);",
"void delete(User user);",
"void delete(User user);",
"int deleteByPrimaryKey(Integer userid);",
"int deleteByPrimaryKey(Integer userid);",
"int deleteByPrimaryKey(Integer userid);",
"public void deleteUser(final Long id) {\n userRepository.deleteById(id);\n }",
"public void deleteUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USERLIST, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }",
"int deleteByPrimaryKey(Long userId);",
"int deleteByPrimaryKey(Long userId);",
"int deleteByPrimaryKey(Long userId);",
"public void deleteUser(Integer id) {\n UserModel userModel;\n try {\n userModel = userRepository.findById(id).orElseThrow(IOException::new);\n }\n catch (IOException e) {\n System.out.println(\"User not found\");\n userModel = null;\n }\n userRepository.delete(userModel);\n }",
"@Override\r\n\tpublic int delete(int id) {\n\t\treturn userDAO.DeleteUser(id);\r\n\t}",
"@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}",
"@Delete({\r\n \"delete from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n int deleteByPrimaryKey(Integer user_id);",
"@Override\n\tpublic void delete(User user)\n\t{\n\t\tuserDAO.delete(user);\n\t}",
"@Override\n\tpublic User delete(Integer id) {\n\t\treturn null;\n\t}"
]
| [
"0.7687768",
"0.6759956",
"0.6635028",
"0.6614056",
"0.659058",
"0.65629643",
"0.65211517",
"0.64989185",
"0.6490664",
"0.64842856",
"0.6483274",
"0.6463334",
"0.6455158",
"0.64522237",
"0.6423965",
"0.6415377",
"0.63773906",
"0.63757265",
"0.63495535",
"0.63249683",
"0.6318955",
"0.6308883",
"0.63070494",
"0.6299738",
"0.62912315",
"0.62890244",
"0.62807095",
"0.6277273",
"0.62557894",
"0.6255272",
"0.625434",
"0.6244797",
"0.62354976",
"0.6231423",
"0.6219932",
"0.6214482",
"0.6212437",
"0.619332",
"0.61858886",
"0.6184592",
"0.6166665",
"0.6165904",
"0.6162167",
"0.6149068",
"0.6145624",
"0.61441076",
"0.61327827",
"0.6130309",
"0.6118891",
"0.6117758",
"0.6109117",
"0.61048305",
"0.60943496",
"0.6094223",
"0.609231",
"0.6091911",
"0.6087642",
"0.6086521",
"0.60826504",
"0.6082006",
"0.6078801",
"0.6073055",
"0.6064692",
"0.6059923",
"0.60560024",
"0.6054769",
"0.6053886",
"0.6051164",
"0.60483134",
"0.6047549",
"0.6029601",
"0.6019914",
"0.60194856",
"0.60158277",
"0.6015314",
"0.601141",
"0.60080373",
"0.60023814",
"0.5993192",
"0.59914947",
"0.59910834",
"0.5987977",
"0.5987365",
"0.59826565",
"0.5982176",
"0.5982176",
"0.59806395",
"0.59806395",
"0.59806395",
"0.5979891",
"0.5978139",
"0.5976332",
"0.5976332",
"0.5976332",
"0.59687823",
"0.59663296",
"0.5962277",
"0.5959593",
"0.59584904",
"0.5957704"
]
| 0.67911994 | 1 |
Deletes the notifications user from the database. Also notifies the appropriate model listeners. | public static com.b2b2000.agbar.historico.model.NotificationsUser deleteNotificationsUser(
com.b2b2000.agbar.historico.model.NotificationsUser notificationsUser)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().deleteNotificationsUser(notificationsUser);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Notification delNotification(int idUser) {\n\t\treturn dao.delNotification(idUser);\n\t}",
"public static com.b2b2000.agbar.historico.model.NotificationsUser deleteNotificationsUser(\n\t\tlong id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().deleteNotificationsUser(id);\n\t}",
"@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}",
"@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic void deleteByUser(User user) {\n\t\tuserReposotory.delete(user);\r\n\t}",
"@Override\n public boolean deleteUser(User user) {\n return controller.deleteUser(user);\n }",
"public void delete(User user){\n userRepository.delete(user);\n }",
"@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}",
"public void deleteUser(User userToDelete) throws Exception;",
"@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}",
"public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}",
"@Override\n\tpublic void delete_User(String user_id) {\n\t\tuserInfoDao.delete_User(user_id);\n\t}",
"@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}",
"public void deleteUser(User user) {\n\t\tdelete(user);\r\n\t}",
"public void delete(User user) {\n repository.delete(user);\n }",
"public void deleteUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().delete(user);\t\r\n\t\t\r\n\t}",
"public void deleteUser(User user) {\r\n\t\tusersPersistence.deleteUser(user);\r\n\t}",
"@Override\n\tpublic int delete(Users user) {\n\t\t\n\t\treturn userDAO.delete(user);\n\t}",
"@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}",
"@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void deleteUser(User user) {\n\t\tiUserDao.deleteUser(user);\n\t}",
"public void deleteUserRecord() {\n\t\tSystem.out.println(\"Calling deleteUserRecord() Method To Delete User Record\");\n\t\tuserDAO.deleteUser(user);\n\t}",
"public static void deleteUser() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.deleteUser());\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void delete(User user) {\n dao.delete(user);\n }",
"@Override\n\tpublic void delete(User user)\n\t{\n\t\tuserDAO.delete(user);\n\t}",
"public void deleteUser(User selectedUser) throws SQLException, IOException {\n userManager.deleteUser(selectedUser);\n userManager.emptyLists();\n userManager.fillLists();\n AdminMainViewController.emptyStaticLists();\n AdminMainViewController.adminsObservableList.addAll(userManager.getAdminsList());\n AdminMainViewController.usersObservableList.addAll(userManager.getUsersList());\n }",
"@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}",
"public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }",
"public void delete(User user) {\n\t\tuserDao.delete(user);\n\t}",
"@Override\n public boolean deleteUser(User user) {\n return false;\n }",
"@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}",
"@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}",
"public boolean delete(User user);",
"public void deleteUser(User u) {\n\t\tuserRepository.delete(u);\n\t}",
"@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}",
"public void deleteUserRequest(UserRequest request){\n userRequests.remove(request);\n }",
"@Override\n\tpublic void deleteUser(Long userId) {\n\t\tusersRepo.deleteById(userId);\n\n\t}",
"@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}",
"public void deleteUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USER, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }",
"@Override\r\n\tpublic void deleteByIdUser(int id) {\n\t\tuserReposotory.deleteById(id);\r\n\t}",
"public void deleteUser(Integer uid);",
"public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }",
"public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }",
"@DefaultMessage(\"This action will remove all the permissions for this user and make it inactive. The user itself will not be removed.\")\n @Key(\"systemUser.deleteUserMessage\")\n String systemUser_deleteUserMessage();",
"@Override\r\n\tpublic String deleteNotification(String userId, String notificationId)\r\n\t\t\tthrows Exception {\r\n\r\n\t\tif (StringUtils.isNotBlank(userId)) {\r\n\t\t\tUser user = userDAO.findOne(userId);\r\n\t\t\tif (user != null) {\r\n\t\t\t\tif (StringUtils.isNotBlank(notificationId)) {\r\n\t\t\t\t\tNotification notification = notificationDAO\r\n\t\t\t\t\t\t\t.findOne(notificationId);\r\n\t\t\t\t\tif (notification != null) {\r\n\t\t\t\t\t\tnotificationDAO.delete(notification);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlogger.info(\"Notification doesn't exists\");\r\n\t\t\t\t\t\tthrow new Exception(\"Notification doesn't exist\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.info(\"user doesn't exists\");\r\n\t\t\t\tthrow new Exception(\"User doesn't exist\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn notificationId;\r\n\t}",
"private void deleteNotification(final Notification notification, final NotifyItemHolder holder) {\n Call<Object> httpRequest = LoggedUserActivity.getNotificationsService().deleteNotification(notification.getNotificationId());\n\n httpRequest.enqueue(new Callback<Object>() {\n @Override\n public void onResponse(Call<Object> call, Response<Object> response) {\n if (response.isSuccessful()) {\n notificationsListFragment.removeUserNotification(notificationsListFragment, notification, fragmentView, recyclerView, holder);\n } else {\n Toast.makeText(LoggedUserActivity.getLoggedUserActivity(), response.code() + \" \" + response.message(), Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onFailure(Call<Object> call, Throwable t) {\n Toast.makeText(LoggedUserActivity.getLoggedUserActivity(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }",
"public Boolean DeleteUser(User user){\n\t\t\treturn null;\n\t\t}",
"public void deleteAppUser(AppUserTO appUser) {\n\t\ttry {\n\t\t\tthis.jdbcTemplate.update(\"delete from carbon_app_user where id=?\",\n\t\t\t\t\tappUser.getId());\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in AppUserDAO: deleteAppUser\", e);\n\t\t}\n\t}",
"@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}",
"@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }",
"@Override\r\n\tpublic void delete(User user) {\n\t\tint iRet = dao.delete(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"删除失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"删除成功\");\r\n\t}",
"public void deleteUser(int id) {\n\t\tuserRepository.delete(id);\r\n\t}",
"void deleteUserById(Long id);",
"void deleteUserById(Integer id);",
"public void deleteUser(user user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_NAME, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }",
"public void deleteUserById(Long userId);",
"@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}",
"@FXML\n\tpublic void deleteUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString id = txtDeleteUserId.getText();\n\t\tif (!id.equals(empty)) {\n\t\t\tboolean found = restaurant.findUser(id);\n\t\t\tif (found == true) {\n\t\t\t\ttry {\n\t\t\t\t\trestaurant.deleteUser(txtDeleteUserId.getText());\n\t\t\t\t\trestaurant.saveUsersData();\n\t\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\t\talert.setTitle(\"Confirmation Dialog\");\n\t\t\t\t\talert.setHeaderText(\"Delete User\");\n\t\t\t\t\talert.setContentText(\"The user has been deleted\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t\ttxtDeleteUserId.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"El usuario no existe\");\n\t\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrese la identificacion del usuario a eliminar\");\n\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"public void deleteUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USERLIST, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }",
"public static void deleteUser() {\n REGISTRATIONS.clear();\n ALL_EVENTS.clear();\n MainActivity.getPreferences().edit()\n .putString(FACEBOOK_ID.get(), null)\n .putString(USERNAME.get(), null)\n .putString(LAST_NAME.get(), null)\n .putString(FIRST_NAME.get(), null)\n .putString(GENDER.get(), null)\n .putString(BIRTHDAY.get(), null)\n .putString(EMAIL.get(), null)\n .putStringSet(LOCATIONS_INTEREST.get(), null)\n .apply();\n }",
"public void deleteUser(long id){\n userRepository.deleteById(id);\n }",
"@Override\n\tpublic void delete(UserModel um) throws Exception {\n\t\tsf.getCurrentSession().delete(um);\n\t}",
"@Override\n\tpublic void deleteUser(NguoiDung nd) {\n\n\t}",
"@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}",
"@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }",
"public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }",
"@Override\n\tpublic void deleteUser(int userId) {\n\t\tuserDao.deleteUser(userId);\n\t}",
"void delete(User user);",
"void delete(User user);",
"@Override\r\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userDao.deleteByPrimaryKey(id);\r\n\t}",
"public void delete(User usuario);",
"@Override\n\tpublic User deleteUser(String email) {\n\t\treturn null;\n\t}",
"public void deleteUser(int id) {\r\n userRepo.deleteById(id);\r\n }",
"@Override\r\n\tpublic void delete(int userId) {\n\t\ttheUserRepository.deleteById(userId);\r\n\t}",
"boolean delete(User user);",
"public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}",
"@Override\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userMapper.deleteByPrimaryKey(id);\n\t}",
"public void deleteUser(final Long id) {\n userRepository.deleteById(id);\n }",
"public void removeUser(){\n googleId_ = User.getDeletedUserGoogleID();\n this.addToDB(DBUtility.get().getDb_());\n }",
"public void deleteUser(long userId);",
"@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic String deleteUser(UserKaltiaControlVO userKaltiaControl) {\n\t\treturn null;\n\t}",
"@Override\r\n public void userRemovedOnServer(User user) throws RemoteException, SQLException\r\n {\r\n property.firePropertyChange(\"userRemoved\", null, user);\r\n }",
"@Transactional\r\n\tpublic void deleteUsers(Users users) {\r\n\t\tusersDAO.remove(users);\r\n\t\tusersDAO.flush();\r\n\t}",
"@Override\n\tpublic int deleteUser(Integer id) {\n\t\treturn userDao.deleteUser(id);\n\t}",
"@Override\n\tpublic void deleteUser(int id) {\n\t\tuserMapper.deleteUser(id);\n\t}",
"void deleteUser(String userId);",
"public String deleteUser(){\n\t\ttry{\n\t\t\tnew UtenteDao().deleteUser(utente_target);\n\t\t\treturn \"Utente eliminato con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}",
"@Override\n\tpublic String deleteUser(Map<String, Object> reqs) {\n\t\tString result = \"success\";\n\t\tString sql = \"delete from tp_users where userId=:userId\";\n\t\n\t\ttry {\n\t\t\tjoaSimpleDao.executeUpdate(sql, reqs);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tresult = \"failed\";\n\t\t}\n\t\treturn result;\n\t}",
"public void deleteUser(ExternalUser userMakingRequest, String userId);",
"public void deleteUser(String name);",
"@Override\n\tpublic String delete(User user) {\n\t\treturn null;\n\t}",
"public void deleteUser(User u) {\n em.remove(em.merge(u));\n\n }",
"@Override\r\n\tpublic boolean deleteUser() {\n\t\treturn false;\r\n\t}",
"public void deleteUser(int id){\r\n\t\tconfigDao.deleteUserById(id);\r\n\t}",
"public void delete(User u) {\n\t\tUserDao ua=new UserDao();\n\t\tua.delete(u);\n\t\t\n\t}",
"public void deleteUser(String userRoomInfo, User user){\n\t\tspace.getAllNicksnames().remove(user.getNickname());\n\t\tspace.getAllParticipants().remove(user.getUsername());\n\t\tspace.getAllOccupants().remove(userRoomInfo);\n\t\tfor(UserView uv : space.getAllIcons()){\n\t\t\tif(uv.getPerson()==user)\n\t\t\t\tspace.getAllIcons().remove(uv);\n\t\t}\n\t\t\n\t\tif(space!=Space.getMainSpace())\n\t\t\tview.getActivity().invalidatePSIconView(psiv);\n\t\t//this.psiv.invalidate();\n\t\t\n\t\t/* If you are currently in this space then refresh the \n\t\t * the spaceview ui\n\t\t */\n\t\tif(space == MainApplication.screen.getSpace())\n\t\t\tview.getActivity().invalidateSpaceView();\n\t\t\n\n\n\t\tview.getActivity().launchNotificationView(user, \"deleteuser\");\t\n\t}",
"void deleteUser(User user, String token) throws AuthenticationException;",
"public void deleteUser(int id) {\n\t\tet.begin();\n\t\tem.remove(em.find(User.class, id));\n\t\tet.commit();\n\t}"
]
| [
"0.72960776",
"0.71314305",
"0.6690397",
"0.66801596",
"0.65721846",
"0.6531964",
"0.6508371",
"0.64876693",
"0.6486398",
"0.64755523",
"0.6473562",
"0.6466269",
"0.6464555",
"0.64614767",
"0.6443206",
"0.64400697",
"0.6404014",
"0.6386352",
"0.6376271",
"0.6370097",
"0.63495934",
"0.63394755",
"0.6317982",
"0.630678",
"0.6294014",
"0.6284649",
"0.62846047",
"0.62809783",
"0.6264289",
"0.6260283",
"0.6250246",
"0.6232156",
"0.6230363",
"0.62099016",
"0.62098503",
"0.62075084",
"0.61981297",
"0.6194152",
"0.61876565",
"0.61702055",
"0.6169225",
"0.6168609",
"0.61666816",
"0.61645055",
"0.6162787",
"0.6160881",
"0.6160205",
"0.615349",
"0.6152478",
"0.61448973",
"0.61420566",
"0.6111212",
"0.6109682",
"0.6107526",
"0.60949165",
"0.60942745",
"0.6090263",
"0.60856",
"0.6083997",
"0.6064715",
"0.60385627",
"0.6036525",
"0.6027198",
"0.6026549",
"0.6018268",
"0.60145015",
"0.6009028",
"0.60062605",
"0.60062605",
"0.6003783",
"0.6002631",
"0.6002044",
"0.59898305",
"0.59820795",
"0.5977227",
"0.5961769",
"0.59503067",
"0.5942778",
"0.59392846",
"0.5938033",
"0.5937199",
"0.592676",
"0.592653",
"0.5924087",
"0.59211683",
"0.590731",
"0.5897989",
"0.5893811",
"0.5880146",
"0.58742744",
"0.5873194",
"0.5867533",
"0.586258",
"0.5851188",
"0.5846246",
"0.58406156",
"0.58362734",
"0.58307326",
"0.58290845",
"0.58289224"
]
| 0.73737323 | 0 |
Performs a dynamic query on the database and returns the matching rows. | @SuppressWarnings("rawtypes")
public static java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQuery(dynamicQuery);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Items[] findByDynamicSelect(String sql, Object[] sqlParams) throws ItemsDaoException;",
"public Faq[] findByDynamicSelect(String sql, Object[] sqlParams) throws FaqDaoException;",
"public Ruta[] findByDynamicSelect(String sql, Object[] sqlParams) throws RutaDaoException;",
"public Cliente[] findByDynamicSelect(String sql, Object[] sqlParams) throws ClienteDaoException;",
"public Items[] findByDynamicWhere(String sql, Object[] sqlParams) throws ItemsDaoException;",
"public Cliente[] findByDynamicWhere(String sql, Object[] sqlParams) throws ClienteDaoException;",
"public Ruta[] findByDynamicWhere(String sql, Object[] sqlParams) throws RutaDaoException;",
"public abstract Statement queryToRetrieveData();",
"public Faq[] findByDynamicWhere(String sql, Object[] sqlParams) throws FaqDaoException;",
"public SgfensBanco[] findByDynamicSelect(String sql, Object[] sqlParams) throws SgfensBancoDaoException;",
"public LearningResultHasActivity[] findByDynamicSelect(String sql, Object[] sqlParams) throws LearningResultHasActivityDaoException;",
"public Usuario[] findByDynamicSelect(String sql, Object[] sqlParams) throws SQLException;",
"public NominaPuesto[] findByDynamicSelect(String sql, Object[] sqlParams) throws NominaPuestoDaoException;",
"public SgfensBanco[] findByDynamicWhere(String sql, Object[] sqlParams) throws SgfensBancoDaoException;",
"Query query();",
"public Usuario[] findByDynamicWhere(String sql, Object[] sqlParams) throws SQLException;",
"public TipologiaStruttura[] findByDynamicSelect(String sql, Object[] sqlParams) throws TipologiaStrutturaDaoException;",
"public List<Record> executeNativeFinder(String queryName, Object context);",
"@Override\r\n public ProductosPuntoVenta[] findByDynamicSelect(String sql,\r\n Object[] sqlParams) throws ProductosPuntoVentaDaoException {\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n try {\r\n // Validamos la conexion\r\n this.validateConnection();\r\n System.out.println(\"Executing \" + sql);\r\n // prepare statement\r\n stmt = userConn.prepareStatement(sql);\r\n stmt.setMaxRows(maxRows);\r\n // se setean los parametros de la consulta\r\n for (int i = 0; sqlParams != null && i < sqlParams.length; i++) {\r\n stmt.setObject(i + 1, sqlParams[i]);\r\n }\r\n System.out.println(sql);\r\n rs = stmt.executeQuery();\r\n // recuperamos los resultados\r\n return fetchMultiResults(rs);\r\n }\r\n catch (SQLException e) {\r\n e.printStackTrace();\r\n throw new ProductosPuntoVentaDaoException(\"Exception: \"\r\n + e.getMessage(), e);\r\n }\r\n finally {\r\n ResourceManager.close(rs);\r\n ResourceManager.close(stmt);\r\n if (userConn != null) {\r\n ResourceManager.close(userConn);\r\n }\r\n }\r\n }",
"public NominaPuesto[] findByDynamicWhere(String sql, Object[] sqlParams) throws NominaPuestoDaoException;",
"public RelacionConceptoEmbalaje[] findByDynamicSelect(String sql, Object[] sqlParams) throws RelacionConceptoEmbalajeDaoException;",
"public LearningResultHasActivity[] findByDynamicWhere(String sql, Object[] sqlParams) throws LearningResultHasActivityDaoException;",
"public DatiBancari[] findByDynamicSelect(String sql, Object[] sqlParams) throws DatiBancariDaoException;",
"public TipologiaStruttura[] findByDynamicWhere(String sql, Object[] sqlParams) throws TipologiaStrutturaDaoException;",
"SelectQuery createSelectQuery();",
"List<Object[]> findBySql(String sql, final Object... objects);",
"public <E extends Retrievable> ResultSet read(CharSequence sql, Object... objects);",
"@Override\r\n public ProductosPuntoVenta[] findByDynamicWhere(String sql,\r\n Object[] sqlParams) throws ProductosPuntoVentaDaoException {\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n try {\r\n // Validamos la conexion\r\n this.validateConnection();\r\n // construct the SQL statement\r\n final String SQL = SQL_SELECT + \" WHERE \" + sql;\r\n System.out.println(\"Executing \" + SQL);\r\n // prepare statement\r\n stmt = userConn.prepareStatement(SQL);\r\n stmt.setMaxRows(maxRows);\r\n // se setean los parametros de la consulta\r\n for (int i = 0; sqlParams != null && i < sqlParams.length; i++) {\r\n stmt.setObject(i + 1, sqlParams[i]);\r\n }\r\n rs = stmt.executeQuery();\r\n // recuperamos los resultados\r\n return fetchMultiResults(rs);\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n throw new ProductosPuntoVentaDaoException(\"Exception: \"\r\n + e.getMessage(), e);\r\n }\r\n finally {\r\n ResourceManager.close(rs);\r\n ResourceManager.close(stmt);\r\n if (userConn != null) {\r\n ResourceManager.close(userConn);\r\n }\r\n }\r\n }",
"public ExitQuestionsMap[] findByDynamicSelect(String sql, Object[] sqlParams) throws ExitQuestionsMapDaoException {\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry{\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\t// construct the SQL statement\n\t\t\tfinal String SQL = sql;\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(\"Executing \" + SQL);\n\t\t\t}\n\t\t\t// prepare statement\n\t\t\tstmt = conn.prepareStatement(SQL);\n\t\t\tstmt.setMaxRows(maxRows);\n\t\t\t// bind parameters\n\t\t\tfor (int i = 0; sqlParams != null && i < sqlParams.length; i++){\n\t\t\t\tstmt.setObject(i + 1, sqlParams[i]);\n\t\t\t}\n\t\t\trs = stmt.executeQuery();\n\t\t\t// fetch the results\n\t\t\treturn fetchMultiResults(rs);\n\t\t} catch (Exception _e){\n\t\t\tlogger.error(\"Exception: \" + _e.getMessage(), _e);\n\t\t\tthrow new ExitQuestionsMapDaoException(\"Exception: \" + _e.getMessage(), _e);\n\t\t} finally{\n\t\t\tResourceManager.close(rs);\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied){\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\t\t}\n\t}",
"public Utente[] findByDynamicWhere(String sql, Object[] sqlParams) throws UtenteDaoException\n\t{\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\t\n\t\ttry {\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\n\t\t\t// construct the SQL statement\n\t\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\n\t\t\n\t\t\n\t\t\tSystem.out.println( \"Executing \" + SQL );\n\t\t\t// prepare statement\n\t\t\tstmt = conn.prepareStatement( SQL );\n\t\t\tstmt.setMaxRows( maxRows );\n\t\t\n\t\t\t// bind parameters\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\n\t\t\t}\n\t\t\n\t\t\n\t\t\trs = stmt.executeQuery();\n\t\t\n\t\t\t// fetch the results\n\t\t\treturn fetchMultiResults(rs);\n\t\t}\n\t\tcatch (Exception _e) {\n\t\t\t_e.printStackTrace();\n\t\t\tthrow new UtenteDaoException( \"Exception: \" + _e.getMessage(), _e );\n\t\t}\n\t\tfinally {\n\t\t\tResourceManager.close(rs);\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied) {\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t}",
"public Utente[] findByDynamicSelect(String sql, Object[] sqlParams) throws UtenteDaoException\n\t{\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\t\n\t\ttry {\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\n\t\t\t// construct the SQL statement\n\t\t\tfinal String SQL = sql;\n\t\t\n\t\t\n\t\t\tSystem.out.println( \"Executing \" + SQL );\n\t\t\t// prepare statement\n\t\t\tstmt = conn.prepareStatement( SQL );\n\t\t\tstmt.setMaxRows( maxRows );\n\t\t\n\t\t\t// bind parameters\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\n\t\t\t}\n\t\t\n\t\t\n\t\t\trs = stmt.executeQuery();\n\t\t\n\t\t\t// fetch the results\n\t\t\treturn fetchMultiResults(rs);\n\t\t}\n\t\tcatch (Exception _e) {\n\t\t\t_e.printStackTrace();\n\t\t\tthrow new UtenteDaoException( \"Exception: \" + _e.getMessage(), _e );\n\t\t}\n\t\tfinally {\n\t\t\tResourceManager.close(rs);\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied) {\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t}",
"public DatiBancari[] findByDynamicWhere(String sql, Object[] sqlParams) throws DatiBancariDaoException;",
"@Override\n @SuppressWarnings(\"rawtypes\")\n public List dynamicQuery(DynamicQuery dynamicQuery)\n throws SystemException {\n return libroPersistence.findWithDynamicQuery(dynamicQuery);\n }",
"public SgfensPedidoProducto[] findByDynamicSelect(String sql, Object[] sqlParams) throws SgfensPedidoProductoDaoException;",
"public RelacionConceptoEmbalaje[] findByDynamicWhere(String sql, Object[] sqlParams) throws RelacionConceptoEmbalajeDaoException;",
"public List sqlQuery(String sql,Object... params);",
"public abstract ResultList executeSQL(RawQuery rawQuery);",
"public SgfensPedidoProducto[] findByDynamicWhere(String sql, Object[] sqlParams) throws SgfensPedidoProductoDaoException;",
"@Override\r\n\tpublic DeptBean[] findByDynamicWhere(String sql, Object[] sqlParams)\r\n\t\t\tthrows SQLException {\n\t\tList<Map<String, Object>> resultList = new ArrayList<Map<String,Object>>();\r\n\t\tdeptConn = this.getConnection();\r\n\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\r\n\t\tresultList = this.executeQuery(deptConn, SQL, sqlParams);\r\n\t\tif (deptConn != null) {\r\n\t\t\tthis.closeConnection(deptConn);\r\n\t\t}\r\n\t\treturn MapToObject(resultList);\r\n\t}",
"public Tipo[] findByDynamicSelect(String sql, Object[] sqlParams)\r\n throws TipoDaoException;",
"public ExitQuestionsMap[] findByDynamicWhere(String sql, Object[] sqlParams) throws ExitQuestionsMapDaoException {\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry{\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\t// construct the SQL statement\n\t\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(\"Executing \" + SQL);\n\t\t\t}\n\t\t\t// prepare statement\n\t\t\tstmt = conn.prepareStatement(SQL);\n\t\t\tstmt.setMaxRows(maxRows);\n\t\t\t// bind parameters\n\t\t\tfor (int i = 0; sqlParams != null && i < sqlParams.length; i++){\n\t\t\t\tstmt.setObject(i + 1, sqlParams[i]);\n\t\t\t}\n\t\t\trs = stmt.executeQuery();\n\t\t\t// fetch the results\n\t\t\treturn fetchMultiResults(rs);\n\t\t} catch (Exception _e){\n\t\t\tlogger.error(\"Exception: \" + _e.getMessage(), _e);\n\t\t\tthrow new ExitQuestionsMapDaoException(\"Exception: \" + _e.getMessage(), _e);\n\t\t} finally{\n\t\t\tResourceManager.close(rs);\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied){\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\t\t}\n\t}",
"public abstract ResultList executeQuery(DatabaseQuery query);",
"public List<IEntity> query(IQuery query) throws SQLException;",
"public UsState[] findByDynamicSelect(String sql, Object[] sqlParams) throws UsStateDaoException;",
"public ResultSet getMatches() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString matchRecords_sql = \"SELECT * FROM \" + match_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(matchRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}",
"@Override\n\tpublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {\n\t\treturn itemPublicacaoPersistence.findWithDynamicQuery(dynamicQuery);\n\t}",
"@Override\r\n\tpublic DeptBean[] findByDynamicSelect(String sql, Object[] sqlParams)\r\n\t\t\tthrows SQLException {\n\t\tList<Map<String, Object>> resultList = new ArrayList<Map<String,Object>>();\r\n\t\tdeptConn = this.getConnection();\r\n\t\tresultList = this.executeQuery(deptConn, sql, sqlParams);\r\n\t\tif (deptConn != null) {\r\n\t\t\tthis.closeConnection(deptConn);\r\n\t\t}\r\n\t\treturn MapToObject(resultList);\r\n\t}",
"ResultSet runSQL(String query) {\n try {\n return connection.prepareStatement(query).executeQuery();\n }\n catch (SQLException e) {\n System.err.println(e.getMessage());\n return null;\n }\n }",
"@Override\r\n public <T> List<T> query(String query, RowMapper<T> rowMapper, Object... parameters) {\n List<T> results = new ArrayList<>();\r\n Connection connection = null;\r\n PreparedStatement prepareStatement = null;\r\n ResultSet resultSet = null;\r\n try {\r\n connection = getConnection();\r\n prepareStatement = connection.prepareStatement(query);\r\n setParameter(prepareStatement, parameters);\r\n resultSet = prepareStatement.executeQuery();\r\n while (resultSet.next()) {\r\n results.add(rowMapper.mapRow(resultSet));\r\n }\r\n return results;\r\n } catch (SQLException e) {\r\n return null;\r\n } finally {\r\n try {\r\n connection.close();\r\n if (prepareStatement != null) {\r\n prepareStatement.close();\r\n }\r\n if (resultSet != null) {\r\n resultSet.close();\r\n }\r\n } catch (SQLException e) {\r\n return null;\r\n }\r\n }\r\n }",
"Object executeSelectQuery(String sql) { return null;}",
"public List<String> queryForStrings(String sql, Object[] params);",
"public Tipo[] findByDynamicWhere(String sql, Object[] sqlParams)\r\n throws TipoDaoException;",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery);",
"@Override\n\tpublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {\n\t\treturn monthlyTradingPersistence.findWithDynamicQuery(dynamicQuery);\n\t}",
"public Project[] findByDynamicSelect(String sql, Object[] sqlParams) throws ProjectDaoException {\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry{\n\t\t\t// get the user-specified connection or get a connection from the\n\t\t\t// ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\n\t\t\t// construct the SQL statement\n\t\t\tfinal String SQL = sql;\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(\"Executing \" + SQL);\n\t\t\t}\n\n\t\t\t// prepare statement\n\t\t\tstmt = conn.prepareStatement(SQL);\n\t\t\tstmt.setMaxRows(maxRows);\n\n\t\t\t// bind parameters\n\t\t\tfor (int i = 0; sqlParams != null && i < sqlParams.length; i++){\n\t\t\t\tstmt.setObject(i + 1, sqlParams[i]);\n\t\t\t}\n\n\t\t\trs = stmt.executeQuery();\n\n\t\t\t// fetch the results\n\t\t\treturn fetchMultiResults(rs);\n\t\t} catch (Exception _e){\n\t\t\tlogger.error(\"Exception: \" + _e.getMessage(), _e);\n\t\t\tthrow new ProjectDaoException(\"Exception: \" + _e.getMessage(), _e);\n\t\t} finally{\n\t\t\tResourceManager.close(rs);\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied){\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\n\t\t}\n\n\t}",
"public List<T> findAll() throws NoSQLException;",
"public static List<?> queryDatabase(String sql, Map<String, Object> params) {\r\n final Session session = sessionFactory.isClosed() ? sessionFactory.openSession() : sessionFactory.getCurrentSession();\r\n session.beginTransaction();\r\n try {\r\n final Query query = session.createQuery(sql);\r\n if (params != null) {\r\n params.forEach(query::setParameter);\r\n }\r\n return query.list();\r\n } finally {\r\n session.getTransaction().commit();\r\n }\r\n }",
"public VwStatsPerGame[] findByDynamicSelect(String sql, Object[] sqlParams) throws VwStatsPerGameDaoException\n\t{\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\t\n\t\ttry {\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\n\t\t\t// construct the SQL statement\n\t\t\tfinal String SQL = sql;\n\t\t\n\t\t\n\t\t\tSystem.out.println( \"Executing \" + SQL );\n\t\t\t// prepare statement\n\t\t\tstmt = conn.prepareStatement( SQL );\n\t\t\tstmt.setMaxRows( maxRows );\n\t\t\n\t\t\t// bind parameters\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\n\t\t\t}\n\t\t\n\t\t\n\t\t\trs = stmt.executeQuery();\n\t\t\n\t\t\t// fetch the results\n\t\t\treturn fetchMultiResults(rs);\n\t\t}\n\t\tcatch (Exception _e) {\n\t\t\t_e.printStackTrace();\n\t\t\tthrow new VwStatsPerGameDaoException( \"Exception: \" + _e.getMessage(), _e );\n\t\t}\n\t\tfinally {\n\t\t\tResourceManager.close(rs);\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied) {\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t}",
"public UsState[] findByDynamicWhere(String sql, Object[] sqlParams) throws UsStateDaoException;",
"public Project[] findByDynamicWhere(String sql, Object[] sqlParams) throws ProjectDaoException {\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry{\n\t\t\t// get the user-specified connection or get a connection from the\n\t\t\t// ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\n\t\t\t// construct the SQL statement\n\t\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(\"Executing \" + SQL);\n\t\t\t}\n\n\t\t\t// prepare statement\n\t\t\tstmt = conn.prepareStatement(SQL);\n\t\t\tstmt.setMaxRows(maxRows);\n\n\t\t\t// bind parameters\n\t\t\tfor (int i = 0; sqlParams != null && i < sqlParams.length; i++){\n\t\t\t\tstmt.setObject(i + 1, sqlParams[i]);\n\t\t\t}\n\n\t\t\trs = stmt.executeQuery();\n\n\t\t\t// fetch the results\n\t\t\treturn fetchMultiResults(rs);\n\t\t} catch (Exception _e){\n\t\t\tlogger.error(\"Exception: \" + _e.getMessage(), _e);\n\t\t\tthrow new ProjectDaoException(\"Exception: \" + _e.getMessage(), _e);\n\t\t} finally{\n\t\t\tResourceManager.close(rs);\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied){\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\n\t\t}\n\n\t}",
"public Opportunities[] findByDynamicSelect(String sql, Object[] sqlParams) throws OpportunitiesDaoException\r\n\t{\r\n\t\t// declare variables\r\n\t\tfinal boolean isConnSupplied = (userConn != null);\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\r\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\r\n\t\t\r\n\t\t\t// construct the SQL statement\r\n\t\t\tfinal String SQL = sql;\r\n\t\t\r\n\t\t\r\n\t\t\tSystem.out.println( \"Executing \" + SQL );\r\n\t\t\t// prepare statement\r\n\t\t\tstmt = conn.prepareStatement( SQL );\r\n\t\t\tstmt.setMaxRows( maxRows );\r\n\t\t\r\n\t\t\t// bind parameters\r\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\r\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\r\n\t\t\t// fetch the results\r\n\t\t\treturn fetchMultiResults(rs);\r\n\t\t}\r\n\t\tcatch (Exception _e) {\r\n\t\t\t_e.printStackTrace();\r\n\t\t\tthrow new OpportunitiesDaoException( \"Exception: \" + _e.getMessage(), _e );\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tResourceManager.close(rs);\r\n\t\t\tResourceManager.close(stmt);\r\n\t\t\tif (!isConnSupplied) {\r\n\t\t\t\tResourceManager.close(conn);\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"protected abstract List performQuery(String[] ids);",
"public VwStatsPerGame[] findByDynamicWhere(String sql, Object[] sqlParams) throws VwStatsPerGameDaoException\n\t{\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\t\n\t\ttry {\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\n\t\t\t// construct the SQL statement\n\t\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\n\t\t\n\t\t\n\t\t\tSystem.out.println( \"Executing \" + SQL );\n\t\t\t// prepare statement\n\t\t\tstmt = conn.prepareStatement( SQL );\n\t\t\tstmt.setMaxRows( maxRows );\n\t\t\n\t\t\t// bind parameters\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\n\t\t\t}\n\t\t\n\t\t\n\t\t\trs = stmt.executeQuery();\n\t\t\n\t\t\t// fetch the results\n\t\t\treturn fetchMultiResults(rs);\n\t\t}\n\t\tcatch (Exception _e) {\n\t\t\t_e.printStackTrace();\n\t\t\tthrow new VwStatsPerGameDaoException( \"Exception: \" + _e.getMessage(), _e );\n\t\t}\n\t\tfinally {\n\t\t\tResourceManager.close(rs);\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied) {\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t}",
"public ResultSet doQuery(String sql, Object[] params) throws SQLException {\r\n\t\t\r\n\t/*\tSystem.out.println(\"doQuery_sql: \" + sql);\r\n\t\tfor (int i = 0 ;i< params.length; i++)\r\n\t\t\tSystem.out.println(\"param: \" + params[i]);\t\r\n\t\t\r\n\t\t*/\r\n\t\tif (dbConnection == null)\r\n\t\t\treturn null;\r\n\t\toutstmt = dbConnection.prepareStatement(sql);\r\n\t\t// stuff parameters in\r\n\t\tfor (int i=0; i<params.length; i++){\r\n\t\t\toutstmt.setObject(i + 1,params[i]);\r\n\t\t}\r\n\t\t\r\n\t\tif (outstmt == null){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// return a collection that can be iterated on\r\n\t\tif (outstmt.execute()){\r\n\t\t\t//return stmt.getResultSet();\r\n\t\t\toutrs = outstmt.getResultSet();\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t\treturn outrs;\r\n\t}",
"public static List<Map<String, Object>> executeSearchQuery(String sql, Object... params) {\n Search search = new Search(sql, result1 -> {\n }, params);\n getInstance().add(search);\n\n while (search.getResult() == null) {\n getInstance().executeThread();\n }\n return search.getResult();\n }",
"public ResultSet runQuery(String sql){\n\n try {\n\n Statement stmt = conn.createStatement();\n\n return stmt.executeQuery(sql);\n\n } catch (SQLException e) {\n e.printStackTrace(System.out);\n return null;\n }\n\n }",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end);",
"public abstract QueryResultIterable executeGroundingQuery(Formula formula);",
"public PaypalIpn[] findByDynamicSelect(String sql, Object[] sqlParams) throws PaypalIpnDaoException\r\n\t{\r\n\t\t// declare variables\r\n\t\tfinal boolean isConnSupplied = (userConn != null);\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\r\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\r\n\t\t\r\n\t\t\t// construct the SQL statement\r\n\t\t\tfinal String SQL = sql;\r\n\t\t\r\n\t\t\r\n\t\t\tSystem.out.println( \"Executing \" + SQL );\r\n\t\t\t// prepare statement\r\n\t\t\tstmt = conn.prepareStatement( SQL );\r\n\t\t\tstmt.setMaxRows( maxRows );\r\n\t\t\r\n\t\t\t// bind parameters\r\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\r\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\r\n\t\t\t// fetch the results\r\n\t\t\treturn fetchMultiResults(rs);\r\n\t\t}\r\n\t\tcatch (Exception _e) {\r\n\t\t\t_e.printStackTrace();\r\n\t\t\tthrow new PaypalIpnDaoException( \"Exception: \" + _e.getMessage(), _e );\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tResourceManager.close(rs);\r\n\t\t\tResourceManager.close(stmt);\r\n\t\t\tif (!isConnSupplied) {\r\n\t\t\t\tResourceManager.close(conn);\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"public PaypalIpn[] findByDynamicWhere(String sql, Object[] sqlParams) throws PaypalIpnDaoException\r\n\t{\r\n\t\t// declare variables\r\n\t\tfinal boolean isConnSupplied = (userConn != null);\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\r\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\r\n\t\t\r\n\t\t\t// construct the SQL statement\r\n\t\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\r\n\t\t\r\n\t\t\r\n\t\t\tSystem.out.println( \"Executing \" + SQL );\r\n\t\t\t// prepare statement\r\n\t\t\tstmt = conn.prepareStatement( SQL );\r\n\t\t\tstmt.setMaxRows( maxRows );\r\n\t\t\r\n\t\t\t// bind parameters\r\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\r\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\r\n\t\t\t// fetch the results\r\n\t\t\treturn fetchMultiResults(rs);\r\n\t\t}\r\n\t\tcatch (Exception _e) {\r\n\t\t\t_e.printStackTrace();\r\n\t\t\tthrow new PaypalIpnDaoException( \"Exception: \" + _e.getMessage(), _e );\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tResourceManager.close(rs);\r\n\t\t\tResourceManager.close(stmt);\r\n\t\t\tif (!isConnSupplied) {\r\n\t\t\t\tResourceManager.close(conn);\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"<T extends BaseDto> List<T> executeQuery(String resQuery, QueryResultTransformer<T> transformer, Connection conn);",
"public List<Map<String,Object>> ejecutarQuery(String sql){\n return this.jdbcTemplate.queryForList(sql);\n }",
"public abstract List createNativeSQLQuery(String query);",
"T queryForId(ID id) throws SQLException, DaoException;",
"Query queryOn(Connection connection);",
"public EvaluationsDegree[] findByDynamicSelect(String sql, Object[] sqlParams) throws EvaluationsDegreeDaoException;",
"@Override\n\tpublic List<T> find(String hql) {\n\t\treturn hibernateTemplate.find(hql);\n\t}",
"@Override\n\tpublic final Iterable<R> execute() {\n\t\t\n\t\treturn new Iterable<R>() {\n\t\t\t\n\t\t\t@Override \n\t\t\tpublic Iterator<R> iterator() {\n\t\t\t\t\n\t\t\t\treturn AbstractMultiQuery.this.iterator();\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t\n\t}",
"public SmsAgendaGrupo[] findByDynamicWhere(String sql, Object[] sqlParams) throws SmsAgendaGrupoDaoException;",
"public Opportunities[] findByDynamicWhere(String sql, Object[] sqlParams) throws OpportunitiesDaoException\r\n\t{\r\n\t\t// declare variables\r\n\t\tfinal boolean isConnSupplied = (userConn != null);\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\r\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\r\n\t\t\r\n\t\t\t// construct the SQL statement\r\n\t\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\r\n\t\t\r\n\t\t\r\n\t\t\tSystem.out.println( \"Executing \" + SQL );\r\n\t\t\t// prepare statement\r\n\t\t\tstmt = conn.prepareStatement( SQL );\r\n\t\t\tstmt.setMaxRows( maxRows );\r\n\t\t\r\n\t\t\t// bind parameters\r\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\r\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\r\n\t\t\t// fetch the results\r\n\t\t\treturn fetchMultiResults(rs);\r\n\t\t}\r\n\t\tcatch (Exception _e) {\r\n\t\t\t_e.printStackTrace();\r\n\t\t\tthrow new OpportunitiesDaoException( \"Exception: \" + _e.getMessage(), _e );\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tResourceManager.close(rs);\r\n\t\t\tResourceManager.close(stmt);\r\n\t\t\tif (!isConnSupplied) {\r\n\t\t\t\tResourceManager.close(conn);\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {\n\t\treturn csclPollsChoicePersistence.findWithDynamicQuery(dynamicQuery);\n\t}",
"private Object queryDatabase(String searchType, String searchTerm) {\n Connection connection = null;\n PreparedStatement statement = null;\n Search search = new Search();\n ResultSet resultSet = null;\n String queryString = null;\n\n try {\n connection = getConnection(connection);\n\n queryString = getQueryString(searchType);\n\n statement = connection.prepareStatement(queryString);\n \n if (searchType.equals(\"employeeId\")) {\n statement.setString(1, searchTerm);\n } else {\n statement.setString(1, searchTerm + \"%\");\n }\n\n resultSet = statement.executeQuery();\n\n buildEmployeeList(resultSet, search);\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n System.err.println(\"General Error\");\n exception.printStackTrace();\n } finally {\n try {\n if (resultSet != null) {\n resultSet.close();\n }\n\n\n if (statement != null) {\n statement.close();\n }\n\n\n if (connection != null) {\n connection.close();\n }\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }\n return search;\n }",
"@Override\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end) {\n\n\t\treturn csclPollsChoicePersistence.findWithDynamicQuery(\n\t\t\tdynamicQuery, start, end);\n\t}",
"public abstract ResultSet select(Vector<AbstractOrmEntity> searchEntities)\r\n\t throws OrmException;",
"public List findRecords(String informationType, String queryString) throws DatabaseException;",
"public SmsAgendaGrupo[] findByDynamicSelect(String sql, Object[] sqlParams) throws SmsAgendaGrupoDaoException;",
"public <E extends Retrievable> List<E> getObjects(String sql, Class<E> clazz);",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {\n\t\treturn _weatherLocalService.dynamicQuery(dynamicQuery);\n\t}",
"public List<?> queryByCriteria(final DatabaseQuery query)\n throws DataAccessLayerException {\n List<?> queryResult = null;\n try {\n // Get a session and create a new criteria instance\n queryResult = txTemplate\n .execute(new TransactionCallback<List<?>>() {\n @Override\n public List<?> doInTransaction(TransactionStatus status) {\n String queryString = query.createHQLQuery();\n Query hibQuery = getSession(false).createQuery(\n queryString);\n try {\n query.populateHQLQuery(hibQuery,\n getSessionFactory());\n } catch (DataAccessLayerException e) {\n throw new org.hibernate.TransactionException(\n \"Error populating query\", e);\n }\n // hibQuery.setCacheMode(CacheMode.NORMAL);\n // hibQuery.setCacheRegion(QUERY_CACHE_REGION);\n if (query.getMaxResults() != null) {\n hibQuery.setMaxResults(query.getMaxResults());\n }\n List<?> results = hibQuery.list();\n return results;\n }\n });\n\n } catch (TransactionException e) {\n throw new DataAccessLayerException(\"Transaction failed\", e);\n }\n return queryResult;\n }",
"private ResultSet GetData(String query){\n\t\ttry{\n\t\t\tstat = connection.createStatement();\n\t\t\treturn stat.executeQuery(query);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}",
"public ResultSet executeQuery(String request) {\n try {\r\n return st.executeQuery(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n }",
"@Override\n\tpublic List<T> find(String hql, Map<String, Object> params, int page, int rows) {\n\t\tQuery q = hibernateTemplate.getSessionFactory().getCurrentSession().createQuery(hql);\n\t\tif (params != null && !params.isEmpty()) {\n\t\t\tfor (String key : params.keySet()) {\n\t\t\t\tq.setParameter(key, params.get(key));\n\t\t\t}\n\t\t}\n\t\treturn q.setFirstResult((page - 1) * rows).setMaxResults(rows).list();\n\t}",
"public <T> List<T> query(String sql, Object[] args, final RowMapper<T> rowMapper) throws DataAccessException {\n\t\tSystem.out.println(sql + \" - \" + Arrays.toString(args));\r\n\t\treturn new ResultSetCallback<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\tprotected List<T> doInResultSet(ResultSet rs) throws SQLException {\r\n\t\t\t\tResultSetMetaData meta = rs.getMetaData();\r\n\t\t\t\tint colCount = meta.getColumnCount();\r\n\t\t\t\tString[] colNames = new String[colCount];\r\n\t\t\t\tint[] colTypes = new int[colCount];\r\n\t\t\t\tfor (int i=0; i<colCount; i++) {\r\n\t\t\t\t\tcolNames[i] = meta.getColumnName(i+1);\r\n\t\t\t\t\tcolTypes[i] = meta.getColumnType(i+1);\r\n\t\t\t\t}\r\n List<T> list = new ArrayList<T>(getFetchSize());\r\n while (rs.next()) {\r\n list.add(rowMapper.mapRow(rs, colNames, colTypes));\r\n }\r\n\t\t\t\treturn list;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tprotected int getFetchSize() {\r\n\t\t\t\treturn fetchSize;\r\n\t\t\t}\r\n\t\t}.execute(txManager, sql, args);\r\n\t}",
"@Override\n\tpublic Object query(String sql) {\n\t\tSystem.out.println(\"HotelDAO.query sql:\" + sql);\n\t\tLinkedList<HotelBean> hotelBeans = new LinkedList<>();\n\t\ttry {\n\t\t\t//建立数据库链接\n\t\t\tConnection c = openDBConnection();\n\t\t\tStatement st = c.createStatement();\n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tHotelBean hotelBean = new HotelBean();\n\t\t\t\tResultSetMetaData rsmd = rs.getMetaData();\n\t\t\t\tint columns = rsmd.getColumnCount();\n\t\t\t\tfor(int i = 0; i < columns; i++) {\n\t\t\t\t\tswitch (rsmd.getColumnName(i + 1)) {\n\t\t\t\t\tcase \"hotel_number\":\n\t\t\t\t\t\thotelBean.setHotelNumber(rs.getString(i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"hotel_name\":\n\t\t\t\t\t\thotelBean.setHotelName(rs.getString(i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"address\":\n\t\t\t\t\t\thotelBean.setAddress(rs.getString(i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"location_city\":\n\t\t\t\t\t\thotelBean.setLocationCity(rs.getString(i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thotelBeans.add(hotelBean);\n\t\t\t}\n\t\t\trs.close();\n\t\t\tst.close();\n\t\t\t//关闭数据库链接\n\t\t\tcloseDBConnection(c);\n\t\t\treturn hotelBeans;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Error executing sql.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public EvaluationsDegree[] findByDynamicWhere(String sql, Object[] sqlParams) throws EvaluationsDegreeDaoException;",
"public <E extends Writeable> ResultSet read(CharSequence sql);",
"public List<T> find(DBObject dbObjectQuery) throws NoSQLException;",
"Row<K, C> execute();",
"public List<Document> execute(){\n if(!advancedQuery)\n return convertToDocumentsList(executeRegularQuery());\n else\n return convertToDocumentsList(executeAdvancedQuery());\n }",
"void runQueries();",
"public ResultSet app(Long broker_id)throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from broker where broker_id=\"+broker_id+\"\");\r\n\treturn rs;\r\n}"
]
| [
"0.7039451",
"0.6869426",
"0.6854438",
"0.67997193",
"0.675506",
"0.6705203",
"0.67030275",
"0.6669432",
"0.65296555",
"0.64960545",
"0.64750344",
"0.6344762",
"0.6338596",
"0.63130784",
"0.6290955",
"0.6276857",
"0.6232485",
"0.6220232",
"0.6211511",
"0.6207937",
"0.6198829",
"0.6185923",
"0.6163633",
"0.61244357",
"0.61203885",
"0.6113275",
"0.60944766",
"0.60755044",
"0.6061463",
"0.6058447",
"0.60545623",
"0.6046065",
"0.60436773",
"0.6026842",
"0.60196257",
"0.60031366",
"0.59967864",
"0.5985485",
"0.5953052",
"0.5951765",
"0.5942771",
"0.59350705",
"0.5920296",
"0.5899153",
"0.58868253",
"0.5879773",
"0.58734405",
"0.5855022",
"0.5853453",
"0.58462185",
"0.58403623",
"0.583131",
"0.5805569",
"0.579816",
"0.5783993",
"0.57816184",
"0.5767927",
"0.57548815",
"0.57509387",
"0.57482207",
"0.5747854",
"0.5746344",
"0.5743659",
"0.57188797",
"0.5718148",
"0.5716235",
"0.57148427",
"0.5689577",
"0.5688198",
"0.5686291",
"0.5675939",
"0.5670622",
"0.56659037",
"0.5656888",
"0.5644691",
"0.56313",
"0.56283915",
"0.56205344",
"0.56125206",
"0.56100905",
"0.5606355",
"0.5602407",
"0.55927587",
"0.5584394",
"0.55715996",
"0.55678153",
"0.55607295",
"0.55524325",
"0.55402756",
"0.55388737",
"0.55356336",
"0.55298686",
"0.5503622",
"0.550296",
"0.5502316",
"0.5480902",
"0.5479577",
"0.5475534",
"0.54724157",
"0.54689795",
"0.546357"
]
| 0.0 | -1 |
Returns the number of rows that match the dynamic query. | public static long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().dynamicQueryCount(dynamicQuery);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getRowsCount();",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery);",
"public int selectRowCount (final String sql) throws DataAccessException;",
"public long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public static long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {\n\n\t\treturn getService().dynamicQueryCount(dynamicQuery);\n\t}",
"@Override\n public long dynamicQueryCount(DynamicQuery dynamicQuery)\n throws SystemException {\n return libroPersistence.countWithDynamicQuery(dynamicQuery);\n }",
"public int resultCount(){\n\n int c = 0;\n\n try{\n if(res.last()){\n c = res.getRow();\n res.beforeFirst();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return c;\n }",
"private int getRowCount(String table) {\n return getIntFromQuery(\"SELECT COUNT(*) from \" + table, null);\n }",
"public int totalRowsCount();",
"public int searchRowsCount(SearchCriteria cri);",
"int countRows() throws IOException {\n Scan s = new Scan();\n ResultScanner rs = tbl.getScanner(s);\n int i = 0;\n while(rs.next() !=null) {\n i++;\n }\n return i;\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {\n\t\treturn _weatherLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {\n\t\treturn _vcmsPortionLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery) {\n\t\treturn itemPublicacaoPersistence.countWithDynamicQuery(dynamicQuery);\n\t}",
"public int getAllRowCount(String hql) {\n\t\treturn getHibernateTemplate().find(hql).size();\n\t}",
"public long dynamicQueryCount(DynamicQuery dynamicQuery)\n throws SystemException {\n return mbMobilePhonePersistence.countWithDynamicQuery(dynamicQuery);\n }",
"public long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _examConfigLocalService.dynamicQueryCount(dynamicQuery);\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {\n\t\treturn _clipLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"@Override\n public long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _muQuxianQujianLocalService.dynamicQueryCount(dynamicQuery);\n }",
"public static int getNumberOfRows() throws SQLException {\n\t\tstmt = conn.createStatement();\r\n\t\tStatement stmt3 = conn.createStatement();\r\n\t\tResultSet rownumber = stmt3.executeQuery(\"SELECT COUNT (*) AS count1 FROM TBLACCOUNT\"); // SQL Count query\r\n\t\trownumber.next();\r\n\r\n\t\tint rnum = rownumber.getInt(1);\r\n\t\tSystem.out.println(rnum); // for debugging purposes\r\n\t\treturn rnum; //return value\r\n\r\n\t}",
"public abstract int getNumOfRows();",
"@Override\n\tpublic int queryCountOfRows() {\n\t\treturn parentDao.queryCountOfRows();\n\t}",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery);\n }",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery);\n }",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery);\n }",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery);\n }",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery);\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _esfResultLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"public abstract int getNumRows();",
"public int count(String condition) {\r\n Session session = getSession();\r\n Long count = null;\r\n try {\r\n if (condition == null || \"null\".equals(condition)) {\r\n condition = \" \";\r\n }\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \" + condition).uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }",
"public int getRecCnt (String where) {\n Vector result = db.select (\"count(*)\",TABLE, where);\n Vector row = (Vector) result.elementAt(0);\n return (new Integer((String) row.elementAt(0)).intValue());\n }",
"long count(String query);",
"long count(String query);",
"public int count(String hql) throws Exception {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery) {\n\t\treturn csclPollsChoicePersistence.countWithDynamicQuery(dynamicQuery);\n\t}",
"int getQueriesCount();",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery) {\n\t\treturn wfms_Position_AuditPersistence.countWithDynamicQuery(dynamicQuery);\n\t}",
"public int findRowCount () throws DataAccessException;",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery) {\n\t\treturn monthlyTradingPersistence.countWithDynamicQuery(dynamicQuery);\n\t}",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"private int getJTableNumberOfRows() {\n\n\t\tint count = 0; /* create a integer object for rows count */\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(DATABASE_URL, UserName_SQL, Password_SQL);\n\t\t\tstatement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT COUNT(*) as numberOfRows FROM invoice\");\n\t\t\tresultSet.next();\n\t\t\tcount = resultSet.getInt(\"numberOfRows\");\n\t\t\tresultSet.close();\n\t\t} // end try\n\t\tcatch (SQLException sqlException) {\n\t\t\tsqlException.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} // end catch\n\t\tfinally // ensure statement and connection are closed properly\n\t\t{\n\t\t\ttry {\n\t\t\t\tstatement.close();\n\t\t\t\tconnection.close();\n\t\t\t} // end try\n\t\t\tcatch (Exception exception) {\n\t\t\t\texception.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t} // end catch\n\t\t} // end finally\n\t\treturn count; /* return the result of rows count */\n\t}",
"int getQueryItemsCount();",
"@Override\n public long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _muQuxianQujianLocalService.dynamicQueryCount(dynamicQuery,\n projection);\n }",
"@Override\n public long dynamicQueryCount(DynamicQuery dynamicQuery,\n Projection projection) throws SystemException {\n return libroPersistence.countWithDynamicQuery(dynamicQuery, projection);\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _surveyLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"public static int getRowCount() {\n ResultSet rs = null;\n int rows = 0;\n try (\n Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);) {\n rs = stmt.executeQuery(\"SELECT * FROM sensors\");\n rs.last();\n rows = rs.getRow();\n\n } catch (SQLException e) {\n System.err.println(e);\n } finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException ex) {\n Logger.getLogger(DBExecute.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n }\n return rows;\n }",
"public int count() {\n return Query.count(iterable);\n }",
"public int numberOfRows(){\n SQLiteDatabase db = this.getReadableDatabase();\n int numRows = (int) DatabaseUtils.queryNumEntries(db,TABLE_NAME);\n return numRows;\n }",
"public int count(String hql) {\n int count = 0;\n\n Object result = this.getCurrentSession().createQuery(hql).uniqueResult();\n if (result != null && result instanceof Long) {\n count = ((Long) result).intValue();\n } else {\n throw new BusinessException(\"Get count is fail.\");\n }\n\n return count;\n }",
"public int getTotalRows();",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn itemPublicacaoPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}",
"@Override\n public long count() {\n String countQuery = \"SELECT COUNT(*) FROM \" + getTableName();\n return getJdbcTemplate().query(countQuery, SingleColumnRowMapper.newInstance(Long.class))\n .get(0);\n }",
"public static int getNumberOfRowsServer() throws SQLException {\n\t\tstmt = conn.createStatement();\r\n\t\tStatement stmt3 = conn.createStatement();\r\n\t\tResultSet rownumber = stmt3.executeQuery(\"SELECT COUNT (*) AS count1 FROM TBLSERVERS\"); // sql count statement\r\n\t\trownumber.next(); // move cursor to first position\r\n\r\n\t\tint rnum = rownumber.getInt(1); //store result in an integer variable\r\n\t\tSystem.out.println(rnum); // for debugging purposes\r\n\t\treturn rnum; //return integer\r\n\r\n\t}",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic long dynamicQueryCount(\n\t\tDynamicQuery dynamicQuery, Projection projection);",
"public int getMatchesRowNumber() {\n\t\tint nMatches = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamByIdRecords_sql = \"SELECT COUNT(*) FROM \" + match_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tnMatches = rs.getInt(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn nMatches;\n\t}",
"@Override\r\n\tpublic int getAllRowCount(String hql) {\n\t\tTransaction tx = null;\r\n int allRows = 0;\r\n try{\r\n \tSession session = MyHibernateSessionFactory.getSessionFactory().getCurrentSession();\r\n tx = session.beginTransaction();\r\n Query query = session.createQuery(hql);\r\n allRows = query.list().size();\r\n tx.commit();\r\n return allRows;\r\n }catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}finally{\r\n\t\t\tif(tx!=null){\r\n\t\t\t\ttx=null;\r\n\t\t\t}\r\n\t\t\t//HibernateUtil.closeSession(session);\r\n\t\t}\r\n \r\n \r\n\t}",
"int getResultsCount();",
"int getResultsCount();",
"public int count() {\r\n Session session = getSession();\r\n Long count = new Long(0);\r\n try {\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \").uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {\n\n\t\treturn _participationLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"public int getRowsCount() {\n return rows_.size();\n }",
"public int getRowCount(ProxyConnection connection) throws DaoException {\n int rowCount = 0;\n try (PreparedStatement statement = connection.prepareStatement(SELECT_ROW_COUNT_SQL)) {\n ResultSet resultSet = statement.executeQuery();\n if (resultSet.next()) {\n rowCount = resultSet.getInt(1);\n }\n } catch (SQLException exception) {\n connection.rollback();\n logger.error(exception);\n throw new DaoException(exception);\n }\n return rowCount;\n }",
"int get_row_count(String table) {\n //table does not exist\n if (!get_table_names().contains(table) && !table.equals(\"relationship\")) {\n throw new RuntimeException(\"Table does not exist.\");\n }\n\n //maybe use select count(id) from table instead\n String sql = \"select * from \" + table;\n int count = 0;\n\n ResultSet resultSet = execute_statement(sql, true);\n try {\n while (resultSet.next()) {\n count++; //count number of entities\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n\n try {\n this.disconnect(resultSet, null, null); //disconnect from database\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return count;\n }",
"public int countBySql(String sql) throws Exception {\n\t\treturn 0;\r\n\t}",
"public static int getNumberOfRowsTBLSERVERS() throws SQLException {\n\t\tstmt = conn.createStatement();\r\n\t\tStatement stmt4 = conn.createStatement();\r\n\t\tResultSet rownumber = stmt4.executeQuery(\"SELECT COUNT (*) AS count1 FROM TBLSERVERS\"); // SQL Count query\r\n\t\trownumber.next();\r\n\r\n\t\tint rnum = rownumber.getInt(1);\r\n\t\tSystem.out.println(rnum); // for debugging purposes\r\n\t\treturn rnum; //return value\r\n\r\n\t}",
"int getNumberOfResults();",
"int findAllCount() ;",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn monthlyTradingPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}",
"public int query() {\n return count;\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.dynamicQueryCount(dynamicQuery,\n\t\t\tprojection);\n\t}",
"public int rowCount() {\n\t\treturn n_;\n\t}",
"public int countWhere(String where) throws SQLException\n {\n String sql = \"select count(*) as MCOUNT from preference \" + where;\n Connection c = null;\n Statement pStatement = null;\n ResultSet rs = null;\n try \n {\n int iReturn = -1; \n c = getConnection();\n pStatement = c.createStatement();\n rs = pStatement.executeQuery(sql);\n if (rs.next())\n {\n iReturn = rs.getInt(\"MCOUNT\");\n }\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(pStatement, rs);\n freeConnection(c);\n }\n throw new SQLException(\"Error in countWhere\");\n }",
"public int query() {\n return totalcount;\n }",
"int getNumberOfRows() {\n lock.readLock().lock();\n try {\n return extensionPointPluginMap.rowMap().size();\n } finally {\n lock.readLock().unlock();\n }\n }",
"public int getRowCount() {\r\n String countQuery = \"SELECT * FROM \" + User.TABLE_USER_NAME;\r\n SQLiteDatabase db = this.getReadableDatabase();\r\n Cursor cursor = db.rawQuery(countQuery, null);\r\n int rowCount = cursor.getCount();\r\n db.close();\r\n cursor.close();\r\n\r\n // return row count\r\n return rowCount;\r\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection) {\n\t\treturn _weatherLocalService.dynamicQueryCount(dynamicQuery, projection);\n\t}",
"public static int getRecordNum(IQueryResult queryResult) {\r\n Map<String, List<IRecord>> allRecords = queryResult.getRecords();\r\n int n = 0;\r\n for (List<IRecord> values : allRecords.values()) {\r\n n += values.size();\r\n }\r\n return n;\r\n }",
"public int getRowCount(Object rp) throws SQLException {\n\t\treturn 0;\r\n\t}",
"public static long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection) {\n\n\t\treturn getService().dynamicQueryCount(dynamicQuery, projection);\n\t}",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _circulationRuleLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"public int getRowsCount() {\n return rows_.size();\n }",
"int rowCount();",
"abstract public TypedQuery<?> getCountQuery() ;",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _kpiEntryLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"public long countRecords();",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tDynamicQuery dynamicQuery, Projection projection) {\n\n\t\treturn csclPollsChoicePersistence.countWithDynamicQuery(\n\t\t\tdynamicQuery, projection);\n\t}",
"public int countWhere(String where) throws SQLException\n {\n String sql = \"select count(*) as MCOUNT from sampletype \" + where;\n Connection c = null;\n Statement pStatement = null;\n ResultSet rs = null;\n try \n {\n int iReturn = -1; \n c = getConnection();\n pStatement = c.createStatement();\n rs = pStatement.executeQuery(sql);\n if (rs.next())\n {\n iReturn = rs.getInt(\"MCOUNT\");\n }\n if (iReturn != -1)\n return iReturn;\n }\n finally\n {\n getManager().close(pStatement, rs);\n freeConnection(c);\n }\n throw new SQLException(\"Error in countWhere\");\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _esfResultLocalService.dynamicQueryCount(dynamicQuery, projection);\n\t}",
"public int getNumRows () {\n\t\treturn numrows_;\n\t}",
"protected int countRows(String tableName) \n\t{\n\t\tint result = -1;\n\t\t\n\t\ttry {\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tResultSet rs = stat.executeQuery(\"select count(*) from \" + tableName + \";\");\n\t\t\tresult = rs.getInt(rs.getRow());\n\t\t\t// freakin hell wat een @#*$@#($* werk om deze op te zoeken :/\n\t\t} \n\t\tcatch (SQLException e) \n\t\t{\n\t\t\tSystem.out.println(\"Something went wrong counting users from Persons\");\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"@Override\n\tpublic String countSql(String sql) {\n\t\treturn sql;\n\t}",
"public int getListCount() {\n String countQuery = \"SELECT * FROM \" + TABLE_NAME;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n cursor.close();\n return cursor.getCount();\n }",
"public int size()\n {\n return queries.size();\n }",
"public int getcount() {\n\t\tString countQuery = \"SELECT * FROM \" + DATABASE_TABLE1;\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int cnt = cursor.getCount();\n\t cursor.close();\n\t return cnt;\n\t\n\t}",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn wfms_Position_AuditPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}"
]
| [
"0.72462654",
"0.72056246",
"0.7177561",
"0.7133431",
"0.7091408",
"0.70823574",
"0.70776063",
"0.7060437",
"0.705862",
"0.7013256",
"0.6983294",
"0.6960493",
"0.69587326",
"0.6958094",
"0.69572556",
"0.69308513",
"0.693003",
"0.6921807",
"0.69071466",
"0.6876162",
"0.6875529",
"0.68741447",
"0.68688226",
"0.68688226",
"0.68688226",
"0.68688226",
"0.68688226",
"0.68333673",
"0.6818413",
"0.6791266",
"0.6781009",
"0.67808217",
"0.67808217",
"0.67779785",
"0.67417926",
"0.6729003",
"0.67192394",
"0.6703056",
"0.67017764",
"0.66942596",
"0.66927207",
"0.66843975",
"0.6669387",
"0.6667934",
"0.6657614",
"0.6630862",
"0.66139257",
"0.6608659",
"0.659898",
"0.6595215",
"0.6592496",
"0.65913033",
"0.6566741",
"0.6530932",
"0.65304273",
"0.6520319",
"0.65182674",
"0.65182674",
"0.65071094",
"0.6504991",
"0.6493448",
"0.64914143",
"0.6491263",
"0.6489944",
"0.64804584",
"0.6480171",
"0.646831",
"0.6468289",
"0.6452377",
"0.6450531",
"0.64471966",
"0.644652",
"0.644435",
"0.64378476",
"0.6434446",
"0.64187163",
"0.641823",
"0.6413413",
"0.6407688",
"0.6407468",
"0.6406582",
"0.6405309",
"0.63992614",
"0.63962615",
"0.63890016",
"0.638356",
"0.63697183",
"0.63665587",
"0.63559824",
"0.63557005",
"0.6340351",
"0.6334855",
"0.63337475",
"0.6332914",
"0.63296926"
]
| 0.6676359 | 46 |
Returns the notifications user with the primary key. | public static com.b2b2000.agbar.historico.model.NotificationsUser getNotificationsUser(
long id)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().getNotificationsUser(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Notification getNotification(int idUser) {\n\t\treturn dao.getNotification(idUser);\n\t}",
"SysUser selectByPrimaryKey(Long userId);",
"@Override\n\tpublic Long getUserId() {\n\t\treturn user.getKey().getId();\n\t}",
"UUser selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer uid);",
"@Override\n\tpublic AppUser getUserById(int id) {\n\t\tAppUser user = store.get(id);\n return user;\n\t\t\n\t}",
"AdminUser selectByPrimaryKey(Integer id);",
"AdminUser selectByPrimaryKey(Integer id);",
"BaseUser selectByPrimaryKey(String userId);",
"User selectByPrimaryKey(Long id);",
"User selectByPrimaryKey(Long userId);",
"RegsatUser selectByPrimaryKey(Long userId);",
"public String getPrimaryUser () {\n return primaryUser;\n }",
"User selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer id);",
"Userinfo selectByPrimaryKey(String userId);",
"ROmUsers selectByPrimaryKey(String pkUserid);",
"java.lang.String getUserIdOne();",
"User selectByPrimaryKey(String id);",
"@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,String> map = getOne(SELECT_USERS+ WHERE_ID, id);\r\n\t\tif(map!= null){\r\n\t\t\treturn IMappable.fromMap(User.class, map);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"Integer getUserId();",
"User getUser(Long id);",
"User getUserById(Long id);",
"User getUserById(Long id);",
"User get(Key id);",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}",
"public User getUser(Integer id) {\n\t\treturn null;\n\t}",
"public AlarmUser getUser(String ID) {\n\t\tListIterator<AlarmUser> userList = users.listIterator();\n\t\t\n\t\tlogger.log(\"Looking for User by ID \" + ID, Level.TRACE);\n\t\t\n\t\twhile(userList.hasNext()) {\n\t\t\tAlarmUser theUser = userList.next();\n\t\t\tif(theUser.getID().equals(ID)) {\n\t\t\t\tlogger.log(\"Found User \" + ID, Level.TRACE);\n\t\t\t\treturn theUser;\n\t\t\t}\n\t\t}\n\t\t\n\t\tlogger.log(\"User \" + ID + \" not found! Adding new user of ID: \" + ID, Level.TRACE);\n\t\treturn addUser(ID);\n\t\t\n\t}",
"Long getUserId();",
"String getUserId();",
"String getUserId();",
"UserInfo selectByPrimaryKey(Integer id);",
"public User selectByPrimaryKey(Long id) {\r\n User key = new User();\r\n key.setId(id);\r\n User record = (User) getSqlMapClientTemplate().queryForObject(\"spreader_tb_user.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }",
"UserDO selectByPrimaryKey(Integer userCode);",
"@Override\r\n\tpublic User selectByPrimaryKey(Integer id) {\n\t\treturn um.selectByPrimaryKey(id);\r\n\t}",
"public User getUser(String id) {\n return repository.getUser(id).get(0);\n }",
"public User getUser(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n User user = null;\n try {\n tx = session.beginTransaction();\n\n // Add restriction to get user with username\n Criterion emailCr = Restrictions.idEq(id);\n Criteria cr = session.createCriteria(User.class);\n cr.add(emailCr);\n user = (User)cr.uniqueResult();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return user;\n }",
"User getUserById(int id);",
"UserEntity selectByPrimaryKey(Integer id);",
"WbUser selectByPrimaryKey(Integer userId);",
"public User getUserById(Integer id) {\n\t\treturn userMapper.selectByPrimaryKey(id);\n\t}",
"public List<Notification> findByUser(NormalUser user);",
"public UserRow getUser(int id) throws AdminPersistenceException {\n return (UserRow) getUniqueRow(SELECT_USER_BY_ID, id);\n }",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"Notifiction selectByPrimaryKey(Long id);",
"AliUserInfoDO selectByPrimaryKey(Long id);",
"@Override\n\tpublic User selectByPrimaryKey(Integer id) {\n\t\treturn userMapper.selectByPrimaryKey(id);\n\t}",
"public User getUserById(Serializable id) {\n\t\treturn (User)this.userDao.getEntryById(id);\r\n\t}",
"@Override\n\tpublic PrpUser getUserById(Integer id) {\n\t\treturn null;\n\t}",
"private User getUser(Long id) {\n\t\tEntityManager mgr = getEntityManager();\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = mgr.find(User.class, id);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\t\treturn user;\n\t}",
"public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}",
"long getUserId();",
"long getUserId();",
"TUserResources selectByPrimaryKey(Integer id);",
"@Override\n\tpublic long getUserId() {\n\t\treturn _second.getUserId();\n\t}",
"UserInfo getUserById(Integer user_id);",
"public User getUserById(int userId) {\n return this.userDao.selectByPrimaryKey(userId); \r\n }",
"public com.ims.dataAccess.tables.pojos.User fetchOneByUserid(Integer value) {\n return fetchOne(User.USER.USERID, value);\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"SysRoleUser selectByPrimaryKey(Long id);",
"public User getUser(int id) {\n\t\treturn null;\n\t}",
"@Override\n public User getUserById(int userId) {\n return this.userDao.selectByPrimaryKey(userId);\n }",
"public Integer getUserID() {\n return userID;\n }",
"UserInfoUserinfo selectByPrimaryKey(Integer userid);",
"@Override\r\n\tpublic User getUserByID(int id) {\n\t\treturn userMapper.getUserByID(id);\r\n\t}",
"@Override\n\tpublic User getOne(Integer id) {\n\t\treturn userDao.getOne(id);\n\t}",
"@Override\r\n\tpublic AdminUser selectByPrimaryKey(Integer id) {\n\t\treturn adminUserMapper.selectByPrimaryKey(id);\r\n\t}",
"public Person getAccountSupervisoryUser() {\n accountSupervisoryUser = SpringContext.getBean(org.kuali.rice.kim.api.identity.PersonService.class).updatePersonIfNecessary(accountsSupervisorySystemsIdentifier, accountSupervisoryUser);\n return accountSupervisoryUser;\n }",
"@Override\r\n\tpublic User getUserById(int id) {\n\t\treturn userMapper.selById(id);\r\n\t}",
"public int getUserId() {\n return instance.getUserId();\n }",
"@Override\n\tpublic long getUserId();",
"@Override\n\tpublic long getUserId();",
"@Override\n\tpublic long getUserId() {\n\t\treturn _userSync.getUserId();\n\t}",
"synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic LocalUser get(int id) {\n\t\treturn userDao.get(id);\r\n\t}",
"public PrototypeUser getUserById(Long id) {\n\t\treturn userDao.findById(id);\r\n\t}",
"@Override\n\tpublic SimpleUser getSimpleUser(int idUser) {\n\t\treturn dao.getSimpleUser(idUser);\n\t}",
"public User getRegUserFromId(int userId){\n for (int i = 0; i < regUsers.size(); i++){\n if (regUsers.get(i).getUserId() == userId){\n return regUsers.get(i);\n }\n }\n\n return null;\n }",
"public int getIdUser() {\n return idUser;\n }",
"public int getIdUser() {\n return idUser;\n }",
"Assist_table selectByPrimaryKey(Integer user);",
"OfUserWechat selectByPrimaryKey(Long id);",
"@Override\r\n\tpublic User getById(Integer id) {\n\t\treturn null;\r\n\t}",
"public ExternalUser getUser(ExternalUser requestingUser, String userIdentifier);",
"public LocalUser getLoginUser(){\n\t\treturn new Select().from(LocalUser.class).executeSingle();\n\t}",
"public Integer getUser_id() {\n\t\treturn user_id;\n\t}",
"public java.lang.String getUserId() {\n return instance.getUserId();\n }",
"User findOne(Long id);",
"public User getUserByID(IUser user){\n for(User u : Users){\n if(u.getUser() == user){\n return u;\n }\n }\n return null;\n }"
]
| [
"0.66922235",
"0.666805",
"0.6593188",
"0.6565589",
"0.6530818",
"0.6484061",
"0.6474766",
"0.6474766",
"0.64617014",
"0.64232266",
"0.6410659",
"0.6399137",
"0.63817817",
"0.6366274",
"0.6366274",
"0.6366274",
"0.6366274",
"0.6366274",
"0.63432527",
"0.63323855",
"0.63277996",
"0.6317219",
"0.63023645",
"0.6284547",
"0.6263303",
"0.6260263",
"0.6260263",
"0.6240078",
"0.623544",
"0.623544",
"0.623544",
"0.6201802",
"0.6186535",
"0.61860675",
"0.61836207",
"0.6181695",
"0.6181695",
"0.61435354",
"0.6138208",
"0.613495",
"0.6133881",
"0.6132846",
"0.61256474",
"0.6121166",
"0.6119615",
"0.61124504",
"0.6097268",
"0.6083623",
"0.60823375",
"0.6077956",
"0.6077956",
"0.6077956",
"0.6077956",
"0.60741496",
"0.6066364",
"0.6059717",
"0.60554826",
"0.6049361",
"0.60439247",
"0.60427916",
"0.6029553",
"0.6029553",
"0.60216486",
"0.60163134",
"0.60156703",
"0.6013405",
"0.60119957",
"0.6009356",
"0.6009356",
"0.6009356",
"0.60081184",
"0.59993875",
"0.5995064",
"0.5992077",
"0.59914887",
"0.59840894",
"0.5972251",
"0.59679794",
"0.59678406",
"0.5964281",
"0.59625465",
"0.59625",
"0.59625",
"0.5961488",
"0.5958234",
"0.59506625",
"0.5938124",
"0.5938004",
"0.59372735",
"0.59240127",
"0.59240127",
"0.59217733",
"0.5921286",
"0.5917844",
"0.5917796",
"0.5914686",
"0.59124196",
"0.59011126",
"0.58978236",
"0.5897806"
]
| 0.6449877 | 9 |
Returns the number of notifications users. | public static int getNotificationsUsersCount()
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getNotificationsUsersCount();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"public int numberOfUsers() {\r\n \tint anzahlUser=userDAO.getUserList().size();\r\n \treturn anzahlUser;\r\n }",
"public int getUsersCount() {\n return users_.size();\n }",
"public int getUsersCount() {\n return users_.size();\n }",
"public int getUserCount() {\n\t\t\treturn 7;\n\t\t}",
"int getUserCount();",
"int getUserCount();",
"public int getUsersCount()\n\t{\n\t\tint usersCount=(int) userDao.count();\n\t\treturn usersCount;\n\t}",
"public int numberUsers() \n\t{\n\t\treturn this.userList.size();\n\t}",
"public long getUsersCount() {\r\n return usersCount;\r\n }",
"public String getNotificationCount() {\n\t\treturn element(\"li_notificationCount\").getText();\n\t}",
"public int getUserCount() {\n return user_.size();\n }",
"public int getUserCount() {\n return instance.getUserCount();\n }",
"public Integer getNotificationCount(Long userId) {\n\t\tif (unreadNotifications.containsKey(userId)) {\n\t\t\treturn unreadNotifications.get(userId);\n\t\t} else {\n\t\t\tInteger count = notificationDao.countUnreadNotifications(userId);\n\t\t\tunreadNotifications.put(userId, count);\n\t\t\treturn count;\n\t\t}\n\t}",
"public int getUsersCount() {\n if (usersBuilder_ == null) {\n return users_.size();\n } else {\n return usersBuilder_.getCount();\n }\n }",
"public int getUsersCount() {\n if (usersBuilder_ == null) {\n return users_.size();\n } else {\n return usersBuilder_.getCount();\n }\n }",
"public int getNumberOfUsers() {\n \t\treturn interactionHistorySizes.size();\n \t}",
"public int getTotalNotifications(){\r\n\t\tif(_debug) Log.v(_context, \"NotificationViewFlipper.getTotalNotifications()\");\r\n\t\treturn this.getChildCount();\r\n\t}",
"@PreAuthorize(\"hasAnyAuthority(T(com.meetup.utils.Role).ADMIN, \"\n + \"T(com.meetup.utils.Role).SPEAKER, \"\n + \"T(com.meetup.utils.Role).LISTENER)\")\n @GetMapping(value = \"/user/notifications/count\")\n public ResponseEntity<Integer> countNotifications(\n @CookieValue(\"token\") final String token) {\n Integer userId = loginValidatorService.extractId(token);\n return ok(notificationService.countUnread(userId));\n }",
"public long getUserCount() throws UserManagementException;",
"@Transactional\r\n\tpublic Integer countUserss() {\r\n\t\treturn ((Long) usersDAO.createQuerySingleResult(\"select count(o) from Users o\").getSingleResult()).intValue();\r\n\t}",
"public int size() {\n return inAppNotifications.size();\n }",
"public int countUsers()\n {\n int nbUser = 0;\n pw.println(12);\n try\n {\n nbUser = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return nbUser ;\n }",
"protected int countUsers() \n\t{\n\t\tint result = -1;\n\t\ttry {\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tResultSet rs = stat.executeQuery(\"SELECT COUNT(lfm_username) FROM Persons;\");\n\t\t\tSystem.out.println(rs.toString());\n\t\t\tresult = rs.getInt(1);\n\t\t} \n\t\tcatch (SQLException e) \n\t\t{\n\t\t\tSystem.out.println(\"Something went wrong counting users from Persons\");\n\t\t}\n\t\treturn result;\n\t}",
"String getNotificationCount(Long userId) throws JsonProcessingException;",
"public int getUsers() {\n\t\treturn this.users;\n\t}",
"@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}",
"Integer loadUserCount();",
"@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}",
"int getParticipantsCount();",
"int getParticipantsCount();",
"@Override\r\n\tpublic int selectUserCount() {\n\t\treturn userMapper.selectUserCount();\r\n\t}",
"@Override\n\tpublic int countUsers(String partialName) {\n\t\tlong lcount = uDao.countUsers(partialName);\n\t\tif (lcount > Integer.MAX_VALUE) {\n\t\t\t// I know this won't ever happen, but I want to make the static code\n\t\t\t// checkers happy.\n\t\t\tlogger.error(\"Too many workspaces\");\n\t\t\treturn Integer.MAX_VALUE;\n\t\t} else {\n\t\t\treturn (int) lcount;\n\t\t}\n\t}",
"Integer getNumberOfUserActivity() {\n return daoInterface.getNumberOfUserActivity();\n }",
"public int getUserCount()\n\t{\n\t\tint ret = -1;\n\t\ttry {\n\t\t\tret = Integer.parseInt(userCount.getTextContent());\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tlogger.warn(\"Could not parse user-count field\");\n\t\t}\n\t\treturn ret;\n\t}",
"int getMessagesCount();",
"int getMessagesCount();",
"int getMessagesCount();",
"int getFriendCount();",
"int getFriendCount();",
"public int getActiveUserCount() {\n return activeUserCount;\n }",
"public int getWallItemsCount(String userUuid);",
"@Override\r\n\t\tpublic int getCount() {\n\t\t\tif (!allNotifications.isEmpty()) {\r\n\t\t\t\treturn allNotifications.size();\r\n\t\t\t}\r\n\t\t\treturn 1;\r\n\t\t}",
"public int getLoggedInUsers();",
"public int getWallItemsCount(String userUuid, ProfilePrivacy privacy);",
"public int getSize(){\n\t\t\n\t\tint counter = 0;\t\t\t\t\t\t\t\t\t\t\t/* ====> Size counter */\n\t\t\n\t\tUser marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n\t\tmarker = this.getHead();\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n\t\t\n\t\twhile(marker.getNext()!= null){\t\t\t\t\t\t\t\t/* ====> Move marker to next element until it reaches the end. */ \n\t\t\tmarker = marker.getNext();\n\t\t\tcounter++;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Increment counter everytime the loop goes through */\n\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\treturn counter;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Return number of Users in UserList */\n\t\t\n\t}",
"int getProfilesCount();",
"public int getCount() {\n return usersArrayList.size();\n }",
"@Pure\n\tpublic int getUserDataCount() {\n\t\treturn (this.userData == null) ? 0 : this.userData.size();\n\t}",
"public int getUsers()\n\t{\n\t\tint users=0;\n\t\tString query=\"select count(*) from login where usertype=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"user\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tusers=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\t}",
"int getUserFunctionsCount();",
"public int getNumberOfUserActivities(Identity owner) throws ActivityStorageException;",
"int getSubscriptionCount();",
"public int getUnreadChatMessageCount();",
"public int getNrSubscribers()\r\n {\r\n return subscriberInfos.size();\r\n }",
"int getFriendListCount();",
"int getFriendListCount();",
"public int getDeleteUserMonsterUuidsCount() {\n return deleteUserMonsterUuids_.size();\n }",
"public static int getUserInfosCount()\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().getUserInfosCount();\n }",
"public Integer findNumOfUsers(String username);",
"@SuppressWarnings(\"deprecation\")\n\t@RequestMapping(value = \"get_number_of_registred_users\", method = { RequestMethod.GET })\n\tpublic int getNumberOfRegistredUsers(@RequestParam(\"days\") int days) throws IOException {\n\t\tSystem.out.println(days + \"\");\n\t\tint result = 0;\n\t\tMongoClient mongoClient = null;\n\t\ttry {\n\t\t\t// Create the date before n days\n\t\t\tDate startDate = new Date();\n\t\t\tstartDate.setDate(startDate.getDate() - days);\n\t\t\tstartDate.setHours(0);\n\t\t\tstartDate.setMinutes(0);\n\t\t\tstartDate.setSeconds(0);\n\n\t\t\t// Create Mongo client\n\t\t\tmongoClient = new MongoClient(\"localhost\", 27017);\n\t\t\tMongoDatabase db = mongoClient.getDatabase(\"projectDB\");\n\n\t\t\t// Create Users collection\n\t\t\tMongoCollection<Document> collection = db.getCollection(\"USERS\");\n\n\t\t\t// Get all user before n days\n\t\t\tFindIterable<Document> iterDoc = collection.find(gt(\"RegistrationDate\", startDate));\n\t\t\tIterator it = iterDoc.iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tit.next();\n\t\t\t\tresult++;\n\t\t\t}\n\n\t\t\t// Close DB connection\n\t\t\tmongoClient.close();\n\n\t\t} catch (Exception e) {\n\t\t\tmongoClient.close();\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn result;\n\n\t}",
"public int getUserCount(UserParams params) throws Exception {\n\t\treturn 0;\n\t}",
"int getDeleteUserMonsterUuidsCount();",
"long getUnjoinedEventsCount();",
"public int getDeleteUserMonsterUuidsCount() {\n return deleteUserMonsterUuids_.size();\n }",
"int getNumberOfRegsUser(long idUser);",
"long getJoinedEventsCount();",
"public int getNumberOfRegisteredMessages() {\n return registeredMessages.size();\n }",
"int getNoticeListCount();",
"long getReceivedEventsCount();",
"int getDonatoriCount();",
"public long getMembershipsCount() {\r\n return membershipsCount;\r\n }",
"public Long getContributingUserCount(){\n\n return User.count(\"from User u where u.status in (?1) and u.company = ?2 AND exists(select id from Question q where q.user = u and status = ?3)\",\n UserStatus.getStatusesConsideredInUse(), this, QuestionStatus.ACCEPTED);\n }",
"int getMailCount() {\n\t\treturn mail_count[mailbox_number];\n\t}",
"int getPeersCount();",
"int getDeliveredCount();",
"public int getNumberOfNewerOnUserActivities(Identity ownerIdentity, Long sinceTime);",
"public int getDataMessagesReceived() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMessages().size() - c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}",
"public String numTasks() {\n return \"Now you have \" + USER_TASKS.size() + \" tasks in the list.\";\n }",
"public int getParticipantsCount()\n {\n return participants.size();\n }",
"@Override\n public final long countAll() {\n\treturn (long) getEntityManager()\n\t\t.createQuery(\"select count(*) from \"\n\t\t\t+ CustomerUser.class.getName())\n\t\t.getSingleResult();\n }",
"public long getUsersCount(\n org.eclipse.stardust.engine.api.query.UserQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;",
"int getUserTypesCount();",
"public long countNewPopup(long userId);",
"public int getNumberOfCommenters(){\n return commenters.size();\n }",
"public int getNumberOfActivitesOnActivityFeedForUpgrade(Identity ownerIdentity);",
"public int getSubscriptionCount()\n {\n int count;\n\n synchronized (lock)\n {\n count = (subscriptions != null) ? subscriptions.size() : 0;\n }\n\n return count;\n }",
"public int getNumberOfActivitesOnActivityFeed(Identity ownerIdentity);",
"public int obtenerNumeroFuentes() {\n\t\tint n = 0;\n\n\t\ttry {\n\n\t\t\trs = stmt\n\t\t\t\t\t.executeQuery(\"SELECT COUNT(IDFUENTE) AS FUENTES FROM FUENTE\");\n\t\t\trs.next();\n\n\t\t\tn = rs.getInt(\"FUENTES\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"No es posible recuperar el numero de fuentes\");\n\n\t\t}\n\n\t\treturn n;\n\t}",
"@Sql(\"SELECT count(m.id) FROM message m WHERE NOT CASEWHEN(m.user_id = 0, false, (SELECT iu.ignored FROM user iu WHERE iu.id = m.user_id)) AND (SELECT tc.ignored FROM topic_cache tc WHERE tc.topic_id = CASEWHEN(m.topic_id = 0, m.id, m.topic_id)) = false AND m.user_id <> m.parent_user_id AND m.parent_user_id = ? AND m.forum_id > 0\")\r\n int getUserReplies(int ownId) throws StorageException;",
"public static int registeredSize() {\n\t\tInteger count = new Integer(0);\n\t\tObject object = cache.get(FQN_COUNT, LOGGED_COUNT);\n\t\tif (object != null) {\n\t\t\tcount = (Integer) object;\n\t\t}\n\n\t\treturn (count == null ? 0 : count.intValue());\n\t}",
"@Override\r\n\tpublic int getUserIdCount(String user_id) {\n\t\treturn userDao.getUserIdCount(user_id);\r\n\t}",
"public Integer getFollowerCount() {\n return followerCount;\n }",
"public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}",
"@Override\r\n\tpublic int selectCount() {\n\t\treturn userdao.selectCount();\r\n\t}",
"public int getDataMessagesSent() {\n\t\tint contador = 0;\n\t\tfor (Contacto c : currentUser.getContacts()) {\n\t\t\tcontador += (c.getMsgsByUser(currentUser.getId()));\n\t\t}\n\t\treturn contador;\n\t}",
"int getMessageCount();",
"int getMessageCount();"
]
| [
"0.7714997",
"0.7714997",
"0.7714997",
"0.7424203",
"0.73866856",
"0.73864067",
"0.7380001",
"0.72910035",
"0.72910035",
"0.7287787",
"0.7195665",
"0.7179181",
"0.71392894",
"0.71302414",
"0.71209717",
"0.70949155",
"0.7061942",
"0.7060911",
"0.7011751",
"0.6960718",
"0.6948712",
"0.6817966",
"0.67988455",
"0.67656845",
"0.6717787",
"0.66987395",
"0.6692895",
"0.6680682",
"0.66749334",
"0.6660614",
"0.6614073",
"0.66140723",
"0.66140723",
"0.65992",
"0.6552984",
"0.6547017",
"0.6539691",
"0.6517343",
"0.6517343",
"0.6517343",
"0.6463207",
"0.6463207",
"0.6434446",
"0.6413922",
"0.63929504",
"0.63746995",
"0.6357811",
"0.63521993",
"0.63209146",
"0.6314587",
"0.6273695",
"0.6263357",
"0.6252993",
"0.6251136",
"0.62456036",
"0.62179786",
"0.6194014",
"0.61934704",
"0.61934704",
"0.6186032",
"0.61823034",
"0.61791605",
"0.61781675",
"0.6173108",
"0.615297",
"0.61443436",
"0.61329335",
"0.612163",
"0.61186266",
"0.61164176",
"0.6111399",
"0.610569",
"0.6089794",
"0.6064071",
"0.6060914",
"0.60534424",
"0.6045747",
"0.60432756",
"0.60419506",
"0.6033409",
"0.6013783",
"0.6012927",
"0.601018",
"0.5999096",
"0.5997125",
"0.5990728",
"0.59836364",
"0.59765595",
"0.5976037",
"0.597451",
"0.5972701",
"0.59712136",
"0.59703845",
"0.5968186",
"0.59676933",
"0.5965547",
"0.5962263",
"0.5951987",
"0.5944397",
"0.5944397"
]
| 0.8230302 | 0 |
Updates the notifications user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. | public static com.b2b2000.agbar.historico.model.NotificationsUser updateNotificationsUser(
com.b2b2000.agbar.historico.model.NotificationsUser notificationsUser)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().updateNotificationsUser(notificationsUser);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Notification addNotification(Notification notification, int idUser) {\n\t\treturn dao.addNotification(notification, idUser);\n\t}",
"public static com.b2b2000.agbar.historico.model.NotificationsUser createNotificationsUser(\n\t\tlong id) {\n\t\treturn getService().createNotificationsUser(id);\n\t}",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"public void updateUser(User user) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic Users updateUser(Users users) {\n\t\treturn iUserDao.updateUser(users);\n\t}",
"public void updateUser() {\r\n users.clear();\r\n RestaurantHelper.getCollectionFromARestaurant(currentRest.getPlaceId(), \"luncherId\").addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\r\n for (DocumentSnapshot docSnap : task.getResult()) {\r\n UserHelper.getUser(docSnap.getId()).addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if(!task.getResult().getId().equals(currentUser.getUid())){\r\n users.add(task.getResult().toObject(User.class));\r\n mCoworkerAdapter.notifyDataSetChanged();\r\n }\r\n }\r\n });\r\n }\r\n }\r\n }).addOnFailureListener(this.onFailureListener());\r\n }",
"public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}",
"ResponseMessage updateUser(final User user);",
"public boolean update(User u);",
"@Override\r\n\tpublic void updateUser(User user) {\n\t\tuserReposotory.save(user);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}",
"@Override\n public boolean updateUser(User user) {\n return controller.updateUser(user);\n }",
"@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}",
"public void announceAllUsers(String notificationText) throws RemoteException {\r\n notif.insertAll(new Notification(notificationText, 1));\r\n\r\n if (onlineUsers.size() > 0) {\r\n\r\n for (int i = 0; i < map.size(); i++) {\r\n if (map.get(onlineUsers.get(i).getId()) != null) {\r\n map.get(onlineUsers.get(i).getId()).updateUrAdminNOtification();\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }",
"@Override\n\tpublic boolean update(User user) {\n\t\tif (user == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (get(user.getId()) != null) {\n\t\t\tuserList.add(user);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic void update(User user) {\n\t\tuserDao.update(user);\r\n\t}",
"void updateUser(@Nonnull User user);",
"public void update(User user);",
"@Override\r\n\tpublic boolean updateUsers(Users u) {\n\t\treturn rp.updateUsers(u);\r\n\t}",
"@Override\n\tpublic void updateUser(user theUser) {\n\t}",
"public void update(User u) {\n\r\n\t}",
"public Boolean updateUserData (User currentUser){ //throws Exception if user not existing in database\n\n if(userRepository.existsById(currentUser.getId())){\n User temp_user = getUserById(currentUser.getId());\n\n temp_user.setUsername(currentUser.getUsername());\n temp_user.setBirthday_date(currentUser.getBirthday_date());\n userRepository.save(temp_user);\n\n return true;\n }else{\n throw new UnknownUserException(\"This user doesn't exist and can therefore not be updated\");\n }\n }",
"public void update(User user) {\n repository.update(user);\n }",
"public User UpdateUser(User user){\n\t\t\treturn user;\n\t\t}",
"@Override\n\t@Transactional\n\tpublic void updateUser(User user) {\n\t\tuserRepository.saveAndFlush(user);\n\t}",
"@Override\n\tpublic void updateOne(User u) {\n\t\tdao.updateInfo(u);\n\t}",
"@Override\n\tpublic int update(Users user) {\n\t\treturn userDAO.update(user);\n\t}",
"private void notifyUser() {\r\n //Start add into notification fragment process\r\n notify = new Notify();\r\n DatabaseReference NotRef = FirebaseDatabase.getInstance().getReference().child(\"Notify\");\r\n notify.setBookID(getBookID.getText().toString());\r\n notify.setUserID(getUID.getText().toString());\r\n String key = NotRef.push().getKey();\r\n notify.setNotifyID(key);\r\n NotRef.child(key).setValue(notify);\r\n\r\n //Update notify status\r\n DatabaseReference dbNotify = FirebaseDatabase.getInstance().getReference(\"Booking\").child(getUID.getText().toString()).child(getBookID.getText().toString());\r\n HashMap<String, Object> hashMap = new HashMap<>();\r\n hashMap.put(\"notifyStatus\", \"Approved\");\r\n dbNotify.updateChildren(hashMap);\r\n\r\n //Send push notification\r\n String StaffID = id.getText().toString();\r\n TOPIC = \"/topics/\" + StaffID.toLowerCase(); //topic must match with what the receiver subscribed to\r\n Log.v(TAG,StaffID);\r\n NOTIFICATION_TITLE = \"FKOM Car Booking\";\r\n NOTIFICATION_MESSAGE = \"Dear \" + name.getText().toString() + \", Your Booking \" + getBookID.getText().toString() + \" has been approved!\";\r\n\r\n JSONObject notification = new JSONObject();\r\n JSONObject notificationBody = new JSONObject();\r\n try {\r\n notificationBody.put(\"title\", NOTIFICATION_TITLE);\r\n notificationBody.put(\"message\", NOTIFICATION_MESSAGE);\r\n\r\n notification.put(\"to\", TOPIC);\r\n notification.put(\"data\", notificationBody);\r\n } catch (JSONException e) {\r\n Log.e(TAG, \"onCreate: \" + e.getMessage());\r\n }\r\n sendNotification(notification, StaffID);\r\n }",
"@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}",
"@Override\n\tpublic void updateItem(User entity) {\n\t\tuserRepository.save(entity);\n\t}",
"public void update(com.conurets.inventory.model.User model) throws InventoryException {\n }",
"@Override public void notifyUserObtained(UserInfo userInfo) {\n userAdapter.addUser(userInfo);\n }",
"@Override\n public void updateUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.update(u);\n logger.info(\"User updated successfully, User Details=\"+u);\n }",
"public void updateUser(IndividualUser u) {\n updateUser(u.getId(), u.getFirstName(), u.getLastName(), u.getFriends());\n }",
"@Override\n\tpublic Boolean updateUser(User user) {\n\t\treturn null;\n\t}",
"public void userUpdate(User user) {\n\t\tdao.userUpdate(user);\n\t}",
"public void updateUser(Person user) {\n\t\t\n\t}",
"public void update(User user) {\r\n // delete the user\r\n this.del(user.nick());\r\n \r\n // add the user back\r\n this.add(user);\r\n }",
"public void update() throws NotFoundException {\n\tUserDA.update(this);\n }",
"public void updateUserDetails() {\n\t\tSystem.out.println(\"Calling updateUserDetails() Method To Update User Record\");\n\t\tuserDAO.updateUser(user);\n\t}",
"@Override\n public User update(User user) {\n return dao.update(user);\n }",
"ManageUserResponse updateUser(UserUpdateRequest user, Long userId);",
"@Override\n\tpublic boolean updateUser(Integer Id, User user) {\n\t\treturn false;\n\t}",
"public User updateUser(User user);",
"public void updateUser(User oldUser, User newUser) ;",
"@Override\n\tpublic User updateUser(User user) {\n\t\treturn null;\n\t}",
"protected void notifyUser()\n {\n }",
"@Override\r\n\tpublic boolean updateUser(user user) {\n\t\tif(userdao.updateByPrimaryKey(user)==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}",
"public void update() throws Exception {\n\t HaUserDao.getInstance().updateUser(this);\n\t}",
"@Override\n\tpublic User update(User user) {\n\t\tUser oldUser = new User();\n\t\tif(user.getId() !=null) {\n\t\t\toldUser = repo.findById(user.getId()).get();\n\t\t}\n\t\t\toldUser.setUserId(user.getUserId());\n\t\t\toldUser.setName(user.getName());\n\t\t\toldUser.setEmail(user.getEmail());\n\t\t\t\n\t\treturn repo.save(oldUser);\n\t}",
"public void updateUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().update(user);\r\n\t\t\r\n\t}",
"private void note(Notification n){\r\n\t\tusers.get(n.userID).addNotification(n);\r\n\t\tif (loggedInUsers.contains(n.userID))\r\n\t\t\tcomms.sendMessage(n);\r\n\t}",
"public void updateUser(User updatedUser){\n ProfileSharedPreferencesRepository.getInstance(application).updateUser(updatedUser);\n }",
"@Override\n public TechGalleryUser updateUser(final TechGalleryUser user) throws BadRequestException {\n if (!userDataIsValid(user) && user.getId() != null) {\n throw new BadRequestException(i18n.t(\"User's email cannot be blank.\"));\n } else {\n userDao.update(user);\n return user;\n }\n }",
"void update(User user);",
"void update(User user);",
"@Transactional\n\tpublic User updateUser(User user) {\n\t\treturn userRepository.save(user);\n\t}",
"public User updateUser(User user) {\n User existingUser = users.stream()\n .filter(e -> e.getUserid().equals(user.getUserid()))\n .findFirst().get();\n\n if (existingUser != null) {\n users = users.stream()\n .filter(e -> !e.getUserid().equals(user.getUserid()))\n .collect(Collectors.toList());\n users.add(user);\n return user;\n } else {\n throw new IllegalArgumentException(user.getUserid() + \" user id does not exist\");\n }\n }",
"public User updateUser(User update) {\n\t\treturn userRepository.save(update);\n\t}",
"@Override\r\n\tpublic boolean update(User u) {\r\n\t\treturn executeAndIsModified(UPDATE_USERS + WHERE_ID, u.getTax_code(),\r\n\t\t\t\tu.getName(),\r\n\t\t\t\tu.getSurname(),\r\n\t\t\t\tu.getPhone(),\r\n\t\t\t\tu.getAddress(), \r\n\t\t\t\tu.getImage(),\r\n\t\t\t\tu.getBio(),\r\n\t\t\t\tu.getId());\r\n\t}",
"@Override\n\tpublic ApplicationResponse updateUser(String id, UserRequest request) {\n\t\tUserEntity user = null;\n\t\tOptional<UserEntity> userEntity = repository.findById(id);\n\t\tif (userEntity.isPresent()) {\n\t\t\tuser = userEntity.get();\n\t\t\tif (!StringUtils.isEmpty(request.getFirstName())) {\n\t\t\t\tuser.setFirstName(request.getFirstName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getSurName())) {\n\t\t\t\tuser.setSurName(request.getSurName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getDob())) {\n\t\t\t\tuser.setDob(request.getDob());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getTitle())) {\n\t\t\t\tuser.setTitle(request.getTitle());\n\t\t\t}\n\t\t\tuser = repository.save(user);\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(user));\n\t\t} else {\n\t\t\tthrow new UserNotFoundException(\"User not found\");\n\t\t}\n\t}",
"@Override\n\tpublic int updateUser(User user) {\n\t\treturn userDao.updateUser(user);\n\t}",
"@Override\n public void onUpdate(User user) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n final AlertDialog dialog = builder.create();\n LayoutInflater layoutInflater = LayoutInflater.from(getContext());\n final CustomDialogUpdateBinding binding = DataBindingUtil.inflate(layoutInflater,\n R.layout.custom_dialog_update, null, false);\n dialog.setView(binding.getRoot());\n binding.edtUsername.setText(user.getUsername());\n binding.edtPassword.setText(user.getPassword());\n binding.edtPhone.setText(user.getPhone());\n dialog.show();\n\n // get profile and update\n binding.imgUpdate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String UserName = binding.edtUsername.getText().toString().trim();\n String PassWord = binding.edtPassword.getText().toString().trim();\n String Phone = binding.edtPhone.getText().toString().trim();\n user.setUsername(UserName);\n user.setPassword(PassWord);\n user.setPhone(Phone);\n viewModel.update(user);\n dialog.dismiss();\n }\n });\n }",
"public static com.b2b2000.agbar.historico.model.NotificationsUser getNotificationsUser(\n\t\tlong id)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().getNotificationsUser(id);\n\t}",
"@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}",
"private void updateUser(final User unmanagedUser) {\n // here we got an unmanaged User with all fields validated\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n //create administrator\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n User u2 = realm.where(User.class)\n .equalTo(\"id\", unmanagedUser.getId())\n .equalTo(\"IsActive\", true).findFirst();\n if (u2 != null) {\n u2.setLoggedIn(unmanagedUser.getLoggedIn());\n u2.setUserId(unmanagedUser.getUserId());\n\n String updatedPassword = unmanagedUser.getPassword();\n if (updatedPassword != null && !updatedPassword.isEmpty()) {\n u2.setPassword(updatedPassword);\n }\n\n u2.setUserName(unmanagedUser.getUserName());\n u2.setStartDate(unmanagedUser.getStartDate());\n u2.setEndDate(unmanagedUser.getEndDate());\n// u2.setCreated(unmanagedUser.getCreated()); // Do not update a user's creation date\n u2.setActive(unmanagedUser.getActive());\n u2.setSpecial(unmanagedUser.getSpecial());\n// u2.setUpdated(new Date()); // TODO: Should this be updated every change?\n u2.setPermission(unmanagedUser.getPermission());\n u2.setEnabled(unmanagedUser.getEnabled());\n u2.setLastInvalidLogin(unmanagedUser.getLastInvalidLogin());\n u2.setInvalidLoginAttempts(unmanagedUser.getInvalidLoginAttempts());\n }\n }\n });\n\n if (mRealm == null)\n realm.close();\n }",
"@Override\n\tpublic void updateUser(User user) {\n\t\tiUserDao.updateUser(user);\n\t}",
"@Override\n\tpublic void update(User user)\n\t{\n\t\tuserDAO.update(user);\n\t}",
"public void updateUser(User detachedUser) throws Exception;",
"public void update(User obj) {\n\t\t\n\t}",
"public void modifyUser() {\n\t\tUser selectedUser = null;\r\n\t\tselectedUser = tableUser.getSelectionModel().getSelectedItem();\r\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tif (selectedUser != null) {\r\n\t\t\t\tframeManager.modifyUser(user, selectedUser);\r\n\t\t\t\tpesquisar();\r\n\t\t\t} else {\r\n\t\t\t\tAlertUtils.alertErroSelecionar(\"Para modificar um usuario é necessário selecionar um!\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic User updateUser(User user) throws BookException {\t\n\t\tuser.setEmail(this.getUserById(user.getUserId()).getEmail());\n\t\treturn userRepository.save(user);\n\t}",
"UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);",
"public void updateUser(User u) {\n em.merge(u);\n }",
"@Transactional(readOnly=false)\r\n\tpublic void updateUser(User user) {\n\t\tthis.userDao.updateEntry(user);\r\n\t}",
"public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}",
"@Auth(roles = {\"Admin\"})\n\t@PatchMapping\n\tpublic ResponseEntity<UsersModel> updateUser(@RequestBody UsersModel u){\n\t\tif(u.getUserId() == 0) {\n\t\t\treturn new ResponseEntity(\"userId must not be 0\", HttpStatus.BAD_REQUEST);\n\t\t}\n\t\treturn new ResponseEntity<UsersModel>(us.updateUser(u), HttpStatus.CREATED);\n\t}",
"public void update(User user) {\n\t\tuserDao.update(user);\n\t}",
"private void updateUI() {\n user = mAuth.getCurrentUser();\n if (user != null) {\n user.reload().addOnCompleteListener(userReloadListener);\n }\n }",
"@Override\n\tpublic int update(TbUser user) {\n\t\treturn new userDaoImpl().update(user);\n\t}",
"public User usersUserIdNotificationsGlobalPatch (String userId, String unread, String delivered, String seen, String nonanswered) throws TimeoutException, ExecutionException, InterruptedException, ApiException {\n Object postBody = null;\n // verify the required parameter 'userId' is set\n if (userId == null) {\n VolleyError error = new VolleyError(\"Missing the required parameter 'userId' when calling usersUserIdNotificationsGlobalPatch\",\n new ApiException(400, \"Missing the required parameter 'userId' when calling usersUserIdNotificationsGlobalPatch\"));\n }\n\n // create path and map variables\n String path = \"/users/{userId}/notifications/global\".replaceAll(\"\\\\{\" + \"userId\" + \"\\\\}\", apiInvoker.escapeString(userId.toString()));\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n // header params\n Map<String, String> headerParams = new HashMap<String, String>();\n // form params\n Map<String, String> formParams = new HashMap<String, String>();\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"unread\", unread));\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"delivered\", delivered));\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"seen\", seen));\n queryParams.addAll(ApiInvoker.parameterToPairs(\"\", \"nonanswered\", nonanswered));\n String[] contentTypes = {\n };\n String contentType = contentTypes.length > 0 ? contentTypes[0] : \"application/json\";\n\n if (contentType.startsWith(\"multipart/form-data\")) {\n // file uploading\n MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();\n HttpEntity httpEntity = localVarBuilder.build();\n postBody = httpEntity;\n } else {\n // normal form params\n }\n\n String[] authNames = new String[] { \"Authorization\" };\n\n try {\n String localVarResponse = apiInvoker.invokeAPI (basePath, path, \"PATCH\", queryParams, postBody, headerParams, formParams, contentType, authNames);\n if (localVarResponse != null) {\n return (User) ApiInvoker.deserialize(localVarResponse, \"\", User.class);\n } else {\n return null;\n }\n } catch (ApiException ex) {\n throw ex;\n } catch (InterruptedException ex) {\n throw ex;\n } catch (ExecutionException ex) {\n if (ex.getCause() instanceof VolleyError) {\n VolleyError volleyError = (VolleyError)ex.getCause();\n if (volleyError.networkResponse != null) {\n throw new ApiException(volleyError.networkResponse.statusCode, volleyError.getMessage());\n }\n }\n throw ex;\n } catch (TimeoutException ex) {\n throw ex;\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e){\n \tframe.getNotif().update();\n ArrayList<Notification> newNotif;\n if (Application.getApplication().getCurrentUser() != null)\n newNotif = Application.getApplication().getCurrentUser().getNotifications();\n else\n newNotif = Application.getApplication().getAdmin().getNotifications();\n frame.getNotif().setNotifications(newNotif);\n this.frame.showPanel(\"notif\");\n }",
"@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}",
"@Override\n\n public void update(UserInfoVo userInfoVo) {\n\n userDao.update(userInfoVo);\n\n }",
"public void updateUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_NAME, user.getName());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n if (user.getImage() != null){\n values.put(COLUMN_USER_IMAGE, getBitmapAsByteArray(user.getImage()));\n }else {\n values.put(COLUMN_USER_IMAGE, \"\");\n }\n values.put(COLUMN_USER_CURRMONTH_ID, user.getCurrMonth());\n // updating row\n db.update(TABLE_USER, values, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n Log.i(\"updateUser\", user.toString());\n db.close();\n }",
"void updateUserById(String username, User userData);",
"@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void updateUser(User user) {\n\t userMapper.updateUser(user);\n\t}",
"public int updateUser(User user) {\n\t\t\n\t\treturn 1;\n\t}",
"@Override\n\tpublic void update(User entity) {\n\t\tif (userlist.get(String.valueOf(entity.getDni())) != null) {\n\t\t\tuserlist.put(String.valueOf(entity.getDni()), entity);\n\t\t} else {\n\t\t\tEnviromentVariables.UPDATEUSERERRORNOEXISTE = \"El usuario no existe\";\n\t\t}\n\t}",
"@Override\n\tpublic boolean updateUser(User user) {\n\t\tboolean success = false;\n\t\tfor (User userTemp : userVO.getUsers()) {\n\n\t\t\tif (user.getId().equals(userTemp.getId())) {\n\n\t\t\t\tuserTemp.setPinCode(user.getPinCode());\n\t\t\t\tuserTemp.setBirthDate(user.getBirthDate());\n\n\t\t\t\t// newPerson.se\n\t\t\t\t/**\n\t\t\t\t * Copy Object Properties and Update Salary\n\t\t\t\t */\n\t\t\t\t// BeanUtils.copyProperties(person, newPerson);\n\t\t\t\t// newPerson.setFirstName(firstName);\n\t\t\t\t// newPerson.setDob(dob);\n\t\t\t\t// userVO.getUsers().add(userTemp);\n\t\t\t\tsuccess = true;\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}\n\t\treturn success;\n\t}",
"public void updateUser() {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"update users set first_name='\" + firstName + \"', \";\n query += \"last_name='\" + lastName + \"', \";\n query += \"phone_number='\" + phoneNumber + \"', \";\n query += \"email='\" + email + \"', \";\n query += \"address='\" + address + \"', \";\n query += \"id_city='\" + idCity + \"' \";\n query += \"where id_user = \" + id;\n stmt.executeUpdate(query);\n\n User updatedUser = findUser(id);\n updatedUser.setFirstName(firstName);\n updatedUser.setLastName(lastName);\n updatedUser.setPhoneNumber(phoneNumber);\n updatedUser.setEmail(email);\n updatedUser.setIdCity(idCity);\n updatedUser.setAddress(address);\n\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n }",
"public void updateUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_FIRSTNAME, user.getFirstname());\n values.put(COLUMN_LASTNAME, user.getLastname());\n values.put(COLUMN_EMAIL, user.getEmail());\n values.put(COLUMN_PHONE, user.getMobile());\n\n // updating row\n db.update(TABLE_USERLIST, values, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }",
"private void sendNotifications(String userMessage) {\n if (this.notifications == null) {\n this.notifications = new ConcurrentLinkedQueue<Notification>();\n }\n \n // not sure if the synchronize is needed here, let's see ...\n // synchronized (notifications) {\n if (!this.notifications.isEmpty()) {\n ObjectName source = getObjectName();\n Notification n = new Notification(NotificationType.setOfNotifications, source, counter++,\n userMessage);\n n.setUserData(this.notifications);\n super.sendNotification(n);\n this.notifications.clear();\n // }\n }\n }",
"@Override\n\tpublic int updateUsers(User user) {\n\t\treturn userDao.updateUsers(user);\n\t}",
"@Override\n\tpublic void onUserProfileUpdate(User updatedUser) {\n\n\t}",
"public boolean update(User user) {\n boolean result;\n synchronized (this.base) {\n if (result = user != null && this.base.containsKey(user.getId())) {\n this.add(user);\n }\n }\n return result;\n }",
"@Override\n\tpublic int modifyUser(User user) {\n\t\tuser.setUpdateTime(new Date());\n\t\treturn userDao.updateUserById(user);\n\t}",
"public Function<User, String> update() {\n return user -> {\n String result = \"No such user!\";\n if (store.update(user)) {\n result = String.format(\"User with id %s was updated\", user.getId());\n }\n return result;\n };\n }"
]
| [
"0.6174101",
"0.607049",
"0.6037889",
"0.5935691",
"0.5904508",
"0.5875508",
"0.5872691",
"0.58649474",
"0.5833116",
"0.5805206",
"0.58031785",
"0.578462",
"0.5774115",
"0.5757506",
"0.5731136",
"0.57109165",
"0.5684019",
"0.56810236",
"0.567619",
"0.5674034",
"0.5673517",
"0.5664634",
"0.56630176",
"0.5648525",
"0.56425256",
"0.5607537",
"0.56035894",
"0.5593278",
"0.55814743",
"0.55716264",
"0.5564343",
"0.55616724",
"0.55561227",
"0.55486417",
"0.5547167",
"0.5544345",
"0.5536762",
"0.553646",
"0.5535118",
"0.55222696",
"0.55219257",
"0.55158937",
"0.5510066",
"0.55086976",
"0.5483729",
"0.5478287",
"0.5466597",
"0.54636943",
"0.5461067",
"0.5460866",
"0.54510075",
"0.54502404",
"0.54481184",
"0.54438555",
"0.5442699",
"0.5431408",
"0.5431408",
"0.5426384",
"0.54241896",
"0.54235554",
"0.54217476",
"0.5421525",
"0.5419149",
"0.5417993",
"0.54179615",
"0.5412923",
"0.53957236",
"0.5395067",
"0.539344",
"0.5390814",
"0.5383104",
"0.53793544",
"0.53755915",
"0.536002",
"0.5359966",
"0.5355904",
"0.53549606",
"0.53525865",
"0.53450996",
"0.53436744",
"0.53312427",
"0.5325574",
"0.5324654",
"0.5316118",
"0.53127724",
"0.53106093",
"0.52965015",
"0.5292351",
"0.5291598",
"0.52905065",
"0.52788717",
"0.5276609",
"0.5265358",
"0.5258517",
"0.5244787",
"0.52367693",
"0.52305084",
"0.52295864",
"0.5227837",
"0.5224022"
]
| 0.70418936 | 0 |
Returns the Spring bean ID for this bean. | public static java.lang.String getBeanIdentifier() {
return getService().getBeanIdentifier();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"public java.lang.String getBeanIdentifier() {\n return _examConfigLocalService.getBeanIdentifier();\n }",
"public java.lang.String getBeanIdentifier();",
"public java.lang.String getBeanIdentifier() {\n\t\treturn _preschoolParentLocalService.getBeanIdentifier();\n\t}",
"@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _vanBanPhapQuyLocalService.getBeanIdentifier();\n\t}",
"@Override\n public java.lang.String getBeanIdentifier() {\n return _muQuxianQujianLocalService.getBeanIdentifier();\n }",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _circulationRuleLocalService.getBeanIdentifier();\n\t}",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _kpiEntryLocalService.getBeanIdentifier();\n\t}",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _userSyncLocalService.getBeanIdentifier();\n\t}",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _surveyLocalService.getBeanIdentifier();\n\t}",
"public java.lang.String getBeanIdentifier() {\n\t\treturn _primarySchoolStudentLocalService.getBeanIdentifier();\n\t}",
"@Override\r\n public java.lang.String getBeanIdentifier() {\r\n return _contentHolderService.getBeanIdentifier();\r\n }",
"@Override\n public java.lang.String getBeanIdentifier() {\n return _staffMemberLocalService.getBeanIdentifier();\n }",
"@Override\n public java.lang.String getBeanIdentifier() {\n return _balloonUserTrackingLocalService.getBeanIdentifier();\n }",
"@Override\n public java.lang.String getBeanIdentifier() {\n return _marksService.getBeanIdentifier();\n }",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _esfResultLocalService.getBeanIdentifier();\n\t}",
"public String getBeanName() {\r\n\t\treturn beanName;\r\n\t}",
"@Nullable\n protected final String getBeanName() {\n return this.beanName;\n }",
"public int getPropertyId() {\n\t\treturn propertyId;\n\t}",
"public int getPropertyId() {\n\t\treturn propertyId;\n\t}",
"public String getComponentId();",
"public String getComponentId() {\n \t\treturn componentId;\n \t}",
"private static String beanName(Object bean) {\r\n\t\tString fullClassName = bean.getClass().getName();\r\n\t\tString classNameTemp = fullClassName.substring(fullClassName\r\n\t\t\t\t.lastIndexOf(\".\") + 1, fullClassName.length());\r\n\t\treturn classNameTemp.substring(0, 1) + classNameTemp.substring(1);\r\n\t}",
"public void setBeanIdentifier(java.lang.String beanIdentifier);",
"public long getId() {\n return mServiceId;\n }",
"public StrColumn getSheetId() {\n return delegate.getColumn(\"sheet_id\", DelegatingStrColumn::new);\n }",
"public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",
"public int getId() {\n return m_module.getConfiguration().getId();\n }",
"public java.lang.String getServiceID()\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(SERVICEID$6, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getPropertyId() {\n return propertyId;\n }",
"public java.lang.Long getServiceId() {\n return serviceId;\n }",
"public String getId()\r\n {\r\n return departmentBean.getId();\r\n }",
"public UUID getComponentId();",
"public int getId() {\n\t\treturn config >> 8;\n\t}",
"public Long getUserID() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n return getByUsername(authentication.getName()).getId();\n }",
"public java.lang.Long getServiceId() {\n return serviceId;\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getServiceID() {\n return serviceID;\n }",
"public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }",
"public int getId() {\n return instance.getId();\n }",
"public String getConsumerID(WSMessageConsumerDTO consumerDTO){\n String id = consumerDTO.getReceiverId();\n return id;\n }",
"public Integer getServiceid() {\r\n return serviceid;\r\n }",
"@Override\n public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",
"@Override\n public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",
"@Override\n public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",
"public int getId() {\n\t\treturn definition.get().getId();\n\t}",
"public Integer getClassId() {\n return classId;\n }",
"public int getId() {\n return parameter.getId();\n }",
"public Integer getClassId() {\r\n return classId;\r\n }",
"public org.apache.axis.types.Token getComponentID() {\n return componentID;\n }",
"public Object lookup()\r\n {\n if (applicationInstance != null)\r\n return applicationInstance;\r\n\r\n ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(flex.messaging.FlexContext.getServletConfig().getServletContext());\r\n if (appContext == null)\r\n {\r\n if (Log.isError())\r\n Log.getLogger(\"Configuration\").error(\r\n \"SpringFactory - not able to look up the WebApplicationContext for Spring. Check your web.xml to ensure Spring is installed properly in this web application.\");\r\n return null;\r\n }\r\n String beanName = getSource();\r\n\r\n try\r\n {\r\n Object inst;\r\n if (appContext.isSingleton(beanName))\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n // We have a singleton instance but no one has initialized it yet.\r\n // We need to sync to prevent two threads from potentially initializing\r\n // the instance at the same time and to ensure we only return\r\n // initialized instances.\r\n synchronized (this)\r\n {\r\n // Someone else got to this before us\r\n if (applicationInstance != null)\r\n return applicationInstance;\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n applicationInstance = inst;\r\n }\r\n }\r\n else\r\n {\r\n if (Log.isDebug())\r\n Log.getLogger(\"Configuration\").debug(\r\n \"SpringFactory creating non-singleton component with spring id: \" + beanName + \" for destination: \" + getId());\r\n inst = appContext.getBean(beanName);\r\n if (inst instanceof FlexConfigurable)\r\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\r\n }\r\n return inst;\r\n }\r\n catch (NoSuchBeanDefinitionException nexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Spring service named '\" + beanName + \"' does not exist.\";\r\n e.setMessage(msg);\r\n e.setRootCause(nexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n catch (BeansException bexc)\r\n {\r\n ServiceException e = new ServiceException();\r\n String msg = \"Unable to create Spring service named '\" + beanName + \"' \";\r\n e.setMessage(msg);\r\n e.setRootCause(bexc);\r\n e.setDetails(msg);\r\n e.setCode(\"Server.Processing\");\r\n throw e;\r\n }\r\n }",
"public String getApplicationId();",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"public int getClassId() {\n\t\treturn this.classId;\n\t}",
"public String getConfigurationID() {\n return configurationID;\n }",
"public String getPropertyID()\n {\n String v = (String)this.getFieldValue(FLD_propertyID);\n return StringTools.trim(v);\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public String getId()\n\t{\n\t\treturn getId( getSession().getSessionContext() );\n\t}",
"public InstanceConfigId getId() {\n return id;\n }",
"public int getPropertyBuyerId() {\n\t\treturn propertyBuyerId;\n\t}",
"public java.lang.String getApplicationId() {\r\n return applicationId;\r\n }",
"public int getClassId() {\r\n return classId;\r\n }",
"@Override\n\tpublic int getId() {\n\t\treturn delegate.getId();\n\t}",
"public Integer getId() {\n return id.get();\n }",
"public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }",
"public static String getPROPERTY_ID() {\n\t\treturn PROPERTY_ID;\n\t}",
"@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}",
"public final int getId() {\n\t\treturn this.accessor.getId();\n\t}",
"public String getWorkbookId() {\n return this.workbookId;\n }",
"public String beanType() {\n return beanType;\n }",
"public String getJasperFeedId( )\n {\n return _strJasperFeedId;\n }",
"public Class<?> getBeanClass() {\r\n return beanClass;\r\n }",
"ComponentBean getBean();",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public Long getId() {\n\t\treturn EventHandlerClass.DEFAULT_ID;\n\t}",
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }"
]
| [
"0.8218848",
"0.8218848",
"0.8218848",
"0.8218848",
"0.8218848",
"0.7810215",
"0.7757243",
"0.7632713",
"0.748587",
"0.74818814",
"0.74818814",
"0.74818814",
"0.73971653",
"0.7265513",
"0.717723",
"0.71664697",
"0.7084225",
"0.70497847",
"0.70097995",
"0.6987446",
"0.69093156",
"0.6853896",
"0.6825189",
"0.65314007",
"0.62667584",
"0.6041548",
"0.5638467",
"0.5638467",
"0.5627394",
"0.56045777",
"0.553933",
"0.553773",
"0.553249",
"0.5520499",
"0.5515577",
"0.5508719",
"0.5501058",
"0.5499247",
"0.5481307",
"0.5472703",
"0.54726505",
"0.5470715",
"0.5468555",
"0.5422848",
"0.5416624",
"0.54008263",
"0.5377003",
"0.53739846",
"0.536049",
"0.5354938",
"0.5338011",
"0.5338011",
"0.5338011",
"0.53308916",
"0.532518",
"0.531688",
"0.53138405",
"0.5309689",
"0.5299216",
"0.52817756",
"0.52804947",
"0.526648",
"0.52664167",
"0.52599293",
"0.5254854",
"0.5254854",
"0.5254854",
"0.5254854",
"0.5254854",
"0.5254854",
"0.5254854",
"0.52402496",
"0.5238498",
"0.52067286",
"0.520127",
"0.5184377",
"0.5178406",
"0.5172271",
"0.5165728",
"0.5144046",
"0.51430273",
"0.51389706",
"0.513437",
"0.51292866",
"0.5126992",
"0.5126089",
"0.5123376",
"0.5115217",
"0.5115217",
"0.5115217",
"0.5115217",
"0.5115217",
"0.5115217",
"0.5115217",
"0.5109636",
"0.5109124"
]
| 0.82252425 | 4 |
Sets the Spring bean ID for this bean. | public static void setBeanIdentifier(java.lang.String beanIdentifier) {
getService().setBeanIdentifier(beanIdentifier);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBeanIdentifier(java.lang.String beanIdentifier);",
"@Override\n public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",
"@Override\n public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",
"@Override\n public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",
"public void setBeanIdentifier(String beanIdentifier) {\n _beanIdentifier = beanIdentifier;\n }",
"@Override\r\n public void setBeanIdentifier(java.lang.String beanIdentifier) {\r\n _contentHolderService.setBeanIdentifier(beanIdentifier);\r\n }",
"@Override\n public void setBeanIdentifier(java.lang.String beanIdentifier) {\n _muQuxianQujianLocalService.setBeanIdentifier(beanIdentifier);\n }",
"@Override\n public void setBeanIdentifier(java.lang.String beanIdentifier) {\n _staffMemberLocalService.setBeanIdentifier(beanIdentifier);\n }",
"@Override\n public void setBeanIdentifier(java.lang.String beanIdentifier) {\n _marksService.setBeanIdentifier(beanIdentifier);\n }",
"@Override\n\tpublic void setBeanIdentifier(java.lang.String beanIdentifier) {\n\t\t_vanBanPhapQuyLocalService.setBeanIdentifier(beanIdentifier);\n\t}",
"public static void setBeanIdentifier(java.lang.String beanIdentifier) {\n getService().setBeanIdentifier(beanIdentifier);\n }",
"public static void setBeanIdentifier(java.lang.String beanIdentifier) {\n getService().setBeanIdentifier(beanIdentifier);\n }",
"public static void setBeanIdentifier(java.lang.String beanIdentifier) {\n getService().setBeanIdentifier(beanIdentifier);\n }",
"public static void setBeanIdentifier(java.lang.String beanIdentifier) {\n getService().setBeanIdentifier(beanIdentifier);\n }",
"public static void setBeanIdentifier(java.lang.String beanIdentifier) {\n getService().setBeanIdentifier(beanIdentifier);\n }",
"public static void setBeanIdentifier(java.lang.String beanIdentifier) {\n getService().setBeanIdentifier(beanIdentifier);\n }",
"@Override\n\tpublic void setBeanIdentifier(java.lang.String beanIdentifier) {\n\t\t_userSyncLocalService.setBeanIdentifier(beanIdentifier);\n\t}",
"@Override\n public void setBeanIdentifier(java.lang.String beanIdentifier) {\n _balloonUserTrackingLocalService.setBeanIdentifier(beanIdentifier);\n }",
"@Override\n\tpublic void setBeanIdentifier(java.lang.String beanIdentifier) {\n\t\t_surveyLocalService.setBeanIdentifier(beanIdentifier);\n\t}",
"@Override\n\tpublic void setBeanIdentifier(java.lang.String beanIdentifier) {\n\t\t_kpiEntryLocalService.setBeanIdentifier(beanIdentifier);\n\t}",
"public void setBeanIdentifier(java.lang.String beanIdentifier) {\n _examConfigLocalService.setBeanIdentifier(beanIdentifier);\n }",
"public final void setBean(String bean) {\n this.bean = bean;\n }",
"@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"@Override\n\tpublic void setBeanIdentifier(java.lang.String beanIdentifier) {\n\t\t_circulationRuleLocalService.setBeanIdentifier(beanIdentifier);\n\t}",
"public String getBeanIdentifier() {\n return _beanIdentifier;\n }",
"public void setBeanIdentifier(java.lang.String beanIdentifier) {\n\t\t_preschoolParentLocalService.setBeanIdentifier(beanIdentifier);\n\t}",
"public void setBeanIdentifier(java.lang.String beanIdentifier) {\n\t\t_primarySchoolStudentLocalService.setBeanIdentifier(beanIdentifier);\n\t}",
"void setId(int id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _vanBanPhapQuyLocalService.getBeanIdentifier();\n\t}",
"public void setId(int id) {\r\n this.id = id;\r\n }",
"public void setId(int id) {\r\n this.id = id;\r\n }",
"public void setId(int id) {\r\n this.id = id;\r\n }",
"public void setId(int id) {\r\n this.id = id;\r\n }",
"@Override\n public java.lang.String getBeanIdentifier() {\n return _staffMemberLocalService.getBeanIdentifier();\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id)\n {\n this.id = id;\n }",
"public void setId(int id)\n {\n this.id = id;\n }",
"public void setId(String id) {\n }",
"@Override\n public void setId(int id) {\n this.id = id;\n }",
"public void setServiceID(int value) {\n this.serviceID = value;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public java.lang.String getBeanIdentifier();",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public void setId(String id) {\r\n this.id = id;\r\n }",
"public void setId(String id) {\r\n\t\tsId = id;\r\n\t}",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }",
"public void setId(Integer id) {\r\n this.id = id;\r\n }"
]
| [
"0.73001695",
"0.6894381",
"0.6894381",
"0.6894381",
"0.664812",
"0.6621329",
"0.6578381",
"0.65493035",
"0.6548348",
"0.6495965",
"0.64489466",
"0.64489466",
"0.64489466",
"0.64489466",
"0.64489466",
"0.64489466",
"0.63313663",
"0.63125855",
"0.6295864",
"0.62330645",
"0.6219037",
"0.61274177",
"0.6109369",
"0.6109369",
"0.6109369",
"0.60192",
"0.599707",
"0.5901238",
"0.5819309",
"0.57640964",
"0.5643497",
"0.5643497",
"0.5627442",
"0.5613183",
"0.55945885",
"0.55945885",
"0.55945885",
"0.55945885",
"0.55896795",
"0.5584884",
"0.5577356",
"0.5577356",
"0.5577356",
"0.55728436",
"0.55728436",
"0.55700755",
"0.5560677",
"0.5550398",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5529666",
"0.5525108",
"0.55248475",
"0.55248475",
"0.55248475",
"0.55248475",
"0.55248475",
"0.5522597",
"0.55197334",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145",
"0.5519145"
]
| 0.636182 | 19 |
Created by titam on 02/11/16. | public interface OUTPUT_RESULTSDao {
List<OUTPUT_RESULTS> getAllOutputReults();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void kk12() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public void mo4359a() {\n }",
"@Override\n public void init() {\n\n }",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private void init() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\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 init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {\n }",
"private void strin() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void init() {}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo21877s() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void init() {\n\t}",
"public void method_4270() {}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n void init() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public abstract void mo70713b();",
"public void mo21779D() {\n }",
"public void mo12930a() {\n }",
"public void m23075a() {\n }",
"@Override\n protected void getExras() {\n }",
"public void mo21878t() {\n }",
"protected void mo6255a() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void mo6081a() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"private void init() {\n\n\n\n }",
"public void mo21825b() {\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 }"
]
| [
"0.6097675",
"0.60542995",
"0.6030543",
"0.5952136",
"0.59280133",
"0.59177953",
"0.59177953",
"0.5877156",
"0.58749014",
"0.5858086",
"0.5852595",
"0.58200985",
"0.5816794",
"0.5811466",
"0.5782288",
"0.5777836",
"0.5776908",
"0.5767775",
"0.575923",
"0.57572037",
"0.57572037",
"0.57572037",
"0.57572037",
"0.57572037",
"0.5750611",
"0.5744431",
"0.571465",
"0.5711331",
"0.57060957",
"0.5704266",
"0.56997186",
"0.56778187",
"0.5676084",
"0.56676686",
"0.5623634",
"0.56220293",
"0.5620412",
"0.5620412",
"0.56090873",
"0.56070554",
"0.5600904",
"0.55972046",
"0.55972046",
"0.5587155",
"0.5587155",
"0.5587155",
"0.5585866",
"0.5578378",
"0.55636096",
"0.5560687",
"0.5560687",
"0.5560687",
"0.55577517",
"0.55577517",
"0.55577517",
"0.55456674",
"0.5543879",
"0.5535993",
"0.55355084",
"0.55339503",
"0.55266994",
"0.5521464",
"0.55119383",
"0.5511325",
"0.5511159",
"0.55092555",
"0.55092555",
"0.55092555",
"0.55092555",
"0.55092555",
"0.55092555",
"0.55092555",
"0.55043113",
"0.5495263",
"0.5493067",
"0.5493067",
"0.5489002",
"0.54882",
"0.5487552",
"0.54755455",
"0.54643875",
"0.5458347",
"0.5452962",
"0.5449485",
"0.54489535",
"0.5442162",
"0.5442045",
"0.5424672",
"0.5423084",
"0.5420283",
"0.54195815",
"0.5417298",
"0.5413246",
"0.5411577",
"0.54088914",
"0.5404115",
"0.5402422",
"0.5402422",
"0.5402422",
"0.5402422",
"0.5402422"
]
| 0.0 | -1 |
Constructs an OleAccountFilterEvent with the given errorPathPrefix, document. | public OleAccountFilterEvent(String errorPathPrefix, Document document) {
super("Accounting Details of" + getDocumentId(document), errorPathPrefix, document);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OleAccountFilterEvent(Document document, String chartOfAccountsCode,\r\n String accountNumber, String objectCode) {\r\n this(\"\", document);\r\n this.accountNumber = accountNumber;\r\n this.chartOfAccountsCode = chartOfAccountsCode;\r\n this.objectCode = objectCode;\r\n\r\n }",
"public G_DocumentError() {}",
"public DocumentEvent() {}",
"public NamespaceHelper(String _namespaceUri, String _prefix, Document _document)\n {\n Validate.notNull(_namespaceUri);\n Validate.notNull(_document);\n\n this.namespaceUri = _namespaceUri;\n this.prefix = _prefix;\n this.document = _document;\n }",
"public ContentErrorEvent() {}",
"private void addAOCAndCOCombinationError(Event event, Reporter reporter, Program program) {\n if (hasNoAttributeOptionComboSet(event)) {\n reporter.addError(\n event,\n ValidationCode.E1117,\n program.getCategoryCombo(),\n event.getAttributeCategoryOptions().stream()\n .map(MetadataIdentifier::getIdentifierOrAttributeValue)\n .collect(Collectors.toSet())\n .toString());\n } else {\n reporter.addError(\n event,\n ValidationCode.E1117,\n event.getAttributeOptionCombo(),\n event.getAttributeCategoryOptions().stream()\n .map(MetadataIdentifier::getIdentifierOrAttributeValue)\n .collect(Collectors.toSet())\n .toString());\n }\n }",
"public NamespaceResolver(Document document) {\n sourceDocument = document;\n }",
"private Builder(com.opentext.bn.converters.avro.entity.DocumentEvent other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.businessDocumentId)) {\n this.businessDocumentId = data().deepCopy(fields()[0].schema(), other.businessDocumentId);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.containingParentId)) {\n this.containingParentId = data().deepCopy(fields()[1].schema(), other.containingParentId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.containingParentType)) {\n this.containingParentType = data().deepCopy(fields()[2].schema(), other.containingParentType);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.containingParentLevel)) {\n this.containingParentLevel = data().deepCopy(fields()[3].schema(), other.containingParentLevel);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.controlNumber)) {\n this.controlNumber = data().deepCopy(fields()[4].schema(), other.controlNumber);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.controlNumberLevel1)) {\n this.controlNumberLevel1 = data().deepCopy(fields()[5].schema(), other.controlNumberLevel1);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.controlNumberLevel2)) {\n this.controlNumberLevel2 = data().deepCopy(fields()[6].schema(), other.controlNumberLevel2);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.contentKeys)) {\n this.contentKeys = data().deepCopy(fields()[7].schema(), other.contentKeys);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.documentId)) {\n this.documentId = data().deepCopy(fields()[8].schema(), other.documentId);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.documentStandard)) {\n this.documentStandard = data().deepCopy(fields()[9].schema(), other.documentStandard);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.documentStandardVersion)) {\n this.documentStandardVersion = data().deepCopy(fields()[10].schema(), other.documentStandardVersion);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.documentType)) {\n this.documentType = data().deepCopy(fields()[11].schema(), other.documentType);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.envelopeVersion)) {\n this.envelopeVersion = data().deepCopy(fields()[12].schema(), other.envelopeVersion);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.eventId)) {\n this.eventId = data().deepCopy(fields()[13].schema(), other.eventId);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.eventTimestamp)) {\n this.eventTimestamp = data().deepCopy(fields()[14].schema(), other.eventTimestamp);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.fileInfo)) {\n this.fileInfo = data().deepCopy(fields()[15].schema(), other.fileInfo);\n fieldSetFlags()[15] = true;\n }\n this.fileInfoBuilder = null;\n if (isValidValue(fields()[16], other.introspectionSource)) {\n this.introspectionSource = data().deepCopy(fields()[16].schema(), other.introspectionSource);\n fieldSetFlags()[16] = true;\n }\n if (isValidValue(fields()[17], other.introspectionType)) {\n this.introspectionType = data().deepCopy(fields()[17].schema(), other.introspectionType);\n fieldSetFlags()[17] = true;\n }\n if (isValidValue(fields()[18], other.processId)) {\n this.processId = data().deepCopy(fields()[18].schema(), other.processId);\n fieldSetFlags()[18] = true;\n }\n if (isValidValue(fields()[19], other.receiverAddress)) {\n this.receiverAddress = data().deepCopy(fields()[19].schema(), other.receiverAddress);\n fieldSetFlags()[19] = true;\n }\n if (isValidValue(fields()[20], other.senderAddress)) {\n this.senderAddress = data().deepCopy(fields()[20].schema(), other.senderAddress);\n fieldSetFlags()[20] = true;\n }\n if (isValidValue(fields()[21], other.sentDate)) {\n this.sentDate = data().deepCopy(fields()[21].schema(), other.sentDate);\n fieldSetFlags()[21] = true;\n }\n if (isValidValue(fields()[22], other.sentTime)) {\n this.sentTime = data().deepCopy(fields()[22].schema(), other.sentTime);\n fieldSetFlags()[22] = true;\n }\n if (isValidValue(fields()[23], other.taskId)) {\n this.taskId = data().deepCopy(fields()[23].schema(), other.taskId);\n fieldSetFlags()[23] = true;\n }\n if (isValidValue(fields()[24], other.transactionId)) {\n this.transactionId = data().deepCopy(fields()[24].schema(), other.transactionId);\n fieldSetFlags()[24] = true;\n }\n if (isValidValue(fields()[25], other.senderAddressEnvelopeLevel1)) {\n this.senderAddressEnvelopeLevel1 = data().deepCopy(fields()[25].schema(), other.senderAddressEnvelopeLevel1);\n fieldSetFlags()[25] = true;\n }\n if (isValidValue(fields()[26], other.receiverAddressEnvelopeLevel1)) {\n this.receiverAddressEnvelopeLevel1 = data().deepCopy(fields()[26].schema(), other.receiverAddressEnvelopeLevel1);\n fieldSetFlags()[26] = true;\n }\n if (isValidValue(fields()[27], other.functionalCodeEnvelopeLevel1)) {\n this.functionalCodeEnvelopeLevel1 = data().deepCopy(fields()[27].schema(), other.functionalCodeEnvelopeLevel1);\n fieldSetFlags()[27] = true;\n }\n if (isValidValue(fields()[28], other.senderAddressEnvelopeLevel2)) {\n this.senderAddressEnvelopeLevel2 = data().deepCopy(fields()[28].schema(), other.senderAddressEnvelopeLevel2);\n fieldSetFlags()[28] = true;\n }\n if (isValidValue(fields()[29], other.receiverAddressEnvelopeLevel2)) {\n this.receiverAddressEnvelopeLevel2 = data().deepCopy(fields()[29].schema(), other.receiverAddressEnvelopeLevel2);\n fieldSetFlags()[29] = true;\n }\n if (isValidValue(fields()[30], other.functionalCodeEnvelopeLevel2)) {\n this.functionalCodeEnvelopeLevel2 = data().deepCopy(fields()[30].schema(), other.functionalCodeEnvelopeLevel2);\n fieldSetFlags()[30] = true;\n }\n }",
"private void handleError( boolean success, LdapFilterToken token, LdapFilter filter )\n {\n if ( !success )\n {\n filter.addOtherToken( new LdapFilterToken( LdapFilterToken.ERROR, token.getValue(), token.getOffset() ) );\n }\n }",
"public ExceptionFilter$$anonfun$doFilter$10(ExceptionFilter $outer, ObjectRef cause$1) {}",
"protected static Function<Throwable, String> prefix(final String prefix) {\n return rootCause->prefix + \": \" + rootCause.getMessage();\n }",
"public EventMessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public LoggingSAXErrorHandler(Logger l)\n {\n setLogger(l);\n }",
"void addDocumentFilter(DocumentFilter documentFilter) {\r\n\t\t((AbstractDocument) document).setDocumentFilter(documentFilter);\r\n\t}",
"public static com.opentext.bn.converters.avro.entity.DocumentEvent.Builder newBuilder(com.opentext.bn.converters.avro.entity.DocumentEvent other) {\n return new com.opentext.bn.converters.avro.entity.DocumentEvent.Builder(other);\n }",
"public SVGOMFETurbulenceElement(String prefix, AbstractDocument owner) {\n\t\tsuper(prefix, owner);\n\t\tinitializeLiveAttributes();\n\t}",
"public LogFilter() {}",
"public AccountTypeAlreadyExistException(Account akun){\n super(\"Unable to create duplicate account of type \");\n this.akun=akun;\n }",
"public AccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private EventAuditDO createEventAuditRecord(ReasonBO reasonBO, Integer eventCode)throws Exception{\n\t\ttry{\n\t\tEventAuditDO eventAuditBO = new EventAuditDO();\n\t\tAuditEntry auditEntry = new AuditEntry(); \n\t\tauditEntry.setCreateUsername(reasonBO.getCurrentUsername());\n\t\t\n\t\tStringBuffer comment = new StringBuffer();\n\t\t\n\t\teventAuditBO.setEventCode(eventCode);\t \n\t\t\n\t\t\n\t\t\n\t\teventAuditBO.setRefType1Code(Constants.EventRefTypeCode.REFERENCE_TABLE_NAME);\n\t\teventAuditBO.setRefValue1(\" roms_reason\");\n\t\t\t\n\t\tcomment.append(\"Reason Description: \" + reasonBO.getReasonDescription());\n\t\n\t\tcomment.append(\"; Reason Type: \" + reasonBO.getTypeDescription());\n\t\n\t\teventAuditBO.setComment(comment.toString());\n\t\t\n\t\teventAuditBO.setAuditEntry(auditEntry);\n\t\t\n\t\treturn eventAuditBO;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new Exception();\n\t\t}\n\t}",
"public void setAccountFilter(Filter<Account> accountFilter) {\n this.accountFilter = accountFilter;\n }",
"private static com.unboundid.ldap.sdk.Filter create(java.lang.String r30, int r31, int r32, int r33) {\n /*\n r1 = r30\n r0 = r31\n r2 = r32\n r3 = r33\n r4 = 50\n if (r3 > r4) goto L_0x0622\n if (r0 >= r2) goto L_0x0614\n char r4 = r30.charAt(r31)\n r5 = 41\n r6 = 40\n r7 = 2\n r8 = 0\n r9 = 1\n if (r4 != r6) goto L_0x0042\n char r4 = r1.charAt(r2)\n if (r4 != r5) goto L_0x0026\n int r4 = r0 + 1\n int r10 = r2 + -1\n goto L_0x0046\n L_0x0026:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_OPEN_WITHOUT_CLOSE\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n java.lang.Integer r0 = java.lang.Integer.valueOf(r32)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r1\n L_0x0042:\n if (r0 != 0) goto L_0x05fb\n r4 = r0\n r10 = r2\n L_0x0046:\n char r11 = r1.charAt(r4)\n r12 = 33\n r13 = -87\n if (r11 == r12) goto L_0x05ad\n r12 = 38\n if (r11 == r12) goto L_0x0599\n if (r11 == r6) goto L_0x0581\n r12 = 92\n r15 = 58\n r14 = 61\n if (r11 == r15) goto L_0x041b\n r5 = 124(0x7c, float:1.74E-43)\n if (r11 == r5) goto L_0x0408\n com.unboundid.ldap.sdk.Filter[] r3 = NO_FILTERS\n r5 = r4\n L_0x0065:\n if (r5 > r10) goto L_0x0161\n int r6 = r5 + 1\n char r5 = r1.charAt(r5)\n if (r5 == r15) goto L_0x015a\n r11 = 126(0x7e, float:1.77E-43)\n if (r5 == r11) goto L_0x0111\n switch(r5) {\n case 60: goto L_0x00c7;\n case 61: goto L_0x00c2;\n case 62: goto L_0x0078;\n default: goto L_0x0076;\n }\n L_0x0076:\n r5 = r6\n goto L_0x0065\n L_0x0078:\n r5 = -91\n int r11 = r6 + -1\n if (r6 > r10) goto L_0x00ac\n int r15 = r6 + 1\n char r6 = r1.charAt(r6)\n if (r6 != r14) goto L_0x008b\n r5 = 1\n r6 = -91\n goto L_0x0165\n L_0x008b:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_GT\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n int r15 = r15 - r9\n char r0 = r1.charAt(r15)\n java.lang.Character r0 = java.lang.Character.valueOf(r0)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x00ac:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_END_AFTER_GT\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x00c2:\n int r11 = r6 + -1\n r15 = r6\n goto L_0x0163\n L_0x00c7:\n r5 = -90\n int r11 = r6 + -1\n if (r6 > r10) goto L_0x00fb\n int r15 = r6 + 1\n char r6 = r1.charAt(r6)\n if (r6 != r14) goto L_0x00da\n r5 = 1\n r6 = -90\n goto L_0x0165\n L_0x00da:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_LT\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n int r15 = r15 - r9\n char r0 = r1.charAt(r15)\n java.lang.Character r0 = java.lang.Character.valueOf(r0)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x00fb:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_END_AFTER_LT\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0111:\n r5 = -88\n int r11 = r6 + -1\n if (r6 > r10) goto L_0x0144\n int r15 = r6 + 1\n char r6 = r1.charAt(r6)\n if (r6 != r14) goto L_0x0123\n r5 = 1\n r6 = -88\n goto L_0x0165\n L_0x0123:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_TILDE\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n int r15 = r15 - r9\n char r0 = r1.charAt(r15)\n java.lang.Character r0 = java.lang.Character.valueOf(r0)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x0144:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_END_AFTER_TILDE\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x015a:\n int r11 = r6 + -1\n r15 = r6\n r5 = 1\n r6 = -87\n goto L_0x0165\n L_0x0161:\n r11 = -1\n r15 = r5\n L_0x0163:\n r5 = 0\n r6 = 0\n L_0x0165:\n if (r11 <= r4) goto L_0x03f0\n java.lang.String r4 = r1.substring(r4, r11)\n if (r5 == 0) goto L_0x0249\n if (r6 != r13) goto L_0x0249\n if (r15 > r10) goto L_0x0233\n int r11 = r15 + 1\n char r13 = r1.charAt(r15)\n if (r13 != r14) goto L_0x017c\n r15 = r11\n goto L_0x0249\n L_0x017c:\n int r13 = r11 + -1\n L_0x017e:\n if (r11 > r10) goto L_0x018c\n int r15 = r11 + 1\n char r11 = r1.charAt(r11)\n if (r11 != r14) goto L_0x018a\n r11 = 1\n goto L_0x018e\n L_0x018a:\n r11 = r15\n goto L_0x017e\n L_0x018c:\n r15 = r11\n r11 = 0\n L_0x018e:\n if (r11 == 0) goto L_0x021d\n int r11 = r15 + -1\n java.lang.String r11 = r1.substring(r13, r11)\n java.lang.String r13 = com.unboundid.util.StaticUtils.toLowerCase(r11)\n java.lang.String r14 = \":\"\n boolean r14 = r11.endsWith(r14)\n if (r14 == 0) goto L_0x0207\n java.lang.String r14 = \"dn:\"\n boolean r14 = r13.equals(r14)\n if (r14 == 0) goto L_0x01ad\n r11 = 1\n goto L_0x024a\n L_0x01ad:\n java.lang.String r14 = \"dn:\"\n boolean r13 = r13.startsWith(r14)\n if (r13 == 0) goto L_0x01df\n r13 = 3\n int r14 = r11.length()\n int r14 = r14 - r9\n java.lang.String r11 = r11.substring(r13, r14)\n int r13 = r11.length()\n if (r13 == 0) goto L_0x01c9\n r14 = r11\n r11 = 1\n goto L_0x024b\n L_0x01c9:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x01df:\n int r13 = r11.length()\n int r13 = r13 - r9\n java.lang.String r11 = r11.substring(r8, r13)\n int r13 = r11.length()\n if (r13 == 0) goto L_0x01f1\n r14 = r11\n r11 = 0\n goto L_0x024b\n L_0x01f1:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0207:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_CANNOT_PARSE_MRID\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x021d:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_EQUALS\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0233:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_EQUALS\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0249:\n r11 = 0\n L_0x024a:\n r14 = 0\n L_0x024b:\n r13 = -93\n if (r15 <= r10) goto L_0x0260\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n r7.<init>()\n if (r5 != 0) goto L_0x0257\n goto L_0x0258\n L_0x0257:\n r13 = r6\n L_0x0258:\n com.unboundid.asn1.ASN1OctetString[] r5 = NO_SUB_ANY\n r6 = r5\n L_0x025b:\n r5 = 0\n r16 = 0\n goto L_0x03da\n L_0x0260:\n if (r15 != r10) goto L_0x02d8\n if (r5 == 0) goto L_0x029a\n char r5 = r1.charAt(r15)\n if (r5 == r12) goto L_0x027a\n switch(r5) {\n case 40: goto L_0x027a;\n case 41: goto L_0x027a;\n case 42: goto L_0x027a;\n default: goto L_0x026d;\n }\n L_0x026d:\n com.unboundid.asn1.ASN1OctetString r5 = new com.unboundid.asn1.ASN1OctetString\n int r7 = r15 + 1\n java.lang.String r7 = r1.substring(r15, r7)\n r5.<init>((java.lang.String) r7)\n r13 = r6\n goto L_0x02b4\n L_0x027a:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_IN_AV\n java.lang.Object[] r5 = new java.lang.Object[r7]\n char r1 = r1.charAt(r15)\n java.lang.Character r1 = java.lang.Character.valueOf(r1)\n r5[r8] = r1\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x029a:\n char r5 = r1.charAt(r15)\n if (r5 == r12) goto L_0x02b8\n switch(r5) {\n case 40: goto L_0x02b8;\n case 41: goto L_0x02b8;\n case 42: goto L_0x02af;\n default: goto L_0x02a3;\n }\n L_0x02a3:\n com.unboundid.asn1.ASN1OctetString r5 = new com.unboundid.asn1.ASN1OctetString\n int r6 = r15 + 1\n java.lang.String r6 = r1.substring(r15, r6)\n r5.<init>((java.lang.String) r6)\n goto L_0x02b4\n L_0x02af:\n r6 = -121(0xffffffffffffff87, float:NaN)\n r5 = 0\n r13 = -121(0xffffffffffffff87, float:NaN)\n L_0x02b4:\n com.unboundid.asn1.ASN1OctetString[] r6 = NO_SUB_ANY\n r7 = r5\n goto L_0x025b\n L_0x02b8:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_IN_AV\n java.lang.Object[] r5 = new java.lang.Object[r7]\n char r1 = r1.charAt(r15)\n java.lang.Character r1 = java.lang.Character.valueOf(r1)\n r5[r8] = r1\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x02d8:\n if (r5 != 0) goto L_0x02db\n goto L_0x02dc\n L_0x02db:\n r13 = r6\n L_0x02dc:\n java.util.ArrayList r6 = new java.util.ArrayList\n r6.<init>(r9)\n java.lang.StringBuilder r7 = new java.lang.StringBuilder\n int r16 = r10 - r15\n int r8 = r16 + 1\n r7.<init>(r8)\n r8 = r7\n r7 = r15\n r16 = 0\n L_0x02ee:\n if (r7 > r10) goto L_0x03aa\n int r9 = r7 + 1\n char r7 = r1.charAt(r7)\n if (r7 == r12) goto L_0x03a2\n switch(r7) {\n case 40: goto L_0x038a;\n case 41: goto L_0x0372;\n case 42: goto L_0x0301;\n default: goto L_0x02fb;\n }\n L_0x02fb:\n r8.append(r7)\n r7 = r9\n goto L_0x03a6\n L_0x0301:\n if (r5 != 0) goto L_0x035a\n int r7 = r9 + -1\n if (r7 != r15) goto L_0x0309\n r13 = 1\n goto L_0x0356\n L_0x0309:\n r7 = -92\n if (r13 != r7) goto L_0x0341\n int r7 = r8.length()\n if (r7 == 0) goto L_0x0329\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r8 = r8.toString()\n r7.<init>((java.lang.String) r8)\n r6.add(r7)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n int r7 = r10 - r9\n r13 = 1\n int r7 = r7 + r13\n r8.<init>(r7)\n goto L_0x0356\n L_0x0329:\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_DOUBLE_ASTERISK\n java.lang.Object[] r4 = new java.lang.Object[r13]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5 = 0\n r4[r5] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0341:\n r13 = 1\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r8 = r8.toString()\n r7.<init>((java.lang.String) r8)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n int r16 = r10 - r9\n int r12 = r16 + 1\n r8.<init>(r12)\n r16 = r7\n L_0x0356:\n r7 = r9\n r13 = -92\n goto L_0x03a6\n L_0x035a:\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_ASTERISK\n java.lang.Object[] r4 = new java.lang.Object[r13]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5 = 0\n r4[r5] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0372:\n r5 = 0\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CLOSE_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r13]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r9)\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x038a:\n r5 = 0\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_OPEN_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r13]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r9)\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x03a2:\n int r7 = readEscapedHexString(r1, r9, r10, r8)\n L_0x03a6:\n r12 = 92\n goto L_0x02ee\n L_0x03aa:\n r7 = -92\n if (r13 != r7) goto L_0x03be\n int r5 = r8.length()\n if (r5 <= 0) goto L_0x03be\n com.unboundid.asn1.ASN1OctetString r5 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r7 = r8.toString()\n r5.<init>((java.lang.String) r7)\n goto L_0x03bf\n L_0x03be:\n r5 = 0\n L_0x03bf:\n int r7 = r6.size()\n com.unboundid.asn1.ASN1OctetString[] r7 = new com.unboundid.asn1.ASN1OctetString[r7]\n java.lang.Object[] r6 = r6.toArray(r7)\n com.unboundid.asn1.ASN1OctetString[] r6 = (com.unboundid.asn1.ASN1OctetString[]) r6\n r7 = -92\n if (r13 != r7) goto L_0x03d1\n r7 = 0\n goto L_0x03da\n L_0x03d1:\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r8 = r8.toString()\n r7.<init>((java.lang.String) r8)\n L_0x03da:\n r20 = r3\n r22 = r4\n r26 = r5\n r25 = r6\n r23 = r7\n r28 = r11\n r19 = r13\n r27 = r14\n r24 = r16\n r21 = 0\n goto L_0x05ce\n L_0x03f0:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_ATTR_NAME\n r8 = 1\n java.lang.Object[] r4 = new java.lang.Object[r8]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5 = 0\n r4[r5] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0408:\n r8 = 1\n r5 = -95\n int r4 = r4 + r8\n int r3 = r3 + r8\n com.unboundid.ldap.sdk.Filter[] r3 = parseFilterComps(r1, r4, r10, r3)\n com.unboundid.asn1.ASN1OctetString[] r4 = NO_SUB_ANY\n r20 = r3\n r25 = r4\n r19 = -95\n goto L_0x05aa\n L_0x041b:\n r8 = 1\n com.unboundid.ldap.sdk.Filter[] r3 = NO_FILTERS\n com.unboundid.asn1.ASN1OctetString[] r9 = NO_SUB_ANY\n int r4 = r4 + r8\n r8 = r4\n L_0x0422:\n if (r8 > r10) goto L_0x042d\n char r11 = r1.charAt(r8)\n if (r11 == r15) goto L_0x042d\n int r8 = r8 + 1\n goto L_0x0422\n L_0x042d:\n if (r8 > r10) goto L_0x0569\n if (r8 == r4) goto L_0x0551\n int r11 = r8 + 1\n java.lang.String r4 = r1.substring(r4, r8)\n java.lang.String r8 = \"dn\"\n boolean r8 = r4.equalsIgnoreCase(r8)\n if (r8 == 0) goto L_0x04b7\n r4 = r11\n L_0x0440:\n if (r4 >= r10) goto L_0x044b\n char r8 = r1.charAt(r4)\n if (r8 == r15) goto L_0x044b\n int r4 = r4 + 1\n goto L_0x0440\n L_0x044b:\n if (r4 >= r10) goto L_0x049f\n java.lang.String r8 = r1.substring(r11, r4)\n int r11 = r8.length()\n if (r11 == 0) goto L_0x0487\n r11 = 1\n int r4 = r4 + r11\n if (r4 > r10) goto L_0x0465\n char r11 = r1.charAt(r4)\n if (r11 != r14) goto L_0x0465\n r11 = r8\n r7 = 1\n r8 = 1\n goto L_0x04c6\n L_0x0465:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r5 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_MRID\n java.lang.Object[] r6 = new java.lang.Object[r7]\n char r1 = r1.charAt(r4)\n java.lang.Character r1 = java.lang.Character.valueOf(r1)\n r4 = 0\n r6[r4] = r1\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r7 = 1\n r6[r7] = r0\n java.lang.String r0 = r5.get(r6)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x0487:\n r4 = 0\n r7 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r4] = r0\n java.lang.String r0 = r3.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x049f:\n r4 = 0\n r7 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_COLON_AFTER_MRID\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r4] = r0\n java.lang.String r0 = r3.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x04b7:\n r7 = 1\n if (r11 > r10) goto L_0x0539\n char r8 = r1.charAt(r11)\n if (r8 != r14) goto L_0x0539\n r8 = 0\n r29 = r11\n r11 = r4\n r4 = r29\n L_0x04c6:\n int r4 = r4 + r7\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n int r14 = r10 - r4\n int r14 = r14 + r7\n r12.<init>(r14)\n L_0x04cf:\n if (r4 > r10) goto L_0x051a\n char r7 = r1.charAt(r4)\n r14 = 92\n if (r7 != r14) goto L_0x04e0\n int r4 = r4 + 1\n int r4 = readEscapedHexString(r1, r4, r10, r12)\n goto L_0x04cf\n L_0x04e0:\n if (r7 == r6) goto L_0x0502\n if (r7 == r5) goto L_0x04ea\n r12.append(r7)\n int r4 = r4 + 1\n goto L_0x04cf\n L_0x04ea:\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CLOSE_PAREN\n r3 = 1\n java.lang.Object[] r3 = new java.lang.Object[r3]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r5 = 0\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x0502:\n r3 = 1\n r5 = 0\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_OPEN_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r3]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x051a:\n com.unboundid.asn1.ASN1OctetString r4 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r5 = r12.toString()\n r4.<init>((java.lang.String) r5)\n r20 = r3\n r23 = r4\n r28 = r8\n r25 = r9\n r27 = r11\n r19 = -87\n r21 = 0\n r22 = 0\n r24 = 0\n r26 = 0\n goto L_0x05ce\n L_0x0539:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_EQUAL_AFTER_MRID\n r5 = 1\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r6 = 0\n r4[r6] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0551:\n r5 = 1\n r6 = 0\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r6] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0569:\n r5 = 1\n r6 = 0\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_COLON_AFTER_MRID\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r6] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0581:\n r5 = 1\n r6 = 0\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_OPEN_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r5]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r3[r6] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x0599:\n r5 = 1\n r6 = -96\n int r4 = r4 + r5\n int r3 = r3 + r5\n com.unboundid.ldap.sdk.Filter[] r3 = parseFilterComps(r1, r4, r10, r3)\n com.unboundid.asn1.ASN1OctetString[] r4 = NO_SUB_ANY\n r20 = r3\n r25 = r4\n r19 = -96\n L_0x05aa:\n r21 = 0\n goto L_0x05c2\n L_0x05ad:\n r5 = 1\n r6 = -94\n com.unboundid.ldap.sdk.Filter[] r7 = NO_FILTERS\n int r4 = r4 + r5\n int r3 = r3 + r5\n com.unboundid.ldap.sdk.Filter r3 = create(r1, r4, r10, r3)\n com.unboundid.asn1.ASN1OctetString[] r4 = NO_SUB_ANY\n r21 = r3\n r25 = r4\n r20 = r7\n r19 = -94\n L_0x05c2:\n r22 = 0\n r23 = 0\n r24 = 0\n r26 = 0\n r27 = 0\n r28 = 0\n L_0x05ce:\n if (r0 != 0) goto L_0x05ed\n com.unboundid.ldap.sdk.Filter r12 = new com.unboundid.ldap.sdk.Filter\n r0 = r12\n r1 = r30\n r2 = r19\n r3 = r20\n r4 = r21\n r5 = r22\n r6 = r23\n r7 = r24\n r8 = r25\n r9 = r26\n r10 = r27\n r11 = r28\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)\n return r12\n L_0x05ed:\n com.unboundid.ldap.sdk.Filter r3 = new com.unboundid.ldap.sdk.Filter\n r4 = 1\n int r2 = r2 + r4\n java.lang.String r18 = r1.substring(r0, r2)\n r17 = r3\n r17.<init>(r18, r19, r20, r21, r22, r23, r24, r25, r26, r27, r28)\n return r3\n L_0x05fb:\n com.unboundid.ldap.sdk.LDAPException r3 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r4 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r5 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_MISSING_PARENTHESES\n r6 = 1\n java.lang.Object[] r7 = new java.lang.Object[r6]\n int r2 = r2 + r6\n java.lang.String r0 = r1.substring(r0, r2)\n r1 = 0\n r7[r1] = r0\n java.lang.String r0 = r5.get(r7)\n r3.<init>((com.unboundid.ldap.sdk.ResultCode) r4, (java.lang.String) r0)\n throw r3\n L_0x0614:\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_TOO_SHORT\n java.lang.String r2 = r2.get()\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x0622:\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_TOO_DEEP\n java.lang.String r2 = r2.get()\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.ldap.sdk.Filter.create(java.lang.String, int, int, int):com.unboundid.ldap.sdk.Filter\");\n }",
"private Builder(com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.contentFileId)) {\n this.contentFileId = data().deepCopy(fields()[0].schema(), other.contentFileId);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.documentId)) {\n this.documentId = data().deepCopy(fields()[1].schema(), other.documentId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.envelopeId)) {\n this.envelopeId = data().deepCopy(fields()[2].schema(), other.envelopeId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.errorId)) {\n this.errorId = data().deepCopy(fields()[3].schema(), other.errorId);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.errorInfo)) {\n this.errorInfo = data().deepCopy(fields()[4].schema(), other.errorInfo);\n fieldSetFlags()[4] = true;\n }\n if (other.hasErrorInfoBuilder()) {\n this.errorInfoBuilder = com.opentext.bn.converters.avro.entity.ErrorInfo.newBuilder(other.getErrorInfoBuilder());\n }\n if (isValidValue(fields()[5], other.errorLevel)) {\n this.errorLevel = data().deepCopy(fields()[5].schema(), other.errorLevel);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.offset)) {\n this.offset = data().deepCopy(fields()[6].schema(), other.offset);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.position)) {\n this.position = data().deepCopy(fields()[7].schema(), other.position);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.processId)) {\n this.processId = data().deepCopy(fields()[8].schema(), other.processId);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.taskId)) {\n this.taskId = data().deepCopy(fields()[9].schema(), other.taskId);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.transactionId)) {\n this.transactionId = data().deepCopy(fields()[10].schema(), other.transactionId);\n fieldSetFlags()[10] = true;\n }\n }",
"private Builder() {\n super(graphene.model.idl.G_DocumentError.SCHEMA$);\n }",
"private RegisteredPrefix registerPrefix(ContentName filter, Integer registrationFlags) throws CCNDaemonException {\n ForwardingEntry entry;\n if (null == registrationFlags) {\n entry = _prefixMgr.selfRegisterPrefix(filter);\n } else {\n entry = _prefixMgr.selfRegisterPrefix(filter, null, registrationFlags, Integer.MAX_VALUE);\n }\n RegisteredPrefix newPrefix = new RegisteredPrefix(entry);\n _registeredPrefixes.put(filter, newPrefix);\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.FINE)) Log.fine(Log.FAC_NETMANAGER, \"registerPrefix for {0}: entry.lifetime: {1} entry.faceID: {2}\", filter, entry.getLifetime(), entry.getFaceID());\n _registeredPrefixes.notifyAll();\n return newPrefix;\n }",
"private ErrorFactory() {\r\n\t}",
"public void testCreateModificationUserFilter3() {\r\n try {\r\n instance.createModificationUserFilter(\" \", StringMatchType.STARTS_WITH);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n //good\r\n }\r\n }",
"public FileFilter() {\n this.filterExpression = \"\";\n }",
"public ExtendedDocumentEvent(ITextDocument doc, int offset, int length, String text, String replacedText) {\r\n\t\tsuper(doc,offset,length,text);\r\n\t\tthis.replacedText = replacedText;\r\n\t}",
"private JREFDocument validateOriginPath(JREFDocument document) throws Exception{\r\n\t\ttry {\r\n\t\t\tif(document.getOriginalFilePath().toUpperCase().indexOf(\"HTTP\")==0){\r\n\t\t\t\tString name = this.frameworkName;\r\n\t\t\t\tif (document.getFinalFilePath().lastIndexOf(\".\") != -1) \r\n\t\t\t\t\tname=name+\".\"+document.getFinalFilePath().substring(document.getFinalFilePath().lastIndexOf(\".\") + 1);\r\n\t\t\t\tFile dir = new File(this.temporalFilesFolderRoute);\r\n\t\t\t\tif (!dir.exists()) if (!dir.mkdir()) throw new Exception(\"Error: Could not create destination folder\");\r\n\t\t\t\tFile file = new File(this.temporalFilesFolderRoute + name);\r\n\t\t\t\tURLConnection connection = new URL(document.getOriginalFilePath()).openConnection();\r\n\t\t\t\tconnection.connect();\t\r\n\t\t\t\tInputStream in = connection.getInputStream();\r\n\t\t\t\tOutputStream out = new FileOutputStream(file);\r\n\t\t\t\t\tint line = 0;\r\n\t\t\t\t\twhile (line != -1) {\r\n\t\t\t\t\t\tline = in.read();\r\n\t\t\t\t\t\tif (line != -1) out.write(line);\r\n\t\t\t\t\t}\r\n\t\t\t\tout.close();\r\n\t\t\t\tin.close();\r\n\t\t\t\tdocument.setOriginalFilePath(temporalFilesFolderRoute+name);\r\n\t\t\t}\r\n\t\t\treturn document;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new Exception(\"validateOriginPath Error: \"+e);\r\n\t\t}\r\n\t}",
"@org.junit.Test\n public void compElemBadName6() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace prefix is 'xmlns' Mary Holstege :) element { fn:QName(\\\"http://example.com/some-uri\\\",\\\"xmlns:error\\\") } {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }",
"public void add(XMLEvent event)\r\n throws XMLStreamException\r\n {\r\n if (!stripExistingQ3 || (!insideOldQ3AnalysisResult && !insideOldQ3AnalysisSummary))\r\n {\r\n//if (event.isStartElement()) System.err.println(\"adding Start \" + event.asStartElement().getName().getLocalPart());\r\n//else if (event.isEndElement()) System.err.println(\"adding End \" + event.asEndElement().getName().getLocalPart());\r\n//else System.err.println(\"*********adding unknown event \" + event.getEventType() + \", compare \" + XMLStreamConstants.START_ELEMENT +\",\"+ XMLStreamConstants.END_ELEMENT+\",\"+ XMLStreamConstants.CHARACTERS+\",\"+ XMLStreamConstants.ATTRIBUTE+\",\"+ XMLStreamConstants.NAMESPACE+\",\"+ XMLStreamConstants.PROCESSING_INSTRUCTION+\",\"+ XMLStreamConstants.COMMENT+\",\"+XMLStreamConstants.START_DOCUMENT+\",\"+ XMLStreamConstants.END_DOCUMENT+\",\"+ XMLStreamConstants.DTD);\r\n\r\n //dhmay adding a workaround here to avoid a nullpointerexception from super.add(),\r\n //specifically doWriteDefaultNs. Namespace can't be null, or wstx falls apart. This is apparently\r\n //addressed in version 3.2.3, so we can take out this hack when we upgrade.\r\n\r\n /**** mfitzgib 090326 -\r\n This work-around emits xmlns=\"\" namespaces on each\r\n start tag and doesn't seem to be needed even with\r\n Woodstox 3.2.1; delete this block when we upgrade\r\n to 3.2.8 and are feeling comparitively comfortable.\r\n if (event.isStartElement())\r\n {\r\n SimpleStartElement newStart = new SimpleStartElement(event.asStartElement().getName().getLocalPart());\r\n\r\n // getAttributes returns a non-genericized Iterator; OK\r\n @SuppressWarnings(\"unchecked\")\r\n Iterator<Attribute> attIter = event.asStartElement().getAttributes();\r\n\r\n boolean alreadyHasNS = false;\r\n while (attIter.hasNext())\r\n {\r\n Attribute attr = attIter.next();\r\n if (attr.getName().getLocalPart().equals(\"xmlns\"))\r\n {\r\n alreadyHasNS = true;\r\n break;\r\n }\r\n newStart.addAttribute(attr.getName().getLocalPart(), attr.getValue());\r\n }\r\n if (!alreadyHasNS)\r\n {\r\n newStart.addAttribute(\"xmlns\",\"\");\r\n event = newStart.getEvent();\r\n }\r\n }\r\n ****/\r\n super.add(event);\r\n }\r\n else\r\n {\r\n// System.err.println(\"SKIPPING \" + event.getEventType());\r\n// if (event.isStartElement())\r\n// System.err.println(\" (\" + event.asStartElement().getName() + \")\");\r\n }\r\n }",
"public void testCreateModificationUserFilter2() {\r\n try {\r\n instance.createModificationUserFilter(null, StringMatchType.STARTS_WITH);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n //good\r\n }\r\n }",
"public RemocaoDocumentoException(){\n\t\tsuper(\"Não é permitida a remoção deste tipo de documento!\");\n\t}",
"public FileFilter(String expression) {\n this.filterExpression = expression;\n }",
"protected Document createInvocationExceptionDocument(\n\t\t\tMessageExchangeInvocationException exception) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument doc = builder.newDocument();\n\t\t\tElement root = doc.createElementNS(\n\t\t\t\t\tEngineConstants.DEFAULT_NAMESPACE, \"InvocationException\");\n\t\t\tString message = exception.getMessage();\n\t\t\troot.setTextContent(message);\n\t\t\tdoc.appendChild(root);\n\t\t\treturn doc;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tlogger.error(\"Can't create exception document\", e);\n\t\t\t// then do nothings\n\t\t}\n\t\treturn null;\n\t}",
"Constructor<? extends RefException> getExceptionConstructor(\n String qualifiedExceptionName,\n String qualifiedPackageName\n );",
"public DocumentModifiedListener(DocumentTab document) {\n this.document = document;\n }",
"public EventSubSystem(String packagePrefix)\n {\n this.packagePrefix = packagePrefix;\n }",
"@org.junit.Test\n public void compElemBadName3() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace URI is 'http://www.w3.org/2000/xmlns/' Mary Holstege :) element { fn:QName(\\\"http://www.w3.org/2000/xmlns/\\\",\\\"foo:error\\\")} {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }",
"private ModelValidationException constructClassException (String className, \n\t\tObject relatedField, String keyBase)\n\t{\n\t\treturn constructClassException(ModelValidationException.ERROR, \n\t\t\tclassName, relatedField, keyBase);\n\t}",
"private void addAuthentication(BasicXmlDocument document){\r\n\t\tElement auth_el = document.createElement(AuthNetField.ELEMENT_MERCHANT_AUTHENTICATION.getFieldName());\r\n\t\tElement name_el = document.createElement(AuthNetField.ELEMENT_NAME.getFieldName());\r\n\t\tname_el.appendChild(document.getDocument().createTextNode(merchant.getLogin()));\r\n\t\tElement trans_key = document.createElement(AuthNetField.ELEMENT_TRANSACTION_KEY.getFieldName());\r\n\t\ttrans_key.appendChild(document.getDocument().createTextNode(merchant.getTransactionKey()));\r\n\t\tauth_el.appendChild(name_el);\r\n\t\tauth_el.appendChild(trans_key);\r\n\t\tdocument.getDocumentElement().appendChild(auth_el);\r\n\t}",
"public AccountingDocumentConfirmation addAccountingDocument(RetailscmUserContext userContext, String accountingDocumentConfirmationId, String name, Date accountingDocumentDate, String accountingPeriodId, String documentTypeId , String [] tokensExpr) throws Exception;",
"public void setLogCollectionPrefix(String prefix);",
"public EventSubSystem(String packagePrefix, Class<? extends Annotation> annotation)\n {\n this.packagePrefix = packagePrefix;\n this.eventAnnotation = annotation;\n }",
"@Override\n\t\t\tpublic void insertUpdate(DocumentEvent de) {\n\t\t\t\tSystem.out.println(\"insertchain\");\n\t\t\t\tsearchUser(search.getText().toString());\n\t\t\t}",
"public DocumentUndoManager(IDocument document) {\n \t\tsuper();\n \t\tAssert.isNotNull(document);\n \t\tfDocument= document;\n \t\tfHistory= OperationHistoryFactory.getOperationHistory();\n \t\tfUndoContext= new ObjectUndoContext(fDocument);\n \t\tfConnected= new ArrayList();\n \t\tfDocumentUndoListeners= new ListenerList(ListenerList.IDENTITY);\n \t}",
"public ElementExtractor(Contact contact, ElementUnion union, Format format) throws Exception {\r\n this.contact = contact;\r\n this.format = format;\r\n this.union = union;\r\n }",
"public DocumentManipulator(Document document) {\n\t\tthis.document = document;\n\t\tinit();\n\t}",
"public void insertguarantor(CustomerApplicationGuarantor filter) {\n\t\t\n\t}",
"@WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/errorEvent\")\n @RequestWrapper(localName = \"errorEvent\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ErrorEventType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void errorEvent(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"event\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.EventEnumType event,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"additionalInfo\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.TypeValuePairListType additionalInfo,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;",
"@org.junit.Test\n public void compElemBadName2() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace URI is 'http://www.w3.org/2000/xmlns/' Mary Holstege :) element { fn:QName(\\\"http://www.w3.org/2000/xmlns/\\\",\\\"error\\\")} {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }",
"private LogFilter() {\n\t\tacceptedEventTypes = new HashMap<String, Integer>();\n\t}",
"@Override\n public void onError(AuthError ae) {\n System.out.println(\"Error \" + ae);\n // Inform the user of the error\n }",
"public void processDocumentEpilog(org.w3c.dom.Document document)\r\n\tthrows Exception \r\n\t{\r\n\tgetWriter().write(\"Document epilog\\n\");\r\n\treturn;\r\n\t}",
"public XMLMessage(Document document) {\n setDocument(document);\n }",
"public AddressBookExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public SAXException (Exception e)\n {\n this.exception = e;\n }",
"public LoggingSAXErrorHandler()\n {\n setLogger(getDefaultLogger());\n }",
"@org.junit.Test\n public void compElemBadName4() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace prefix is 'xml' and namespace URI is not 'http://www.w3.org/XML/1998/namespace' Mary Holstege :) element { fn:QName(\\\"http://example.com/not-XML-uri\\\",\\\"xml:error\\\") } {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }",
"public FileEvent(FileObject src) {\n this(src, src);\n }",
"private Builder(com.opentext.bn.converters.avro.entity.DocumentEvent.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.businessDocumentId)) {\n this.businessDocumentId = data().deepCopy(fields()[0].schema(), other.businessDocumentId);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.containingParentId)) {\n this.containingParentId = data().deepCopy(fields()[1].schema(), other.containingParentId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.containingParentType)) {\n this.containingParentType = data().deepCopy(fields()[2].schema(), other.containingParentType);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.containingParentLevel)) {\n this.containingParentLevel = data().deepCopy(fields()[3].schema(), other.containingParentLevel);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.controlNumber)) {\n this.controlNumber = data().deepCopy(fields()[4].schema(), other.controlNumber);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.controlNumberLevel1)) {\n this.controlNumberLevel1 = data().deepCopy(fields()[5].schema(), other.controlNumberLevel1);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.controlNumberLevel2)) {\n this.controlNumberLevel2 = data().deepCopy(fields()[6].schema(), other.controlNumberLevel2);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.contentKeys)) {\n this.contentKeys = data().deepCopy(fields()[7].schema(), other.contentKeys);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.documentId)) {\n this.documentId = data().deepCopy(fields()[8].schema(), other.documentId);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.documentStandard)) {\n this.documentStandard = data().deepCopy(fields()[9].schema(), other.documentStandard);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.documentStandardVersion)) {\n this.documentStandardVersion = data().deepCopy(fields()[10].schema(), other.documentStandardVersion);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.documentType)) {\n this.documentType = data().deepCopy(fields()[11].schema(), other.documentType);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.envelopeVersion)) {\n this.envelopeVersion = data().deepCopy(fields()[12].schema(), other.envelopeVersion);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.eventId)) {\n this.eventId = data().deepCopy(fields()[13].schema(), other.eventId);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.eventTimestamp)) {\n this.eventTimestamp = data().deepCopy(fields()[14].schema(), other.eventTimestamp);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.fileInfo)) {\n this.fileInfo = data().deepCopy(fields()[15].schema(), other.fileInfo);\n fieldSetFlags()[15] = true;\n }\n if (other.hasFileInfoBuilder()) {\n this.fileInfoBuilder = com.opentext.bn.converters.avro.entity.PayloadRef.newBuilder(other.getFileInfoBuilder());\n }\n if (isValidValue(fields()[16], other.introspectionSource)) {\n this.introspectionSource = data().deepCopy(fields()[16].schema(), other.introspectionSource);\n fieldSetFlags()[16] = true;\n }\n if (isValidValue(fields()[17], other.introspectionType)) {\n this.introspectionType = data().deepCopy(fields()[17].schema(), other.introspectionType);\n fieldSetFlags()[17] = true;\n }\n if (isValidValue(fields()[18], other.processId)) {\n this.processId = data().deepCopy(fields()[18].schema(), other.processId);\n fieldSetFlags()[18] = true;\n }\n if (isValidValue(fields()[19], other.receiverAddress)) {\n this.receiverAddress = data().deepCopy(fields()[19].schema(), other.receiverAddress);\n fieldSetFlags()[19] = true;\n }\n if (isValidValue(fields()[20], other.senderAddress)) {\n this.senderAddress = data().deepCopy(fields()[20].schema(), other.senderAddress);\n fieldSetFlags()[20] = true;\n }\n if (isValidValue(fields()[21], other.sentDate)) {\n this.sentDate = data().deepCopy(fields()[21].schema(), other.sentDate);\n fieldSetFlags()[21] = true;\n }\n if (isValidValue(fields()[22], other.sentTime)) {\n this.sentTime = data().deepCopy(fields()[22].schema(), other.sentTime);\n fieldSetFlags()[22] = true;\n }\n if (isValidValue(fields()[23], other.taskId)) {\n this.taskId = data().deepCopy(fields()[23].schema(), other.taskId);\n fieldSetFlags()[23] = true;\n }\n if (isValidValue(fields()[24], other.transactionId)) {\n this.transactionId = data().deepCopy(fields()[24].schema(), other.transactionId);\n fieldSetFlags()[24] = true;\n }\n if (isValidValue(fields()[25], other.senderAddressEnvelopeLevel1)) {\n this.senderAddressEnvelopeLevel1 = data().deepCopy(fields()[25].schema(), other.senderAddressEnvelopeLevel1);\n fieldSetFlags()[25] = true;\n }\n if (isValidValue(fields()[26], other.receiverAddressEnvelopeLevel1)) {\n this.receiverAddressEnvelopeLevel1 = data().deepCopy(fields()[26].schema(), other.receiverAddressEnvelopeLevel1);\n fieldSetFlags()[26] = true;\n }\n if (isValidValue(fields()[27], other.functionalCodeEnvelopeLevel1)) {\n this.functionalCodeEnvelopeLevel1 = data().deepCopy(fields()[27].schema(), other.functionalCodeEnvelopeLevel1);\n fieldSetFlags()[27] = true;\n }\n if (isValidValue(fields()[28], other.senderAddressEnvelopeLevel2)) {\n this.senderAddressEnvelopeLevel2 = data().deepCopy(fields()[28].schema(), other.senderAddressEnvelopeLevel2);\n fieldSetFlags()[28] = true;\n }\n if (isValidValue(fields()[29], other.receiverAddressEnvelopeLevel2)) {\n this.receiverAddressEnvelopeLevel2 = data().deepCopy(fields()[29].schema(), other.receiverAddressEnvelopeLevel2);\n fieldSetFlags()[29] = true;\n }\n if (isValidValue(fields()[30], other.functionalCodeEnvelopeLevel2)) {\n this.functionalCodeEnvelopeLevel2 = data().deepCopy(fields()[30].schema(), other.functionalCodeEnvelopeLevel2);\n fieldSetFlags()[30] = true;\n }\n }",
"public TbaccountExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public static TextWatcher createErrorChecker(final Func1<CharSequence, Boolean> filter,\n final Action0 action) {\n return new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n if(filter.call(s)) {\n action.call();\n }\n }\n };\n }",
"@Test\n\tpublic void testAxiomPrefixRenaming() throws Exception {\n\t\ttestContextPrefixRenaming(IAxiom.ELEMENT_TYPE);\n\t}",
"public void buildPathPartWithWebappPathPrefix(Appendable buffer) throws WebAppConfigurationException, IOException {\n buildPathPartWithWebappPathPrefix(buffer, null, false);\n }",
"private void validateDuplicateDocuments(Noc noc) {\n\t\tif (!ObjectUtils.isEmpty(noc.getDocuments())) {\n\t\t\tList<String> documentFileStoreIds = new LinkedList<String>();\n\t\t\tnoc.getDocuments().forEach(document -> {\n\t\t\t\tif (documentFileStoreIds.contains(document.getFileStoreId()))\n\t\t\t\t\tthrow new CustomException(\"NOC_DUPLICATE_DOCUMENT\", \"Same document cannot be used multiple times\");\n\t\t\t\telse\n\t\t\t\t\tdocumentFileStoreIds.add(document.getFileStoreId());\n\t\t\t});\n\t\t}\n\t}",
"public AppException(final ErrorCode errorCode) {\n super(errorCode.getCode());\n this.errorCode = errorCode;\n }",
"public void startElement(String namespaceURI, String localName,\r\n\t\t\tString qName, Attributes atts) throws SAXException {\r\n\t\t// add namespace checks\r\n\t\tif (\"IN\".equalsIgnoreCase(localName)) {\r\n\t\t\tinOp = true;\r\n\t\t} else if (\"records\".equalsIgnoreCase(localName)) {\r\n\t\t\tthis.start = atts.getValue(\"start\");\r\n\t\t\tthis.limit = atts.getValue(\"limit\");\r\n\t\t} else if (\"header\".equals(localName)) {\r\n\t\t\theaderFlag = true;\r\n\t\t} else if (\"type\".equals(localName)) {\r\n\t\t\tif (headerFlag) {\r\n\t\t\t\tsearchFlag = true;\r\n\t\t\t}\r\n\t\t} else if (\"filter\".equalsIgnoreCase(localName)) {\r\n\t\t\t_filterType = 1;\r\n\t\t} else if (\"count\".equalsIgnoreCase(localName)) {\r\n\t\t\t_countType = 1;\r\n\t\t} else if (\"inventory\".equalsIgnoreCase(localName)) {\r\n\t\t\t_inventoryType = 1;\r\n\t\t}\r\n\r\n\t\telse if (\"source\".equalsIgnoreCase(localName)) {\r\n\t\t\tif (headerFlag) {\r\n\t\t\t\tif (atts != null) {\r\n\t\t\t\t\trequestSource = atts.getValue(\"resource\");\r\n\t\t\t\t}\r\n\t\t\t\t_sourceType = 1;\r\n\t\t\t}\r\n\t\t} else if (\"destination\".equalsIgnoreCase(localName)) {\r\n\t\t\tif (headerFlag) {\r\n\t\t\t\tif (atts != null) {\r\n\t\t\t\t\tdestinationSource = atts.getValue(\"resource\");\r\n\t\t\t\t\tif (destinationSource != null) {\r\n\t\t\t\t\t\tif (!dataSources.contains(destinationSource)) {\r\n\t\t\t\t\t\t\tString message = \"Error on line \"\r\n\t\t\t\t\t\t\t\t\t+ _locator.getLineNumber() + \", column \"\r\n\t\t\t\t\t\t\t\t\t+ _locator.getColumnNumber()\r\n\t\t\t\t\t\t\t\t\t+ \".The DataSource: \" + destinationSource\r\n\t\t\t\t\t\t\t\t\t+ \" cannot be found\";\r\n\t\t\t\t\t\t\terrorMessages.append(message);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// load the table for the current datasource and get\r\n\t\t\t\t\t\t\t// the legalname\r\n\t\t\t\t\t\t\trequestedDataSources.add(destinationSource);\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\t_destinationType = 1;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (localName.trim()\r\n\t\t\t\t\t.indexOf(EFGImportConstants.SERVICE_LINK_FILLER) > -1) {\r\n\t\t\t\tEFGContextListener.addToSet(localName.trim());\r\n\t\t\t}\r\n\t\t\tif (EFGContextListener.contains(localName.trim())) {// A federation\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// schema type\r\n\t\t\t\tif (_filterType == 1) {\r\n\t\t\t\t\t_type = 0;\r\n\t\t\t\t\tstack2.push(localName);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (_inventoryType == 1) {\r\n\t\t\t\t\t\tconditionalClause = localName;\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}",
"public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setDocumentId(java.lang.String value) {\n validate(fields()[1], value);\n this.documentId = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"@Override\n protected void generateDocument(Object object, Document document) throws Exception {\n\n if (object instanceof Record) {\n createRecord((Record) object, document);\n } else if (object instanceof RecordCompleteEvent) {\n \tcreateRecordCompleteEvent((RecordCompleteEvent) object, document);\n } else if (object instanceof RecordPauseCommand) {\n createPauseCommand((RecordPauseCommand) object, document);\n } else if (object instanceof RecordResumeCommand) {\n createResumeCommand((RecordResumeCommand) object, document);\n }\n }",
"private LogEvent()\n\t{\n\t\tsuper();\n\t}",
"public WebXStyleElementImpl(String prefix, WebXDocumentImpl owner) {\n super(prefix, owner);\n }",
"public InvalidIntactParentFoundEvent(Object source, DataContext context, Protein protein, String uniprot, String oldParentsAcs, String parents) {\n super(source, context, protein);\n setUniprotIdentity(uniprot);\n this.newParentsAc = parents;\n this.oldParentAc = oldParentsAcs;\n }",
"@Override\r\n\t\tpublic void setPrefix(String prefix) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"private void onDepoisAbrirArquivo() {\n\t\tAACDepoisArquivoEventObject e = new AACDepoisArquivoEventObject(this);\n\t\tnotifyListeners(\"onDepoisAbrirArquivo\", e);\n\t}",
"protected ICEvent() {}",
"public LogFilter(Element filter, boolean scanForNewTypes) {\n\t\tthis();\n\t\tif (filter != null) {\n\t\t\t\n\t\t\tif (filter.getChildText(TAG_LOGDATA) != null) {\n\t\t\t\tthis.logData = Boolean.parseBoolean(filter.getChildText(TAG_LOGDATA).toLowerCase());\n\t\t\t} else {\n\t\t\t\tLOGGER.fatal(\"logdata missing\");\n\t\t\t}\n\t\t\t\n\t\t\tif (filter.getChildText(TAG_DESCRIPTION) != null) {\n\t\t\t\tthis.description = filter.getChildText(TAG_DESCRIPTION);\n\t\t\t}\n\t\t\t\n\t\t\tif (scanForNewTypes) {\n\t\t\t\tscanForNewTypes(PRIORITY_OFF);\n\t\t\t}\n\t\t\t\n\t\t\tElement accTypesElement = filter.getChild(TAG_ACCEPTEDTYPES);\n\t\t\n\t\t\tif (accTypesElement != null) {\n\t\t\t\tList<Element> types = accTypesElement.getChildren(TAG_CLASS);\n\n\t\t\t\tif (types != null) {\n\t\t\t\t\tfor (Element t : types) {\n\t\t\t\t\t\tString name = t.getValue();\n\t\t\t\t\t\tString prio = t.getAttributeValue(TAG_PRIORITY);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (TypeFilter.isPresent(name)) {\n\t\t\t\t\t\t\tacceptedEventTypes.put(name, getPriorityValue(prio));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLOGGER.warn(name + \"is not present in classpath anymore\");\n\t\t\t\t\t\t\tacceptedEventTypes.put(name, PRIORITY_OFF);\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\t}",
"@org.junit.Test\n public void compElemBadName5() {\n final XQuery query = new XQuery(\n \"(: 3.7.3.1 Computed Element Constructor per XQ.E19 XQDY0096 if namespace prefix is not 'xml' and its namespace URI is 'http://www.w3.org/XML/1998/namespace' Mary Holstege :) element { fn:QName(\\\"http://www.w3.org/XML/1998/namespace\\\",\\\"foo:error\\\") } {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }",
"public void testCreateModificationUserFilter1() {\r\n try {\r\n instance.createModificationUserFilter(\"username\", null);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n //good\r\n }\r\n }",
"public Event createSubscribe(Address resource, String event, int expires);",
"public DailyFileAppender(Layout layout, String prefix)\n\t{ \n\t\tthis.layout = layout;\n\t\tthis.prefix = prefix;\n\t\tupdateFilename();\n \t}",
"protected void addError(AeExpressionValidationResult aResult, String aMessage, Object[] aArgs) {\r\n String msg = MessageFormat.format(aMessage, aArgs);\r\n aResult.addError(msg);\r\n }",
"public InvalidEventHandlerException() {\n }",
"public void setEventPrefix(String value) {\n JsoHelper.setAttribute(getJsObj(), \"eventPrefix\", value);\n }",
"EventUse createEventUse();",
"public void validationError(\n IPSComponent component,\n int errorCode,\n Object[] args)\n throws PSSystemValidationException;",
"WithCreate withFilter(EventChannelFilter filter);",
"@Override\r\n\tpublic Node processEvent(Document doc, HttpServletRequest request) {\r\n\t\t//precheck\r\n\t\tElement resp = doc.createElement(\"user\");\r\n\t\tint id_user = -1;\r\n\t\ttry{\r\n\t\t\tid_user = Integer.parseInt(request.getParameter(\"id_user\"));\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex){\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"ERR\" , \"message\", \"Wrong user id\");\r\n\t\t}\r\n\t\tDBUsers dbu = new DBUsers();\r\n\t\tVector v = dbu.executeQuery(\"id_user = \"+id_user);\r\n\t\tif(v == null){\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"ERR\" , \"message\", \"Wrong user id\");\r\n\t\t}\r\n\t\tdbu = (DBUsers) v.iterator().next();\r\n\t\r\n\r\n\t\tString name = request.getParameter(\"name\");\r\n\t\tif(name != null){\r\n\t\t\tdbu.set(\"name\", name);\r\n\t\t}\r\n\t\t//check attributes\r\n\t\t/*if(name == null || email == null){\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"ERR\" , \"message\", \"Request parameters missing\");\r\n\t\t}\r\n\t\t\r\n\t\tString ee = request.getAttribute(\"\");\r\n\t\t*/\r\n\r\n\t\tif(dbu.write()){\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"OK\" , \"message\", \"Success\");\r\n\t\t}else{\r\n\t\t\treturn createDefaultResponse(doc, \"user\", \"status\" , \"ERR\" , \"message\", \"Database connection error\");\r\n\t\t}\r\n\r\n\t}",
"public EntrezSearcher (String db, String retFormat, String query, String folderPath){\n this.db = db;\n this.retFormat = retFormat;\n addQuery(query);\n this.XmlFolderPath = folderPath;\n }",
"protected String extractPrefix(IDocument document, int offset) {\r\n\t\tint i = offset;\r\n\t\tif (i > document.getLength())\r\n\t\t\treturn \"\"; //$NON-NLS-1$\r\n\r\n\t\ttry {\r\n\t\t\twhile (i > 0) {\r\n\t\t\t\tchar ch = document.getChar(i - 1);\r\n\t\t\t\tif (ch != '.' && !Character.isJavaIdentifierPart(ch))\r\n\t\t\t\t\tbreak;\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t\treturn document.get(i, offset - i);\r\n\t\t} catch (BadLocationException e) {\r\n\t\t\treturn \"\"; //$NON-NLS-1$\r\n\t\t}\r\n\t}",
"public FileFilter(FieldFilter[] fieldFilters) {\n this.filterExpression = makeExpression(fieldFilters);\n }",
"@org.junit.Test\n public void compElemBadName1() {\n final XQuery query = new XQuery(\n \"element {\\\"xmlns:error\\\"} {}\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XQDY0096\")\n );\n }",
"public MapFilter<T> filter(String prefix) {\n // Wrap me in a new filter.\n return new MapFilter<>(this, prefix);\n }",
"public IllegalFilterException () {\n super();\n }",
"public ValidatorStandardSubsetBroad() {\n super();\n addErrorKey(ERROR_KEY1);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY1);\n addErrorKey(ERROR_KEY2);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY2); \n }",
"public AccountbaseExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void addDocumenttoSolr(final SolrInputDocument document, Email email)\r\n\t\t\tthrows FileNotFoundException, IOException, SAXException, TikaException, SolrServerException {\n\t\tSystem.out.println(email.toString());\r\n/*\t\tdocument.setField(LocalConstants.documentFrom, email.getFrom());\r\n\t\tdocument.setField(LocalConstants.documentTo, email.getTo());\r\n\t\tdocument.setField(LocalConstants.documentBody, email.getBody());\r\n*/\r\n\t\tdocument.setField(\"from\", email.getFrom());\r\n\t\tdocument.setField(\"to\", email.getTo());\r\n\t\tdocument.setField(\"body\", email.getBody());\r\n\t//document.setField(\"title\", \"972-2-5A619-12A-X\");\r\n\t\t// 2. Adds the document\r\n\t\tdocs.add(document);\r\n\t\t//client.add(document);\r\n\t\t\r\n\t\t\r\n\r\n\t\t// 3. Makes index changes visible\r\n\t\t//client.commit();\r\n\t}",
"public PDStream(PDDocument doc, InputStream input, COSName filter) throws IOException {\n/* 105 */ this(doc, input, (COSBase)filter);\n/* */ }",
"static Event init(final String propertyName)\n {\n final LTProperties properties = Context.configuration().properties;\n final String defaultLogLevel = properties.getProperty(\"events.logging.default.level\", \"debug\");\n final String logLevel = properties.getProperty(\"events.logging.\" + propertyName + \".level\", defaultLogLevel).toLowerCase();\n\n final Event event;\n switch (logLevel) {\n case \"error\":\n event = new ERROR();\n break;\n\n case \"warn\":\n event = new WARN();\n break;\n\n case \"info\":\n event = new INFO();\n break;\n\n case \"debug\":\n event = new DEBUG();\n break;\n\n default:\n throw new IllegalArgumentException(\"Log level '\" + logLevel + \"' not supported.\");\n }\n\n return event;\n }"
]
| [
"0.6435869",
"0.44782022",
"0.43295598",
"0.42666382",
"0.42146817",
"0.41240278",
"0.40989524",
"0.4062212",
"0.40588716",
"0.4013701",
"0.39656332",
"0.39319915",
"0.39295703",
"0.3926278",
"0.38957623",
"0.38899365",
"0.38850787",
"0.38467574",
"0.38458672",
"0.38437504",
"0.38327423",
"0.3824093",
"0.3823855",
"0.38231045",
"0.38054028",
"0.37998992",
"0.37598458",
"0.37526077",
"0.37484232",
"0.37435678",
"0.3742751",
"0.37335563",
"0.37244958",
"0.37080115",
"0.3707195",
"0.3697929",
"0.36668614",
"0.36648667",
"0.3663063",
"0.36461288",
"0.3642962",
"0.36374804",
"0.36365622",
"0.3635303",
"0.36348835",
"0.36335254",
"0.36313745",
"0.36256653",
"0.3616439",
"0.36148146",
"0.36024243",
"0.36006916",
"0.35921967",
"0.35910624",
"0.35769174",
"0.35734415",
"0.35673708",
"0.35663483",
"0.3553331",
"0.35508886",
"0.35487342",
"0.35417193",
"0.35394973",
"0.35302696",
"0.35262746",
"0.35177943",
"0.3514819",
"0.35144904",
"0.3512925",
"0.3511714",
"0.35106575",
"0.35088623",
"0.35081625",
"0.34990272",
"0.349491",
"0.34934464",
"0.34921274",
"0.3487474",
"0.34847492",
"0.348442",
"0.3470636",
"0.34701446",
"0.34661263",
"0.3463683",
"0.3463371",
"0.34601778",
"0.3456135",
"0.34523606",
"0.34510922",
"0.34458506",
"0.34434634",
"0.34397224",
"0.34359366",
"0.34301516",
"0.34300908",
"0.34260714",
"0.3420964",
"0.34147227",
"0.3413131",
"0.3408009"
]
| 0.7831285 | 0 |
Constructs an OleAccountFilterEvent with the given document, chartOfAccountsCode, accountNumber, objectCode. | public OleAccountFilterEvent(Document document, String chartOfAccountsCode,
String accountNumber, String objectCode) {
this("", document);
this.accountNumber = accountNumber;
this.chartOfAccountsCode = chartOfAccountsCode;
this.objectCode = objectCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OleAccountFilterEvent(String errorPathPrefix, Document document) {\r\n super(\"Accounting Details of\" + getDocumentId(document), errorPathPrefix, document);\r\n }",
"public void setAccountFilter(Filter<Account> accountFilter) {\n this.accountFilter = accountFilter;\n }",
"@Override\n\tpublic void setAccountCode(java.lang.String accountCode) {\n\t\t_lineaGastoCategoria.setAccountCode(accountCode);\n\t}",
"public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"protected void populateChartOfAccountsCodeFields() {\n AccountService acctService = SpringContext.getBean(AccountService.class);\n AccountPersistenceStructureService apsService = SpringContext.getBean(AccountPersistenceStructureService.class);\n \n // non-collection reference accounts \n PersistableBusinessObject bo = getBusinessObject(); \n Iterator<Map.Entry<String, String>> chartAccountPairs = apsService.listChartCodeAccountNumberPairs(bo).entrySet().iterator(); \n while (chartAccountPairs.hasNext()) {\n Map.Entry<String, String> entry = chartAccountPairs.next();\n String coaCodeName = entry.getKey(); \n String acctNumName = entry.getValue(); \n String accountNumber = (String)ObjectUtils.getPropertyValue(bo, acctNumName);\n String coaCode = null;\n Account account = acctService.getUniqueAccountForAccountNumber(accountNumber); \n if (ObjectUtils.isNotNull(account)) {\n coaCode = account.getChartOfAccountsCode();\n }\n try {\n ObjectUtils.setObjectProperty(bo, coaCodeName, coaCode); \n }\n catch (Exception e) {\n LOG.error(\"Error in setting property value for \" + coaCodeName,e);\n }\n }\n \n // collection reference accounts \n Iterator<Map.Entry<String, Class>> accountColls = apsService.listCollectionAccountFields(bo).entrySet().iterator(); \n while (accountColls.hasNext()) {\n Map.Entry<String, Class> entry = accountColls.next();\n String accountCollName = entry.getKey();\n PersistableBusinessObject newAccount = getNewCollectionLine(accountCollName);\n \n // here we can use hard-coded chartOfAccountsCode and accountNumber field name \n // since all reference account types do follow the standard naming pattern \n String accountNumber = (String)ObjectUtils.getPropertyValue(newAccount, OLEPropertyConstants.ACCOUNT_NUMBER); \n String coaCode = null;\n Account account = acctService.getUniqueAccountForAccountNumber(accountNumber); \n if (ObjectUtils.isNotNull(account)) {\n coaCode = account.getChartOfAccountsCode();\n try {\n ObjectUtils.setObjectProperty(newAccount, OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE, coaCode); \n }\n catch (Exception e) {\n LOG.error(\"Error in setting chartOfAccountsCode property value in account collection \" + accountCollName,e);\n }\n }\n }\n }",
"public AccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private EventAuditDO createEventAuditRecord(ReasonBO reasonBO, Integer eventCode)throws Exception{\n\t\ttry{\n\t\tEventAuditDO eventAuditBO = new EventAuditDO();\n\t\tAuditEntry auditEntry = new AuditEntry(); \n\t\tauditEntry.setCreateUsername(reasonBO.getCurrentUsername());\n\t\t\n\t\tStringBuffer comment = new StringBuffer();\n\t\t\n\t\teventAuditBO.setEventCode(eventCode);\t \n\t\t\n\t\t\n\t\t\n\t\teventAuditBO.setRefType1Code(Constants.EventRefTypeCode.REFERENCE_TABLE_NAME);\n\t\teventAuditBO.setRefValue1(\" roms_reason\");\n\t\t\t\n\t\tcomment.append(\"Reason Description: \" + reasonBO.getReasonDescription());\n\t\n\t\tcomment.append(\"; Reason Type: \" + reasonBO.getTypeDescription());\n\t\n\t\teventAuditBO.setComment(comment.toString());\n\t\t\n\t\teventAuditBO.setAuditEntry(auditEntry);\n\t\t\n\t\treturn eventAuditBO;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new Exception();\n\t\t}\n\t}",
"public void setAccountTypeCode(String accountTypeCode) {\n this.accountTypeCode = accountTypeCode;\n }",
"public TbaccountExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public void setAccountNo( String accountNo ) {\r\n this.accountNo = accountNo;\r\n }",
"public PcmAcctinfoDOExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void setChartOfAccountsCode(String chartOfAccountsCode) {\n this.chartOfAccountsCode = chartOfAccountsCode;\n }",
"public void setAccountNo(String accountNo) {\n this.accountNo = accountNo;\n }",
"public void setAccountNumber(java.lang.String accountNumber) {\n this.accountNumber = accountNumber;\n }",
"public void setAccountNumber(java.lang.String accountNumber) {\r\n this.accountNumber = accountNumber;\r\n }",
"public void setAccountNumber(int accountNumber) {\n this.accountNumber = accountNumber;\n }",
"public void setAccount_number(java.lang.String account_number) {\n this.account_number = account_number;\n }",
"public CustomEventObjectAdapter(Context context, List<CustomEventObject> customEventObjects, CustomClickListener listener) {\n this.context = context;\n this.customEventObjects = customEventObjects;\n this.listener = listener;\n }",
"public void setAccountNumber(String accountNumber) {\n this.accountNumber = accountNumber;\n }",
"@Override\n public void onCreated(ISingleAccountPublicClientApplication application) {\n mSingleAccountApp = application;\n loadAccount();\n }",
"private void addAOCAndCOCombinationError(Event event, Reporter reporter, Program program) {\n if (hasNoAttributeOptionComboSet(event)) {\n reporter.addError(\n event,\n ValidationCode.E1117,\n program.getCategoryCombo(),\n event.getAttributeCategoryOptions().stream()\n .map(MetadataIdentifier::getIdentifierOrAttributeValue)\n .collect(Collectors.toSet())\n .toString());\n } else {\n reporter.addError(\n event,\n ValidationCode.E1117,\n event.getAttributeOptionCombo(),\n event.getAttributeCategoryOptions().stream()\n .map(MetadataIdentifier::getIdentifierOrAttributeValue)\n .collect(Collectors.toSet())\n .toString());\n }\n }",
"public static com.opentext.bn.converters.avro.entity.DocumentEvent.Builder newBuilder(com.opentext.bn.converters.avro.entity.DocumentEvent other) {\n return new com.opentext.bn.converters.avro.entity.DocumentEvent.Builder(other);\n }",
"public com.vodafone.global.er.decoupling.binding.request.InactivateAccountType createInactivateAccountType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.InactivateAccountTypeImpl();\n }",
"public AccountVO getAccountVO(String parameterName, String custcode) {\n\t\t\r\n\t\tString xmlResponse;\t\t\r\n\t\t\r\n\t\tAccountVO accountVO = new AccountVO();\r\n\t\t\t\r\n\t\t//first of all we get the customer id for a custcode\r\n//\t\txmlResponse = CustIdByCustCodeSyncIB.getInstance().process(custcode, this.infobusUrl);\r\n\t\t//then get the generalInfo, packageList and contractList calling the 'BSPMCCQUERY' sevice from infobus\r\n\t\t//note that this service uses customer id3\r\n\t\tlog.debug(getCustomerId(FakeXMLForInfobusTest.CUSTID_BY_CUSTCODE_RESPONSE_XML));\r\n//\t\txmlResponse = ClientInfoSyncIB.getInstance().process(getCustomerId(xmlResponse), this.infobusUrl);\r\n\t\taccountVO.setAccountNumber(custcode);\r\n\t\taccountVO.setGeneralInfo(getGeneralInfo(FakeXMLForInfobusTest.CLIENT_INFO_RESPONSE_XML));\t\t\t\t\t\r\n\t\taccountVO.setContractVOList(getContractList(FakeXMLForInfobusTest.CLIENT_INFO_RESPONSE_XML));\t\t\t\r\n\t\t//then we get the occList calling the 'BSPMOCCQRY' service from infobus\r\n//\t\txmlResponse = OccListSyncIB.getInstance().process(custcode, this.infobusUrl);\r\n\t\taccountVO.setOccList(getOCCList(FakeXMLForInfobusTest.OCC_LIST_RESPONSE_XML));\r\n\t\t//then get the account family structure\t\t\t\t\t\r\n//\t\txmlResponse = AccountStructureSyncIB.getInstance().process(custcode, this.infobusUrl);\r\n\t\taccountVO.setHierarchyStructure(getAccountStructure(FakeXMLForInfobusTest.ACCOUNT_STRUCTURE_RESPONSE_XML));\t\t\t\r\n\r\n\t\treturn accountVO;\r\n\t\t\r\n\t}",
"public void setOrganizationOwnerChartOfAccountsCode(String organizationOwnerChartOfAccountsCode) {\n this.organizationOwnerChartOfAccountsCode = organizationOwnerChartOfAccountsCode;\n }",
"public void setAccountID(java.lang.Object accountID) {\n this.accountID = accountID;\n }",
"public AccountPanel(MainFrame mainFrameObject) {\n super();\n\n this.parentMainFrame = mainFrameObject;\n this.recordInvoiceOrPaymentFrame = new RecordInvoiceOrPaymentFrame(mainFrameObject);\n\n this.tenantsDataManager = new TenantsDataManager();\n this.accountStatementDataManager = new AccountStatementDataManager();\n\n initializePanel();\n setComponents();\n }",
"public static Account test() {\r\n\t\tAccount newAccount = createNewAccount(\"[email protected]\", \"Test Account\");\r\n\t\t\r\n\t\t//Create participants - accounts first\r\n\t\tAccount partAccount1 = new Account(\"Manuel\");\r\n\t\tAccount partAccount2 = new Account(\"Tatenda\");\r\n\t\tAccount partAccount3 = new Account(\"Dan\");\r\n\t\tAccount partAccount4 = new Account(\"Kirill\");\r\n\t\t\r\n\t\t//Creates first event - Trip\r\n\t\tnewAccount.createEvent(\"Trip\", \"Short Term\");\r\n\t\t\r\n\t\t//Add participants\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount1));\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount2));\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount3));\r\n\t\tnewAccount.events.get(0).addParticipant(new Participant(partAccount4));\r\n\t\t\r\n\t\tEvent firstEvent = newAccount.events.get(0);\r\n\t\tArrayList<Participant> firstParts = (ArrayList<Participant>) firstEvent.getParticipants();\r\n\t\t\r\n\t\tArrayList<Item> items = new ArrayList<Item>();\r\n\t\titems.add(new Item(\"Bread1\", 10.0));\r\n\t\titems.add(new Item(\"Bread2\", 20.0));\r\n\t\titems.add(new Item(\"Bread3\", 30.0));\r\n\t\titems.add(new Item(\"Bread4\", 40.0));\r\n\t\t\r\n\t\t//Add activities\r\n\t\tfirstEvent.addBalanceChange(new Transaction(\"tmpname1\", firstParts, items));\r\n\t\tfirstEvent.addBalanceChange(new Transaction(\"tmpname2\", firstParts, items));\r\n\t\t//Could add more activities (transactions or payments here)\r\n\t\t\r\n\t\t//Creates second event - Household - and two three activities to it\r\n\t\tnewAccount.createEvent(\"Household\", \"Long Term\");\r\n\t\t\r\n\t\tArrayList<Item> items2 = new ArrayList<Item>();\r\n\t\titems2.add(new Item(\"Meat1\", 10.0));\r\n\t\titems2.add(new Item(\"Meat2\", 20.0));\r\n\t\titems2.add(new Item(\"Meat3\", 30.0));\r\n\t\titems2.add(new Item(\"Meat4\", 40.0));\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Add participants\r\n\t\tnewAccount.events.get(1).addParticipant(new Participant(partAccount1));\r\n\t\tnewAccount.events.get(1).addParticipant(new Participant(partAccount2));\r\n\t\t\r\n\t\t\r\n\t\tEvent secondEvent = newAccount.events.get(1);\r\n\t\tArrayList<Participant> secondParts = (ArrayList<Participant>) secondEvent.getParticipants();\r\n\t\t\r\n\t\t//Add activities\r\n\t\tsecondEvent.addBalanceChange(new Transaction(\"tmpname3\", secondParts, items2));\r\n\t\tsecondEvent.addBalanceChange(new Transaction(\"tmpname4\", secondParts, items2));\r\n\t\t\r\n\t\tnewAccount.updatePastRelations();\r\n\t\t\r\n\t\treturn newAccount;\r\n\t}",
"public AccountPicker(org.xms.g.utils.XBox param0) {\n super(param0);\n }",
"FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\r\n\t\tthis.account = account;\r\n\t}",
"public void insertguarantor(CustomerApplicationGuarantor filter) {\n\t\t\n\t}",
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"public void setAccount_Id(java.lang.String account_Id) {\n this.account_Id = account_Id;\n }",
"public CAccountElement() {\n }",
"public AccountbaseExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"Document createAccount(String username, String accountDisplayName,\n String accountFullName, double balance, double interestRate);",
"public void setAccountCurrencyCode(String accountCurrencyCode) {\r\n this.accountCurrencyCode = accountCurrencyCode;\r\n }",
"protected void addAccounts(AccountsPayableDocument accountsPayableDocument, PaymentDetail paymentDetail, String documentType) {\r\n String creditMemoDocType = getDataDictionaryService().getDocumentTypeNameByClass(VendorCreditMemoDocument.class);\r\n List<SourceAccountingLine> sourceAccountingLines = purapAccountingService.generateSourceAccountsForVendorRemit(accountsPayableDocument);\r\n for (SourceAccountingLine sourceAccountingLine : sourceAccountingLines) {\r\n KualiDecimal lineAmount = sourceAccountingLine.getAmount();\r\n PaymentAccountDetail paymentAccountDetail = new PaymentAccountDetail();\r\n paymentAccountDetail.setAccountNbr(sourceAccountingLine.getAccountNumber());\r\n\r\n if (creditMemoDocType.equals(documentType)) {\r\n lineAmount = lineAmount.negated();\r\n }\r\n\r\n paymentAccountDetail.setAccountNetAmount(sourceAccountingLine.getAmount());\r\n paymentAccountDetail.setFinChartCode(sourceAccountingLine.getChartOfAccountsCode());\r\n paymentAccountDetail.setFinObjectCode(sourceAccountingLine.getFinancialObjectCode());\r\n\r\n paymentAccountDetail.setFinSubObjectCode(StringUtils.defaultIfEmpty(sourceAccountingLine.getFinancialSubObjectCode(), OLEConstants.getDashFinancialSubObjectCode()));\r\n paymentAccountDetail.setOrgReferenceId(sourceAccountingLine.getOrganizationReferenceId());\r\n paymentAccountDetail.setProjectCode(StringUtils.defaultIfEmpty(sourceAccountingLine.getProjectCode(), OLEConstants.getDashProjectCode()));\r\n paymentAccountDetail.setSubAccountNbr(StringUtils.defaultIfEmpty(sourceAccountingLine.getSubAccountNumber(), OLEConstants.getDashSubAccountNumber()));\r\n paymentDetail.addAccountDetail(paymentAccountDetail);\r\n }\r\n }",
"public EventMessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"WithCreate withFilter(EventChannelFilter filter);",
"public KualiDecimal calculateM113PfyrEncum(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber) {\n Criteria criteria = new Criteria();\n criteria.addEqualTo(OLEConstants.UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME, new Integer(universityFiscalYear.intValue() - 1));\n criteria.addEqualTo(OLEConstants.CHART_OF_ACCOUNTS_CODE_PROPERTY_NAME, chartOfAccountsCode);\n criteria.addEqualTo(OLEConstants.ACCOUNT_NUMBER_PROPERTY_NAME, accountNumber);\n criteria.addEqualTo(OLEConstants.ACCOUNT_SUFFICIENT_FUNDS_CODE_PROPERTY_NAME, OLEConstants.SF_TYPE_CASH_AT_ACCOUNT);\n\n ReportQueryByCriteria reportQuery = QueryFactory.newReportQuery(SufficientFundBalances.class, criteria);\n reportQuery.setAttributes(new String[] { OLEConstants.ACCOUNT_ENCUMBRANCE_AMOUNT_PROPERTY_NAME });\n\n return executeReportQuery(reportQuery);\n }",
"@Override\n public void customEventOccurred(CustomEvent event)\n {\n DialogsFactory.produceCreateDataSourceFromExcelDialog(new ExcelBook(new Source()));\n }",
"public static AccountType forCode(int cdTypeAcct) {\n\t\treturn new AccountType(cdTypeAcct);\n\t}",
"public UserModel getUserWithEventsById(String account);",
"public AccountToPayDetailVo(\n\t\t\tshort payerCompany,\n\t\t\tshort serviceCompany,\n\t\t\tString payerCompanyName,\n\t\t\tString serviceCompanyName,\n\t\t\tint sellerUser,\n\t\t\tint agentUser,\n\t\t\tString sellerUserName,\n\t\t\tint accountToPay,\n\t\t\tfloat amount ,\n\t\t\tString date,\n\t\t\tint ePos, \n\t\t\tString account_type){\n\t\t this.payerCompany=payerCompany;\n\t\t this.serviceCompany=serviceCompany;\n\t\t this.payerCompanyName=payerCompanyName;\n\t\t this.serviceCompanyName=serviceCompanyName;\n\t\t this.sellerUser=sellerUser;\n\t\t this.agentUser=agentUser;\n\t\t this.sellerUserName=sellerUserName;\n\t\t this.accountToPay=accountToPay;\n\t\t this.amount=amount;\n\t\t this.date=date;\n\t\t this.ePos=ePos;\n\t\t super.setValue(accountToPay+\",\"+payerCompany+\",\"+agentUser+\",\"+ePos+\",\"+amount+\",\"+date);\n\t\t if (account_type.equals(\"VI\"))\n\t\t\tsuper.setLabel(\"Compañía de servicio: \"+serviceCompanyName+\" | Cadena comercial: \"+payerCompanyName + \" | Bs. \" + amount + \" | Fecha: \" + date);\n\t\t else if (account_type.equals(\"CC\"))\n\t\t\tsuper.setLabel(\"Compañía de servicio: \"+serviceCompanyName+\" | Cadena comercial: \"+payerCompanyName + \" | Usuario:\" + sellerUserName + \" | POS: \" + ePos + \" | Bs. \" + amount + \" | Fecha: \" + date);\n\t}",
"public DescriptorEvent(int eventCode, ObjectLevelModifyQuery query) {\n this(query.getObject());\n this.query = query;\n this.eventCode = eventCode;\n this.session = query.getSession();\n this.descriptor = query.getDescriptor();\n }",
"public void setAccountType(String accountType)\n\t{\n\t\tthis.accountType = accountType;\n\t}",
"@Override\n\tpublic ArrayList<AccountControlBean> selectAccountControlList(String accountCode) {\n\t\tConnection con = null;\n \tPreparedStatement pstmt = null;\n \tResultSet rs = null;\n \tArrayList<AccountControlBean> accountControlList = new ArrayList<>();\n try{\n \tStringBuffer query = new StringBuffer();\n \t\n query.append(\"SELECT ac.ACCOUNT_CODE, ac.CONTROL_CODE, ac.DETAIL_NAME, ac.DETAIL_TYPE FROM ACCOUNT a, account_control ac WHERE a.ACCOUNT_CODE=ac.ACCOUNT_CODE and a.ACCOUNT_CODE=?\");\n con = dataSourceTransactionManager.getConnection();\n pstmt = con.prepareStatement(query.toString());\n pstmt.setString(1, accountCode); \n rs = pstmt.executeQuery();\n while(rs.next()){\n \tAccountControlBean accountControlBean = new AccountControlBean();\n accountControlBean.setAccountCode(rs.getString(\"ACCOUNT_CODE\"));\n accountControlBean.setControlCode(rs.getString(\"CONTROL_CODE\"));\n accountControlBean.setDetailName(rs.getString(\"DETAIL_NAME\"));\n accountControlBean.setDetailType(rs.getString(\"DETAIL_TYPE\"));\n accountControlList.add(accountControlBean);\n }\n return accountControlList;\n }catch(Exception sqle){\n throw new DataAccessException(sqle.getMessage());\n }finally{\n \t dataSourceTransactionManager.close(pstmt, rs);\n }\n\t}",
"public CapitalAccount(\n \t\t\tIObjectKey objectKey, \n \t\t\tMap extensions, \n \t\t\tIObjectKey parent,\n \t\t\tIListManager subAccounts) {\n \t\tsuper(objectKey, extensions, parent, JMoneyPlugin.getResourceString(\"Account.newAccount\"), subAccounts);\n \t\t\n this.abbreviation = null;\n this.comment = null;\n \t}",
"public void setAccountNumber(String accountNumber) {\n this.accountNumber = accountNumber == null ? null : accountNumber.trim();\n }",
"public EASInBandExceptionDescriptor(final byte exception_RF_channel, final int exception_program_number)\n {\n this.exception_RF_channel = exception_RF_channel;\n this.exception_program_number = exception_program_number & 0xFFFF;\n this.m_exceptionFrequency = ConversionUtil.rfChannelToFrequency(exception_RF_channel & 0xFF);\n }",
"private static com.unboundid.ldap.sdk.Filter create(java.lang.String r30, int r31, int r32, int r33) {\n /*\n r1 = r30\n r0 = r31\n r2 = r32\n r3 = r33\n r4 = 50\n if (r3 > r4) goto L_0x0622\n if (r0 >= r2) goto L_0x0614\n char r4 = r30.charAt(r31)\n r5 = 41\n r6 = 40\n r7 = 2\n r8 = 0\n r9 = 1\n if (r4 != r6) goto L_0x0042\n char r4 = r1.charAt(r2)\n if (r4 != r5) goto L_0x0026\n int r4 = r0 + 1\n int r10 = r2 + -1\n goto L_0x0046\n L_0x0026:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_OPEN_WITHOUT_CLOSE\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n java.lang.Integer r0 = java.lang.Integer.valueOf(r32)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r1\n L_0x0042:\n if (r0 != 0) goto L_0x05fb\n r4 = r0\n r10 = r2\n L_0x0046:\n char r11 = r1.charAt(r4)\n r12 = 33\n r13 = -87\n if (r11 == r12) goto L_0x05ad\n r12 = 38\n if (r11 == r12) goto L_0x0599\n if (r11 == r6) goto L_0x0581\n r12 = 92\n r15 = 58\n r14 = 61\n if (r11 == r15) goto L_0x041b\n r5 = 124(0x7c, float:1.74E-43)\n if (r11 == r5) goto L_0x0408\n com.unboundid.ldap.sdk.Filter[] r3 = NO_FILTERS\n r5 = r4\n L_0x0065:\n if (r5 > r10) goto L_0x0161\n int r6 = r5 + 1\n char r5 = r1.charAt(r5)\n if (r5 == r15) goto L_0x015a\n r11 = 126(0x7e, float:1.77E-43)\n if (r5 == r11) goto L_0x0111\n switch(r5) {\n case 60: goto L_0x00c7;\n case 61: goto L_0x00c2;\n case 62: goto L_0x0078;\n default: goto L_0x0076;\n }\n L_0x0076:\n r5 = r6\n goto L_0x0065\n L_0x0078:\n r5 = -91\n int r11 = r6 + -1\n if (r6 > r10) goto L_0x00ac\n int r15 = r6 + 1\n char r6 = r1.charAt(r6)\n if (r6 != r14) goto L_0x008b\n r5 = 1\n r6 = -91\n goto L_0x0165\n L_0x008b:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_GT\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n int r15 = r15 - r9\n char r0 = r1.charAt(r15)\n java.lang.Character r0 = java.lang.Character.valueOf(r0)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x00ac:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_END_AFTER_GT\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x00c2:\n int r11 = r6 + -1\n r15 = r6\n goto L_0x0163\n L_0x00c7:\n r5 = -90\n int r11 = r6 + -1\n if (r6 > r10) goto L_0x00fb\n int r15 = r6 + 1\n char r6 = r1.charAt(r6)\n if (r6 != r14) goto L_0x00da\n r5 = 1\n r6 = -90\n goto L_0x0165\n L_0x00da:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_LT\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n int r15 = r15 - r9\n char r0 = r1.charAt(r15)\n java.lang.Character r0 = java.lang.Character.valueOf(r0)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x00fb:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_END_AFTER_LT\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0111:\n r5 = -88\n int r11 = r6 + -1\n if (r6 > r10) goto L_0x0144\n int r15 = r6 + 1\n char r6 = r1.charAt(r6)\n if (r6 != r14) goto L_0x0123\n r5 = 1\n r6 = -88\n goto L_0x0165\n L_0x0123:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_TILDE\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n int r15 = r15 - r9\n char r0 = r1.charAt(r15)\n java.lang.Character r0 = java.lang.Character.valueOf(r0)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x0144:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_END_AFTER_TILDE\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x015a:\n int r11 = r6 + -1\n r15 = r6\n r5 = 1\n r6 = -87\n goto L_0x0165\n L_0x0161:\n r11 = -1\n r15 = r5\n L_0x0163:\n r5 = 0\n r6 = 0\n L_0x0165:\n if (r11 <= r4) goto L_0x03f0\n java.lang.String r4 = r1.substring(r4, r11)\n if (r5 == 0) goto L_0x0249\n if (r6 != r13) goto L_0x0249\n if (r15 > r10) goto L_0x0233\n int r11 = r15 + 1\n char r13 = r1.charAt(r15)\n if (r13 != r14) goto L_0x017c\n r15 = r11\n goto L_0x0249\n L_0x017c:\n int r13 = r11 + -1\n L_0x017e:\n if (r11 > r10) goto L_0x018c\n int r15 = r11 + 1\n char r11 = r1.charAt(r11)\n if (r11 != r14) goto L_0x018a\n r11 = 1\n goto L_0x018e\n L_0x018a:\n r11 = r15\n goto L_0x017e\n L_0x018c:\n r15 = r11\n r11 = 0\n L_0x018e:\n if (r11 == 0) goto L_0x021d\n int r11 = r15 + -1\n java.lang.String r11 = r1.substring(r13, r11)\n java.lang.String r13 = com.unboundid.util.StaticUtils.toLowerCase(r11)\n java.lang.String r14 = \":\"\n boolean r14 = r11.endsWith(r14)\n if (r14 == 0) goto L_0x0207\n java.lang.String r14 = \"dn:\"\n boolean r14 = r13.equals(r14)\n if (r14 == 0) goto L_0x01ad\n r11 = 1\n goto L_0x024a\n L_0x01ad:\n java.lang.String r14 = \"dn:\"\n boolean r13 = r13.startsWith(r14)\n if (r13 == 0) goto L_0x01df\n r13 = 3\n int r14 = r11.length()\n int r14 = r14 - r9\n java.lang.String r11 = r11.substring(r13, r14)\n int r13 = r11.length()\n if (r13 == 0) goto L_0x01c9\n r14 = r11\n r11 = 1\n goto L_0x024b\n L_0x01c9:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x01df:\n int r13 = r11.length()\n int r13 = r13 - r9\n java.lang.String r11 = r11.substring(r8, r13)\n int r13 = r11.length()\n if (r13 == 0) goto L_0x01f1\n r14 = r11\n r11 = 0\n goto L_0x024b\n L_0x01f1:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0207:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_CANNOT_PARSE_MRID\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x021d:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_EQUALS\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0233:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_EQUALS\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0249:\n r11 = 0\n L_0x024a:\n r14 = 0\n L_0x024b:\n r13 = -93\n if (r15 <= r10) goto L_0x0260\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n r7.<init>()\n if (r5 != 0) goto L_0x0257\n goto L_0x0258\n L_0x0257:\n r13 = r6\n L_0x0258:\n com.unboundid.asn1.ASN1OctetString[] r5 = NO_SUB_ANY\n r6 = r5\n L_0x025b:\n r5 = 0\n r16 = 0\n goto L_0x03da\n L_0x0260:\n if (r15 != r10) goto L_0x02d8\n if (r5 == 0) goto L_0x029a\n char r5 = r1.charAt(r15)\n if (r5 == r12) goto L_0x027a\n switch(r5) {\n case 40: goto L_0x027a;\n case 41: goto L_0x027a;\n case 42: goto L_0x027a;\n default: goto L_0x026d;\n }\n L_0x026d:\n com.unboundid.asn1.ASN1OctetString r5 = new com.unboundid.asn1.ASN1OctetString\n int r7 = r15 + 1\n java.lang.String r7 = r1.substring(r15, r7)\n r5.<init>((java.lang.String) r7)\n r13 = r6\n goto L_0x02b4\n L_0x027a:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_IN_AV\n java.lang.Object[] r5 = new java.lang.Object[r7]\n char r1 = r1.charAt(r15)\n java.lang.Character r1 = java.lang.Character.valueOf(r1)\n r5[r8] = r1\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x029a:\n char r5 = r1.charAt(r15)\n if (r5 == r12) goto L_0x02b8\n switch(r5) {\n case 40: goto L_0x02b8;\n case 41: goto L_0x02b8;\n case 42: goto L_0x02af;\n default: goto L_0x02a3;\n }\n L_0x02a3:\n com.unboundid.asn1.ASN1OctetString r5 = new com.unboundid.asn1.ASN1OctetString\n int r6 = r15 + 1\n java.lang.String r6 = r1.substring(r15, r6)\n r5.<init>((java.lang.String) r6)\n goto L_0x02b4\n L_0x02af:\n r6 = -121(0xffffffffffffff87, float:NaN)\n r5 = 0\n r13 = -121(0xffffffffffffff87, float:NaN)\n L_0x02b4:\n com.unboundid.asn1.ASN1OctetString[] r6 = NO_SUB_ANY\n r7 = r5\n goto L_0x025b\n L_0x02b8:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_IN_AV\n java.lang.Object[] r5 = new java.lang.Object[r7]\n char r1 = r1.charAt(r15)\n java.lang.Character r1 = java.lang.Character.valueOf(r1)\n r5[r8] = r1\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x02d8:\n if (r5 != 0) goto L_0x02db\n goto L_0x02dc\n L_0x02db:\n r13 = r6\n L_0x02dc:\n java.util.ArrayList r6 = new java.util.ArrayList\n r6.<init>(r9)\n java.lang.StringBuilder r7 = new java.lang.StringBuilder\n int r16 = r10 - r15\n int r8 = r16 + 1\n r7.<init>(r8)\n r8 = r7\n r7 = r15\n r16 = 0\n L_0x02ee:\n if (r7 > r10) goto L_0x03aa\n int r9 = r7 + 1\n char r7 = r1.charAt(r7)\n if (r7 == r12) goto L_0x03a2\n switch(r7) {\n case 40: goto L_0x038a;\n case 41: goto L_0x0372;\n case 42: goto L_0x0301;\n default: goto L_0x02fb;\n }\n L_0x02fb:\n r8.append(r7)\n r7 = r9\n goto L_0x03a6\n L_0x0301:\n if (r5 != 0) goto L_0x035a\n int r7 = r9 + -1\n if (r7 != r15) goto L_0x0309\n r13 = 1\n goto L_0x0356\n L_0x0309:\n r7 = -92\n if (r13 != r7) goto L_0x0341\n int r7 = r8.length()\n if (r7 == 0) goto L_0x0329\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r8 = r8.toString()\n r7.<init>((java.lang.String) r8)\n r6.add(r7)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n int r7 = r10 - r9\n r13 = 1\n int r7 = r7 + r13\n r8.<init>(r7)\n goto L_0x0356\n L_0x0329:\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_DOUBLE_ASTERISK\n java.lang.Object[] r4 = new java.lang.Object[r13]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5 = 0\n r4[r5] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0341:\n r13 = 1\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r8 = r8.toString()\n r7.<init>((java.lang.String) r8)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n int r16 = r10 - r9\n int r12 = r16 + 1\n r8.<init>(r12)\n r16 = r7\n L_0x0356:\n r7 = r9\n r13 = -92\n goto L_0x03a6\n L_0x035a:\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_ASTERISK\n java.lang.Object[] r4 = new java.lang.Object[r13]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5 = 0\n r4[r5] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0372:\n r5 = 0\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CLOSE_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r13]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r9)\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x038a:\n r5 = 0\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_OPEN_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r13]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r9)\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x03a2:\n int r7 = readEscapedHexString(r1, r9, r10, r8)\n L_0x03a6:\n r12 = 92\n goto L_0x02ee\n L_0x03aa:\n r7 = -92\n if (r13 != r7) goto L_0x03be\n int r5 = r8.length()\n if (r5 <= 0) goto L_0x03be\n com.unboundid.asn1.ASN1OctetString r5 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r7 = r8.toString()\n r5.<init>((java.lang.String) r7)\n goto L_0x03bf\n L_0x03be:\n r5 = 0\n L_0x03bf:\n int r7 = r6.size()\n com.unboundid.asn1.ASN1OctetString[] r7 = new com.unboundid.asn1.ASN1OctetString[r7]\n java.lang.Object[] r6 = r6.toArray(r7)\n com.unboundid.asn1.ASN1OctetString[] r6 = (com.unboundid.asn1.ASN1OctetString[]) r6\n r7 = -92\n if (r13 != r7) goto L_0x03d1\n r7 = 0\n goto L_0x03da\n L_0x03d1:\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r8 = r8.toString()\n r7.<init>((java.lang.String) r8)\n L_0x03da:\n r20 = r3\n r22 = r4\n r26 = r5\n r25 = r6\n r23 = r7\n r28 = r11\n r19 = r13\n r27 = r14\n r24 = r16\n r21 = 0\n goto L_0x05ce\n L_0x03f0:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_ATTR_NAME\n r8 = 1\n java.lang.Object[] r4 = new java.lang.Object[r8]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5 = 0\n r4[r5] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0408:\n r8 = 1\n r5 = -95\n int r4 = r4 + r8\n int r3 = r3 + r8\n com.unboundid.ldap.sdk.Filter[] r3 = parseFilterComps(r1, r4, r10, r3)\n com.unboundid.asn1.ASN1OctetString[] r4 = NO_SUB_ANY\n r20 = r3\n r25 = r4\n r19 = -95\n goto L_0x05aa\n L_0x041b:\n r8 = 1\n com.unboundid.ldap.sdk.Filter[] r3 = NO_FILTERS\n com.unboundid.asn1.ASN1OctetString[] r9 = NO_SUB_ANY\n int r4 = r4 + r8\n r8 = r4\n L_0x0422:\n if (r8 > r10) goto L_0x042d\n char r11 = r1.charAt(r8)\n if (r11 == r15) goto L_0x042d\n int r8 = r8 + 1\n goto L_0x0422\n L_0x042d:\n if (r8 > r10) goto L_0x0569\n if (r8 == r4) goto L_0x0551\n int r11 = r8 + 1\n java.lang.String r4 = r1.substring(r4, r8)\n java.lang.String r8 = \"dn\"\n boolean r8 = r4.equalsIgnoreCase(r8)\n if (r8 == 0) goto L_0x04b7\n r4 = r11\n L_0x0440:\n if (r4 >= r10) goto L_0x044b\n char r8 = r1.charAt(r4)\n if (r8 == r15) goto L_0x044b\n int r4 = r4 + 1\n goto L_0x0440\n L_0x044b:\n if (r4 >= r10) goto L_0x049f\n java.lang.String r8 = r1.substring(r11, r4)\n int r11 = r8.length()\n if (r11 == 0) goto L_0x0487\n r11 = 1\n int r4 = r4 + r11\n if (r4 > r10) goto L_0x0465\n char r11 = r1.charAt(r4)\n if (r11 != r14) goto L_0x0465\n r11 = r8\n r7 = 1\n r8 = 1\n goto L_0x04c6\n L_0x0465:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r5 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_MRID\n java.lang.Object[] r6 = new java.lang.Object[r7]\n char r1 = r1.charAt(r4)\n java.lang.Character r1 = java.lang.Character.valueOf(r1)\n r4 = 0\n r6[r4] = r1\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r7 = 1\n r6[r7] = r0\n java.lang.String r0 = r5.get(r6)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x0487:\n r4 = 0\n r7 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r4] = r0\n java.lang.String r0 = r3.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x049f:\n r4 = 0\n r7 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_COLON_AFTER_MRID\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r4] = r0\n java.lang.String r0 = r3.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x04b7:\n r7 = 1\n if (r11 > r10) goto L_0x0539\n char r8 = r1.charAt(r11)\n if (r8 != r14) goto L_0x0539\n r8 = 0\n r29 = r11\n r11 = r4\n r4 = r29\n L_0x04c6:\n int r4 = r4 + r7\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n int r14 = r10 - r4\n int r14 = r14 + r7\n r12.<init>(r14)\n L_0x04cf:\n if (r4 > r10) goto L_0x051a\n char r7 = r1.charAt(r4)\n r14 = 92\n if (r7 != r14) goto L_0x04e0\n int r4 = r4 + 1\n int r4 = readEscapedHexString(r1, r4, r10, r12)\n goto L_0x04cf\n L_0x04e0:\n if (r7 == r6) goto L_0x0502\n if (r7 == r5) goto L_0x04ea\n r12.append(r7)\n int r4 = r4 + 1\n goto L_0x04cf\n L_0x04ea:\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CLOSE_PAREN\n r3 = 1\n java.lang.Object[] r3 = new java.lang.Object[r3]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r5 = 0\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x0502:\n r3 = 1\n r5 = 0\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_OPEN_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r3]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x051a:\n com.unboundid.asn1.ASN1OctetString r4 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r5 = r12.toString()\n r4.<init>((java.lang.String) r5)\n r20 = r3\n r23 = r4\n r28 = r8\n r25 = r9\n r27 = r11\n r19 = -87\n r21 = 0\n r22 = 0\n r24 = 0\n r26 = 0\n goto L_0x05ce\n L_0x0539:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_EQUAL_AFTER_MRID\n r5 = 1\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r6 = 0\n r4[r6] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0551:\n r5 = 1\n r6 = 0\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r6] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0569:\n r5 = 1\n r6 = 0\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_COLON_AFTER_MRID\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r6] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0581:\n r5 = 1\n r6 = 0\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_OPEN_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r5]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r3[r6] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x0599:\n r5 = 1\n r6 = -96\n int r4 = r4 + r5\n int r3 = r3 + r5\n com.unboundid.ldap.sdk.Filter[] r3 = parseFilterComps(r1, r4, r10, r3)\n com.unboundid.asn1.ASN1OctetString[] r4 = NO_SUB_ANY\n r20 = r3\n r25 = r4\n r19 = -96\n L_0x05aa:\n r21 = 0\n goto L_0x05c2\n L_0x05ad:\n r5 = 1\n r6 = -94\n com.unboundid.ldap.sdk.Filter[] r7 = NO_FILTERS\n int r4 = r4 + r5\n int r3 = r3 + r5\n com.unboundid.ldap.sdk.Filter r3 = create(r1, r4, r10, r3)\n com.unboundid.asn1.ASN1OctetString[] r4 = NO_SUB_ANY\n r21 = r3\n r25 = r4\n r20 = r7\n r19 = -94\n L_0x05c2:\n r22 = 0\n r23 = 0\n r24 = 0\n r26 = 0\n r27 = 0\n r28 = 0\n L_0x05ce:\n if (r0 != 0) goto L_0x05ed\n com.unboundid.ldap.sdk.Filter r12 = new com.unboundid.ldap.sdk.Filter\n r0 = r12\n r1 = r30\n r2 = r19\n r3 = r20\n r4 = r21\n r5 = r22\n r6 = r23\n r7 = r24\n r8 = r25\n r9 = r26\n r10 = r27\n r11 = r28\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)\n return r12\n L_0x05ed:\n com.unboundid.ldap.sdk.Filter r3 = new com.unboundid.ldap.sdk.Filter\n r4 = 1\n int r2 = r2 + r4\n java.lang.String r18 = r1.substring(r0, r2)\n r17 = r3\n r17.<init>(r18, r19, r20, r21, r22, r23, r24, r25, r26, r27, r28)\n return r3\n L_0x05fb:\n com.unboundid.ldap.sdk.LDAPException r3 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r4 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r5 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_MISSING_PARENTHESES\n r6 = 1\n java.lang.Object[] r7 = new java.lang.Object[r6]\n int r2 = r2 + r6\n java.lang.String r0 = r1.substring(r0, r2)\n r1 = 0\n r7[r1] = r0\n java.lang.String r0 = r5.get(r7)\n r3.<init>((com.unboundid.ldap.sdk.ResultCode) r4, (java.lang.String) r0)\n throw r3\n L_0x0614:\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_TOO_SHORT\n java.lang.String r2 = r2.get()\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x0622:\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_TOO_DEEP\n java.lang.String r2 = r2.get()\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.ldap.sdk.Filter.create(java.lang.String, int, int, int):com.unboundid.ldap.sdk.Filter\");\n }",
"public com.vodafone.global.er.decoupling.binding.request.InactivateAccount createInactivateAccount()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.InactivateAccountImpl();\n }",
"@Override\n public Account findByAccountNumber(String accountNumber) {\n Query findByAccNum = new Query();\n findByAccNum.addCriteria(Criteria.where(\"accountNumber\").is(accountNumber));\n Account found = operations.findOne(findByAccNum, Account.class);\n return found;\n }",
"public static Message checkFinancialObjectCode(LaborTransaction transaction) {\n String objectCode = transaction.getFinancialObjectCode();\n if (StringUtils.isBlank(objectCode)) {\n return MessageBuilder.buildMessage(KFSKeyConstants.ERROR_OBJECT_CODE_EMPTY, Message.TYPE_FATAL);\n }\n\n Integer fiscalYear = transaction.getUniversityFiscalYear();\n String chartOfAccountsCode = transaction.getChartOfAccountsCode();\n String objectCodeKey = fiscalYear + \"-\" + chartOfAccountsCode + \"-\" + objectCode;\n ObjectCode financialObject = getAccountingCycleCachingService().getObjectCode(((LaborOriginEntry) transaction).getUniversityFiscalYear(), ((LaborOriginEntry) transaction).getChartOfAccountsCode(), ((LaborOriginEntry) transaction).getFinancialObjectCode());\n \n //do we need it?\n transaction.refreshNonUpdateableReferences();\n \n if (ObjectUtils.isNull(financialObject)) {\n return MessageBuilder.buildMessage(KFSKeyConstants.ERROR_OBJECT_CODE_NOT_FOUND, objectCodeKey, Message.TYPE_FATAL);\n }\n return null;\n }",
"public static android.content.Intent newChooseAccountIntent(org.xms.g.common.AccountPicker.AccountChooserOptions param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }",
"public AddressBookExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public Account findByAccountName(Account accountDto) throws Exception {\n\t\tCriteria criteria = new Criteria(\"accountName\").regex(accountDto\n\t\t\t\t.getAccountName());\n\t\treturn mongoTemplate.findOne(Query.query(criteria), Account.class);\n\t}",
"public SearchAddressBookService(\r\n\t\t\tAccountManager<Account> accountManager,\r\n\t\t\tLdapMailDomainManager domainManager,\r\n\t\t\tLdapGlobalContactManager contactManager, \r\n\t\t\tLdapPersonalContactManager personalContactManager,\r\n\t\t\tILdapGroupManager groupManager,\r\n\t\t\tString category){\r\n\t\tsuper(accountManager) ;\r\n\t\t\r\n\t\tthis.domainManager = domainManager;\r\n\t\tthis.contactManager = contactManager;\r\n\t\tthis.personalContactManager = personalContactManager;\r\n\t\tthis.groupManager = groupManager;\r\n\t\tthis.category = category;\r\n\t}",
"void setAccountNumber(java.lang.String accountNumber);",
"public abstract void createAccount(final GDataAccount account)\n throws ServiceException;",
"private Builder(com.opentext.bn.converters.avro.entity.DocumentEvent other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.businessDocumentId)) {\n this.businessDocumentId = data().deepCopy(fields()[0].schema(), other.businessDocumentId);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.containingParentId)) {\n this.containingParentId = data().deepCopy(fields()[1].schema(), other.containingParentId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.containingParentType)) {\n this.containingParentType = data().deepCopy(fields()[2].schema(), other.containingParentType);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.containingParentLevel)) {\n this.containingParentLevel = data().deepCopy(fields()[3].schema(), other.containingParentLevel);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.controlNumber)) {\n this.controlNumber = data().deepCopy(fields()[4].schema(), other.controlNumber);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.controlNumberLevel1)) {\n this.controlNumberLevel1 = data().deepCopy(fields()[5].schema(), other.controlNumberLevel1);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.controlNumberLevel2)) {\n this.controlNumberLevel2 = data().deepCopy(fields()[6].schema(), other.controlNumberLevel2);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.contentKeys)) {\n this.contentKeys = data().deepCopy(fields()[7].schema(), other.contentKeys);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.documentId)) {\n this.documentId = data().deepCopy(fields()[8].schema(), other.documentId);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.documentStandard)) {\n this.documentStandard = data().deepCopy(fields()[9].schema(), other.documentStandard);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.documentStandardVersion)) {\n this.documentStandardVersion = data().deepCopy(fields()[10].schema(), other.documentStandardVersion);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.documentType)) {\n this.documentType = data().deepCopy(fields()[11].schema(), other.documentType);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.envelopeVersion)) {\n this.envelopeVersion = data().deepCopy(fields()[12].schema(), other.envelopeVersion);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.eventId)) {\n this.eventId = data().deepCopy(fields()[13].schema(), other.eventId);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.eventTimestamp)) {\n this.eventTimestamp = data().deepCopy(fields()[14].schema(), other.eventTimestamp);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.fileInfo)) {\n this.fileInfo = data().deepCopy(fields()[15].schema(), other.fileInfo);\n fieldSetFlags()[15] = true;\n }\n this.fileInfoBuilder = null;\n if (isValidValue(fields()[16], other.introspectionSource)) {\n this.introspectionSource = data().deepCopy(fields()[16].schema(), other.introspectionSource);\n fieldSetFlags()[16] = true;\n }\n if (isValidValue(fields()[17], other.introspectionType)) {\n this.introspectionType = data().deepCopy(fields()[17].schema(), other.introspectionType);\n fieldSetFlags()[17] = true;\n }\n if (isValidValue(fields()[18], other.processId)) {\n this.processId = data().deepCopy(fields()[18].schema(), other.processId);\n fieldSetFlags()[18] = true;\n }\n if (isValidValue(fields()[19], other.receiverAddress)) {\n this.receiverAddress = data().deepCopy(fields()[19].schema(), other.receiverAddress);\n fieldSetFlags()[19] = true;\n }\n if (isValidValue(fields()[20], other.senderAddress)) {\n this.senderAddress = data().deepCopy(fields()[20].schema(), other.senderAddress);\n fieldSetFlags()[20] = true;\n }\n if (isValidValue(fields()[21], other.sentDate)) {\n this.sentDate = data().deepCopy(fields()[21].schema(), other.sentDate);\n fieldSetFlags()[21] = true;\n }\n if (isValidValue(fields()[22], other.sentTime)) {\n this.sentTime = data().deepCopy(fields()[22].schema(), other.sentTime);\n fieldSetFlags()[22] = true;\n }\n if (isValidValue(fields()[23], other.taskId)) {\n this.taskId = data().deepCopy(fields()[23].schema(), other.taskId);\n fieldSetFlags()[23] = true;\n }\n if (isValidValue(fields()[24], other.transactionId)) {\n this.transactionId = data().deepCopy(fields()[24].schema(), other.transactionId);\n fieldSetFlags()[24] = true;\n }\n if (isValidValue(fields()[25], other.senderAddressEnvelopeLevel1)) {\n this.senderAddressEnvelopeLevel1 = data().deepCopy(fields()[25].schema(), other.senderAddressEnvelopeLevel1);\n fieldSetFlags()[25] = true;\n }\n if (isValidValue(fields()[26], other.receiverAddressEnvelopeLevel1)) {\n this.receiverAddressEnvelopeLevel1 = data().deepCopy(fields()[26].schema(), other.receiverAddressEnvelopeLevel1);\n fieldSetFlags()[26] = true;\n }\n if (isValidValue(fields()[27], other.functionalCodeEnvelopeLevel1)) {\n this.functionalCodeEnvelopeLevel1 = data().deepCopy(fields()[27].schema(), other.functionalCodeEnvelopeLevel1);\n fieldSetFlags()[27] = true;\n }\n if (isValidValue(fields()[28], other.senderAddressEnvelopeLevel2)) {\n this.senderAddressEnvelopeLevel2 = data().deepCopy(fields()[28].schema(), other.senderAddressEnvelopeLevel2);\n fieldSetFlags()[28] = true;\n }\n if (isValidValue(fields()[29], other.receiverAddressEnvelopeLevel2)) {\n this.receiverAddressEnvelopeLevel2 = data().deepCopy(fields()[29].schema(), other.receiverAddressEnvelopeLevel2);\n fieldSetFlags()[29] = true;\n }\n if (isValidValue(fields()[30], other.functionalCodeEnvelopeLevel2)) {\n this.functionalCodeEnvelopeLevel2 = data().deepCopy(fields()[30].schema(), other.functionalCodeEnvelopeLevel2);\n fieldSetFlags()[30] = true;\n }\n }",
"public EASInBandExceptionDescriptor(final int exception_frequency, final int exception_program_number)\n {\n this.exception_RF_channel = 0;\n this.exception_program_number = exception_program_number & 0xFFFF;\n this.m_exceptionFrequency = exception_frequency;\n }",
"public YpUserAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void setAccountNumber(int accountNumberIn)\r\n\t{\r\n\t\t\r\n\t\tif (accountNumberIn >= ACCOUNT_NUM_MIN && accountNumberIn <= ACCOUNT_NUM_MAX)\r\n\t\t\r\n\t\t\taccountNumber = accountNumberIn;\r\n\t\t\r\n\t\telse\r\n\t\t\taccountNumber = -1;\r\n\t\t\r\n\t}",
"public static org.xms.g.common.AccountPicker dynamicCast(java.lang.Object param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }",
"public Account searchAccounts(Account account) {\n\t\treturn null;\r\n\t}",
"public void setAccount(com.huawei.www.bme.cbsinterface.cbs.businessmgr.Account account) {\r\n this.account = account;\r\n }",
"private Account createAccount(byte[] address) {\n return new Account(address);\n }",
"public FacBuyerExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public EventCode(EventCommand command, RubyObject object, YEventCommandList yecl) {\n\t\tsuper();\n\t\tmodified = false;\n\t\tthis.command = command;\n\t\tthis.object = object;\n\t\tthis.yecl = yecl;\n\t\tid = Integer.valueOf(object.getInstanceVariable(\"@code\").toString());\n\t\tindent = Integer.valueOf(object.getInstanceVariable(\"@indent\").toString());\n\n\t\t// add parameter\n\t\tparameters = new ArrayList<IRubyObject>();\n\t\tCollections.addAll(parameters, ((RubyArray) object.getInstanceVariable(\"@parameters\")).toJavaArray());\n\n\t}",
"public void setOrganizationOwnerAccountNumber(String organizationOwnerAccountNumber) {\n this.organizationOwnerAccountNumber = organizationOwnerAccountNumber;\n \n // if accounts can't cross charts, set chart code whenever account number is set\n AccountService accountService = SpringContext.getBean(AccountService.class);\n if (!accountService.accountsCanCrossCharts()) {\n Account account = accountService.getUniqueAccountForAccountNumber(organizationOwnerAccountNumber);\n if (ObjectUtils.isNotNull(account)) {\n setOrganizationOwnerChartOfAccountsCode(account.getChartOfAccountsCode());\n }\n }\n }",
"protected KualiDecimal calculatePendEncum1(boolean isYearEndDocument, String extrnlEncumFinBalanceTypCd, String intrnlEncumFinBalanceTypCd, String preencumbranceFinBalTypeCd, Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String acctSufficientFundsFinObjCd, boolean isEqualDebitCode, List expenditureCodes) {\n Criteria criteria = new Criteria();\n\n Criteria sub1 = new Criteria();\n sub1.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, extrnlEncumFinBalanceTypCd);\n Criteria sub1_1 = new Criteria();\n sub1_1.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, intrnlEncumFinBalanceTypCd);\n Criteria sub1_2 = new Criteria();\n sub1_2.addEqualTo(OLEConstants.FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME, preencumbranceFinBalTypeCd);\n sub1_1.addOrCriteria(sub1_2);\n sub1.addOrCriteria(sub1_1);\n criteria.addOrCriteria(sub1);\n\n\n criteria.addEqualTo(OLEConstants.UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME, universityFiscalYear);\n criteria.addEqualTo(OLEConstants.CHART_OF_ACCOUNTS_CODE_PROPERTY_NAME, chartOfAccountsCode);\n criteria.addEqualTo(OLEConstants.ACCOUNT_NUMBER_PROPERTY_NAME, accountNumber);\n criteria.addEqualTo(OLEConstants.ACCOUNT_SUFFICIENT_FUNDS_FINANCIAL_OBJECT_CODE_PROPERTY_NAME, acctSufficientFundsFinObjCd);\n criteria.addIn(OLEConstants.FINANCIAL_OBJECT_TYPE_CODE, expenditureCodes);\n\n if (isEqualDebitCode) {\n criteria.addEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n else {\n criteria.addNotEqualTo(OLEConstants.TRANSACTION_DEBIT_CREDIT_CODE, OLEConstants.GL_DEBIT_CODE);\n }\n\n criteria.addNotEqualTo(OLEConstants.DOCUMENT_HEADER_PROPERTY_NAME + \".\" + OLEConstants.DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME, OLEConstants.DocumentStatusCodes.CANCELLED);\n\n if (isYearEndDocument) {\n criteria.addLike(OLEConstants.FINANCIAL_DOCUMENT_TYPE_CODE, YEAR_END_DOC_PREFIX);\n }\n else {\n criteria.addNotLike(OLEConstants.FINANCIAL_DOCUMENT_TYPE_CODE, YEAR_END_DOC_PREFIX);\n }\n\n ReportQueryByCriteria reportQuery = QueryFactory.newReportQuery(GeneralLedgerPendingEntry.class, criteria);\n reportQuery.setAttributes(new String[] { \"sum(\" + OLEConstants.TRANSACTION_LEDGER_ENTRY_AMOUNT + \")\" });\n\n return executeReportQuery(reportQuery);\n\n\n }",
"protected void setAccountName(final String account) {\n this.account = account;\n }",
"public Account searchAccount(String account_no)\n {\n Account account=null;\n \n try\n {\n String query=\"select * from account where account_no=\"+account_no;\n PreparedStatement ps=this.conn.prepareStatement(query);\n \n ResultSet rs=ps.executeQuery();\n \n if(rs.next())\n {\n account=new Account();\n \n account.setAccount_no(rs.getString(\"account_no\"));\n account.setAadhar_id(rs.getString(\"aadhar_no\"));\n account.setAccount_type(rs.getString(\"ac_type\"));\n account.setInterest_rate(rs.getString(\"interest\"));\n account.setBalance(rs.getString(\"balance\"));\n account.setAccount_status(rs.getString(\"ac_status\"));\n account.setName(rs.getString(\"name\"));\n }\n \n }catch(Exception e)\n {\n JOptionPane.showMessageDialog(null,e);\n }\n return account;\n }",
"public DocumentVente(String code, Date date, Tier fornisseur, Date datecommande, String codefourni) {\n this.code = code;\n this.date = date;\n this.client = fornisseur;\n this.datecommande = datecommande;\n this.codeclient = codefourni;\n// this.lieu = emplacement;\n \n }",
"protected Account(AccountType accountType,DateProvider dateProvider,\n\t\t\tInterestCalulator interestCalulator) {\n\t\tthis.accountType = accountType;\n\t\tthis.transactions = new ArrayList<Transaction>();\n\t\tthis.dateProvider=dateProvider;\n\t\tthis.interestCalulator=interestCalulator;\n\t}",
"@Override\n public void prepareForSave(KualiDocumentEvent event) {\n super.prepareForSave(event);\n String accountingPeriodCompositeString = getAccountingPeriodCompositeString(); \n setPostingYear(new Integer(StringUtils.right(accountingPeriodCompositeString, 4)));\n setPostingPeriodCode(StringUtils.left(accountingPeriodCompositeString, 2));\n }",
"public Account(String accountName) throws AccountException{\n\n\t\t\tif (accountName.length() < 5)\n\t\t\t\tthrow new AccountException (AccountException.NAME_TOO_SHORT, accountName);\n\t\t\tboolean valid = true;\n\t\t\tchar[] a = accountName.toCharArray();\n\t\t\tfor (char c: a) {\n\t\t\t\tvalid = ((c >= 'a') && (c <= 'z')) ||\n\t\t\t\t\t\t((c >= 'A') && (c <= 'Z')) ||\n\t\t\t\t\t\t((c >= '0') && (c <= '9'));\n\t\t\t\tif (!valid) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!valid) throw new AccountException (AccountException.NAME_TOO_SIMPLE, accountName);\n\t\t\tthis.name = accountName;\n\t}",
"public void setWallaAccount(EmailVendor wallaAccount) {\r\n WallaAccount = wallaAccount;\r\n }",
"public Savings(Calendar date, User owner1, String currencyCode, int num) {\n super(date, owner1, currencyCode, num);\n }",
"@Test\n public void accountCustomConstructor_isCorrect() throws Exception {\n\n int accountId = 100;\n int userId = 101;\n String accountName = \"account Test Name\";\n double balance = 1000.00;\n\n // Create custom account\n Account account = new Account(accountId, userId, accountName, balance);\n\n // Verify values\n assertEquals(accountId, account.getAccountId());\n assertEquals(userId, account.getUserId());\n assertEquals(accountName, account.getAccountName());\n assertEquals(balance, account.getBalance(), 0);\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"@Override\n protected void generateDocument(Object object, Document document) throws Exception {\n\n if (object instanceof Record) {\n createRecord((Record) object, document);\n } else if (object instanceof RecordCompleteEvent) {\n \tcreateRecordCompleteEvent((RecordCompleteEvent) object, document);\n } else if (object instanceof RecordPauseCommand) {\n createPauseCommand((RecordPauseCommand) object, document);\n } else if (object instanceof RecordResumeCommand) {\n createResumeCommand((RecordResumeCommand) object, document);\n }\n }",
"public AccountChooserOptions(org.xms.g.utils.XBox param0) {\n super(param0);\n }",
"public void setDocumentTypeCode(java.lang.String documentTypeCode) {\n this.documentTypeCode = documentTypeCode;\n }",
"public static void addAccount(Account account) throws Exception\n\t{\n\t\tif(Application.getAccountLibrary().getAccount(account.getUsername()) == null)\n\t\t{\n\t\t\tif(!Application.getAccountLibrary().addAcount(account))\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Failed to add account\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception(\"Username already taken\");\n\t\t}\n\t}",
"public AccountsRecord() {\n super(Accounts.ACCOUNTS);\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public LockableAccount(java.lang.String userNameIn, int accountNumberIn, java.lang.String emailAddressIn, java.lang.String passwordIn)\r\n\t{\r\n\t\tuserName = userNameIn; \r\n\t\temailAddress = emailAddressIn;\r\n\t\tpassword = passwordIn;\r\n\t\tif (accountNumberIn >= ACCOUNT_NUM_MIN && accountNumberIn <= ACCOUNT_NUM_MAX)\r\n\t\t\t\r\n\t\t\taccountNumber = accountNumberIn;\r\n\t\t\r\n\t\telse\r\n\t\t\taccountNumber = -1;\r\n\t\t\r\n\t\t\r\n\t}",
"public void addAccount() {\n\t\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please enter name\");\n String custName = scan.next();\n validate.checkName(custName);\n \t\tlog.log(Level.INFO, \"Select Account Type: \\n 1 for Savings \\n 2 for Current \\n 3 for FD \\n 4 for DEMAT\");\n\t\t\tint bankAccType = Integer.parseInt(scan.next());\n\t\t\tvalidate.checkAccType(bankAccType);\n\t\t\tlog.log(Level.INFO, \"Please Enter your Aadar Card Number\");\n\t\t\tString aadarNumber = scan.next();\n\t\t\tlog.log(Level.INFO, \"Please Enter Phone Number: \");\n\t\t\tString custMobileNo = scan.next();\n\t\t\tvalidate.checkPhoneNum(custMobileNo);\n\t\t\tlog.log(Level.INFO, \"Please Enter Customer Email Id: \");\n\t\t\tString custEmail = scan.next();\n\t\t\tvalidate.checkEmail(custEmail);\n\t\t\tbankop.add(accountNumber, custName, bankAccType, custMobileNo, custEmail, aadarNumber);\n\t\t\taccountNumber();\n\t\t\n\t\t} catch (AccountDetailsException message) {\n\t\t\tlog.log(Level.INFO, message.getMessage()); \n }\n\n\t}",
"private FbEvent cursorToEvent(Cursor cursor) {\n\t\tFbEvent event = new FbEvent();\n\t\tevent.setId(cursor.getString(0));\n\t\tevent.setName(cursor.getString(1));\n\t\tevent.setPicture(cursor.getString(2));\n\t\tevent.setRsvp_status(cursor.getString(3));\n\t\tevent.setStart_time(cursor.getLong(4));\n\t\tevent.setEnd_time(cursor.getLong(5));\n\t\tevent.setLocation(cursor.getString(6));\n\t\tevent.setVenueLongitude(cursor.getDouble(7));\n\t\tevent.setVenueLatitude(cursor.getDouble(8));\n\t\tString friendsAttending = cursor.getString(9);\n\t\tevent.setFriendsAttending(Attendee.getAttendeesListFromStr(friendsAttending));\n\t\treturn event;\n\t}"
]
| [
"0.60051095",
"0.48459178",
"0.47463527",
"0.47095534",
"0.47095534",
"0.47001663",
"0.46945232",
"0.46888235",
"0.4586711",
"0.4508003",
"0.44246018",
"0.4422641",
"0.44167864",
"0.4356616",
"0.43327424",
"0.43046618",
"0.42808327",
"0.4268289",
"0.4266982",
"0.42590526",
"0.42420542",
"0.42123908",
"0.4195879",
"0.41534027",
"0.41487578",
"0.41233045",
"0.4121506",
"0.4095398",
"0.40854862",
"0.4077806",
"0.40692046",
"0.40614453",
"0.40614453",
"0.40614453",
"0.40614453",
"0.40610772",
"0.4060664",
"0.40524033",
"0.40524033",
"0.40334487",
"0.40308303",
"0.40282366",
"0.39879212",
"0.3986463",
"0.39839205",
"0.397058",
"0.3967772",
"0.39484796",
"0.39469427",
"0.39405656",
"0.39273256",
"0.39208022",
"0.39202726",
"0.39145342",
"0.39130118",
"0.39054212",
"0.39051175",
"0.39040935",
"0.38999978",
"0.38982615",
"0.38945413",
"0.3884774",
"0.38820064",
"0.38780555",
"0.38769206",
"0.38662422",
"0.38629428",
"0.38562244",
"0.38528803",
"0.38474566",
"0.3844035",
"0.38426527",
"0.38417456",
"0.3838327",
"0.38299116",
"0.38283226",
"0.38273236",
"0.38272908",
"0.38188595",
"0.3812023",
"0.3807765",
"0.38051048",
"0.37985036",
"0.37901196",
"0.37843296",
"0.3782174",
"0.37785265",
"0.3776057",
"0.37743455",
"0.3772618",
"0.3772618",
"0.37657103",
"0.37546456",
"0.37484598",
"0.37475315",
"0.37453607",
"0.3741733",
"0.3741039",
"0.37384814",
"0.37355876"
]
| 0.8959794 | 0 |
Overridden to call parent and then clean up the error messages. | @Override
public boolean invokeRuleMethod(BusinessRule rule) {
boolean result = super.invokeRuleMethod(rule);
cleanErrorMessages();
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cleanErrorMessages() {\r\n\r\n }",
"@Override\n public void clearError() {\n\n }",
"public void clearErrors() {\n super.resetErrors();\n }",
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"public abstract void setError(String message);",
"protected void finalizeSystemErr() {}",
"protected ValidationException() {\r\n\t\t// hidden\r\n\t}",
"void reloadStandardErrorMessages();",
"@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}",
"@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\r\n\tprotected void processError() {\n\t\tsuper.processError();\r\n\t\tshowToast(error_generico_process);\r\n\t}",
"protected ErrorResponse()\n {\n super();\n }",
"protected abstract void error(String err);",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"@Override\n protected void cleanUp() throws AbortException {\n }",
"private void clearErrorMessage() {\n errorMessageLabel.clear();\n }",
"void setError();",
"protected void failed()\r\n {\r\n //overwrite\r\n }",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"@Override\n\tpublic void calculateError() {\n\t\t\n\t}",
"private void clearOldErrorsFromViews() {\n clearGrid(nonFieldErrorGrid);\n clearGrid(fieldErrorGrid);\n showErrorBox(nonFieldErrorBox);\n showErrorBox(fieldErrorBox);\n }",
"public ErrorGUI() {\n\t\terror = new Error();\n\t\t\n\t}",
"@Override\n public void showError() {\n }",
"@Override\n public void cleanup() {\n \n }",
"@Override\n public void cleanup() {\n \n }",
"public Error(String message) {\r\n \tsuper(message);\r\n \t}",
"@Override\n\tpublic void error(CharSequence message, Throwable t) {\n\n\t}",
"private void clearErrorSource() {\n if ( _helper != null )\n _helper.clearErrorSource();\n }",
"@Override\n\tpublic void error(Message msg) {\n\n\t}",
"@Override\n public void onError() {\n\n }",
"@Override\n\tpublic void error(Object message) {\n\n\t}",
"@Override\n\t\tpublic void loadError() {\n\t\t}",
"public void cleanUp(){\n //Clean up the parent class, i.e. close pipes.\n super.cleanUp();\n }",
"public void Error(){\n }",
"public ExecutionError(Error cause) {\n/* 58 */ super(cause);\n/* */ }",
"private void clearValidationError() {\n\n\t\tdataValid = false;\n\n\t\tvalidationErrorPending = false;\n\t\tvalidationErrorParent = null;\n\t\tvalidationErrorTitle = null;\n\t\tvalidationErrorMessage = null;\n\t\tvalidationErrorType = 0;\n\t}",
"@Override\n protected void adicionarLetrasErradas() {\n }",
"public G_DocumentError() {}",
"protected void errorMessage( String message, OutputStream out ) throws IOException {\n out.write( message.getBytes() );\n error(message);\n }",
"public Builder clearErrorInfo() {\n \n errorInfo_ = getDefaultInstance().getErrorInfo();\n onChanged();\n return this;\n }",
"public Builder clearErrorInfo() {\n \n errorInfo_ = getDefaultInstance().getErrorInfo();\n onChanged();\n return this;\n }",
"public Builder clearErrorInfo() {\n \n errorInfo_ = getDefaultInstance().getErrorInfo();\n onChanged();\n return this;\n }",
"public Builder clearErrorInfo() {\n \n errorInfo_ = getDefaultInstance().getErrorInfo();\n onChanged();\n return this;\n }",
"public abstract void disableErrors();",
"@Override\n protected void onCancelled() {\n super.onCancelled();\n }",
"public void resetRecentError() throws OXException {\n errorHandler.removeRecentException();\n }",
"@Override\n public QueryStatusMessage reset() {\n super.reset();\n cause = \"\";\n status = null;\n return this;\n }",
"public void handleErrors() {\n // hook method\n }",
"protected void ERROR(String message)\n\t{\n\t\t//allow children to modify output\n\t\tPRINT(message);\n\t\tSystem.exit(1);\n\t}",
"private void displayValidationError() {\n\n\t\tif (null != validationErrorTitle) {\n\t\t\tvalidationErrorParent.toFront();\n\t\t\tAppController.showMessage(validationErrorParent, validationErrorMessage, validationErrorTitle,\n\t\t\t\tvalidationErrorType);\n\t\t}\n\n\t\tclearValidationError();\n\t}",
"private ErrorFactory() {\r\n\t}",
"private ValidationError() {\n }",
"public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }",
"@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}",
"public Builder clearError() {\n\n error_ = getDefaultInstance().getError();\n onChanged();\n return this;\n }",
"protected BaseErrorRequest(final byte[] request) {\n super(request);\n this.errorDescription = null;\n }",
"public ShopingCartException(String err) {\n\tsuper(err); // call super class constructor\n\tmistake = err; // save message\n }",
"@Override\n public void onFailure(Throwable t) {\n errorOut();\n }",
"private void clearErrors() {\n cvvTil.setError(null);\n cardExpiryTil.setError(null);\n cardNoTil.setError(null);\n\n cvvTil.setErrorEnabled(false);\n cardExpiryTil.setErrorEnabled(false);\n cardNoTil.setErrorEnabled(false);\n\n }",
"public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }",
"@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}",
"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}",
"public void inquiryError() {\n\t\t\n\t}",
"private void clearErrors()\n {\n ConstraintLayout.LayoutParams usernameParams = (ConstraintLayout.LayoutParams) etUsername.getLayoutParams();\n usernameParams.setMargins(32,72,32,0);\n etUsername.setLayoutParams(usernameParams);\n\n ConstraintLayout.LayoutParams passwordParams = (ConstraintLayout.LayoutParams) etPassword.getLayoutParams();\n passwordParams.setMargins(32,72,32,0);\n etPassword.setLayoutParams(passwordParams);\n\n ConstraintLayout.LayoutParams createAccountParams = (ConstraintLayout.LayoutParams) btnCreateAccount.getLayoutParams();\n createAccountParams.setMargins(32,72,32,72);\n btnCreateAccount.setLayoutParams(createAccountParams);\n\n etEmail.setBackgroundResource(R.drawable.edit_text);\n etUsername.setBackgroundResource(R.drawable.edit_text);\n etPassword.setBackgroundResource(R.drawable.edit_text);\n tvEmailError.setText(\"\");\n tvEmailError.setVisibility(View.GONE);\n tvUsernameError.setText(\"\");\n tvUsernameError.setVisibility(View.GONE);\n tvPasswordError.setText(\"\");\n tvPasswordError.setVisibility(View.GONE);\n\n }",
"public boolean proceedOnErrors() {\n return false;\n }",
"protected abstract String persistFailedMessage();",
"@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t}",
"@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t}",
"@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"abstract void error(String error);",
"@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}",
"@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}",
"public void errorCleanUp(String strErr, boolean gcFlag) {\r\n\r\n if (gcFlag == true) {\r\n System.gc();\r\n }\r\n\r\n if (strErr != null) {\r\n displayError(strErr);\r\n }\r\n\r\n setCompleted(false);\r\n setThreadStopped(true);\r\n disposeProgressBar();\r\n\r\n if (destImage != null) {\r\n destImage.releaseLock();\r\n }\r\n }",
"private void initErrorState()\n\t{\n\t\tthis.initErrorPath();\n\t\tthis.initErrorLoopCount();\n\t}",
"@Override\n\tprotected void setErrorMessage(String errorMessage) {\n\t\tsuper.setErrorMessage(errorMessage);\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0) {\n\n\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"protected void validate() {\n // no implementation.\n }",
"@Override\n public String getErrorMessage() {\n return super.getErrorMessageString();\n }",
"@Override\n public String getErrorMessage() {\n return null;\n }",
"@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}",
"protected void handleError(String error, boolean fromSysErr) {}",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"@Override\n\t\t\tpublic void onCancelled(FirebaseError arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onCancelled(FirebaseError arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onCancelled(FirebaseError arg0) {\n\n\t\t\t}",
"@Override\n public void visitErrorNode(ErrorNode node) {\n\n }",
"@Override\r\n\tprotected void validate() {\n\t}",
"@Override\r\n protected void finalize() throws Throwable {\r\n super.finalize();\r\n dispose();\r\n }",
"protected void handleCleanup() {\r\n\t\t// Implement in subclass\r\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void setEmptyError() {\n\t\tnew Customdialog_Base(this, \"정보를 모두 입력해 주세요.\").show();\n\t}",
"public void clearErrors() {\n\t\tnameCG.setClassName(\"control-group\");\n\t\tdescriptionCG.setClassName(\"control-group\");\n\t\tpriceCG.setClassName(\"control-group\");\n\n\t\tvalidationButton.setVisible(false);\n\t\tvalidationPanel.setVisible(false);\n\t}",
"protected void cleaningUp() {\n\t}",
"@SuppressWarnings(\"unused\")\n protected void error(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isErrorEnabled()) {\n this.getContainer().getLogger().error(msg);\n }\n }",
"public void correctErrors();",
"protected void finalize()throws Throwable{\t\t\n //---------------------------------------------------------------------------\n super.finalize();\n\t}"
]
| [
"0.7287438",
"0.70032305",
"0.68929285",
"0.656342",
"0.60916036",
"0.60913956",
"0.60904723",
"0.6070622",
"0.6065236",
"0.6060961",
"0.60570574",
"0.6055521",
"0.6001887",
"0.60013187",
"0.5982931",
"0.59376",
"0.5921015",
"0.59039694",
"0.58896047",
"0.58756566",
"0.5863059",
"0.58628213",
"0.5859685",
"0.58421105",
"0.5832346",
"0.5832346",
"0.5825519",
"0.58070725",
"0.57979167",
"0.5791446",
"0.5789496",
"0.5752323",
"0.57490444",
"0.5738381",
"0.57187593",
"0.5716177",
"0.5690185",
"0.56868464",
"0.56805444",
"0.5674643",
"0.56630176",
"0.56630176",
"0.56630176",
"0.56630176",
"0.5656791",
"0.56514895",
"0.56504095",
"0.56414247",
"0.5638132",
"0.5636136",
"0.56231946",
"0.56221735",
"0.5606949",
"0.5605527",
"0.5604357",
"0.55987406",
"0.5589073",
"0.5567188",
"0.55572337",
"0.55546635",
"0.55481577",
"0.55471444",
"0.55416906",
"0.5540732",
"0.55383724",
"0.55341196",
"0.5532899",
"0.55269796",
"0.55269796",
"0.55269796",
"0.55247533",
"0.5521775",
"0.55212396",
"0.5518514",
"0.55182046",
"0.55160433",
"0.55152774",
"0.5512785",
"0.5509596",
"0.550907",
"0.550907",
"0.5508863",
"0.5504521",
"0.55024517",
"0.55006087",
"0.550037",
"0.549746",
"0.54839486",
"0.54839486",
"0.54839486",
"0.5482482",
"0.5481518",
"0.54748154",
"0.5471847",
"0.546937",
"0.54673713",
"0.54640275",
"0.54598",
"0.5458122",
"0.54561216",
"0.54531384"
]
| 0.0 | -1 |
Logic to replace generic amount error messages, especially those where extraordinarily large amounts caused format errors | public void cleanErrorMessages() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}",
"public void InvalidFormat();",
"public interface UpdateErrorCodes {\n\n /**\n * Indicates that the entire Update File has an IO Error.\n */\n public static final int ERROR_FILE_IO = -1;\n \n /**\n * Indicates that an Update File has a file length that is less than the \n * minimum configurable value and is invalid.\n */\n public static final int ERROR_FILE_LENGTH_LESS_THAN_CONFIG_VALUE = -2;\n\n /**\n * Indicates that an Update File has a file length that is not processable\n * and is invalid. File length error for Member Update file.\n */\n public static final int ERROR_FILE_LENGTH_INVALID_MEMBER = -3;\n\n /**\n * Indicates that the entire Update File is missing the Affiliate Number.\n */\n public static final int ERROR_FILE_MISSING_AFFILIATE_NUMBER = -4;\n\n /**\n * Indicates that the entire Update File is missing the Affiliate Member Number.\n */\n public static final int ERROR_FILE_MISSING_AFFILIATE_MEMBER_NUMBER = -5;\n\n /**\n * Indicates that the entire Update File has zip code as all zeroes or blanks.\n */\n public static final int ERROR_FILE_ZIP_ZERO_OR_BLANK = -6;\n\n\n /**\n * Indicates that an Update File has a file length that is not processable\n * and is invalid. File length error for Rebate Update file.\n */\n public static final int ERROR_FILE_LENGTH_INVALID_REBATE = -7;\n\n /**\n * Indicates that the entire Update File is missing the Afscme Member Number.\n */\n public static final int ERROR_FILE_MISSING_AFSCME_MEMBER_NUMBER = -8;\n\n /**\n * Indicates that the entire Update File is missing or has invalid Acceptance Code.\n */\n public static final int ERROR_FILE_INVALID_ACCEPTANCE_CODE = -9;\n\n \n /**\n * Error Message for Update File with an IO Error.\n */\n public static final String COMMENT_ERROR_FILE_IO = \"Update File Error - File I/O Error \";\n \n /**\n * Error Message for Update File with less than configurable value.\n */\n public static final String COMMENT_ERROR_FILE_LENGTH_LESS_THAN_CONFIG_VALUE = \"Update File Length is Less than Configurable Length Value \";\n\n /**\n * Error Message for Update File with an invalid file length. File length error for Member Update file.\n */\n public static final String COMMENT_ERROR_FILE_LENGTH_INVALID_MEMBER = \"Update File Length has Invalid Length (must be 200 character length) \";\n\n /**\n * Error Message for entire Update File with missing Affiliate Number.\n */\n public static final String COMMENT_ERROR_FILE_MISSING_AFFILIATE_NUMBER = \"Update File has all Affiliate Numbers Missing \";\n\n /**\n * Error Message for entire Update File with missing Affiliate Member Number.\n */\n public static final String COMMENT_ERROR_FILE_MISSING_AFFILIATE_MEMBER_NUMBER = \"Update File has all Affiliate Member Numbers Missing \";\n\n /**\n * Error Message for entire Update File with zip codes as all zeroes or blanks.\n */\n public static final String COMMENT_ERROR_FILE_ZIP_ZERO_OR_BLANK = \"Update File has all Zip Codes with Zeroes or Blanks \";\n\n /**\n * Error Message for Update File with an invalid file length. File length error for Rebate Update file.\n */\n public static final String COMMENT_ERROR_FILE_LENGTH_INVALID_REBATE = \"Update File Length has Invalid Length (must be 284 character length) \";\n\n /**\n * Error Message for entire Update File with missing Afscme Member Number. File error for Rebate Update file.\n */\n public static final String COMMENT_ERROR_FILE_MISSING_AFSCME_MEMBER_NUMBER = \"Update File has all AFSCME Member Numbers Missing \";\n\n /**\n * Error Message for entire Update File with missing or invalid Acceptance Code. File error for Rebate Update file.\n */\n public static final String COMMENT_ERROR_FILE_INVALID_ACCEPTANCE_CODE = \"Update File has all Acceptance Codes Missing or Invalid \";\n \n}",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"public static void invalidShowRemainingLimitPrinter() {\n System.out.println(line);\n System.out.println(INVALID_FORMAT_MSG);\n System.out.println(SHOW_FORMAT_MSG);\n System.out.println(line);\n }",
"@FormatMethod\n private void reportError(@FormatString String message, Object... arguments) {\n errorReporter.reportError(scanner.getPosition(), message, arguments);\n }",
"@Override\r\n public String getMessage() {\r\n return ErrorMessage.STATUS_FORMATTING_IN_FILE_ERROR;\r\n }",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"private String formatError(String message) {\n return \"error : \" + message;\n }",
"@Override\n public String format(Object... args) {\n return new JSONObject(new FlowError(\n (long) args[0],\n (String) args[1],\n (String) args[2],\n (String) args[3],\n (String) args[4],\n (String) args[5],\n (String) args[6]),\n new String[] { moduleId, moduleName, flowId, flowTitle, correlationId, errorType, errorMessage })\n .toString(2);\n }",
"private void validateLine1304(Errors errors) {\n }",
"@FormatMethod\n private void reportError(\n SourcePosition position, @FormatString String message, Object... arguments) {\n errorReporter.reportError(position, message, arguments);\n }",
"private void err4() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand4.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand4.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand4.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand4.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}",
"private String errors() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(impossibleLapTime());\n\t\tsb.append(multipleStartTimes());\n\t\treturn sb.toString();\n\t}",
"private void wrapError(String code, String message) {\r\n recentErrorCode = code;\r\n\r\n\t\t/* \r\n\t\t *\t<error>\r\n\t\t *\t\t<code>TEAL_8453</code>\r\n\t\t *\t\t<message>[request_id=201203082] Failed to create a process module by wrong value of a parameter(=topic_id)</message>\r\n\t\t *\t</error>\r\n\t\t *\r\n\t\t *\t<error>\r\n\t\t *\t\t<code>TEAL_4410</code>\r\n\t\t *\t\t<message>Topic ID <1000> does not exist.</message>\r\n\t\t *\t</error> \r\n\t\t*/\r\n if (\"TEAL_8453\".equals(recentServerErrorCode)) {\r\n recentErrorCode = \"APIL_0155\";\r\n recentErrorMessage = message + \": argument's not valid (server-side): \" + recentServerErrorMessage;\r\n } else if (\"TEAL_4410\".equals(recentServerErrorCode)) {\r\n recentErrorCode = \"APIL_0161\";\r\n recentErrorMessage = message + \": topic ID's not exist\";\r\n } else {\r\n recentErrorMessage = message + \" DUE TO [\" + recentServerErrorCode + \": \" + recentServerErrorMessage + \"]\";\r\n }\r\n\r\n recentServerErrorMessage = \"\";\r\n\r\n if (consoleLog) {\r\n System.out.println(\"[E!:\" + recentErrorCode + \"] \" + recentErrorMessage);\r\n }\r\n }",
"@FormatMethod\n private void reportError(ParseTree parseTree, @FormatString String message, Object... arguments) {\n if (parseTree == null) {\n reportError(message, arguments);\n } else {\n errorReporter.reportError(parseTree.location.start, message, arguments);\n }\n }",
"@ResponseBody\n @ExceptionHandler(InvalidFieldFormatException.class)\n @ResponseStatus(HttpStatus.BAD_REQUEST)\n String wrongFieldFormatHandler(InvalidFieldFormatException ex) {\n return ex.getMessage();\n }",
"@Override\n protected void dataParser() {\n for (String dataLine : dataFile) {\n if (totalErrors > 200) {\n totalErrors = 0;\n throw new RuntimeException(\n \"File rejected: more than 200 lines contain errors.\\n\" + getErrorMessage(false));\n }\n parseLine(dataLine);\n }\n }",
"public void correctErrors();",
"private static void generateError(int i, int j, int k) {\n\t\t\n\t\tswitch(i) {\n\t\t\n\t\t\tcase 0: // CHEP\n\t\t\t\tswitch(k) {\n\t\t\t\t\tcase 1: // date\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid invoice number. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;;\n\t\t\t\t\tcase 2: // date\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid region. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\terr_msg = \"Error: The percentages of total invoices are invalid. The sum of all percentages should be 100%\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid net total. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;;\n\t\t\t\t}\n\t\t\t\t\n\t\t\tcase 1: // Delivery\n\t\t\t\tswitch(k) {\n\t\t\t\tcase 2: \n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tcase 4:\n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid amount. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tcase 5: \n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid reference number. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tcase 6:\n\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid delivery date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\treturn;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tswitch(k) {\n\t\t\t\t\tcase 2: \n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid date. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid amount. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tcase 5: \n\t\t\t\t\t\terr_msg = \"Error: Invoice Entry Number \" + j+1 + \" has an invalid reference number. [Value Entered: '\" + data[j][k] +\"']\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}",
"private void updateErrorText()\n {\n mErrorText.clear();\n mErrorText.clearSpans();\n final int length = mTextInputLayout.getText().length();\n if(length >= 0){\n mErrorText.append(String.valueOf(length));\n mErrorText.append(\" / \");\n mErrorText.append(String.valueOf(mMaxLen));\n mErrorText.setSpan(mAlignmentSpan, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n if(hasValidLength()){\n mErrorText.setSpan(mNormalTextAppearance, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n }\n }\n mCharacterLimit.setText(mErrorText);\n }",
"private void parseError(String s) throws FSException {\n\n // set up our error block\n error=new String[6];\n error[0]=s;\n error[1]=(new Integer(code.getCurLine())).toString();\n error[2]=code.getLineAsString();\n error[3]=tok.toString();;\n error[4]=vars.toString();\n if (gVars!=null) error[5]=(gVars==null)?\"\":gVars.toString();\n\n // build the display string\n s=\"\\n\\t\"+s+\"\\n\"+getContext();\n\n throw new FSException(s);\n }",
"private static String getFormat(final ArrayList<String> expressions) {\n int length = MAX_EXCEPTION_LENGTH;\n for (String e : expressions) {\n if (e.length() > length)\n length = e.length();\n }\n return \"%\" + Integer.toString(length + \"\\t\".length()) + \"s\";\n }",
"public void stinException(String nameField, Editable stringAnalize, int max) throws Exceptions {\n if(stringAnalize.toString().isEmpty()){\n throw new Exceptions(\"You need to insert the \"+nameField);\n }\n if(stringAnalize.length()>max){\n throw new Exceptions(\"You need to insert less than \"+max+\" characters\");\n }\n try{\n if(Double.parseDouble(stringAnalize.toString())!=321312.123) {\n throw new Exceptions(\"The \" + nameField + \" could not be a number\");\n }\n }catch(Exceptions fs){\n throw new Exceptions(\"The \" + nameField + \" could not be a number\");\n }catch(Exception e){\n }\n }",
"private void err3() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand3.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand3.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand3.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand3.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}",
"private String getGUIErrorMsg(long errorcode) {\n\t\tif (errorcode == 0) {\n\t\t\treturn \"This popup shouldn't have launched!\";\n\t\t} else if (errorcode == 9) {\n\t\t\treturn \"Latitude input format incorrect!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 10) {\n\t\t\treturn \"Longitude input format incorrect!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 11) {\n\t\t\treturn \"Date input format incorrect!\\nValid dates go <year>-<month>-<day>\\nValid month values are 1- 12 and valid day values are 1 - 31.\";\n\t\t} else if (errorcode == 12) {\n\t\t\treturn \"Time input format incorrect!\\nValid times go <hour>-<minute>-<second>\\nValid hour values are 0 - 23 and valid minute and second values are 0 - 59\";\n\t\t} else if (errorcode == 1) {\n\t\t\treturn \"Invalid latitude!\\nValid Latitude values are -90 to 90 with negative values being south Latitude.\";\n\t\t} else if (errorcode == 2) {\n\t\t\treturn \"Invalid Longitude!\\nValid Longitude values are -180 to 180 with negative values being west latitude.\";\n\t\t} else if (errorcode == 3) {\n\t\t\treturn \"Invalid Year!\\nValid year values are \" + Integer.MIN_VALUE + \" - \" + Integer.MAX_VALUE + \".\";\n\t\t} else if (errorcode == 4) {\n\t\t\treturn \"Invalid Month!\\nValid month values are 1 - 12\";\n\t\t} else if (errorcode == 5) {\n\t\t\treturn \"Invalid Day!\\nValid day values are 1 - 31\";\n\t\t} else if (errorcode == 6) {\n\t\t\treturn \"Invalid Hour!\\nValid hour values are 0 - 23\";\n\t\t} else if (errorcode == 7) {\n\t\t\treturn \"Invalid Minute!\\nValid minute values are 0 - 59\";\n\t\t} else if (errorcode == 8) {\n\t\t\treturn \"Invalid Second!\\nValid second values are 0 - 59\";\n\t\t} \n\t\treturn \"Undefined Error Message!\";\n\t}",
"public void checkErrorLimit(int increment) {\n errorCounter += increment;\n if (errorCounter >= AppyAdService.getInstance().maxErrors()) {\n setAdProcessing(false);\n // todo ????\n }\n }",
"public static void logErrorIfTooManyWarnings(int warningsPerHundred) {\n }",
"private BNGLError parseError(String s)\n\t{\n\t\ts = s.substring(s.indexOf(\" \")).trim();\n\t\t\n\t\t// get the line number\n\t\tint line = Integer.parseInt(s.substring(0, s.indexOf(\":\")));\n\t\t\n\t\t// chomp \"12:2 \"\n\t\ts = s.substring(s.indexOf(\" \")).trim();\n\t\t\n\t\treturn new BNGLError(m_file, line , s);\n\t}",
"String getErrorLinePattern();",
"String getInvalidMessage();",
"void handleBadRecordFormat(String line);",
"public static String getErrorDescription(int errCode) {\n switch (errCode) {\n case ERROR_PACKET_HEADER:\n return \"Invalid packet header\";\n case ERROR_PACKET_TYPE:\n return \"Invalid packet type\";\n case ERROR_PACKET_LENGTH:\n return \"Invalid packet length\";\n case ERROR_PACKET_ENCODING:\n return \"Unsupported packet encoding\";\n case ERROR_PACKET_PAYLOAD:\n return \"Invalid packet payload\";\n case ERROR_PACKET_CHECKSUM:\n return \"Invalid checksum\";\n case ERROR_PACKET_ACK:\n return \"Invalid ACL sequence\";\n case ERROR_PROTOCOL_ERROR:\n return \"Protocol error\";\n case ERROR_PROPERTY_READ_ONLY:\n return \"Property is read-only\";\n case ERROR_PROPERTY_WRITE_ONLY:\n return \"Property is write-only\";\n case ERROR_PROPERTY_INVALID_ID:\n return \"Invalid/Unrecognized property key\";\n case ERROR_PROPERTY_INVALID_VALUE:\n return \"Invalid propery value\";\n case ERROR_PROPERTY_UNKNOWN_ERROR:\n return \"Unknown property error\";\n case ERROR_COMMAND_INVALID:\n return \"Invalid/Unsupported command\";\n case ERROR_COMMAND_ERROR:\n return \"Command error\";\n case ERROR_UPLOAD_TYPE:\n return \"Invalid upload type\";\n case ERROR_UPLOAD_LENGTH:\n return \"Invalid upload length\";\n case ERROR_UPLOAD_OFFSET_OVERLAP:\n return \"Upload offset overlap\";\n case ERROR_UPLOAD_OFFSET_GAP:\n return \"Upload offset gap\";\n case ERROR_UPLOAD_OFFSET_OVERFLOW:\n return \"Upload offset overflow\";\n case ERROR_UPLOAD_FILE_NAME:\n return \"Invalid uploaded filename\";\n case ERROR_UPLOAD_CHECKSUM:\n return \"Invalid uploaded checksum\";\n case ERROR_UPLOAD_SAVE:\n return \"Unable to save uploaded file\";\n case ERROR_GPS_EXPIRED:\n return \"GPS fix expired\";\n case ERROR_GPS_FAILURE:\n return \"GPS failure\";\n }\n if ((errCode >= ERROR_INTERNAL_ERROR_00) && (errCode <= ERROR_INTERNAL_ERROR_0F)) {\n return \"Internal error\";\n }\n return \"Unknown [\" + StringTools.toHexString(errCode, 16) + \"]\";\n }",
"String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }",
"public void makeErrors() {\n Random rnd = new Random();\n String charset = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz\";\n for (int i = 0; i < message.length(); i += 3) {\n message.setCharAt(i + rnd.nextInt(3),\n charset.charAt(rnd.nextInt(charset.length())));\n }\n }",
"public String checkFormat() {\r\n\t\t\r\n\t\tString msg = null;\r\n\t\t\r\n\t\ttry {\t\t\t\t\t\t\t\t\t\t\t//input is not a number\r\n\t\t\t\r\n\t\t\tDouble.parseDouble(price.getText());\r\n\t\t\tInteger.parseInt(quantity.getText());\r\n\t\t\t \r\n\t\t}\r\n\t\t\r\n\t\tcatch(Exception e) {\r\n\t\t\t\r\n\t\t\treturn msg = \"Data format is invalid\";\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(name.getText().isEmpty() \t\t\t\t\t//wine name is empty\r\n\t\t\t\t|| name.getText().length() > 30\t\t\t//wine name is more than 30 letters\r\n\t\t\t\t\t|| quantity.getText().isEmpty()\t\t//quantity is empty\r\n\t\t\t\t\t\t||price.getText().isEmpty()\t\t//price is empty\r\n\t\t\t\t\t\t\t||((!(price.getText().length() - price.getText().indexOf('.') == 3))\t//price is not two decimal spaces \r\n\t\t\t\t\t\t\t\t\t&& price.getText().indexOf('.') != -1))\r\n\t\t{\r\n\t\t\t\r\n\t\t\tmsg = \"Data format is invalid\";\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tmsg = null;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn msg;\r\n\t\t\r\n\t}",
"@ExceptionHandler(value = {NumberFormatException.class})\r\n\tpublic ResponseEntity<DefaultErrorList> handleValidationExceptionB(NumberFormatException pe, HttpServletRequest request) {\r\n \tLOGGER.warn(\"Excepcion de formatos de numeros de entrada, {}\", pe.getMessage());\r\n\t\treturn new ResponseEntity<DefaultErrorList>(new DefaultErrorList(new DefaultError(GeneralCatalog.GRAL002.getCode(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGeneralCatalog.GRAL002.getMessage(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGeneralCatalog.GRAL002.getLevelException().toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Excepcion de formatos de numeros de entrada\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trequest.getRequestURL().toString()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)), GeneralCatalog.GRAL002.getHtttpStatus());\r\n\t}",
"private static String addAdditionalInformationIfPossible(String msg)\n {\n long unallocatedSpace = freeDiskSpace();\n int segmentSize = DatabaseDescriptor.getCommitLogSegmentSize();\n\n if (unallocatedSpace < segmentSize)\n {\n return String.format(\"%s. %d bytes required for next commitlog segment but only %d bytes available. Check %s to see if not enough free space is the reason for this error.\",\n msg, segmentSize, unallocatedSpace, DatabaseDescriptor.getCommitLogLocation());\n }\n return msg;\n }",
"private UnitsErrorStrings() {\n }",
"public void fatalError(ValidationType type, String validationName, String content);",
"public FormatException() {\n\t\tsuper(\"This value is not within the standard.\");\n\t}",
"@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/* */ }",
"protected abstract String insufficientParameterExceptionMessage(TransactionCommand transactionCommand);",
"@FormatMethod\n private void reportError(Token token, @FormatString String message, Object... arguments) {\n if (token == null) {\n reportError(message, arguments);\n } else {\n errorReporter.reportError(token.getStart(), message, arguments);\n }\n }",
"private void addError(final SAMValidationError error) {\n if (this.errorsToIgnore.contains(error.getType())) return;\n \n if (this.ignoreWarnings && error.getType().severity == SAMValidationError.Severity.WARNING) return;\n \n this.errorsByType.increment(error.getType());\n if (verbose) {\n out.println(error);\n out.flush();\n if (this.errorsByType.getCount() >= maxVerboseOutput) {\n throw new MaxOutputExceededException();\n }\n }\n }",
"@Override\n\tpublic void calculateError() {\n\t\t\n\t}",
"public IllegalAmountOfCharactersException(int amount){\n\t\tthis.amountOfCharacters = amount;\n\t}",
"private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }",
"String getErrorsString();",
"private String makeBadSearchMessage(String querytext, String exceptionMsg){\n String rv = \"\";\n try{\n //try to get the column in the search term that is causing the problems\n int coli = exceptionMsg.indexOf(\"column\");\n if( coli == -1) return \"\";\n int numi = exceptionMsg.indexOf(\".\", coli+7);\n if( numi == -1 ) return \"\";\n String part = exceptionMsg.substring(coli+7,numi );\n int i = Integer.parseInt(part) - 1;\n \n // figure out where to cut preview and post-view\n int errorWindow = 5;\n int pre = i - errorWindow;\n if (pre < 0)\n pre = 0;\n int post = i + errorWindow;\n if (post > querytext.length())\n post = querytext.length();\n // log.warn(\"pre: \" + pre + \" post: \" + post + \" term len:\n // \" + term.length());\n \n // get part of the search term before the error and after\n String before = querytext.substring(pre, i);\n String after = \"\";\n if (post > i)\n after = querytext.substring(i + 1, post);\n \n rv = \"The search term had an error near <span class='searchQuote'>\"\n + before + \"<span class='searchError'>\" + querytext.charAt(i)\n + \"</span>\" + after + \"</span>\";\n } catch (Throwable ex) {\n return \"\";\n }\n return rv;\n }",
"private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignored) {\n throw expected(\"integer error code\");\n }\n stepOver(JsonFormat.ERROR_MESSAGE_FIELD);\n stepOver(JsonToken.VALUE_STRING, \"string value\");\n String message = currentText();\n // TODO read custom error properties here (if we decide to support these)\n stepOver(JsonToken.END_OBJECT);\n return new ErrorValue(errorCode, message, null);\n }",
"protected static void reportParseError(int expectedToken, int otherExpectedToken, int anotherExpectedToken, int actualToken, String actualTokenValue) throws MailcapParseException {\n/* 533 */ if (LogSupport.isLoggable()) {\n/* 534 */ LogSupport.log(\"PARSE ERROR: Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \", a \" + MailcapTokenizer.nameForToken(otherExpectedToken) + \", or a \" + MailcapTokenizer.nameForToken(anotherExpectedToken) + \" token.\");\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 540 */ throw new MailcapParseException(\"Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \", a \" + MailcapTokenizer.nameForToken(otherExpectedToken) + \", or a \" + MailcapTokenizer.nameForToken(anotherExpectedToken) + \" token.\");\n/* */ }",
"private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}",
"private void error(@Nonnull Token pptok, boolean is_error)\r\n throws IOException,\r\n LexerException {\r\n StringBuilder buf = new StringBuilder();\r\n buf.append('#').append(pptok.getText()).append(' ');\r\n /* Peculiar construction to ditch first whitespace. */\r\n Token tok = source_token_nonwhite();\r\n ERROR:\r\n for (;;) {\r\n switch (tok.getType()) {\r\n case NL:\r\n case EOF:\r\n break ERROR;\r\n default:\r\n buf.append(tok.getText());\r\n break;\r\n }\r\n tok = source_token();\r\n }\r\n if (is_error)\r\n error(pptok, buf.toString());\r\n else\r\n warning(pptok, buf.toString());\r\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"public void err2() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand2.getText());\n\t\tif (errMessage != \"\") {\n\t\t\tlabel_errOperand2.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand2ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand2ErrPart2.setText(\"\\u21EB\");\n\t\t}\n\t}",
"abstract void errorLogMessage(String message);",
"@Override\n protected void initErrorLookup() {\n errorLookup[0] = \"Wrong number of parameters\";\n errorLookup[1] = \"Invalid airline code\";\n errorLookup[2] = \"Invalid airline ID\";\n errorLookup[3] = \"Invalid source airport code\";\n errorLookup[4] = \"Invalid source airport ID\";\n errorLookup[5] = \"Invalid destination airport code\";\n errorLookup[6] = \"Invalid destination airport ID\";\n errorLookup[7] = \"Invalid value for codeshare\";\n errorLookup[8] = \"Invalid value for number of stops\";\n errorLookup[9] = \"Invalid equipment code\";\n errorLookup[10] = \"Duplicate route\";\n errorLookup[11] = \"Unknown error\";\n }",
"static GitletException error(String msgFormat, Object... arguments) {\n return new GitletException(String.format(msgFormat, arguments));\n }",
"static void fail(String message, Scanner s){\r\n\tString msg = message + \"\\n @ ...\";\r\n\tfor (int i=0; i<5 && s.hasNext(); i++){\r\n\t msg += \" \" + s.next();\r\n\t}\r\n\tthrow new ParserFailureException(msg+\"...\");\r\n }",
"private void checkTooManyDelimiters(String[] components) throws CustomException {\n assert components.length == 2 : \"More than 2 components.\";\n if (components[0].contains(DELIMITER) | components[1].contains(DELIMITER)) {\n logger.warning(\"Too many delimiters \\\"/to\\\".\");\n throw new CustomException(ExceptionType.MANY_DELIMITERS_ROUTE);\n }\n }",
"void setResponseFormatError(){\n responseFormatError = true;\n }",
"@Test(timeout = 4000)\n public void test34() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\" R[~rnsGR(#-\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Illegal column type format: R[~rnsGR(#-\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull Number invalidInput) {\n/* 87 */ return null;\n/* */ }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Test\n\tpublic void test_ArgumentCount_0_InvalidInput() {\n\t\tString[] args = {};\n\t\tTypeFinder.main(args);\n\t\tString expected = TypeFinder.INVALID_ARGUMENT_ERROR_MESSAGE + FileManager.lineSeparator;\n\t\tString results = errContent.toString();\n\t\tassertEquals(expected, results);\n\t}",
"private void raiseParseProblem(String message, int position) {\n\n StringBuffer sb = new StringBuffer();\n\n sb.append(expansionString).append(\"\\n\");\n\n for (int i = 0; i < position; i++) {\n\n sb.append(\" \");\n\n }\n\n sb.append(\"^\\n\");\n\n sb.append(message);\n\n throw new VersionExpansionFormatException(expansionString, sb.toString());\n\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"public void checkServerErrors() throws NumberFormatException, PluginException {\r\n if (new Regex(brbefore, Pattern.compile(\"No file\", Pattern.CASE_INSENSITIVE)).matches()) {\r\n throw new PluginException(LinkStatus.ERROR_FATAL, getPhrase(\"SERVER_ERROR\"));\r\n }\r\n if (new Regex(brbefore, \"(Not Found|<h1>(404 )?Not Found</h1>)\").matches()) {\r\n logger.warning(\"Server says link offline, please recheck that!\");\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n if (br.containsHTML(\"Twój dzienny limit transferu\")) {\r\n UserIO.getInstance().requestMessageDialog(0, getPhrase(\"PREMIUM_ERROR\"), getPhrase(\"DAILY_LIMIT\") + \"\\r\\n\" + getPhrase(\"PREMIUM_DISABLED\"));\r\n throw new PluginException(LinkStatus.ERROR_PREMIUM, PluginException.VALUE_ID_PREMIUM_TEMP_DISABLE);\r\n } else if (br.containsHTML(\"<input type=\\\"submit\\\" class=\\\"btn btn-large btn-inverse\\\" style=\\\"font-size:30px; font-weight: bold; padding:30px\\\" value=\\\"Pobierz szybko\\\" />\")) {\r\n throw new PluginException(LinkStatus.ERROR_FATAL, getPhrase(\"LINK_BROKEN\"));\r\n }\r\n\r\n }",
"@Override\n @SuppressWarnings(\"all\")\n protected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex,\n HttpHeaders headers, HttpStatus status,\n WebRequest request) {\n Map<String, Object> hashMap = new LinkedHashMap<>();\n Map<String, Set<String>> setMap = ex.getBindingResult()\n .getFieldErrors()\n .stream()\n .collect(Collectors.groupingBy(\n FieldError::getField,\n Collectors.mapping(FieldError::getDefaultMessage, Collectors.toSet())));\n hashMap.put(\"errors\", setMap);\n return new ResponseEntity<>(hashMap, headers, status);\n }",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"protected static void reportParseError(int expectedToken, int otherExpectedToken, int actualToken, String actualTokenValue) throws MailcapParseException {\n/* 523 */ throw new MailcapParseException(\"Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \" or a \" + MailcapTokenizer.nameForToken(otherExpectedToken) + \" token.\");\n/* */ }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Invalid escape character at line \");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.Done();\n // Undeclared exception!\n try { \n javaCharStream0.AdjustBuffSize();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }",
"private String addError(String errMessage, String errMessageExtension) {\r\n\t\t\r\n\t\tString separator = \"\\n\";\r\n\t\tif (errMessage==null || errMessage.isEmpty()==true) {\r\n\t\t\terrMessage = errMessageExtension;\r\n\t\t} else {\r\n\t\t\terrMessage += separator + errMessageExtension; \r\n\t\t}\r\n\t\treturn errMessage;\r\n\t}",
"private static void fillErrorInfoList() {\n\t\tsErrorInfoArray.clear();\n\n\t\tif (sLevel == CorrectionLevel.ONE_BIT\n\t\t\t\t|| sLevel == CorrectionLevel.TWO_BIT) {\n\t\t\tint[] msg = new int[14];\n\n\t\t\tfor (int i = 0; i < 112; i++) {\n\t\t\t\tint bytepos0 = i / 8;\n\t\t\t\tint mask0 = 1 << i % 8;\n\t\t\t\tmsg[bytepos0] ^= mask0; // create error0\n\t\t\t\tErrorInfo errorInfo0 = new ErrorInfo();\n\t\t\t\terrorInfo0.mSyndrome = getChecksum(msg);\n\t\t\t\terrorInfo0.mBitCount = 1;\n\t\t\t\terrorInfo0.mBitPositions[0] = i;\n\n\t\t\t\tsErrorInfoArray.put(errorInfo0.mSyndrome, errorInfo0);\n\n\t\t\t\tif (sLevel == CorrectionLevel.TWO_BIT) {\n\t\t\t\t\tfor (int j = i + 1; j < 112; j++) {\n\t\t\t\t\t\tint bytepos1 = j / 8;\n\t\t\t\t\t\tint mask1 = 1 << j % 8;\n\t\t\t\t\t\tmsg[bytepos1] ^= mask1; // create error1\n\t\t\t\t\t\tErrorInfo errorInfo1 = new ErrorInfo();\n\t\t\t\t\t\terrorInfo1.mSyndrome = getChecksum(msg);\n\t\t\t\t\t\terrorInfo1.mBitCount = 2;\n\t\t\t\t\t\terrorInfo1.mBitPositions[0] = i;\n\t\t\t\t\t\terrorInfo1.mBitPositions[1] = j;\n\n\t\t\t\t\t\tsErrorInfoArray.put(errorInfo1.mSyndrome, errorInfo1);\n\n\t\t\t\t\t\tmsg[bytepos1] ^= mask1; // revert error1\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmsg[bytepos0] ^= mask0; // revert error0\n\t\t\t}\n\t\t}\n\t}",
"public abstract int getMessageSize();",
"abstract void error(String error);",
"public static void WarningForOverThreeLines( Gfa smear ) {\n\t\t\n\t\tif ( !smear.isSnapshot() ) { \n\t\t String prefix = getPrefixString( smear );\n\t\t \n\t\t boolean formattable = \tcanBeFormatted( smear.getPoints(), prefix );\n\t\t \n\t\t if ( !formattable ) {\n\t\t\t String message = \"\";\n\t\t\t if ( prefix.equals( Gfa.FROM ) ) {\n\t\t\t \tmessage = new String( \"This AIRMET will generate more than 3 FROM lines when formatted.\");\n\t\t\t }\n\t\t\t else {\n\t\t\t \tmessage = new String( \"This OUTLOOK will generate more than 3 FROM lines when formatted.\");\t\t\t \t\n\t\t\t }\n\t\t\t \n\t \t\tMessageDialog confirmDlg = new MessageDialog( \n\t \t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), \n\t \t\t\"Over 3 FROM Lines\", null, message,\n\t \t\tMessageDialog.WARNING, new String[]{\"OK\"}, 0 );\n\t \n\t \tconfirmDlg.open();\n\n\t\t }\t\t \t\t \n\t\t}\t\t\t\t\n\t}",
"@Test\r\n public void testInvalidDecSuffixExpressionWithSIUnits() throws IOException {\n checkError(\"varS--\", \"0xA0171\");\r\n }",
"protected void performGenericAuthorizationEndpointErrorResponseValidation() {\n\t\tcallAndContinueOnFailure(CheckStateInAuthorizationResponse.class, ConditionResult.FAILURE);\n\t\t// as https://tools.ietf.org/html/draft-ietf-oauth-iss-auth-resp is still a draft we only warn if the value is wrong,\n\t\t// and do not require it to be present.\n\t\tcallAndContinueOnFailure(ValidateIssInAuthorizationResponse.class, ConditionResult.WARNING, \"OAuth2-iss-2\");\n\t\tcallAndContinueOnFailure(EnsureErrorFromAuthorizationEndpointResponse.class, ConditionResult.FAILURE, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(RejectAuthCodeInAuthorizationEndpointResponse.class, ConditionResult.FAILURE, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(CheckForUnexpectedParametersInErrorResponseFromAuthorizationEndpoint.class, ConditionResult.WARNING, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(CheckErrorDescriptionFromAuthorizationEndpointResponseErrorContainsCRLFTAB.class, ConditionResult.WARNING, \"RFC6749-4.1.2.1\");\n\t\tcallAndContinueOnFailure(ValidateErrorDescriptionFromAuthorizationEndpointResponseError.class, ConditionResult.FAILURE,\"RFC6749-4.1.2.1\");\n\t\tcallAndContinueOnFailure(ValidateErrorUriFromAuthorizationEndpointResponseError.class, ConditionResult.FAILURE,\"RFC6749-4.1.2.1\");\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"long invalidations();",
"@Test\n public void parse_multipleInvalidArgs_throwsParseException() {\n assertParseFailure(parser, MULTIPLE_VALID_PARAM, String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n SortCommand.MESSAGE_USAGE));\n }",
"@Test\n\tpublic void test_ArgumentCount_2_InvalidPath() {\n\t\tString[] args = { \"\", \"\" };\n\t\tTypeFinder.main(args);\n\t\tString expected = TypeFinder.INVALID_PATH_ERROR_MESSAGE + FileManager.lineSeparator;\n\t\tString results = errContent.toString();\n\t\tassertEquals(expected, results);\n\t}",
"@Override\r\n\tprotected String getErrorInfo(String str, String cmds) {\n\t\treturn null;\r\n\t}",
"private void formatWarnings(String unformat){\n //Removes the square bracket from the end of the text\n unformat = unformat.replaceAll(\"[\\\\[\\\\]]\",\"\");\n //Splits the String into cells in a String Array\n String [] formatDesc = unformat.split(\",\");\n\n //Assigns in the individual Strings into the\n //relevant TextViews\n warning1.setText(formatDesc[0]);\n warning2.setText(formatDesc[1]);\n warning3.setText(formatDesc[2]);\n warning4.setText(formatDesc[3]);\n warning5.setText(formatDesc[4]);\n warning6.setText(formatDesc[5]);\n warning7.setText(formatDesc[6]);\n warning8.setText(formatDesc[7]);\n }",
"private boolean validateAmountFormat(String amount,\n HttpServletRequest req, HttpServletResponse resp) throws IOException {\n if(!amount.matches(wholeNumber)\n && !amount.matches(fraction)\n && !amount.matches(trailingZeroFraction)\n && !amount.matches(leadingZeroFraction)\n ){\n page.redirectTo(\"/account\", resp, req,\n \"errorMessage\", \"Transaction amount format invalid!\");\n return false;\n }\n return true;\n }",
"private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can only handle arguments passed in a format like the following: 1/2 * 3/4\\n\");\n }",
"public String formOverloaded()\r\n {\r\n return formError(\"502 Server overloaded\",\"Try again latter\");\r\n }",
"private static void fail(String filename, String errMsg, Module_itemContext itemCon)\n\t\t\tthrows UnsupportedGrammerException {\n\n\t\tInterval int1 = itemCon.getSourceInterval(); // get token interval\n\n\t\tToken firstToken = tokenStream.get(int1.a);\n\n\t\tint lineNum = firstToken.getLine(); // get line of first token\n\n\t\t// Determining j, first token in int1 which occurs at a different line\n\n\t\tint j;\n\n\t\tfor (j = int1.a; j < int1.b; j++) {\n\n\t\t\tif (tokenStream.get(j).getLine() != lineNum)\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// form a string from tokens 1 through j-1\n\n\t\tString tokenStr = tokenStream.getText(new Interval(int1.a, j));\n\n\t\tSystem.err.printf(\"Parser error (%s:%d): %s\\n\", filename, lineNum, tokenStr);\n\n\t\tfail(errMsg);\n\n\t}",
"static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2) {\n\n\t}"
]
| [
"0.59412974",
"0.58440804",
"0.5830976",
"0.58154666",
"0.57633156",
"0.57633156",
"0.57633156",
"0.57633156",
"0.5743687",
"0.5709696",
"0.56943464",
"0.5689755",
"0.56871825",
"0.55986965",
"0.55796427",
"0.5564354",
"0.556424",
"0.54907745",
"0.5489395",
"0.5479766",
"0.54458123",
"0.544455",
"0.5429292",
"0.54250443",
"0.5424587",
"0.54238766",
"0.54067665",
"0.54063356",
"0.5403599",
"0.54019576",
"0.5379683",
"0.53762925",
"0.5372783",
"0.53636354",
"0.53585094",
"0.5357885",
"0.5350827",
"0.5337876",
"0.5336319",
"0.5335537",
"0.5328427",
"0.53173864",
"0.53148764",
"0.52989966",
"0.529402",
"0.5275035",
"0.52687514",
"0.5266972",
"0.52644",
"0.5260141",
"0.52593935",
"0.52490896",
"0.5241211",
"0.5238596",
"0.52084607",
"0.5197718",
"0.51931965",
"0.5181093",
"0.5178191",
"0.51740986",
"0.51740986",
"0.51740986",
"0.5166059",
"0.5160869",
"0.51546735",
"0.51455927",
"0.5136967",
"0.51358676",
"0.51327085",
"0.51238537",
"0.5123056",
"0.5118192",
"0.51180965",
"0.51177037",
"0.5116678",
"0.5114545",
"0.51135534",
"0.5112484",
"0.5112468",
"0.51123506",
"0.50949734",
"0.50917196",
"0.50847673",
"0.50839984",
"0.5083301",
"0.5081259",
"0.5081174",
"0.5074044",
"0.50725704",
"0.506359",
"0.50617254",
"0.5059949",
"0.5053906",
"0.5051838",
"0.505086",
"0.5044434",
"0.5040125",
"0.50326663",
"0.5028692",
"0.5026428"
]
| 0.583538 | 2 |
Find the _Fields constant that matches fieldId, or null if its not found. | public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // FUNCTION_NAME
return FUNCTION_NAME;
case 2: // SCHEMA_NAME
return SCHEMA_NAME;
case 3: // CLASS_NAME
return CLASS_NAME;
case 4: // RESOURCES
return RESOURCES;
default:
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TOTAL_FILES_MATERIALIZED_COUNT\n return TOTAL_FILES_MATERIALIZED_COUNT;\n case 2: // FILES_MATERIALIZED_FROM_CASCOUNT\n return FILES_MATERIALIZED_FROM_CASCOUNT;\n case 3: // TOTAL_TIME_SPENT_MATERIALIZING_FILES_FROM_CASMILLIS\n return TOTAL_TIME_SPENT_MATERIALIZING_FILES_FROM_CASMILLIS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMB_INSTRUMENT_ID\n return COMB_INSTRUMENT_ID;\n case 2: // LEG_ID\n return LEG_ID;\n case 3: // LEG_INSTRUMENT_ID\n return LEG_INSTRUMENT_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n default:\r\n return null;\r\n }\r\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // OUTPUT_DIR\n return OUTPUT_DIR;\n case 3: // SUBSET\n return SUBSET;\n case 4: // TYPES\n return TYPES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PARAM_MAP\n return PARAM_MAP;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCOUNT_IDS\n return ACCOUNT_IDS;\n case 2: // COMMODITY_IDS\n return COMMODITY_IDS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // M_COMMAND_TYPE\n return M_COMMAND_TYPE;\n case 2: // M_BLOCK_IDS\n return M_BLOCK_IDS;\n case 3: // M_FILE_PATH\n return M_FILE_PATH;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACCESS_KEY\n return ACCESS_KEY;\n case 2: // ENTITY_IDS\n return ENTITY_IDS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // CUS_PER_BASE\n return CUS_PER_BASE;\n case 3: // TOTAL_ASSETS\n return TOTAL_ASSETS;\n case 4: // TOTAL_LIAB\n return TOTAL_LIAB;\n case 5: // FAMILY_ASSETS\n return FAMILY_ASSETS;\n case 6: // YEAR_PAY\n return YEAR_PAY;\n case 7: // MONTH_WAGE\n return MONTH_WAGE;\n case 8: // FAMILY_INCOME\n return FAMILY_INCOME;\n case 9: // FAMILY_CONTROL\n return FAMILY_CONTROL;\n case 10: // STATUS\n return STATUS;\n case 11: // ASSETS_DETAIL\n return ASSETS_DETAIL;\n case 12: // LIAB_DETAIL\n return LIAB_DETAIL;\n case 13: // MONTHLY_PAYMENT\n return MONTHLY_PAYMENT;\n case 14: // OVERDRAFT\n return OVERDRAFT;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NOME\n return NOME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NOME\n return NOME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FILE_PATH\n return FILE_PATH;\n case 2: // DIR_NAME\n return DIR_NAME;\n case 3: // FILE_LENGTH\n return FILE_LENGTH;\n case 4: // DK_FILE_CONF\n return DK_FILE_CONF;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LOG_INFO\n return LOG_INFO;\n case 2: // PARAMS\n return PARAMS;\n default:\n return null;\n }\n }"
]
| [
"0.79869914",
"0.7915354",
"0.78808534",
"0.78808534",
"0.78808534",
"0.78808534",
"0.78808534",
"0.78808534",
"0.77862614",
"0.7779145",
"0.77291805",
"0.7727816",
"0.7721567",
"0.77125883",
"0.77125883",
"0.7709597",
"0.7708822",
"0.7701162",
"0.7699386",
"0.76957756",
"0.7687628",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76785046",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.76718855",
"0.766961",
"0.766961",
"0.7663572",
"0.76630384",
"0.76630384",
"0.76630384",
"0.76630384",
"0.76630384",
"0.76630384",
"0.76630384",
"0.7648934",
"0.7644055",
"0.764325",
"0.7634706",
"0.76222456",
"0.76209694",
"0.7618461",
"0.76121426",
"0.76118654",
"0.76118654",
"0.760653",
"0.760217",
"0.760217",
"0.760217",
"0.760217",
"0.760217",
"0.7600617",
"0.75965196",
"0.75965196",
"0.75958437",
"0.75958437",
"0.7593029",
"0.7593029",
"0.7593029"
]
| 0.0 | -1 |
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. | public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_ID\n return REFERRAL_LOG_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // EXCEPTION_ID\n return EXCEPTION_ID;\n case 3: // USER_ID\n return USER_ID;\n case 4: // REPORT_DATE\n return REPORT_DATE;\n case 5: // UN_ASSURE_CONDITION\n return UN_ASSURE_CONDITION;\n case 6: // HOUSE_PROPERY_CONDITION\n return HOUSE_PROPERY_CONDITION;\n case 7: // REMARK\n return REMARK;\n case 8: // CREATE_DATE\n return CREATE_DATE;\n case 9: // CREATE_ID\n return CREATE_ID;\n case 10: // UPDATE_DATE\n return UPDATE_DATE;\n case 11: // UPDATE_ID\n return UPDATE_ID;\n case 12: // PROJECT_ID\n return PROJECT_ID;\n case 13: // LEGAL_LIST\n return LEGAL_LIST;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // POSITION_ID\n return POSITION_ID;\n case 3: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // APP_CODE\n \treturn APP_CODE;\n case 2: // REQUEST_DATE\n \treturn REQUEST_DATE;\n case 3: // SIGN\n \treturn SIGN;\n case 4: // SP_ID\n \treturn SP_ID;\n case 5: // OUT_ORDER_ID\n \treturn OUT_ORDER_ID;\n case 6: // DEVICE_NO\n \treturn DEVICE_NO;\n case 7: // DEVICE_TYPE\n \treturn DEVICE_TYPE;\n case 8: // PROVINCE_ID\n \treturn PROVINCE_ID;\n case 9: // CUST_ID\n \treturn CUST_ID;\n case 10: // NUM\n \treturn NUM;\n case 11: // REMARK\n \treturn REMARK;\n case 12: // ACTIVE_ID\n \treturn ACTIVE_ID;\n case 13: // EXP_TIME\n \treturn EXP_TIME;\n default:\n \treturn null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ID\r\n return ID;\r\n case 2: // ID_CURSA\r\n return ID_CURSA;\r\n case 3: // NR_LOC\r\n return NR_LOC;\r\n case 4: // CLIENT\r\n return CLIENT;\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXEC_TRADE_ID\n return EXEC_TRADE_ID;\n case 2: // SUB_ACCOUNT_ID\n return SUB_ACCOUNT_ID;\n case 3: // SLED_CONTRACT_ID\n return SLED_CONTRACT_ID;\n case 4: // EXEC_ORDER_ID\n return EXEC_ORDER_ID;\n case 5: // TRADE_PRICE\n return TRADE_PRICE;\n case 6: // TRADE_VOLUME\n return TRADE_VOLUME;\n case 7: // EXEC_TRADE_DIRECTION\n return EXEC_TRADE_DIRECTION;\n case 8: // CREATE_TIMESTAMP_MS\n return CREATE_TIMESTAMP_MS;\n case 9: // LASTMODIFY_TIMESTAMP_MS\n return LASTMODIFY_TIMESTAMP_MS;\n case 10: // SLED_COMMODITY_ID\n return SLED_COMMODITY_ID;\n case 11: // CONFIG\n return CONFIG;\n case 12: // ORDER_TOTAL_VOLUME\n return ORDER_TOTAL_VOLUME;\n case 13: // LIMIT_PRICE\n return LIMIT_PRICE;\n case 14: // SOURCE\n return SOURCE;\n case 15: // TRADE_ACCOUNT_ID\n return TRADE_ACCOUNT_ID;\n case 16: // TRADE_TIMESTAMP_MS\n return TRADE_TIMESTAMP_MS;\n case 17: // ASSET_TRADE_DETAIL_ID\n return ASSET_TRADE_DETAIL_ID;\n case 18: // SUB_USER_ID\n return SUB_USER_ID;\n case 19: // SLED_ORDER_ID\n return SLED_ORDER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONF\n return CONF;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CONTRACT_ADDRESS\n return CONTRACT_ADDRESS;\n case 2: // OBJECT\n return OBJECT;\n case 3: // STATE_CAN_MODIFY\n return STATE_CAN_MODIFY;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }"
]
| [
"0.7626537",
"0.7626537",
"0.7626537",
"0.7626537",
"0.7626537",
"0.7626537",
"0.7626537",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.76217574",
"0.7541543",
"0.7534188",
"0.7441577",
"0.7441577",
"0.7441577",
"0.7441577",
"0.7441577",
"0.7441577",
"0.74285084",
"0.74285084",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7427508",
"0.7423265",
"0.74231076",
"0.7403337",
"0.7394829",
"0.73938924",
"0.7391545",
"0.73826945",
"0.73780763",
"0.73760843",
"0.73726547",
"0.73627126",
"0.73627126",
"0.7350868",
"0.7350868",
"0.7341928",
"0.7341928",
"0.7341928",
"0.7334454",
"0.7327538",
"0.7317418",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.73154426",
"0.7308953",
"0.72886896",
"0.7286368",
"0.7271214",
"0.7270322",
"0.72681475",
"0.7256741",
"0.7255052",
"0.7254299",
"0.72495127",
"0.72495127",
"0.72478175",
"0.72478175",
"0.72478175",
"0.72478175",
"0.72478175"
]
| 0.0 | -1 |
Find the _Fields constant that matches name, or null if its not found. | public static _Fields findByName(String name) {
return byName.get(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }",
"@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}",
"@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}"
]
| [
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.7641586",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.76308644",
"0.7578759",
"0.7578759",
"0.7571673",
"0.7571673",
"0.756394",
"0.756394"
]
| 0.0 | -1 |
Performs a deep copy on other. | public CatalogFunctionObject(CatalogFunctionObject other) {
if (other.isSetFunctionName()) {
this.functionName = other.functionName;
}
if (other.isSetSchemaName()) {
this.schemaName = other.schemaName;
}
if (other.isSetClassName()) {
this.className = other.className;
}
if (other.isSetResources()) {
List<String> __this__resources = new ArrayList<String>(other.resources);
this.resources = __this__resources;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Prototype makeCopy();",
"public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperties)\n\t\t{\n\t\t\tproperties.put(property.key, property.clone());\n\t\t}\n\t}",
"public void copyDataFrom(ParamUnit other)\r\n\t{\r\n\t\tif (this.data.row != other.data.row || this.data.col != other.data.col)\r\n\t\t\tthrow new DeepException(\"Cannot copy data from a different dimension.\");\r\n\t\tthis.data.copyFrom(other.data);\r\n\t}",
"private Path(Path other){\n\t\t\n\t\tthis.source = other.source;\n\t\tthis.destination = other.destination;\n\t\tthis.cities = other.cities;\n\t\t\n\t\tthis.cost = other.cost;\n\t\tthis.destination = other.destination;\n\t\t\n\t\tthis.connections = new LinkedList<Connection>();\n\t\t\n\t\tfor (Connection c : other.connections){\n\t\t\tthis.connections.add((Connection) c.clone());\n\t\t}\n\t\t\n\t}",
"@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}",
"public void copy() {\n\n\t}",
"public abstract B copy();",
"public CMObject copyOf();",
"public T cloneDeep();",
"public void copy(BlastGraph<HitVertex, ValueEdge> graphToCopy) {\n\t\t// empty this graph\n\t\tthis.empty();\n\n\t\t// union this empty graph with graphToCopy\n\t\tthis.union(graphToCopy);\n\t}",
"public void mirror(Dataset other) {\n clear();\n this.ntree.addAll(other.ntree);\n }",
"Model copy();",
"public abstract INodo copy();",
"static void setCopying(){isCopying=true;}",
"Nda<V> shallowCopy();",
"public CopyBuilder copy() {\n return new CopyBuilder(this);\n }",
"T copy();",
"@Override\n\t\tpublic ImmutableSequentialGraph copy() {\n\t\t\treturn new ComposedGraph( g0, g1.copy() );\n\t\t}",
"public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}",
"Component deepClone();",
"public Data assign(Data other) {\r\n this.setDimension(other.dimension);\r\n this.distanz = other.distanz;\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n this.data[i] = other.data[i];\r\n }\r\n this.id = other.id;\r\n return this;\r\n }",
"@Override\n public int deepCopy(AbstractRecord other)\n {\n return 0;\n }",
"public AST copy()\n {\n return new Implicate(left, right);\n }",
"@Override\n public void copyValues(final fr.jmmc.oiexplorer.core.model.OIBase other) {\n final View view = (View) other;\n\n // copy type, subsetDefinition (reference):\n this.type = view.getType();\n this.subsetDefinition = view.getSubsetDefinition();\n }",
"public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }",
"public abstract Node copy();",
"protected void copy(Writable other) {\n\t\tif (other != null) {\n\t\t\ttry {\n\t\t\t\tDataOutputBuffer out = new DataOutputBuffer();\n\t\t\t\tother.write(out);\n\t\t\t\tDataInputBuffer in = new DataInputBuffer();\n\t\t\t\tin.reset(out.getData(), out.getLength());\n\t\t\t\treadFields(in);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IllegalArgumentException(\"map cannot be copied: \" +\n\t\t\t\t\t\te.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"source map cannot be null\");\n\t\t}\n\t}",
"protected void copyInto(Schedule other) {\r\n\t\tfor(int i = MIN_WEEKDAY; i <= MAX_WEEKDAY; i++)\r\n\t\t\tfor(int j = MIN_SEGMENT; j <= MAX_SEGMENT; j++)\r\n\t\t\t\tother.schedule[i][j] = schedule[i][j];\t\t\r\n\t}",
"public DTO(DTO other) {\n if (other.isSetDatas()) {\n Map<String,String> __this__datas = new HashMap<String,String>(other.datas);\n this.datas = __this__datas;\n }\n }",
"public Tree<K, V> copy() {\n\t\tTree<K, V> copy = EmptyTree.getInstance(), t = this;\n\t\treturn copy(t, copy);\n\t}",
"@Override\n\tpublic graph copy() {\n\t\tgraph copy = new DGraph();\n\t\tCollection<node_data> nColl = this.GA.getV();\n\t\tfor (node_data node : nColl) {\n\t\t\tnode_data temp = new Node((Node) node );\n\t\t\tcopy.addNode(node);\n\t\t}\n\t\tCollection<node_data> nColl2 = this.GA.getV();\n\t\tfor (node_data node1 : nColl2) {\n\t\t\tCollection<edge_data> eColl = this.GA.getE(node1.getKey());\n\t\t\tif (eColl!=null) {\n\t\t\t\tfor (edge_data edge : eColl) {\n\t\t\t\t\tcopy.connect(edge.getSrc(), edge.getDest(), edge.getWeight());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t}",
"Object clone();",
"Object clone();",
"@Override\n public FieldEntity copy()\n {\n return state.copy();\n }",
"private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"Nda<V> deepCopy();",
"@Override\n public LocalStore<V> copy() {\n return this;\n }",
"public abstract TreeNode copy();",
"@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }",
"protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\n newFactor.setRecipes(recipes);\n newFactor.setIngredients(ingredients);\n newFactor.setUserMap(userMap);\n newFactor.setUserMapReversed(userMap_r);\n newFactor.setRecipeMap(recipeMap);\n newFactor.setRecipeMapReversed(recipeMap_r);\n newFactor.setIngredientMap(ingredientMap);\n newFactor.setIngredientMapReversed(ingredientMap_r);\n \n //deep copy\n List<User> userCopy = new ArrayList<User>();\n for(User curr: this.users){\n userCopy.add(new User(curr.getId()));\n }\n newFactor.setUsers(userCopy);\n newFactor.setDataset(dataset.copy());\n newFactor.updateInitialSpace();\n return newFactor;\n }",
"@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}",
"public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }",
"@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}",
"public Data copy(Object value) {\n if (mValue instanceof Data) {\n ((Data) mValue).copy(value);\n } else {\n mValue = value;\n }\n return this;\n }",
"public void\n\tcopy( Vector3 other )\n\t{\n\t\tdata[0] = other.data[0];\n\t\tdata[1] = other.data[1];\n\t\tdata[2] = other.data[2];\n\t}",
"private static void copy(List<? super Number> dest, List<? extends Number> src) {\n for (int i = 0; i < src.size(); i++) {\n dest.set(i, src.get(i));\n //dest.add(src.get(i));\n }\n }",
"private ImmutablePerson(ImmutablePerson other) {\n firstName = other.firstName;\n middleName = other.middleName;\n lastName = other.lastName;\n nickNames = new ArrayList<>(other.nickNames);\n }",
"public abstract void copy(Result result, Object object);",
"protected AbstractChartModel copy(AbstractChartModel aCopy) {\n aCopy.title = title;\n aCopy.xAxisTitle = xAxisTitle;\n aCopy.yAxisTitle = yAxisTitle;\n aCopy.xRangeMax = xRangeMax;\n aCopy.xRangeMin = xRangeMin;\n aCopy.xRangeIncr = xRangeIncr;\n aCopy.yRangeMax = yRangeMax;\n aCopy.yRangeMin = yRangeMin;\n aCopy.yRangeIncr = yRangeIncr;\n aCopy.simModel = simModel;\n ArrayList list = new ArrayList();\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource) dataSources.get(i);\n list.add(ds.copy());\n }\n aCopy.dataSources = list;\n\n return aCopy;\n }",
"@Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);",
"private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }",
"public Game copy();",
"public void pasteFrom(Flow other)\n\t\t{\n\t\tunits.addAll(other.units);\n\t\tconns.addAll(other.conns);\n\t\t}",
"@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public <T extends JsonNode> T deepCopy() { return (T) this; }",
"public SoPickedPoint \ncopy() \n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPickedPoint newCopy = new SoPickedPoint(this);\n return newCopy;\n}",
"public CFExp deepCopy(){\r\n return this;\r\n }",
"DataContext copy();",
"@Override\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS(this.ga);//create the copy graph via copy constructor\n return copy;\n }",
"@Override\n\tpublic SecuredRDFList copy();",
"@Override\n\tpublic Expression copy() {\n\t\treturn null;\n\t}",
"public O copy() {\n return value();\n }",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"public Object clone();",
"private Shop shallowCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"public abstract Object clone();",
"public Function clone();",
"public abstract Type treeCopy();",
"public Tree<K, V> copy(Tree<K, V> t, Tree<K, V> copy) {\n\t\tcopy = copy.add(key, value);\n\t\tcopy = left.copy(left, copy);\n\t\tcopy = right.copy(right, copy);\n\t\treturn copy;\n\t}",
"public Results copy()\n {\n Results copy = new Results();\n for(Object object : results) {\n copy.add( object );\n }\n return copy;\n }",
"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 Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}",
"@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}",
"public directed_weighted_graph deepCopy() {\n DWGraph_DS copyGraph = new DWGraph_DS(this); //create a new graph with the original graph data (only primitives)\n HashMap<Integer, node_data> copyNodesMap = new HashMap<>(); //create a new nodes HashMap for the new graph\n for (node_data node : nodes.values()) { //loop through all nodes in the original graph\n copyNodesMap.put(node.getKey(), new NodeData((NodeData) node)); //makes a duplicate of the original HashMap\n }\n copyGraph.nodes = copyNodesMap; //set the new graph nodes to the new HashMap we made.\n return copyGraph;\n }",
"public Object clone() {\n return this.copy();\n }",
"@Override\n public Operator visitCopy(Copy operator)\n {\n throw new AssertionError();\n }",
"@Test\n\tpublic void copy() {\n\t\tBody b1 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\tCollisionItemAdapter<Body, BodyFixture> c1 = this.item.copy();\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\t\n\t\tthis.item.set(b1, b1f1);\n\t\tCollisionItemAdapter<Body, BodyFixture> c2 = this.item.copy();\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t\t\n\t\t// make sure it's a deep copy\n\t\tc1.set(null, null);\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t}",
"public abstract Object clone() ;",
"public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}",
"public PaginationVO(PaginationVO other) {\n __isset_bitfield = other.__isset_bitfield;\n this.pageSize = other.pageSize;\n this.pageNo = other.pageNo;\n this.upPage = other.upPage;\n this.nextPage = other.nextPage;\n this.totalCount = other.totalCount;\n this.totalPage = other.totalPage;\n if (other.isSetPageUrl()) {\n this.pageUrl = other.pageUrl;\n }\n if (other.isSetParams()) {\n this.params = other.params;\n }\n if (other.isSetDatas()) {\n List<BlogPostVO> __this__datas = new ArrayList<BlogPostVO>();\n for (BlogPostVO other_element : other.datas) {\n __this__datas.add(new BlogPostVO(other_element));\n }\n this.datas = __this__datas;\n }\n }",
"public WorldState (WorldState other)\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\t\t\n\t\tcopy(other);\n\t}",
"@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}",
"protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}",
"@Override\n public MetaprogramTargetNode deepCopy(BsjNodeFactory factory);",
"@Override\n public INDArray copy(INDArray x, INDArray y) {\n //NativeBlas.dcopy(x.length(), x.data(), 0, 1, y.data(), 0, 1);\n JavaBlas.rcopy(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1);\n return y;\n }",
"@Override\n\tpublic function copy() {\n\t\tMonom M=new Monom(this.get_coefficient(),this.get_power());\n\t\t\n\t\treturn M;\n\t}",
"public Object detachCopy(Object po)\n{\n\treturn po;\n}",
"public ConfabulatorObject getCopy() {\n\t\tConfabulatorObject copy = new ConfabulatorObject(getMessenger());\n\t\tlockMe(this);\n\t\tint maxD = maxLinkDistance;\n\t\tint maxC = maxLinkCount;\n\t\tList<Link> linksCopy = new ArrayList<Link>();\n\t\tfor (Link lnk: links) {\n\t\t\tlinksCopy.add(lnk.getCopy());\n\t\t}\n\t\tunlockMe(this);\n\t\tcopy.initialize(maxD,maxC,linksCopy);\n\t\treturn copy;\n\t}",
"@Override\r\n public weighted_graph copy() {\n weighted_graph copy = new WGraph_DS();\r\n for (node_info curr : this.Graph.getV()) { //The loop passes through all the ver' of the graph\r\n Nodes t = new Nodes(curr); //create new node\r\n copy.addNode(t.key); //copy the the old node to the new node\r\n }\r\n for (node_info curr0 : this.Graph.getV()) {\r\n for (node_info curr1 : this.Graph.getV(curr0.getKey())) { //this loops pass over the all nodes and copy the connection\r\n double i = this.Graph.getEdge(curr0.getKey(), curr1.getKey());\r\n if (i != -1) {\r\n copy.connect(curr0.getKey(), curr1.getKey(), i);\r\n }\r\n }\r\n }\r\n return copy;\r\n\r\n }",
"@Override\n public Object clone() {\n return super.clone();\n }",
"public Query copy() {\r\n\tQuery queryCopy = new Query();\r\n\tqueryCopy.terms = (LinkedList<String>) terms.clone();\r\n\tqueryCopy.weights = (LinkedList<Double>) weights.clone();\r\n\treturn queryCopy;\r\n }",
"public static void main(String[] args) throws CloneNotSupportedException\n {\n ArrayList<String> companies = new ArrayList<String>();\n companies.add(\"Baidu\");\n companies.add(\"Tencent\");\n companies.add(\"Ali\");\n WorkExprience workExprience = new WorkExprience(companies);\n String nameString = new String(\"Tom\");\n String genderString = new String(\"male\");\n Resume resume = new Resume(nameString, 23, genderString, workExprience);\n System.out.println(\"Source Resume\");\n resume.printResum();\n \n ArrayList<String> companies1 = new ArrayList<String>();\n companies1.add(\"Google\");\n companies1.add(\"Microsoft\");\n companies1.add(\"Oracle\");\n Resume copyResume = (Resume)resume.clone();\n String nameString1 = new String(\"Jerry\");\n String genderString1 = new String(\"Fmale\");\n copyResume.setName(nameString1);\n copyResume.setAge(20);\n copyResume.setGender(genderString1);\n copyResume.getWorkExprience().setCompanyArrayList(companies1);\n System.out.println();\n System.out.println(\"Source Resume\");\n resume.printResum();\n System.out.println();\n System.out.println(\"Copy Resume\");\n copyResume.printResum();\n }",
"public MappingInfo copy()\r\n\t{\r\n\t\tArrayList<MappingCell> mappingCells = new ArrayList<MappingCell>();\r\n\t\tfor(MappingCell mappingCell : mappingCellHash.get())\r\n\t\t\tmappingCells.add(mappingCell);\r\n\t\treturn new MappingInfo(mapping.copy(),mappingCells);\r\n\t}",
"protected void deepCloneReferences(uka.transport.DeepClone _helper)\n throws CloneNotSupportedException\n {\n //Cloning the byte array\n\t this.value = _helper.doDeepClone(this.value);\n //byte[] value_clone = new byte[this.value.length]; \n //System.arraycopy(this.value, 0, value_clone, 0, this.value.length);\n //this.value = value_clone;\n }",
"static void setNotCopying(){isCopying=false;}",
"void copy(DependencyRelations deps){\n if (deps == null)\n throw new IllegalArgumentException(\"the source is null.\");\n\n size_ = deps.size_;\n for(int i = 0; i < size_ ; i++){\n if (nodes_[i] == null)\n nodes_[i] = new Node();\n nodes_[i].copy(deps.nodes_[i]);\n }\n }",
"@SuppressWarnings(\"All\")\n public <T> void copy(MyList<? super T> to, MyList<? extends T> from) {\n\n System.out.println(\"from size \" + from.size);\n for (int i = 0; i < from.getSize(); i++) {\n to.add(from.getByIndex(i));\n }\n }",
"public void copy(Posts that) {\r\n\t\tsetId(that.getId());\r\n\t\tsetTitle(that.getTitle());\r\n\t\tsetContent(that.getContent());\r\n\t\tsetShareDate(that.getShareDate());\r\n\t\tsetIsPrivate(that.getIsPrivate());\r\n\t\tsetUsers(that.getUsers());\r\n\t\tsetCommentses(new java.util.LinkedHashSet<com.ira.domain.Comments>(that.getCommentses()));\r\n\t}",
"@Override\n public TopicObject copy() {\n return new TopicObject(this);\n }"
]
| [
"0.7214815",
"0.6982586",
"0.6743959",
"0.66792786",
"0.6563397",
"0.6549605",
"0.65230364",
"0.652084",
"0.64842516",
"0.64743775",
"0.6450891",
"0.6438907",
"0.64186275",
"0.640633",
"0.6403375",
"0.63743764",
"0.6373319",
"0.6358263",
"0.6322797",
"0.63214344",
"0.62839",
"0.6270614",
"0.6265534",
"0.6262602",
"0.6245396",
"0.6226707",
"0.62195224",
"0.6199828",
"0.6194176",
"0.61679715",
"0.61505216",
"0.6141201",
"0.6141201",
"0.613657",
"0.61238766",
"0.6113572",
"0.6078777",
"0.6067093",
"0.6051407",
"0.60489607",
"0.60435355",
"0.6034403",
"0.6030665",
"0.603029",
"0.6002317",
"0.5987207",
"0.5984917",
"0.59831345",
"0.5962016",
"0.5931717",
"0.59043086",
"0.58999294",
"0.58940864",
"0.5888768",
"0.5887435",
"0.5887003",
"0.5872753",
"0.58715606",
"0.5867456",
"0.5854781",
"0.5835268",
"0.5833011",
"0.58237326",
"0.58237326",
"0.58237326",
"0.58237326",
"0.5821464",
"0.5818652",
"0.5814066",
"0.57974726",
"0.579667",
"0.5792226",
"0.57900447",
"0.57734174",
"0.57581633",
"0.5751797",
"0.57507133",
"0.5744841",
"0.5744065",
"0.5744024",
"0.5743795",
"0.5740732",
"0.57376605",
"0.5736934",
"0.5736099",
"0.5727886",
"0.5727659",
"0.5714002",
"0.5700601",
"0.56953377",
"0.5689013",
"0.5682943",
"0.5676875",
"0.56736434",
"0.56729144",
"0.567041",
"0.5669635",
"0.56651294",
"0.56643426",
"0.5662451",
"0.5647604"
]
| 0.0 | -1 |
Returns true if field functionName is set (has been assigned a value) and false otherwise | public boolean isSetFunctionName() {
return this.functionName != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getHasSetFunc() {\n return localHasSetFunc;\n }",
"boolean hasFunction(String functionName);",
"boolean hasFieldId();",
"public boolean isFunction() {\n return this.type != null;\n }",
"public boolean isNotNullFns() {\n return genClient.cacheValueIsNotNull(CacheKey.fns);\n }",
"boolean getField0();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FUNCTION_NAME:\n return isSetFunctionName();\n case SCHEMA_NAME:\n return isSetSchemaName();\n case CLASS_NAME:\n return isSetClassName();\n case RESOURCES:\n return isSetResources();\n }\n throw new IllegalStateException();\n }",
"boolean isSetValue();",
"boolean isSetValue();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"boolean hasField4();",
"boolean hasField0();",
"public boolean isFunction() { return isFunc; }",
"boolean hasField1();",
"public boolean hasField (String f) {\n return getFieldTypMap().containsKey(f);\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"boolean hasField3();",
"public boolean isSetFileName() {\n return this.FileName != null;\n }",
"public boolean isSetFileName() {\n return this.FileName != null;\n }",
"public void setFunctionName(String functionName) {\r\n\t\tthis.functionName = functionName;\r\n\t}",
"boolean hasDef();",
"public boolean hasFns() {\n return genClient.cacheHasKey(CacheKey.fns);\n }",
"public boolean isSetFileName() {\n return this.fileName != null;\n }",
"public boolean isSetFileName() {\n return this.fileName != null;\n }",
"public boolean isSetFileName() {\n return this.fileName != null;\n }",
"boolean hasMethodName();",
"boolean hasMethodName();",
"boolean hasMethodName();",
"public boolean canFunction()\n\t{\n\t\treturn this.enabled;\n\t}",
"public boolean isFunction() {\n return false;\n }",
"public boolean isInFunction(){\n if (findEnclosingFunction() != null){\n return true;\n }\n return isFunction;\n }",
"public boolean containFunction(String name) {\n\t\tif (!global.containFunction(name)) {\r\n\t\t\treturn this.fnMap.containsKey(name);\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}",
"public boolean getHasGetFunc() {\n return localHasGetFunc;\n }",
"public void setHasSetFunc(boolean param) {\n if (false) {\n localHasSetFuncTracker = false;\n } else {\n localHasSetFuncTracker = true;\n }\n this.localHasSetFunc = param;\n }",
"boolean hasVal();",
"boolean hasVal();",
"boolean hasField2();",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case PLUGIN:\n return isSetPlugin();\n case PACKAGENAME:\n return isSetPackagename();\n case STATUS:\n return isSetStatus();\n case SIZE:\n return isSetSize();\n }\n throw new IllegalStateException();\n }",
"protected void checkIsFunctionType(){\n List<Name> names = new ArrayList<Name>();\n for( Definition definition : definitions ){\n if( !definition.typedef ){\n Field field = definition.getField();\n if( field != null ){\n FieldModelNode node = field.asNode();\n if( node != null && (node.getTags().contains( Tag.USES ) || node.getTags().contains( Tag.PROVIDES ))){\n\n Type type = definition.type();\n if( type == null || type.asFunctionType() == null ){\n names.add( definition.getName() );\n }\n }\n }\n }\n }\n \n if( names.size() > 0 ){\n error( \"'\" + name + \"' must have a function type\", names );\n }\n }",
"boolean hasVarValue();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ERROR_MAP:\n return isSetErrorMap();\n case SUCCESS_BATCH_CODE:\n return isSetSuccessBatchCode();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE:\n return isSetFile();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case NAME:\n return isSetName();\n }\n throw new IllegalStateException();\n }",
"public boolean hasField(String fname) {\n boolean result = false;\n\n try {\n cut.getField(fname);\n result = true;\n } catch (Exception e) {\n }\n\n return result;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetCatalogFunction() {\n return this.catalogFunction != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n }\n throw new IllegalStateException();\n }",
"boolean isSetMethod();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }",
"public boolean setFunction(int index) {\n if (isValidIndex(index, FUNCTIONS)) {\n function = index;\n return true;\n } else {\n return false;\n }\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case EXPERIMENT_ID:\n return isSetExperimentId();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }",
"public boolean hasName() {\n return fieldSetFlags()[0];\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }",
"boolean isSetAuto();",
"public boolean isSetModeName() {\n return (this.modeName != null ? this.modeName.isSetValue() : false);\n }",
"boolean isSetEvent();",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }",
"boolean isSetValueString();",
"boolean isSetRequired();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"@Override\n public void setFunctionName(String functionName) {\n\n }",
"public boolean isSet(int fieldID) {\n switch (fieldID) {\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case SELECT_PRIV:\n return isSetSelect_priv();\n case INSERT_PRIV:\n return isSetInsert_priv();\n case CREATE_PRIV:\n return isSetCreate_priv();\n case DROP_PRIV:\n return isSetDrop_priv();\n case GRANT_PRIV:\n return isSetGrant_priv();\n case ALTER_PRIV:\n return isSetAlter_priv();\n case CREATE_USER_PRIV:\n return isSetCreate_user_priv();\n case SUPER_PRIV:\n return isSetSuper_priv();\n default:\n throw new IllegalArgumentException(\"Field \" + fieldID + \" doesn't exist!\");\n }\n }",
"public boolean isSetKeyfield() {\r\n return this.keyfield != null;\r\n }",
"public boolean isSetKeyfield() {\r\n return this.keyfield != null;\r\n }",
"public boolean isSetKeyfield() {\r\n return this.keyfield != null;\r\n }",
"boolean isSetDisplayName();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return is_set_status();\n case DATA:\n return is_set_data();\n case SUMMARY:\n return is_set_summary();\n case FEATURE:\n return is_set_feature();\n case PREDICT_RESULT:\n return is_set_predictResult();\n case MSG:\n return is_set_msg();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_BYTE_BUFFER:\n return isSetFileByteBuffer();\n case APP_NAME:\n return isSetAppName();\n case ORIGIN_NAME:\n return isSetOriginName();\n case USER_ID:\n return isSetUserId();\n case USER_IP:\n return isSetUserIp();\n }\n throw new IllegalStateException();\n }",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"boolean hasFirstField();",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }"
]
| [
"0.664429",
"0.6594245",
"0.6580318",
"0.6533624",
"0.65212184",
"0.6414083",
"0.6406115",
"0.63369334",
"0.63369334",
"0.62364054",
"0.62364054",
"0.62347084",
"0.62205005",
"0.6216396",
"0.6148862",
"0.6120835",
"0.60958695",
"0.60958695",
"0.6069283",
"0.60658604",
"0.60658604",
"0.60198766",
"0.5988276",
"0.59721327",
"0.597203",
"0.597203",
"0.597203",
"0.59607196",
"0.59607196",
"0.59607196",
"0.5959541",
"0.59481335",
"0.5936398",
"0.5917671",
"0.59110886",
"0.590192",
"0.5896372",
"0.5896372",
"0.58934695",
"0.58751386",
"0.5869328",
"0.58605015",
"0.5855284",
"0.58524776",
"0.58458126",
"0.58438975",
"0.58396363",
"0.58394194",
"0.5837754",
"0.5836792",
"0.5836792",
"0.5834792",
"0.5832945",
"0.5808166",
"0.5787359",
"0.5787359",
"0.57797766",
"0.577835",
"0.5775905",
"0.5772477",
"0.5767105",
"0.5754408",
"0.5738885",
"0.5736441",
"0.57317376",
"0.57317376",
"0.57310826",
"0.5725421",
"0.57237",
"0.57237",
"0.57237",
"0.57237",
"0.57237",
"0.57237",
"0.57237",
"0.57237",
"0.5707977",
"0.57066196",
"0.57063353",
"0.57063353",
"0.57063353",
"0.57032055",
"0.57019407",
"0.5700914",
"0.5697976",
"0.56975776",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277",
"0.5697277"
]
| 0.8250387 | 0 |
Returns true if field schemaName is set (has been assigned a value) and false otherwise | public boolean isSetSchemaName() {
return this.schemaName != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetSchema_name() {\n return this.schema_name != null;\n }",
"public boolean isSetSchema_id() {\n return this.schema_id != null;\n }",
"public boolean isSetDbName() {\n return this.dbName != null;\n }",
"public boolean isSetCatalogSchema() {\n return this.catalogSchema != null;\n }",
"public boolean isSetRealName() {\n\t\treturn this.realName != null;\n\t}",
"public boolean isSetPhasename() {\n return this.phasename != null;\n }",
"public boolean isSetColName() {\n return this.colName != null;\n }",
"public boolean isSetPk_name() {\n return this.pk_name != null;\n }",
"public boolean testInitializedSchema(final String schemaName, final JsonNode objectJson) {\n final var schema = schemaToValidators.get(schemaName);\n Preconditions.checkNotNull(schema, schemaName + \" needs to be initialised before calling this method\");\n\n final var validate = schema.validate(objectJson);\n return validate.isEmpty();\n }",
"public boolean isSetName() {\n\t\treturn this.name != null;\n\t}",
"public boolean isSetPktable_name() {\n return this.pktable_name != null;\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean hasName() {\n return fieldSetFlags()[0];\n }",
"public boolean isSetName() {\n return this.Name != null;\n }",
"public boolean isSetName() {\r\n return this.name != null;\r\n }",
"public boolean isSetFk_name() {\n return this.fk_name != null;\n }",
"public boolean hasName() {\n return fieldSetFlags()[1];\n }",
"public boolean isSetPkcolumn_name() {\n return this.pkcolumn_name != null;\n }",
"private boolean isValidSchemaForValue(@Nullable Schema schema, Object value) throws RecordConvertorException {\n if (schema == null) {\n return false;\n }\n Schema generated = schemaGenerator.getSchema(value, \"temp_field_name\");\n generated = generated.isNullable() ? generated.getNonNullable() : generated;\n schema = schema.isNullable() ? schema.getNonNullable() : schema;\n return generated.getLogicalType() == schema.getLogicalType() && generated.getType() == schema.getType();\n }",
"public boolean isSetFktable_name() {\n return this.fktable_name != null;\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetTableName() {\n return this.tableName != null;\n }",
"public boolean isSetFkcolumn_name() {\n return this.fkcolumn_name != null;\n }",
"public boolean canUseSchema(FormatSchema schema)\n/* */ {\n/* 445 */ if (schema == null) {\n/* 446 */ return false;\n/* */ }\n/* 448 */ String ourFormat = getFormatName();\n/* 449 */ return (ourFormat != null) && (ourFormat.equals(schema.getSchemaType()));\n/* */ }",
"public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }",
"public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }",
"public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }",
"public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }",
"public boolean isSetTableName() {\r\n return this.tableName != null;\r\n }",
"public boolean isSetRollup_schemas() {\n return this.rollup_schemas != null;\n }",
"public boolean isSetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(NAME$2) != null;\r\n }\r\n }",
"public SchemaDefinition isSchema(String name){\n return((SchemaDefinition)schemaDefs.get(getDefName(name)));\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetModeName() {\n return (this.modeName != null ? this.modeName.isSetValue() : false);\n }",
"public boolean isSetCompany_name() {\n return this.company_name != null;\n }",
"public String getSchemaName() { return schemaName; }",
"public boolean isSetFriendlyName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FRIENDLYNAME$2) != 0;\r\n }\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case PLUGIN:\n return isSetPlugin();\n case PACKAGENAME:\n return isSetPackagename();\n case STATUS:\n return isSetStatus();\n case SIZE:\n return isSetSize();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetCnName() {\n return this.cnName != null;\n }",
"public boolean isSetUserName() {\r\n return this.userName != null;\r\n }",
"public boolean isSetUserName() {\r\n return this.userName != null;\r\n }",
"public boolean isSetUserName() {\r\n return this.userName != null;\r\n }",
"public boolean isSetUserName() {\r\n return this.userName != null;\r\n }",
"public boolean isSetUserName() {\r\n return this.userName != null;\r\n }",
"public boolean isSetUserName() {\n return this.userName != null;\n }",
"public boolean isSetUserName() {\n return this.userName != null;\n }",
"public boolean isSetStoreName() {\r\n return storeName != null;\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FUNCTION_NAME:\n return isSetFunctionName();\n case SCHEMA_NAME:\n return isSetSchemaName();\n case CLASS_NAME:\n return isSetClassName();\n case RESOURCES:\n return isSetResources();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetProcess_Name() {\r\n return this.Process_Name != null;\r\n }",
"boolean hasFieldId();",
"public boolean isSetFields() {\n return this.fields != null;\n }",
"public boolean isNameSet( ) {\n \t\t\treturn id == null;\n \t\t}",
"public boolean isSetOriginName() {\n return this.originName != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSetColumn_names() {\n return this.column_names != null;\n }",
"private boolean isNillable(String name) {\r\n if (schema == null) {\r\n return true;\r\n }\r\n PropertyDescriptor descriptor = schema.getDescriptor(name);\r\n return descriptor == null || descriptor.isNillable();\r\n }",
"public boolean isSetFunctionName() {\n return this.functionName != null;\n }",
"public boolean isSetAccountName() {\n return this.accountName != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetMaterialName() {\n return this.materialName != null;\n }",
"public boolean isSetAutoForwardToName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOFORWARDTONAME$12) != 0;\n }\n }",
"public boolean isSetCatalogSchemaVersion() {\n return EncodingUtils.testBit(__isset_bitfield, __CATALOGSCHEMAVERSION_ISSET_ID);\n }",
"public boolean isSetProcessName() {\n return this.processName != null;\n }",
"public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }",
"public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }",
"public boolean getIsValidToSchema() {\r\n\t\treturn mIsValidToSchema;\r\n\t}",
"public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$8) != 0;\n }\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case HOST:\r\n return isSetHost();\r\n case DATABASE:\r\n return isSetDatabase();\r\n case USER_NAME:\r\n return isSetUserName();\r\n case PASSWORD:\r\n return isSetPassword();\r\n case TABLE_NAME:\r\n return isSetTableName();\r\n case HIVE_TALEB:\r\n return isSetHiveTaleb();\r\n case WHERE:\r\n return isSetWhere();\r\n case COLUMN_NAMES:\r\n return isSetColumnNames();\r\n case KEYFIELD:\r\n return isSetKeyfield();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSetAccessName() {\n return this.accessName != null;\n }",
"public boolean isSetVendorname() {\n return this.vendorname != null;\n }",
"public boolean isSetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(NAME$0) != 0;\r\n }\r\n }",
"public boolean isSetColumnNames() {\r\n return this.columnNames != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case NAME:\n return isSetName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PKTABLE_DB:\n return isSetPktable_db();\n case PKTABLE_NAME:\n return isSetPktable_name();\n case PKCOLUMN_NAME:\n return isSetPkcolumn_name();\n case FKTABLE_DB:\n return isSetFktable_db();\n case FKTABLE_NAME:\n return isSetFktable_name();\n case FKCOLUMN_NAME:\n return isSetFkcolumn_name();\n case KEY_SEQ:\n return isSetKey_seq();\n case UPDATE_RULE:\n return isSetUpdate_rule();\n case DELETE_RULE:\n return isSetDelete_rule();\n case FK_NAME:\n return isSetFk_name();\n case PK_NAME:\n return isSetPk_name();\n case ENABLE_CSTR:\n return isSetEnable_cstr();\n case VALIDATE_CSTR:\n return isSetValidate_cstr();\n case RELY_CSTR:\n return isSetRely_cstr();\n case CAT_NAME:\n return isSetCatName();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case FILE_BODY:\n return isSetFileBody();\n case FILE_TYPE:\n return isSetFileType();\n }\n throw new IllegalStateException();\n }",
"protected boolean isSaveSchema() {\n\t\treturn false;\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSetNames() {\n return this.names != null;\n }",
"public boolean isSetColNames() {\n return this.colNames != null;\n }",
"public boolean isSetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(WIDTH$20) != null;\n }\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }",
"@java.lang.Override\n public boolean hasAvro() {\n return schemaCase_ == 1;\n }",
"public boolean isSetFromName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FROMNAME$4) != 0;\n }\n }",
"public final boolean isGroupNameSetted() {\n\t\treturn engine.isPropertySetted(Properties.GROUP_NAME);\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_BYTE_BUFFER:\n return isSetFileByteBuffer();\n case APP_NAME:\n return isSetAppName();\n case ORIGIN_NAME:\n return isSetOriginName();\n case USER_ID:\n return isSetUserId();\n case USER_IP:\n return isSetUserIp();\n }\n throw new IllegalStateException();\n }",
"public boolean hasValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn false;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\t}\n\t}",
"@java.lang.Override\n public boolean hasAvro() {\n return schemaCase_ == 1;\n }",
"public boolean isSetPublisher_name() {\n return this.publisher_name != null;\n }"
]
| [
"0.8396473",
"0.7439983",
"0.6939263",
"0.6919736",
"0.67401415",
"0.662555",
"0.6558801",
"0.64842033",
"0.6478681",
"0.6471916",
"0.646136",
"0.64286107",
"0.6426455",
"0.6426455",
"0.6426455",
"0.6426455",
"0.64151186",
"0.64146495",
"0.63940245",
"0.6383926",
"0.6362834",
"0.6358923",
"0.63339686",
"0.63307524",
"0.63227683",
"0.63227683",
"0.6300086",
"0.6291425",
"0.6286952",
"0.62759",
"0.62759",
"0.62759",
"0.62759",
"0.62759",
"0.62584907",
"0.6258435",
"0.6230751",
"0.6229939",
"0.6229939",
"0.62071425",
"0.62023264",
"0.6201431",
"0.61981016",
"0.6178449",
"0.6153207",
"0.6139638",
"0.6139638",
"0.6139638",
"0.6139638",
"0.6139638",
"0.61330205",
"0.61330205",
"0.6124145",
"0.61227065",
"0.61227065",
"0.60995865",
"0.60896933",
"0.60814035",
"0.6081062",
"0.60749084",
"0.6064345",
"0.60450727",
"0.60450727",
"0.60420394",
"0.60420394",
"0.60400593",
"0.60349476",
"0.6027859",
"0.6027304",
"0.60266894",
"0.60197186",
"0.60194004",
"0.60187984",
"0.6018176",
"0.6016181",
"0.6016181",
"0.60024506",
"0.599694",
"0.59934723",
"0.59883016",
"0.5987481",
"0.5986437",
"0.59855556",
"0.59746355",
"0.5974183",
"0.5968873",
"0.5961781",
"0.59603757",
"0.5951806",
"0.5939942",
"0.5933405",
"0.5932691",
"0.5927958",
"0.59249634",
"0.5918008",
"0.59175164",
"0.59167355",
"0.5915903",
"0.59115726",
"0.59102815"
]
| 0.8359834 | 1 |
Returns true if field className is set (has been assigned a value) and false otherwise | public boolean isSetClassName() {
return this.className != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(JAVACLASS$24) != null;\r\n }\r\n }",
"public boolean validate() {\n\t\tif (StringUtils.isEmpty(className) && !isFinal) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isSetClassCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(CLASSCODE$30) != null;\n }\n }",
"public static boolean hasField(Class<?> c, String fieldName) {\n do {\n for (Field f : c.getDeclaredFields()) {\n if (f.getName().equals(fieldName)) {\n return true;\n }\n }\n c = c.getSuperclass();\n } while (c != null);\n return false;\n }",
"boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }",
"public boolean hasQclassname() {\n return fieldSetFlags()[10];\n }",
"boolean hasClassname();",
"public boolean isDomainClassRequired() {\n final boolean result = cbDomainClass.getModel().isSelected();\n paramDomainClass = result;\n return result;\n }",
"private boolean isFieldInCar(String fieldName)\n {\n boolean result = true;\n try\n {\n CarDO.class.getDeclaredField(fieldName);\n }\n catch (NoSuchFieldException ex)\n {\n result = false;\n }\n return result;\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }",
"boolean isDefaultFor(String javaFieldName);",
"boolean hasField4();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case CLASSIFICATION:\n return isSetClassification();\n case DISCOVERY_CLASSIFICATION:\n return isSetDiscoveryClassification();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PROCESS_NAME:\n return isSetProcessName();\n case PROCESS_COUNT:\n return isSetProcessCount();\n case U_ID:\n return isSetUId();\n case SLEEPING:\n return isSetSleeping();\n case FOREGROUND:\n return isSetForeground();\n case FOREGROUND_TIME:\n return isSetForegroundTime();\n case LAUNCH_COUNT:\n return isSetLaunchCount();\n case IMPORTANCE:\n return isSetImportance();\n case CRASH_COUNT:\n return isSetCrashCount();\n case LAST_START_SINCE_BOOT:\n return isSetLastStartSinceBoot();\n case LAST_START_TIMESTAMP:\n return isSetLastStartTimestamp();\n }\n throw new IllegalStateException();\n }",
"private static boolean validateClass(String className)\n {\n Class cls = null;\n try\n {\n cls = Class.forName(className);\n }\n catch (ClassNotFoundException e)\n {\n }\n\n return cls == null ? false : validateClass(cls);\n }",
"public boolean isProperty(String classPath, String fieldName)\n throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError\n {\n final JDOField field = getJDOField(classPath, fieldName);\n return (field != null && field.isProperty());\n }",
"boolean hasField3();",
"private boolean isPersistentAllowed (String className, String fieldName)\n\t{\n\t\treturn getModel().isPersistentAllowed(className, getClassLoader(), \n\t\t\tfieldName);\n\t}",
"public Boolean hasClass() {\n return this.hasClass;\n }",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"private static boolean hasClass(String className) {\n try {\n Class.forName(className);\n return true;\n } catch (ClassNotFoundException ex) {\n return false;\n }\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case PLUGIN:\n return isSetPlugin();\n case PACKAGENAME:\n return isSetPackagename();\n case STATUS:\n return isSetStatus();\n case SIZE:\n return isSetSize();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FUNCTION_NAME:\n return isSetFunctionName();\n case SCHEMA_NAME:\n return isSetSchemaName();\n case CLASS_NAME:\n return isSetClassName();\n case RESOURCES:\n return isSetResources();\n }\n throw new IllegalStateException();\n }",
"boolean hasField0();",
"boolean hasFieldId();",
"boolean hasFieldTypeId();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_BYTE_BUFFER:\n return isSetFileByteBuffer();\n case APP_NAME:\n return isSetAppName();\n case ORIGIN_NAME:\n return isSetOriginName();\n case USER_ID:\n return isSetUserId();\n case USER_IP:\n return isSetUserIp();\n }\n throw new IllegalStateException();\n }",
"public boolean isClassVarDefined(String name) {\n RubyModule module = this;\n do {\n if (module.hasClassVariable(name)) return true;\n } while ((module = module.getSuperClass()) != null);\n \n return false;\n }",
"private void verifyClassName() {\n\t\t\n\t\tif (classNameTF.getText().isEmpty()) {\n\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Class Name\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tClass newClass = new Class(classNameTF.getText());\n\t\t\tteacher.addClass(newClass);\n\t\t\ttAddClassWindow.dispose();\n\t\t\ttPortalWindow.dispose();\n\t\t\tteacherPortalScreen();\n\t\t}\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TWEET:\n return isSetTweet();\n case LOGIN:\n return isSetLogin();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PLAYER:\n return isSetPlayer();\n case CREATION_TIME:\n return isSetCreationTime();\n case TYPE:\n return isSetType();\n case CHAT:\n return isSetChat();\n }\n throw new IllegalStateException();\n }",
"private boolean areFieldsNotBlank() {\r\n boolean ok=true;\r\n if (dogNameField.getText() == null) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n } else if (dogNameField.getText().isBlank()) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n }\r\n return ok;\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean hasClass(String className) {\n\t\treturn HasClassFunction.hasClass(this, elements, className);\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case FILE_BODY:\n return isSetFileBody();\n case FILE_TYPE:\n return isSetFileType();\n }\n throw new IllegalStateException();\n }",
"public boolean hasName() {\n return fieldSetFlags()[1];\n }",
"public boolean isSetFields() {\n return this.fields != null;\n }",
"public boolean hasName() {\n return fieldSetFlags()[0];\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case PROCESS__ID:\r\n return isSetProcess_ID();\r\n case PROCESS__NAME:\r\n return isSetProcess_Name();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INNER_STR:\n return isSetInner_str();\n case INNER_DOUBLE:\n return isSetInner_double();\n }\n throw new IllegalStateException();\n }",
"public boolean needsValueField() {\n/* 227 */ for (CEnumConstant cec : this.members) {\n/* 228 */ if (!cec.getName().equals(cec.getLexicalValue()))\n/* 229 */ return true; \n/* */ } \n/* 231 */ return false;\n/* */ }",
"private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }",
"boolean hasField1();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case TOKEN_INDEX:\n return isSetTokenIndex();\n case TEXT:\n return isSetText();\n case TEXT_SPAN:\n return isSetTextSpan();\n case RAW_TEXT_SPAN:\n return isSetRawTextSpan();\n case AUDIO_SPAN:\n return isSetAudioSpan();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isClass() {\n return operation == null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case NAME:\n return isSetName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetClassification() {\n return this.classification != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n case OUTPUT_DIR:\n return isSetOutputDir();\n case SUBSET:\n return isSetSubset();\n case TYPES:\n return isSetTypes();\n }\n throw new IllegalStateException();\n }"
]
| [
"0.6484149",
"0.62525624",
"0.6190877",
"0.6187892",
"0.6154746",
"0.6129966",
"0.6074017",
"0.6026963",
"0.5918446",
"0.5879957",
"0.58487433",
"0.58487433",
"0.5811071",
"0.5811071",
"0.5808629",
"0.5808629",
"0.5807455",
"0.57949394",
"0.57917154",
"0.5777565",
"0.5753329",
"0.5738842",
"0.573539",
"0.5679388",
"0.56493646",
"0.5642255",
"0.56400025",
"0.562859",
"0.5601968",
"0.55832183",
"0.5582359",
"0.55470675",
"0.55419546",
"0.55419356",
"0.5537774",
"0.55345887",
"0.55345887",
"0.5525837",
"0.5510926",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510848",
"0.5510772",
"0.5508429",
"0.5507832",
"0.55036044",
"0.5499046",
"0.5495833",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5494724",
"0.5493949",
"0.5488489",
"0.54859716",
"0.5484646",
"0.5483338",
"0.54833007",
"0.54759914",
"0.54719144",
"0.54697776"
]
| 0.76420075 | 0 |
Returns true if field resources is set (has been assigned a value) and false otherwise | public boolean isSetResources() {
return this.resources != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSetRequiredResources();",
"boolean isHasResources();",
"public boolean isSetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COMPARESOURCE$2) != 0;\r\n }\r\n }",
"boolean hasResource();",
"boolean isNilRequiredResources();",
"@Override\n public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case RESOURCE_HOST_ID:\n return isSetResourceHostId();\n case TOTAL_CPUCOUNT:\n return isSetTotalCPUCount();\n case NODE_COUNT:\n return isSetNodeCount();\n case NUMBER_OF_THREADS:\n return isSetNumberOfThreads();\n case QUEUE_NAME:\n return isSetQueueName();\n case WALL_TIME_LIMIT:\n return isSetWallTimeLimit();\n case TOTAL_PHYSICAL_MEMORY:\n return isSetTotalPhysicalMemory();\n case CHESSIS_NUMBER:\n return isSetChessisNumber();\n case STATIC_WORKING_DIR:\n return isSetStaticWorkingDir();\n case OVERRIDE_LOGIN_USER_NAME:\n return isSetOverrideLoginUserName();\n case OVERRIDE_SCRATCH_LOCATION:\n return isSetOverrideScratchLocation();\n case OVERRIDE_ALLOCATION_PROJECT_NUMBER:\n return isSetOverrideAllocationProjectNumber();\n case M_GROUP_COUNT:\n return isSetMGroupCount();\n }\n throw new java.lang.IllegalStateException();\n }",
"boolean hasResourceType();",
"public boolean isSetFields() {\n return this.fields != null;\n }",
"public boolean isSet() {\n\t\treturn false;\n\t}",
"public boolean hasResource(org.semanticwb.model.Resource value)\r\n {\r\n boolean ret=false;\r\n if(value!=null)\r\n {\r\n ret=getSemanticObject().hasObjectProperty(swb_hasPTResource,value.getSemanticObject());\r\n }\r\n return ret;\r\n }",
"protected boolean resourceExists() {\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tif (workspace == null)\n\t\t\treturn false;\n\t\treturn RodinDB.getTarget(workspace.getRoot(), this.getPath()\n\t\t\t\t.makeRelative(), true) != null;\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ADULT:\n return isSetAdult();\n case BACKDROP_PATH:\n return isSetBackdrop_path();\n case BELONGS_TO_COLLECTION:\n return isSetBelongs_to_collection();\n case BUDGET:\n return isSetBudget();\n case GENRES:\n return isSetGenres();\n case HOMEPAGE:\n return isSetHomepage();\n case ID:\n return isSetId();\n case IMDB_ID:\n return isSetImdb_id();\n case ORIGINAL_LANGUAGE:\n return isSetOriginal_language();\n case ORIGINAL_TITLE:\n return isSetOriginal_title();\n case OVERVIEW:\n return isSetOverview();\n case POPULARITY:\n return isSetPopularity();\n case POSTER_PATH:\n return isSetPoster_path();\n case PRODUCTION_COMPANIES:\n return isSetProduction_companies();\n case PRODUCTION_COUNTRIES:\n return isSetProduction_countries();\n case RELEASE_DATE:\n return isSetRelease_date();\n case REVENUE:\n return isSetRevenue();\n case RUNTIME:\n return isSetRuntime();\n case SPOKEN_LANGUAGES:\n return isSetSpoken_languages();\n case STATUS:\n return isSetStatus();\n case TAGLINE:\n return isSetTagline();\n case TITLE:\n return isSetTitle();\n case VIDEO:\n return isSetVideo();\n case VOTE_AVERAGE:\n return isSetVote_average();\n case VOTE_COUNT:\n return isSetVote_count();\n }\n throw new IllegalStateException();\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"public boolean isSetProperties() {\n return this.properties != null;\n }",
"public boolean isSetResourceHostId() {\n return this.resourceHostId != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case PLUGIN:\n return isSetPlugin();\n case PACKAGENAME:\n return isSetPackagename();\n case STATUS:\n return isSetStatus();\n case SIZE:\n return isSetSize();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STAMPEDE_ID:\n return isSetStampedeId();\n case RUN_ID:\n return isSetRunId();\n case TOTAL_RULES_COUNT:\n return isSetTotalRulesCount();\n case RULES_STARTED_COUNT:\n return isSetRulesStartedCount();\n case RULES_FINISHED_COUNT:\n return isSetRulesFinishedCount();\n case RULES_SUCCESS_COUNT:\n return isSetRulesSuccessCount();\n case RULES_FAILURE_COUNT:\n return isSetRulesFailureCount();\n case CACHE_HITS_COUNT:\n return isSetCacheHitsCount();\n case CACHE_MISSES_COUNT:\n return isSetCacheMissesCount();\n case CACHE_IGNORES_COUNT:\n return isSetCacheIgnoresCount();\n case CACHE_ERRORS_COUNT:\n return isSetCacheErrorsCount();\n case CACHE_LOCAL_KEY_UNCHANGED_HITS_COUNT:\n return isSetCacheLocalKeyUnchangedHitsCount();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetGenres() {\r\n return this.genres != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetGenres() {\n return this.genres != null;\n }",
"@Override\n public boolean isDefined()\n {\n return getValue() != null || getChildrenCount() > 0\n || getAttributeCount() > 0;\n }",
"private boolean checkRemainingRes() {\n for (int i = 0; i < playingField.getPlayingField().length; i++) {\n for (int j = 0; j < playingField.getPlayingField()[i].length; j++) {\n if (playingField.getPlayingField()[i][j].getResources() > 0) {\n return true;\n }\n }\n }\n return false;\n }",
"boolean isSetSurfaceRefs();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FUNCTION_NAME:\n return isSetFunctionName();\n case SCHEMA_NAME:\n return isSetSchemaName();\n case CLASS_NAME:\n return isSetClassName();\n case RESOURCES:\n return isSetResources();\n }\n throw new IllegalStateException();\n }",
"public synchronized boolean isLoaded() {\n\t\treturn _resourceData != null;\n\t}",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DEST_APP:\n return is_set_destApp();\n case DEST_PELLET:\n return is_set_destPellet();\n case DATA:\n return is_set_data();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case FAILURE:\n return isSetFailure();\n case RESULTS:\n return isSetResults();\n case REQUESTS:\n return isSetRequests();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetPir()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PIR$12) != 0;\r\n }\r\n }",
"@Override\n public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PROCESS_ID:\n return isSetProcessId();\n case APPLICATION_INTERFACE_ID:\n return isSetApplicationInterfaceId();\n case COMPUTE_RESOURCE_ID:\n return isSetComputeResourceId();\n case QUEUE_NAME:\n return isSetQueueName();\n case NODE_COUNT:\n return isSetNodeCount();\n case CORE_COUNT:\n return isSetCoreCount();\n case WALL_TIME_LIMIT:\n return isSetWallTimeLimit();\n case PHYSICAL_MEMORY:\n return isSetPhysicalMemory();\n case STATUSES:\n return isSetStatuses();\n case ERRORS:\n return isSetErrors();\n case CREATED_AT:\n return isSetCreatedAt();\n case UPDATED_AT:\n return isSetUpdatedAt();\n }\n throw new java.lang.IllegalStateException();\n }",
"boolean hasPredefinedValues();",
"public boolean isSetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRF$26) != 0;\r\n }\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }",
"@Override\n public boolean isSet() {\n return loci != null;\n }",
"public boolean areBothFieldsSet()\r\n {\r\n if ((!(isEditText1Empty)) && (!(isEditText2Empty))) {\r\n this.button1.setImageResource(R.drawable.login); // THIS NEEDS DIFFERENT SRC\r\n return true;\r\n } else {\r\n this.button1.setImageResource(R.drawable.login);\r\n return false;\r\n }\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ERROR_MAP:\n return isSetErrorMap();\n case SUCCESS_BATCH_CODE:\n return isSetSuccessBatchCode();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case RESOURCE_PLAN_NAME:\n return isSetResourcePlanName();\n case POOL_PATH:\n return isSetPoolPath();\n case ALLOC_FRACTION:\n return isSetAllocFraction();\n case QUERY_PARALLELISM:\n return isSetQueryParallelism();\n case SCHEDULING_POLICY:\n return isSetSchedulingPolicy();\n case IS_SET_SCHEDULING_POLICY:\n return isSetIsSetSchedulingPolicy();\n case NS:\n return isSetNs();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PID:\n return isSetPid();\n case CUS_PER_BASE:\n return isSetCusPerBase();\n case TOTAL_ASSETS:\n return isSetTotalAssets();\n case TOTAL_LIAB:\n return isSetTotalLiab();\n case FAMILY_ASSETS:\n return isSetFamilyAssets();\n case YEAR_PAY:\n return isSetYearPay();\n case MONTH_WAGE:\n return isSetMonthWage();\n case FAMILY_INCOME:\n return isSetFamilyIncome();\n case FAMILY_CONTROL:\n return isSetFamilyControl();\n case STATUS:\n return isSetStatus();\n case ASSETS_DETAIL:\n return isSetAssetsDetail();\n case LIAB_DETAIL:\n return isSetLiabDetail();\n case MONTHLY_PAYMENT:\n return isSetMonthlyPayment();\n case OVERDRAFT:\n return isSetOverdraft();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case UCARID:\n return isSetUcarid();\n case UCARSERIALNUMBER:\n return isSetUcarserialnumber();\n case UCARSTATUS:\n return isSetUcarstatus();\n case CARPROVICEID:\n return isSetCarproviceid();\n case CARCITYID:\n return isSetCarcityid();\n case COLOR:\n return isSetColor();\n case DRIVINGMILEAGE:\n return isSetDrivingmileage();\n case COMPLETERATE:\n return isSetCompleterate();\n case CARSOURCE1L:\n return isSetCarsource1l();\n case ISVIDEO:\n return isSetIsvideo();\n case FIRSTPICTRUE:\n return isSetFirstpictrue();\n case CARTYPE:\n return isSetCartype();\n case SOURCE:\n return isSetSource();\n case ISNEGLECT:\n return isSetIsneglect();\n case PICTURECOUNT:\n return isSetPicturecount();\n case PICTURENUMBER:\n return isSetPicturenumber();\n case DISPLAYPRICE:\n return isSetDisplayprice();\n case STATUSMODIFYTIME:\n return isSetStatusmodifytime();\n case CREATETIME:\n return isSetCreatetime();\n case BUYCARDATE:\n return isSetBuycardate();\n case CARPUBLISHTIME:\n return isSetCarpublishtime();\n case UCARPICWHOLEPATH:\n return isSetUcarpicwholepath();\n case ISDEALERRECOMMEND:\n return isSetIsdealerrecommend();\n case ISAUTHENTICATED:\n return isSetIsauthenticated();\n case ISRECOMMENDGL:\n return isSetIsrecommendgl();\n case ISOWNCAR:\n return isSetIsowncar();\n case C2BPRICE:\n return isSetC2bprice();\n case ISTOP:\n return isSetIstop();\n case STATEDESCRIPTION:\n return isSetStatedescription();\n case ISWARRANTY:\n return isSetIswarranty();\n case WARRANTYTYPES:\n return isSetWarrantytypes();\n case ISSHOWMR:\n return isSetIsshowmr();\n case CARPROVINCENAME:\n return isSetCarprovincename();\n case CARCITYNAME:\n return isSetCarcityname();\n case CARDISTRICTID:\n return isSetCardistrictid();\n case CARDISTRICTNAME:\n return isSetCardistrictname();\n case SLOGAN:\n return isSetSlogan();\n case B2BPRICE:\n return isSetB2bprice();\n case ISB2B:\n return isSetIsb2b();\n case MAINBRANDID:\n return isSetMainbrandid();\n case PRODUCERID:\n return isSetProducerid();\n case COUNTRY:\n return isSetCountry();\n case BRANDID:\n return isSetBrandid();\n case CARLEVEL:\n return isSetCarlevel();\n case CARLEVELVALUE:\n return isSetCarlevelvalue();\n case CARID:\n return isSetCarid();\n case GEARBOXTYPE:\n return isSetGearboxtype();\n case GEARBOXTYPESTRING:\n return isSetGearboxtypestring();\n case EXHAUSTVALUE:\n return isSetExhaustvalue();\n case CARYEAR:\n return isSetCaryear();\n case CARREFERPRICE:\n return isSetCarreferprice();\n case ENVIRSTANDARD:\n return isSetEnvirstandard();\n case CONSUMPTION:\n return isSetConsumption();\n case OILTYPE:\n return isSetOiltype();\n case ENGINELOCATION:\n return isSetEnginelocation();\n case BODYDOORS:\n return isSetBodydoors();\n case SEATNUMMIN:\n return isSetSeatnummin();\n case SEATNUMMAX:\n return isSetSeatnummax();\n case ISWAGON:\n return isSetIswagon();\n case DRIVETYPE:\n return isSetDrivetype();\n case ISAGENCY:\n return isSetIsagency();\n case CSBODYFORM:\n return isSetCsbodyform();\n case BRANDATTR:\n return isSetBrandattr();\n case ISMARKINGVENDOR:\n return isSetIsmarkingvendor();\n case COUNTRYVALUE:\n return isSetCountryvalue();\n case USERID:\n return isSetUserid();\n case SUPERIORID:\n return isSetSuperiorid();\n case VENDORNAME:\n return isSetVendorname();\n case VENDORTYPE:\n return isSetVendortype();\n case CONTACT:\n return isSetContact();\n case ISJDVENDOR:\n return isSetIsjdvendor();\n case ISINCTRANSFER:\n return isSetIsinctransfer();\n case USERTYPE:\n return isSetUsertype();\n case ISACTIVITY:\n return isSetIsactivity();\n case MEMBERTYPE:\n return isSetMembertype();\n case ISBANGMAI:\n return isSetIsbangmai();\n case DVQFLAG:\n return isSetDvqflag();\n case ISBANGMAICHE:\n return isSetIsbangmaiche();\n case BAIDUMAP:\n return isSetBaidumap();\n case DISTANCE:\n return isSetDistance();\n case LINKMAN:\n return isSetLinkman();\n case CARTYPECONFIG:\n return isSetCartypeconfig();\n case SITEID:\n return isSetSiteid();\n case CARTITLE:\n return isSetCartitle();\n case CARLEVELSECOND:\n return isSetCarlevelsecond();\n case ISCHECKREPORTJSON:\n return isSetIscheckreportjson();\n case CLICKCOUNT:\n return isSetClickcount();\n case CRMCUSTOMERID:\n return isSetCrmcustomerid();\n case BOOST:\n return isSetBoost();\n case BOOSTC:\n return isSetBoostc();\n case BOOSTAPP:\n return isSetBoostapp();\n case SCORE:\n return isSetScore();\n case COSTRATE:\n return isSetCostrate();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ATTRS:\n return isSetAttrs();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERSION:\n return isSetVersion();\n case AM_HANDLE:\n return isSetAm_handle();\n case USER:\n return isSetUser();\n case QUEUE:\n return isSetQueue();\n case RESOURCES:\n return isSetResources();\n case GANG:\n return isSetGang();\n case RESERVATION_ID:\n return isSetReservation_id();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TITLE:\n return isSetTitle();\n case SALARY_TOP:\n return isSetSalary_top();\n case SALARY_BOTTOM:\n return isSetSalary_bottom();\n case PUBLISH_DATE:\n return isSetPublish_date();\n case DEPARTMENT:\n return isSetDepartment();\n case VISITNUM:\n return isSetVisitnum();\n case IN_HB:\n return isSetIn_hb();\n case COUNT:\n return isSetCount();\n case COMPANY_ABBR:\n return isSetCompany_abbr();\n case COMPANY_LOGO:\n return isSetCompany_logo();\n case COMPANY_NAME:\n return isSetCompany_name();\n case IS_NEW:\n return isSetIs_new();\n case CITY:\n return isSetCity();\n case PRIORITY:\n return isSetPriority();\n case PUBLISHER:\n return isSetPublisher();\n case ACCOUNTABILITIES:\n return isSetAccountabilities();\n case TOTAL_NUM:\n return isSetTotal_num();\n case CANDIDATE_SOURCE:\n return isSetCandidate_source();\n case REQUIREMENT:\n return isSetRequirement();\n case CITY_ENAME:\n return isSetCity_ename();\n case IS_REFERRAL:\n return isSetIs_referral();\n case EMPLOYMENT_TYPE:\n return isSetEmployment_type();\n case EMPLOYMENT_TYPE_NAME:\n return isSetEmployment_type_name();\n case PUBLISHER_NAME:\n return isSetPublisher_name();\n case UPDATE_TIME:\n return isSetUpdate_time();\n case DEGREE_ABOVE:\n return isSetDegree_above();\n case DEGREE:\n return isSetDegree();\n case EXPERIENCE_ABOVE:\n return isSetExperience_above();\n case EXPERIENCE:\n return isSetExperience();\n case TEAM_ID:\n return isSetTeam_id();\n case TOTAL_BONUS:\n return isSetTotal_bonus();\n case HB_STATUS:\n return isSetHb_status();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEER_LIST:\n return isSetBeerList();\n case STATUS_CODE:\n return isSetStatusCode();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetComputeResourceId() {\n return this.computeResourceId != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERSION:\n return isSetVersion();\n case DO_NOT_CACHE:\n return isSetDo_not_cache();\n case QUEUES:\n return isSetQueues();\n case HANDLES:\n return isSetHandles();\n case RESERVATIONS:\n return isSetReservations();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_SIZE:\n return isSetPageSize();\n case PAGE_NO:\n return isSetPageNo();\n case UP_PAGE:\n return isSetUpPage();\n case NEXT_PAGE:\n return isSetNextPage();\n case TOTAL_COUNT:\n return isSetTotalCount();\n case TOTAL_PAGE:\n return isSetTotalPage();\n case PAGE_URL:\n return isSetPageUrl();\n case PARAMS:\n return isSetParams();\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetRFSequenceDesc() {\n return (this.rfSequenceDesc != null ? this.rfSequenceDesc.isSetValue() : false);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case NAME:\n return isSetName();\n case DESCRIPTION:\n return isSetDescription();\n case KEY_VALUE_MAPS:\n return isSetKeyValueMaps();\n case IDENTIFIED_RISKS:\n return isSetIdentifiedRisks();\n case CONTROLS:\n return isSetControls();\n case CONSIDERED_ASSETS:\n return isSetConsideredAssets();\n case CONSIDERED_THREAT_AGENTS:\n return isSetConsideredThreatAgents();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return isSetStatus();\n case DESCRIPTION:\n return isSetDescription();\n case SOURCE_CHARGED:\n return isSetSourceCharged();\n case TARGET_DEPOSIT:\n return isSetTargetDeposit();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n\t\tif (field == null) {\n\t\t\tthrow new java.lang.IllegalArgumentException();\n\t\t}\n\n\t\tswitch (field) {\n\t\tcase LANG:\n\t\t\treturn isSetLang();\n\t\tcase ICON:\n\t\t\treturn isSetIcon();\n\t\tcase NAME:\n\t\t\treturn isSetName();\n\t\tcase PHONE:\n\t\t\treturn isSetPhone();\n\t\tcase EMAIL:\n\t\t\treturn isSetEmail();\n\t\tcase SOCIAL:\n\t\t\treturn isSetSocial();\n\t\tcase SEX:\n\t\t\treturn isSetSex();\n\t\tcase BIRTH:\n\t\t\treturn isSetBirth();\n\t\tcase BIRTH_PLACE:\n\t\t\treturn isSetBirthPlace();\n\t\tcase HEIGHT:\n\t\t\treturn isSetHeight();\n\t\tcase WEIGHT:\n\t\t\treturn isSetWeight();\n\t\tcase SIGN:\n\t\t\treturn isSetSign();\n\t\tcase COUNTRY:\n\t\t\treturn isSetCountry();\n\t\tcase PROVINCE:\n\t\t\treturn isSetProvince();\n\t\tcase CITY:\n\t\t\treturn isSetCity();\n\t\tcase DISTRICT:\n\t\t\treturn isSetDistrict();\n\t\tcase ADDRESS:\n\t\t\treturn isSetAddress();\n\t\tcase VIP_NAME:\n\t\t\treturn isSetVipName();\n\t\tcase VIP_PHONE:\n\t\t\treturn isSetVipPhone();\n\t\tcase REAL_NAME:\n\t\t\treturn isSetRealName();\n\t\tcase REAL_ICON:\n\t\t\treturn isSetRealIcon();\n\t\tcase CARD_ID:\n\t\t\treturn isSetCardId();\n\t\tcase PASSPORT:\n\t\t\treturn isSetPassport();\n\t\tcase DRIVER:\n\t\t\treturn isSetDriver();\n\t\tcase BANK_NUMBER:\n\t\t\treturn isSetBankNumber();\n\t\tcase EDUCATION:\n\t\t\treturn isSetEducation();\n\t\tcase GRADUATE:\n\t\t\treturn isSetGraduate();\n\t\tcase MAJOR:\n\t\t\treturn isSetMajor();\n\t\tcase ETHNIC:\n\t\t\treturn isSetEthnic();\n\t\tcase RELIGION:\n\t\t\treturn isSetReligion();\n\t\tcase PARTY:\n\t\t\treturn isSetParty();\n\t\tcase WX_ICON:\n\t\t\treturn isSetWxIcon();\n\t\tcase WX_NICKNAME:\n\t\t\treturn isSetWxNickname();\n\t\t}\n\t\tthrow new java.lang.IllegalStateException();\n\t}",
"public boolean is_set_inputs() {\n return this.inputs != null;\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public Boolean allocateResources(@SuppressWarnings(\"unchecked\") R... resources)\r\n\t{\r\n\t\tthis.resources.addAll(Arrays.asList(resources));\r\n\t\tthis.ORIGIN=0;\r\n\t\tthis.LENGTH=this.resources.size();\r\n\t\tthis.TERMINAL=this.resources.size()-1;\r\n\t\treturn this.state.setNewState(strPlanningEntryType, \"Allocated\");\r\n\t}",
"public boolean isSet(_Fields field) {\n\t\tif (field == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tswitch (field) {\n\t\tcase REFERENCE_VENDORED_CONST:\n\t\t\treturn isSetReference_vendored_const();\n\t\tcase REFERENCE_VENDORED_ENUM:\n\t\t\treturn isSetReference_vendored_enum();\n\t\t}\n\t\tthrow new IllegalStateException();\n\t}",
"boolean isSetConstraints();",
"public boolean isSetConsideredAssets() {\n return this.ConsideredAssets != null;\n }",
"public boolean isSetControls() {\n return this.Controls != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PRODUCT_ID:\n return isSetProductId();\n case DESCRIPTION:\n return isSetDescription();\n case MARKET_PRICE:\n return isSetMarketPrice();\n case PRICE:\n return isSetPrice();\n case AMOUNT:\n return isSetAmount();\n case ORDER:\n return isSetOrder();\n case SALED_NUM:\n return isSetSaledNum();\n case CODE:\n return isSetCode();\n case TYPE:\n return isSetType();\n case DISPLAY:\n return isSetDisplay();\n case SPEC_MAP:\n return isSetSpecMap();\n case IMG:\n return isSetImg();\n case IMG_WIDTH:\n return isSetImgWidth();\n case IMG_HEIGHT:\n return isSetImgHeight();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TOTAL_FILES_MATERIALIZED_COUNT:\n return isSetTotalFilesMaterializedCount();\n case FILES_MATERIALIZED_FROM_CASCOUNT:\n return isSetFilesMaterializedFromCASCount();\n case TOTAL_TIME_SPENT_MATERIALIZING_FILES_FROM_CASMILLIS:\n return isSetTotalTimeSpentMaterializingFilesFromCASMillis();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetExam_records() {\n return this.exam_records != null;\n }",
"private boolean containsLinkedResource(IResource[] resources) {\r\n for (IResource resource : resources) {\r\n if (resource.isLinked()) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return is_set_status();\n case DATA:\n return is_set_data();\n case SUMMARY:\n return is_set_summary();\n case FEATURE:\n return is_set_feature();\n case PREDICT_RESULT:\n return is_set_predictResult();\n case MSG:\n return is_set_msg();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ROWKEY:\n return isSetRowkey();\n case START_TIME:\n return isSetStartTime();\n case END_TIME:\n return isSetEndTime();\n case DEVICE_NAME:\n return isSetDeviceName();\n case MATERIAL_NAME:\n return isSetMaterialName();\n case GROUP:\n return isSetGroup();\n case SHFIT:\n return isSetShfit();\n case ITEMS:\n return isSetItems();\n }\n throw new IllegalStateException();\n }",
"public boolean hasPredefinedValues() {\n return predefinedValuesBuilder_ != null || predefinedValues_ != null;\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean getIsValid() {\n return projectName != null && packageName != null && !projectName.isEmpty() && !packageName.isEmpty();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }",
"private boolean hasEscalatingResources(List<String> resources) {\n return !Collections.disjoint(resources, EscalatingResources.ESCALATING_RESOURCES);\n }",
"public boolean isComplete()\n {\n return (name != null) && (spacecraft != null) &&\n (sensor != null) && (description != null);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case COMPANY_ID:\n return isSetCompanyId();\n case APPLIER_MOBILE:\n return isSetApplierMobile();\n case APPLIER_NAME:\n return isSetApplierName();\n case JOBNUMBER:\n return isSetJobnumber();\n case JOBTITLE:\n return isSetJobtitle();\n case PHASECODE:\n return isSetPhasecode();\n case PHASENAME:\n return isSetPhasename();\n case STATUSCODE:\n return isSetStatuscode();\n case STATUSNAME:\n return isSetStatusname();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetNumRFElements() {\n return (this.numRFElements != null ? this.numRFElements.isSetValue() : false);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case ENTITY_IDS:\n return isSetEntityIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INPUTS:\n return is_set_inputs();\n case STREAMS:\n return is_set_streams();\n case PARALLELISM_HINT:\n return is_set_parallelism_hint();\n case JSON_CONF:\n return is_set_json_conf();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case VERSION:\n return isSetVersion();\n case APP_ID:\n return isSetApp_id();\n case BRAND:\n return isSetBrand();\n case POINT:\n return isSetPoint();\n case CAMPAIGN_TYPE:\n return isSetCampaign_type();\n case POINT_MULTIPLY:\n return isSetPoint_multiply();\n case SNAPEARN_ID:\n return isSetSnapearn_id();\n case RECEIPT_NUMBER:\n return isSetReceipt_number();\n case OUTLET_ID:\n return isSetOutlet_id();\n case OPERATOR_ID:\n return isSetOperator_id();\n case REJECTED_REASON:\n return isSetRejected_reason();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case NAME:\n return isSetName();\n case FILE_BODY:\n return isSetFileBody();\n case FILE_TYPE:\n return isSetFileType();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case EXPERIMENT_ID:\n return isSetExperimentId();\n case FILE_NAME:\n return isSetFileName();\n case BUFFER:\n return isSetBuffer();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_PATH:\n return isSetFilePath();\n case OUTPUT_DIR:\n return isSetOutputDir();\n case SUBSET:\n return isSetSubset();\n case TYPES:\n return isSetTypes();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PKTABLE_DB:\n return isSetPktable_db();\n case PKTABLE_NAME:\n return isSetPktable_name();\n case PKCOLUMN_NAME:\n return isSetPkcolumn_name();\n case FKTABLE_DB:\n return isSetFktable_db();\n case FKTABLE_NAME:\n return isSetFktable_name();\n case FKCOLUMN_NAME:\n return isSetFkcolumn_name();\n case KEY_SEQ:\n return isSetKey_seq();\n case UPDATE_RULE:\n return isSetUpdate_rule();\n case DELETE_RULE:\n return isSetDelete_rule();\n case FK_NAME:\n return isSetFk_name();\n case PK_NAME:\n return isSetPk_name();\n case ENABLE_CSTR:\n return isSetEnable_cstr();\n case VALIDATE_CSTR:\n return isSetValidate_cstr();\n case RELY_CSTR:\n return isSetRely_cstr();\n case CAT_NAME:\n return isSetCatName();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_TOKEN:\n return isSetAccessToken();\n case PATH:\n return isSetPath();\n case NAME:\n return isSetName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case HEADER_TRANSPORT:\n return isSetHeaderTransport();\n case UUID_FICHA:\n return isSetUuidFicha();\n case TP_CDS_ORIGEM:\n return isSetTpCdsOrigem();\n case TURNO:\n return isSetTurno();\n case CNS_CIDADAO:\n return isSetCnsCidadao();\n case CNS_RESPONSAVEL_FAMILIAR:\n return isSetCnsResponsavelFamiliar();\n case DATA_REALIZACAO_TESTE_OLHINHO:\n return isSetDataRealizacaoTesteOlhinho();\n case CO_RESULTADO_TESTE_OLHINHO:\n return isSetCoResultadoTesteOlhinho();\n case DATA_REALIZACAO_EXAME_FUNDO_OLHO:\n return isSetDataRealizacaoExameFundoOlho();\n case CO_RESULTADO_EXAME_FUNDO_OLHO:\n return isSetCoResultadoExameFundoOlho();\n case DATA_REALIZACAO_TESTE_ORELHINHA:\n return isSetDataRealizacaoTesteOrelhinha();\n case CO_RESULTADO_TESTE_ORELHINHA:\n return isSetCoResultadoTesteOrelhinha();\n case DATA_REALIZACAO_USTRANSFONTANELA:\n return isSetDataRealizacaoUSTransfontanela();\n case CO_RESULTADO_US_TRANSFONTANELA:\n return isSetCoResultadoUsTransfontanela();\n case DATA_REALIZACAO_TOMOGRAFIA_COMPUTADORIZADA:\n return isSetDataRealizacaoTomografiaComputadorizada();\n case CO_RESULTADO_TOMOGRAFIA_COMPUTADORIZADA:\n return isSetCoResultadoTomografiaComputadorizada();\n case DATA_REALIZACAO_RESSONANCIA_MAGNETICA:\n return isSetDataRealizacaoRessonanciaMagnetica();\n case CO_RESULTADO_RESSONANCIA_MAGNETICA:\n return isSetCoResultadoRessonanciaMagnetica();\n case CPF_CIDADAO:\n return isSetCpfCidadao();\n case CPF_RESPONSAVEL_FAMILIAR:\n return isSetCpfResponsavelFamiliar();\n }\n throw new IllegalStateException();\n }",
"private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }",
"public boolean isUpdateAllIntrospectedResources () {\n return updateAllIntrospectedResources;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE_NAME:\n return isSetFileName();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetFamilyAssets() {\n return EncodingUtils.testBit(__isset_bitfield, __FAMILYASSETS_ISSET_ID);\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case P_ID:\n return isSetPId();\n case PRE_REPAY_AMT:\n return isSetPreRepayAmt();\n case FINE_RATES:\n return isSetFineRates();\n case FINE:\n return isSetFine();\n case IS_ARREARS:\n return isSetIsArrears();\n case IS_REBACK_INTEREST:\n return isSetIsRebackInterest();\n case HAS_OTHER_LOAN:\n return isSetHasOtherLoan();\n case REASON:\n return isSetReason();\n case REPAY_DATE:\n return isSetRepayDate();\n case SURPLUS:\n return isSetSurplus();\n case LOAN_ID:\n return isSetLoanId();\n case REQUEST_STATUS:\n return isSetRequestStatus();\n case REQUEST_DTTM:\n return isSetRequestDttm();\n case COMPELTE_DTTM:\n return isSetCompelteDttm();\n case PRE_REPAY_ID:\n return isSetPreRepayId();\n case STATUS:\n return isSetStatus();\n case PLAN_REPAY_LOAN_DT:\n return isSetPlanRepayLoanDt();\n case PROJECT_ID:\n return isSetProjectId();\n case LOAN_PLAN_ID:\n return isSetLoanPlanId();\n case SHOULD_PREPAYMENT_FEE:\n return isSetShouldPrepaymentFee();\n case CREATE_DATE:\n return isSetCreateDate();\n case CREATER_ID:\n return isSetCreaterId();\n case UPDATE_ID:\n return isSetUpdateId();\n case UPDATE_DATE:\n return isSetUpdateDate();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case FILE:\n return isSetFile();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case ENTITY_IDS:\n return isSetEntityIds();\n case START_TIME:\n return isSetStartTime();\n case END_TIME:\n return isSetEndTime();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case ENTITY_IDS:\n return isSetEntityIds();\n case START_TIME:\n return isSetStartTime();\n case END_TIME:\n return isSetEndTime();\n }\n throw new IllegalStateException();\n }"
]
| [
"0.7977869",
"0.71584624",
"0.7016985",
"0.6785692",
"0.65895635",
"0.64615893",
"0.62950724",
"0.6248606",
"0.6192654",
"0.6176271",
"0.61719584",
"0.6160744",
"0.6153168",
"0.612709",
"0.6126738",
"0.60688746",
"0.6067211",
"0.6050555",
"0.6043015",
"0.60393083",
"0.60290515",
"0.6026273",
"0.6019467",
"0.6014797",
"0.60070723",
"0.60041356",
"0.5997317",
"0.5989411",
"0.598317",
"0.59791243",
"0.5975522",
"0.5960035",
"0.5958477",
"0.5955132",
"0.59507453",
"0.59499294",
"0.5948726",
"0.5947223",
"0.59427214",
"0.59415853",
"0.5940034",
"0.59364086",
"0.59357935",
"0.59330106",
"0.59321904",
"0.5930237",
"0.59232134",
"0.592074",
"0.59108025",
"0.59098613",
"0.59059924",
"0.59019417",
"0.5897787",
"0.589296",
"0.5888663",
"0.58885956",
"0.58866376",
"0.5885862",
"0.5885862",
"0.5885862",
"0.5885862",
"0.58746636",
"0.5871922",
"0.58717096",
"0.58717096",
"0.58655953",
"0.58618104",
"0.58543545",
"0.5851746",
"0.585036",
"0.5846568",
"0.5846421",
"0.5846421",
"0.5846421",
"0.5846421",
"0.5843748",
"0.5837435",
"0.5836231",
"0.5835676",
"0.58331895",
"0.58323246",
"0.58322144",
"0.5829866",
"0.5826354",
"0.58210945",
"0.58206993",
"0.58190924",
"0.5818608",
"0.5818087",
"0.58157843",
"0.58153546",
"0.581271",
"0.58116233",
"0.58116233",
"0.5811501",
"0.5808589",
"0.5808326",
"0.58058184",
"0.58058184"
]
| 0.83037746 | 1 |
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise | public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case FUNCTION_NAME:
return isSetFunctionName();
case SCHEMA_NAME:
return isSetSchemaName();
case CLASS_NAME:
return isSetClassName();
case RESOURCES:
return isSetResources();
}
throw new IllegalStateException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(int fieldID) {\n switch (fieldID) {\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case SELECT_PRIV:\n return isSetSelect_priv();\n case INSERT_PRIV:\n return isSetInsert_priv();\n case CREATE_PRIV:\n return isSetCreate_priv();\n case DROP_PRIV:\n return isSetDrop_priv();\n case GRANT_PRIV:\n return isSetGrant_priv();\n case ALTER_PRIV:\n return isSetAlter_priv();\n case CREATE_USER_PRIV:\n return isSetCreate_user_priv();\n case SUPER_PRIV:\n return isSetSuper_priv();\n default:\n throw new IllegalArgumentException(\"Field \" + fieldID + \" doesn't exist!\");\n }\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PARAMS:\n return isSetParams();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }",
"boolean hasField4();",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case POST_ID:\n return isSetPostId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ENTITY_ID:\r\n return isSetEntityId();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }",
"boolean hasFieldId();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }",
"boolean hasField0();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PARENT_ID:\n return isSetParentId();\n case TYPE:\n return isSetType();\n case VALUE:\n return isSetValue();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetFields() {\n return this.fields != null;\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RELATED_ID:\n return isSetRelatedId();\n case COMPANY_ID:\n return isSetCompanyId();\n case COMPANY_GROUP_ID:\n return isSetCompanyGroupId();\n case MACHINE_ID:\n return isSetMachineId();\n case ACTIVE_START_TIMESTAMP:\n return isSetActiveStartTimestamp();\n case ACTIVED_END_TIMESTAMP:\n return isSetActivedEndTimestamp();\n case MACHINE_INNER_IP:\n return isSetMachineInnerIP();\n case MACHINE_OUTER_IP:\n return isSetMachineOuterIP();\n case CREATE_TIMESTAMP:\n return isSetCreateTimestamp();\n case LASTMODIFY_TIMESTAMP:\n return isSetLastmodifyTimestamp();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case COMMODITY_IDS:\n return isSetCommodityIds();\n }\n throw new IllegalStateException();\n }",
"boolean hasField1();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case X:\n return isSetX();\n case Y:\n return isSetY();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new java.lang.IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case ID_CURSA:\r\n return isSetIdCursa();\r\n case NR_LOC:\r\n return isSetNrLoc();\r\n case CLIENT:\r\n return isSetClient();\r\n }\r\n throw new java.lang.IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PID:\n return isSetPid();\n case EXCEPTION_ID:\n return isSetExceptionId();\n case USER_ID:\n return isSetUserId();\n case REPORT_DATE:\n return isSetReportDate();\n case UN_ASSURE_CONDITION:\n return isSetUnAssureCondition();\n case HOUSE_PROPERY_CONDITION:\n return isSetHouseProperyCondition();\n case REMARK:\n return isSetRemark();\n case CREATE_DATE:\n return isSetCreateDate();\n case CREATE_ID:\n return isSetCreateId();\n case UPDATE_DATE:\n return isSetUpdateDate();\n case UPDATE_ID:\n return isSetUpdateId();\n case PROJECT_ID:\n return isSetProjectId();\n case LEGAL_LIST:\n return isSetLegalList();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PATIENT_ID:\n return isSetPatient_id();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }"
]
| [
"0.79056656",
"0.79056656",
"0.78333884",
"0.78036314",
"0.77937067",
"0.7780796",
"0.7780796",
"0.7780796",
"0.7780796",
"0.76468164",
"0.754723",
"0.75451803",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.7542179",
"0.75237954",
"0.7519931",
"0.7519931",
"0.7518171",
"0.7517334",
"0.7517334",
"0.7517334",
"0.7517334",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.7516493",
"0.75077486",
"0.74782556",
"0.7463401",
"0.7450414",
"0.74464494",
"0.74464494",
"0.7432297",
"0.74118006",
"0.73933053",
"0.7392036",
"0.7386285",
"0.7381753",
"0.7379419",
"0.7373811",
"0.7371855",
"0.73575383",
"0.73532623",
"0.7346856",
"0.73463356",
"0.7345177",
"0.7345177",
"0.73431945",
"0.7337974",
"0.7333134",
"0.7332566",
"0.73245287",
"0.7323758",
"0.7319723",
"0.7318809",
"0.7317446",
"0.7308939",
"0.7308939",
"0.7308939",
"0.7308939",
"0.7308939"
]
| 0.0 | -1 |
check for required fields | public void validate() throws org.apache.thrift.TException {
if (functionName == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'functionName' was not present! Struct: " + toString());
}
if (className == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'className' was not present! Struct: " + toString());
}
if (resources == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'resources' was not present! Struct: " + toString());
}
// check for sub-struct validity
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.heightValue, \" Рост: \", b) ||\n !CalendarHelper.isFieldValid(startProgramDateValue, \" Старт программы: \", b) ||\n !new ComboBoxFieldHelper<Client>().isFieldValid(clientFIOValue, \" Клиент: \", b))\n {\n result = false;\n }\n\n return result;\n }",
"boolean isRequired();",
"boolean isRequired();",
"boolean isRequired();",
"private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}",
"private void fillMandatoryFields() {\n\n }",
"private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }",
"public boolean isRequired();",
"private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}",
"private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }",
"private boolean checkfields() {\n try {\n Integer.parseInt(checknum.getText().toString());\n Integer.parseInt(banknum.getText().toString());\n Integer.parseInt(branchnum.getText().toString());\n Integer.parseInt(accountnum.getText().toString()); //was commented\n\n } catch (NumberFormatException e) { // at least one of these numbers is not Integer\n return false;\n }\n\n if (checknum.getText().toString().equals(null) || banknum.getText().toString().equals(null) ||branchnum.getText().toString().equals(null)|| accountnum.getText().toString().equals(null))\n return false; // At least one of the fields is empty\n\n return true;\n }",
"public void checkFields(){\n }",
"protected boolean isAllRequiredTxtFieldsFilled() {\r\n JTextField[] txtFields = {\r\n txtFieldFirstName, txtFieldLastName,\r\n txtFieldDateOfBirth, txtFieldIBAN,\r\n txtFieldState, txtFieldHouseNumber,\r\n txtFieldPostcode, txtFieldLocation,\r\n txtFieldCountry, txtFieldState\r\n };\r\n\r\n for (JTextField txtField : txtFields) {\r\n if (txtField.getText().equals(\"\")) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }",
"private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }",
"public static boolean checkMandatoryFields(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private boolean validateInputs() {\n return !proID.getText().isEmpty() || \n !proName.getText().isEmpty() ||\n !proPrice.getText().isEmpty();\n }",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"public boolean hasFieldErrors();",
"private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }",
"private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }",
"private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }",
"public abstract List<String> requiredFields();",
"public final boolean hasAllRequiredField() {\n EditText editText = (EditText) _$_findCachedViewById(C2723R.C2726id.etUserName);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etUserName\");\n CharSequence obj = editText.getText().toString();\n int length = obj.length() - 1;\n int i = 0;\n boolean z = false;\n while (i <= length) {\n boolean z2 = obj.charAt(!z ? i : length) <= ' ';\n if (!z) {\n if (!z2) {\n z = true;\n } else {\n i++;\n }\n } else if (!z2) {\n break;\n } else {\n length--;\n }\n }\n String obj2 = obj.subSequence(i, length + 1).toString();\n EditText editText2 = (EditText) _$_findCachedViewById(C2723R.C2726id.etPassword);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPassword\");\n CharSequence obj3 = editText2.getText().toString();\n int length2 = obj3.length() - 1;\n int i2 = 0;\n boolean z3 = false;\n while (i2 <= length2) {\n boolean z4 = obj3.charAt(!z3 ? i2 : length2) <= ' ';\n if (!z3) {\n if (!z4) {\n z3 = true;\n } else {\n i2++;\n }\n } else if (!z4) {\n break;\n } else {\n length2--;\n }\n }\n String obj4 = obj3.subSequence(i2, length2 + 1).toString();\n if (TextUtils.isEmpty(obj2) || TextUtils.isEmpty(obj4)) {\n return false;\n }\n return true;\n }",
"public static boolean checkMandatoryFieldsRegistration(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }",
"public boolean validateInputFields(){\n if(titleText.getText().isEmpty() || descriptionText.getText().isEmpty()){\n showError(true, \"All fields are required. Please complete.\");\n return false;\n }\n if(locationCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a location.\");\n return false;\n }\n if(contactCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a contact.\");\n return false;\n }\n if(typeCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select the type.\");\n return false;\n }\n if(customerCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a customer.\");\n return false;\n }\n if(userCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a user.\");\n return false;\n }\n return true;\n }",
"private void verifyInput(){\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n\n mNameFieldsFilled = !TextUtils.isEmpty(firstName) && !TextUtils.isEmpty(lastName);\n\n }",
"private void checkValidation() {\n String getInstituteName = NameofInstitute.getText().toString();\n String getDegreename = SpinnerDegree.getSelectedItem().toString();\n\n\n // Check if all strings are null or not\n if (getInstituteName.equals(\"\") || getInstituteName.length() == 0 || getDegreename.equals(\"\") || getDegreename.length() == 0)\n new CustomToast().Show_Toast(getActivity(), getView(),\"All fields are required.\");\n // Else do signup or do your stuff\n else {\n //Toast.makeText(getActivity(), \"All Ok till Now\", Toast.LENGTH_SHORT).show();\n AddQualifications(getDegreename,getInstituteName);\n }\n\n }",
"private void fillMandatoryFields_custom() {\n\n }",
"@Override\n\tprotected Boolean isValid(String[] fields) {\n\t\t//check - evnet_id, yes, maybe, invited, no\n return (fields.length > 4);\n\t}",
"boolean isSetRequired();",
"private boolean validateFields() {\r\n\t\tif (txUsuario.getText().equals(\"\") || txPassword.getText().equals(\"\")\r\n\t\t\t\t|| checkAdmin.isIndeterminate()|| checkTPV.isIndeterminate())\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"private void checkForEmptyFields() throws EmptyTextFieldException {\n\n if (date == null || title.equals(\"\") || function.equals(\"\") || protagonist.equals(\"\")\n || source.equals(\"\") || references.equals(\"\") || description.equals(\"\")) {\n throw new EmptyTextFieldException();\n }\n }",
"boolean isMandatory();",
"public boolean checkFields(){\n String message = \"\";\n if (firstName.getText().isEmpty()){\n message=\"First name is required\";\n }\n if (lastName.getText().isEmpty()){\n if (message.isEmpty())\n message = \"Last name is required\";\n else\n message = \"First name and Last name are required\";\n }\n if (birthday.getValue() == null){\n if (message.isEmpty())\n message = \"please select your birthday\";\n else if (firstName.getText().isEmpty()&& !lastName.getText().isEmpty())\n message = \"First name and birthday required\";\n else if (!firstName.getText().isEmpty() && lastName.getText().isEmpty())\n message = \"Last name and birthday required\";\n else\n message = \"all fields are required\";\n }\n errorDisplay.setText(message);\n return message.equals(\"\");\n }",
"private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }",
"public boolean fieldsAreFilled(){\r\n boolean filled = true;\r\n if(txtFName.getText().trim().isEmpty() | txtFEmail.getText().trim().isEmpty() | txtFPhone.getText().trim().isEmpty()){\r\n filled = false;\r\n }\r\n return filled;\r\n }",
"private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean isRequired() {\n return field.isRequired();\n }",
"private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }",
"@Override\n public JsonNode required(String fieldName) {\n return _reportRequiredViolation(\"Node of type %s has no fields\",\n ClassUtil.nameOf(getClass()));\n }",
"private boolean fieldsFilled(){\n return !editTextEmail.getText().toString().isEmpty() &&\n !editTextPassword.getText().toString().isEmpty();\n }",
"public boolean validations() {\n boolean result = false;\n String nameString = mItemNameEditText.getText().toString().trim();\n String locationString = mItemLocationEditText.getText().toString().trim();\n\n if (nameString.isEmpty() || nameString == null || locationString.isEmpty() || locationString == null || isImageNotPresent()) {\n displayToastMessage(getString(R.string.fields_mandatory_msg));\n return result;\n } else {\n result = true;\n return result;\n }\n }",
"private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }",
"private boolean validateInputs() {\n if (Constants.NULL.equals(review)) {\n reviewET.setError(\"Must type a review!\");\n reviewET.requestFocus();\n return false;\n }\n if (Constants.NULL.equals(heading)) {\n headingET.setError(\"Heading cannot be empty\");\n headingET.requestFocus();\n return false;\n }\n return true;\n }",
"private boolean noFieldsEmpty() {\n if ( nameField.getText().isEmpty()\n || addressField.getText().isEmpty()\n || cityField.getText().isEmpty()\n || countryComboBox.getSelectionModel().getSelectedItem() == null\n || divisionComboBox.getSelectionModel().getSelectedItem() == null\n || postalField.getText().isEmpty()\n || phoneField.getText().isEmpty() ) {\n errorLabel.setText(rb.getString(\"fieldBlank\"));\n return false;\n }\n return true;\n }",
"private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }",
"public boolean verifyData()\n {\n if(jTextFieldName.getText().equals(\"\") && jTextFieldNumber.getText().equals(\"\") \n || jTextFieldSupplier.getText().equals(\"\") || jTextArea1.getText().equals(\"\") || jTextFieldModel.getText().equals(\"\"))\n {\n JOptionPane.showMessageDialog(null, \"One or More Fields Are Empty\");\n return false;\n }\n \n else\n {\n return true;\n }\n \n }",
"boolean hasField3();",
"private boolean hasRequirements() {\n \t\tif (checkHasRequirements) {\n \t\t\thasRequirements = pullRequired(requiredInput, false);\n \t\t\tcheckHasRequirements = false;\n \t\t}\n \t\treturn hasRequirements;\n \t}",
"public boolean isRequired() {\n return required;\n }",
"private void validarCampos() {\n }",
"public boolean isInputValid()\n {\n String[] values = getFieldValues();\n if(values[0].length() > 0 || values[1].length() > 0 || values[2].length() > 0)\n return true;\n else\n return false;\n }",
"public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}",
"private boolean validateData() {\n if (!mCommon.validateData()) return false;\n\n Core core = new Core(this);\n\n // Due Date is required\n if (TextUtils.isEmpty(getRecurringTransaction().getDueDateString())) {\n core.alert(R.string.due_date_required);\n return false;\n }\n\n if (TextUtils.isEmpty(mCommon.viewHolder.dateTextView.getText().toString())) {\n core.alert(R.string.error_next_occurrence_not_populate);\n\n return false;\n }\n\n // Payments Left must have a value\n if (getRecurringTransaction().getPaymentsLeft() == null) {\n core.alert(R.string.payments_left_required);\n return false;\n }\n return true;\n }",
"public boolean checkInput(){\n if(spelerIDField.getText().equals(\"\") || typeField.getText().equals(\"\") || codeField.getText().equals(\"\") || heeftBetaaldField.getText().equals(\"\")){\n return true;\n } else { return false; }\n }",
"boolean getRequired();",
"boolean getRequired();",
"boolean getRequired();",
"Rule FieldReq() {\n // No effect on the value stack\n return FirstOf(\"required \", \"optional \");\n }",
"protected boolean checkFields() {\n // Check if any of the fields are empty\n boolean ok = true;\n ok = !isFieldEmpty(password2) && ok;\n ok = !isFieldEmpty(password) && ok;\n ok = !isFieldEmpty(email) && ok;\n\n if (!ok)\n return false;\n\n // Check whether passwords match\n if (!password.getText().toString().equals(password2.getText().toString())){\n password2.setError(getString(R.string.signup_password_mismatch));\n password2.requestFocus();\n return false;\n }\n return true;\n }",
"public static void validateRequiredEntries(FlightMap flightMap, String... keys) {\n for (String key : keys) {\n if (null == flightMap.getRaw(key)) {\n throw new MissingRequiredFieldsException(\n String.format(\"Required entry with key %s missing from flight map.\", key));\n }\n }\n }",
"public void TC_03_verify_FirstName_Mandatory_Field() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details except first name\r\n\t\t\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", \"\");\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding first name\r\n\t\t// is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Please enter a value for First Name\");\r\n\r\n\t}",
"private boolean isValid(){\n if(txtFirstname.getText().trim().isEmpty() || txtLastname.getText().trim().isEmpty() ||\n txtEmailAddress.getText().trim().isEmpty() || dobPicker.getValue()==null\n || txtPNum.getText().trim().isEmpty()\n || txtDefUsername.getText().trim().isEmpty()\n || curPassword.getText().trim().isEmpty()){\n \n return false; // return false if one/more fields are not filled\n }else{\n if(!newPassword.getText().trim().isEmpty()){\n if(!confirmPassword.getText().trim().isEmpty()){\n return true;\n }else{\n return false;\n }\n }\n return true; // return true if all fields are filled\n }\n }",
"public boolean isRequired() {\n \treturn model.isRequired();\n }",
"private boolean formIsValid(){\r\n // check if all the required fields have been filled in\r\n boolean allFieldsEntered = formComplete();\r\n // check if Name field has valid input\r\n boolean nameFieldValid = isAllChars(NAME_FIELD.getText());\r\n // check if city field has valid input\r\n boolean cityFieldValid = isAllChars(CITY_FIELD.getText());\r\n // check if country field has valid input\r\n boolean ctryFieldValid = isAllChars(COUNTRY_FIELD.getText());\r\n // check if zipcode field has valid input\r\n boolean zipFieldValid = isAllNums(ZIP_FIELD.getText());\r\n // check if phone field has valid input\r\n boolean phoneFieldValid = isAllNums(PHONE_FIELD.getText());\r\n // check if all fields and form are valid\r\n return allFieldsEntered && nameFieldValid &&\r\n cityFieldValid && ctryFieldValid &&\r\n zipFieldValid && phoneFieldValid; \r\n }",
"private void validateFields() throws InvalidConnectionDataException {\n if (driver == null) throw new InvalidConnectionDataException(\"No driver field\");\n if (address == null) throw new InvalidConnectionDataException(\"No address field\");\n if (username == null) throw new InvalidConnectionDataException(\"No username field\");\n if (password == null) throw new InvalidConnectionDataException(\"No password field\");\n }",
"boolean hasField4();",
"protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }",
"public static boolean checkMandatoryFieldsUpdateUser(Object obj) {\n\n\t\tif (obj instanceof UpdateUserDTO) {\n\n\t\t\tUpdateUserDTO updateUserDTO = (UpdateUserDTO) obj;\n\n\t\t\tif (updateUserDTO.getFirstName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getLastName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getAddress1().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getCity().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getState().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getZipCode().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getNewEmailId().trim().isEmpty()\n\n\t\t\t) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean isRequired () {\n return required;\n }",
"@Test(priority=1)\n\tpublic void testWhenFieldsAreEmpty() {\n\t\tsignup.clearAllFields();\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\n\t\t// when all fields are empty errors list is greater than 2\n\t\t// the best way to do it is to have a list of all expected values and compare it with the actual received strings\n\t\tAssert.assertTrue(3<errors.size());\n\t}",
"@Test (priority = 2)\n\tpublic void TC2_CheckAllFields_Exisit ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If all fields of create user page are existing\n\t\tUserObj.Validate_AllFields_Exsist();\n\t\n\n\t}",
"private List<String> returnEmptyRequiredFields(List<String> requiredFields, Object givenObject){\n return requiredFields.stream()\n .filter(x -> {\n try {\n return StringUtils.isEmpty((String) givenObject.getClass().getDeclaredField(x).get(givenObject));\n } catch (Exception e) {\n //Not going to try and scmOrganization for exceptions; if there is an exception we probably have greater issues than an empty/null field\n getLog().debug(String.format(\"Unable to ascertain if %s is null/empty\",x));\n return true;\n }\n })\n .collect(Collectors.toList());\n }",
"public boolean isRequired() {\r\n return required;\r\n }",
"private void checkMandatoryArgs(UserResource target, Errors errors) {\n final String proc = PACKAGE_NAME + \".checkMandatoryArgs.\";\n final String email = target.getEmail();\n final String password = target.getPassword();\n final String lastName = target.getLastName();\n\n logger.debug(\"Entering: \" + proc + \"10\");\n\n if (TestUtils.isEmptyOrWhitespace(email)) {\n errors.rejectValue(\"email\", \"user.email.required\");\n }\n logger.debug(proc + \"20\");\n\n if (TestUtils.isEmptyOrWhitespace(password)) {\n errors.rejectValue(\"password\", \"user.password.required\");\n }\n logger.debug(proc + \"30\");\n\n if (TestUtils.isEmptyOrWhitespace(lastName)) {\n errors.rejectValue(\"lastName\", \"userLastName.required\");\n }\n logger.debug(\"Leaving: \" + proc + \"40\");\n }",
"private void validateEmptyElements()\n {\n // Check if something is missing\n if (_dietTreatment.getName().length() < 1)\n {\n getErrors().add(\"Kein Name angegeben.\");\n }\n\n // TODO: check that at least one user is TREATING!\n if (_dietTreatment.getSystemUsers().isEmpty())\n {\n getErrors().add(\"Kein verantwortlicher User angegeben.\");\n }\n\n if (_dietTreatment.getPatientStates().isEmpty())\n {\n getErrors().add(\"Keine Zuweisungsdiagnose angegeben.\");\n }\n }",
"private boolean validarCampos() {\r\n\t\tif (cedula.equals(\"\") || nombre.equals(\"\") || apellido.equals(\"\") || telefono.equals(\"\")) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"default boolean renderRequired() {\n // if (!isPrimaryKey() && isRequired() && ) constraints.add(JdlUtils.validationRequired());\n return isRequired() && !(getName().equals(\"id\") && getType().equals(JdlFieldEnum.UUID));\n }",
"private boolean areFieldsNotBlank() {\r\n boolean ok=true;\r\n if (dogNameField.getText() == null) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n } else if (dogNameField.getText().isBlank()) {\r\n dogNameField.setStyle(\"-fx-border-color: red ; \");\r\n ok = false;\r\n }\r\n return ok;\r\n }",
"private boolean checkInfo()\n {\n boolean flag = true;\n if(gName.isEmpty())\n {\n groupName.setError(\"Invalid name\");\n flag = false;\n }\n if(gId.isEmpty())\n {\n groupId.setError(\"Invalid id\");\n flag = false;\n }\n if(gAddress.isEmpty())\n {\n groupAddress.setError(\"Invalid address\");\n flag = false;\n }\n\n for(char c : gName.toCharArray()){\n if(Character.isDigit(c)){\n groupName.setError(\"Invalid Name\");\n flag = false;\n groupName.requestFocus();\n }\n }\n\n if(groupType.isEmpty())\n {\n flag = false;\n rPublic.setError(\"Choose one option\");\n }\n\n if(time.isEmpty())\n time = \"not set\";\n\n if(groupDescription.getText().toString().length()<20||groupDescription.getText().toString().length()>200)\n groupDescription.setError(\"Invalid description\");\n\n return flag;\n }",
"public boolean isRequired()\n\t{\n\t\treturn required;\n\t}",
"@Override\n public void validate() {\n boolean b = false;\n\n //retrieving the contact us form details from request object\n String firstName = objContactUsForm.getName().trim();\n String email = objContactUsForm.getEmail().trim();\n String message = objContactUsForm.getMessage().trim();\n\n //now validating each of the field\n if (firstName.isEmpty()) {\n addFieldError(\"name\", getText(\"name.required\"));\n b = true;\n }\n\n if (email.isEmpty()) {\n addFieldError(\"email\", getText(\"email.required\"));\n b = true;\n }\n if (!b) {\n Pattern p = Pattern.compile(\".+@.+\\\\.[a-z]+\");\n Matcher m = p.matcher(email);\n boolean matchFound = m.matches();\n if (!matchFound) {\n addFieldError(\"email\", \"Please Provide Valid Email ID\");\n }\n }\n\n if (message.isEmpty()) {\n addFieldError(\"message\", getText(\"message.required\"));\n b = true;\n }\n\n if (!b) {\n boolean matches = message.matches(\"[<>!~@$%^&\\\"|!\\\\[#$]\");\n if (matches) {\n addFieldError(\"message\", \"Please Provide Valid Message Name\");\n b = true;\n }\n }\n }",
"boolean hasField1();",
"public static String errorMessageForRequiredFields(HashMap<String, String> requiredFields){\n String errorMessage = \"\";\n for(String fieldName: requiredFields.keySet()){\n if(requiredFields.get(fieldName).isBlank()){\n errorMessage += \"- \"+fieldName + \" is required!\\n\";\n }\n }\n if(!errorMessage.isBlank()){\n errorMessage = \"Please solve the following errors:\\n\" +errorMessage;\n }\n return errorMessage;\n }",
"private boolean validSignInFields() {\n final EditText etEmail = findViewById(R.id.etSignInEmail);\n final EditText etPassword = findViewById(R.id.etSignInPassword);\n\n final String email = etEmail.getText().toString();\n final String password = etPassword.getText().toString();\n\n if (email.isEmpty()) {\n etEmail.setError(\"Email field is required.\");\n etEmail.requestFocus();\n } else if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n etEmail.setError(\"Valid email address required.\");\n etEmail.requestFocus();\n } else if (password.isEmpty()) {\n etPassword.setError(\"Password field is required.\");\n etPassword.requestFocus();\n } else {\n return true;\n }\n\n return false;\n }",
"@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}",
"boolean isNameRequired();",
"public boolean checkEntryInputs() {\n\t\tboolean isValid = true;\n\t\tif(sampleNumberTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(materialDescriptionTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(Double.valueOf(bacteroidesConcentrationTF.getText())==null) {\n\t\t\tisValid = false;\n\t\t}\n\t\treturn isValid;\n\t}",
"public void validateRequired(Arguments arguments) {\n if (StructuredLoggerFactory.requiredValuesEnabled() && !requireds.isEmpty()) {\n requireds.forEach(index -> {\n if (arguments.get(index) == null) {\n throw new MissingSchemaValueException(\"Entire schema must be specified. Missing: \" + names.get(index));\n }\n });\n }\n }",
"public boolean isRequired() {\r\n return required;\r\n }",
"public boolean isRequired() {\r\n return required;\r\n }",
"private void checkFieldsForEmptyValues() {\n String s1 = edtEmail.getText().toString();\n String s2 = edtDisplayName.getText().toString();\n String s3 = edtPaswd.getText().toString();\n\n if (s1.equals(\"\") || s2.equals(\"\") || s3.equals(\"\")) { //disables the button\n btnRegister.setEnabled(false);\n } else { //enables the button\n btnRegister.setEnabled(true);\n }\n }",
"@Override\n public boolean isPageComplete() {\n Text description = getMandatoryWidgets().get(\"description\");\n if (description.getText().length() == 0) {\n setErrorMessage(I18N.tr(\"Field is mandatory\") + \": \"\n + I18N.tr(XWT.getElementName((Object) description)));\n return false;\n }\n // Optional\n HashMap<String, Text> optWidgets = getOptionalWidgets();\n // Sorted array\n Text[] optArray = { optWidgets.get(\"airPerformance\"), optWidgets.get(\"motorPower\"),\n optWidgets.get(\"ventilatorPerformance\"), optWidgets.get(\"motorRPM\"),\n optWidgets.get(\"current\"), optWidgets.get(\"voltage\") };\n for (int i = 0; i < optArray.length; i++) {\n if (!checkValidity(optArray[i])) {\n setErrorMessage(I18N.tr(\"Invalid input for field\") + \" \"\n + I18N.tr(XWT.getElementName((Object) optArray[i])));\n return false;\n }\n }\n setErrorMessage(null);\n return true;\n }",
"public boolean verifyFields()\n\t{\n\t\t// check name first\n\t\tif (!validateUserName(username.getText()))\n\t\t\treturn false;\n\n\t\t// check address if name is valid\n\t\tif (!validateIP(address.getText()))\n\t\t{\n\t\t\tsetWarning(\"invalid address\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// only check port if name and address are okay\n\t\ttry\n\t\t{\n\t\t\tInteger.parseInt(port.getText());\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tsetWarning(\"invalid port number\");\n\t\t\treturn false;\n\t\t}\n\n\t\tstatus.setTextFill(GREEN);\n\t\tstatus.setText(\"attempting connection\");\n\n\t\treturn true;\n\t}",
"private boolean areFieldsValid() {\n // Whether the values from the fields can be inserted into the database without conflict.\n boolean retVal = true;\n\n if (vehicleId == -1) {\n // Then we don't know which vehicle to attach this issue to. This should never happen\n return false;\n // TODO: Display something to the user\n }\n\n // If we're creating a new Issue, we need to create the Issue object\n if (issue == null) {\n // A new issue is not fixed, and thus will be open.\n // Try to get the open status id and ensure it properly fetched\n int openIssueId = dbHelper.getOpenIssueStatusId();\n if (openIssueId != -1) {\n issue = new Issue(mTitle.getText().toString().trim(), vehicleId, openIssueId);\n }\n }\n\n // Convert the EditText fields to strings\n String checkTitle = mTitle.getText().toString().trim();\n String checkDescription = mDescription.getText().toString().trim();\n String checkPriority = mPriority.getText().toString().trim();\n\n if (checkTitle.isEmpty()) {\n retVal = false;\n eTitle.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessage));\n } else if (!VerifyUtil.isStringSafe(checkTitle)) {\n retVal = false;\n eTitle.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessageInvalidCharacters));\n } else {\n eTitle.setError(null);\n issue.setTitle(checkTitle);\n }\n\n if (checkDescription.isEmpty()) {\n retVal = false;\n eDescription.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessage));\n } else if (!VerifyUtil.isTextSafe(checkDescription)) {\n retVal = false;\n eDescription.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessageInvalidCharacters));\n } else {\n eDescription.setError(null);\n issue.setDescription(checkDescription);\n }\n\n if (checkPriority.isEmpty()) {\n retVal = false;\n ePriority.setError(getResources().getString(R.string.vehicleSettingsActivity_errorValidationEditTextMessage));\n } else {\n ePriority.setError(null);\n issue.setPriority(priorityStringToInt(checkPriority));\n }\n\n return retVal;\n }",
"public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }",
"@Override\n\tpublic void validate() {\n\t\tSystem.out.println(user+\"//\"+password);\n\t\tif (user == null || user.trim().equals(\"\")) {\n\t\t\taddFieldError(\"user\", \"The user is required\");\n\t\t}\n\t\tif (password == null || password.trim().equals(\"\")) {\n\t\t\taddFieldError(\"password\", \"password is required\");\n\t\t}\n\t}",
"private boolean checkIfHasRequiredFields(BoxItem shareItem){\n return shareItem.getSharedLink() != null && shareItem.getAllowedSharedLinkAccessLevels() != null;\n }",
"void checkValid();",
"private boolean formComplete(){\r\n return NAME_FIELD.getLength()>0 && ADDRESS_1_FIELD.getLength()>0 &&\r\n CITY_FIELD.getLength()>0 && ZIP_FIELD.getLength()>0 && \r\n COUNTRY_FIELD.getLength()>0 && PHONE_FIELD.getLength()>0; \r\n }"
]
| [
"0.75287306",
"0.7430543",
"0.7430543",
"0.7430543",
"0.7394445",
"0.73590785",
"0.7280072",
"0.7234574",
"0.72328943",
"0.72021484",
"0.7163772",
"0.71448237",
"0.7141192",
"0.7092876",
"0.7075819",
"0.7058885",
"0.70559984",
"0.70541537",
"0.70536923",
"0.7030236",
"0.7028824",
"0.69982386",
"0.69936967",
"0.6945487",
"0.6931262",
"0.69299215",
"0.6905577",
"0.6896448",
"0.6888563",
"0.6881679",
"0.68593067",
"0.68424296",
"0.6833708",
"0.68163055",
"0.6798157",
"0.6779351",
"0.67570937",
"0.667031",
"0.6647974",
"0.66358423",
"0.6608286",
"0.6605936",
"0.6597781",
"0.6552027",
"0.65355825",
"0.65244114",
"0.6480909",
"0.64798933",
"0.64619744",
"0.6460281",
"0.645311",
"0.64490265",
"0.6440438",
"0.64317304",
"0.6427133",
"0.6422657",
"0.64017546",
"0.64017546",
"0.64017546",
"0.640012",
"0.63954586",
"0.6381656",
"0.6374054",
"0.6373196",
"0.6366658",
"0.6365349",
"0.6361256",
"0.6342586",
"0.6333807",
"0.63335514",
"0.63310766",
"0.632473",
"0.63214755",
"0.6307248",
"0.6301159",
"0.62886345",
"0.6285287",
"0.6284661",
"0.62787616",
"0.62729526",
"0.62715185",
"0.6265448",
"0.62648284",
"0.62618536",
"0.62610465",
"0.62609226",
"0.62592363",
"0.62584704",
"0.6255578",
"0.62527883",
"0.6252605",
"0.6252605",
"0.62513506",
"0.62484074",
"0.62386894",
"0.62345177",
"0.6225108",
"0.62071985",
"0.62053126",
"0.6195577",
"0.6183042"
]
| 0.0 | -1 |
Fixture initialization (common initialization for all tests). | @Before public void setUp() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeAll\n static void init() {\n }",
"@Before\n public void init() {\n }",
"@Before\n\tpublic void init() {\n\t}",
"@BeforeClass\n public static void init() {\n InitializrMetadataBuilder initializrMetadataBuilder = InitializrMetadataBuilder.fromInitializrProperties(\n InitializerMetadataTest.load(\n InitializerMetadataTest.loadProperties(new ClassPathResource(\"application-test-default.yml\"))));\n initializrMetadata = initializrMetadataBuilder.build();\n }",
"@BeforeSuite(alwaysRun=true)\r\n\tpublic void initSetUp() throws FileNotFoundException, IOException {\r\n\t\tinitialize();\r\n\t}",
"@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}",
"@Before\n @Override\n public void init() {\n }",
"@BeforeClass\n public static void startUp() {\n // \"override\" parent startUp\n resourceInitialization();\n }",
"@Before\n public void init(){\n }",
"@BeforeClass\n\tpublic static void init() {\n\t\ttry {\n\t\t\tif (emf == null) {\n\t\t\t\temf = Persistence.createEntityManagerFactory(\"application\");\n\t\t\t\tif (em == null) {\n\t\t\t\t\tem = loadConfiguration(emf);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@BeforeEach\n void init() {\n carte = new Carte();\n planning = new Planning(carte);\n }",
"@BeforeEach\n\tvoid init() {\n\t\tthis.repo.deleteAll();\n\t\tthis.testLists = new TDLists(listTitle, listSubtitle);\n\t\tthis.testListsWithId = this.repo.save(this.testLists);\n\t\tthis.tdListsDTO = this.mapToDTO(testListsWithId);\n\t\tthis.id = this.testListsWithId.getId();\n\t}",
"@Before\n public void init() {\n this.testMethodName = this.getTestMethodName();\n this.initialize();\n }",
"@Before\n public void setup() {\n Helpers.fillData();\n }",
"@Before\n public void init() {\n final Map<String, DataType> defaultTypes = new HashMap<>();\n defaultTypes.put(\"frieda\", StringCell.TYPE);\n defaultTypes.put(\"berta\", StringCell.TYPE);\n ReadAdapterFactory<String, String> readAdapterFactory = new ReadAdapterFactory<String, String>() {\n\n @Override\n public ReadAdapter<String, String> createReadAdapter() {\n return new TestReadAdapter();\n }\n\n @Override\n public ProducerRegistry<String, ? extends ReadAdapter<String, String>> getProducerRegistry() {\n return m_producerRegistry;\n }\n\n @Override\n public Map<String, DataType> getDefaultTypeMap() {\n return defaultTypes;\n }\n\n };\n m_testInstance = new DefaultTypeMappingFactory<>(readAdapterFactory);\n }",
"@BeforeTest\r\n\tpublic void setupenvi() throws IOException {\r\n\t\tsetup();\r\n\t\tinit();\r\n\t}",
"@Before\n public void initialize() {\n kata4 = new Kata4();\n }",
"@Test\n public void init() {\n }",
"protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }",
"@BeforeClass\n\tpublic static void init() {\n\t\ttestProduct = new Product();\n\t\ttestProduct.setPrice(1000);\n\t\ttestProduct.setName(\"Moto 360\");\n\t\ttestProduct.setDescrip(\"Moto 360 smart watch for smart generation.\");\n\n\t\ttestReview = new Review();\n\t\ttestReview.setHeadline(\"Excellent battery life\");\n\t\ttestReview.setContent(\"Moto 360 has an excellent battery life of 10 days per full charge.\");\n\t}",
"protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }",
"@Before public void setUp() { }",
"@Before\n\t public void setUp() {\n\t }",
"@Before\n\tpublic void initialize() {\n\t\tnullParserSQLGenerator = new SQLStringGenerator(null);\n\t\toneArgParserSQLGenerator = new SQLStringGenerator(new OneArgParser());\n\t}",
"@BeforeClass\n\t public void setUp() {\n\t }",
"public SwerveAutoTest() {\n // Initialize base classes.\n // All via self-construction.\n\n // Initialize class members.\n // All via self-construction.\n }",
"@BeforeEach\n public void initialize()\n {\n serviceProvider = new ServiceProvider();\n ResourceTypeFactory resourceTypeFactory = new ResourceTypeFactory();\n schemaFactory = Assertions.assertDoesNotThrow(resourceTypeFactory::getSchemaFactory);\n resourceTypeFactory.registerResourceType(null,\n JsonHelper.loadJsonDocument(ClassPathReferences.USER_RESOURCE_TYPE_JSON),\n JsonHelper.loadJsonDocument(ClassPathReferences.USER_SCHEMA_JSON),\n JsonHelper.loadJsonDocument(ClassPathReferences.ENTERPRISE_USER_SCHEMA_JSON));\n resourceTypeFactory.registerResourceType(null,\n JsonHelper.loadJsonDocument(ClassPathReferences.GROUP_RESOURCE_TYPE_JSON),\n JsonHelper.loadJsonDocument(ClassPathReferences.GROUP_SCHEMA_JSON));\n }",
"@Before\n public void setUp() {\n fixture = new WordCounter(testMap);\n }",
"@Before\r\n\t public void setUp(){\n\t }",
"@BeforeEach\n void setUp() {\n seed = new Random().nextInt();\n random = new Random().nextInt();\n rng = new Random(seed);\n int strSize = rng.nextInt(20);\n hello = RandomStringUtils.random(strSize, 0, Character.MAX_CODE_POINT, true, false, null, rng);\n int binarySize = rng.nextInt(20)+1;\n binary = RandomStringUtils.random(binarySize, ZeroOne);\n st = new TString(hello);\n bot = new Bool(true);\n bof = new Bool(false);\n bi = new Binary(binary);\n i = new Int(seed); //seed is a random number\n decimal = seed+0.1; //transformed to double\n f = new Float(decimal);\n g = new Float(random);\n j = new Int(random);\n Null = new NullType();\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tsubGen = new SubsetGenerator();\n\t}",
"@Before\r\n\tpublic void setup() {\r\n\t}",
"@BeforeClass\n\tpublic static void setup() {\n\n\t}",
"@BeforeClass public static void initialiseScenario(){\n SelectionScenario.initialiseScenario();\n }",
"public void setUp() {\n\n\t}",
"@BeforeClass\n\tpublic static void setup() {\n\t\tdataMunger = new DataMunger();\n\n\t}",
"@BeforeEach\n\tpublic void init() throws SQLException, IOException {\n\t\ttestBook = bookDaoImpl.create(SAMPLE_TITLE, null, null);\n\t\ttestBranch = branchDaoImpl.create(SAMPLE_BRANCH_NAME, SAMPLE_BRANCH_ADDRESS);\n\t\tcopiesDaoImpl.setCopies(testBranch, testBook, NUM_COPIES);\n\t}",
"@Before\n\tpublic void setup() {\n\t\tinit(rule.getProcessEngine());\n\t}",
"@BeforeClass\n\t\tpublic static void setUp() {\n\t\t\tboard = Board.getInstance();\n\t\t\t// set the file names to use my config files\n\t\t\tboard.setConfigFiles(\"ourConfigFiles/GameBoard.csv\", \"ourConfigFiles/Rooms.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.setCardFiles(\"ourConfigFiles/Players.txt\", \"ourConfigFiles/Weapons.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.initialize();\n\t\t}",
"@BeforeClass\n\tpublic static void setUp() {\n\t\tsbu = Sbu.getUniqueSbu(\"SBU\");\n\t\tbiblio = new Biblioteca(\"Biblioteca\", \"viaBteca\", sbu);\n\t\tmanager = new ManagerSistema(\"codiceFiscaleManager\", \"NomeManager\", \"CognomeManager\", \n\t\t\t\t\"IndirizzoManager\", new Date(), \"34012899967\", \n\t\t\t\t\"[email protected]\", \"passwordM\", sbu);\n\t\tbibliotecario = new Bibliotecario(\"codiceFiscaleB1\", \"nomeB1\", \"cognomeB1\", \"indirizzoB1\", \n\t\t\t\tnew Date(), \"340609797\", \"[email protected]\", \n\t\t\t\t\"passwordB1\", biblio);\n\t}",
"@BeforeClass\r\n public static void initTextFixture(){\r\n entityManagerFactory = Persistence.createEntityManagerFactory(\"itmd4515PU\");\r\n }",
"@BeforeClass\n\tpublic static void setUpImmutableFixture() {\n\t\t\n\t}",
"@Before\n\tpublic final void setUp() {\n\t\tint numLegs = 4;\n\t\tanimal = new Animal(\"Possum\", \"Mammal\", \"male\", numLegs);\n\t\ttestForest = new Forest(\"Hamner Forest Park\", \"Alpine Forest\", \n\t\t\t\t\"Warm, Mountain-like\");\n\t}",
"@BeforeEach\n\tpublic void init() throws NotJpgException {\n\t\t// fixture\n\t\timagePath = \"src/main/resources/skillvssalary.jpeg\";\n\t\timagePath2 = \"src/main/resources/success.jpg\";\n\t\tnotImage = \"src/main/resources/dwa\";\n\t\tphoto = new Photo(imagePath);\n\t}",
"@Override\r\n protected void setUp()\r\n {\r\n island = new Island(5,5);\r\n position = new Position(island, 4,4);\r\n seed = new BirdFood(position, \"seed\", \"Crunchy Seeds\", 1.0, 2.0, 1.5);\r\n }",
"@Before\n\tpublic void initBeforeEachTestMethod()\n\t{\n\t\ttileScorer_STUDENT = new TileScorerImpl_Moran(ScrabbleEliteConfiguration_Moran.getEliteTileToPointsMap());\n\t\ttileTranslator_STUDENT = new TileTranslatorImpl_Moran(ScrabbleEliteConfiguration_Moran.getEliteTileToTranslationSetMap());\n\t\tdictionary_STUDENT = new DictionaryImpl_Moran(ScrabbleEliteConfiguration_Moran.getEliteWordList());\n\t\tscrabbleWordScorer_STUDENT = new ScrabbleWordScorerImpl_Moran(tileScorer_STUDENT, tileTranslator_STUDENT, dictionary_STUDENT);\n\t}",
"public void setUp()\r\n {\r\n //empty on purpose\r\n }",
"@BeforeClass\n public void initCommonFixture(ITestContext testContext) {\n Object obj = testContext.getSuite().getAttribute(SuiteAttribute.CLIENT.getName());\n if (null != obj) {\n this.client = Client.class.cast(obj);\n }\n obj = testContext.getSuite().getAttribute(SuiteAttribute.TEST_SUBJECT.getName());\n if (null == obj) {\n throw new SkipException(\"Test subject not found in ITestContext.\");\n }\n }",
"@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}",
"@BeforeEach\n void init() {\n log.info(\"init\");\n }",
"@Before\n public void setup() {\n }",
"@Before\n public void setup() {\n }",
"@Before\n public void setup() {\n }",
"@Test\n public void testInitialize() {\n \n \n }",
"protected void setUp() {\n\t}",
"@BeforeClass\n public static void initTestFixture() throws Exception {\n entityManagerFactory = Persistence.createEntityManagerFactory(\"test\");\n entityManager = entityManagerFactory.createEntityManager();\n }",
"@BeforeClass (alwaysRun = true)\n public void dataPreparation()\n {\n serverHealth.isServerReachable();\n serverHealth.assertServerIsOnline();\n\n // Before we start testing the live indexing we need to use the reindexing component to index the system nodes.\n Step.STEP(\"Index system nodes.\");\n AlfrescoStackInitializer.reindexEverything();\n\n Step.STEP(\"Create a test user and private site.\");\n testUser = dataUser.createRandomTestUser();\n testSite = helper.createPrivateSite(testUser);\n }",
"@BeforeEach\n public void setup() {\n }",
"@Before\n\tpublic void init() {\n\t\tuserDao=new UsersDAO();\n\t\tentityManager=mock(EntityManager.class);\n\t\tuserDao.setEntityManager(entityManager);\n\t\t\n\t}",
"@BeforeEach\n public void setup() {\n token = new TokenInfo();\n token.setNetid(\"lbecheanu\");\n token.setRole(\"student\");\n }",
"@Before\n\tpublic void setup() \n\t{\n\t\tsuper.setup();\n\t\t\n }",
"@BeforeEach\n\tpublic void setup() {\n\t\tnome = \"cliente1 da Silva\";\n\t\tdocumentoValido = \"22492552020\";\n\t\tdocumentoInvalido = \"465801940\";\n\t\tdocumentoJaCadastrado = \"465.801.940-06\";\n\t\temail = \"[email protected]\";\n\t\t\n\t\tlogradouro = \"Rua das meninas, 15\";\n\t\tbairro = \"Jose pinheiro\";\n\t\tcomplemento = \"Proximo a loteria\";\n\t\tuf = \"PB\";\n\t\t\n\t\tsalario = new BigDecimal(2000);\n\t\tsalarioNegativo = new BigDecimal(-1);\n\t\tsalarioZerado = new BigDecimal(0);\n\t\t\n\t}",
"@Before\r\n public void setupTestCases() {\r\n instance = new ShoppingListArray();\r\n }",
"@Before\n public void setup() {\n }",
"@BeforeAll\n public static void init() {\n LogStub.init();\n Log.enableFailQuick(false);\n }",
"@Before\n public void setup() {\n kata4 = new SpinWords();\n }",
"@Before\r\n\tpublic void initializeDefaultMockObjects()\r\n\t{\r\n\t\tconfigs = new ArrayList<Config>();\r\n\t\tscreenshots = new ArrayList<Screenshot>();\r\n\t\tprocessedImages = new ArrayList<ProcessedImage>();\r\n\t\ttestExecutions = new ArrayList<TestExecution>();\r\n\t\ttestEnvironments = new ArrayList<TestEnvironment>();\r\n\r\n\t\tinitializeDefaultTestExecution();\r\n\t\tinitializeDefaultTestEnvironment();\r\n\t\tinitializeDefaultScreenshot();\r\n\t}",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"@Before\n public void setUp()\n {\n\n // Create countries\n country1 = new Country(\"Country 1\", null);\n country2 = new Country(\"Country 2\", null);\n country1.setGame(game);\n country2.setGame(game);\n\n // Create Cities\n cityA = new City(\"City A\", 80, country1);\n cityB = new City(\"City B\", 60, country1);\n cityC = new City(\"City C\", 40, country1);\n\n }",
"@Before\n\tpublic void setUpMutableFixture() {\n\t\tcmcSystem = new CMCSystem(new OrderDAOImpl());\n\t\tschedule = cmcSystem.getScheduler();\n\t\tassemblyLine = cmcSystem.getAssemblyLine(0);\n\t}",
"@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}",
"@Before\n\tpublic void setup() {\n\t\tdatabase = new DatabaseLogic();\n\t}",
"@Before\n\tpublic void setUp() {\n\t}",
"@BeforeEach\r\n\tpublic void setUp() {\r\n\t\tplatform = new Platform();\r\n\t\tbastide = new Person(\"Rémi Bastide\");\r\n\t\thistoire = new Course(\"Histoire\", 15);\r\n\t\tgeo = new Course(\"Géographie\", 20);\r\n\t\tplatform.addCourse(histoire);\r\n\t\tplatform.addCourse(geo);\r\n\t\tplatform.registerStudent(bastide);\r\n\t}",
"protected void setUp() {\n\n }",
"@BeforeAll\n public static void initAll() {\n emf = Persistence.createEntityManagerFactory(\"test-resource-local\");\n propertyName = User_.username.getName();\n emf.close();\n validator = Validation.buildDefaultValidatorFactory().getValidator();\n }",
"@Before\r\n\tpublic void setUp() {\n\t}",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@Before\r\n public void setUp()\r\n {\r\n }",
"@BeforeClass\n public static void setUp() {\n }",
"@BeforeEach\n\tpublic void setup() {\n\t\tuser= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\tuser_diverso= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username_diverso\", \n\t\t\t\t\"password\");\n\t\tuser_uguale= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\t\n\t\tfruitore =new Fruitore(user);\n\t\tfruitore_uguale =new Fruitore(user_uguale);\n\t\tfruitore_diverso =new Fruitore(user_diverso);\n\t}",
"@BeforeSuite\n public void initiateData() throws FileNotFoundException, IOException {\n jsonTestData = new JsonClass();\n userDirectory = System.getProperty(\"user.dir\");\n String log4jConfigFile = userDirectory + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator\n + \"log4j.properties\";\n ConfigurationSource source = new ConfigurationSource(new FileInputStream(log4jConfigFile));\n Configurator.initialize(null, source);\n logger = Logger.getLogger(getClass());\n }",
"@Before\n\tpublic void initialize() {\n\t\tCategory category= new Category();// = SAMPLE_CATEGORY1;\n\t\tcategory.setCategoryName(SAMPLE_CATEGORY1.getCategoryName());\n\t\tcategory.setCompanyReferenceNumber(SAMPLE_COMPANY.getCompanyReferenceNumber());\n\t\tcomServ.saveOrUpdate(SAMPLE_COMPANY);\n\t\tcatServ.saveOrUpdate(category);\n\t\tappServ.saveOrUpdate(SAMPLE_APPLICATION1);\n\t\t\n\t}",
"@Before\n public void setUp()\n {\n m_instance = ConversationRepository.getInstance();\n m_fileSystem = FileSystem.getInstance();\n }",
"@BeforeAll\n public static void setUp(){\n baseURI = ConfigurationReader.getProperty(\"spartan.base_url\");\n basePath = \"/api\" ;\n }",
"@Before\n public void startUp() {\n registry = new DeserializerRegistryImpl();\n registry.init();\n }",
"protected void testInit() {\n this.auths = CitiesDataType.getTestAuths();\n this.documentKey = CityField.EVENT_ID.name();\n }",
"protected void testInit() {\n this.auths = CitiesDataType.getTestAuths();\n this.documentKey = CityField.EVENT_ID.name();\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@Before\n public void setUp() {\n }",
"@BeforeEach\n\tpublic void setup() {\n\t\t\n\t\trisorsa= new Film(1,1);\n\t\tuser=new Utente(\"nome\",\"cognome\",\"mail\",LocalDateTime.now(),\"cf\",\"user\",\"psw\");\n\t\tfruitore = new Fruitore(user);\n\t\t\n\t\trisorsa_diversa= new Film(2,1);\n\t\tuser_diverso=new Utente(\"nome\",\"cognome\",\"mail\",LocalDateTime.now(),\"cf\",\"user_diverso\",\"psw\");\n\t\tfruitore_diverso = new Fruitore(user_diverso);\n\t\t\n\t\tprestito= new Prestito(risorsa, fruitore);\n\t\tprestito_diverso= new Prestito(risorsa_diversa, fruitore_diverso);\n\t}"
]
| [
"0.75034183",
"0.7310419",
"0.7300194",
"0.7290766",
"0.72479784",
"0.72159034",
"0.71773154",
"0.716951",
"0.7117647",
"0.70500344",
"0.703414",
"0.70302707",
"0.6992388",
"0.69710135",
"0.69579",
"0.6936861",
"0.6903842",
"0.6903006",
"0.6893639",
"0.68809694",
"0.6874737",
"0.6860498",
"0.6849172",
"0.6841465",
"0.6840006",
"0.683618",
"0.6808288",
"0.6806074",
"0.67990494",
"0.67950916",
"0.67912143",
"0.67837965",
"0.67780316",
"0.6771469",
"0.6761575",
"0.67563564",
"0.67482984",
"0.6746665",
"0.67390174",
"0.6732006",
"0.67250884",
"0.6722964",
"0.6720027",
"0.6719466",
"0.67050695",
"0.6704975",
"0.6691185",
"0.6684481",
"0.6683615",
"0.6682627",
"0.66796535",
"0.66796535",
"0.66796535",
"0.6675021",
"0.66701",
"0.66559863",
"0.6647267",
"0.66460365",
"0.6644958",
"0.6643301",
"0.663631",
"0.6633243",
"0.6623531",
"0.6617884",
"0.66161746",
"0.6616172",
"0.66154754",
"0.6591106",
"0.6590308",
"0.6588897",
"0.6584518",
"0.65842605",
"0.6578846",
"0.65783954",
"0.6577168",
"0.6574845",
"0.65747386",
"0.6573447",
"0.6573447",
"0.6573447",
"0.6573447",
"0.657226",
"0.65701264",
"0.6569399",
"0.6569249",
"0.65690154",
"0.65587187",
"0.6556197",
"0.65559405",
"0.65559405",
"0.65536344",
"0.65536344",
"0.65536344",
"0.65536344",
"0.65536344",
"0.65491194"
]
| 0.6710439 | 48 |
Test for negative return value. | @Test public void negativeTest() {
Cat c = new Cat("Owner 1", "Kitty", "House Cat", 15.0, 7, 9);
Dog d = new Dog("Owner 2", "Rex", "Boxer", 90.0, 7);
Assert.assertEquals(-1, test.compare(d, c));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isNegative();",
"public boolean isNegative()\n\t{\n\t\t// TO DO\n\t\treturn isNeg;\n\t}",
"public boolean isNegative()\n {\n return Native.fpaIsNumeralNegative(getContext().nCtx(), getNativeObject());\n }",
"boolean isNeg();",
"T negativeResult();",
"public double hasNegSign(double value) {\n if (value < 0) {\n return value * -1;\n } else {\n return value;\n }\n }",
"public boolean isNegative() {\n return this.negative;\n }",
"@Test\n\tvoid testNegativeInteger() {\n\t\tint result = calculator.negativeInteger(-4,-3);\n\t\tassertEquals(-1,result);\n\t}",
"public double abs(double value){return value < 0? value*-1: value;}",
"private static boolean isNegative(String value) {\n if (value.indexOf(\"-\") != -1) {\n return true;\n }\n return false;\n }",
"public abstract boolean isPositive();",
"public boolean posNeg(int a, int b, boolean negative) {\n if (negative){\n return(a < 0 && b < 0);\n }\n\n return((a < 0 && b >= 0) || (a >= 0 && b < 0));\n}",
"public boolean isNegative() {\n return (numberString.charAt(0) == '-');\n }",
"public String getIsNegative() {\r\n return isNegative;\r\n }",
"boolean getNegated();",
"public void testGetTrackStatusForNegative() throws Exception {\r\n try {\r\n target.getTrackStatus(-10);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }",
"public boolean posNeg(int a, int b, boolean negative) {\n throw new UnsupportedOperationException(\"Not implemented\");\n }",
"public static boolean isNumberNegative(Object val) throws BaseException\n{\n\tif(val instanceof Number && NumberUtil.toDouble(val) < 0 )\n\t{\n\t return true;\n\t}\n\treturn false;\n}",
"public Scalar neg() {\n\t\treturn mul(new RealScalar(-1));\n\t}",
"public boolean showSignNegative(){\n return signFormat.equals(FormatIntegerSignVisibility.SHOW_NEGATIVE_ONLY);\n }",
"public long setAmountNeg() {\n return -amount;\n }",
"public void setNegative(boolean negative) {\n this.negative = negative;\n }",
"@org.junit.Test\r\n public void testNegativeScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"071261219\");// function should return false\r\n assertEquals(false, result);\r\n\r\n }",
"public static int checkNegative(int orderN)\n {\n if (orderN < 0)\n {\n System.out.println(\"Negative order number detected input is read as 0.\\n\");\n return 0;\n }\n else\n {\n return orderN;\n }\n }",
"@Test public void negativeValueExceptionTest() {\n boolean thrown = false;\n \n NegativeValueException nv = new NegativeValueException();\n \n try {\n PetBunny pb = new PetBunny(\"Floppy\", \"Holland Lop\", -3.5);\n }\n catch (NegativeValueException e) {\n thrown = true;\n }\n Assert.assertTrue(\"Expected NegativeValueException to be thrown.\",\n thrown);\n }",
"public boolean growsNegative();",
"public int abs(int val)\n {\n return val < 0 ? -1 * val: val;\n }",
"static void return_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_return_requirements();\n\t}",
"public boolean isNegativeInfinite() {\n\t\treturn this.getLow().equals(\"-Inf\");\n\t}",
"boolean hasCustomerNegativeCriterion();",
"public boolean isZero() {return false;}",
"public Integer getNegativecount() {\n return negativecount;\n }",
"@Test\n public void testNegativeM() {\n assertEquals(-1, PiGenerator.powerMod(2, 2, -1));\n }",
"public abstract ArithValue negate();",
"private int signInt() {\n return signum < 0 ? -1 : 0;\n }",
"boolean isZero();",
"@Test\n public void testSignum() {\n System.out.println(Integer.signum(50));\n\n // returns -1 as int value is less than 0\n System.out.println(Integer.signum(-50));\n\n // returns 0 as int value is equal to 0\n System.out.println(Integer.signum(0));\n }",
"private boolean priorsGotNegativeValues(NumericDataset priors) {\n for (FeatureSequenceData data:priors.getAllSequences()) {\n NumericSequenceData priorsequence=(NumericSequenceData)data;\n for (int i=0;i<priorsequence.getSize();i++) {\n if (priorsequence.getValueAtRelativePosition(i)<0) return true;\n }\n }\n return false;\n }",
"public void validateStringNegativeTest() {\n\t\tPercentageInputValidator percentInputValidator = new PercentageInputValidator();\n\t\tString name = \"codeCoverageThreshold\";\n\t\tString value = \"abc\";\n\t\tString referenceResult = \"valid argument\";\n\t\tString result = referenceResult;\n\t\ttry {\n\t\t\tpercentInputValidator.validate(name, value);\n\t\t} catch (ParameterException e) {\n\t\t\tresult = e.getMessage();\n\t\t}\n\t\tLOG.debug(\"result:\" + result);\n\t\tAssert.assertTrue(!result.equals(referenceResult));\n\t}",
"@Test\n public void testCalculateRPNCustomNegativeNumbers() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"-10\",\"*\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(-120.0));\n }",
"public boolean isPositive()\n\t{\n\t\treturn _bIsPositive;\n\t}",
"@Test\n public void testFirstNegativeRegionToExtremePoint(){\n precisionAssertEquals(\n \"Test [x = -0.4]: first negative region\",\n 50.2412,\n systemFunctions.calculate(-0.4)\n );\n precisionAssertEquals(\n \"Test [x = 0.7]: first negative region\",\n 10.964,\n systemFunctions.calculate(-0.7)\n );\n precisionAssertEquals(\n \"Test [x = -1.15]: first negative region\",\n 3.65397,\n systemFunctions.calculate(-1.15)\n );\n }",
"@Test\n public void testFirstNegativeRegionToExtremePoint(){\n precisionAssertEquals(\n \"Test [x = -0.4]: first negative region\",\n 50.2412,\n systemFunctions.calculate(-0.4)\n );\n precisionAssertEquals(\n \"Test [x = 0.7]: first negative region\",\n 10.964,\n systemFunctions.calculate(-0.7)\n );\n precisionAssertEquals(\n \"Test [x = -1.15]: first negative region\",\n 3.65397,\n systemFunctions.calculate(-1.15)\n );\n }",
"@Test(expected=IndexOutOfBoundsException.class)\r\n public void testGet_neg() {\r\n vec5.get(-1);\r\n }",
"private int getNegativeCount(){\n return m_NegativeCount;\n }",
"boolean getPossiblyBad();",
"private int abs(int input) {\n\t\tif (input < 0) {\n\t\t\tinput = input * (-1);\n\t\t}\n\t\treturn input;\n\t}",
"public static final int safeAbs(int value) {\n if (value == Integer.MIN_VALUE) {\n return Integer.MAX_VALUE;\n } else if (value >= 0){\n return value;\n } else {\n return 0 - value;\n }\n }",
"public Vector2D neg()\n\t{\n\t\treturn this.mul(-1);\n\t}",
"@Test\n public void testCalculateRPNStackNegativeNumbers() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"-10\",\"*\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(-120.0));\n }",
"@Test\n public void testNegativeB() {\n assertEquals(-1, PiGenerator.powerMod(2, -1, 23));\n }",
"public static void main(String[] args){\n\t\tSystem.out.println(negate(8)); //should be -8\n\t\tSystem.out.println(negate(-2)); //should be 2\n\t}",
"private boolean isPositive() {\n return this._isPositive;\n }",
"@Test\r\n\tpublic void testAbs(){\n\t\twhen(calculator.abs(-5)).thenReturn(5);\r\n\t\t\r\n\t\tint expected = 5;\r\n\t\tint actual =calculator.abs(-5);\r\n\t\tassertEquals(expected,actual);\r\n\t}",
"public static int abs(int a) {\n\t\treturn ((a<0)?-a:a);\n\t}",
"public boolean almostZero(double a);",
"@Override\n public R visit(NumericLiteralNegative n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }",
"protected boolean avoidNegativeCoordinates() {\n \t\treturn false;\n \t}",
"private boolean formalDateContainsNegativeNumber(String source) {\n String dateWithNegativePattern = \".*-\\\\d+/|/-\\\\d+.*\";\n return source.matches(dateWithNegativePattern);\n }",
"public static int negative(int b) {\n return (b >> 8) & 1;\n }",
"@Test\n public void testEightNegativeRegionToExtremePoint(){\n precisionAssertEquals(\n \"Test [x = -5.3]: eight negative region\",\n 3.74355,\n systemFunctions.calculate(-5.3)\n );\n precisionAssertEquals(\n \"Test [x = -5.4]: eight negative region\",\n 4.16767,\n systemFunctions.calculate(-5.4)\n );\n precisionAssertEquals(\n \"Test [x = -5.5]: eight negative region\",\n 4.66807,\n systemFunctions.calculate(-5.5)\n );\n precisionAssertEquals(\n \"Test [x = -5.6]: eight negative region\",\n 5.12033,\n systemFunctions.calculate(-5.6)\n );\n }",
"@Test\n public void testEightNegativeRegionToExtremePoint(){\n precisionAssertEquals(\n \"Test [x = -5.3]: eight negative region\",\n 3.74355,\n systemFunctions.calculate(-5.3)\n );\n precisionAssertEquals(\n \"Test [x = -5.4]: eight negative region\",\n 4.16767,\n systemFunctions.calculate(-5.4)\n );\n precisionAssertEquals(\n \"Test [x = -5.5]: eight negative region\",\n 4.66807,\n systemFunctions.calculate(-5.5)\n );\n precisionAssertEquals(\n \"Test [x = -5.6]: eight negative region\",\n 5.12033,\n systemFunctions.calculate(-5.6)\n );\n }",
"public static int sign(double x) {\n\t // A true signum could be implemented in C++ as below.\n\t // template <typename T> int sgn(T val) {\n\t // return (T(0) < val) - (val < T(0));\n //}\n if (x >= 0)\n return 1;\n return -1;\n }",
"public static int sign(int number) {\n return Integer.compare(number, 0);\n\n }",
"public static int abs(int a) {\n if(a < 0){\n return -a;\n } else {\n return a;\n }\n }",
"public boolean getNegated() {\r\n return Negated;\r\n }",
"private boolean priorsGotNegativeValues(NumericSequenceData priorsequence) {\n for (int i=0;i<priorsequence.getSize();i++) {\n if (priorsequence.getValueAtRelativePosition(i)<0) return true;\n }\n return false;\n }",
"public static int randomNegativeInt() {\n return randomInt(Integer.MIN_VALUE, 0);\n }",
"@Override\n\tdouble evaluate() {\n\t\treturn Math.abs(operand.getVal());\n\t}",
"public boolean isPositive()\n {\n return Native.fpaIsNumeralPositive(getContext().nCtx(), getNativeObject());\n }",
"@Test\n\tpublic void Given13And20GetNegative1() {\n\t\t\n\t\tIComparePoint ICP = new ComparePoint();\n\t\tint result = ICP.getResult(13, 20);\n\t\tassertEquals(-1, result);\n\t}",
"public static int check() {\r\n\t\tint num = 0;\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0) {\r\n\t\t\t\t\tnum = Math.abs(num);\r\n\t\t\t\t}\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t\t// hvatanje greske i ispis da je unos pogresan\r\n\t\t\t\tSystem.out.println(\"You know it's wrong input, try again mate:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn num;\r\n\t}",
"public static float abs(float input){\n\t\tif(input < 0){\n\t\t\treturn -1 * input;\n\t\t}\n\t\treturn input;\n\t}",
"private void negate()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.negate();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public final expressionParser.negation_return negation() throws RecognitionException {\n expressionParser.negation_return retval = new expressionParser.negation_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal51=null;\n\n CommonTree char_literal51_tree=null;\n RewriteRuleTokenStream stream_47=new RewriteRuleTokenStream(adaptor,\"token 47\");\n\n try {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:94:3: ( '-' -> NEGATION )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:94:5: '-'\n {\n char_literal51=(Token)match(input,47,FOLLOW_47_in_negation523); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_47.add(char_literal51);\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 94:9: -> NEGATION\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(NEGATION, \"NEGATION\"));\n\n }\n\n retval.tree = root_0;}\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"@Test\r\n\tpublic void testTransferAmountNegative() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(\"123456\");\r\n\t\taccountTransferRequest.setReceiverAccount(\"123456\");\r\n\t\taccountTransferRequest.setTransferAmount(-100.0);\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"transferAmount_Cannot_Be_Negative_Or_Zero\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}",
"private int cal(int i)\r\n/* 52: */ {\r\n/* 53:50 */ if (i < 0) {\r\n/* 54:51 */ return -i;\r\n/* 55: */ }\r\n/* 56:53 */ return i;\r\n/* 57: */ }",
"public static double abs(double numero) {\n return numero > 0 ? numero : -numero;\n }",
"protected boolean hasNegativeButton() {\n return false;\n }",
"@Test\n public void testNegativeA() {\n assertEquals(-1, PiGenerator.powerMod(-1, 2, 23));\n }",
"public static int sign(boolean b) {\n if (b)\n return 1;\n return -1;\n }",
"static double negate(double num) {\n\t\t\n\t\treturn num*(-1);\n\t\n\t}",
"public void setNegativecount(Integer negativecount) {\n this.negativecount = negativecount;\n }",
"public static int absolute(int x) {\n return x < 0 ? -x : x;\n }",
"public static int abs(int a) {\n if (a < 0) {\n return -a;\n } else {\n return a;\n }\n }",
"static void return_when_zero(String passed){\n\t\tif(Z)\n\t\t\tcomplete_return_requirements();\n\t}",
"public static final int sign(int x) {\n \t\treturn (x < 0) ? -1 : 1;\n \t}",
"public boolean get_exponent_sign();",
"public static double abs(double x) {\n\t\treturn x>=0 ? x : -x;\n\t}",
"public void testRemoveTrackStatusForNegative() throws Exception {\r\n try {\r\n target.removeTrackStatus(-1);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }",
"public boolean isNegativeCycle(int destination){\n\t\treturn hasNegativeCycle[destination];\n\t}",
"@Test\n\tpublic void testAndNegativeIntegers() throws BcException, IOException {\n\t\tString[] params = { \"-1 && -1\" };\n\t\tbcApp.run(params, inStream, outStream);\n\t\tassertEquals(\"1\", outStream.toString());\n\t}",
"public Point2F negative()\r\n {return scale(-1);}",
"public Binary negative(){\n\n Binary ret1= this.flip();\n Binary ret2= ret1.suma1();\n return ret2;\n }",
"@Test\r\n\t@Order(3)\r\n\tvoid testXnegative() {\r\n\t\trobot.setX(-100);\r\n\t\tassertNotEquals(-100, robot.getX() < 0 ,\"X coord test failed\\nREASON: Values less than 0 not allowed!\");\r\n\t}",
"void negarAnalise();",
"public static final long safeAbs(long value) {\n if (value == Long.MIN_VALUE) {\n return Long.MAX_VALUE;\n } else if (value >= 0L){\n return value;\n } else {\n return 0L - value;\n }\n }",
"public static void main(String[] args) {\n\t\tint i = -10;\r\n\t\tif (i < 0) {\r\n\t\t\tSystem.out.println(\"Positive of \" + i + \" is \" + (-i));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(i + \" is Positive Number only\");\r\n\t\t}\r\n\t}",
"public double getNumberOfNegatives() {\n\t\treturn numberOfTrueNegatives + numberOfFalsePositives;\n\t}",
"@Test\n\tvoid tanTestWithNegativeInfinity() throws CustomException {\n\t\tdouble input = Double.NEGATIVE_INFINITY;\n\t\tassertThrows(CustomException.class, () -> {TrigLib.tan(input);}, \"Throws Exception\");\n\t}"
]
| [
"0.83369946",
"0.7453574",
"0.74122006",
"0.73703927",
"0.7349234",
"0.7290403",
"0.7285853",
"0.7024292",
"0.6642283",
"0.6588533",
"0.65785646",
"0.654129",
"0.6528995",
"0.6521286",
"0.64942235",
"0.6440748",
"0.63808954",
"0.63290477",
"0.63125604",
"0.62772995",
"0.62504244",
"0.62162477",
"0.6205184",
"0.61999035",
"0.61806136",
"0.60803026",
"0.60598236",
"0.60408676",
"0.60294366",
"0.6019464",
"0.5996486",
"0.5983048",
"0.5950425",
"0.5949388",
"0.5945824",
"0.5923682",
"0.5922017",
"0.5914122",
"0.5908225",
"0.5897786",
"0.5872001",
"0.5869286",
"0.5869286",
"0.5853442",
"0.5835399",
"0.5830058",
"0.58250487",
"0.5824934",
"0.5818806",
"0.58130926",
"0.5797359",
"0.5792648",
"0.577291",
"0.5770478",
"0.5763851",
"0.5751971",
"0.5750975",
"0.5748979",
"0.5748491",
"0.5735174",
"0.5734273",
"0.5734273",
"0.5732422",
"0.57248634",
"0.57062346",
"0.5703923",
"0.5691456",
"0.56760174",
"0.56734043",
"0.5664782",
"0.5659135",
"0.5652832",
"0.5645102",
"0.5640136",
"0.56326854",
"0.56301546",
"0.56274843",
"0.5620953",
"0.56163025",
"0.5611882",
"0.56004333",
"0.5595132",
"0.55929023",
"0.5577211",
"0.55745196",
"0.5562031",
"0.5561826",
"0.55584174",
"0.55558044",
"0.5550258",
"0.55448246",
"0.554142",
"0.55280614",
"0.5523829",
"0.5521445",
"0.5509079",
"0.5507428",
"0.5498801",
"0.5482027",
"0.5479824"
]
| 0.5533925 | 92 |
Test for positive return value. | @Test public void positiveTest() {
Cat c = new Cat("Owner 1", "Kitty", "House Cat", 15.0, 7, 9);
Dog d = new Dog("Owner 2", "Rex", "Boxer", 90.0, 7);
Assert.assertEquals(1, test.compare(c, d));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean isPositive();",
"public boolean isNegative();",
"public boolean isPositive()\n\t{\n\t\treturn _bIsPositive;\n\t}",
"private boolean isPositive() {\n return this._isPositive;\n }",
"public double hasNegSign(double value) {\n if (value < 0) {\n return value * -1;\n } else {\n return value;\n }\n }",
"public boolean isPositive()\n {\n return Native.fpaIsNumeralPositive(getContext().nCtx(), getNativeObject());\n }",
"static void return_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_return_requirements();\n\t}",
"public double abs(double value){return value < 0? value*-1: value;}",
"public Boolean verifyTheValueTotalCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if the value total cost is equal to zero.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_total));\n\t}",
"T negativeResult();",
"boolean isZero();",
"boolean isNeg();",
"@Test\n\tvoid testNegativeInteger() {\n\t\tint result = calculator.negativeInteger(-4,-3);\n\t\tassertEquals(-1,result);\n\t}",
"public boolean isZero() {return false;}",
"@Test\n public void testSignum() {\n System.out.println(Integer.signum(50));\n\n // returns -1 as int value is less than 0\n System.out.println(Integer.signum(-50));\n\n // returns 0 as int value is equal to 0\n System.out.println(Integer.signum(0));\n }",
"static void return_when_zero(String passed){\n\t\tif(Z)\n\t\t\tcomplete_return_requirements();\n\t}",
"public boolean isNegative()\n {\n return Native.fpaIsNumeralNegative(getContext().nCtx(), getNativeObject());\n }",
"public boolean almostZero(double a);",
"public static void isPositive(double userInput) {\n\t\tif (userInput <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"You must enter a positive number. Please try again:\");\n\t\t}\n\t}",
"public boolean isNegative()\n\t{\n\t\t// TO DO\n\t\treturn isNeg;\n\t}",
"public Boolean verifyTheValueDeliveryCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if the value delivery cost is equal to zero.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_deliverycost));\n\t}",
"public static void isPositive(int userInput) {\n\t\tif (userInput <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"You must enter a positive number. Please try again:\");\n\t\t}\n\t}",
"public static double getPositiveDouble() {\n double result;\n\n do {\n result = getDouble();\n } while (result <= 0);\n return result;\n }",
"@org.junit.Test\r\n public void testNegativeScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"071261219\");// function should return false\r\n assertEquals(false, result);\r\n\r\n }",
"public boolean isNegative() {\n return this.negative;\n }",
"private static boolean isValue(long x) {\n return x >= 0L; // 1\n }",
"protected static boolean hasPositiveValue(BigDecimal value) {\n return value != null && BigDecimal.ZERO.compareTo(value) < 0;\n }",
"private static boolean isPositive(int ID) {\n return ID > 0;\n }",
"public static void main(String[] args){\n int num= 120;\n boolean positive = num>0;\n boolean negative = num <0;\n boolean zero = num ==0;\n\n\n System.out.println(num + \" is positive? \"+positive);\n System.out.println(num + \" is negative? \"+negative);\n System.out.println(num + \" is zero? \"+zero);\n\n\n\n }",
"public static int sign(double x) {\n\t // A true signum could be implemented in C++ as below.\n\t // template <typename T> int sgn(T val) {\n\t // return (T(0) < val) - (val < T(0));\n //}\n if (x >= 0)\n return 1;\n return -1;\n }",
"public boolean isPositive(int number) {\n return number > 0;\n }",
"@Test\n public void testZeroPuncturePoint(){\n assertTrue(\n \"Test [x = 0.0]: zero value puncture point\",\n Double.isNaN(systemFunctions.calculate(0))\n );\n }",
"@Test\n public void testZeroPuncturePoint(){\n assertTrue(\n \"Test [x = 0.0]: zero value puncture point\",\n Double.isNaN(systemFunctions.calculate(0))\n );\n }",
"public boolean hasPassed(){\n return hasPassed(0);\n }",
"public static int check() {\r\n\t\tint num = 0;\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0) {\r\n\t\t\t\t\tnum = Math.abs(num);\r\n\t\t\t\t}\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t\t// hvatanje greske i ispis da je unos pogresan\r\n\t\t\t\tSystem.out.println(\"You know it's wrong input, try again mate:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn num;\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }",
"boolean hasMoneyValue();",
"boolean hasMoneyValue();",
"public static boolean isNumberPositive(Object val) throws BaseException\n{\n\tif(val instanceof Number && NumberUtil.toDouble(val) > 0 )\n\t{\n\t return true;\n\t}\n\treturn false;\n}",
"public boolean posNeg(int a, int b, boolean negative) {\n if (negative){\n return(a < 0 && b < 0);\n }\n\n return((a < 0 && b >= 0) || (a >= 0 && b < 0));\n}",
"public Boolean verifyTheValueMonthlyCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if the value montly cost is equal to zero.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_monthlycost));\n\t}",
"private boolean isValidValue(double value) {\r\n\t\treturn (value > 0);\r\n\t}",
"default A isZero() {\n return satisfiesNumberCondition(new NumberCondition<>(0, EQUAL_TO));\n }",
"public boolean isPositiveNumber(int number) {\n return number >= 0;\n }",
"public Boolean verifyTheValueOneTimeCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if one time cost is equal to 0.00.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_onetimecost));\n\t}",
"public Boolean verifyTheValueSubtotalIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if Subtotal is equal to 0.00.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_subtotal));\n\t}",
"public int abs(int val)\n {\n return val < 0 ? -1 * val: val;\n }",
"@Test\r\n\tpublic void testAbs(){\n\t\twhen(calculator.abs(-5)).thenReturn(5);\r\n\t\t\r\n\t\tint expected = 5;\r\n\t\tint actual =calculator.abs(-5);\r\n\t\tassertEquals(expected,actual);\r\n\t}",
"protected boolean isPositive(Instance i) {\n TreeNode leaf = traverseTree(i);\n return leaf != null && leaf.isPositiveLeaf();\n }",
"public void testGetTrackStatusForNegative() throws Exception {\r\n try {\r\n target.getTrackStatus(-10);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }",
"public static boolean isNumberNegative(Object val) throws BaseException\n{\n\tif(val instanceof Number && NumberUtil.toDouble(val) < 0 )\n\t{\n\t return true;\n\t}\n\treturn false;\n}",
"static void return_not_sign(String passed){\n\t\tif(!S)\n\t\t\tcomplete_return_requirements();\n\t}",
"public static boolean isPositive(Vector<Double> k)\n\t{\n\t\tfor (int i=0;i<k.size();i++)\n\t\t\tif(k.get(i)<=0)\n\t\t\t\treturn false;\n\t\treturn true;\n\t}",
"@Test\n public void testCheckPositive() {\n Helper.checkPositive(1, \"obj\", \"method\", LogManager.getLog());\n }",
"private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }",
"public boolean isBankrupt() {\n\t\tif (money < 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test\r\n\t@Order(3)\r\n\tvoid testXnegative() {\r\n\t\trobot.setX(-100);\r\n\t\tassertNotEquals(-100, robot.getX() < 0 ,\"X coord test failed\\nREASON: Values less than 0 not allowed!\");\r\n\t}",
"@Test\n\tpublic void testAbsVal() {\n\t\tdouble tmpRndVal = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = Math.abs(doubleRandomNegativeNumbers());\n\t\t\tassertTrue( (tmpRndVal == ac.absoluteValue(tmpRndVal))\n\t\t\t\t\t|| (0.0 == ac.absoluteValue(tmpRndVal)) \n\t\t\t\t\t|| (-0.123456789 == ac.absoluteValue(tmpRndVal)) );\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = Math.abs(doubleRandomPositiveNumbers());\n\t\t\tassertTrue((tmpRndVal == ac.absoluteValue(tmpRndVal)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble inpResult = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinpResult = Math.abs(zero);\n\t\t\tassertTrue( (inpResult == ac.absoluteValue(zero)) );\n\t\t}\n\t\t\n\t}",
"boolean hasIntValue();",
"public static boolean bsign(double x) {\n if (x >= 0)\n return true;\n return false;\n }",
"@Test\n public void test() {\n assertFalse(checkZeroOnes(\"111000\"));\n }",
"@Override\n\tdouble evaluate() {\n\t\treturn Math.abs(operand.getVal());\n\t}",
"private boolean priorsGotNegativeValues(NumericDataset priors) {\n for (FeatureSequenceData data:priors.getAllSequences()) {\n NumericSequenceData priorsequence=(NumericSequenceData)data;\n for (int i=0;i<priorsequence.getSize();i++) {\n if (priorsequence.getValueAtRelativePosition(i)<0) return true;\n }\n }\n return false;\n }",
"boolean hasCustomerNegativeCriterion();",
"public boolean isSuccessAsPrimitive(final SessionContext ctx)\n\t{\n\t\tBoolean value = isSuccess( ctx );\n\t\treturn value != null ? value.booleanValue() : false;\n\t}",
"boolean getNegated();",
"public boolean check(int value);",
"@Test\n public void testFirstNegativeRegionToExtremePoint(){\n precisionAssertEquals(\n \"Test [x = -0.4]: first negative region\",\n 50.2412,\n systemFunctions.calculate(-0.4)\n );\n precisionAssertEquals(\n \"Test [x = 0.7]: first negative region\",\n 10.964,\n systemFunctions.calculate(-0.7)\n );\n precisionAssertEquals(\n \"Test [x = -1.15]: first negative region\",\n 3.65397,\n systemFunctions.calculate(-1.15)\n );\n }",
"@Test\n public void testFirstNegativeRegionToExtremePoint(){\n precisionAssertEquals(\n \"Test [x = -0.4]: first negative region\",\n 50.2412,\n systemFunctions.calculate(-0.4)\n );\n precisionAssertEquals(\n \"Test [x = 0.7]: first negative region\",\n 10.964,\n systemFunctions.calculate(-0.7)\n );\n precisionAssertEquals(\n \"Test [x = -1.15]: first negative region\",\n 3.65397,\n systemFunctions.calculate(-1.15)\n );\n }",
"public boolean hasResult()\n/* */ {\n/* 119 */ return this.result != RESULT_NONE;\n/* */ }",
"public static void main(String[] args) {\n\t\tint n =9;\r\n\t\tif(n>=0)\r\n\t\t\tSystem.out.println(\"number is positive\");\r\n\r\n\t}",
"private boolean priorsGotNegativeValues(NumericSequenceData priorsequence) {\n for (int i=0;i<priorsequence.getSize();i++) {\n if (priorsequence.getValueAtRelativePosition(i)<0) return true;\n }\n return false;\n }",
"@Test\n public void firstMissingPositiveTest() {\n int[] nums1 = new int[]{1, 2, 0};\n assertEquals(3, firstMissingPositive(nums1));\n /**\n * Example 2:\n * Input: [3,4,-1,1]\n * Output: 2\n */\n int[] nums2 = new int[]{3, 4, -1, 1};\n assertEquals(2, firstMissingPositive(nums2));\n /**\n * Example 3:\n * Input: [7,8,9,11,12]\n * Output: 1\n */\n int[] nums3 = new int[]{7, 8, 9, 11, 12};\n assertEquals(1, firstMissingPositive(nums3));\n }",
"public static boolean doTestsPass() {\r\n // todo: implement more tests, please\r\n // feel free to make testing more elegant\r\n boolean testsPass = true;\r\n double result = power(2,-2);\r\n return testsPass && result==0.25;\r\n }",
"@Test\n\tpublic void Given13And20GetNegative1() {\n\t\t\n\t\tIComparePoint ICP = new ComparePoint();\n\t\tint result = ICP.getResult(13, 20);\n\t\tassertEquals(-1, result);\n\t}",
"int isEmpty(){\n if(values[0]==(-1)){\n return 1;\n }\n return (-1);\n }",
"public boolean almostZero(Coordinates a);",
"boolean hasAmount();",
"boolean hasAmount();",
"public static final int safeAbs(int value) {\n if (value == Integer.MIN_VALUE) {\n return Integer.MAX_VALUE;\n } else if (value >= 0){\n return value;\n } else {\n return 0 - value;\n }\n }",
"default double signum() {\r\n\t\treturn signum(evaluate());\r\n\t}",
"public boolean validateInput(double input){\n\t\tif(input >= -1 && input <= 1)\n\t\t return true;\n\t\treturn false;\t\n\t}",
"@Override\n\tprotected boolean isImplementationValid()\n\t{\n\t\treturn (this.amount > 0);\n\t}",
"@Test public void negativeValueExceptionTest() {\n boolean thrown = false;\n \n NegativeValueException nv = new NegativeValueException();\n \n try {\n PetBunny pb = new PetBunny(\"Floppy\", \"Holland Lop\", -3.5);\n }\n catch (NegativeValueException e) {\n thrown = true;\n }\n Assert.assertTrue(\"Expected NegativeValueException to be thrown.\",\n thrown);\n }",
"public static void main(String[] args) {\n\t\tint i = -10;\r\n\t\tif (i < 0) {\r\n\t\t\tSystem.out.println(\"Positive of \" + i + \" is \" + (-i));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(i + \" is Positive Number only\");\r\n\t\t}\r\n\t}",
"public boolean isReviewPositive()\n {\n return (m_nReviewValue == REVIEW_VALUE_POSITIVE) ? true : false ;\n }",
"public float amountCheck(float amount) {\n\t\twhile(true) {\n\t\t\tif(amount<=0) {\n\t\t\t\tSystem.out.println(\"Amount should be greater than 0.\");\n\t\t\t\tSystem.out.println(\"Enter again: \");\n\t\t\t\tamount = sc.nextInt();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn amount;\n\t\t\t}\n\t\t}\n\t}",
"boolean getPossiblyBad();",
"public Boolean validate (final Number res) throws CGException {\n sentinel.entering(((ATOutputSentinel)sentinel).validate);\n try {\n Boolean cond_2 = null;\n if (!(cond_2 = Boolean.valueOf(res.doubleValue() < 0)).booleanValue()) \n cond_2 = Boolean.valueOf(res.doubleValue() > 1000);\n if (cond_2.booleanValue()) \n return Boolean.FALSE;\n else \n return Boolean.TRUE;\n }\n finally {\n sentinel.leaving(((ATOutputSentinel)sentinel).validate);\n }\n }",
"@Test\n\t@Then(\"Validate the positive response code received\")\n\tpublic void validate_the_positive_response_code_received() {\n\t\tint code=response.getStatusCode();\n\t\t System.out.println(\"Status Code Received: \"+code);\n\t\t Assert.assertEquals(200,code);\n\t\t RestAssured.given()\n\t\t\t.when()\n\t\t\t.get(\"https://api.ratesapi.io/api/2050-01-12\") \n\t\t\t.then()\n\t\t\t.log().body();\n\t}",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();"
]
| [
"0.74707913",
"0.7098259",
"0.70270264",
"0.691281",
"0.6853749",
"0.6763327",
"0.664505",
"0.65657663",
"0.6521027",
"0.65168595",
"0.65142095",
"0.6493402",
"0.64011765",
"0.6345885",
"0.6303865",
"0.6216586",
"0.61837476",
"0.6179614",
"0.615849",
"0.614264",
"0.6137147",
"0.6121274",
"0.61136425",
"0.6111584",
"0.61087036",
"0.6074907",
"0.60534054",
"0.60071284",
"0.5988984",
"0.5968937",
"0.59633857",
"0.5961424",
"0.5961424",
"0.5951354",
"0.5936229",
"0.5933184",
"0.5923605",
"0.5923605",
"0.5906575",
"0.5895567",
"0.58725625",
"0.5857052",
"0.58200175",
"0.58187926",
"0.58083326",
"0.580519",
"0.579831",
"0.579685",
"0.57966727",
"0.5790129",
"0.5779798",
"0.5767963",
"0.57676136",
"0.5759664",
"0.57499677",
"0.5716438",
"0.5715858",
"0.57080096",
"0.5702038",
"0.56978875",
"0.5692089",
"0.567859",
"0.5678288",
"0.5671793",
"0.566852",
"0.5658259",
"0.5656065",
"0.5655875",
"0.5655875",
"0.56475514",
"0.56440866",
"0.56414485",
"0.5627566",
"0.5619692",
"0.561591",
"0.56048787",
"0.559836",
"0.5597379",
"0.5597379",
"0.5585385",
"0.55838645",
"0.5583254",
"0.5581307",
"0.55807513",
"0.55766535",
"0.5576192",
"0.5564699",
"0.55619675",
"0.55578345",
"0.55551946",
"0.5551642",
"0.5551642",
"0.5551642",
"0.5551642",
"0.5551642",
"0.5551642",
"0.5551642",
"0.5551642",
"0.5551642",
"0.5551642",
"0.5551642"
]
| 0.0 | -1 |
Test for equal (0) return value. | @Test public void equalTest() {
Dog d = new Dog("Owner 1", "Rex", "Boxer", 90.0, 7);
Dog d2 = new Dog("Owner 2", "Spot", "Pit Bull", 90.0, 7);
Assert.assertEquals(0, test.compare(d, d2));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int result() {\n return EQUAL;\n }",
"@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}",
"public boolean hasResult()\n/* */ {\n/* 119 */ return this.result != RESULT_NONE;\n/* */ }",
"static void return_not_zero(String passed){\n\t\tif(!Z)\n\t\t\tcomplete_return_requirements();\n\t}",
"boolean isZero();",
"public double result() {return 0;}",
"public int getReturnValue() {\n if (success)\r\n return 0;\r\n else\r\n return ret;\r\n }",
"public int result() {\n return 0;\n }",
"@Test\n public void testValidHashZero() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\tboolean result = l.validHash(0,8);\n\tassertEquals(result, true);\n }",
"public boolean isZero() {return false;}",
"@Test\n\tpublic void testPotencia0() {\n\t\tdouble resultado=Producto.potencia(0, 8);\n\t\tdouble esperado=0;\n\t\t\n\t\tassertEquals(esperado,resultado);\n\t}",
"CompT zero();",
"static void return_when_zero(String passed){\n\t\tif(Z)\n\t\t\tcomplete_return_requirements();\n\t}",
"static int ifEquals(int x, int y, int a, int b) { \n //return x==y?a:b; \n return onEqu1(x, y, a, b, ((x-y)-1)>>31);\n }",
"@Override\n public S isZero() {\n rule.addConstraint(new IsEqualAccordingToCompareToConstraint<>(zero()));\n return myself;\n }",
"@Test\n\tpublic void whenNumberZeroFactrialOne() {\n\t\tFactorial fact = new Factorial();\n\t\tassertTrue(fact.calc(0) == 1);\n\t}",
"@Override\n boolean test0(final ETag etag) {\n return this.value.equals(etag.value());\n }",
"default A isZero() {\n return satisfiesNumberCondition(new NumberCondition<>(0, EQUAL_TO));\n }",
"@Test\r\n\tpublic void shouldReturn0WhenEmpty() {\r\n\t\tA = new ArrayList<Integer>();\r\n\t\tassertEquals(0, Coins.solution(A));\r\n\t}",
"int return0() ;",
"@Test\n public void testZeroA() {\n assertEquals(0, PiGenerator.powerMod(0, 5, 42));\n }",
"@Override\n public BL equal(final ANY that) {\n\t\tif (that instanceof TS) {\n\t\t\tfinal TS thatTS = (TS) that;\n\t\t\treturn this.minus(thatTS).isZero();\n\t\t} else {\n\t\t\treturn BLimpl.FALSE;\n\t\t}\n\t}",
"public boolean queryAfterZeroResults() {\n/* 264 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Boolean verifyTheValueOneTimeCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if one time cost is equal to 0.00.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_onetimecost));\n\t}",
"@Test\n\tpublic void testMultiplica2Enteros0() {\n\t\tdouble resultado= Producto.multiplica2enteros(100, 0);\n\t\tdouble esperado= 0;\n\t\t\n\t\tassertEquals(esperado, resultado);\n\t}",
"@Test\n public void shouldCurrentGameBeZeroWhenStartingGame() {\n\n int expResult = 0 ;\n int result = scoreService.getCurrentGame() ;\n assertThat(expResult, is(result) ) ;\n }",
"@Test\n public void testZeroPrice() {\n double expectedValue = new BigDecimal(0.0, new MathContext(5)).doubleValue();\n double actualValue = MarkupCalculator.determinePrice(new BigDecimal(0.0),\n BigInteger.valueOf(5),\n ProductType.FOOD)\n .round(new MathContext(5)).doubleValue();\n \n Assert.assertEquals(\"failure - zero price test produced the wrong result\",\n expectedValue, \n actualValue, 0.001);\n }",
"public boolean getZeroFlag() {\n // PROGRAM 1: Student must complete this method\n // return value is a placeholder, student should replace with correct return\n int zero = 0; //integer to keep track of how many '1's are in the output array\n for (int i = 0; i < output.length; i++) {\n if (output[i]) { //when we come across a 1, add 1 to the zero integer.\n zero += 1;\n }\n }\n if (zero > 0) { //if the method caught any '1's, then the output binary number is not 0.\n zeroFlag = false;\n } else {\n zeroFlag = true; //otherwise, it is\n }\n return zeroFlag; //return the zeroFlag\n }",
"@Test\n public void testEquals() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n \n DecisionVariableDeclaration decl = new DecisionVariableDeclaration(\"x\", IntegerType.TYPE, null);\n \n ConstantValue c0 = new ConstantValue(ValueFactory.createValue(IntegerType.TYPE, 0));\n ConstraintSyntaxTree cst1 = new OCLFeatureCall(\n new Variable(decl), IntegerType.LESS_EQUALS_INTEGER_INTEGER.getName(), c0);\n ConstraintSyntaxTree cst2 = new OCLFeatureCall(\n new Variable(decl), IntegerType.GREATER_EQUALS_INTEGER_INTEGER.getName(), c0);\n\n EvaluationAccessor val1 = Utils.createValue(ConstraintType.TYPE, context, cst1);\n EvaluationAccessor val2 = Utils.createValue(ConstraintType.TYPE, context, cst2);\n EvaluationAccessor nullV = Utils.createNullValue(context);\n \n // equals is useless and will be tested in the EvaluationVisitorTest\n \n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val1);\n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val1);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, nullV);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, nullV);\n\n val1.release();\n val2.release();\n nullV.release();\n }",
"public static int BIASED_ONE_OR_ZERO()\n\t{\n\t}",
"public int getTrueValue()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start getTrueValue Method ***************/\n\n // Return true value\n return trueValue;\n\n }",
"@Test\r\n\tpublic void test01() {\n\t\tInteger x = -128;\r\n\t\tInteger y = -128;\r\n\t\tassertSame(x, y);\r\n\t\tInteger u = 1000;\r\n\t\tInteger v = 1000;\r\n\t\tassertNotSame(u, v);\r\n\t}",
"String getEqual();",
"public boolean isZero() {\n\t\treturn ((get() >> 7) & 1) == 1;\n\t}",
"@Test public void equalsTest() throws NegativeValueException {\n PetBunny pb1 = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n PetBunny same = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n PetBunny badName = new PetBunny(\"Flop\", \"Holland Lop\", 3.5);\n PetBunny badBreed = new PetBunny(\"Floppy\", \"Holland Plop\", 3.5);\n PetBunny badWeight = new PetBunny(\"Floppy\", \"Holland Lop\", 5.0);\n String nothing = \"test\";\n \n Assert.assertTrue(pb1.equals(same));\n Assert.assertFalse(pb1.equals(nothing));\n Assert.assertFalse(pb1.equals(badName));\n Assert.assertFalse(pb1.equals(badBreed));\n Assert.assertFalse(pb1.equals(badWeight));\n }",
"int isEmpty(){\n if(values[0]==(-1)){\n return 1;\n }\n return (-1);\n }",
"@Test\n public void zero() {\n \n BowlingGame bowlinggame = new BowlingGame();\n \n bowlinggame.getScore();\n assertEquals(0, bowlinggame.getScore());\n \n }",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }",
"@Test\n\tpublic void feedMoney_0_returns_0() {\n\t\t//Arrange\n\t\tint money = 0;\n\t\t\n\t\t//Act\n\t\tdouble actualOutput = testSteve.feedMoney(0);\n\t\t\n\t\t//Assert\n\t\tAssert.assertEquals(money, actualOutput, 0);\n\t}",
"@Override\n\tpublic boolean\n\tisZero()\n\t{\n\t\treturn( data[0] == 0 && data[1] == 0 && data[2] == 0 );\n\t}",
"boolean hasVal();",
"boolean hasVal();",
"@Override\n\tpublic int javaMethodBaseWithIntRet() {\n\t\treturn 0;\n\t}",
"public native boolean __equals( long __swiftObject, java.lang.Object arg0 );",
"public boolean zeroFinder()\n {\n return zeroFinder(0);\n }",
"boolean hasEresult();",
"@Test\n\tpublic void testGetSessieDuur(){\n\t\tdouble expResult = 1;\n\t\tassertTrue(expResult == instance.getSessieDuur());\n\t}",
"public boolean almostZero(double a);",
"@Override\n\tpublic double javaMethodBaseWithDoubleRet() {\n\t\treturn 0;\n\t}",
"@Test\n public void testOtherwise() {\n AtomicBoolean success = new AtomicBoolean(false);\n match(42L).otherwise(s -> success.set(true));\n\n assertTrue(success.get());\n }",
"@Test\n public void testIsEven_0() {\n NaturalNumber n = new NaturalNumber2(0);\n boolean result = CryptoUtilities.isEven(n);\n assertEquals(\"0\", n.toString());\n assertTrue(result);\n }",
"public Boolean verifyTheValueTotalCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if the value total cost is equal to zero.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_total));\n\t}",
"@Test\n /**\n * we can write a comment indicating a test's function or make its name descriptive\n */\n public void factorialOf0ShouldReturn1() {\n // longs can store more bits (64) than int (32)\n long expectedValue = 1;\n long obtainedValue = factorial.compute(0);\n\n assertEquals(expectedValue, obtainedValue);\n\n }",
"@Test\r\n\tpublic void testGettingZeroCreditValue() {\r\n\t\tTheCoinSlotListener csListener = new TheCoinSlotListener();\r\n\t\tassertEquals(csListener.getCurrentCredit(), 0);\r\n\t}",
"private boolean OK() {\r\n return in == saves[save-1];\r\n }",
"public int checkForAlert() {\n return 0;\n }",
"public boolean isZero()\r\n\t{\r\n\t\tif(this.get_coefficient()==0)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public final boolean equal() {\n\t\tif (size > 1) {\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue == secondTopMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasResult() {\r\n\t\t\treturn ((bitField0_ & 0x00000001) == 0x00000001);\r\n\t\t}",
"public boolean hasResult() {\r\n\t\t\t\treturn ((bitField0_ & 0x00000001) == 0x00000001);\r\n\t\t\t}",
"synchronized boolean resetWasUsed() {\n\n boolean result = lastValue != currValue;\n\n lastValue = currValue;\n\n return result;\n }",
"private void asserEquals(int esperado, int resultado) {\n\t\t\r\n\t}",
"@Test(timeout = 4000)\n public void test071() throws Throwable {\n Long long0 = new Long(814L);\n Range range0 = Range.of(814L);\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n }",
"@Override\r\n\tpublic int single() {\n\t\treturn 0;\r\n\t}",
"@Test\n public void test() {\n assertFalse(checkZeroOnes(\"111000\"));\n }",
"public void equal() {\n if (operatorAssigned != Operator.NON || operatorType != Operator.NON) {\n double subResult;\n if (numberStored[1] != 0) {\n subResult = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), operatorType);\n numberStored[0] = basicCalculation(numberStored[0], subResult, operatorAssigned);\n numberStored[1] = 0;\n mainLabel.setText(Double.toString(numberStored[0]));\n } else {\n numberStored[0] = basicCalculation(numberStored[0], Double.parseDouble(mainLabel.getText()), operatorType);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n }\n operatorAssigned = Operator.NON;\n operatorType = Operator.NON;\n }",
"public boolean equals(Object other) {\n/* 70 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test\n public void testZeroB() {\n assertEquals(1, PiGenerator.powerMod(5, 0, 42));\n }",
"public boolean isZero(int count) {\n\t\treturn count == 0;\n\t}",
"public boolean equals(Object obj) {\n/* 193 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test\n public void setProductPriceIs0() throws NegativeValueException {\n cartItem.setProductPrice(0);\n double expected = 0;\n double actual = cartItem.getProductPrice();\n assertEquals(expected, actual, 0.0);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasValue() {\n return result.hasValue();\n }",
"public boolean hasValue() {\n return result.hasValue();\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"public boolean equals(Object o) { return compareTo(o) == 0; }",
"public boolean okReveiced () {\n\t\t\treturn resultDetected[RESULT_INDEX_OK];\n\t\t}",
"public boolean isZero() {\r\n return (this.getReal() == 0 && this.getImag() == 0) ? true : false;\r\n }",
"public boolean is_pure_nil() {return true;}",
"@Test\n\tpublic void testEqualsFalso() {\n\t\t\n\t\tassertFalse(contato1.equals(contato2));\n\t}",
"@Test\n public void testZeroPuncturePoint(){\n assertTrue(\n \"Test [x = 0.0]: zero value puncture point\",\n Double.isNaN(systemFunctions.calculate(0))\n );\n }",
"@Test\n public void testZeroPuncturePoint(){\n assertTrue(\n \"Test [x = 0.0]: zero value puncture point\",\n Double.isNaN(systemFunctions.calculate(0))\n );\n }",
"public boolean hasValue() { return false; }",
"@Test\n public void setProductCountIs0() throws NegativeValueException {\n cartItem.setProductCount(0);\n int expected = 0;\n int actual = cartItem.getProductCount();\n assertEquals(expected, actual);\n }",
"public boolean hasEresult() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"@Test\n public void testCaseOfInputEqualsMatchFunction() {\n AtomicBoolean success = new AtomicBoolean(false);\n int expected = 42;\n match(expected).caseObj(Optional::ofNullable, s -> success.set(s == expected));\n\n assertTrue(success.get());\n }",
"@Override\n\tpublic int FunctionCall() {\n\t\tint s=success;\n\t\t\n\t\treturn s;\n\n\t}",
"public boolean hasPassed(){\n return hasPassed(0);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasResult() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public int Check(){\n return 6;\n }"
]
| [
"0.6741882",
"0.6371996",
"0.62074465",
"0.61175025",
"0.60953206",
"0.5933782",
"0.5895778",
"0.5890602",
"0.5886255",
"0.5874003",
"0.58341956",
"0.58266526",
"0.58151186",
"0.58147264",
"0.5775381",
"0.57633644",
"0.57582235",
"0.5750699",
"0.573569",
"0.5711662",
"0.5690671",
"0.5678127",
"0.5671501",
"0.56264496",
"0.56116253",
"0.5611311",
"0.5585548",
"0.55762154",
"0.5573053",
"0.55707383",
"0.5570417",
"0.55643433",
"0.55604",
"0.5550693",
"0.55445975",
"0.5535049",
"0.55280405",
"0.55245453",
"0.55241203",
"0.5522491",
"0.55120254",
"0.55019945",
"0.55019945",
"0.5500827",
"0.5500797",
"0.5499765",
"0.5498826",
"0.5481268",
"0.547908",
"0.54765844",
"0.54618263",
"0.54517263",
"0.5450845",
"0.5448175",
"0.5446784",
"0.54396695",
"0.5438952",
"0.5438881",
"0.5421292",
"0.5415996",
"0.54151064",
"0.5412224",
"0.540519",
"0.54040855",
"0.53999305",
"0.53997195",
"0.5388309",
"0.5384353",
"0.5375771",
"0.5370112",
"0.5368501",
"0.53668857",
"0.5361516",
"0.5361516",
"0.5361516",
"0.536068",
"0.536068",
"0.536068",
"0.53586745",
"0.53586745",
"0.53563035",
"0.5348711",
"0.534856",
"0.53442335",
"0.5341565",
"0.53274477",
"0.53221214",
"0.53221214",
"0.53215295",
"0.5317197",
"0.5315669",
"0.5310557",
"0.5304462",
"0.5302228",
"0.53001106",
"0.53001106",
"0.53001106",
"0.5300045",
"0.5300045",
"0.5299549",
"0.52944946"
]
| 0.0 | -1 |
callback.onFailure(new RuntimeException("Failed to create security context for "+id, caught)); | @Override
public void onFailure(Throwable caught) {
Console.warning("Failed to create security context for "+id+ ", fallback to temporary read-only context", caught.getMessage());
contextMapping.put(id, READ_ONLY);
callback.onSuccess(READ_ONLY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}",
"void failure(ServiceExecutionEvent e) {\n\n }",
"void onFailure() {\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t\t\t}",
"@Override\n public void onCreateFailure(String s) {\n }",
"@Override\n public void onCreateFailure(String s) {\n }",
"@Override\n public void onFailure(int arg0, String arg1, Throwable arg2) {\n }",
"@Override\n public void onFailure(Throwable t) {\n throw new RuntimeException(t);\n }",
"@Override\n public void onFailure(Throwable t) {\n throw new RuntimeException(t);\n }",
"@Override\n \t\t\t\tpublic void onFailure(Throwable caught) {\n \n \t\t\t\t}",
"@Override\n public void onFailure(Throwable t) {\n }",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}",
"public abstract void onFailure(FailureCode code, Throwable ex);",
"@Override\n public void onFailure(Throwable caught) {\n }",
"@Override\r\n \t\t\t\tpublic void onFailure(Throwable caught)\r\n \t\t\t\t{\n \t\t\t\t}",
"public void onFailure();",
"@Override\r\n public void onFailure(Throwable t) {\n }",
"@Override\r\n public void onFailure(Throwable t) {\n }",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void onFailure(int result) {\n\n\t}",
"@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t\t\t\t\t\t\t}",
"void onFailure();",
"void onFailure();",
"void onFailure();",
"@Override\r\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onFailure(int arg0) {\n }",
"@Override\n\t\t\t\t\t\tpublic void onFailure(Throwable caught)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n public void onFailure(Throwable t) {\n }",
"@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t}",
"@Override\n public void onFailure(Throwable caught) {\n result.onFailure(caught);\n }",
"@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public interface Callback {\n /**\n * Performs an operation with the prepared context.\n * \n * @param context to be used by the operation.\n * @return result of the operation.\n * @throws ExceptionBase if the operation throws exception.\n */\n Object doWithContext(final Context context) throws ExceptionBase;\n}",
"@Override\n \t\t\tpublic void onFailure(Throwable arg0) {\n \t\t\t\tSystem.err.println(\"***failure:\" + arg0);\n \n \t\t\t}",
"@Override\n\t\tpublic void asyncFailure(long id, Exception e)\n\t\t\t\tthrows ConnectorException {\n\t\t\t\n\t\t}",
"public FailureContext() {\n }",
"@Override\n public void failure(Throwable t)\n {\n System.err.println(\"Call to Embedded Social failed with exception: \" + t.getMessage());\n }",
"@Override\n public void onFailure() {\n }",
"@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t}",
"void onFailure(Throwable error);",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\r\n\t\t\t}",
"public void onFailure(Exception t);",
"@Override\n\t\tpublic void onFailure(Throwable caught) {\n\t\t}",
"@Override\n\t\tpublic void onFailure(Throwable caught) {\n\t\t}",
"@Override\n\t public void onFailure(Throwable caught) {\n\n\t }",
"@Override\n public void onFailure(int arg0, String arg1, Throwable arg2) {\n }",
"public void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}",
"@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }",
"@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n\n }",
"@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n }",
"@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n Log.d(\"mqtt\", \"onFailure\");\n\n }",
"@Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n\r\n }",
"@Override\n\t\t\t\t\t\tpublic void onFailure(Method method, Throwable exception) {\n\n\t\t\t\t\t\t}",
"@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n Log.d(LOG_TAG, \"onFailure\");\n exception.printStackTrace();\n\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(Call<String> call, Throwable t) {\n SecurityLayer.generateToken(getApplicationContext());\n com.ceva.ubmobile.core.ui.Log.debug(\"ubnaccountsfail\", t.toString());\n showToast(getString(R.string.error_500));\n\n }",
"void onAuthenticationError(Throwable throwable);",
"void onError(long ssl, Throwable cause);",
"@Override\n\t\t\t\t\tpublic void onFailure(Object o) {\n\t\t\t\t\t}",
"public void doCallbackFailure(Throwable error) {\n if (channelPointerOpt.isPresent() && error != null) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n error.printStackTrace(pw);\n String stringStackTrace = sw.toString();\n failcallbacktochannel(channelPointerOpt.get().getAddress(), stringStackTrace);\n } else {\n throw new InvocationException(\"Cannot do callback for failure. Please make sure that you don't try to access this method while being in the constructor of your class (that extends NativeCallbackSupport). The failure was: \", error);\n }\n }",
"public void onFailure(Throwable arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n public void onFailure(Call arg0, IOException arg1) {\n\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(Exception error) {\n }",
"@Override\n public void onFailure(int arg0, String arg1) {\n\n }",
"public interface FailAuthCounterCallback {\n void onTryLimitReached();\n}",
"RequestSender onFailure(Consumer<Message> consumer);",
"void onFailure(String description);",
"@Override\n\t\t\tpublic void onFailure(int code, String msg, Object object) {\n\n\t\t\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n }",
"public void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\tSystem.out.println(\"fail!\");\r\n\r\n\t\t\t\t}",
"@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }",
"@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }",
"@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }",
"@Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n }"
]
| [
"0.6094234",
"0.58878994",
"0.58753914",
"0.5862427",
"0.58428425",
"0.58428425",
"0.5806529",
"0.5806368",
"0.5806368",
"0.5802945",
"0.57986104",
"0.5779084",
"0.5756239",
"0.57437",
"0.574082",
"0.5721447",
"0.57210493",
"0.57210493",
"0.57180756",
"0.57180756",
"0.57180756",
"0.57180756",
"0.57180756",
"0.57033557",
"0.57033557",
"0.57033557",
"0.57033557",
"0.5701688",
"0.5694785",
"0.56913674",
"0.56913674",
"0.56913674",
"0.5690636",
"0.56886995",
"0.56619436",
"0.5655179",
"0.5635725",
"0.5635725",
"0.5631234",
"0.56230193",
"0.5599448",
"0.55989",
"0.55929875",
"0.55912244",
"0.5589228",
"0.5587051",
"0.5581626",
"0.5568894",
"0.555565",
"0.555565",
"0.5553825",
"0.5553825",
"0.5551065",
"0.5548666",
"0.5548666",
"0.55438465",
"0.5531043",
"0.5513568",
"0.54979324",
"0.54979324",
"0.54979324",
"0.5484144",
"0.5468552",
"0.5468347",
"0.5468347",
"0.5468347",
"0.54652447",
"0.54632914",
"0.546189",
"0.5461635",
"0.5442072",
"0.5437269",
"0.54303795",
"0.5424606",
"0.5418025",
"0.5399484",
"0.5392713",
"0.53899103",
"0.5387382",
"0.53844845",
"0.538014",
"0.538014",
"0.538014",
"0.538014",
"0.538014",
"0.5372121",
"0.5371871",
"0.5367668",
"0.5365931",
"0.53599226",
"0.53599113",
"0.5355861",
"0.5355861",
"0.5346815",
"0.53455573",
"0.5342126",
"0.5342126",
"0.5342126",
"0.5342126",
"0.53398395"
]
| 0.7601442 | 0 |
Fallback for some forms | @Override
public Set<String> getReadOnlyJavaNames(Class<?> type, SecurityContext securityContext) {
if(type == Object.class || type == null)
return Collections.EMPTY_SET;
return new MetaDataAdapter(Console.MODULES.getApplicationMetaData())
.getReadOnlyJavaNames(type, securityContext);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String usesFormWithAttributes()\r\n {\r\n return \"\";\r\n }",
"@Override\n\tpublic ActionResult defaultMethod(PortalForm form, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}",
"public boolean isForm();",
"@Override\r\n\tprotected Result validate(Keywords form, HttpServletRequest request) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic ActionForward doDefault(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\n\t}",
"public XmlNsForm getElementFormDefault();",
"@Override\n\tpublic ActionResult validate(PortalForm form, HttpServletRequest request) {\n\t\treturn null;\n\t}",
"private void readForm() {\n }",
"@Test\n public void test028() throws Throwable {\n Form form0 = new Form(\"<([^<]+)>\");\n Form form1 = form0._getVisibleForm(true);\n }",
"public T caseFormulario(Formulario object) {\n\t\treturn null;\n\t}",
"public abstract ModelAndView handleValidForm(HttpServletRequest req, HttpServletResponse res, Object inputCommand, BindException be) throws Throwable;",
"@Override\r\n\tprotected String doExecute(ActionForm form, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, ActionMapping mapping)\r\n\t\t\tthrows Exception {\n\t\treturn null;\r\n\t}",
"public Form readForm(String formKey);",
"@Override\n protected void showOtherForm(Resources res) {\n }",
"public void setForm(boolean form);",
"public String formNotFound()\r\n {\r\n return formError(\"404 Not_found\",\"Requested object was not found\");\r\n }",
"public abstract FullResponse onServeFormParams(Map<String, List<String>> formParams);",
"@Override\r\n\tpublic void refrescarFormulario() {\n\t\t\r\n\t}",
"public Form getSearchForm() throws PublicationTemplateException;",
"@Override\r\n protected void onForm(ClientForm form) {\n \r\n }",
"protected ActionForward unspecified(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n String message =\n messages.getMessage(\"mapping.parameter\", mapping.getPath());\n\n log.error(message);\n\n throw new ServletException(message);\n }",
"protected ActionForm processActionForm(HttpServletRequest request,\n HttpServletResponse response,\n ActionMapping mapping)\n {\n String scope = mapping.getScope();\n if(scope != null)\n {\n try\n {\n if(scope.equals(\"session\"))\n {\n OperationContext opCon = OperationContext.getOperationContext(request);\n if(opCon != null)\n {\n if(_log.isInfoEnabled())\n {\n _log.info(\"Looking for ActionForm in OperationContext[id=\" + opCon.getOperationContextId() + \"]\"); //20030124AH\n }\n ActionForm form = opCon.getActionForm();\n if(form != null)\n {\n if(_log.isInfoEnabled())\n {\n _log.info(\"Found ActionForm in OperationContext\"); //20030124AH\n }\n return form;\n }\n else\n {\n if(_log.isWarnEnabled())\n {\n _log.warn(\"No ActionForm found in OperationContext\"); //20030124AH\n }\n return null; //20030124AH\n }\n }\n }\n }\n catch(OperationException e)\n {\n // OperationExceptions here are normal when we forward from a completed operation\n // to the next action, so we ignore them.\n }\n catch(Throwable t)\n {\n if(_log.isErrorEnabled())\n {\n _log.error(\"Error caught in processActionForm() performing customised ActionForm handling\", t); //20030124AH\n }\n }\n }\n\n if(mapping instanceof GTActionMapping)\n { //20030124AH - Check the mapping to see if we should defer form creation or do it as normal\n if( ((GTActionMapping)mapping).isDeferFormCreation() )\n {\n if(_log.isInfoEnabled())\n {\n _log.info(\"Deferring ActionForm creation\");\n }\n return null;\n }\n }\n //...\n if(_log.isInfoEnabled())\n {\n _log.info(\"Delegating to superclass to obtain ActionForm\"); //20030124AH\n }\n ActionForm form = super.processActionForm(request, response, mapping);\n return form;\n }",
"public void parseForm()\n {\n if (mForm.gotoRoot().gotoTag(\"h:head/%1$s:model\", mDefaultPrefix).hasTag(\"%1$s:itext\", mDefaultPrefix)) {\n Log.d(Collect.LOGTAG, t + \"parsing itext form translations...\");\n parseFormTranslations(mForm.gotoRoot().gotoTag(\"h:head/%1$s:model/%1$s:itext\", mDefaultPrefix));\n } else\n Log.d(Collect.LOGTAG, t + \"no form translations to parse\"); \n \n Log.d(Collect.LOGTAG, t + \"parsing form binds...\");\n parseFormBinds(mForm.gotoRoot().gotoTag(\"h:head/%1$s:model\", mDefaultPrefix));\n \n Log.d(Collect.LOGTAG, t + \"parsing form controls...\");\n parseFormControls(mForm.gotoRoot().gotoTag(\"h:body\"));\n \n Log.d(Collect.LOGTAG, t + \"parsing form instance...\");\n parseFormInstance(mForm.gotoRoot().gotoTag(\"h:head/%1$s:model/%1$s:instance\", mDefaultPrefix).gotoChild(), \"/\" + mInstanceRoot);\n Log.d(Collect.LOGTAG, t + \"FINISHED parsing form instance\");\n }",
"@Override\n\t\tpublic FormTestFacade getForm() {\n\t\t\treturn null;\n\t\t}",
"@Override\n\t\tpublic FormTestFacade getForm() {\n\t\t\treturn null;\n\t\t}",
"@Override\n public FormMappingOption adjustFormMapping() {\n return formMappingOption;\n }",
"boolean isAuxForm();",
"public Form getViewForm() throws PublicationTemplateException;",
"private void preparaForm(String opcao) {\n switch(opcao){\n case \"fill\": { preparaFill(); break; }\n case \"novo\": { preparaNovo(); break; }\n case \"alterar\": { preparaAlterar(); break; }\n case \"cancelar\": { preparaCancelar(); break; }\n case \"salvar\": { preparaSalvar(); break; }\n }\n }",
"public interface FormInferface {\n\n /**\n * Writes into a form's hidden fields data that remained on it.\n */\n void storeFormState();\n\n /**\n * Fills form's data from hidden fields.\n */\n void restoreFormState();\n}",
"protected RespostaFormularioPreenchido() {\n // for ORM\n }",
"public String formNotAllowed()\r\n {\r\n return formError(\"403 Access Denied\",\"Access is not allowed\");\r\n }",
"public XmlNsForm getAttributeFormDefault();",
"@SkipValidation\n public String importantNewsSearchForm() {\n return SUCCESS;\n }",
"@Override\n\tpublic FormContainer getFormContainer() {\n\t\treturn null;\n\t}",
"protected final Form getForm() {\n\t\treturn itsForm;\n\t}",
"public boolean isSimpleFormEnabled()\n {\n return false;\n }",
"public ActionForward unspecified(ActionMapping mapping,\r\n ActionForm form,\r\n HttpServletRequest request,\r\n HttpServletResponse response) throws Exception {\r\n return display(mapping, form, request, response);\r\n }",
"@Override\n\tpublic boolean isFormField()\n\t{\n\t\treturn isFormField;\n\t}",
"@Override\n\tpublic void postRun(FormCheckerForm form) {\n\t}",
"public ActionForward unspecified(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest req, HttpServletResponse res)\n\t\t\tthrows IOException, ServletException {\n\t\tAsociarListasForm formulario = (AsociarListasForm) form;\n\t\tint idEnvio = formulario.getIdEnvio();\n\t\tString idCliente = req.getRemoteUser();\n\n\t\ttry {\n\t\t\tformulario.init(req);\n\t\t\tEnvioDao dao = (EnvioDao) FactoriaDao.getInstance().getDao(EnvioDao.class);\n\t\t\tformulario.setListasSeleccionadas(dao.findListas(idCliente, idEnvio));\n\t\t} catch (DaoException e) {\n\t\t\tthrow new ServletException(e);\n\t\t}\n\t\tString inc = (String)req.getParameter(\"inc\")==null?\"\":(String)req.getParameter(\"inc\");\n\t\tif (inc.equals(\"S\"))\n\t\t\treq.setAttribute(\"incompatibles\",\"S\");\n\t\treturn mapping.getInputForward();\n\t}",
"@Override\n\tpublic ERForm getSpecificForm(int RID) {\n\t\treturn null;\n\t}",
"public final boolean hasTextForm ()\r\n {\r\n return isSpecialForm() && !specialForm().isValue();\r\n }",
"public abstract boolean handlePost(FORM form, BindException errors) throws Exception;",
"public ActionForward unspecified(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n this.setup(mapping,form,request,response);\n \n return mapping.findForward(\"backToGeneExp\");\n }",
"public CompareSkusFormHandler() {\n }",
"@Override\n\tpublic void clearForm() {\n\t\t\n\t}",
"public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}",
"protected Object formBackingObject(HttpServletRequest request) throws ServletException {\r\n \t\t\r\n \t\treturn \"\";\r\n \t}",
"private boolean isFormPost(HttpServletRequest request)\r\n/* 91: */ {\r\n/* 92:118 */ return (request.getContentType() != null) && (request.getContentType().contains(\"application/x-www-form-urlencoded\")) && (\"POST\".equalsIgnoreCase(request.getMethod()));\r\n/* 93: */ }",
"@Override\n\tpublic PageForm formBackingObject(HttpServletRequest request) throws Exception { \n\n \tHttpSession session = request.getSession();\n \tPageForm theForm = (PageForm) super.formBackingObject(request);\n setPageMessage(session, theForm);\n return theForm;\n }",
"@Override\n\tpublic Boolean validate(CitrixDesktopMachineForm f) {\n\t\treturn null;\n\t}",
"FORM createFORM();",
"IFormView getFormView();",
"public void limpiarCamposFormBusqueda() {\n\t}",
"public ActionForward unspecified(ActionMapping mapping, ActionForm form,\r\n HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n return loadAllResponseError(mapping, form, request, response);\r\n }",
"protected void processPopulate(HttpServletRequest request,\n HttpServletResponse response,\n ActionForm form,\n ActionMapping mapping)\n throws ServletException\n {\n if(form != null)\n {\n if(mapping instanceof GTActionMapping)\n { //20030124AH\n if( ((GTActionMapping)mapping).isPopulate() == false )\n {\n return; //Do not pass go. Do not collect $200.\n }\n }\n super.processPopulate(request,response,form,mapping);\n }\n else\n {\n return; //No form to populate\n }\n }",
"java.lang.String getFormName();",
"public void setForm(Form form)\n {\n this.form = form;\n }",
"Form reset();",
"public void setFormless(boolean formless) {\n this.formless = formless;\n }",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"public UserTypeForm() {\n\t\tthis(null);\n\t}",
"public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }",
"public ActionForward unspecified(ActionMapping mapping, ActionForm form,\r\n HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n return displayProcessErp(mapping, form, request, response);\r\n }",
"protected boolean usesFakeFullSubmit()\n {\n return false;\n }",
"void restoreFormState();",
"public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}",
"@Override\n\tprotected void performDefaults() {\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tpe.loadDefault();\n\t\t\t}\n\t\t}\n\t\t// Force a recalculation of my error state.\n\t\tcheckState();\n\t\tsuper.performDefaults();\n\t}",
"private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }",
"public void onValidateState() {\n // Case first time\n if (mNewslettersForm == null) {\n triggerGetNewslettersForm();\n }\n // Case rotate restore the form\n else if(mNewsletterScroll.getChildCount() == 0){\n showDynamicForm(mNewslettersForm);\n }\n // Default, show current form\n else {\n showFragmentContentContainer();\n }\n }",
"public void loadForm() {\n if (!selectedTipo.equals(\"accion\")) {\n this.renderPaginaForm = true;\n } else {\n this.renderPaginaForm = false;\n }\n if (selectedTipo.equals(null) || selectedTipo.equals(\"menu\")) {\n this.renderGrupoForm = false;\n } else {\n this.renderGrupoForm = true;\n }\n populateListaObjetos();\n }",
"@Override\n public void onConsentFormDismissed(@Nullable FormError formError) {\n loadForm(context, activity);\n }",
"@Override\n\tprotected String processSubmit(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\treturn null;\n\t}",
"public ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n return notify(mapping, form, request, response);\r\n }",
"@Test\n\tpublic void Test_NoAccess1() throws Exception {\n\t\t\n\t\tfinal HtmlForm form = (HtmlForm) page.getElementById(\"signInForm1\");\n\t\t\n\t\tform.getInputByName(\"username\").setValueAttribute(\"\");\n\t\tform.getInputByName(\"password\").setValueAttribute(\"\");\t// No Inputs\n\t\t\n\t\tform.getInputByName(\"submit\").click();\n\t\t\n\t\tassertEquals(\"Fab Lab - Anmelden\", page.getTitleText());\n\t\tassertTrue(page.asXml().contains(\"<span wicket:id=\\\"signInPanel\\\" id=\\\"signInPanel\\\">\"));\n\t\t\n\t\tform.getInputByName(\"username\").setValueAttribute(\"jb\");\n\t\tform.getInputByName(\"password\").setValueAttribute(\"xxxxx\");\t// Wrong password!!!\n\t\t\n\t\tform.getInputByName(\"submit\").click();\n\t\t\n\t\tassertEquals(\"Fab Lab - Anmelden\", page.getTitleText());\n\t\tassertTrue(page.asXml().contains(\"<span wicket:id=\\\"signInPanel\\\" id=\\\"signInPanel\\\">\"));\n\t\t\n\t}",
"@Override\r\n\tpublic boolean supports(Class<?> arg0) {\n\t\treturn StudentForm.class.equals(arg0);\r\n\t\t\r\n\t}",
"public void processDefault(MessageForm message) {\n switch (message.code()) {\n }\n }",
"public boolean setFormInput(Object input) {\r\n\t\tboolean overall = false;\r\n\t\tfor( IFormPart part : _parts ) {\r\n\t\t\tif ( part.setFormInput( input ) && !overall ) overall = true;\r\n\t\t}\r\n\t\treturn overall;\r\n\t}",
"@DefaultHandler\n public Resolution form() {\n return new ForwardResolution(MAIN_VIEW);\n }",
"@Override\n public boolean supports(Class<?> clazz) {\n return clazz == ClimbUserForm.class;\n }",
"public String formOverloaded()\r\n {\r\n return formError(\"502 Server overloaded\",\"Try again latter\");\r\n }",
"public final boolean isSpecialForm ()\r\n {\r\n return _value.isSpecialForm();\r\n }",
"@Override\n\tpublic void submitForm(Context ctx) {\n\t\tUser loggedUser = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (loggedUser == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!loggedUser.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\tForm form = ctx.bodyAsClass(Form.class);\n\t\tlog.debug(form);\n\t\tform = fs.submitForm(form);\n\t\tloggedUser.getForms().add(form);\n\t\tlog.debug(\"LoggedUser's Form: \" + loggedUser.getForms());\n\t\t// If loggedUser is a DepartmentHead, form goes straight to BenCo\n\t\tif(loggedUser.getType().equals(UserType.DEPARTMENT_HEAD)) {\n\t\t\tlog.debug(\"LoggedUser is a Department Head\");\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tfs.updateForm(form);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t\tus.submitForm(loggedUser);\n\t\t\tctx.json(form);\n\t\t\treturn;\n\t\t}\n\t\t// If FormSubmitter's supervisor is a DepartmentHead, supervisor approval is automatically true\n\t\telse if(loggedUser.getDepartmentHead().equals(loggedUser.getSupervisor())) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tfs.updateForm(form);\n\t\t}\n\t\tUser supervisor = us.getUserByName(loggedUser.getSupervisor());\n\t\tsupervisor.getAwaitingApproval().add(form);\n\t\tus.updateUser(supervisor);\n\t\tlog.debug(loggedUser);\n\t\tus.submitForm(loggedUser);\n\t\tctx.json(form);\n\t}",
"public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)\r\n {\r\n super.processFormRequest(pageContext, webBean);\r\n }",
"public String getForm() {\r\n\t\treturn form;\r\n\t}",
"private void loadForm() {\n CodingProxy icd9 = problem.getIcd9Code();\n \n if (icd9 != null) {\n txtICD.setText(icd9.getProxiedObject().getCode());\n }\n \n String narr = problem.getProviderNarrative();\n \n if (narr == null) {\n narr = icd9 == null ? \"\" : icd9.getProxiedObject().getDisplay();\n }\n \n String probId = problem.getNumberCode();\n \n if (probId == null || probId.isEmpty()) {\n probId = getBroker().callRPC(\"BGOPROB NEXTID\", PatientContext.getActivePatient().getIdElement().getIdPart());\n }\n \n String pcs[] = probId.split(\"\\\\-\", 2);\n lblPrefix.setValue(pcs[0] + \" - \");\n txtID.setValue(pcs.length < 2 ? \"\" : pcs[1]);\n txtNarrative.setText(narr);\n datOnset.setValue(problem.getOnsetDate());\n \n if (\"P\".equals(problem.getProblemClass())) {\n radPersonal.setSelected(true);\n } else if (\"F\".equals(problem.getProblemClass())) {\n radFamily.setSelected(true);\n } else if (\"I\".equals(problem.getStatus())) {\n radInactive.setSelected(true);\n } else {\n radActive.setSelected(true);\n }\n \n int priority = NumberUtils.toInt(problem.getPriority());\n cboPriority.setSelectedIndex(priority < 0 || priority > 5 ? 0 : priority);\n loadNotes();\n }",
"public String formMethod()\r\n { \r\n return formError(\"303 Method unseported\",\"Method unseported\");\r\n }",
"public static void markAsFormPage(HttpServletRequest request){\n\t\trequest.setAttribute(FORM_PAGE_ATTR, Boolean.TRUE);\n\t}",
"public FormSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = FormPackage.eINSTANCE;\n\t\t}\n\t}",
"abstract public void dispatch(final String serializedForm);",
"@Test\n public void conditionalOTPDefaultForce() {\n Map<String, String> config = new HashMap<>();\n config.put(DEFAULT_OTP_OUTCOME, FORCE);\n \n setConditionalOTPForm(config);\n \n //test OTP is forced\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }",
"default boolean isSpecial() { return false; }",
"@SkipValidation\n public String currencySearchForm() {\n return SUCCESS;\n }",
"public static Map<String, String> getAvailableForms(String... varargs) {\n\t\t// setting the default values when arguments' values are omitted\n\t\tString slideRef = varargs.length > 0 ? varargs[0] : null;\n\t\tString sessionID = varargs.length > 0 ? varargs[1] : null;\n\t\t// See what forms are available to fill out, either system-wide (leave slideref\n\t\t// to None), or for a particular slide\n\t\tsessionID = sessionId(sessionID);\n\t\tString url;\n\t\tMap<String, String> forms = new HashMap<>();\n\t\tif (slideRef != null) {\n\t\t\tif (slideRef.startsWith(\"/\")) {\n\t\t\t\tslideRef = slideRef.substring(1);\n\t\t\t}\n\t\t\tString dir = FilenameUtils.getFullPath(slideRef).substring(0,\n\t\t\t\t\tFilenameUtils.getFullPath(slideRef).length() - 1);\n\t\t\turl = apiUrl(sessionID, false) + \"GetForms?sessionID=\" + PMA.pmaQ(sessionID) + \"&path=\" + PMA.pmaQ(dir);\n\t\t} else {\n\t\t\turl = apiUrl(sessionID, false) + \"GetForms?sessionID=\" + PMA.pmaQ(sessionID);\n\t\t}\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\tif (jsonString != null && jsonString.length() > 0) {\n\t\t\t\tif (PMA.isJSONObject(jsonString)) {\n\t\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\t\tif (jsonResponse.has(\"Code\")) {\n\t\t\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\t\t\tPMA.logger.severe(\"getAvailableForms on \" + slideRef + \" resulted in: \"\n\t\t\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that slideRef is case sensitive!)\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthrow new Exception(\"getAvailableForms on \" + slideRef + \" resulted in: \"\n\t\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that slideRef is case sensitive!)\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tforms = null;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJSONArray jsonResponse = PMA.getJSONArrayResponse(jsonString);\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\t\tfor (int i = 0; i < jsonResponse.length(); i++) {\n\t\t\t\t\t\tforms.put(jsonResponse.optJSONObject(i).get(\"Key\").toString(),\n\t\t\t\t\t\t\t\tjsonResponse.optJSONObject(i).getString(\"Value\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tforms = null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\treturn forms;\n\t}",
"public abstract Collection<Pair<String,String>> getAllForms();",
"@Override\n\tprotected BaseProcesoForm devuelveFormProceso() throws Exception {\n\t\tProcesoBASLoggerForm objForm = new ProcesoBASLoggerForm();\n\t\treturn objForm;\n\t}",
"public Form getUpdateForm() throws PublicationTemplateException;",
"@Override\n public View checkContentValidation() {\n return null;\n }",
"@Override\n public View checkContentValidation() {\n return null;\n }",
"public abstract void\n bypassValidation_();"
]
| [
"0.6364229",
"0.6200705",
"0.6148092",
"0.58784413",
"0.57795",
"0.57270896",
"0.5713734",
"0.57029223",
"0.56671816",
"0.5660397",
"0.562059",
"0.556478",
"0.55629176",
"0.55532503",
"0.5533295",
"0.5521263",
"0.5490778",
"0.54640526",
"0.54555255",
"0.5439958",
"0.54321605",
"0.5430928",
"0.5423446",
"0.5415911",
"0.5415911",
"0.5415602",
"0.53955275",
"0.5392574",
"0.5371498",
"0.5365394",
"0.53623813",
"0.53581256",
"0.5351735",
"0.53371674",
"0.5319063",
"0.52652043",
"0.5238697",
"0.5224337",
"0.52189237",
"0.5176922",
"0.5174981",
"0.51749194",
"0.51730317",
"0.5163221",
"0.51629186",
"0.5144697",
"0.51403177",
"0.5138629",
"0.5135328",
"0.5122363",
"0.5121025",
"0.5105206",
"0.5087929",
"0.507795",
"0.50676084",
"0.50605416",
"0.50506157",
"0.50393146",
"0.5036947",
"0.50363046",
"0.50274134",
"0.50112873",
"0.5008717",
"0.4998414",
"0.4989563",
"0.49780032",
"0.4975154",
"0.49718088",
"0.49663088",
"0.49641797",
"0.49622092",
"0.49559486",
"0.49491125",
"0.49458933",
"0.49371696",
"0.493163",
"0.4929821",
"0.49222922",
"0.49204364",
"0.49196228",
"0.49181488",
"0.49179488",
"0.49060395",
"0.4901642",
"0.49008986",
"0.4898932",
"0.48985478",
"0.48975456",
"0.4897359",
"0.48959947",
"0.4893399",
"0.4891537",
"0.4891223",
"0.4886051",
"0.48707527",
"0.48695403",
"0.48693416",
"0.48688924",
"0.48643288",
"0.48643288",
"0.4861406"
]
| 0.0 | -1 |
TODO: at some point this should refer to the actual resource address | @Override
public Set<String> getReadOnlyDMRNames(String resourceAddress, List<String> formItemNames, SecurityContext securityContext) {
Set<String> readOnly = new HashSet<String>();
for(String item : formItemNames)
{
if(!securityContext.getAttributeWritePriviledge(item).isGranted())
readOnly.add(item);
}
return readOnly;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String resourceAddress(int augID) {\n\t\treturn Main.MODID + \":skills/novice/Rejuvenate.png\";\r\n\t}",
"private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}",
"public abstract String getResUri();",
"@Override\r\n\tpublic void updateResourceInformation() {\n\t}",
"@Override\n\tprotected String getFileArress() {\n\t\treturn fileAddress;\n\t}",
"@Override\n\tpublic void updateResourceInformation() {\n\t}",
"@Override\n protected PipeResourceAddress newResourceAddress0(String original, String location) {\n\n String pipeName = URIUtils.getAuthority(location);\n String pathName = URIUtils.getPath(location);\n if (pipeName == null) {\n throw new IllegalArgumentException(String.format(\"URI %s missing pipe name\", location));\n }\n if (pathName != null && !pathName.isEmpty()) {\n throw new IllegalArgumentException(String.format(PIPE_PATH_ERROR_MESSAGE, pipeName, pipeName, pathName));\n }\n\n URI uriLocation = URI.create(location);\n return new PipeResourceAddress(this, original, uriLocation);\n\n }",
"@Override\n public boolean isAResource() { return true; }",
"Network_Resource createNetwork_Resource();",
"protected URI getResourceURI(XCapResourceId resourceId)\n {\n try\n {\n return new URI(uri.toString() + \"/\" + resourceId);\n }\n catch (URISyntaxException e)\n {\n throw new IllegalArgumentException(\n \"Invalid XCAP resource identifier\", e);\n }\n }",
"public Resource getTargetResource();",
"java.lang.String getResourceUri();",
"protected String getResourceURL(String resourceUri) {\r\n\t\tlogger.info(\"getResourceURL - entry: {}\", resourceUri);\r\n\t\tString resourceURL = getModelURL() + \"/\" + getPath(resourceUri);\r\n\t\tlogger.info(\"getResourceURL - exit: {}\", resourceURL);\r\n\t\treturn resourceURL;\r\n\t}",
"String getIPGeolocationCityEmbeddedResource();",
"public String getSourceResource() {\r\n\t\treturn requestSource;\r\n\t}",
"public AbstractResource resource()\r\n {\r\n\t return this.resource_state;\r\n }",
"public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }",
"@Override\n protected URL\n findResource\n (\n String rname\n )\n {\n LogMgr.getInstance().log\n (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n \"Resource name (\" + rname + \")\");\n\n if(pResources != null) {\n if(pResources.containsKey(rname)) {\n\tPath resourcePath = new Path(pResourceRootPath, rname);\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource path (\" + resourcePath + \")\");\n\n\tFile resourceFile = resourcePath.toFile();\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource file (\" + resourceFile + \") exists (\" + resourceFile.exists() + \")\");\n\n\tif(!resourceFile.exists())\n\t return null;\n\n\tURI resourceURI = resourceFile.toURI();\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource URI (\" + resourceURI + \")\");\n\n\ttry {\n\t URL resourceURL = resourceURI.toURL();\n\n\t LogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource URL (\" + resourceURL + \")\");\n\n\t return resourceURL;\n\t}\n\tcatch(MalformedURLException ex) {\n\t LogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Warning, \n\t \"Error constructing URL from (\" + rname + \")!\");\n\t}\n }\n }\n\n return null;\n }",
"private Resource() {}",
"Resource getResource();",
"private MyResource() {\n System.out.printf(\"[%s] has been created \\n\", MyResource.class.getSimpleName());\n }",
"protected void resourceSet(String resource)\r\n {\r\n // nothing to do\r\n }",
"InformationResource createInformationResource();",
"public abstract IResource getResource();",
"public String getResourceUri() {\n return resourceUri;\n }",
"private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}",
"public String getResourceLink() {\n\t\treturn resourceLink;\n\t}",
"Resource createResource();",
"protected String getResourceName() {\n\t\treturn resourceName;\n\t}",
"public void testGetResource() throws Exception {\n if(DEBUG_FLAG) System.out.println(\"entered testGetResource\");\n String ident = \"ivo://org.test/org.astrogrid.registry.RegistryService\"; \n Document doc = rs.getResourceByIdentifier(ident);\n assertNotNull(doc);\n if(DEBUG_FLAG) System.out.println(\"received in junit test = \" + XMLUtils.DocumentToString(doc));\n System.out.println(\"exiting testGetResource\");\n }",
"public String resource_name () throws BaseException {\n throw new BaseException(\"Not implemented\");\n }",
"private void postProcessResourceConfiguration(DMRResource resource) {\n if (resource.getParent() == null) {\n final String IP_ADDRESSES_PROPERTY_NAME = \"Bound Address\";\n DMRResourceConfigurationPropertyInstance adrProp = null;\n for (DMRResourceConfigurationPropertyInstance p : resource.getResourceConfigurationProperties()) {\n if (IP_ADDRESSES_PROPERTY_NAME.equals(p.getName().getNameString())) {\n adrProp = p;\n break;\n }\n }\n if (adrProp != null) {\n String displayAddresses = null;\n try {\n // Replaces 0.0.0.0 server address with the list of addresses received from\n // InetAddress.getByName(String) where the argument of getByName(String) is the host the agent\n // uses to query the AS'es DMR.\n InetAddress dmrAddr = InetAddress.getByName(adrProp.getValue());\n if (dmrAddr.isAnyLocalAddress()) {\n String host = null;\n ManagedServer server = inventoryManager.getManagedServer();\n if (server instanceof RemoteDMRManagedServer) {\n RemoteDMRManagedServer remoteServer = (RemoteDMRManagedServer) server;\n host = remoteServer.getHost();\n } else if (server instanceof LocalDMRManagedServer) {\n host = InetAddress.getLocalHost().getCanonicalHostName();\n } else {\n throw new IllegalStateException(\"Unexpected type of managed server [\" + server.getClass()\n + \"]. Please report this bug.\");\n }\n InetAddress[] resolvedAddresses = InetAddress.getAllByName(host);\n displayAddresses = Stream.of(resolvedAddresses).map(a -> a.getHostAddress())\n .collect(Collectors.joining(\", \"));\n adrProp.setValue(displayAddresses);\n }\n } catch (UnknownHostException e) {\n log.warnf(e, \"Could not parse IP address [%s]\", adrProp.getValue());\n }\n }\n }\n\n return;\n }",
"Resource getResource() {\n\t\treturn resource;\n\t}",
"private String getActionAddress() \n\t{\n\t\treturn pageContext.getRequest().getParameter(ACTION_ADDRESS_PARAMETER);\n\t}",
"private String getUrlPlanet() {\n return this.url + this.resource;\n }",
"com.yandex.ydb.rate_limiter.Resource getResource();",
"private AdvertServiceEntryResource getResource() throws RemoteException\n {\n\tObject resource = null;\n\ttry\n\t {\n\t\tresource = ResourceContext.getResourceContext().getResource();\n\t }\n\tcatch(NoSuchResourceException e)\n\t {\n\t\tthrow new RemoteException(\"Specified resource does not exist\", e);\n\t }\n\tcatch(ResourceContextException e)\n\t {\n\t\tthrow new RemoteException(\"Error during resource lookup\", e);\n\t }\n\tcatch(Exception e)\n\t {\n\t\tthrow new RemoteException(\"\", e);\n\t }\n\t\n\tAdvertServiceEntryResource entryResource = (AdvertServiceEntryResource) resource;\n\treturn entryResource;\n }",
"public URN getResourceURN()\r\n {\r\n return resourceURN;\r\n }",
"private URI getRefinedResourceURI(Resource resource, String newName) {\n\t\tURI newUri = resource.getURI();\n\t\tString fileExtension = newUri.fileExtension();\n\t\tnewUri = newUri.trimSegments(1).appendSegment(newName).appendFileExtension(fileExtension);\n\t\treturn newUri; \n\t}",
"private URL getResourceAsUrl(final String path) throws IOException {\n\t\treturn appContext.getResource(path).getURL();\n\t}",
"public interface Resource { \n /**\n * @return the time, in <code>millis</code>, at which this resource was\n * last modified.\n */\n public long lastModified();\n\n /**\n * @return the URI that this resource corresponds to.\n */\n public String getURI();\n\n /**\n * @return the <code>InputStream</code> corresponding to this resource.\n * @throws IOException\n */\n public InputStream getInputStream() throws IOException;\n \n \n /**\n * @return the <code>Resource</code> corresponding to the given relative URI.\n * @param uri a URI.\n * @throws IOException\n */ \n public Resource getRelative(String uri) throws IOException;\n \n}",
"private JPPFResourceWrapper loadResourceData0(Map<String, Object> map, boolean asResource) throws Exception\n\t{\n\t\tif (debugEnabled) log.debug(\"loading remote definition for resource [\" + map.get(\"name\") + \"], requestUuid = \" + requestUuid);\n\t\tJPPFResourceWrapper resource = loadRemoteData(map, false);\n\t\tif (debugEnabled) log.debug(\"remote definition for resource [\" + map.get(\"name\") + \"] \"+ (resource.getDefinition()==null ? \"not \" : \"\") + \"found\");\n\t\treturn resource;\n\t}",
"public String getResourceUrl() {\n return this.resourceUrl;\n }",
"ResourceAPI createResourceAPI();",
"Device_Resource createDevice_Resource();",
"public String getUserURI() {\n return host + userResource;\n }",
"public String getPhysicalURI()\n {\n return physicalURI;\n }",
"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}",
"public int getResource() throws java.rmi.RemoteException;",
"public ResourceInfo getResource() {\n\t\treturn resource;\n\t}",
"public interface ResourceDefinition\n{\n\n\t/**\n\t * Get the native path in the repository for the resource\n\t * \n\t * @return\n\t */\n\tString getRepositoryPath();\n\n\t/**\n\t * Get the external path of the passed in path releative to this resource\n\t * \n\t * @param path\n\t * @return\n\t */\n\tString getExternalPath(String path);\n\n\t/**\n\t * Get the repository path, relative to this resource\n\t * \n\t * @param name\n\t * @return\n\t */\n\tString getRepositoryPath(String name);\n\n\t/**\n\t * Does the path represent a resource that is private for the current\n\t * request This may relate to a logged in user or context. This will control\n\t * the caching headers in the http response.\n\t * \n\t * @return\n\t */\n\tboolean isPrivate();\n\n\t/**\n\t * @return\n\t */\n\tString getFunctionDefinition();\n\n\t/**\n\t * @return\n\t */\n\tint getDepth();\n\n}",
"protected Resource getResource() {\n return resource;\n }",
"protected abstract String getBaseEndpoint();",
"protected abstract T getBlankResource();",
"Service_Resource createService_Resource();",
"String getIPGeolocationCountryEmbeddedResource();",
"public interface ResourceLocation\n{\n\t/**\n\t * Create a new location that represents this resource but with a\n\t * different extension.\n\t *\n\t * @param newExtension\n\t * @return\n\t */\n\tResourceLocation withExtension(String newExtension);\n\n\t/**\n\t * Resolve a path relative to this location.\n\t *\n\t * @param path\n\t * @return\n\t */\n\tResourceLocation resolve(String path);\n\n\t/**\n\t * Get the name of this resource.\n\t *\n\t * @return\n\t */\n\tString getName();\n}",
"private JnlpResource locateResource( DownloadRequest dreq )\n throws IOException, ErrorResponseException\n {\n if ( dreq.getVersion() == null )\n {\n return handleBasicDownload( dreq );\n }\n else\n {\n return handleVersionRequest( dreq );\n }\n }",
"DrbdResource getDrbdResource() {\n return (DrbdResource) getResource();\n }",
"String getResourceName();",
"private ObjectNode ProcessUri(Resource resource){\n //handle uri\n String uri = resource.getURI();\n\n ObjectNode json_object = mapper.createObjectNode();\n\n json_object.put(ArangoAttributes.TYPE, RdfObjectTypes.IRI);\n json_object.put(ArangoAttributes.VALUE, uri);\n\n return json_object;\n }",
"public String getResourceId();",
"public interface ApplicationResourceUsage extends ResourceUsage\n{\n}",
"public Resource getTargetResource() {\n Resource target = (Resource) getResource();\n edu.hkust.clap.monitor.Monitor.loopBegin(626);\nwhile (target instanceof ResourceFrame) { \nedu.hkust.clap.monitor.Monitor.loopInc(626);\n{\n target = ((ResourceFrame) target).getResource();\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(626);\n\n return target;\n }",
"public String resourceId() {\n return this.resourceId;\n }",
"public String resourceId() {\n return this.resourceId;\n }",
"public String resourceId() {\n return this.resourceId;\n }",
"public String resourceId() {\n return this.resourceId;\n }",
"public String resourceId() {\n return this.resourceId;\n }",
"public SourceInterestMapResource() {\n }",
"public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}",
"public Object makeResource();",
"public void testADDWithResource() throws Exception {\n String adress =\"http://semantag.org/occ\";\n doAdd(null, adress);\n }",
"private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}",
"public void testResourceURI() throws Exception {\n testResourceURI(\"RELS-EXT\");\n testResourceURI(\"RELS-INT\");\n }",
"public String getResourceName() {\n return resourceName;\n }",
"public void setResource(URI resource) {\n this.resource = resource;\n }",
"@Override\n\tpublic void onResourceDelivered(ResourceResponse arg0) {\n\t\t\n\t}",
"public interface IResourceSource\n{\n /**\n * Get resource location based on resource name.\n *\n * @param name Name of resource to be searched\n * @return URL of resource\n */\n public URL getResourceLocation( String name );\n\n /**\n * Get resource locations based on resource name.\n *\n * @param name Name of resources to be searched\n * @return Enumeration of URLs of resources\n */\n public Enumeration getResourceLocations( String name );\n\n /**\n * Get resource path this resource source references. Each entry including the last must be\n * terminated with a semicolon.\n *\n * @return Resource path this resource source references\n */\n public String getResourcePath();\n}",
"public abstract T getCreatedResource();",
"public String getResourceUrl() {\n\t\treturn resourceUrl;\n\t}",
"int getResourceId();",
"On_Device_Resource createOn_Device_Resource();",
"abstract String getUri();",
"public IResource getResource();",
"public String getResourceName();",
"public String getImageResource() {\n \t\t// if (isWindows)\n \t\t// return \"/\" + new File(imageResource).getPath();\n \t\t// else\n \t\treturn imageResource;\n \t}",
"@JsonIgnore\n public String getResource() {\n return this.resource;\n }",
"private static String getCanonicalizedResourceName(Reference resourceRef) {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(resourceRef.getPath());\r\n \r\n Form query = resourceRef.getQueryAsForm();\r\n if (query.getFirst(\"acl\", true) != null) {\r\n sb.append(\"?acl\");\r\n } else if (query.getFirst(\"torrent\", true) != null) {\r\n sb.append(\"?torrent\");\r\n }\r\n \r\n return sb.toString();\r\n }",
"String getAddress( String filename, String generator);",
"public Resource getResource(Request request);",
"@Override\n \tpublic Representation getResource() throws Exception {\n \t\tJsonRepresentation result = null;\n \t\t// Rcupre l'identifiant unique de la ressource demande.\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\tSystem.out.println(srcId);\n \t\t// Rcupration des sources de l'intervention\n \t\tList<Source> sources = Interventions.getInstance().getIntervention(interId).getSources();\n \n \t\tSource source = null;\n \t\t\n \t\t// Si on demande un source prcis\n \t\tif (srcId != null) {\n \t\t\t// Recherche du source demand\n \t\t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\t\tsource = sources.get(i);\n \t\t\t\t}\n \t\t\t}\n \t\t\t// Si le source n'est pas trouv\n \t\t\tif (source == null) {\n \t\t\t\tresult = null;\n \t\t\t\tgetResponse().setStatus(Status.CLIENT_ERROR_NOT_ACCEPTABLE);\n \t\t\t} else {\n \t\t\t\tresult = new JsonRepresentation(source.toJSON());\n \t\t\t}\n \t\t// Si on veut tous les sources\n \t\t} else if (srcId == null) {\n \t\t\t\n \t\t\tJSONArray jsonAr = new JSONArray(); //Cration d'une liste Json\n \t\t\tfor(int i=0; i< sources.size();i++){\n\t\t\t\tjsonAr.put(sources.get(i).toJSON()); // On ajoute un jsonObject contenant le source dans le jsonArray\n \t\t\t}\n \t\t\t\n \t\t\tresult = new JsonRepresentation(jsonAr); // On cre la reprsentation de la liste\n \t\t}\n \n \t\t// Retourne la reprsentation, le code status indique au client si elle est valide\n \t\treturn result;\n \t}",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"Ressource createRessource();",
"@Override\n\tpublic IResource getCorrespondingResource() {\n\t\treturn getUnderlyingResource();\n\t}",
"String getResourceID();",
"public String getResourceId() {\n return this.resourceId;\n }",
"public String getResourceId() {\n return this.resourceId;\n }",
"public String getResourceName() {\n return null;\n }",
"@Path(\"/get7\")\n\t@GET\n\tpublic String get7() {\n\t\treturn (\"In get7 - showing URI of this request using UriInfo - \" + uriInfo.getAbsolutePath().toASCIIString());\n\t}",
"public String getResourceurl() {\n return resourceurl;\n }"
]
| [
"0.64338803",
"0.6126641",
"0.5885472",
"0.58752614",
"0.58677745",
"0.58651",
"0.58557105",
"0.5819914",
"0.58177656",
"0.5773959",
"0.57380956",
"0.573775",
"0.5735888",
"0.56998104",
"0.56925905",
"0.56812567",
"0.5677524",
"0.5650092",
"0.5646529",
"0.56096834",
"0.558258",
"0.55769473",
"0.5573589",
"0.55718726",
"0.5565419",
"0.55614936",
"0.55585545",
"0.55442137",
"0.5542384",
"0.5539441",
"0.55376863",
"0.5531383",
"0.55192024",
"0.54994196",
"0.5481111",
"0.54789025",
"0.5478238",
"0.547596",
"0.5475939",
"0.5463856",
"0.5462575",
"0.5455715",
"0.5454631",
"0.545099",
"0.5439314",
"0.5434052",
"0.54321206",
"0.54118675",
"0.5411325",
"0.53953093",
"0.53867555",
"0.5383428",
"0.5381098",
"0.5374571",
"0.53661597",
"0.5360142",
"0.53600204",
"0.5359567",
"0.53560036",
"0.53552943",
"0.53511256",
"0.53506774",
"0.5344679",
"0.5344415",
"0.5343517",
"0.5343517",
"0.5343517",
"0.5343517",
"0.5343517",
"0.5337263",
"0.53332436",
"0.5328643",
"0.5327156",
"0.53260386",
"0.53226155",
"0.5322099",
"0.53209275",
"0.53171265",
"0.5306436",
"0.53053606",
"0.53036886",
"0.53028",
"0.53027415",
"0.5294818",
"0.52891165",
"0.5288901",
"0.5282561",
"0.5281416",
"0.5281012",
"0.5262398",
"0.52603966",
"0.5254376",
"0.52477163",
"0.52447295",
"0.52432066",
"0.52340865",
"0.52334577",
"0.52334577",
"0.5232607",
"0.5232352",
"0.5231076"
]
| 0.0 | -1 |
Constructs a new Colour test case with the given name. | public ColourTest(String name)
{
super(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ColorClass( String name) {\n this(name, false);\n }",
"public Fruit(String color, String name) {\r\n\t\tthis.color = color;\r\n\t\tthis.name = name;\r\n\t}",
"public TestCase(String name) {\n\t\tsetName(name);\n\t}",
"public SchemeTest (String name)\n {\n super (name);\n /*\n * This constructor should not be modified. Any initialization code\n * should be placed in the setUp() method instead.\n */\n }",
"public GuidanceTest(String name) {\n\t\tsuper(name);\n\t}",
"private Complexity(String name, String abbrev, Color color) {\n this.name = name;\n this.abbrev = abbrev;\n this.defaultColor = color;\n }",
"public Seagull(String name){\n this.name = name;\n this.color = SWT.COLOR_DARK_BLUE;\n }",
"KeyColor(String name){\n this.name = name;\n }",
"public Team(String name, Color color) {\n\t\tthis.teamName = name;\n\t\tthis.color = color;\n\t}",
"public ColorClass(String name, boolean ordered) {\n this (name, new Interval(2) , ordered);\n }",
"public GridTest(String name) {\n\t\tsuper(name);\n\t}",
"public TestCase(String name) {\n fName= name;\n }",
"public LTest(String name) {\r\n\t\tsuper(name);\r\n\t}",
"public SmokeDetectorTest(String name) {\n\t\tsuper(name);\n\t}",
"public Shape(String color) { \n System.out.println(\"Shape constructor called\"); \n this.color = color; \n }",
"public PlanillaTest(String name) {\n\t\tsuper(name);\n\t}",
"Fruit(String name){\n this.name = name;\n this.color = null;\n }",
"public ColorClass (String name, Interval interval) {\n this(name, interval, false);\n }",
"public Task(String name, String color){\n this.name = name;\n this.color = color;\n }",
"public LightSensorTest(String name) {\n\t\tsuper(name);\n\t}",
"public RDFPropertyTest(String name) {\n\t\tsuper(name);\n\t}",
"public PlayerClass(int color, String name){\n\t\tthis.color=color;\n\t\tthis.name=name;\n\t\tpawns = new PawnClass[4];\n\t\tdiceTossed = false;\n\t}",
"BasicShader( String name, Color baseColor ) {\n name_ = name;\n baseColor_ = baseColor;\n }",
"public SampleJUnit(String name) {\r\n\t\tsuper(name);\r\n\t}",
"public PropertyInstanceTest(String name) {\n\t\tsuper(name);\n\t}",
"public Team(String name) {\n\t\tthis(name, Color.BLACK);\n\t}",
"public AxiomTest(String name) {\n\t\tsuper(name);\n\t}",
"@Test\n public void testGetColorWhite() {\n System.out.println(\"getColorWhite\");\n\n Player instance = new Player(PlayerColor.WHITE, \"\");\n PlayerColor expResult = PlayerColor.WHITE;\n\n PlayerColor result = instance.getColor();\n\n assertEquals(expResult, result);\n\n }",
"protected CylinderShade(String name) {\n\tsuper(name);\n }",
"@LargeTest\n public void testColorCube() {\n TestAction ta = new TestAction(TestName.COLOR_CUBE);\n runTest(ta, TestName.COLOR_CUBE.name());\n }",
"@Test\n\tpublic void constructortest() {\n\t\tMainDish dessertTest = new MainDish(\"quiche\");\n\t\tassertTrue(dessertTest.getName().equals(\"quiche\"));\n\t}",
"public ColorClass(String name, Interval[] intervals) {\n this(name, intervals, false);\n }",
"public RJBTest(String name) {\r\n\t\tsuper(name);\r\n\t}",
"public Player(String name) {\r\n\t\tthis.name=name;\r\n\t\tinitializeGameboard();\r\n\t\tlastRedNumber=2; \r\n\t\tlastYellowNumber=2;\r\n\t\tlastGreenNumber=12;\r\n\t\tlastBlueNumber=12;\r\n\t\tnegativePoints=0;\r\n\t}",
"public static final Color get(String name) {\n try {\n return cc.stringToColor(name); \n } catch (ColorConverter.ColorConversionException x) {\n System.err.println(x.getMessage()+\" defaulting to 'white'.\");\n return Color.white;\n } \n }",
"public static Color name2color(String name) {\n Color ans = name2color.get(name);\n if (ans!=null) return ans;\n else if (name.equals(\"magic\")) ans=Color.WHITE;\n else if (name.equals(\"palevioletred\")) ans=new Color(222,113,148);\n else if (name.equals(\"red\")) ans=new Color(255,0,0);\n else if (name.equals(\"salmon\")) ans=new Color(255,130,115);\n else if (name.equals(\"magenta\")) ans=new Color(255,0,255);\n else if (name.equals(\"limegreen\")) ans=new Color(49,207,49);\n else if (name.equals(\"green2\")) ans=new Color(0,239,0);\n else if (name.equals(\"darkolivegreen2\")) ans=new Color(189,239,107);\n else if (name.equals(\"chartreuse2\")) ans=new Color(115,239,0);\n else if (name.equals(\"gold\")) ans=new Color(255,215,0);\n else if (name.equals(\"yellow\")) ans=new Color(255,255,0);\n else if (name.equals(\"lightgoldenrod\")) ans=new Color(239,223,132);\n else if (name.equals(\"cornflowerblue\")) ans=new Color(99,150,239);\n else if (name.equals(\"blue\")) ans=new Color(0,0,255);\n else if (name.equals(\"cadetblue\")) ans=new Color(90,158,165);\n else if (name.equals(\"cyan\")) ans=new Color(0,255,255);\n else if (name.equals(\"lightgray\")) ans=new Color(214,214,214);\n else if (name.equals(\"white\")) ans=Color.WHITE;\n else ans=Color.BLACK;\n name2color.put(name,ans);\n return ans;\n }",
"public Fruit()\n {\n setColor(Color.GREEN);\n }",
"public Creator(String score_name) {\n this.score_name = score_name;\n\n this.bukkitScoreboard = Bukkit.getScoreboardManager().getNewScoreboard();\n this.obj = this.bukkitScoreboard.registerNewObjective(randomString(), \"dummy\", \"test\");\n\n this.obj.setDisplaySlot(DisplaySlot.SIDEBAR);\n this.obj.setDisplayName(color(score_name));\n }",
"public Fruit(String name, String color, double aveHarvestTime, String timeUnit){\r\n\t\tthis.name = name;\r\n\t\tthis.color = color;\r\n\t\tthis.averageHarvestTime = aveHarvestTime;\r\n\t\tthis.timeUnit = timeUnit;\r\n\t}",
"public NodeTest(String name) {\n\t\tsuper(name);\n\t}",
"public PresentationTest(String name) {\n\t\tsuper(name);\n\t}",
"@Test\n public void testGetName() {\n System.out.println(\"ColorIOProviderNGTest.testGetName\");\n assertEquals(instance.getName(), ColorAttributeDescription.ATTRIBUTE_NAME);\n }",
"public void makeRandColor(){}",
"public Cook(String name) {\n\t\tthis.name = name;\n\t}",
"@Test\n public void testGetColorBlack() {\n System.out.println(\"getColorBlack\");\n\n Player instance = new Player(PlayerColor.BLACK, \"\");\n PlayerColor expResult = PlayerColor.BLACK;\n\n PlayerColor result = instance.getColor();\n\n assertEquals(expResult, result);\n\n }",
"public Biome(String name, Color color) {\n\t\tthis.name = name;\n\t\tthis.color = color;\n\t\tthis.isHeightDependant = false;\n\t}",
"public TestCase(String name)\r\n {\r\n super(name);\r\n resetIO();\r\n }",
"public Knight(String color){\n super(\"Knight\",color);\n }",
"public static Color create(Scalar s, ColorSpace colorSpace) {\n Class<? extends Color> colorClass = colorSpace.getColorClass();\n\n try {\n return colorClass.getConstructor(Scalar.class).newInstance(s);\n } catch (Exception ignored) {\n throw new IllegalArgumentException(\"Cannot create new color instance.\");\n }\n }",
"public JMenuItem colorItem(final String theName) {\n \n final JMenuItem color = new JMenuItem(theName);\n color.setMnemonic(KeyEvent.VK_C);\n final ColorIcon icon = new ColorIcon(10);\n color.setIcon(icon);\n color.addActionListener(this);\n return color;\n }",
"TestResult(String name) {\r\n this.name = name;\r\n checkResults = new ArrayList();\r\n }",
"public uCoursesTest(String name) {\n\t\tsuper(name);\n\t}",
"public void testCOLOUR1() throws Exception {\n\t\tObject retval = execLexer(\"COLOUR\", 120, \"gules\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"COLOUR\", expecting, actual);\n\t}",
"@Test //TEST TEN\n void testLowercaseBlueOtterColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"blue otter\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: blue otter\";\n assertEquals(expected, rabbit_color.toString());\n }",
"@Test //TEST FOUR\n void testLowercaseBlackColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"black\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: black\";\n assertEquals(expected, rabbit_color.toString());\n }",
"public Pencil(String name) {\n this.name = name;\n }",
"@Test //TEST TWELVE\n void testLowercaseBlueSteelColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"blue steel\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: blue steel\";\n assertEquals(expected, rabbit_color.toString());\n }",
"public FSMTest(String name) {\n\t\tsuper(name);\n\t}",
"private HepRepColor() {\n }",
"public Pawn(String color){\r\n this.color=color; \r\n }",
"public ColorClass (int ide, boolean ordered) {\n this(\"C_\"+ide, ordered);\n }",
"public ULTest(String name) {\n\t\tsuper(name);\n\t}",
"public ActionEditorTest(String name) {\n super(name);\n }",
"public TreeTest(String name) {\r\n super(name);\r\n }",
"@Test //TEST SIX\n void testLowercaseBlackOtterColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"black otter\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: black otter\";\n assertEquals(expected, rabbit_color.toString());\n }",
"public Piezas(String color) {\r\n this.color = color;\r\n }",
"public User(String username, int colour){\n this.userName = username;\n this.colour = colour;\n }",
"public static Checking createChecking(String name) {\r\n return new Checking(name);\r\n }",
"public Color newColor(){\n\t\tRandom random = new Random();\n\n\t\tint red;\n\t\tint green;\n\t\tint blue;\n\n\t\tint counter = 0;\n\n\t\tdo {\n\t\t\tred = random.nextInt(255);\n\t\t\tgreen = random.nextInt(255);\n\t\t\tblue = random.nextInt(255);\n\t\t\tcounter++;\n\t\t\t\n\t\t}while(red + green + blue < 400 && counter < 20);\n\n\t\treturn Color.rgb(red, green, blue,1);\n\t}",
"@Test //TEST ELEVEN\n void testUppercaseBlueSteelColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Blue Steel\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Blue Steel\";\n assertEquals(expected, rabbit_color.toString());\n }",
"@Test //TEST EIGHT\n void testLowercaseBlueColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"blue\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: blue\";\n assertEquals(expected, rabbit_color.toString());\n }",
"private ColorWithConstructor() {\n\t\tSystem.out.println(\"Constructor called for : \" + this.toString());\n\t}",
"public ColorClass (int ide, Interval interval, boolean ordered) {\n this (\"C\"+ide, interval, ordered);\n }",
"@Test //TEST THREE\n void testUppercaseBlackColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Black\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Black\";\n assertEquals(expected, rabbit_color.toString());\n }",
"public static Color getRGBColor(String name)\n\t\t\tthrows IllegalArgumentException {\n\t\tint[] c = { 0, 0, 0, 0 };\n\t\tif (name.startsWith(\"#\")) {\n\t\t\tif (name.length() == 4) {\n\t\t\t\tc[0] = Integer.parseInt(name.substring(1, 2), 16) * 16;\n\t\t\t\tc[1] = Integer.parseInt(name.substring(2, 3), 16) * 16;\n\t\t\t\tc[2] = Integer.parseInt(name.substring(3), 16) * 16;\n\t\t\t\treturn new Color(c[0], c[1], c[2], c[3]);\n\t\t\t}\n\t\t\tif (name.length() == 7) {\n\t\t\t\tc[0] = Integer.parseInt(name.substring(1, 3), 16);\n\t\t\t\tc[1] = Integer.parseInt(name.substring(3, 5), 16);\n\t\t\t\tc[2] = Integer.parseInt(name.substring(5), 16);\n\t\t\t\treturn new Color(c[0], c[1], c[2], c[3]);\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(MessageLocalization.getComposedMessage(\"unknown.color.format.must.be.rgb.or.rrggbb\"));\n\t\t}\n else if (name.startsWith(\"rgb(\")) {\n StringTokenizer tok = new StringTokenizer(name, \"rgb(), \\t\\r\\n\\f\");\n for (int k = 0; k < 3; ++k) {\n String v = tok.nextToken();\n if (v.endsWith(\"%\"))\n c[k] = Integer.parseInt(v.substring(0, v.length() - 1)) * 255 / 100;\n else\n c[k] = Integer.parseInt(v);\n if (c[k] < 0)\n c[k] = 0;\n else if (c[k] > 255)\n c[k] = 255;\n }\n return new Color(c[0], c[1], c[2], c[3]);\n }\n\t\tname = name.toLowerCase();\n\t\tif (!NAMES.containsKey(name))\n\t\t\tthrow new IllegalArgumentException(\"Color '\" + name\n\t\t\t\t\t+ \"' not found.\");\n\t\tc = (int[]) NAMES.get(name);\n\t\treturn new Color(c[0], c[1], c[2], c[3]);\n\t}",
"public TabletTest(String name) {\n\t\tsuper(name);\n\t}",
"BasicShader( String name ) {\n this( name, null );\n }",
"@Test\n\tpublic void testCreateEmptyCarColor() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = \"Z4\";\n\t\tString _color = \"\";\n\t\tint _year = 1990;\n\n\t\t// ---------------------------------------------\n\t\t// Creating an empty color car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\n\t\t}\n\t}",
"public Figure(String colour) {\n this.colour = colour;\n }",
"public Square(String name) {\r\n this(name.charAt(0), name.charAt(1));\r\n }",
"@Test\n public void getColorTest() {\n assertTrue(red_piece.getColor() == Piece.Color.RED);\n assertTrue(white_piece.getColor() == Piece.Color.WHITE);\n }",
"public NewCustomColorPalette() {\n\t\tsuper();\n\t\tbuildPalette();\n\t}",
"Color(int R, int G, int B) {\r\n\t\t this.rgb = new RGB(R,G,B);\r\n\t\t this.colorific = true;\r\n\t }",
"public Rook(String color) {\n\t\tsuper(color, \"R\");\n\t}",
"@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}",
"@Test //TEST TWO\n void testLowercaseAgoutiColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"agouti\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: agouti\";\n assertEquals(expected, rabbit_color.toString());\n }",
"public DefaultDetailWindowTest(String name) {\n super(name);\n }",
"public ExternalReferenceTest(String name) {\n\t\tsuper(name);\n\t}",
"static Player createNewPlayer(String className, Color color) throws IllegalArgumentException {\n switch (className) {\n case \"PlayerKI\":\n return new PlayerKI(color);\n case \"PlayerKI2\":\n return new PlayerKI2(color);\n case \"PlayerKI3\":\n return new PlayerKI3(color);\n case \"PlayerKI4\":\n return new PlayerKI4(color);\n case \"PlayerHuman\":\n return new PlayerPhysical(color);\n default:\n throw new IllegalArgumentException(\"createNewPlayer in Player.java doesn't know how to handle this!\");\n }\n }",
"public FuncionInternaTest(String name) {\n\t\tsuper(name);\n\t}",
"@Override\r\n\tpublic Card createCard(Color color, Value label) {\r\n\t\tCard newCard = new Card(color, label);\r\n\t\treturn newCard;\r\n\t}",
"public Shape(Color c) {\n\t\tcolor = c;\n\t}",
"public SwitchLookupTest(String name) {\n super(name);\n }",
"public ColumnGroupTest(String name) {\n\t\tsuper(name);\n\t}",
"@Test //TEST ONE\n void testUppercaseAgoutiColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Agouti\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Agouti\";\n assertEquals(expected, rabbit_color.toString());\n }",
"public PerfIDEValidation(String name) {\n super(name);\n }",
"public void testChangeName() {\n System.out.println(\"changeName\");\n String expResult = \"Anu\";\n //String result = new changeName('Anu', \"Shar\");\n assertEquals(expResult, result);\n }",
"@Test //TEST NINE\n void testUppercaseBlueOtterColor()\n {\n Rabbit_RegEx rabbit_color = new Rabbit_RegEx();\n rabbit_color.setIsBaby(true);\n rabbit_color.setWeight(2);\n rabbit_color.setAge(4);\n rabbit_color.setColor(\"Blue Otter\");\n String expected = \"Is the rabbit a baby?: true\\n\" +\n \"How old is the rabbit?: 4 weeks\\n\" +\n \"Weight: 2.0 in ounces\\n\" +\n \"Color: Blue Otter\";\n assertEquals(expected, rabbit_color.toString());\n }",
"public JComboBoxTesterTest(String name) {\n super(name);\n }",
"public IndentRulesTestCase(String name) {\n super(name);\n }"
]
| [
"0.67940867",
"0.6327741",
"0.61147445",
"0.60772204",
"0.6048537",
"0.6034173",
"0.600196",
"0.59932053",
"0.5970034",
"0.59318143",
"0.592067",
"0.5901064",
"0.5812817",
"0.5792693",
"0.5789694",
"0.57764184",
"0.575777",
"0.57460576",
"0.5745676",
"0.56717443",
"0.5664034",
"0.5642476",
"0.5633091",
"0.5629323",
"0.5586736",
"0.5562095",
"0.5555865",
"0.55545324",
"0.5549286",
"0.55362856",
"0.55189997",
"0.5488278",
"0.54848427",
"0.5475044",
"0.5463862",
"0.5445475",
"0.5440899",
"0.54360414",
"0.5435121",
"0.54314953",
"0.54303026",
"0.54187435",
"0.5401779",
"0.5394339",
"0.53851",
"0.53810644",
"0.5373418",
"0.5372079",
"0.53628767",
"0.53534806",
"0.5352932",
"0.534123",
"0.533497",
"0.53311706",
"0.5329674",
"0.5325508",
"0.5317876",
"0.53161347",
"0.5313462",
"0.53124917",
"0.53052115",
"0.52927905",
"0.5286414",
"0.5280933",
"0.5279318",
"0.527871",
"0.5275856",
"0.5275554",
"0.52711475",
"0.52710015",
"0.52702904",
"0.52573925",
"0.5247357",
"0.5244486",
"0.5242135",
"0.52389306",
"0.52062595",
"0.5203256",
"0.5200047",
"0.5196806",
"0.51963323",
"0.5193571",
"0.5192894",
"0.5191848",
"0.51904505",
"0.51901543",
"0.5186801",
"0.51860523",
"0.51852757",
"0.5180282",
"0.51795876",
"0.51752526",
"0.5154677",
"0.5151476",
"0.51453286",
"0.51435745",
"0.51397985",
"0.5136878",
"0.51356554",
"0.5131633"
]
| 0.81646115 | 0 |
Sets the fixture for this Colour test case. | protected void setFixture(Colour fixture)
{
this.fixture = fixture;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setFixture(PropertyInstance fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(DatabaseOptions fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(Grid<?, ?> fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(ColumnGroup fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected Colour getFixture()\n\t{\n\t\treturn fixture;\n\t}",
"protected void setFixture(OptionsType fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(SaveParameters fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(Axiom fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(ConnectionInfo fixture) {\r\n\t\tthis.fixture = fixture;\r\n\t}",
"protected void setFixture(VirtualMachine fixture) {\r\n\t\tthis.fixture = fixture;\r\n\t}",
"protected void setFixture(CapabilityDefinitionsType fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(Map fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(MobileDevice fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(Inconsistency fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(SokobanService fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(FSM fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(IBodyElementsContainer fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(OpcDevice fixture)\n {\n this.fixture = fixture;\n }",
"protected void setFixture(BooleanExp fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(JournalStatement fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"protected void setFixture(BPFieldOfActivityAnnotationsRepository fixture) {\r\n\t\tthis.fixture = fixture;\r\n\t}",
"protected void setFixture(AddAutoIncrementType fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"@Before\n public void testFixture() {\n rectangle = new Rectangle(\"r\", 3, 4, 0, 1, 0,1,new Color(255,0,0));\n colorChangeAnimation = new AnimationColorChange(rectangle, 0, 10,\n new Color(1,1,1));\n }",
"protected PropertyInstance getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected RDFProperty getFixture() {\n\t\treturn (RDFProperty)fixture;\n\t}",
"@BeforeEach\n public void setup() {\n red_piece = new Piece(Piece.Color.RED);\n white_piece = new Piece(Piece.Color.WHITE);\n }",
"protected DatabaseOptions getFixture() {\n\t\treturn fixture;\n\t}",
"protected SaveParameters getFixture() {\n\t\treturn fixture;\n\t}",
"protected SokobanService getFixture() {\n\t\treturn fixture;\n\t}",
"protected Grid<?, ?> getFixture() {\n\t\treturn fixture;\n\t}",
"protected Axiom getFixture() {\n\t\treturn fixture;\n\t}",
"protected VirtualMachine getFixture() {\r\n\t\treturn fixture;\r\n\t}",
"protected Map getFixture() {\n\t\treturn fixture;\n\t}",
"protected OptionsType getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected ExternalReference getFixture() {\n\t\treturn (ExternalReference)fixture;\n\t}",
"@Override\n\tprotected Guidance getFixture() {\n\t\treturn (Guidance)fixture;\n\t}",
"@Override\n\tprotected Tablet getFixture() {\n\t\treturn (Tablet)fixture;\n\t}",
"@Override\n public void setTestUnit() {\n hero = new Hero(50, 2, field.getCell(0, 0));\n }",
"protected ConnectionInfo getFixture() {\r\n\t\treturn fixture;\r\n\t}",
"@Before\n\tpublic void setUp() {\n\t\t/*\n\t\t * TODO: initialize the text fixture. For the initial pattern, use the \"blinker\"\n\t\t * pattern shown in:\n\t\t * https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#Examples_of_patterns\n\t\t * The actual pattern GIF is at:\n\t\t * https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#/media/File:Game_of_life_blinker.gif\n\t\t * Start from the vertical bar on a 5X5 matrix as shown in the GIF.\n\t\t */\n\t}",
"@Override\r\n protected void setUp()\r\n {\r\n island = new Island(5,5);\r\n position = new Position(island, 4,4);\r\n seed = new BirdFood(position, \"seed\", \"Crunchy Seeds\", 1.0, 2.0, 1.5);\r\n }",
"protected FSM getFixture() {\n\t\treturn fixture;\n\t}",
"protected MobileDevice getFixture() {\n\t\treturn fixture;\n\t}",
"private ColumnGroup getFixture() {\n\t\treturn fixture;\n\t}",
"public void testSetName_fixture1_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture1();\n\t\tString name = \"\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}",
"@Override\n\tprotected Planilla getFixture() {\n\t\treturn (Planilla)fixture;\n\t}",
"public void testSetName_fixture3_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture3();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}",
"@Test\n\tpublic void colorCustomization() {\n\n\t\tset.setFill(1);\n\t\tassertTrue(set.hasFill());\n\t\tassertEquals(1, set.getColor());\n\t\tassertEquals(1, set.getFillColor());\n\n\t\tset.setColor(3);\n\t\tset.setFill(2);\n\t\tassertEquals(3, set.getColor());\n\n\t\tset.setGradientFill(new int[] {1, 2}, new float[] {1.f, 2.f});\n\t\tassertTrue(set.hasGradientFill());\n\t}",
"@Override\n\tprotected SmokeDetector getFixture() {\n\t\treturn (SmokeDetector)fixture;\n\t}",
"public void testSetAccount_fixture1_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture1();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"@Override\n\tprotected SubrangoNumerico getFixture() {\n\t\treturn (SubrangoNumerico)fixture;\n\t}",
"@Override\n\tprotected SignalArgumentExpression getFixture() {\n\t\treturn (SignalArgumentExpression)fixture;\n\t}",
"public void setUp() {\n entity = new Entity(BaseCareerSet.FIGHTER);\n }",
"public void testSetAccount_fixture23_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture23();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"@Override\r\n\tprotected RJB getFixture() {\r\n\t\treturn (RJB)fixture;\r\n\t}",
"protected BooleanExp getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected EntidadRelacionDebil getFixture() {\n\t\treturn (EntidadRelacionDebil)fixture;\n\t}",
"protected Inconsistency getFixture() {\n\t\treturn fixture;\n\t}",
"protected IBodyElementsContainer getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected Node getFixture() {\n\t\treturn (Node)fixture;\n\t}",
"public void testSetName_fixture23_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture23();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}",
"public void testSetName_fixture3_2()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture3();\n\t\tString name = \"\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}",
"private void setUpConfetti() {\n Timber.d(\"setUpConfetti\");\n final Resources res = getResources();\n goldDark = res.getColor(R.color.gold_dark);\n goldMed = res.getColor(R.color.gold_med);\n gold = res.getColor(R.color.gold);\n goldLight = res.getColor(R.color.gold_light);\n colors = new int[]{goldDark, goldMed, gold, goldLight};\n }",
"@Before\n\tpublic void setup(){\n\t\tuuid = UUID.randomUUID();\n\t\ttitle = \"The Dark Knight\";\n\t\tdescription = \"Nanananana Batmaaaaan!\";\n\t\tstartDate = new Date(2008, 01, 01);\n\t\ttagLabel = \"Test-Tag\"; \n\t}",
"@Override\n public void setTestItem(){\n expectedName = \"Common lightMagicBook\";\n expectedPower = 10;\n expectedMinRange = 1;\n expectedMaxRange = 2;\n lightMagicBook = new LightMagicBook(expectedName,expectedPower,expectedMinRange,expectedMaxRange);\n animaMagicBook1 = new AnimaMagicBook(\"\",30,1,2);\n darknessMagicBook1 = new DarknessMagicBook(\"\",30,1,2);\n }",
"@Before\n public void setUp(){\n cmTest = new CoffeeMaker();\n\n }",
"public void testSetAccount_fixture27_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture27();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"@BeforeEach\r\n void setUp() {\r\n\r\n dome = new Dome();\r\n\r\n }",
"@Override\n\tprotected FuncionInterna getFixture() {\n\t\treturn (FuncionInterna)fixture;\n\t}",
"@Override\r\n\tprotected AbstractDiagramElement getFixture() {\r\n\t\treturn (AbstractDiagramElement)fixture;\r\n\t}",
"public void testSetName_fixture4_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture4();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}",
"public void setSeed(String seed) \n\t{\n\t}",
"@Override\n\tprotected UL getFixture() {\n\t\treturn (UL)fixture;\n\t}",
"@Before\n public void setup() {\n Helpers.fillData();\n }",
"@Override\n\tprotected GridChangeDescription getFixture() {\n\t\treturn (GridChangeDescription)fixture;\n\t}",
"private DeltaReplacedConnector getFixture() {\n\t\treturn (DeltaReplacedConnector)fixture;\n\t}",
"@Before\n\tpublic void setUp() {\n\t\tcompteTest = FactoryCompte.getCompteVide();\n\t\tcompteTest.setIdClient(3630);\n\t\tcompteTest.setBalance(89.8);\n\t\tcompteTest.setNegativeBalanceAllowed(false);\n\t\t\n\t\tinstance.createWithId(compteTest);\t\t\n\t}",
"protected OpcDevice getFixture()\n {\n return fixture;\n }",
"public void testSetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}",
"public void testSetAccount_fixture26_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture26();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"@Test\n\tpublic void testSetTemp_1()\n\t\tthrows Exception {\n\t\tSaveScenarioAction fixture = SaveScenarioActionFactory.createInstance();\n\t\tfloat temp = 1.0f;\n\n\t\tfixture.setTemp(temp);\n\n\t\t// add additional test code here\n\t}",
"public void testSetName_fixture17_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture17();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}",
"public DatabaseFixture() {\n\t\tconnUidPwdProp.clear();\n\t}",
"@BeforeEach\n\tpublic void setup() {\n\t\tuser= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\tuser_diverso= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username_diverso\", \n\t\t\t\t\"password\");\n\t\tuser_uguale= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\t\n\t\tfruitore =new Fruitore(user);\n\t\tfruitore_uguale =new Fruitore(user_uguale);\n\t\tfruitore_diverso =new Fruitore(user_diverso);\n\t}",
"public void testSetName_fixture26_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture26();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}",
"@Test\n\tpublic void testSetTankType_1()\n\t\tthrows Exception {\n\t\tSaveScenarioAction fixture = SaveScenarioActionFactory.createInstance();\n\t\tTANK_TYPE type = TANK_TYPE.FIFTEEN_GAL;\n\n\t\tfixture.setTankType(type);\n\n\t\t// add additional test code here\n\t}",
"public void setSeed(int seed) {\r\n this.seed = seed;\r\n }",
"@Before\n public void setUp() {\n defaultColor1 = new Color(10, 10, 10);\n defaultPosition1 = new Position(0, 100);\n defaultSize1 = new Size(20, 20);\n defaultShape1 = new Rectangle(defaultColor1, defaultPosition1, defaultSize1);\n defaultColor2 = new Color(100, 100, 100);\n defaultPosition2 = new Position(50, 50);\n defaultSize2 = new Size(25, 25);\n defaultShape2 = new Oval(defaultColor2, defaultPosition2, defaultSize2);\n }",
"protected JournalStatement getFixture() {\n\t\treturn fixture;\n\t}",
"@BeforeEach\n void setup() {\n String contentType = getContentType();\n preload(contentType, \"staff\", true);\n }",
"@Override\n protected void setUp()\n throws Exception\n {\n cover = new WinCover(GamePiece.X, 0, 0, 5);\n super.setUp();\n }",
"@Override\n\tprotected uCourses getFixture() {\n\t\treturn (uCourses)fixture;\n\t}",
"public void testSetName_fixture28_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture28();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}",
"@Before\n\tpublic void setUpMutableFixture() {\n\t\tcmcSystem = new CMCSystem(new OrderDAOImpl());\n\t\tschedule = cmcSystem.getScheduler();\n\t\tassemblyLine = cmcSystem.getAssemblyLine(0);\n\t}",
"@BeforeEach\n\tpublic void setup() {\n\t\tnome = \"cliente1 da Silva\";\n\t\tdocumentoValido = \"22492552020\";\n\t\tdocumentoInvalido = \"465801940\";\n\t\tdocumentoJaCadastrado = \"465.801.940-06\";\n\t\temail = \"[email protected]\";\n\t\t\n\t\tlogradouro = \"Rua das meninas, 15\";\n\t\tbairro = \"Jose pinheiro\";\n\t\tcomplemento = \"Proximo a loteria\";\n\t\tuf = \"PB\";\n\t\t\n\t\tsalario = new BigDecimal(2000);\n\t\tsalarioNegativo = new BigDecimal(-1);\n\t\tsalarioZerado = new BigDecimal(0);\n\t\t\n\t}",
"@BeforeEach\n void setup()\n {\n Liquid juice = new Liquid(\"applejuice\", 0.25, 2.00);\n j = new Juice(\"applejuice\", juice, 17.5,false);\n }",
"public ColourTest(String name)\n\t{\n\t\tsuper(name);\n\t}",
"@After\n public void tearDown() {\n fixture = null;\n }",
"@BeforeEach\n void setup() {\n String contentType = getContentType();\n preload(contentType, \"staff\", false);\n }",
"public void testSetName_fixture27_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture27();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}"
]
| [
"0.74140626",
"0.7367158",
"0.723645",
"0.71430665",
"0.713549",
"0.70987624",
"0.707859",
"0.69789886",
"0.69781685",
"0.6933029",
"0.68870384",
"0.6807492",
"0.68065923",
"0.6749714",
"0.67486644",
"0.6729788",
"0.66392493",
"0.65804523",
"0.6563776",
"0.6443089",
"0.643698",
"0.6436406",
"0.6430173",
"0.62473315",
"0.59430736",
"0.58059716",
"0.5787557",
"0.5733318",
"0.5694477",
"0.56744",
"0.5633859",
"0.5611944",
"0.5524525",
"0.5524102",
"0.55206454",
"0.5514746",
"0.55130863",
"0.5508387",
"0.54885983",
"0.54811597",
"0.54612434",
"0.54605687",
"0.5419403",
"0.540506",
"0.53866315",
"0.537655",
"0.5341696",
"0.53328127",
"0.53142047",
"0.5313646",
"0.5301798",
"0.5277308",
"0.52723",
"0.5260373",
"0.52597857",
"0.5258134",
"0.525373",
"0.52255243",
"0.5223468",
"0.52181524",
"0.51973873",
"0.5189106",
"0.5170835",
"0.5168097",
"0.5162526",
"0.5157604",
"0.51528955",
"0.5151908",
"0.51489353",
"0.51439494",
"0.51397866",
"0.51347756",
"0.51344395",
"0.5127491",
"0.512739",
"0.5115456",
"0.50965387",
"0.5092047",
"0.50906366",
"0.5090375",
"0.5088551",
"0.50874877",
"0.50873816",
"0.5084838",
"0.50841373",
"0.5082422",
"0.50816506",
"0.5078654",
"0.5076684",
"0.5066169",
"0.5065573",
"0.50652075",
"0.50651103",
"0.50639474",
"0.5060973",
"0.5057926",
"0.50569665",
"0.50564104",
"0.50543356",
"0.50517184"
]
| 0.8387372 | 0 |
Returns the fixture for this Colour test case. | protected Colour getFixture()
{
return fixture;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected PropertyInstance getFixture() {\n\t\treturn fixture;\n\t}",
"protected Grid<?, ?> getFixture() {\n\t\treturn fixture;\n\t}",
"protected DatabaseOptions getFixture() {\n\t\treturn fixture;\n\t}",
"protected SaveParameters getFixture() {\n\t\treturn fixture;\n\t}",
"protected SokobanService getFixture() {\n\t\treturn fixture;\n\t}",
"protected Axiom getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected RDFProperty getFixture() {\n\t\treturn (RDFProperty)fixture;\n\t}",
"protected ConnectionInfo getFixture() {\r\n\t\treturn fixture;\r\n\t}",
"@Override\n\tprotected Guidance getFixture() {\n\t\treturn (Guidance)fixture;\n\t}",
"private ColumnGroup getFixture() {\n\t\treturn fixture;\n\t}",
"protected OptionsType getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected ExternalReference getFixture() {\n\t\treturn (ExternalReference)fixture;\n\t}",
"protected Map getFixture() {\n\t\treturn fixture;\n\t}",
"protected BooleanExp getFixture() {\n\t\treturn fixture;\n\t}",
"protected Inconsistency getFixture() {\n\t\treturn fixture;\n\t}",
"protected FSM getFixture() {\n\t\treturn fixture;\n\t}",
"protected CapabilityDefinitionsType getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected FuncionInterna getFixture() {\n\t\treturn (FuncionInterna)fixture;\n\t}",
"@Override\r\n\tprotected RJB getFixture() {\r\n\t\treturn (RJB)fixture;\r\n\t}",
"@Override\n\tprotected Tablet getFixture() {\n\t\treturn (Tablet)fixture;\n\t}",
"protected VirtualMachine getFixture() {\r\n\t\treturn fixture;\r\n\t}",
"public Version getFixture()\n\t\tthrows Exception {\n\t\tif (fixture == null) {\n\t\t\tfixture = new Version(\"1\");\n\t\t}\n\t\treturn fixture;\n\t}",
"protected IBodyElementsContainer getFixture() {\n\t\treturn fixture;\n\t}",
"protected MobileDevice getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected SmokeDetector getFixture() {\n\t\treturn (SmokeDetector)fixture;\n\t}",
"protected JournalStatement getFixture() {\n\t\treturn fixture;\n\t}",
"private DeltaReplacedConnector getFixture() {\n\t\treturn (DeltaReplacedConnector)fixture;\n\t}",
"protected OpcDevice getFixture()\n {\n return fixture;\n }",
"protected BPFieldOfActivityAnnotationsRepository getFixture() {\r\n\t\treturn fixture;\r\n\t}",
"@Override\n\tprotected SubrangoNumerico getFixture() {\n\t\treturn (SubrangoNumerico)fixture;\n\t}",
"@Override\n\tprotected Node getFixture() {\n\t\treturn (Node)fixture;\n\t}",
"@Override\n\tprotected SignalArgumentExpression getFixture() {\n\t\treturn (SignalArgumentExpression)fixture;\n\t}",
"@Override\n\tprotected Planilla getFixture() {\n\t\treturn (Planilla)fixture;\n\t}",
"@Override\n\tprotected EntidadRelacionDebil getFixture() {\n\t\treturn (EntidadRelacionDebil)fixture;\n\t}",
"@Override\r\n\tprotected AbstractDiagramElement getFixture() {\r\n\t\treturn (AbstractDiagramElement)fixture;\r\n\t}",
"@Override\n\tprotected GridChangeDescription getFixture() {\n\t\treturn (GridChangeDescription)fixture;\n\t}",
"protected AddAutoIncrementType getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected UL getFixture() {\n\t\treturn (UL)fixture;\n\t}",
"private L getFixture() {\r\n\t\treturn (L)fixture;\r\n\t}",
"@Override\n\tprotected Presentation getFixture() {\n\t\treturn (Presentation)fixture;\n\t}",
"@Override\r\n\tprotected MetaTypedElement getFixture() {\r\n\t\treturn (MetaTypedElement)fixture;\r\n\t}",
"@Override\n\tprotected ConditionalExpression getFixture() {\n\t\treturn (ConditionalExpression)fixture;\n\t}",
"@Override\n\tprotected LightSensor getFixture() {\n\t\treturn (LightSensor)fixture;\n\t}",
"@Override\n\tprotected OutputPort getFixture() {\n\t\treturn (OutputPort)fixture;\n\t}",
"@Override\n\tprotected uCourses getFixture() {\n\t\treturn (uCourses)fixture;\n\t}",
"@Override\n\tprotected BasicLink getFixture() {\n\t\treturn (BasicLink)fixture;\n\t}",
"@Override\n\tprotected CRUDPage getFixture() {\n\t\treturn (CRUDPage)fixture;\n\t}",
"@Override\n\tprotected DeletePage getFixture() {\n\t\treturn (DeletePage)fixture;\n\t}",
"@Override\n\tprotected ObjectsPublic getFixture() {\n\t\treturn (ObjectsPublic)fixture;\n\t}",
"@Override\r\n\tprotected INetElement getFixture() {\r\n\t\treturn (INetElement)fixture;\r\n\t}",
"public Array<Fixture> getFixtureList () {\n\t\treturn fixtures;\n\t}",
"public SessionStateMsg getFixture()\n\t\tthrows Exception {\n\t\tif (fixture == null) {\n\t\t\tfixture = new SessionStateMsg(1);\n\t\t}\n\t\treturn fixture;\n\t}",
"protected void setFixture(Colour fixture)\n\t{\n\t\tthis.fixture = fixture;\n\t}",
"@Override\n\tprotected TestIdentityAction getFixture() {\n\t\treturn (TestIdentityAction)fixture;\n\t}",
"@Override\n\tprotected Processor getFixture() {\n\t\treturn (Processor)fixture;\n\t}",
"@Override\r\n\tprotected TokenAttribute getFixture() {\r\n\t\treturn (TokenAttribute)fixture;\r\n\t}",
"@Override\n\tprotected HTTPHookDecorator getFixture() {\n\t\treturn (HTTPHookDecorator)fixture;\n\t}",
"@Override\n\tprotected Association getFixture() {\n\t\treturn (Association)fixture;\n\t}",
"@Override\n\tprotected DeterministicEvaluationAspect getFixture() {\n\t\treturn (DeterministicEvaluationAspect)fixture;\n\t}",
"@Override\n\tprotected BPMNDiagram getFixture() {\n\t\treturn (BPMNDiagram)fixture;\n\t}",
"@Override\n\tprotected ParameterDateType getFixture() {\n\t\treturn (ParameterDateType)fixture;\n\t}",
"public SessionListMsg getFixture()\n\t\tthrows Exception {\n\t\tif (fixture == null) {\n\t\t\tfixture = new SessionListMsg();\n\t\t}\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected AlternativeFlow getFixture() {\n\t\treturn (AlternativeFlow)fixture;\n\t}",
"@Override\n\tprotected GreaterThan getFixture() {\n\t\treturn (GreaterThan)fixture;\n\t}",
"@Before\n public void testFixture() {\n rectangle = new Rectangle(\"r\", 3, 4, 0, 1, 0,1,new Color(255,0,0));\n colorChangeAnimation = new AnimationColorChange(rectangle, 0, 10,\n new Color(1,1,1));\n }",
"@Override\n\tprotected OPMExhibitionLink getFixture() {\n\t\treturn (OPMExhibitionLink)fixture;\n\t}",
"protected Object createTest() throws Exception {\n Object test = super.createTest();\n dataPopulator.populate(test);\n return test;\n }",
"public static VerticalExtent getFixture() {\r\n\t\ttry {\r\n\t\t\tif (!DDMSVersion.getCurrentVersion().isAtLeast(\"5.0\"))\r\n\t\t\t\treturn (new VerticalExtent(1.1, 2.2, \"Meter\", \"HAE\"));\r\n\t\t}\r\n\t\tcatch (InvalidDDMSException e) {\r\n\t\t\tfail(\"Could not create fixture: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn (null);\r\n\t}",
"public ColourTest(String name)\n\t{\n\t\tsuper(name);\n\t}",
"public JFrame getCreateTestFrame() {\r\n\t\treturn createTestFrame;\r\n\t}",
"@Nested\n TestFixturesDependencyModifier getTestFixtures();",
"public Folder getFixture1()\n\t\tthrows Exception {\n\t\tif (fixture1 == null) {\n\t\t\tfixture1 = new Folder();\n\t\t}\n\t\treturn fixture1;\n\t}",
"@Override\n\tprotected UpperClockConstraint getFixture() {\n\t\treturn (UpperClockConstraint)fixture;\n\t}",
"public DyeColor getColor() {\n/* 43 */ return DyeColor.getByWoolData(getData());\n/* */ }",
"public DiceColor getColor() {\n return color;\n }",
"Reference getSpecimen();",
"public Folder getFixture17()\n\t\tthrows Exception {\n\t\tif (fixture17 == null) {\n\t\t\tfixture17 = new Folder();\n\t\t\tfixture17.setAccount(new Account());\n\t\t\tfixture17.setFullName(\"0123456789\");\n\t\t\tfixture17.setName(\"An��t-1.0.txt\");\n\t\t\tfixture17.setParent(new Folder());\n\t\t\tfixture17.setParentFolderId(new Integer(-1));\n\t\t}\n\t\treturn fixture17;\n\t}",
"void testRandColor(Tester t) {\r\n initData();\r\n t.checkExpect(this.game2.randColor(), Color.ORANGE);\r\n t.checkExpect(this.game3.randColor(), Color.RED);\r\n t.checkExpect(this.game5.randColor(), Color.PINK);\r\n }",
"public Folder getFixture3()\n\t\tthrows Exception {\n\t\tif (fixture3 == null) {\n\t\t\tfixture3 = new Folder();\n\t\t\tfixture3.setAccount(new Account());\n\t\t\tfixture3.setFullName(\"\");\n\t\t\tfixture3.setName(\"\");\n\t\t\tfixture3.setParent(new Folder());\n\t\t\tfixture3.setParentFolderId(new Integer(0));\n\t\t}\n\t\treturn fixture3;\n\t}",
"public Folder getFixture16()\n\t\tthrows Exception {\n\t\tif (fixture16 == null) {\n\t\t\tfixture16 = new Folder();\n\t\t\tfixture16.setAccount(new Account());\n\t\t\tfixture16.setFullName(\"0123456789\");\n\t\t\tfixture16.setName(\"0123456789\");\n\t\t\tfixture16.setParent(new Folder());\n\t\t\tfixture16.setParentFolderId(new Integer(1));\n\t\t}\n\t\treturn fixture16;\n\t}",
"public Folder getFixture18()\n\t\tthrows Exception {\n\t\tif (fixture18 == null) {\n\t\t\tfixture18 = new Folder();\n\t\t\tfixture18.setAccount(new Account());\n\t\t\tfixture18.setFullName(\"0123456789\");\n\t\t\tfixture18.setName(\"An��t-1.0.txt\");\n\t\t\tfixture18.setParent(new Folder());\n\t\t\tfixture18.setParentFolderId(new Integer(0));\n\t\t}\n\t\treturn fixture18;\n\t}",
"public String getColour() {\n return colour;\n }",
"public String getColour() {\n return colour;\n }",
"public ResumptionTokenDTO getFixture21()\r\n\t\tthrows Exception {\r\n\t\tif (fixture21 == null) {\r\n\t\t\tfixture21 = new ResumptionTokenDTO();\r\n\t\t\tfixture21.setCreationDate(new Timestamp(644344036000L));\r\n\t\t\tfixture21.setId(Integer.valueOf(1));\r\n\t\t\tfixture21.setMetadataPrefix(\"Ant-1.0.txt\");\r\n\t\t\tfixture21.setQuery(\"Ant-1.0.txt\");\r\n\t\t\tfixture21.setQueryForCount(\"Ant-1.0.txt\");\r\n\t\t}\r\n\t\treturn fixture21;\r\n\t}",
"public Texture getBgColor () {\n\t\treturn this.bgColor;\n\t}",
"public String getColour() {\r\n return colour;\r\n }",
"@Test\n public void getColorReturnsTheRightColor() {\n assertEquals(0xaa00ff, Tetromino.T.getColor());\n }",
"public Folder getFixture15()\n\t\tthrows Exception {\n\t\tif (fixture15 == null) {\n\t\t\tfixture15 = new Folder();\n\t\t\tfixture15.setAccount(new Account());\n\t\t\tfixture15.setFullName(\"0123456789\");\n\t\t\tfixture15.setName(\"0123456789\");\n\t\t\tfixture15.setParent(new Folder());\n\t\t\tfixture15.setParentFolderId(new Integer(0));\n\t\t}\n\t\treturn fixture15;\n\t}",
"public Folder getFixture14()\n\t\tthrows Exception {\n\t\tif (fixture14 == null) {\n\t\t\tfixture14 = new Folder();\n\t\t\tfixture14.setAccount(new Account());\n\t\t\tfixture14.setFullName(\"0123456789\");\n\t\t\tfixture14.setName(\"0123456789\");\n\t\t\tfixture14.setParent(new Folder());\n\t\t\tfixture14.setParentFolderId(new Integer(-1));\n\t\t}\n\t\treturn fixture14;\n\t}",
"public static PurchasePlanEnsurePageBo getTestCase()\n\t{\n\t\tPurchasePlanEnsurePageBo bo = new PurchasePlanEnsurePageBo();\n\t\tList<PurchasePlanEnsureBo> assetsList = new ArrayList<PurchasePlanEnsureBo>();\n\n\t\tPurchasePlanEnsureBo a = PurchasePlanEnsureBoTest.getTestCase();\n\n\t\tassetsList.add(a);\n\t\tassetsList.add(a);\n\t\tassetsList.add(a);\n\t\tbo.setAssetsList(assetsList);\n\t\treturn bo;\n\t}",
"public static String getTestdataContext() {\r\n if (testdataContext == null) {\r\n testdataContext = PropertiesProvider.getInstance().getProperty(\"testdata.context\", \"/testdata\");\r\n }\r\n return testdataContext;\r\n }",
"public Colour getColour();",
"public Folder getFixture2()\n\t\tthrows Exception {\n\t\tif (fixture2 == null) {\n\t\t\tfixture2 = new Folder();\n\t\t\tfixture2.setAccount(new Account());\n\t\t\tfixture2.setFullName(\"\");\n\t\t\tfixture2.setName(\"\");\n\t\t\tfixture2.setParent(new Folder());\n\t\t\tfixture2.setParentFolderId(new Integer(-1));\n\t\t}\n\t\treturn fixture2;\n\t}",
"@Nonnull\n @Override\n public DyeColor getColor() {\n return this.getMushroomType().getColor();\n }",
"String getColour();",
"public int getColour() {\n return colour;\n }",
"public Folder getFixture13()\n\t\tthrows Exception {\n\t\tif (fixture13 == null) {\n\t\t\tfixture13 = new Folder();\n\t\t\tfixture13.setAccount(new Account());\n\t\t\tfixture13.setFullName(\"0123456789\");\n\t\t\tfixture13.setName(\"\");\n\t\t\tfixture13.setParent(new Folder());\n\t\t\tfixture13.setParentFolderId(new Integer(1));\n\t\t}\n\t\treturn fixture13;\n\t}",
"public Folder getFixture12()\n\t\tthrows Exception {\n\t\tif (fixture12 == null) {\n\t\t\tfixture12 = new Folder();\n\t\t\tfixture12.setAccount(new Account());\n\t\t\tfixture12.setFullName(\"0123456789\");\n\t\t\tfixture12.setName(\"\");\n\t\t\tfixture12.setParent(new Folder());\n\t\t\tfixture12.setParentFolderId(new Integer(0));\n\t\t}\n\t\treturn fixture12;\n\t}",
"public Folder getFixture4()\n\t\tthrows Exception {\n\t\tif (fixture4 == null) {\n\t\t\tfixture4 = new Folder();\n\t\t\tfixture4.setAccount(new Account());\n\t\t\tfixture4.setFullName(\"\");\n\t\t\tfixture4.setName(\"\");\n\t\t\tfixture4.setParent(new Folder());\n\t\t\tfixture4.setParentFolderId(new Integer(1));\n\t\t}\n\t\treturn fixture4;\n\t}",
"public Folder getFixture22()\n\t\tthrows Exception {\n\t\tif (fixture22 == null) {\n\t\t\tfixture22 = new Folder();\n\t\t\tfixture22.setAccount(new Account());\n\t\t\tfixture22.setFullName(\"An��t-1.0.txt\");\n\t\t\tfixture22.setName(\"\");\n\t\t\tfixture22.setParent(new Folder());\n\t\t\tfixture22.setParentFolderId(new Integer(1));\n\t\t}\n\t\treturn fixture22;\n\t}"
]
| [
"0.7138892",
"0.70177853",
"0.6784505",
"0.6741486",
"0.67115694",
"0.67056346",
"0.67012376",
"0.67005557",
"0.6632062",
"0.66064376",
"0.65993637",
"0.6550011",
"0.65194523",
"0.64776695",
"0.6431397",
"0.64242053",
"0.6378375",
"0.63722837",
"0.63706994",
"0.63652503",
"0.63529927",
"0.6337336",
"0.6333793",
"0.63216835",
"0.62986517",
"0.6297597",
"0.6296517",
"0.62916714",
"0.6212365",
"0.6184911",
"0.61322135",
"0.6122172",
"0.6114913",
"0.61133796",
"0.60850435",
"0.60517424",
"0.6031568",
"0.6027193",
"0.59893906",
"0.5960021",
"0.5939434",
"0.5922822",
"0.58439153",
"0.5838498",
"0.583797",
"0.581842",
"0.5801759",
"0.5800591",
"0.5750096",
"0.5720283",
"0.57176983",
"0.5714143",
"0.5675144",
"0.5669955",
"0.5611183",
"0.55805516",
"0.55429316",
"0.55395275",
"0.5531091",
"0.552297",
"0.5508607",
"0.54487926",
"0.5407829",
"0.53854257",
"0.5348722",
"0.5295341",
"0.5291466",
"0.52747566",
"0.5149336",
"0.51109844",
"0.5090454",
"0.5072598",
"0.5040708",
"0.5033412",
"0.5013423",
"0.496837",
"0.49564338",
"0.49317995",
"0.4879745",
"0.48722962",
"0.4869309",
"0.48522022",
"0.48522022",
"0.48511845",
"0.48236752",
"0.48127854",
"0.4811679",
"0.4807502",
"0.47972885",
"0.47729525",
"0.477177",
"0.47676516",
"0.47611383",
"0.47590378",
"0.475196",
"0.47396138",
"0.47342613",
"0.47333965",
"0.47329167",
"0.47297314"
]
| 0.8621632 | 0 |
Created by kim on 08/03/2018. | public interface IBlueToothService {
boolean initialize();
void function_data(byte[] data);
void enable_JDY_ble(int p);
void disconnect();
/**
* 执行指令
* @param g
* @param string_or_hex_data
* @return
*/
int command(String g, boolean string_or_hex_data);
void Delay_ms(int ms);
/**
* 设置密码
* @param pss
*/
void set_APP_PASSWORD(String pss);
boolean connect(String address);
/**
* 获取连接的ble设备所提供的服务列表
* @return
*/
List<BluetoothGattService> getSupportedGattServices();
int get_connected_status(List<BluetoothGattService> gattServices);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void init() {}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"private void kk12() {\n\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}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"public void gored() {\n\t\t\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\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}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\n public void initialize() { \n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n public int getSize() {\n return 1;\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"public Pitonyak_09_02() {\r\n }",
"Consumable() {\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"private TMCourse() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}"
]
| [
"0.5884582",
"0.57825375",
"0.5599341",
"0.5595957",
"0.55910677",
"0.5574508",
"0.556666",
"0.5564286",
"0.5564286",
"0.5515553",
"0.5487205",
"0.54822975",
"0.54458714",
"0.5434079",
"0.5422689",
"0.54210734",
"0.54090035",
"0.54046106",
"0.53912824",
"0.53833467",
"0.53814596",
"0.53814596",
"0.53814596",
"0.53814596",
"0.53814596",
"0.53814596",
"0.53668827",
"0.536603",
"0.5360214",
"0.53590536",
"0.53587234",
"0.53587234",
"0.53587234",
"0.53587234",
"0.53587234",
"0.5346116",
"0.5327659",
"0.5323768",
"0.53213394",
"0.53199404",
"0.53113484",
"0.53089494",
"0.5308419",
"0.5306858",
"0.5300418",
"0.5300418",
"0.5298663",
"0.5292337",
"0.5291126",
"0.52884525",
"0.5281109",
"0.52789414",
"0.5270359",
"0.52491665",
"0.52491665",
"0.52491665",
"0.52441317",
"0.5230717",
"0.52299833",
"0.52299833",
"0.52289325",
"0.522667",
"0.52215326",
"0.52215326",
"0.522006",
"0.522006",
"0.522006",
"0.5216327",
"0.52124864",
"0.51980245",
"0.51980245",
"0.51980245",
"0.51960963",
"0.5195517",
"0.5193956",
"0.51911736",
"0.51901996",
"0.5178353",
"0.51594716",
"0.5157792",
"0.51505005",
"0.51491094",
"0.51491094",
"0.51491094",
"0.5146507",
"0.5132718",
"0.5131921",
"0.51312923",
"0.51310074",
"0.51305526",
"0.51305526",
"0.5128808",
"0.5126151",
"0.512236",
"0.5116205",
"0.51039696",
"0.5098319",
"0.5097224",
"0.5088936",
"0.50871235",
"0.50864637"
]
| 0.0 | -1 |
Create a new filter. | public static SMFMemoryMeshFilterType create(
final SMFSchemaIdentifier in_schema,
final Path in_file)
{
return new SMFMemoryMeshFilterMetadataAdd(in_schema, in_file);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Filter newFilter()\r\n {\r\n Filter filter = new Filter(\"filter1\", new Source(\"display1\", \"name1\", \"server\", \"key1\"));\r\n filter.getOtherSources().add(filter.getSource());\r\n Group group = new Group();\r\n group.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"123\"));\r\n Group group2 = new Group();\r\n group2.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"124\"));\r\n group.addFilterGroup(group2);\r\n filter.setFilterGroup(group);\r\n return filter;\r\n }",
"public SamFilterParams create() {\n return new SamFilterParams(this);\n }",
"public IntentFilter createFilter()\n {\n IntentFilter filter = new IntentFilter();\n filter.addAction(UPDATE_TIME);\n\n return filter;\n }",
"public Filter createFilter(String filter) throws InvalidSyntaxException {\n \t\tcheckValid();\n \n \t\treturn FilterImpl.newInstance(filter);\n \t}",
"public Filter (Filter filter) {\n this.name = filter.name;\n this.type = filter.type;\n this.pred = new FilterPred(filter.pred);\n this.enabled = filter.enabled;\n }",
"public Filter() {\n }",
"public Filter () {\n\t\tsuper();\n\t}",
"public void addFilterToCreator(ViewerFilter filter);",
"protected IUIFilterable createFilterable() {\n \t\treturn new UIFilterable();\n \t}",
"private Filter makeFilter(String filterName) {\r\n Class c = null;\r\n Filter f = null;\r\n try {\r\n c = Class.forName(filterName);\r\n f = (Filter) c.newInstance();\r\n } catch (Exception e) {\r\n System.out.println(\"There was a problem to load the filter class: \"\r\n + filterName);\r\n }\r\n return f;\r\n }",
"public static NodeFilter makeFilter()\n\t{\n\t\tNodeFilter[] fa = new NodeFilter[3];\n\t\tfa[0] = new HasAttributeFilter(\"HREF\");\n\t\tfa[1] = new TagNameFilter(\"A\");\n\t\tfa[2] = new HasParentFilter(new TagNameFilter(\"H3\"));\n\t\tNodeFilter filter = new AndFilter(fa);\n\t\treturn filter;\n\t}",
"public static FilterBuilder build() {\n return new FilterBuilder();\n }",
"Filter getFilter();",
"public static FilterBuilder filters()\n {\n return new FilterBuilder();\n }",
"CompiledFilter() {\n }",
"public PipelineFilter()\n {\n }",
"@SuppressWarnings(\"unused\")\n\tprivate Filter() {\n\n\t}",
"public Filters() {\n }",
"public LogFilter() {}",
"public FileFilter() {\n this.filterExpression = \"\";\n }",
"public HttpFilter() { }",
"void setFilter(Filter f);",
"BuildFilter defaultFilter();",
"static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 448 */ Global global = new Global(param2String, param2Boolean);\n/* 449 */ return global.isEmpty() ? null : global;\n/* */ }",
"public static ObjectInputFilter createFilter(String param1String) {\n/* 381 */ Objects.requireNonNull(param1String, \"pattern\");\n/* 382 */ return Global.createFilter(param1String, true);\n/* */ }",
"FilterCondition createFilterCondition(int clueNum);",
"@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomFilter();\n }\n return filter;\n }",
"public static ObjectInputFilter createFilter(String param1String) {\n/* 383 */ Objects.requireNonNull(param1String, \"pattern\");\n/* 384 */ return Global.createFilter(param1String, true);\n/* */ }",
"public interface FilterFactory<K, G> extends Serializable\n{\n\t/**\n\t * Creates a set of filters for the given token,tag, and tag-of-previous-token.\n\t * The convention is as follows:\n\t * Let each feature f be a feature that <B>might</B> return non-zero for the given token,tag,previous-tag.\n\t * That feature is encapsulated with a {@link Filter} in a {@link CrfFilteredFeature}. Let's call this filter \"t\".\n\t * For that filter there exist one filter in the set returned by this function, name it \"t'\", such that \"t'\" equals to \"t\".\n\t * \n\t * \n\t * @param sequence A sequence of tokens\n\t * @param tokenIndex An index of a token in that sequence\n\t * @param currentTag A tag for that token\n\t * @param previousTag A tag for the token which immediately precedes that token.\n\t * @return A set of filters as described above.\n\t */\n\tpublic Set<Filter<K, G>> createFilters(K[] sequence, int tokenIndex, G currentTag, G previousTag);\n}",
"public FilterSpec build() {\n return new FilterSpec(this);\n }",
"private FilterPipeline createPipeline() {\n Filter filterZero = createDefaultPatternFilter(0);\n Filter filterTwo = createDefaultPatternFilter(2); \n Sorter sorter = new ShuttleSorter();\n Filter[] filters = new Filter[] {filterZero, filterTwo, sorter};\n FilterPipeline pipeline = new FilterPipeline(filters);\n return pipeline;\n }",
"FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);",
"WithCreate withFilter(EventChannelFilter filter);",
"public FilterCriterion createFilter(String column, Object value, FilterCriterion.FilterType type)\n {\n return new FilterCriterion(column, value, type);\n }",
"public ConcatFilter() {\n super();\n }",
"static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 446 */ Global global = new Global(param2String, param2Boolean);\n/* 447 */ return global.isEmpty() ? null : global;\n/* */ }",
"@Override\n public <T extends Filter> T createFilter(Class<T> clazz) throws ServletException {\n return null;\n }",
"public Input filterBy(Filter filter) {\n JsonArray filters = definition.getArray(FILTERS);\n if (filters == null) {\n filters = new JsonArray();\n definition.putArray(FILTERS, filters);\n }\n filters.add(Serializer.serialize(filter));\n return this;\n }",
"public void addBusinessFilterToCreator(ViewerFilter filter);",
"public ValidatorFilter() {\n\n\t}",
"@JsonCreator\n public Filter(String filterStr) {\n Matcher matcher = FILTER_PATTERN.matcher(filterStr);\n if (matcher.find()) {\n _expression = filterStr;\n _leftOperand = getOperand(matcher.group(1));\n _operator = Operator.fromString(matcher.group(2).replaceAll(\"\\\\s+\", \"\"));\n _rightOperand = getOperand(matcher.group(4));\n } else {\n throw new IllegalArgumentException(\"Illegal filter string pattern: '\" + filterStr + \"'\");\n }\n }",
"public Builder filter(String filter) {\n request.filter = filter;\n return this;\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }",
"public static ObjectInputFilter createFilter2(String param1String) {\n/* 394 */ Objects.requireNonNull(param1String, \"pattern\");\n/* 395 */ return Global.createFilter(param1String, false);\n/* */ }",
"public static ObjectInputFilter createFilter2(String param1String) {\n/* 396 */ Objects.requireNonNull(param1String, \"pattern\");\n/* 397 */ return Global.createFilter(param1String, false);\n/* */ }",
"FeatureHolder filter(FeatureFilter filter);",
"public ObjectFilter()\n\t{\n\t}",
"public SubsetFilter createFilter(Dimension dimension);",
"public Filter(FilterType type, FilterPred pred) {\n this(null, type, pred);\n }",
"public LancasterFilterFactory(Map<String, String> args) {\n super(args);\n\n }",
"public static DataFilter createDefault() {\n\t\tString type = Config.get(Key.LATENCY_FILTER_TYPE);\n\t\tswitch(type) {\n\t\t\tcase \"average\" : \n\t\t\t\treturn new MovingAverageFilter();\n\t\t\tcase \"median\" : \n\t\t\t\treturn new MovingMedianFilter();\n\t\t\tcase \"none\" : \n\t\t\t\treturn new NoFilter();\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid latency filter type in config file\");\n\t\t}\n\t}",
"StandardFilterBuilder standardFilter(int count);",
"void setFilter(String filter);",
"public FileFilter(String expression) {\n this.filterExpression = expression;\n }",
"Get<K, C> addFilter(Filter<K, C> filter);",
"public DDataFilter() {\n filters = new ArrayList<>();\n operator = null;\n value = null;\n externalData = false;\n valueTo = null;\n attribute = ROOT_FILTER;\n }",
"public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}",
"public FilterData() {\n }",
"public FilterWidget( String initalFilter )\n {\n this.initalFilter = initalFilter;\n }",
"public InvertFilter(String name)\n {\n super(name);\n }",
"private DatasetPieChartFilter initPieChartFilter(String title, String filterId, int index, int width, int height) {\n DatasetPieChartFilter filter = new DatasetPieChartFilter(title, filterId, index, width, height) {\n @Override\n public void selectDatasets(boolean noselection) {\n Set<Integer> finalSelectionIds = filterSelectionUnit();\n if (noselection) {\n updateFilters(finalSelectionIds, \"\");\n } else {\n updateFilters(finalSelectionIds, filterId);\n }\n }\n };\n return filter;\n }",
"public OrFileFilter addFilter (FileFilter filter)\n {\n filters.add (filter);\n return this;\n }",
"public EnvelopedSignatureFilter(){\n\n }",
"public static FilterDialogFragment newInstance() {\n FilterDialogFragment addListDialogFragment = new FilterDialogFragment();\n Bundle bundle = new Bundle();\n addListDialogFragment.setArguments(bundle);\n return addListDialogFragment;\n }",
"public abstract Filter<T> filter();",
"FeedbackFilter getFilter();",
"CreateScanFilterResponse createScanFilter(CreateScanFilterRequest request);",
"static public FileFilter nullFilter() {\n return new FileFilter();\n }",
"public ExternalFilter() {\n\t\treset();\n\t\tenable_filter(true);\n\t\tset_sampling_parameter(15915.6);\n\t\tset_chip_model(ISIDDefs.chip_model.MOS6581);\n\t}",
"@Override\n\tpublic String create(Set<String> filterField) {\n\t\treturn null;\n\t}",
"public Filter(String name, FilterType type, FilterPred pred) {\n this(name, type, pred, true);\n }",
"public CompositeFilter(FilteringOperator operator, Filter<T>... filters) {\n\t\tthis.filters = filters;\n\t\tthis.operator = operator;\n\t}",
"public void addFilterToReader(ViewerFilter filter);",
"public BlobFilterDetails() {\n }",
"BrandFilter createBrandFilterWithIdString(final String idStr) {\n\t\tBrandFilter filter = getFilterBean(ContextIdNames.BRAND_FILTER);\n\t\tfilter.initialize(idStr);\n\t\treturn filter;\n\t}",
"protected NullFilterImpl() {\n }",
"private static Filter createFilter(final BundleContext bundleContext, final Class<?>... classes) {\r\n\t\tfinal StringBuilder filter = new StringBuilder();\r\n\t\tif (classes != null) {\r\n\t\t\tif (classes.length > 1) {\r\n\t\t\t\tfilter.append(\"(|\");\r\n\t\t\t}\r\n\t\t\tfor (Class<?> clazz : classes) {\r\n\t\t\t\tfilter.append(\"(\").append(Constants.OBJECTCLASS).append(\"=\").append(clazz.getName()).append(\")\");\r\n\t\t\t}\r\n\t\t\tif (classes.length > 1) {\r\n\t\t\t\tfilter.append(\")\");\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn bundleContext.createFilter(filter.toString());\r\n\t\t} catch (InvalidSyntaxException e) {\r\n\t\t\tthrow new IllegalArgumentException(\"Unexpected InvalidSyntaxException: \" + e.getMessage());\r\n\t\t}\r\n\t}",
"public static FilterBar instance() {\n\t\t\n\t\tif (filterBar == null) filterBar = new FilterBar();\n\t\t\n\t\treturn filterBar;\n\t\t\n\t}",
"private void initFilter() {\r\n if (filter == null) {\r\n filter = new VocabularyConceptFilter();\r\n }\r\n filter.setVocabularyFolderId(vocabularyFolder.getId());\r\n filter.setPageNumber(page);\r\n filter.setNumericIdentifierSorting(vocabularyFolder.isNumericConceptIdentifiers());\r\n }",
"String getFilter();",
"public void addFilterToAttributes(ViewerFilter filter);",
"public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}",
"public void init(FilterConfig config) {}",
"public void addFilter(@NotNull final SceneFilter filter) {\n filters.add(filter);\n }",
"public static Filter buildFromDOM (Element element) throws FilterConstructionException { \r\n Filter filter = null;\r\n\r\n // check if root element's name equals 'filter'\r\n if (!element.getLocalName().equals (\"Filter\"))\r\n throw new FilterConstructionException (\"Name of element does not equal 'Filter'!\"); \r\n \r\n // determine type of Filter (FeatureFilter / ComplexFilter) \r\n Element firstElement = null;\r\n NodeList children = element.getChildNodes (); \r\n for (int i = 0; i < children.getLength (); i++) {\r\n if (children.item (i).getNodeType () == Node.ELEMENT_NODE) {\r\n firstElement = (Element) children.item (i);\r\n }\r\n }\r\n if (firstElement == null) throw new FilterConstructionException (\"Filter Node is empty!\");\r\n \r\n if (firstElement.getLocalName().equals (\"FeatureId\")) {\r\n // must be a FeatureFilter\r\n FeatureFilter fFilter = new FeatureFilter ();\r\n children = element.getChildNodes ();\r\n for (int i = 0; i < children.getLength (); i++) {\r\n if (children.item(i).getNodeType () == Node.ELEMENT_NODE) {\r\n Element fid = (Element) children.item (i);\r\n if (!fid.getLocalName().equals (\"FeatureId\"))\r\n throw new FilterConstructionException (\"Unexpected Element encountered: \" + fid.getLocalName());\r\n fFilter.addFeatureId (FeatureId.buildFromDOM (fid));\r\n }\r\n }\r\n filter = fFilter;\r\n }\r\n else {\r\n // must be a ComplexFilter\r\n children = element.getChildNodes ();\r\n boolean justOne = false;\r\n for (int i = 0; i < children.getLength (); i++) {\r\n if (children.item(i).getNodeType () == Node.ELEMENT_NODE) {\r\n Element operator = (Element) children.item (i);\r\n if (justOne)\r\n throw new FilterConstructionException (\"Unexpected element encountered: \" + operator.getLocalName());\r\n ComplexFilter cFilter = new ComplexFilter (AbstractOperation.buildFromDOM (operator));\r\n filter = cFilter;\r\n justOne = true;\r\n }\r\n }\r\n }\r\n return filter;\r\n }",
"private InputFilter[] createInputFilters() {\n\n InputFilter[] filterArray = new InputFilter[2];\n\n filterArray[0] = new InputFilter.LengthFilter(MAX_WORD_LENGTH);\n filterArray[1] = new InputFilter() {\n @Override\n public CharSequence filter(CharSequence src, int start, int end, Spanned dest, int dstart, int dend) {\n if(src.equals(\"\")){ // for backspace\n return src;\n }\n if(src.toString().matches(\"[a-zA-Z ]+\")){\n return src;\n }\n return \"\";\n }\n };\n\n return filterArray;\n }",
"public VCFFilterHeaderLine(final String name) {\n super(\"FILTER\", name, name);\n }",
"@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Filter filter) {\n return null;\n }",
"public void addFilterToAnotations(ViewerFilter filter);",
"public void addFilterToAnotations(ViewerFilter filter);",
"public void addFilterToCombo(ViewerFilter filter);",
"public void addFilterToComboRO(ViewerFilter filter);",
"public interface Filter {\n\n}",
"public FalseFilter() {\n\t\t//can be ignored\n\t}",
"CategoryFilter createCategoryFilter(final Catalog catalog, final String idStr) {\n\t\tCategoryFilter filter = getFilterBean(ContextIdNames.CATEGORY_FILTER);\n\t\tfilter.setCatalog(catalog);\n\t\tfilter.initialize(idStr);\n\t\treturn filter;\n\t}",
"@Override public Filter getFilter() { return null; }",
"public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}",
"public com.vodafone.global.er.decoupling.binding.request.BalanceFilter createBalanceFilter()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.BalanceFilterImpl();\n }",
"private ProductFilterUtils(){}",
"public Filter condition();",
"void filterChanged(Filter filter);"
]
| [
"0.7644378",
"0.75955623",
"0.7592488",
"0.752606",
"0.7506796",
"0.7326673",
"0.7224866",
"0.72032094",
"0.71838254",
"0.6968975",
"0.6906743",
"0.687787",
"0.68592596",
"0.68262255",
"0.6772591",
"0.6763919",
"0.6742765",
"0.6741797",
"0.6723293",
"0.6693231",
"0.66726494",
"0.66148984",
"0.6612213",
"0.66049916",
"0.6595747",
"0.6580225",
"0.65647554",
"0.6562835",
"0.6561458",
"0.65611684",
"0.65377605",
"0.65252155",
"0.65205336",
"0.65139383",
"0.6512116",
"0.65102184",
"0.648395",
"0.64814824",
"0.64571553",
"0.6451725",
"0.6449652",
"0.64493275",
"0.6439413",
"0.64337623",
"0.64217347",
"0.6411045",
"0.6344317",
"0.63364094",
"0.63215923",
"0.6313769",
"0.6296689",
"0.6256479",
"0.61911243",
"0.61899316",
"0.61822253",
"0.61811346",
"0.61761266",
"0.61490434",
"0.6144669",
"0.61155254",
"0.6105058",
"0.60207844",
"0.60157686",
"0.60064894",
"0.59985316",
"0.5992714",
"0.5976496",
"0.59706974",
"0.59571517",
"0.5947475",
"0.59080565",
"0.5907337",
"0.59059596",
"0.5904264",
"0.59041345",
"0.5902949",
"0.5899614",
"0.58991146",
"0.5888188",
"0.5887782",
"0.58704346",
"0.58548224",
"0.58304757",
"0.5820217",
"0.5809772",
"0.5807276",
"0.5806475",
"0.58038074",
"0.5797071",
"0.5797071",
"0.57953745",
"0.5791005",
"0.5790538",
"0.57885474",
"0.5780717",
"0.57786185",
"0.5767788",
"0.5757272",
"0.5757025",
"0.5755334",
"0.575306"
]
| 0.0 | -1 |
Attempt to parse a command. | public static SMFPartialLogged<SMFMemoryMeshFilterType> parse(
final Optional<URI> file,
final int line,
final List<String> text)
{
Objects.requireNonNull(file, "file");
Objects.requireNonNull(text, "text");
if (text.size() == 4) {
try {
final SMFSchemaName name = SMFSchemaName.of(text.get(0));
final int major = Integer.parseUnsignedInt(text.get(1));
final int minor = Integer.parseUnsignedInt(text.get(2));
final Path path = Paths.get(text.get(3));
return SMFPartialLogged.succeeded(create(
SMFSchemaIdentifier.of(
name,
major,
minor),
path));
} catch (final IllegalArgumentException e) {
return errorExpectedGotValidation(file, line, makeSyntax(), text);
}
}
return errorExpectedGotValidation(file, line, makeSyntax(), text);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void parseCommand(String command){\n\t\tif(command!=null && command.length()>0){\n\t\t\tif(!subMenuFlag){\n\t\t\t\tmainMenuCommand(command);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tsubMenuCommand(command);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Please enter a valid command.\");\n\t\t}\n\t}",
"public Command parse(String command) throws DukeException {\n String[] commandSplit = command.split(\"\\\\s+\", 2);\n String commandWord = commandSplit[0].toLowerCase();\n String desc = \"\";\n if (commandSplit.length == 2) {\n desc = commandSplit[1];\n }\n\n switch (commandWord) {\n case DoneCommand.COMMAND_WORD:\n return doneParse(desc);\n\n case ListCommand.COMMAND_WORD:\n return new ListCommand();\n\n case ToDoCommand.COMMAND_WORD:\n return toDoParse(desc);\n\n case DeadlineCommand.COMMAND_WORD:\n return deadlineParse(desc);\n\n case EventCommand.COMMAND_WORD:\n return eventParse(desc);\n\n case DeleteCommand.COMMAND_WORD:\n return deleteParse(desc);\n\n case FindCommand.COMMAND_WORD:\n return new FindCommand(desc);\n case UpdateCommand.COMMAND_WORD:\n return new UpdateParser(desc).parse();\n case ByeCommand.COMMAND_WORD:\n return new ByeCommand();\n default:\n throw new DukeException(INVALID_COMMAND_MESSAGE);\n }\n }",
"public CommandType parseCommand() {\n try {\n extractCommand();\n extractParameters();\n parameterData = new ParameterParser(commandType, parameters).processParameters();\n executeCommand();\n } catch (IllegalCommandException e) {\n commandUi.printInvalidCommand();\n } catch (IndexOutOfBoundsException e) {\n commandUi.printInvalidParameters();\n } catch (MissingTaskLiteralException e) {\n commandUi.printMissingLiteral(e.getMessage());\n } catch (NumberFormatException e) {\n commandUi.printTaskDoneNotInteger();\n } catch (DateTimeFormatException e) {\n commandUi.printDateTimeFormatIncorrect();\n }\n\n return commandType;\n }",
"public static Command parse(String command) throws DukeException {\n // remove trailing/leading whitespace and split by whitespace(s)\n command = command.strip();\n String[] commands = command.split(\"[ ]+\");\n String[] args = Arrays.copyOfRange(commands, 1, commands.length);\n\n assert args.length == commands.length - 1 : \"Incorrect array copy\";\n\n switch (commands[0]) {\n case \"todo\":\n return parseTodoCommand(args);\n case \"event\":\n return parseEventCommand(args);\n case \"deadline\":\n return parseDeadlineCommand(args);\n case \"find\":\n return parseFindCommand(args);\n case \"done\":\n return parseDoneCommand(args);\n case \"delete\":\n return parseDeleteCommand(args);\n case \"list\":\n return parseListCommand(args);\n case \"remindme\":\n return parseRemindCommand(args);\n case \"bye\":\n return parseBye(args);\n default:\n throw new DukeMissingDescriptionException(\"Hmm... I'm sorry, but I don't know what that means...\");\n }\n }",
"public static Command parse(String fullCommand) throws DukeException {\n String[] arr = fullCommand.split(\"\\\\s+\", 2);\n String command = arr[0];\n if (command.equals(\"todo\")) {\n if (arr.length == 1) {\n throw new DukeException(\"OOPS!!! The description of a todo cannot be empty.\");\n } else {\n Task task = new Todo(arr[1]);\n return new AddCommand(task);\n }\n } else if (command.equals(\"deadline\")) {\n if (arr.length == 1) {\n throw new DukeException(\"OOPS!!! The description of a deadline cannot be empty.\");\n } else {\n String[] deadlineArr = arr[1].split(\" /by \", 2);\n if (deadlineArr.length == 1) {\n throw new DukeException(\"OOPS!!! You forgot to specify a date/time for the deadline.\");\n } else {\n Task task = new Deadline(deadlineArr[0], deadlineArr[1]);\n return new AddCommand(task);\n }\n }\n } else if (command.equals(\"event\")) {\n if (arr.length == 1) {\n throw new DukeException(\"OOPS!!! The description of an event cannot be empty.\");\n } else {\n String[] eventArr = arr[1].split(\" /at \", 2);\n if (eventArr.length == 1) {\n throw new DukeException(\"OOPS!!! You forgot to specify a date/time for the event.\");\n } else {\n Task task = new Event(eventArr[0], eventArr[1]);\n return new AddCommand(task);\n }\n }\n } else if (command.equals(\"done\")) {\n String[] array = arr[1].split(\"\\\\s+\");\n int[] options = new int[array.length];\n for (int i = 0; i < options.length; i++) {\n options[i] = Integer.parseInt(array[i]);\n }\n return new DoneCommand(options);\n } else if (command.equals(\"delete\")) {\n String[] array = arr[1].split(\"\\\\s+\");\n int[] options = new int[array.length];\n for (int i = 0; i < options.length; i++) {\n options[i] = Integer.parseInt(array[i]);\n }\n return new DeleteCommand(options);\n } else if (command.equals(\"list\")) {\n return new ListCommand();\n } else if (command.equals(\"find\")) {\n return new FindCommand(arr[1]);\n } else if (command.equals(\"bye\")) {\n return new ExitCommand();\n } else {\n throw new DukeException(\"OOPS!!! I'm sorry, but I don't know what that means :-(\");\n }\n }",
"private Command parse() throws ParseException {\n next();\n expect(Token.COMMAND);\n cmd = new Command(text);\n next();\n while (!((token == Token.WHERE) || (token == Token.RETURN) || (token == Token.EOL))) {\n param();\n }\n if (token == Token.WHERE) {\n where();\n }\n if (token == Token.RETURN) {\n returns();\n }\n expect(Token.EOL);\n return cmd;\n }",
"public static String parse(String command) throws IOException {\n assert tasks.size() >= 0;\n\n if (command.equals(\"bye\")) {\n return executeExit();\n } else if (command.equals(\"list\")) {\n return executeList();\n } else if (command.equals(\"yes\") || command.equals(\"no\")) {\n return executeDuplicateHandling(command);\n } else if (command.startsWith(\"done\")) {\n return executeDone(command);\n } else if (command.startsWith(\"delete\")) {\n return executeDelete(command);\n } else if (command.startsWith(\"find\")) {\n return executeFind(command);\n } else {\n return executeTask(command);\n }\n }",
"public Command parse(String fullCommand) throws InvalidInputException, UnknownException {\n checkDelimiters(fullCommand);\n String[] tokens = fullCommand.split(\"\\\\s+\");\n\n // If tokenized command returns an empty array (entered a string with only white spaces),\n // raise an exception\n if (tokens.length == 0) {\n throw new InvalidInputException(InvalidInputException.Type.EMPTY_STRING);\n }\n // If first token (command) is empty, there are empty spaces typed in at the front - so we remove it\n if (tokens[0].isEmpty()) {\n tokens = Arrays.copyOfRange(tokens, 1, tokens.length);\n // Check again to make sure it is not empty after removing first element\n if (tokens.length == 0) {\n throw new InvalidInputException(InvalidInputException.Type.EMPTY_STRING);\n }\n }\n\n HashMap<String, String> arguments = new HashMap<>();\n // Conver input command to lowercase to make it case insensitive\n String command = tokens[0].toLowerCase();\n arguments.put(\"command\", command);\n\n // Default key is \"payload\"\n String key = \"payload\";\n ArrayList<String> values = new ArrayList<>();\n for (int i = 1; i < tokens.length; ++i) {\n String token = tokens[i];\n // Check whether this token is a new key\n if (!token.isEmpty() && token.charAt(0) == '/') {\n // If it is, save current value into the map and start a new k-v pair\n arguments.put(key, String.join(DELIMITER, values));\n key = token.substring(1);\n values.clear();\n } else {\n // If not, append this token to the end of the value\n values.add(token);\n }\n }\n\n // Store the last k-v pair\n // Store even when `values` is empty, as that indicates an empty string\n arguments.put(key, String.join(DELIMITER, values));\n\n // Initialize a respective class from the command (by capitalize first character)\n String className = command + \"Command\";\n className = className.substring(0, 1).toUpperCase() + className.substring(1);\n className = Constants.COMMAND_CLASS_PREFIX + className;\n try {\n Class<?> cls = Class.forName(className);\n Constructor<?> constructor = cls.getDeclaredConstructor(Ui.class, Data.class, HashMap.class);\n Object obj = constructor.newInstance(ui, data, arguments);\n return (Command) obj;\n } catch (ClassNotFoundException classNotFoundException) {\n // *Command class cannot be found!\n throw new InvalidInputException(InvalidInputException.Type.UNKNOWN_COMMAND, classNotFoundException);\n } catch (Exception exception) {\n // Some other weird error occurred here (e.g. dev bugs)\n // We should NEVER reach this block, if we do, log under the highest level\n throw new UnknownException(exception);\n }\n }",
"public static Command parseCommand(String command) throws DukeException {\n try {\n String[] args = getArgs(command.trim());\n String commandWord = args[0];\n boolean isOneWord = isOneWord(command.trim());\n\n if (isOneWord) {\n switch (commandWord.toLowerCase()) {\n case \"list\":\n return new ListCommand();\n case \"bye\":\n return new ExitCommand();\n case \"listtag\":\n return new ListTagCommand();\n default:\n throw new DukeException(MESSAGE_INVALID_INPUT);\n }\n\n } else {\n switch (commandWord.toLowerCase()) {\n case \"todo\":\n return new AddTodo(args[1]);\n case \"deadline\":\n return new AddDeadline(args[1]);\n case \"event\":\n return new AddEvent(args[1]);\n case \"done\":\n return new DoneCommand(args[1]);\n case \"delete\":\n return new DeleteCommand(args[1]);\n case \"find\":\n return new FindCommand(args[1]);\n case \"findtag\":\n return new FindTagCommand(args[1]);\n case \"addtag\":\n return new AddTagCommand(args[1]);\n case \"deltag\":\n return new DeleteTagCommand(args[1]);\n default:\n throw new DukeException(MESSAGE_INVALID_INPUT);\n }\n }\n\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new DukeException(MESSAGE_INVALID_INPUT);\n }\n }",
"public static Command parse(String input) throws DukeException {\r\n String[] inputArr = input.split(\" \", 2);\r\n String command = inputArr[0];\r\n\r\n switch (command) {\r\n case \"bye\":\r\n return new ExitCommand();\r\n case \"list\":\r\n return new ListCommand();\r\n case \"done\":\r\n try {\r\n return new DoneCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n mark as done!\");\r\n }\r\n case \"delete\":\r\n try {\r\n return new DeleteCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n delete!\");\r\n }\r\n case \"todo\":\r\n try {\r\n return new AddCommand(new Todo(inputArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"The description of a todo cannot be empty.\");\r\n }\r\n case \"deadline\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /by \");\r\n return new AddCommand(new Deadline(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n deadline <description> /by <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"event\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /at \");\r\n return new AddCommand(new Event(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n event <description> /at <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"find\":\r\n try {\r\n return new FindCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify what you are searching for!\");\r\n }\r\n default:\r\n throw new DukeException(\"I'm sorry, but I don't know what that means!\");\r\n }\r\n }",
"private Command parseCommand(String s) {\n\t\tif (constantMatch.matcher(s).matches()) {\n\t\t\treturn new Constant(Double.parseDouble(s));\n\t\t}\n\t\tif (variableMatch.matcher(s).matches()) {\n\t\t\treturn myDictionary.getVariable(s);\n\t\t}\n\t\tif (s.equals(START_LIST)) {\n\t\t\treturn createListCommand();\n\t\t}\n\t\tif(s.equals(START_GROUP)) {\n\t\t\tCommand c = getCommandOrFunction(codeReader.next());\n\t\t\tif(c.howManyArguments() <= 0) {\n\t\t\t\tthrow new SLogoException(\"Attempting to group command that takes no arguments\");\n\t\t\t}\n\t\t\tcreateGroupCommand(c); \n\t\t\treturn c;\n\t\t}\n\t\treturn findTrueCommand(s);\n\t}",
"private Command parseCommand(String input) {\r\n\r\n String[] splittedInput = input.toUpperCase().split(\" \");\r\n String command = splittedInput[0];\r\n\r\n switch (command) {\r\n case \"PLACE\":\r\n return new PlaceCommand(input);\r\n case \"MOVE\":\r\n return new MoveCommand();\r\n case \"LEFT\":\r\n return new RotateLeftCommand();\r\n case \"RIGHT\":\r\n return new RotateRightCommand();\r\n case \"REPORT\":\r\n return new ReportCommand();\r\n default:\r\n return new IgnoreCommand();\r\n }\r\n }",
"public Command parse(String inputCommand) {\n Matcher matcher = BASIC_COMMAND_FORMAT.matcher(inputCommand.trim());\n if (!matcher.matches()) {\n return new IncorrectCommand(\"This is a incorrect format, \"\n + \" you may type the list to see all the commands.\"\n + \" the command should not contain the separator '|'\");\n }\n\n String commandWord = matcher.group(\"commandWord\");\n String arguments = matcher.group(\"arguments\");\n\n switch (commandWord) {\n case AddCommand.COMMAND_WORD:\n return prepareAdd(arguments);\n case ListCommand.COMMAND_WORD:\n return prepareList(arguments);\n\n case DoneCommand.COMMAND_WORD:\n return prepareDone(arguments);\n case DueCommand.COMMAND_WORD:\n return prepareDue(arguments);\n case DeleteCommand.COMMAND_WORD:\n return prepareDelete(arguments);\n\n case SetCommand.COMMAND_WORD:\n return prepareSet(arguments);\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n case ProjModeCommand.COMMAND_WORD:\n return new ProjModeCommand();\n\n // case HelpCommand.COMMAND_WORD:\n // default:\n // return new HelpCommand();\n\n default:\n return new IncorrectCommand(\"IncorrectCommand\");\n }\n\n }",
"protected Command parseCommandString(String commandString) {\n DslParser parser = new DslParser(new DslLexer(new StringReader(commandString)));\n\n Object parseResult = null;\n\n try {\n parseResult = parser.parse().value;\n } catch (Exception e) {\n //environment.error(String.format(\"Invalid command: \\\"%s\\\"\", command_string));\n }\n\n if (parseResult instanceof Command) {\n return (Command)parseResult;\n } else {\n //environment.error(String.format(\"Expected command object but got \\\"%s\\\"\",\n // parseResult));\n return new NullCommand();\n }\n }",
"public static Command parseCommand(String response) {\n String[] command = response.split(\" \", 10);\n switch (command[0]) {\n case \"list\":\n return new ListCommand(command);\n case \"done\":\n case \"undo\":\n return new DoneUndoCommand(command);\n case \"remove\":\n return new RemoveCommand(command);\n case \"add\":\n return new AddCommand(command, response);\n case \"bye\":\n return new ByeCommand();\n case \"help\":\n return new HelpCommand();\n case \"find\":\n return new FindCommand(command, response);\n case \"update\":\n return new UpdateCommand(command);\n default:\n System.out.println(\"Im sorry i did not catch that maybe these instructions below will help\"\n + System.lineSeparator() + Interface.lineBreak);\n return new HelpCommand();\n }\n }",
"public static Command parse(String fullCommand) throws DukeException {\n\n String firstWord = null;\n if(fullCommand.contains(\" \")) {\n firstWord = fullCommand.substring(0, fullCommand.indexOf(\" \"));\n }\n\n if (fullCommand.equals(\"bye\")) {\n return new ExitCommand();\n } else if (fullCommand.equals(\"list\")) {\n return new ListCommand();\n } else if (firstWord.equals(\"todo\")) {\n return new AddCommand(Command.Type.TODO,fullCommand);\n } else if (firstWord.equals(\"deadline\")) {\n return new AddCommand(Command.Type.DEADLINE,fullCommand);\n } else if (firstWord.equals(\"event\")) {\n return new AddCommand(Command.Type.EVENT,fullCommand);\n } else if (firstWord.equals(\"done\")) {\n return new DoneCommand(fullCommand);\n } else if (firstWord.equals(\"find\")) {\n return new FindCommand(fullCommand);\n } else if (firstWord.equals(\"delete\")) {\n return new DeleteCommand(fullCommand);\n } else {\n throw new DukeException(\" ☹ OOPS!! I'm sorry, but I don't know what that means :-(\");\n }\n }",
"private static void parse(String[] command, Player player) {\n\t\t\n\t\t\n\t}",
"public static Command parse(String str) throws DukeException {\n\n String[] arr = str.split(\" \", 2);\n if (arr.length < 1) {\n throw new DukeException(\"No command was given.\");\n }\n String firstWord = arr[0];\n if (str.equalsIgnoreCase(\"bye\")) {\n return new ExitCommand();\n } else if (str.equalsIgnoreCase(\"list\")) {\n return new ListCommand();\n } else {\n Action action = parseFirstWord(firstWord.toLowerCase());\n\n if (arr.length < 2 && (action == Action.Done || action == Action.Delete)) {\n throw new DukeException(\"duke.task.Task number for \" + firstWord + \" is not given.\");\n } else if (arr.length < 2 || arr[1].isBlank()) {\n throw new DukeException(\"The description of \" + firstWord + \" cannot be empty\");\n } else {\n return actionToCommand(action, arr[1]);\n }\n }\n }",
"static Command parse(String text) throws ParseException {\n Parser parser = new Parser(text);\n return parser.parse();\n }",
"public void parseCommand(byte command) throws Exception {\r\n\r\n\t switch(command){\r\n\t case Constants.ROTATE_LEFT:\r\n\t rotateLeft();\r\n\t break;\r\n\t case Constants.ROTATE_RIGHT:\r\n\t rotateRight();\r\n\t break;\r\n\t case Constants.MOVE:\r\n\t move();\r\n\t break;\r\n\t default:\r\n\t throw new Exception(\"Invalid signal\");\r\n\t }\r\n\t }",
"public Command parseCommand(String userInput) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n\n // ========================== Easy Travel Commands =========================\n case HelpCommand.COMMAND_WORD:\n return new HelpCommand();\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n // ========================== Trip Commands =========================\n case SetTripCommand.COMMAND_WORD:\n return new SetTripCommandParser().parse(arguments);\n\n case DeleteTripCommand.COMMAND_WORD:\n return new DeleteTripCommand();\n\n case CheckStatusCommand.COMMAND_WORD:\n return new CheckStatusCommand();\n\n case EditBudgetCommand.COMMAND_WORD:\n return new EditBudgetCommandParser().parse(arguments);\n\n case RenameCommand.COMMAND_WORD:\n return new RenameCommandParser().parse(arguments);\n // ========================== Schedule Commands =========================\n case ScheduleCommand.COMMAND_WORD:\n return new ScheduleCommandParser().parse(arguments);\n\n case UnscheduleCommand.COMMAND_WORD:\n return new UnscheduleCommandParser().parse(arguments);\n\n case ListScheduleCommand.COMMAND_WORD:\n return new ListScheduleCommand();\n\n // ========================== Fixed Expense Commands =========================\n case AddFixedExpenseCommand.COMMAND_WORD:\n return new AddFixedExpenseCommandParser().parse(arguments);\n\n case ClearFixedExpenseCommand.COMMAND_WORD:\n return new ClearFixedExpenseCommand();\n\n case DeleteFixedExpenseCommand.COMMAND_WORD:\n return new DeleteFixedExpenseCommandParser().parse(arguments);\n\n case EditFixedExpenseCommand.COMMAND_WORD:\n return new EditFixedExpenseCommandParser().parse(arguments);\n\n case CheckBudgetStatus.COMMAND_WORD:\n return new CheckBudgetStatus();\n\n case SortFixedExpenseCommand.COMMAND_WORD:\n return new SortFixedExpenseCommandParser().parse(arguments);\n\n case ListFixedExpenseCommand.COMMAND_WORD:\n return new ListFixedExpenseCommand();\n\n // ========================== Transport Booking Commands =========================\n case AddTransportBookingCommand.COMMAND_WORD:\n return new AddTransportBookingCommandParser().parse(arguments);\n\n case EditTransportBookingCommand.COMMAND_WORD:\n return new EditTransportBookingCommandParser().parse(arguments);\n\n case DeleteTransportBookingCommand.COMMAND_WORD:\n return new DeleteTransportBookingCommandParser().parse(arguments);\n\n case ClearTransportBookingCommand.COMMAND_WORD:\n return new ClearTransportBookingCommand();\n\n case SortTransportBookingCommand.COMMAND_WORD:\n return new SortTransportBookingCommandParser().parse(arguments);\n\n case ListTransportBookingCommand.COMMAND_WORD:\n return new ListTransportBookingCommand();\n\n // ========================== Packing List Commands =========================\n case AddItemCommand.COMMAND_WORD:\n return new AddItemCommandParser().parse(arguments);\n\n case AddPresetCommand.COMMAND_WORD:\n return new AddPresetCommandParser().parse(arguments);\n\n case CheckItemCommand.COMMAND_WORD:\n return new CheckItemCommandParser().parse(arguments);\n\n case ClearItemCommand.COMMAND_WORD:\n return new ClearItemCommand();\n\n case DeleteItemCommand.COMMAND_WORD:\n return new DeleteItemCommandParser().parse(arguments);\n\n case EditItemCommand.COMMAND_WORD:\n return new EditItemCommandParser().parse(arguments);\n\n case FindItemCommand.COMMAND_WORD:\n return new FindItemCommandParser().parse(arguments);\n\n case FindItemCategoryCommand.COMMAND_WORD:\n return new FindItemCategoryCommandParser().parse(arguments);\n\n case UncheckItemCommand.COMMAND_WORD:\n return new UncheckItemCommandParser().parse(arguments);\n\n case ListItemCommand.COMMAND_WORD:\n return new ListItemCommand();\n\n case ListPresetCommand.COMMAND_WORD:\n return new ListPresetCommand();\n\n case SortItemCommand.COMMAND_WORD:\n return new SortItemCommandParser().parse(arguments);\n\n\n // ========================== Activity Commands =========================\n case AddActivityCommand.COMMAND_WORD:\n return new AddActivityCommandParser().parse(arguments);\n\n case DeleteActivityCommand.COMMAND_WORD:\n return new DeleteActivityCommandParser().parse(arguments);\n\n case ClearActivityCommand.COMMAND_WORD:\n return new ClearActivityCommand();\n\n case EditActivityCommand.COMMAND_WORD:\n return new EditActivityCommandParser().parse(arguments);\n\n case FindActivityCommand.COMMAND_WORD:\n return new FindActivityCommandParser().parse(arguments);\n\n case FindActivityTagCommand.COMMAND_WORD:\n return new FindActivityTagCommandParser().parse(arguments);\n\n case ListActivityCommand.COMMAND_WORD:\n return new ListActivityCommand();\n\n case SortActivityCommand.COMMAND_WORD:\n return new SortActivityCommandParser().parse(arguments);\n\n // ========================== Accommodation Commands =========================\n case AddAccommodationBookingCommand.COMMAND_WORD:\n return new AddAccommodationBookingCommandParser().parse(arguments);\n\n case ClearAccommodationBookingCommand.COMMAND_WORD:\n return new ClearAccommodationBookingCommand();\n\n case DeleteAccommodationBookingCommand.COMMAND_WORD:\n return new DeleteAccommodationBookingCommandParser().parse(arguments);\n\n case EditAccommodationBookingCommand.COMMAND_WORD:\n return new EditAccommodationBookingCommandParser().parse(arguments);\n\n case SortAccommodationBookingCommand.COMMAND_WORD:\n return new SortAccommodationBookingParser().parse(arguments);\n\n case ListAccommodationBookingCommand.COMMAND_WORD:\n return new ListAccommodationBookingCommand();\n\n // ========================== Invalid Commands =========================\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n }\n }",
"public static Commands parse(String fullCommand) throws InvalidCommandException {\n String[] inputs = fullCommand.split(\"\\\\s+\", 2);\n String commandType = inputs[0].trim().toUpperCase();\n checkCommands(commandType);\n return Commands.valueOf(commandType);\n }",
"@Test\n\tpublic void parseCommandTest() {\n\t\tassertFalse(myManager.parseCommand(\"quit\"));\n\t\tassertFalse(myManager.parseCommand(\"Quit\"));\n\t\tassertFalse(myManager.parseCommand(\"q uit\"));\n\t\t\n\t\tassertTrue(myManager.parseCommand(\"new job\"));\n\t\tassertTrue(myManager.parseCommand(\"NEW job\"));\n\t\tassertTrue(myManager.parseCommand(\"new\"));\n\t\tassertFalse(myManager.parseCommand(\"new jobzo\"));\n\t}",
"public static Action parseCommand(String sentence) throws DukeException {\n if (sentence.isEmpty()) {\n throw new EmptyInputException(\"Empty input! Try again (o|o)\");\n } else if (sentence.equals(\"bye\")) {\n return Action.BYE;\n } else if (sentence.equals(\"list\")) {\n return Action.LIST;\n } else if (sentence.startsWith(\"done\")) {\n return Action.MARK_AS_DONE;\n } else if (sentence.startsWith(\"todo\")) {\n return Action.CREATE_TODO;\n } else if (sentence.startsWith(\"deadline\")) {\n return Action.CREATE_DEADLINE;\n } else if (sentence.startsWith(\"event\")) {\n return Action.CREATE_EVENT;\n } else if (sentence.startsWith(\"delete\")) {\n return Action.DELETE;\n } else if (sentence.startsWith(\"clear\")) {\n return Action.CLEAR;\n } else if (sentence.startsWith(\"find\")) {\n return Action.FIND;\n } else {\n throw new IllegalInputException(\"☹ OOPS!!! I'm sorry, but I don't know what that means :-( \\nPlease try again!\");\n }\n }",
"public void parse() {\n if (commandSeparate.length == 1) {\n parseTaskType();\n } else if (commandSeparate.length == 2) {\n parseTaskType();\n index = commandSeparate[1];\n taskName = commandSeparate[1];\n } else {\n parseTaskType();\n parseTaskName();\n parseTaskDate();\n }\n }",
"final public void basicCommand() throws ParseException {\n if (jj_2_75(4)) {\n if (jj_2_55(4)) {\n jj_consume_token(MOVE);\n numero();\n } else if (jj_2_56(4)) {\n jj_consume_token(RIGHT);\n numero();\n } else if (jj_2_57(4)) {\n jj_consume_token(LEFT);\n numero();\n } else if (jj_2_58(4)) {\n jj_consume_token(ROTATE);\n numero();\n } else if (jj_2_59(4)) {\n jj_consume_token(DROP);\n numero();\n } else if (jj_2_60(4)) {\n jj_consume_token(FREE);\n numero();\n } else if (jj_2_61(4)) {\n jj_consume_token(PICK);\n numero();\n } else if (jj_2_62(4)) {\n jj_consume_token(POP);\n numero();\n } else if (jj_2_63(4)) {\n jj_consume_token(BLOCKEDP);\n } else if (jj_2_64(4)) {\n jj_consume_token(NOP);\n } else if (jj_2_65(4)) {\n jj_consume_token(LOOK);\n if (jj_2_49(4)) {\n jj_consume_token(N);\n } else if (jj_2_50(4)) {\n jj_consume_token(E);\n } else if (jj_2_51(4)) {\n jj_consume_token(W);\n } else if (jj_2_52(4)) {\n jj_consume_token(S);\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n } else if (jj_2_66(4)) {\n jj_consume_token(CHECK);\n if (jj_2_53(4)) {\n jj_consume_token(C);\n } else if (jj_2_54(4)) {\n jj_consume_token(B);\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n numero();\n } else if (jj_2_67(4)) {\n block();\n } else if (jj_2_68(4)) {\n repeat();\n } else if (jj_2_69(4)) {\n conditional();\n } else if (jj_2_70(4)) {\n define();\n } else if (jj_2_71(4)) {\n function();\n } else if (jj_2_72(4)) {\n funcall();\n } else if (jj_2_73(4)) {\n varcall();\n } else {\n jj_consume_token(-1);\n throw new ParseException();\n }\n } else {\n label_13:\n while (true) {\n if (jj_2_74(4)) {\n ;\n } else {\n break label_13;\n }\n jj_consume_token(34);\n }\n }\n }",
"@Override\n public Command parseCommand(String commandText, ViewController viewController, Cli cli) throws InvalidCommandException {\n\n String prefix = \"\";\n String suffix = \"\";\n\n for (int i = 0;i<commandText.length();i++){\n if (commandText.charAt(i) != ' '){\n prefix = prefix + commandText.charAt(i);\n } else {\n for (i++;i<commandText.length();i++)\n suffix = suffix + commandText.charAt(i);\n }\n }\n\n\n if (prefix.equals(\"\"))\n throw new InvalidCommandException();\n\n switch(prefix){\n case \"exit\" : {\n return new ExitCommand();\n }\n case \"help\" : {\n return new HelpCommand();\n }\n case \"showGameboard\" : {\n return new ShowGameBoardCommand(cli);\n }\n case \"showMarket\" : {\n return new ShowMarketCommand(cli);\n }\n case \"showPlayer\" : {\n\n int n = 0;\n int temp;\n boolean found = false;\n\n for (int i = 0; i < suffix.length() && !found; i++) {\n if ( suffix.charAt(i) != ' '){\n temp = suffix.charAt(i) -'0';\n if (temp < 0 || temp > 9)\n throw new InvalidCommandException();\n n = temp;\n found = true;\n }\n\n }\n if (n < 1 || n > 4)\n throw new InvalidCommandException();\n return new ShowPlayerCommand(n, viewController);\n\n }\n case \"showProductionDecks\" : {\n return new ShowProductionDeckCommand(cli);\n }\n case \"showReserve\" : {\n return new ShowReserveCommand(cli);\n }\n default: {\n throw new InvalidCommandException();\n }\n }\n\n }",
"private void parseCommand(String line) throws IllegalArgumentException {\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tString commandString;\n\t\tif(tokens.length == 4) {\n\t\t\tcommandString = tokens[2] + \" \" + tokens[3];\n\t\t}\n\t\telse if(tokens.length == 3) {\n\t\t\tcommandString = tokens[2];\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"Invalid command argument\");\n\t\t}\n\t\tthis.registerCommand(tokens[1].charAt(0), commandString);\n\t}",
"public ArrayList<Command> parseCommand(String command) throws InvalidCommandException {\n\n\n\t\tArrayList<Command> cmds = new ArrayList<Command>();\n\t\tString cmd;\n\t\tString[] text;\n\n\t\tArrayList<Parameter> parameters = new ArrayList<Parameter>();\n\n\t\tint indexOfFirstSpace = 0;\n\t\tint indexOfFirstInvertedSlash = 0;\n\t\tboolean passFirstSpace = false;\n\n\t\t// check and find the first space and slash.\n\t\tfor (int i = 0; i < command.length(); i++) {\n\t\t\tif (command.charAt(i) == ' ' && !passFirstSpace) {\n\t\t\t\tindexOfFirstSpace = i;\n\t\t\t\tpassFirstSpace = true;\n\t\t\t} else if (command.charAt(i) == INVERTED_SLASH) {\n\t\t\t\tindexOfFirstInvertedSlash = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tindexOfFirstSpace = getEquivalentIndexForCommandWithoutParameter(command, indexOfFirstSpace);\n\n\t\tif (indexOfFirstSpace == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tcmd = command.substring(0, indexOfFirstSpace);\n\t\tint cmdType = mapCommandType(cmd);\n\n\t\tif (cmdType == ERROR_COMMAND_TYPE) {\n\t\t\tthrow new InvalidCommandException(command);\n\t\t}\n\n\t\tif (!command.contains(VERTICAL_DASH)) {\n\t\t\tperformSmartParsing(command, parameters);\n\t\t}\n\n\t\ttext = extractTextAndPerformParameterParsing(command, parameters, indexOfFirstSpace, indexOfFirstInvertedSlash);\n\t\tif (text != null) {\n\t\t\tfor (String textEntry : text) {\n\t\t\t\tcmds.add(new Command(cmdType, trimOffDateIfAny(textEntry), parameters));\n\n\t\t\t}\n\t\t} else {\n\t\t\tcmds.add(new Command(cmdType, \"\", parameters));\n\t\t}\n\n\t\treturn cmds;\n\t}",
"private void extractCommand() throws IllegalCommandException {\n if (userInput.contentEquals(COMMAND_WORD_BYE)) {\n commandType = CommandType.BYE;\n } else if (userInput.startsWith(COMMAND_WORD_LIST)) {\n commandType = CommandType.LIST;\n } else if (userInput.startsWith(COMMAND_WORD_DONE)) {\n commandType = CommandType.DONE;\n } else if (userInput.startsWith(COMMAND_WORD_TODO)) {\n commandType = CommandType.TODO;\n } else if (userInput.startsWith(COMMAND_WORD_DEADLINE)) {\n commandType = CommandType.DEADLINE;\n } else if (userInput.startsWith(COMMAND_WORD_EVENT)) {\n commandType = CommandType.EVENT;\n } else if (userInput.startsWith(COMMAND_WORD_DELETE)) {\n commandType = CommandType.DELETE;\n } else if (userInput.startsWith(COMMAND_WORD_FIND)) {\n commandType = CommandType.FIND;\n } else if (userInput.contentEquals(COMMAND_WORD_HELP)) {\n commandType = CommandType.HELP;\n } else {\n throw new IllegalCommandException();\n }\n }",
"@Override\n public void execute(String commandText) throws Exception {\n parse(commandText);\n }",
"private void parseAndExecuteCommand(RawCommand command, GamePlayer player) {\n String commandSting = command.getCommand();\n\n String[] commandLine = commandSting.split(\",\");\n\n DoNothingCommand doNothingCommand = new DoNothingCommand();\n\n TowerDefensePlayer towerDefensePlayer = (TowerDefensePlayer) player;\n\n if (commandLine.length == 1) {\n doNothingCommand.performCommand(towerDefenseGameMap, player);\n return;\n }\n if (commandLine.length != 3) {\n doNothingCommand.performCommand(towerDefenseGameMap, player);\n towerDefenseGameMap.addErrorToErrorList(String.format(\n \"Unable to parse command expected 3 parameters, got %d\", commandLine.length), towerDefensePlayer);\n }\n try {\n int positionX = Integer.parseInt(commandLine[0]);\n int positionY = Integer.parseInt(commandLine[1]);\n BuildingType buildingType = BuildingType.values()[Integer.parseInt(commandLine[2])];\n\n new PlaceBuildingCommand(positionX, positionY, buildingType).performCommand(towerDefenseGameMap, player);\n } catch (NumberFormatException e) {\n doNothingCommand.performCommand(towerDefenseGameMap, player);\n towerDefenseGameMap.addErrorToErrorList(String.format(\n \"Unable to parse command entries, all parameters should be integers. Received:%s\",\n commandSting), towerDefensePlayer);\n } catch (IllegalArgumentException e) {\n doNothingCommand.performCommand(towerDefenseGameMap, player);\n towerDefenseGameMap.addErrorToErrorList(String.format(\n \"Unable to parse building type: Expected 0[Defense], 1[Attack], 2[Energy]. Received:%s\",\n commandLine[2]), towerDefensePlayer);\n } catch (InvalidCommandException e) {\n doNothingCommand.performCommand(towerDefenseGameMap, player);\n towerDefenseGameMap.addErrorToErrorList(\n \"Invalid command received: \" + e.getMessage(), towerDefensePlayer);\n } catch (IndexOutOfBoundsException e) {\n doNothingCommand.performCommand(towerDefenseGameMap, player);\n towerDefenseGameMap.addErrorToErrorList(String.format(\n \"Out of map bounds, X:%s Y: %s\", commandLine[0], commandLine[1]), towerDefensePlayer);\n }\n }",
"public static Command parse(String cmdline) throws ShellException {\r\n\t\tint commandIndex = 0;\r\n\t\tCommand[] possibleCommands = new Command[3];\r\n\t\tpossibleCommands[0] = new CallCommand(cmdline);\r\n\t\tpossibleCommands[1] = new SequenceCommand(cmdline);\r\n\t\tpossibleCommands[2] = new PipeCommand(cmdline);\r\n\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tpossibleCommands[commandIndex].parse();\r\n\t\t\t\treturn possibleCommands[commandIndex];\r\n\t\t\t} catch (ShellException e) {\r\n\t\t\t\tif (++commandIndex == possibleCommands.length) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t} else if (e.getMessage().contains(SequenceCommand.MISSING_ARG)) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (StackOverflowError soe) {\r\n\t\t\t\tthrow new ShellException(soe + \"Invalid command for parsing\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Command parse(String[] s) {\n\t\tif (s.length==1 && s[0].equalsIgnoreCase(\"HELP\"))\n\t\t\treturn new Help(); \n\t\telse return null;\n\t}",
"public static Command parser(String input) {\r\n\t\tCommand command;\r\n\t\tif (input.equals(\"\")) {\r\n\t\t\treturn new CommandInvalid(\"User input cannot be empty\");\r\n\t\t}\r\n\r\n\t\tif ((command = parserAdd(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserEdit(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserShow(input)) != null) {\r\n\t\t\tcurrent_status = SHOW_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserExit(input)) != null) {\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserDelete(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserSave(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserClear(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserUndo(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserOpen(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserCheck(input)) != null) {\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserSearch(input)) != null) {\r\n\t\t\tcurrent_status = SEARCH_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserRedo(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserHelp(input)) != null) {\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserDisplayAll(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserSort(input)) != null) {\r\n\t\t\tcurrent_status = SORT_STATE;\r\n\t\t\treturn command;\r\n\t\t}\r\n\t\treturn new CommandInvalid(\"Invalid Command. Please check 'Help' for proper input.\");\r\n\t}",
"public Command parse(String userInput, TaskList taskList) throws CommandException {\n String fullInput = parseShortcutCommandAndDetails(userInput);\n String[] commandAndDetails = fullInput.split(COMMAND_WORD_DELIMITER, 2);\n String commandType = commandAndDetails[0];\n String taskInfo = \"\";\n if (commandAndDetails.length > 1) {\n taskInfo = commandAndDetails[1];\n }\n int namePos = taskInfo.indexOf(NAME_DELIMITER);\n int timePos = taskInfo.indexOf(TIME_DELIMITER);\n int durationPos = taskInfo.indexOf(DURATION_DELIMITER);\n int deadlinePos = taskInfo.indexOf(DEADLINE_DELIMITER);\n int recurrencePos = taskInfo.indexOf(RECURRENCE_DELIMITER);\n int importancePos = taskInfo.indexOf(IMPORTANCE_DELIMITER);\n int addNotesPos = taskInfo.indexOf(ADDITIONAL_NOTES_DELIMITER);\n int forecastPos = taskInfo.indexOf(FORECAST_DELIMITER);\n switch (commandType) {\n case \"add\": {\n return parseAddCommand(taskInfo, namePos, timePos, durationPos, deadlinePos,\n recurrencePos, importancePos, addNotesPos);\n }\n case \"edit\": {\n return parseEditCommand(taskInfo, namePos, timePos, durationPos, deadlinePos,\n recurrencePos, importancePos, addNotesPos, taskList);\n }\n case \"list\": {\n return parseListCommand(taskInfo, importancePos, forecastPos);\n }\n case \"done\": {\n return parseDoneCommand(taskInfo);\n }\n case \"delete\": {\n return parseDeleteCommand(taskInfo);\n }\n case \"view\": {\n return parseViewCommand(taskInfo);\n }\n case \"help\": {\n return new HelpCommand();\n }\n case \"exit\": {\n return new ExitCommand();\n }\n default: {\n throw new InvalidCommandException();\n }\n }\n }",
"public void readCommand(Scanner s) throws WrongCommandFormatException {\n String next = s.next();\n if (next.equals(\"/by\")) {\n throw new WrongCommandFormatException(\"Wrong keyword used. Please try again with /at\");\n } else if (next.equals(\"/at\")) {\n parseTimeframe(s);\n } else {\n this.description += next + \" \";\n }\n }",
"public Command parse(String[] s) {\r\n\t\t\t\r\n\t\tif (s.length == 1 && s[0].equalsIgnoreCase(\"QUIT\"))\r\n\t\t\treturn new Quit();\r\n\t\telse \r\n\t\t\treturn null;\r\n\t}",
"public static String parseCommand(String command) {\n String keyWord = \"\";\n if (command.startsWith(\"list\")) {\n keyWord = \"list\";\n } else if (command.startsWith(\"notes\")) {\n keyWord = \"notes\";\n } else if (command.startsWith(\"done\")) {\n keyWord = \"done\";\n } else if (command.startsWith(\"delete note\")) {\n keyWord = \"delete note\";\n } else if (command.startsWith(\"delete\")) {\n keyWord = \"delete\";\n } else if (command.startsWith(\"todo\")) {\n keyWord = \"todo\";\n } else if (command.startsWith(\"deadline\")) {\n keyWord = \"deadline\";\n } else if (command.startsWith(\"event\")) {\n keyWord = \"event\";\n } else if (command.startsWith(\"today\")) {\n keyWord = \"today\";\n } else if (command.startsWith(\"find\")) {\n keyWord = \"find\";\n } else if (command.startsWith(\"bye\")) {\n keyWord = \"bye\";\n } else if (command.startsWith(\"note\")) {\n keyWord = \"note\";\n }\n return keyWord;\n }",
"public Command parseCommand(String userInput, Model model,\n seedu.address.person.model.CheckAndGetPersonByNameModel personModel) throws Exception {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(CashierMessages.MESSAGE_NO_COMMAND);\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n return new AddCommandParser().parse(arguments, model, personModel);\n\n case DeleteCommand.COMMAND_WORD:\n return new DeleteCommandParser().parse(arguments, model, personModel);\n\n case EditCommand.COMMAND_WORD:\n return new EditCommandParser().parse(arguments, model, personModel);\n\n case SetCashierCommand.COMMAND_WORD:\n return new SetCashierCommandParser().parse(arguments, model, personModel);\n\n case CheckoutCommand.COMMAND_WORD:\n return new CheckoutCommandParser().parse(arguments, model, personModel);\n\n case ClearCommand.COMMAND_WORD:\n return new ClearCommandParser().parse(arguments, model, personModel);\n\n default:\n logger.info(\"There is no such command.\");\n throw new ParseException(CashierMessages.MESSAGE_NO_COMMAND);\n\n }\n }",
"protected void processCommand(String command) throws EmptyException {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"p\")) {\n doViewList();\n } else if (command.equals(\"m\")) {\n //doMarkComplete();\n } else if (command.equals(\"n\")) {\n doCount();\n } else if (command.equals(\"s\")) {\n doSave();\n } else if (command.equals(\"c\")) {\n doClear();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }",
"public static JaccsCommandHandler parseCommands(String str, JaccsCommandHandler command)throws JaccsCommandException \r\n\t{\r\n\t\tif (!(str != null))return null;\r\n\t\t\t\r\n\t\t\r\n\t\tString[] args = str.split(\" \");\r\n\t\tfor (int i = 0; i < args.length; i++) {\r\n\t\t\tif (args[i].startsWith(prefix)) \r\n\t\t\t{\r\n\t\t\t\tString tempString = args[i].substring(prefix.length());\r\n\r\n\t\t\t\tswitch (tempString) \r\n\t\t\t\t{\r\n\t\t\t\tcase \"noconjunctions\":\r\n\t\t\t\t\tcommand.setNoConjunctions(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"conjunctions\":\r\n\t\t\t\t\tcommand.setNoConjunctions(false);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"noreasons\":\r\n\t\t\t\t\tcommand.setNoReasons(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"reasons\":\r\n\t\t\t\t\tcommand.setNoReasons(false);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"counter\":\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tcommand.addCounterNames(args[i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"card\":\r\n\t\t\t\tcase \"arch\":\r\n\t\t\t\tcase \"name\":\r\n\t\t\t\t\ti += command.addName(args, i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"quickspell\":\r\n\t\t\t\t\tcommand.setQuickSpells(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"fastspell\":\r\n\t\t\t\t\tcommand.setFastSpells(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"addword\":\r\n\t\t\t\t\tcommand.addWord(tempString.toLowerCase());\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString ans = \"\";\r\n\t\t\t\tfor (int j = i; j < args.length; j++) \r\n\t\t\t\t{\r\n\t\t\t\t\tans = ans + args[j] + \" \";\r\n\t\t\t\t}\r\n\t\t\t\tcommand.text = ans;\r\n\t\t\t\treturn command;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\r\n\t}",
"public void handleCommand(String command);",
"private void handleCommand() throws IOException {\n\t\tboolean commandHasParameter = false;\n\t\tboolean parameterIsNegative = false;\n\t\tint parameterValue = 0;\n\t\tStringBuilder commandText = new StringBuilder();\n\t\tStringBuilder parameterText = new StringBuilder();\n\n\t\tint ch = source.read();\n\t\tif (ch == -1) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tcommandText.append((char) ch);\n\n\t\tif (!Character.isLetter(ch)) {\n\t\t\thandleCommand(commandText, 0, commandHasParameter);\n\t\t\treturn;\n\t\t}\n\n\t\twhile (true) {\n\t\t\tch = source.read();\n\t\t\tif (ch == -1 || !Character.isLetter(ch)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcommandText.append((char) ch);\n\t\t\tif (commandText.length() > MAX_COMMAND_LENGTH) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (ch == -1) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tif (commandText.length() > MAX_COMMAND_LENGTH) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid keyword: \"\n\t\t\t\t\t+ commandText.toString());\n\t\t}\n\n\t\tif (ch == '-') {\n\t\t\tparameterIsNegative = true;\n\t\t\tch = source.read();\n\t\t\tif (ch == -1) {\n\t\t\t\tthrow new EOFException();\n\t\t\t}\n\t\t}\n\t\tif (Character.isDigit(ch)) {\n\t\t\tcommandHasParameter = true;\n\t\t\tparameterText.append((char) ch);\n\t\t\twhile (true) {\n\t\t\t\tch = source.read();\n\t\t\t\tif (ch == -1 || !Character.isDigit(ch)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tparameterText.append((char) ch);\n\t\t\t\tif (parameterText.length() > MAX_PARAMETER_LENGTH) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (parameterText.length() > MAX_PARAMETER_LENGTH) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid parameter: \"\n\t\t\t\t\t\t+ parameterText.toString());\n\t\t\t}\n\n\t\t\tparameterValue = Integer.parseInt(parameterText.toString());\n\t\t\tif (parameterIsNegative) {\n\t\t\t\tparameterValue = -parameterValue;\n\t\t\t}\n\t\t}\n\n\t\tif (ch != ' ') {\n\t\t\tsource.canselRead(ch);\n\t\t}\n\n\t\thandleCommand(commandText, parameterValue, commandHasParameter);\n\t}",
"public void parseCommand(ActionSet actionset, String command)\n\t\t\tthrows ParseException\n\t{\n\n\t\t_actionset = actionset;\n\t\t_command = command;\n\n\t\tString[] syntax = command.split(\" \");\n\n\t\tfor (String s : syntax)\n\t\t{\n\t\t\ts.trim(); // clean up extra whitespaces\n\t\t}// end loop\n\n\t\tString firstCommand = syntax[0].toUpperCase();\n\t\tString secCommand = syntax[1].toUpperCase();\n\n\t\tswitch (firstCommand)\n\t\t{\n\t\tcase \"DEFINE\":\n\t\t\tswitch (secCommand)\n\t\t\t{\n\t\t\tcase \"TRAP\":\n\t\t\t\tdefineTrap(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"CATAPULT\":\n\t\t\t\tdefineCatapult(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"OLS_XMT\":\n\t\t\t\tdefineXMT(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"OLS_RCV\":\n\t\t\t\tdefineRCV(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"CARRIER\":\n\t\t\t\tdefineCarrier(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"FIGHTER\":\n\t\t\t\tdefineFighter(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"TANKER\":\n\t\t\t\tdefineTanker(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"BOOM\":\n\t\t\t\tString thirdCommand = syntax[2].toUpperCase();\n\t\t\t\tswitch (thirdCommand)\n\t\t\t\t{\n\t\t\t\tcase \"MALE\":\n\t\t\t\t\tdefineBoomMale(syntax);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"FEMALE\":\n\t\t\t\t\tdefineBoomFemale(syntax);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new ParseException(\"Invalid Command > \" + command);\n\t\t\t\t}// end switch\n\t\t\tcase \"TAILHOOK\":\n\t\t\t\tdefineTailhook(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"BARRIER\":\n\t\t\t\tdefineBarrier(syntax);\n\t\t\t\tbreak;\n\t\t\tcase \"AUX_TANK\":\n\t\t\t\tdefineAuxTank(syntax);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new ParseException(\"Invalid Command > \" + command);\n\t\t\t}// end switch\n\t\tcase \"UNDEFINE\":\n\t\t\tundefine(syntax);\n\t\t\tbreak;\n\t\tcase \"SHOW\":\n\t\t\tshowTemplates(syntax);\n\t\t\tbreak;\n\t\tcase \"LIST\":\n\t\t\tlistTemplates();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new ParseException(\"Invalid Command > \" + command);\n\t\t}\n\n\t}",
"@Override\n public Command parseCommand(String commandText, ViewController viewController, Cli cli) throws InvalidCommandException {\n\n System.out.println(this+\": \"+commandText);\n String word = \"\";\n Resource resource;\n String prefix = \"\";\n String suffix = \"\";\n boolean found = false;\n ArrayList<Resource> resources = new ArrayList<>();\n\n if (commandText.length() == 0)\n throw new InvalidCommandException();\n\n commandText = Command.deleteInitSpaces(commandText);\n\n for (int i = 0;i<commandText.length();i++){\n if (commandText.charAt(i) != ' '){\n prefix = prefix + commandText.charAt(i);\n } else {\n for (i++;i<commandText.length();i++)\n suffix = suffix + commandText.charAt(i);\n }\n }\n\n if (prefix.equals(\"coin\") || prefix.equals(\"rock\") || prefix.equals(\"shield\") || prefix.equals(\"servant\")){\n\n resource = Command.fromStringToResource(prefix);\n resources.add(resource);\n\n for (int i = 0;i<suffix.length();i++){\n if (suffix.charAt(i) != ' '){\n word = word + suffix.charAt(i);\n } else {\n resource = Command.fromStringToResource(word);\n if(resource != null )\n for(Resource r : possibleResources)\n if (r == resource)\n resources.add(resource);\n word = \"\";\n }\n }\n resource = Command.fromStringToResource(word);\n if(resource != null )\n for(Resource r : possibleResources)\n if (r == resource)\n resources.add(resource);\n\n if (resources.size() != numberOfWhiteMarbles){\n throw new InvalidCommandException();\n }\n return new WhiteMarbleCommand(resources,cli);\n } else {\n switch (prefix) {\n case \"exit\": {\n return new ExitCommand();\n }\n case \"help\": {\n return new HelpCommand();\n }\n case \"showGameboard\": {\n return new ShowGameBoardCommand(cli);\n }\n case \"showMarket\": {\n return new ShowMarketCommand(cli);\n }\n case \"showPlayer\": {\n\n int n = 0;\n int temp;\n found = false;\n\n for (int i = 0; i < suffix.length() && !found; i++) {\n if (suffix.charAt(i) != ' ') {\n temp = suffix.charAt(i) - '0';\n if (temp < 0 || temp > 9)\n throw new InvalidCommandException();\n n = temp;\n found = true;\n }\n\n }\n if (n < 1 || n > 4)\n throw new InvalidCommandException();\n return new ShowPlayerCommand(n, viewController);\n\n }\n case \"showProductionDecks\": {\n return new ShowProductionDeckCommand(cli);\n }\n case \"showReserve\": {\n return new ShowReserveCommand(cli);\n }\n default: {\n throw new InvalidCommandException();\n }\n }\n }\n }",
"protected IBackendCommand parseCommand(String key, IBackendCommandParser parser, JsonAnalyzer json) {\n\t\treturn parser.parseBackendCommand(json);\n\t}",
"void readCommand(String command) throws IOException, ClassNotFoundException, InterruptedException;",
"public MidiCommand parse(javax.sound.midi.MidiMessage mm) {\n boolean done = false;\n Iterator<Parser> it = parsers.iterator();\n MidiCommand pmm = null;\n \n while(it.hasNext() && !done){\n pmm = it.next().parse(mm);\n if(pmm != null){\n done = true;\n }\n }\n \n return pmm;\n }",
"@Test\n public void parse_validArgs_returnsListItemCommand() throws ParseException {\n assertEquals(parser.parse(\" \").getClass(), ListItemCommand.class);\n }",
"public Command parseCommand(String userInput, boolean isAllJobScreen) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new AddCommandParser().parse(arguments);\n\n case AddCommand.COMMAND_ALIAS:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new AddCommandParser().parse(arguments);\n\n case ImportResumesCommand.COMMAND_WORD:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new ImportResumesCommandParser().parse(arguments);\n\n case ImportResumesCommand.COMMAND_ALIAS:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new ImportResumesCommandParser().parse(arguments);\n\n case CreateJobCommand.COMMAND_WORD:\n return new CreateJobCommandParser().parse(arguments);\n\n case CreateJobCommand.COMMAND_ALIAS:\n return new CreateJobCommandParser().parse(arguments);\n\n case EditCommand.COMMAND_WORD:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new EditCommandParser().parse(arguments);\n\n case EditCommand.COMMAND_ALIAS:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new EditCommandParser().parse(arguments);\n\n case DeleteFilterCommand.COMMAND_WORD:\n return new DeleteFilterCommandParser().parse(arguments);\n\n case DeleteFilterCommand.COMMAND_ALIAS:\n return new DeleteFilterCommandParser().parse(arguments);\n\n case ClearFilterCommand.COMMAND_WORD:\n return new ClearFilterCommandParser().parse(arguments);\n\n case ClearFilterCommand.COMMAND_ALIAS:\n return new ClearFilterCommandParser().parse(arguments);\n\n case DeleteCommand.COMMAND_WORD:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new DeleteCommandParser().parse(arguments);\n\n case DeleteCommand.COMMAND_ALIAS:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new DeleteCommandParser().parse(arguments);\n\n case ClearCommand.COMMAND_WORD:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new ClearCommand();\n\n case ClearCommand.COMMAND_ALIAS:\n if (!isAllJobScreen) {\n throw new ParseException(MESSAGE_COMMAND_CANNOT_USE);\n }\n return new ClearCommand();\n\n case FilterCommand.COMMAND_WORD:\n return new FilterCommandParser().parse(arguments);\n\n case FilterCommand.COMMAND_ALIAS:\n return new FilterCommandParser().parse(arguments);\n\n case ListCommand.COMMAND_WORD:\n return new ListCommand();\n\n case ListCommand.COMMAND_ALIAS:\n return new ListCommand();\n\n case HistoryCommand.COMMAND_WORD:\n return new HistoryCommand();\n\n case HistoryCommand.COMMAND_ALIAS:\n return new HistoryCommand();\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n case ExitCommand.COMMAND_ALIAS:\n return new ExitCommand();\n\n case HelpCommand.COMMAND_WORD:\n return new HelpCommand();\n\n case HelpCommand.COMMAND_ALIAS:\n return new HelpCommand();\n\n case UndoCommand.COMMAND_WORD:\n return new UndoCommand();\n\n case UndoCommand.COMMAND_ALIAS:\n return new UndoCommand();\n\n case RedoCommand.COMMAND_WORD:\n return new RedoCommand();\n\n case RedoCommand.COMMAND_ALIAS:\n return new RedoCommand();\n\n case GenerateInterviewsCommand.COMMAND_WORD:\n return new GenerateInterviewsCommand();\n\n case ShowInterviewsCommand.COMMAND_WORD:\n return new ShowInterviewsCommand();\n\n case SetMaxInterviewsADayCommand.COMMAND_WORD:\n return new SetMaxInterviewsADayCommandParser().parse(arguments);\n\n case ClearInterviewsCommand.COMMAND_WORD:\n return new ClearInterviewsCommand();\n\n case GenerateAnalyticsCommand.COMMAND_WORD:\n return new AnalyticsCommandParser().parse(arguments);\n\n case SetBlockOutDatesCommand.COMMAND_WORD:\n return new SetBlockOutDatesCommandParser().parse(arguments);\n\n case DisplayJobCommand.COMMAND_WORD:\n return new DisplayJobCommandParser().parse(arguments);\n\n case DisplayJobCommand.COMMAND_ALIAS:\n return new DisplayJobCommandParser().parse(arguments);\n\n case MovePeopleCommand.COMMAND_WORD:\n return new MovePeopleCommandParser().parse(arguments);\n\n case MovePeopleCommand.COMMAND_ALIAS:\n return new MovePeopleCommandParser().parse(arguments);\n\n case DeleteJobCommand.COMMAND_WORD:\n return new DeleteJobCommandParser().parse(arguments);\n\n case DeleteJobCommand.COMMAND_ALIAS:\n return new DeleteJobCommandParser().parse(arguments);\n\n case AddListToJobCommand.COMMAND_WORD:\n return new AddListToJobCommandParser().parse(arguments);\n\n case AddListToJobCommand.COMMAND_ALIAS:\n return new AddListToJobCommandParser().parse(arguments);\n\n case RemoveFromListCommand.COMMAND_WORD:\n return new RemoveFromListCommandParser().parse(arguments);\n\n case RemoveFromListCommand.COMMAND_ALIAS:\n return new RemoveFromListCommandParser().parse(arguments);\n\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n }\n }",
"public Command parse(String[] s) {\n\t\t\n\t\tif(s.length == 1 && s[0].equalsIgnoreCase(\"RUN\"))\n\t\t\treturn new Run();\n\t\telse return null;\n\t}",
"protected abstract void parse(final ArrayList<Command> cmds) throws QueryException;",
"public static void parseUserCommand (String userCommand) {\n ArrayList<String> commandTokens = new ArrayList<String>(Arrays.asList(userCommand.split(\" \")));\n \n\n /*\n * This switch handles a very small list of hard coded commands of known syntax.\n * You will want to rewrite this method to interpret more complex commands. \n */\n switch (commandTokens.get(0)) {\n \tcase \"show\":\n \t\tdisplay(userCommand);\n \t\tbreak;\n case \"select\":\n parseQueryString(userCommand);\n break;\n case \"drop\":\n System.out.println(\"STUB: Calling your method to drop items\");\n dropTable(userCommand);\n break;\n case \"create\":\n parseCreateString(userCommand);\n break;\n case \"insert\":\n parseInsertString(userCommand);\n break;\n case \"delete\":\n parseDeleteString(userCommand); \n break;\n case \"help\":\n help();\n break;\n case \"version\":\n displayVersion();\n break;\n case \"exit\":\n isExit = true;\n break;\n case \"quit\":\n isExit = true;\n break;\n default:\n System.out.println(\"Unknown command: \\\"\" + userCommand + \"\\\"\");\n break;\n }\n }",
"public ICommand translate(String command) throws IllegalArgumentException{\n ArrayList<String> parsedCommand = new ArrayList<String>(Arrays.asList(command.split(\"\\\\s+\")));\n if(parsedCommand.size() <= 0)\n throw new IllegalArgumentException(\"No command specified.\");\n command = parsedCommand.remove(0);\n\n // Analyze command\n switch(command){\n case \"move\":\n case \"mv\":\n case \"m\":\n if(parsedCommand.size() == 2)\n return translateMove(parsedCommand);\n else if(parsedCommand.size() == 3)\n return translateMoveMulti(parsedCommand);\n else throw new IllegalArgumentException(\"Invalid argument count of 'move' command.\");\n \n case \"next\":\n case \"n\":\n this.expectedArgumentCount(parsedCommand, 0);\n return new CommandNext(model.getRepository());\n\n case \"renew\":\n case \"rn\":\n this.expectedArgumentCount(parsedCommand, 0);\n return new CommandRenew(model.getRepository());\n\n case \"undo\":\n case \"u\":\n return new ControlCommand(\"undo\");\n\n case \"redo\":\n case \"rd\":\n case \"r\":\n return new ControlCommand(\"redo\");\n\n case \"quit\":\n case \"q\":\n return new ControlCommand(\"quit\");\n\n case \"help\":\n this.expectedArgumentCount(parsedCommand, 0);\n this.printHelp();\n return new ControlCommand(\"none\");\n\n case \"hint\":\n case \"h\":\n this.expectedArgumentCount(parsedCommand, 0);\n return new ControlCommand(\"hint\");\n\n case \"save\":\n this.expectedArgumentCount(parsedCommand, 1);\n return new ControlCommand(\"save\", new ArrayList<String>(){{add(parsedCommand.get(0));}});\n\n case \"load\":\n this.expectedArgumentCount(parsedCommand, 1);\n return new ControlCommand(\"load\", new ArrayList<String>(){{add(parsedCommand.get(0));}});\n\n default:\n throw new IllegalArgumentException(\"Ivalid command specified. See 'help' for more informations.\");\n }\n }",
"public static AppointmentCommand parse(String fullCommand) throws HappyPillsException {\n String[] userCommand = fullCommand.trim().split(\" \", 3);\n\n if (userCommand[0].equalsIgnoreCase(\"add\")) {\n return parseAddCommand(userCommand[2]);\n } else if (userCommand[0].equalsIgnoreCase(\"edit\")) {\n String[] detailedCommand = userCommand[2].trim().split(\" \", 3);\n if (detailedCommand.length == 3) {\n return new EditAppointmentCommand(detailedCommand[0].trim(), detailedCommand[1].trim(),\n detailedCommand[2]);\n } else {\n throw new HappyPillsException(TextUi.incompleteCommandString(\" help edit appt\"));\n }\n } else if (userCommand[0].equalsIgnoreCase(\"done\")) {\n String [] detailedCommand = userCommand[2].trim().split(\" \",2);\n if (detailedCommand.length == 2) {\n return new DoneAppointmentCommand(detailedCommand[0].trim(),detailedCommand[1].trim());\n } else {\n throw new HappyPillsException(TextUi.incompleteCommandString(\" help done appt\"));\n }\n } else if (userCommand[0].equalsIgnoreCase(\"list\")) {\n return new ListAppointmentCommand();\n } else if (userCommand[0].equalsIgnoreCase(\"delete\")) {\n String [] detailedCommand = userCommand[2].trim().split(\" \",2);\n if (detailedCommand.length == 2) {\n return new DeleteAppointmentCommand(detailedCommand[0].trim(), detailedCommand[1].trim());\n } else {\n throw new HappyPillsException(TextUi.incompleteCommandString(\" help delete appt\"));\n }\n } else if (userCommand[0].equalsIgnoreCase(\"find\")) {\n return new FindAppointmentCommand(userCommand[2]);\n } else {\n throw new HappyPillsException(TextUi.printIncorrectCommand(userCommand[0]));\n }\n }",
"public void execute() {\n\t\ttry {\n\t\t\tMethod method = this.getClass().getMethod(parseMethod(), new Class[0]);\n\t\t\tmethod.invoke(this, new Object[0]);\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tSystem.out.println(\"Unknown option: \" + command);\n\t\t} catch (IllegalAccessException | IllegalArgumentException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Invalid usage of: \" + command + \", the following error \" + \"was given: \" + e.getMessage());\n\t\t} catch (InvocationTargetException e) {\n\t\t\tSystem.out.println(\"An error occurred while executing '\" + command + \"'. The \"\n\t\t\t\t\t+ \"following error was given: \" + e.getCause());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic Command parse(String cad, Game execContext) throws WrongCommandFormatException{\n\n\t\t\n\t\tExamineCommand examineCommand = new ExamineCommand();\n\t\tString words[] = cad.split(\" \");\n\t\n\t\tif((words[0].toUpperCase().equals(\"EXAMINE\") || words[0].toUpperCase().equals(\"EXAMINAR\"))){\n\t\t\tif(words.length != 1)\n\t\t\t\tthrow new WrongCommandFormatException();\t\t\t\t\t\n\t\t\telse\n\t\t\t\texamineCommand.game = execContext;\n\t\t}\n\t\telse\n\t\t\tthrow new WrongCommandFormatException();\t\n\n\t\t\n\t\treturn examineCommand;\n\t}",
"public DummyCommand parse(String userInput) throws ParseException {\n HashMap<String, String> aliasList = getAliasManager().getAliasList();\n\n if (aliasList.isEmpty()) {\n return new DummyCommand(MESSAGE_EMPTY);\n }\n\n StringBuilder sb = new StringBuilder();\n aliasList.forEach((alias, command) -> sb.append(String.format(\"%s: %s\\n\", alias, command)));\n\n return new DummyCommand(sb.toString());\n }",
"static ParsedCommand parseCommand(String cmdline) {\n ParsedCommand res = new ParsedCommand();\n cmdline = cmdline.trim();\n String[] split = cmdline.split(\"\\\\/([-]?[a-zA-Z]*)\");\n List<String> args = new ArrayList<>();\n for (int i = 0; i < split.length; i++) {\n String[] tmp = split[i].split(\" \");\n for (int j = 0; j < tmp.length; j++) {\n if (tmp[j].length() > 0) {\n args.add(tmp[j]);\n }\n }\n }\n if (args.size() == 0) return null;\n res.argv.addAll(args);\n Pattern p = Pattern.compile(\"\\\\/([-]?[a-zA-Z]*)\");\n Matcher m = p.matcher(cmdline);\n while (m.find()) {\n String cur = m.group(1);\n if (cur.startsWith(\"-\")) {\n for (int i = 1; i < cur.length(); i++) {\n res.switches.remove(String.valueOf(cur.charAt(i)).toUpperCase());\n }\n } else {\n for (int i = 0; i < cur.length(); i++) {\n res.switches.add(String.valueOf(cur.charAt(i)).toUpperCase());\n }\n }\n }\n\n return res;\n }",
"public void parseCommand(CommandType command) throws ExecutionException, InterruptedException {\n try {\r\n if (lock.isLocked(new UserSingleType(command.event().getMessageAuthor().asUser().get(), command.event().getServer().get()))) {\r\n command.event().getMessage().delete();\r\n return;\r\n } else if(lock.isChLocked(new UserChannelLockType(new UserSingleType(command.event().getMessageAuthor().asUser().get(), command.event().getServer().get()), command.event().getChannel()))){\r\n command.event().getMessage().delete();\r\n return;\r\n }\r\n }catch (Exception ignored){}\r\n if(command.command().startsWith(prefix)) { // to prevent expressions for unrelated messages\r\n command.api().getServerById(command.event().getServer().get().getId()).get();\r\n if (!command.event().getServer().get().hasPermission(command.api().getYourself(), PermissionType.ADMINISTRATOR)) {// Bot permissions check, without administrator access our bot should be not work\r\n command.event().getMessage().reply(\"This bot cannot be work without Administrator permission.\");\r\n return;\r\n }\r\n if (command.command().equals(prefix + commands[0])) commandAction.commandPing(command);\r\n else if (command.command().equals(prefix + commands[1])) commandAction.commandServer(command);\r\n else if (command.command().equals(prefix + commands[2])) commandAction.commandInf(command);\r\n else if (command.command().equals(prefix + commands[3])) commandAction.commandInvite(command);\r\n else if (command.command().equals(prefix + commands[4])) commandAction.commandKick(command);\r\n else if (command.command().equals(prefix + commands[5])) commandAction.commandBan(command);\r\n else if (command.command().equals(prefix + commands[6])) commandAction.commandMute(command);\r\n else if (command.command().equals(prefix + commands[7])) commandAction.commandUnMute(command);\r\n else if (command.command().equals(prefix + commands[8])) commandAction.commandDef(command);\r\n else if (command.command().equals(prefix + commands[9])) commandAction.commandUnDef(command);\r\n else if (command.command().equals(prefix + commands[10])) commandAction.commandWarn(command);\r\n else if (command.command().equals(prefix + commands[11])) commandAction.commandUnWarn(command);\r\n else if (command.command().equals(prefix + commands[12])) commandAction.commandClear(command);\r\n else if (command.command().equals(prefix + commands[13])) commandAction.commandLock(command, lock);\r\n else if (command.command().equals(prefix + commands[14])) commandAction.commandUnlock(command, lock);\r\n else if (command.command().equals(prefix + commands[15])) commandAction.commandDelete(command);\r\n else if (command.command().equals(prefix + commands[16])) commandAction.commandChLock(command, lock);\r\n else if (command.command().equals(prefix + commands[17])) commandAction.commandChUnlock(command, lock);\r\n else if (command.command().equals(prefix + commands[18])) commandAction.commandUnBanAll(command);\r\n else if (command.command().equals(prefix + commands[19])) commandAction.commandUnlockAll(command, lock);\r\n else if (command.command().equals(prefix + commands[20])) commandAction.commandSet(command);\r\n else if (command.command().equals(prefix + commands[21])) commandAction.commandHelp(command);\r\n }\r\n }",
"@Override\n public AddCommand parse(String args) throws ParseException {\n ArgumentMultimap argMultimap = ArgumentTokenizer.tokenize(args,\n PREFIX_QUESTION, PREFIX_CHOICE, PREFIX_DEFINITION, PREFIX_TAG, PREFIX_ANSWER);\n if (!arePrefixesPresent(argMultimap,\n PREFIX_QUESTION, PREFIX_DEFINITION, PREFIX_ANSWER)\n || !argMultimap.getPreamble().isEmpty()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT + AddCommand.MESSAGE_USAGE));\n }\n\n Question question = ParserUtil.parseWord(argMultimap.getValue(PREFIX_QUESTION).get());\n List<Choice> choices = ParserUtil.parseChoices(argMultimap.getAllValues(PREFIX_CHOICE));\n Definition definition = ParserUtil.parseDefinition(argMultimap.getValue(PREFIX_DEFINITION).get());\n Set<Tag> tagList = ParserUtil.parseTags(argMultimap.getAllValues(PREFIX_TAG));\n Answer answer = ParserUtil.parseAnswer(argMultimap.getValue(PREFIX_ANSWER).get());\n\n Flashcard flashcard;\n if (arePrefixesPresent(argMultimap, PREFIX_CHOICE)) {\n if (!choices.contains(new Choice(answer.getAnswer()))) {\n throw new ParseException(ANSWER_CHOICE_MISMATCH);\n } else {\n flashcard = new McqFlashcard(question, choices, definition, tagList, answer);\n }\n } else {\n flashcard = new ShortAnswerFlashcard(question, definition, tagList, answer);\n }\n\n return new AddCommand(flashcard);\n }",
"public MidiCommand parse(javax.sound.midi.MidiMessage mm);",
"public ParseResult parse(String string, String lastLabel) {\n\t\t\n\t\tstring = upcase(string);\n\t\tstring = string.replaceAll(\"\\\\r\", \"\");\n\t\tstring = string.replaceAll(\"\\\\n\", \"\");\n\t\t\n\t\tint tokenStartPos = 0, argstartcommand = 0;\n\t\t\n\t\tParseResult result = new ParseResult();\n\t\tresult.originalLine = string;\n\t\tif (string.matches(\"[ \\t]*\")) {\n\t\t\tresult.empty = true;\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// save the original string for later reference, manipulate a copy of it\n\t\tString s = escape(string); // escaping has to be done to allow for spaces and tabs inside strings\n\t\t\n\t\t// comment at the end? strip it!\n\t\ts = stripComments(s, result);\n\t\t\n\t\t// label at the beginning? remember it, then strip it!\n\t\t// first, see whether there might be a label in the string\n\t\tif (labelEnd(s) != -1) {\n\t\t\t// if so, check its validity\n\t\t\tString checkedLabel = getLabel(s);\n\t\t\tif (checkedLabel == null) {\n\t\t\t\tresult.error = new ParseError(result.originalLine, getRawLabelString(s), 0, \"Invalid Label\");\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\tresult.label = checkedLabel;\n\t\t\t\tlastLabel = checkedLabel;\n\t\t\t\ttokenStartPos = labelEnd(s);\n\t\t\t\ts = stripLabel(s);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// anything left?\n\t\tif (s.matches(\"[, \\t]*\")) {\n\t\t\tresult.labelOnly = true;\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// seems to be a command, analyze it\n\t\tArrayList<FullArgument> arguments = new ArrayList<>();\n\t\tString command = null, argument = \"\";\n\t\tboolean commaDone = false;\n\t\tint nextSize = -1, size, type, lastType = Op.NULL;\n\t\tboolean sizeExplicit = false;\n\n /*\n * before splitting the string into tokens, remove spaces in \"expressions\" between square brackets\n * in order to avoid certain false positives like: \n * - \"A comma must only be placed after a parameter\" (occurs e.g with \"mov [eax + 1], ...\") \n * - \"You must place a comma between any two parameters\" (occurs e.g with \"mov [ ebx +1], ...\")\n * - \"Invalid expression\" (occurs e.g. with mov eax, [ebx + 1]\" or \"mov eax, [ ebx]\"\n */ \n StringBuffer sb = new StringBuffer();\n Pattern pt = Pattern.compile(\"\\\\[.*\\\\]\");\n Matcher mt = pt.matcher(s);\n\n while(mt.find()) {\n // remove all spaces/tabs between brackets to avoid the false positives outlined above \n mt.appendReplacement(sb, mt.group(0).replaceAll(\"[ \\t]\", \"\"));\n }\n mt.appendTail(sb);\n s = sb.toString(); \n\n\t\tString[] tokens = s.split(\"[ \\t]\"); // split the string into \"words\"/tokens\n\t\tfor (String token : tokens) { // and look at any ...\n\t\t\tif (!token.equals(\"\")) { // ... non-empty word\n\t\t\t\n\t\t\t\ttoken = unescape(token);\n\t\t\t\targument = hex2dec(token); // convert any numbers to decimal\n\t\t\t\ttype = getOperandType(argument);\n\t\t\t\t// the token's start position is needed for correct error highlighting\n\t\t\t\ttokenStartPos = string.indexOf(token, tokenStartPos);\n\t\t\t\t// syntax checking\n\t\t\t\tif (lastType == Op.SIZEQUALI) {\n\t\t\t\t\tif (!Op.matches(type, Op.MEM | Op.IMM | Op.LABEL | Op.VARIABLE)) {\n\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\"Only an immediate or a memory location is allowed after a size qualifier\");\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (type == Op.COMMA) {\n\t\t\t\t\tif (!Op.matches(lastType, Op.PARAM)) {\n\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\"A comma must only be placed after a parameter\");\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\tcommaDone = true;\n\t\t\t\t}\n\t\t\t\t// the actual parsing\n\t\t\t\t\n\t\t\t\tif (Op.matches(type, Op.SIZEQUALI)) {\n\t\t\t\t\t// if it's a size qualifier, remember its information and we're done\n\t\t\t\t\tnextSize = getOperandSize(token, type);\n\t\t\t\t} else if (type == Op.COMMA) {\n\t\t\t\t\t// if it was only a comma, do nothing else\n\t\t\t\t} else if (command == null) {\n\t\t\t\t\t// if there was no command so far, the current token will be it\n\t\t\t\t\tcommand = token;\n\t\t\t\t\tresult.mnemo = command;\n\t\t\t\t\targstartcommand = tokenStartPos;\n\t\t\t\t\tcommaDone = true; // no comma necessary directly after the command\n\t\t\t\t\t// otherwise, it's an argument for a command\n\t\t\t\t} else {\n\t\t\t\t\t// determine the argument's size\n\t\t\t\t\tsize = -1;\n\t\t\t\t\tif (!commaDone && Op.matches(type, Op.PARAM)) {\n\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\"You must place a comma between any two parameters\");\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\tif (nextSize != -1) { // previous size qualifier?\n\t\t\t\t\t\tif (Op.matches(type, Op.IMM | Op.CHARS)) {\n\t\t\t\t\t\t\tif (getOperandSize(argument, type) > nextSize) {\n\t\t\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\t\t\"Operand does not match previous size qualifier.\");\n\t\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsize = nextSize;\n\t\t\t\t\t\tnextSize = -1;\n\t\t\t\t\t\tsizeExplicit = true;\n\t\t\t\t\t} else if (!Op.matches(type, Op.IMM)) {\n\t\t\t\t\t\tsize = getOperandSize(argument, type);\n\t\t\t\t\t}\n\t\t\t\t\t// update the type information with the size, e.g. we had MEM and now get M32\n\t\t\t\t\ttype = getSizedOperandType(argument, type, size);\n\t\t\t\t\t// add the argument to the list of arguments\n\t\t\t\t\targuments.add(new FullArgument(argument, token, tokenStartPos, type, size, sizeExplicit,\n\t\t\t\t\t\tdataspace));\n\t\t\t\t\tsizeExplicit = false;\n\t\t\t\t\tcommaDone = type == Op.FPUQUALI;\n\t\t\t\t\t// if the first token was a prefix and the current argument is actually\n\t\t\t\t\t// the command, no comma is required afterwards\n\t\t\t\t\tif (commandLoader.commandExists(argument)) {\n\t\t\t\t\t\tcommaDone = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlastType = type; // remember the argument's type\n\t\t\t\ttokenStartPos += token.length();// and add its length to the search start position for the\n\t\t\t\t// next one\n\t\t\t}\n\t\t}\n\t\t\n\t\t// swap command and first argument if the command is actually a prefix\n\t\tif (Op.matches(getOperandType(command), Op.PREFIX) && (arguments.size() > 0)) {\n\t\t\tString temp = command;\n\t\t\tcommand = arguments.get(0).arg;\n\t\t\tresult.mnemo = command;\n\t\t\targuments.set(0, new FullArgument(temp, temp, 0, Op.PREFIX, -1, false, dataspace));\n\t\t\targstartcommand += temp.length();\n\t\t} else if ((arguments.size() > 0) && (arguments.get(0).address.type == Op.PREFIX)) {\n\t\t\tresult.error = new ParseError(string, arguments.get(0),\n\t\t\t\t\"Prefixes must be placed before the command\");\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// check whether the command exists\n\t\tif (!commandLoader.commandExists(command)) {\n\t\t\tresult.mnemo = null;\n\t\t\tresult.error = new ParseError(string, command, argstartcommand, \"Unknown command\");\n\t\t\treturn result;\n\t\t}\n\t\t// load the command object\n\t\tJasminCommand cmd = (JasminCommand) commandLoader.getCommand(command);\n\t\tif (cmd instanceof PreprocCommand) {\n\t\t\t// note: PreprocCommands will be executed later on!\n\t\t\tif (lastLabel == null) {\n\t\t\t\tresult.error = new ParseError(string, command, 0,\n\t\t\t\t\t\"Preprocessor commands must be preceded by a label.\");\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\tdataspace.registerConstant(lastLabel);\n\t\t\t}\n\t\t} else if (cmd instanceof PseudoCommand) {\n\t\t\t// if a pseudo command follows a label, the label has to be registered as a variable,\n\t\t\t// as the command won't be executed right away\n\t\t\tif (lastLabel != null) {\n\t\t\t\tdataspace.registerVariable(lastLabel);\n\t\t\t}\n\t\t} else {\n\t\t\t// if a normal command follows a label that previously may have been a constant/variable, reset\n\t\t\t// its state\n\t\t\tif (lastLabel != null) {\n\t\t\t\tdataspace.unregisterConstant(lastLabel);\n\t\t\t\tdataspace.unregisterVariable(lastLabel);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// check for >1 memory access\n\t\tif (!cmd.overrideMaxMemAccess(command)) {\n\t\t\tint numMemoryAccesses = 0;\n\t\t\tfor (FullArgument a : arguments) {\n\t\t\t\tif ((a.address.type & Op.MEM) != 0) {\n\t\t\t\t\tnumMemoryAccesses++;\n\t\t\t\t}\n\t\t\t\tif (numMemoryAccesses > 1) {\n\t\t\t\t\tresult.error = new ParseError(string, a, \"Only one memory access allowed.\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\n\t\t// initialize a Parameters object for the command to play with\n\t\tParameters param = new Parameters(dataspace, this);\n\t\tparam.set(string, command, arguments, cmd.defaultSize(command), cmd.signed());\n\t\tif (lastLabel != null) {\n\t\t\tparam.label = lastLabel;\n\t\t}\n\t\tfor (FullArgument a : arguments) {\n\t\t\tresult.usedLabels.addAll(a.usedLabels);\n\t\t}\n\n\t\tfor (FullArgument a : arguments) {\n\t\t\t// check validity of the arguments\n\t\t\tString errorMsg = isValidOperand(a, false);\n\t\t\tif (errorMsg != null) {\n\t\t\t\tresult.error = new ParseError(string, a, errorMsg);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// let the command do command-specific validating of its arguments\n\t\tParseError error = cmd.validate(param);\n\t\tif (error != null) {\n\t\t\tresult.error = error;\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\tresult.command = cmd;\n\t\tresult.param = param;\n\t\t\n\t\t// preprocessing commands are executed right now\n\t\tif (cmd instanceof PreprocCommand) {\n\t\t\tcmd.execute(param);\n\t\t}\n\t\treturn result;\n\t}",
"CommandResult execute(String commandText) throws CommandException, ParseException;",
"CommandResult execute(String commandText) throws CommandException, ParseException;",
"CommandResult execute(String commandText) throws CommandException, ParseException;",
"private DecoderState readCommand(ByteBuf in) {\n\n DecoderState nextState = DecoderState.READ_COMMAND;\n String line = readLine(in);\n\n if (line != null) {\n command = Command.valueOf(line);\n nextState = DecoderState.READ_HEADERS;\n }\n\n return nextState;\n }",
"@Test\n public void parseAddCommand_validCommand_success() throws ChatbotException {\n Command addTodoCmd = ChatbotParser.parseCommand(\"todo read book\");\n assertTrue(addTodoCmd instanceof AddCommand);\n assertEquals(((AddCommand) addTodoCmd).getToAdd().getDescription(), \"read book\");\n\n // Test add deadline\n Command addDeadlineCmd = ChatbotParser.parseCommand(\"deadline return book /by 2020-10-10\");\n assertTrue(addDeadlineCmd instanceof AddCommand);\n assertEquals(((AddCommand) addDeadlineCmd).getToAdd().getDescription(), \"return book\");\n assertEquals(((AddCommand) addDeadlineCmd).getToAdd().getDate().toString(), \"2020-10-10\");\n\n // Test add event\n Command addEventCmd = ChatbotParser.parseCommand(\"event attend wedding /at 2020-11-11\");\n assertTrue(addEventCmd instanceof AddCommand);\n assertEquals(((AddCommand) addEventCmd).getToAdd().getDescription(), \"attend wedding\");\n assertEquals(((AddCommand) addEventCmd).getToAdd().getDate().toString(), \"2020-11-11\");\n }",
"public static Shape parse() {\n Shape shape = null;\n System.out.print(\"Enter command:\");\n try {\n Scanner scanner = new Scanner(System.in);\n String commandString = scanner.nextLine();\n String[] request = commandString.split(\"\\\\s+\"); //the array of strings computed by space\n\n switch (Command.findCommandByAcronyms(request[0])){\n case CANVAS:\n int[] canvasCoordinates = convertStringArrayToIntArray(Arrays.copyOfRange(request,1,request.length));\n canvas = new Canvas(canvasCoordinates);\n shape = canvas;\n break;\n case LINE:\n int[] lineCoordinates = convertStringArrayToIntArray(Arrays.copyOfRange(request,1,request.length));\n shape = new Line(canvas, lineCoordinates);\n break;\n case RECTANGLE:\n int[] rectCoordinates = convertStringArrayToIntArray(Arrays.copyOfRange(request,1,request.length));\n shape = new Rectangle(canvas, rectCoordinates);\n break;\n case FILL:\n shape = new Fill(canvas, Arrays.copyOfRange(request,1,request.length));\n break;\n case EXIT:\n System.out.print(\"Thank you for using the Drawing App! See you again.\");\n System.exit(0);\n default:\n System.out.println(\"Command not supported: \" + request[0]);\n help();\n }\n return shape;\n } catch (NumberFormatException nfe){\n System.out.println(\"Only non negative numbers are allowed in args: \" + nfe.getMessage());\n help();\n } catch (Exception e) {\n System.out.println(\"Sorry! can't parse the entered value. Try again: \" + e.getMessage());\n help();\n }\n return shape;\n }",
"public String processCommand(Command command) //refactored\n {\n boolean wantToQuit = false;\n //System.out.println(\"hitter boolean\");\n commandWord = command.getAction();//fehler\n //System.out.println(command);\n //System.out.println(\"enum == null\" + (commandWord == null));\n String result = \"\";\n //System.out.println(\"heyho\");\n //System.out.println(result);\n switch(commandWord){\n //case UNKNOWN: return \"I don't know what you mean...\"; break;\n \n case HELP: result += printHelp(); break;\n case GO: result += goRoom(command); break;\n case QUIT: return quit(command);//refactored from refactoring\n default: result += \"I don't know what you mean...\";\n }\n return result;\n }",
"public void onCmd(String cmd) \n {\n \tString split[] = cmd.split(\" \");\n \tif (split.length <= 1)\n \t{\n \t\tacm(\"No command was typed. Use \\\"help\\\" for a list of commands\");\n \t\treturn;\n \t}\n \telse\n \t{\n \t\tfor (ICommand command : commands)\n \t\t{\n \t\t\tif (command.getCommand().equalsIgnoreCase(split[1]))\n \t\t\t{\n \t\t\t\tcommand.onCmd(split);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\tacm(\"\\\"\" + split[1] + \"\\\" Unknown command. Use \\\"help\\\" for a list of commands\");\n \t}\n }",
"@Test\n public void parseCommand_undo() throws Exception {\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD) instanceof UndoCommand);\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"all\")\n instanceof UndoCommand);\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"5\")\n instanceof UndoCommand);\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"0\")\n instanceof UndoCommand);\n assertTrue(parser.parseCommand(UndoCommand.COMMAND_WORD + \" \" + PREFIX_UNDO_REDO + \"-5\")\n instanceof UndoCommand);\n }",
"public void\n\t\t\thandleCommand(/*@ non_null */ String command);",
"public Command getCommand(String userInput) {\n return this.parser.parse(userInput);\n }",
"private void parseCommand(String spokenString) {\n\t\tRuleParse parse = null;\n\t\ttry {\n\t\t\tparse = rules.parse(spokenString, null);\n\t\t} catch (GrammarException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString[] result = parse.getTags();\n\n\t\tfor(String r:result){\n\t\t\tSystem.out.println(r);\n\t\t}\n\t}",
"@Override\n\tpublic Command parse(String[] commandWords) {\n\t\tCommand comando = null;\n\t\tif(commandWords[0].equalsIgnoreCase(\"exit\") || commandWords[0].equalsIgnoreCase(\"e\"))\n\t\t\tcomando = new ExitCommand();\n\t\treturn comando;\n\t}",
"private void processCommand(Command command) {\n if (command.commandIsUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n } else {\n String commandWord = command.getCommandWord();\n // process all possible commands\n if (commandWord.equals(\"help\")) {\n printHelp();\n } else if (commandWord.equals(\"go\")) {\n if (!command.hasSecondWord()) {\n System.out.println(\"Go where?\");\n } else {\n goDirection(command);\n }\n } else if (commandWord.equals(\"quit\")) {\n if (command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n } else {\n finished = true;\n }\n }\n }\n }",
"protected P parse(String options, String[] args){\n HashMap cmdFlags = new HashMap();\n String flag;\n String nextFlag=null;\n StringBuffer errors=new StringBuffer();\n /**\n First go through options to see what should be in args\n */\n for(int which=0;which<options.length();which++){\n flag = \"-\"+options.substring(which,which+1);\n if(which+1<options.length()){\n nextFlag=options.substring(which+1,which+2);\n if (nextFlag.equals(\"-\")){\n cmdFlags.put(flag,nextFlag);\n } else\n if (nextFlag.equals(\"+\")){\n cmdFlags.put(flag,nextFlag);\n /*\n mark that it is required\n if found this will be overwritten by -\n */\n this.put(flag,nextFlag);\n } else\n //JDH changed to \"_\" from \";\" because too many cmdlines mess up ;\n if (nextFlag.equals(\"_\")){\n cmdFlags.put(flag,nextFlag);\n } else\n //JDH changed to \".\" from \":\" because too many cmdlines mess up ;\n if (nextFlag.equals(\".\")){\n cmdFlags.put(flag,\" \"); //JDH changed this from \":\"\n /*\n mark that it is required\n if found this will be overwritten by value\n JDH should use \" \" so it cannot be the same as a value\n */\n this.put(flag,\" \"); // mark that it is required\n } else {\n System.out.println(\"Bad symbol \"+nextFlag+\"in option string\");\n }\n which++;\n } else {\n System.out.println(\"Missing symbol in option string at \"+which);\n }\n }\n\n int arg=0;\n for(;arg<args.length;arg++){\n if (!args[arg].startsWith(\"-\")){\n break;\n }\n flag = args[arg];\n /*\n This should tell it to quit looking for flags or options\n */\n if (flag.equals(\"--\")){\n arg++;\n break;\n }\n if (!(cmdFlags.containsKey(flag))){\n errors.append(\"\\nbad flag \"+flag);\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"-\")){\n this.put(flag,\"-\");\n continue;\n }\n if (((String)cmdFlags.get(flag)).equals(\"+\")){\n this.put(flag,\"-\");// turns off the + because it was found\n continue;\n }\n if (!(arg+1<args.length)){\n errors.append(\"\\nMissing value for \"+flag);\n continue;\n }\n arg++;\n this.put(flag,args[arg]);\n }\n String[] params=null;\n params = new String[args.length - arg];\n\n int n=0;\n // reverse these so they come back in the right order!\n for(;arg<args.length;arg++){\n params[n++] = args[arg];\n }\n Iterator k = null;\n Map.Entry e = null;\n if (this.containsValue(\"+\")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\"+\".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required flag \"+(String)e.getKey()+\" was not supplied.\");\n };\n }\n } \n /*\n Should change this to \" \" in accordance with remark above\n */\n //JDH changed to \" \" from \":\" in both spots below\n if (this.containsValue(\" \")){\n // can iterate through to see which ones\n k = this.entrySet().iterator();\n while (k.hasNext()){\n if (\" \".equals((String)(e=(Map.Entry)k.next()).getValue())){\n errors.append(\"\\nThe required option \"+(String)e.getKey()+\" was not supplied.\");\n }\n }\n }\n this.put(\" \",params);\n this.put(\"*\",errors.toString());\n return this;\n }",
"public boolean parse(String input) {\n\t\tif (input.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString[] sp = input.split(\" \");\n\t\tthis.command = sp[0];\n\t\tif (sp.length > 1) {\n\t\t\tthis.arguments = Arrays.copyOfRange(sp, 1, sp.length);\n\t\t}\n\t\treturn true;\n\t}",
"public void processCommand(String command, MessageReceivedEvent event){\n command = command.toLowerCase();\n String[] parsing = command.split(\" \");\n switch(parsing[1]){\n case \"new\":\n validateNewCraftEntry(parsing, event);\n break;\n case \"list\":\n generateCraftingList(event);\n break;\n case \"help\":\n showHelp(event);\n break;\n case \"listall\":\n listall(event);\n break;\n case \"cancel\":\n cancelCraft(event);\n break;\n }\n }",
"public void parse(String eingabe){\n\t\t\n\t\tassert(!eingabe.equals(\"\"));\n\t\t\n\t\tint linebreaks = eingabe.length() - eingabe.replace(\"\\n\", \"\").length(); \t// Number of line breaks \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Used to check command entry\n\t\tcommandStrings = eingabe.split(\"\\n\");\t\t\t\t\t\t\t\t\t//Splits eingabe into seperate commands\n\t\tString command = commandStrings[commandStrings.length-1];\t\t\t\t\t//Gets the latest entry\n\t\tMatcher m = pattern.matcher(command);\n\t\tif(linebreaks == commandStrings.length) {\n\t\t\tSystem.out.println(command);\n\t\t\tassert(!command.equals(\"\"));\n\t\t\tif(command.contains(\"right\"))\n\t\t\t\tcreateMoveCommand(m, \"right\");\n\t\t\telse if(command.contains(\"left\"))\n\t\t\t\tcreateMoveCommand(m, \"left\");\n\t\t\telse if(command.contains(\"up\"))\n\t\t\t\tcreateMoveCommand(m, \"up\");\n\t\t\telse if(command.contains(\"down\"))\n\t\t\t\tcreateMoveCommand(m, \"down\");\n\t\t\telse if(command.contains(\"diagonal\"))\n\t\t\t\tcreateDiagonalCommand(command);\n\t\t}\n\t\t\n\t\tassert(invariant());\n\t}",
"public void parse()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstatus = program();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}",
"private static Command<?> getCommand(@NonNull String inputStr) {\n int seperatorIndex = inputStr.indexOf(' ');\n String commandStr = seperatorIndex == -1 ? inputStr : inputStr.substring(0, seperatorIndex);\n String paramStr = seperatorIndex == -1 ? \"\" : inputStr.substring(seperatorIndex + 1).trim();\n\n if (\"Tag\".equalsIgnoreCase(commandStr)) {\n List<String> tagList = Splitter.on(\",\")\n .trimResults()\n .omitEmptyStrings()//可以 选择是否对 空字符串 做处理\n .splitToList(paramStr.replace(',', ','));\n return new TagCommand(tagList.toArray(new String[]{}));\n } else if (\"Name\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify file path\");\n }\n return new NameCommand(paramStr);\n } else if (\"Where\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify search criteria\");\n }\n return new WhereCommand(paramStr);\n } else if (\"Analyze\".equalsIgnoreCase(commandStr)) {\n return new AnalyzeCommand();\n } else if (\"Export\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify export file path\");\n }\n return new ExportCommand(paramStr);\n } else {\n throw new IllegalArgumentException(\"Use either Tag, Where, Name, Export, or Analyze\");\n }\n }",
"public String parseLine(String line) {\r\n String[] temp = line.split(\":\");\r\n\r\n if (temp[0].equalsIgnoreCase(\"user\")) {\r\n cmd = temp[0];\r\n userName = temp[1];\r\n } else if (temp[0].equalsIgnoreCase(\"play\")) {\r\n if (!playing) {\r\n cmd = temp[0];\r\n game = temp[1];\r\n } else {\r\n cmd = temp[0];\r\n userGuess = temp[1];\r\n }\r\n\r\n } else if(temp[0].equalsIgnoreCase(\"quit\")) {\r\n System.out.println(temp[0]);\r\n cmd = temp[0];\r\n } else if (temp[0].equalsIgnoreCase(\"reset\")) {\r\n cmd = temp[0];\r\n } else {\r\n cmd = \"invalid command\";\r\n }\r\n return cmd;\r\n }",
"public AppointmentCommand parseAppointmentCommand(String commandWord, String arguments) throws ParseException {\n switch (commandWord) {\n case AddAppointmentCommand.COMMAND_WORD:\n return new AddAppointmentCommandParser().parseAppointmentCommand(arguments);\n case EditAppointmentCommand.COMMAND_WORD:\n return new EditAppointmentCommandParser().parseAppointmentCommand(arguments);\n case DeleteAppointmentCommand.COMMAND_WORD:\n return new DeleteAppointmentCommandParser().parseAppointmentCommand(arguments);\n case ArchiveAppointmentCommand.COMMAND_WORD:\n return new ArchiveAppointmentCommandParser().parseAppointmentCommand(arguments);\n case ListAppointmentsCommand.COMMAND_WORD:\n return new ListAppointmentsCommand();\n case ListArchivedAppointmentsCommand.COMMAND_WORD:\n return new ListArchivedAppointmentsCommand();\n case SortAppointmentsCommand.COMMAND_WORD:\n return new SortAppointmentsCommand();\n case AddPrescriptionCommand.COMMAND_WORD:\n return new AddPrescriptionCommandParser().parseAppointmentCommand(arguments);\n case DeletePrescriptionCommand.COMMAND_WORD:\n return new DeletePrescriptionCommandParser().parseAppointmentCommand(arguments);\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n }\n }",
"@Override\n\tpublic void processCommand(String s)\n\t{\n\t\tif (s.contentEquals(\"atStart\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t\tSystem.out.println(isAtStart());\n\t\t}\n\t\telse if (s.contentEquals(\"atEnd\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t\tSystem.out.println(isAtEnd());\n\t\t}\n\t\telse if (s.contentEquals(\"moveToStart\"))\n\t\t{\n\t\t\tmoveToStart();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveToEnd\"))\n\t\t{\n\t\t\tmoveToEnd();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"toString\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.startsWith(\"toStringCursor\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveLeft\"))\n\t\t{\n\t\t\tmoveLeft();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveRight\"))\n\t\t{\n\t\t\tmoveRight();\n\t\t\tprinttest(s);\n\t\t}\n\t\t\n\t\t//ERROR CHECKING\n\t\telse if(left.isEmpty() && right.isEmpty())\n\t\t{\n\t\t\t//we have no inputted characters\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\t\tSystem.out.println(\"The Results of this command are:\");\n\t\t\tSystem.out.println(\"Sorry but you need to input something before using that command...\");\n\t\t}\n\t\telse if (s.startsWith(\"insertChar\"))\n\t\t{\n\t\t\tinsertChar(s.charAt(s.length() - 1));\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"backspace\"))\n\t\t{\n\t\t\tbackspace();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"delete\"))\n\t\t{\n\t\t\tdelete();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.startsWith(\"search\"))\n\t\t{\n\t\t\tsearch(s.charAt(s.length() - 1));\n\t\t\tprinttest(s);\n\t\t}\n\t\t\n\t\t//ERORR CHECKING\n\t\telse\n\t\t{\n\t\t\t//it is an unaccepted command, doing it this way since we cant pass two strings to printtest\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\t\tSystem.out.println(\"The Results of this command are:\");\n\t\t\tSystem.out.println(\"Sorry but this is not valid command...\");\n\t\t}\n\n\t}",
"CommandResult execute(String commandText) throws CommandException, ParseException, UnmappedPanelException;",
"public interface CommandParser {\n String[] splitStringIntoCommands(String string);\n String[] splitCommandIntoParams(String string);\n String convertArrayToString(String... stringArray);\n}",
"private Float parseCommand(String commandLine) throws ATMException \n {\n StringTokenizer tokenizer = new StringTokenizer(commandLine);\n String commandParams[] = new String[tokenizer.countTokens()];\n \n int index = 0;\n while (tokenizer.hasMoreTokens()) \n {\n commandParams[index++] = tokenizer.nextToken();\n }\n String commandString = commandParams[0];\n if (commandString.equalsIgnoreCase(Commands.BALANCE.toString())) //Get Balance\n {\n return atm.getBalance();\n }\n \n if (commandParams.length < 2) \n {\n throw new ATMException(\"Amount is not provided for: \" + commandString);\n }\n \n try\n {\n float money = Float.parseFloat(commandParams[1]);\n \n if (commandString.equalsIgnoreCase(Commands.WITHDRAW.toString())) //Withdraw Money\n {\n atm.withdraw(money);\n }\n \n else if (commandString.equalsIgnoreCase(Commands.DEPOSIT.toString())) //Deposit Money\n {\n atm.deposit(money); \n }\n \n else \n {\n throw new ATMException(\"Command cannot be identified: \" + commandString);\n }\n } \n catch (Exception e) \n {\n throw new ATMException(\"[Error]: \" + e);\n }\n return null;\n }",
"private Command createCommand(String command) {\n\t\tString[] tokens = command.split(\" \");\n\t\tswitch(tokens[0].toLowerCase()) {\n\t\tcase DRAW:\n\t\t\treturn createDrawCommand(command);\n\t\t\n\t\tcase SKIP:\n\t\t\treturn createSkipCommmand(command);\n\t\t\t\n\t\tcase SCALE:\n\t\t\treturn createScaleCommand(command);\n\t\t\t\n\t\tcase ROTATE:\n\t\t\treturn createRotateCommand(command);\n\t\t\t\n\t\tcase PUSH:\n\t\t\treturn createPushCommand();\n\t\t\t\n\t\tcase POP:\n\t\t\treturn createPopCommand();\n\t\t\t\n\t\tcase COLOR:\n\t\t\treturn createColorCommand(command);\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"Invalid command argument\");\n\t\t}\n\t}",
"protected void executeCommand(String command, StringTokenizer tok) {\n\t\tparser.updateLineCounter(lineCount, lastLine);\n\t\tif (command.equals(\"import\")) {\n\t\t\tString file = Parser.getArgument(tok.nextToken())[1];\n\t\t\tparseFile(Values.StorySequences, file);\n\t\t\tlineCount -= parser.variableSize();\n\t\t} else if (command.equals(\"info\")) {\n\t\t\tString[] arguments;\n\t\t\twhile (tok.hasMoreTokens()) {\n\t\t\t\targuments = Parser.getArgument(tok.nextToken());\n\t\t\t\tnewVillageInfo.put(arguments[0], Parser.getText(tok, arguments[1])[0]);\n\t\t\t}\n\t\t} else if (command.equals(\"actor\")) {\n\t\t\tString name = Parser.getText(tok, Parser.getArgument(tok.nextToken())[1])[0];\n\t\t\tgetList(TimeLineEvent.ACTORS).add(name);\n//\t\t\tLoad.loadNewCharacter(name);\n\t\t\tint[] pos = null;\n\t\t\tif (tok.hasMoreTokens()) {\n\t\t\t\tpos = parser.getPos(Parser.getArgument(tok.nextToken())[1]);\n\t\t\t}\n\t\t\tif (pos != null) {\n\t\t\t\tposes.put(name, pos);\n\t\t\t}\n\t\t} else if (command.equals(\"pos\")) {\n\t\t\tString name = Parser.getText(tok, Parser.getArgument(tok.nextToken())[1])[0];\n\t\t\tint[] pos = null;\n\t\t\tif (tok.hasMoreTokens()) {\n\t\t\t\tpos = parser.getPos(Parser.getArgument(tok.nextToken())[1]);\n\t\t\t}\n\t\t\tif (pos != null) {\n\t\t\t\tposes.put(name, pos);\n\t\t\t}\n\t\t} else if (command.equals(\"set\")) {\n\t\t\tString val = tok.nextToken();\n\t\t\tif (val.equals(\"fromvillage\")) {\n\t\t\t\tfromVillage = true;\n\t\t\t} else if (val.equals(\"passvillage\")) {\n\t\t\t\tpassVillage = true;\n\t\t\t}\n\t\t} else if (command.equals(\"ins\")) {\n\t\t\tTimeLineEvent t = parser.getTimeLineEvent(tok);\n\t\t\tinfo.add(t);\n\t\t} else if (command.equals(\"show\")) {\n\t\t\tif (showing == null) {\n\t\t\t\tshowing = new boolean[getList(TimeLineEvent.ACTORS).size()];\n\t\t\t\tArrays.fill(showing, true);\n\t\t\t}\n\t\t\tparser.show(tok, showing);\n\t\t} else if (command.equals(\"dialogpacket\")) {\n\t\t\tdialogs.add(parser.getDialogPacket(tok));\n\t\t} else if (command.equals(\"var\")) {\n\t\t\tparser.addVariable(tok);\n\t\t} else if (command.equals(\"text\")) {\n\t\t\ttexts.add(parser.getText(tok));\n\t\t} else if (command.equals(\"newscrolltext\")) {\n\t\t\tscrolltext = new ScrollableTexts();\n\t\t\tString[] args = Parser.getArgument(tok.nextToken());\n\t\t\tString cmd = args[0];\n\t\t\tString argument = args[1];\n\t\t\tif (cmd.equals(\"speed\")) {\n\t\t\t\tscrolltext.setSpeed(Float.parseFloat(argument));\n\t\t\t}\n\t\t} else if (command.equals(\"scrolltext\")) {\n\t\t\tscrolltext.add(parser.getScrollText(tok));\n\t\t} else if (command.equals(\"load\")) {\n\t\t\tString[] args = Parser.getArgument(tok.nextToken());\n\t\t\tString cmd = args[0];\n\t\t\tString argument = Parser.getText(tok, args[1])[0];\n\t\t\tif (cmd.equals(\"image\")) {\n\t\t\t\tif (!argument.equals(\"black\")) {\n\t\t\t\t\targument = Values.StoryImages + argument + \".jpg\";\n\t\t\t\t\tImageHandler.addToCurrentLoadNow(argument);\n\t\t\t\t}\n\t\t\t\tgetList(TimeLineEvent.IMAGES).add(argument);\n\t\t\t} else if (cmd.equals(\"translucent\")) {\n\t\t\t\tif (!argument.equals(\"black\")) {\n\t\t\t\t\tImageHandler.addToCurrentLoadNow(argument);\n\t\t\t\t}\n\t\t\t\tgetList(TimeLineEvent.IMAGES).add(argument);\n\t\t\t} else if (cmd.equals(\"music\")) {\n\t\t\t\tgetList(TimeLineEvent.MUSICS).add(argument);\n\t\t\t} else if (cmd.equals(\"trigger\")) {\n\t\t\t\tgetList(TimeLineEvent.TRIGGERS).add(Organizer.convert(argument));\n\t\t\t} else if (cmd.equals(\"character\")) {\n\t\t\t\tLoad.loadNewCharacter(argument);\n\t\t\t} else if (cmd.equals(\"animation\")) {\n\t\t\t\tgetList(TimeLineEvent.ANIMATIONS).add(argument);\n\t\t\t} else if (cmd.equals(\"story\")) {\n\t\t\t\tgetList(TimeLineEvent.STORY_SEQUENCES).add(argument);\n\t\t\t} else if (cmd.equals(\"particleSystem\")) {\n\t\t\t\tgetList(TimeLineEvent.PARTICLE_SYSTEMS).add(argument);\n\t\t\t}\n\t\t} else if (command.equals(\"unload\")) {\n\t\t\tString[] args = Parser.getArgument(tok.nextToken());\n\t\t\tString cmd = args[0];\n\t\t\tString argument = Parser.getText(tok, args[1])[0];\n\t\t\tif (cmd.equals(\"character\")) {\n\t\t\t\tLoad.unloadNewCharacter(argument);\n\t\t\t} \n\t\t} else if (command.equals(\"dialog\")) {\n\t\t\tparser.addDialog(tok, dialogs, null);\n\t\t} else if (command.equals(\"dialogsingle\")) {\n\t\t\tdialogs.add(parser.addSingleDialog(tok));\n\t\t} else if (command.equals(\"set\")) {\n\t\t\tString[] args = Parser.getArgument(tok.nextToken());\n\t\t\tString cmd = args[0];\n\t\t\tString argument = Parser.getText(tok, args[1])[0];\n\t\t\tif (cmd.equals(\"drawpause\")) {\n\t\t\t\tdrawPause = argument.equals(\"true\");\n\t\t\t} \n\t\t} else {\n\t\t\tParser.error(\"Unknown command: \" + lastLine);\n\t\t}\n\t}",
"public Command getCommand() {\n String userInput = in.nextLine();\n String[] words = userInput.split(\" \", 2);\n try {\n return new Command(words[0].toLowerCase(), words[1]);\n } catch (ArrayIndexOutOfBoundsException e) {\n return new Command(words[0].toLowerCase(), Command.BLANK_DESCRIPTION);\n }\n }",
"public abstract void doCommand(String command);",
"private void handleCommand(String input) throws ClientOfflineException, ServerException {\n String[] params = input.split(\" \");\n Command command = this.availableCommandMap.get(params[0]);\n String argument = (params.length <= 1) ? null : params[1];\n command.execute(this, argument);\n }",
"public static void processCommand(String command) {\n\n\t\tString commandType = command.substring(0, command.indexOf(\" \"));\n\n\t\tswitch (commandType) {\n\t\t\n\t\tcase COMMAND_ADD:\n\t\t\tFileStorage.addEvent(command);\n\t\t\tbreak;\n\n\t\tcase COMMAND_DELETE:\n\t\t\tFileStorage.deleteEvent(command);\n\t\t\tbreak;\n\n\t\tcase COMMAND_EDIT:\n\t\t\tFileStorage.editEvent(command);\n\t\t\tbreak;\n\t\t\n\t\tcase COMMAND_RECUR:\n\t\t\tFileStorage.recurEvent(command);\n\t\t\tbreak;\n\t\t\t\n\t\tcase COMMAND_NAVIGATE:\n\t\t\tFileStorage.navigateDay(command);\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tSystem.out.println(MESSAGE_INVALID);\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}",
"private void processCommand(String command) {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"c\")) {\n doMarkTaskAsCompleted();\n } else if (command.equals(\"m\")) {\n doModifyTask();\n } else if (command.equals(\"v\")) {\n doViewAllTasks();\n } else if (command.equals(\"ct\")) {\n doViewAllCompletedTasks();\n } else if (command.equals(\"s\")) {\n saveTasks();\n } else {\n System.out.println(\"Invalid selection, kindly select from the options available.\");\n }\n }",
"@Test\n public void parse_invalidArgs_returnsGoogleCommand() {\n assertParseFailure(parser, \"one\", String.format(MESSAGE_INVALID_COMMAND_FORMAT,\n GoogleCommand.MESSAGE_USAGE));\n }",
"private void handleCommand(Message msg, String commands) {\n String[] tokens = commands.split(\" \");\n String command = tokens[0];\n\n switch(command) {\n case \"query\":\n queryProblems(msg, tokens);\n break;\n case \"help\":\n printHelpMessage(msg, tokens);\n break;\n default:\n // Implement more commands later\n break;\n }\n }",
"private static Command parseTodoCommand(String[] args) throws DukeMissingDescriptionException {\n logger.log(INFO, \"Parse TODO command: {0}\", new Object[]{Arrays.toString(args)});\n\n if (args.length == 0) {\n throw new DukeMissingDescriptionException(\"Hmm... I need to know your to-do description.\");\n }\n return new AddCommand(TODO, args, false);\n }",
"protected String processCommand(String command)\n {\n switch (command)\n {\n case \"HELLO\":\n return \"h\";\n case \"MOVE N\":\n return \"mn\";\n case \"MOVE S\":\n return \"ms\";\n case \"MOVE E\":\n return \"me\";\n case \"MOVE W\":\n return \"mw\";\n case \"PICKUP\":\n return \"p\";\n case \"LOOK\":\n return \"l\";\n case \"QUIT\":\n return \"q\";\n default:\n return \"i\";\n }\n }"
]
| [
"0.76493907",
"0.75711983",
"0.7566395",
"0.73932695",
"0.7371335",
"0.7352558",
"0.7299774",
"0.72384286",
"0.7230605",
"0.71793723",
"0.7169169",
"0.71343327",
"0.71320117",
"0.7118996",
"0.7076305",
"0.6992555",
"0.6991926",
"0.69141114",
"0.68443805",
"0.67944115",
"0.6771495",
"0.6769004",
"0.6748469",
"0.67369676",
"0.6728808",
"0.66830814",
"0.66816604",
"0.6673212",
"0.6656198",
"0.66299415",
"0.66204137",
"0.6582354",
"0.6574689",
"0.6545372",
"0.65072",
"0.6442496",
"0.6433711",
"0.6431444",
"0.64217484",
"0.6408709",
"0.6322013",
"0.6321883",
"0.6300764",
"0.6299041",
"0.62749267",
"0.62624454",
"0.62476957",
"0.6231238",
"0.6222482",
"0.6220849",
"0.6211146",
"0.620597",
"0.61997133",
"0.6191197",
"0.617525",
"0.6164226",
"0.6159586",
"0.61583763",
"0.6133626",
"0.6127924",
"0.60966265",
"0.6079577",
"0.6073704",
"0.60724384",
"0.6067504",
"0.6067504",
"0.6067504",
"0.6060844",
"0.6050741",
"0.6042841",
"0.6040439",
"0.60322684",
"0.6030263",
"0.6014937",
"0.60125333",
"0.6007291",
"0.60072136",
"0.5992644",
"0.5991525",
"0.5958504",
"0.5952699",
"0.5941864",
"0.59415907",
"0.5924371",
"0.5911351",
"0.5903263",
"0.59007245",
"0.58991313",
"0.58842194",
"0.587488",
"0.5872203",
"0.5871655",
"0.58715755",
"0.58644134",
"0.58618605",
"0.5854836",
"0.58503854",
"0.58483607",
"0.5826425",
"0.58221704",
"0.58087665"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] arr = {1, 2, 5, 5, 5, 10, 20};
int search = 5;
int index = Arrays.binarySearch(arr, search);
//System.out.println(index);
if(index < 0) {
int lowerBound = Math.abs(index) - 2;
int upperBound = Math.abs(index) - 1;
System.out.println(lowerBound + " " + upperBound);
}
} | {
"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 |
Each defrecord in array has a masterCriteriaList: GROUP_DEF_KEY attributeList: ATTRIBUTE_DEF_KEY | static public boolean boolForString(String s) {
return ERXValueUtilities.booleanValue(s);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<SalesforceMetadataTree> metaDataList(ArrayList<String> objectArray,ArrayList<String> fieldArray, Map<String, SalesforceSetupDetail> hashTable,List<SalesforceMetadataTree> treeMapDataList,String type) {\r\n\r\n\t\tint i=0 ;\r\n\t\tif(!type.equalsIgnoreCase(\"Custom\")){\r\n\t\t\ti=1;\r\n\t\t}\r\n\t\tfor ( ;i < objectArray.size(); i++) {\r\n\r\n\t\t\tMap map = new HashMap();\r\n\t\t\t// Adding elements to map\r\n\t\t\tif(type.equalsIgnoreCase(\"Custom\"))\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tmap.put(objectArray.get(i), fieldArray.get(i));\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\tmap.put(objectArray.get(i), fieldArray.get(i-1));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t// Traversing Map\r\n\t\t\tSet set = map.entrySet();// Converting to Set so that we can\r\n\t\t\t\t\t\t\t\t\t\t// traverse\r\n\t\t\tIterator itr = set.iterator();\r\n\t\t\twhile (itr.hasNext()) {\r\n\t\t\t\tboolean ischecked = false;\r\n\t\t\t\tSalesforceMetadataTree mtc = null;\r\n\t\t\t\tList<SalesforceMetadataTree> mtca = new ArrayList<SalesforceMetadataTree>();\r\n\t\t\t\t// Converting to Map.Entry so that we can get key and value\r\n\t\t\t\t// separately\r\n\t\t\t\tMap.Entry entry = (Map.Entry) itr.next();\r\n\t\t\t\tSystem.out.println(entry.getKey() + \" \" + entry.getValue());\r\n\t\t\t\tString[] sarray = entry.getValue().toString().split(\",\");\r\n\t\t\t\ttreeMap.put(entry.getKey().toString(), sarray);\r\n\t\t\t\tSalesforceMetadataTree child = null;\r\n\t\t\t\tSalesforceSetupDetail colvalues = hashTable.get(entry.getKey().toString());\r\n\t\t\t\tfor (int k = 0; k < sarray.length; k++) {\r\n\t\t\t\t\tchild = new SalesforceMetadataTree();\r\n\t\t\t\t\tchild.setName(sarray[k]);\r\n\t\t\t\t\tif (colvalues != null && colvalues.getSalesforceFields().contains(sarray[k])) {\r\n\t\t\t\t\t\tchild.setChecked(true);\r\n\t\t\t\t\t\tischecked=true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tchild.setChecked(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmtca.add(child);\r\n\t\t\t\t}\r\n\t\t\t\tmtc = new SalesforceMetadataTree();\r\n\t\t\t\tmtc.setName(entry.getKey().toString());\r\n\t\t\t\tif(!ischecked)\r\n\t\t\t\t{\r\n\t\t\t\t\tmtc.setChecked(false);\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tmtc.setChecked(true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmtc.setChildren(mtca);\r\n\t\t\t\tif(colvalues!= null){\r\n\t\t\t\t\tmtc.setId(colvalues.getId());\r\n\t\t\t\t}\r\n\t\t\t\ttreeMapDataList.add(mtc);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tSystem.out.println(treeMapDataList);\r\n\t\treturn treeMapDataList;\r\n\r\n\t}",
"private List<Expression<?>> constructGroupBy(CriteriaBuilderImpl cb, AbstractQuery<?> q, Tree groupByDef) {\n \t\tfinal List<Expression<?>> groupBy = Lists.newArrayList();\n \n \t\tfor (int i = 0; i < groupByDef.getChildCount(); i++) {\n \t\t\tgroupBy.add(this.getExpression(cb, q, groupByDef.getChild(i), null));\n \t\t}\n \n \t\treturn groupBy;\n \t}",
"public EmpdetailExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"void insertBatch(List<InspectionAgency> recordLst);",
"public StringBuilder adminBatchModGroupFilterCondInfo(HttpServletRequest req) throws Exception {\n StringBuilder sBuilder = new StringBuilder(512);\n try {\n WebParameterUtils.reqAuthorizeCheck(master, brokerConfManager,\n req.getParameter(\"confModAuthToken\"));\n String modifyUser =\n WebParameterUtils.validStringParameter(\"modifyUser\",\n req.getParameter(\"modifyUser\"),\n TBaseConstants.META_MAX_USERNAME_LENGTH,\n true, \"\");\n Date modifyDate =\n WebParameterUtils.validDateParameter(\"modifyDate\",\n req.getParameter(\"modifyDate\"),\n TBaseConstants.META_MAX_DATEVALUE_LENGTH,\n false, new Date());\n List<Map<String, String>> jsonArray =\n WebParameterUtils.checkAndGetJsonArray(\"filterCondJsonSet\",\n req.getParameter(\"filterCondJsonSet\"),\n TBaseConstants.META_VALUE_UNDEFINED, true);\n if ((jsonArray == null) || (jsonArray.isEmpty())) {\n throw new Exception(\"Null value of filterCondJsonSet, please set the value first!\");\n }\n Set<String> batchRecords = new HashSet<>();\n List<BdbGroupFilterCondEntity> modifyFilterCondEntities = new ArrayList<>();\n for (int j = 0; j < jsonArray.size(); j++) {\n Map<String, String> groupObject = jsonArray.get(j);\n try {\n String groupName =\n WebParameterUtils.validGroupParameter(\"groupName\",\n groupObject.get(\"groupName\"),\n TBaseConstants.META_MAX_GROUPNAME_LENGTH,\n true, \"\");\n String topicName =\n WebParameterUtils.validStringParameter(\"topicName\",\n groupObject.get(\"topicName\"),\n TBaseConstants.META_MAX_TOPICNAME_LENGTH,\n true, \"\");\n BdbGroupFilterCondEntity curFilterCondEntity =\n brokerConfManager.getBdbAllowedGroupFilterConds(topicName, groupName);\n if (curFilterCondEntity == null) {\n throw new Exception(sBuilder\n .append(\"Not found group filter condition configure record by topicName=\")\n .append(topicName)\n .append(\", groupName=\")\n .append(groupName).toString());\n }\n String recordKey = sBuilder.append(groupName)\n .append(\"-\").append(topicName).toString();\n sBuilder.delete(0, sBuilder.length());\n if (batchRecords.contains(recordKey)) {\n continue;\n }\n boolean foundChange = false;\n BdbGroupFilterCondEntity newFilterCondEntity =\n new BdbGroupFilterCondEntity(curFilterCondEntity.getTopicName(),\n curFilterCondEntity.getConsumerGroupName(),\n curFilterCondEntity.getControlStatus(),\n curFilterCondEntity.getAttributes(),\n modifyUser, modifyDate);\n int filterCondStatus =\n WebParameterUtils.validIntDataParameter(\"condStatus\",\n groupObject.get(\"condStatus\"),\n false, TBaseConstants.META_VALUE_UNDEFINED,\n 0);\n if (filterCondStatus != TBaseConstants.META_VALUE_UNDEFINED\n && filterCondStatus != curFilterCondEntity.getControlStatus()) {\n foundChange = true;\n newFilterCondEntity.setControlStatus(filterCondStatus);\n }\n String strNewFilterConds =\n WebParameterUtils.checkAndGetFilterConds(\n (String) groupObject.get(\"filterConds\"),\n false, sBuilder);\n if (TStringUtils.isNotBlank(strNewFilterConds)) {\n if (!curFilterCondEntity.getAttributes().equals(strNewFilterConds)) {\n foundChange = true;\n newFilterCondEntity.setAttributes(strNewFilterConds);\n }\n }\n if (!foundChange) {\n continue;\n }\n batchRecords.add(recordKey);\n modifyFilterCondEntities.add(newFilterCondEntity);\n } catch (Exception ee) {\n sBuilder.delete(0, sBuilder.length());\n throw new Exception(sBuilder.append(\"Process data exception, data is :\")\n .append(groupObject.toString())\n .append(\", exception is : \")\n .append(ee.getMessage()).toString());\n }\n }\n for (BdbGroupFilterCondEntity tmpFilterCondEntity : modifyFilterCondEntities) {\n try {\n brokerConfManager.confModGroupFilterCondConfig(tmpFilterCondEntity);\n } catch (Throwable ee) {\n //\n }\n }\n sBuilder.append(\"{\\\"result\\\":true,\\\"errCode\\\":0,\\\"errMsg\\\":\\\"OK\\\"}\");\n } catch (Exception e) {\n sBuilder.delete(0, sBuilder.length());\n sBuilder.append(\"{\\\"result\\\":false,\\\"errCode\\\":400,\\\"errMsg\\\":\\\"\")\n .append(e.getMessage()).append(\"\\\"}\");\n }\n return sBuilder;\n }",
"@Override\n\tprotected Hashtable<String, AbsRecord> createHashtableRecordModel(List<AbsRecord> records)\n\t{\n\t\tHashtable<String, AbsRecord> results = null;\n\t\tStringBuilder key = null;\n\t\tGAZRecordDataModel gazRecordDataModel;\n\n\t\tif (!records.isEmpty())\n\t\t{\n\t\t\tresults = new Hashtable<String, AbsRecord>();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tfor (AbsRecord absRecord : records)\n\t\t{\n\t\t\tgazRecordDataModel = (GAZRecordDataModel) absRecord;\n\t\t\t// key=optionId + fieldId + pvId + type;\n\t\t\tkey = new StringBuilder(gazRecordDataModel.getOptionId());\n\t\t\tkey.append(gazRecordDataModel.getFieldId());\n\t\t\tkey.append(gazRecordDataModel.getPvId());\n\t\t\tkey.append(gazRecordDataModel.getType());\n\n\t\t\tresults.put(key.toString(), gazRecordDataModel);\n\t\t}\n\n\t\treturn results;\n\t}",
"private static void setupRecords(String[] arr, AllDataRecords rec) {\r\n\t\t\r\n\t\tif(!arr[0].equals(\"\")) rec.setCpscCase(Integer.parseInt(arr[0]));\r\n\t\telse rec.setCpscCase(-1);\r\n\t\trec.setTrmt_date(arr[1]);\r\n\t\tif(!arr[2].equals(\"\")) rec.setPsu(Integer.parseInt(arr[2]));\r\n\t\telse rec.setPsu(-1);\r\n\t\tif(!arr[3].equals(\"\")) rec.setWeight(Double.parseDouble(arr[3]));\r\n\t\telse rec.setWeight(-1);\r\n\t\trec.setStratum(arr[4]);\r\n\t\tif(!arr[5].equals(\"\")) rec.setAge(Integer.parseInt(arr[5]));\r\n\t\telse rec.setAge(-1);\r\n\t\tif(!arr[6].equals(\"\")) rec.setSex(Integer.parseInt(arr[6]));\r\n\t\telse rec.setSex(-1);\r\n\t\tif(!arr[7].equals(\"\")) rec.setRace(Integer.parseInt(arr[7]));\r\n\t\telse rec.setRace(-1);\r\n\t\trec.setRace_other(arr[8]);\r\n\t\tif(!arr[9].equals(\"\")) rec.setDiag(Integer.parseInt(arr[9]));\r\n\t\telse rec.setDiag(-1);\r\n\t\trec.setDiag_other(arr[10]);\r\n\t\tif(!arr[11].equals(\"\")) rec.setBody_part(Integer.parseInt(arr[11]));\r\n\t\telse rec.setBody_part(-1);\r\n\t\tif(!arr[12].equals(\"\")) rec.setDisposition(Integer.parseInt(arr[12]));\r\n\t\telse rec.setDisposition(-1);\r\n\t\tif(!arr[13].equals(\"\")) rec.setLocation(Integer.parseInt(arr[13]));\r\n\t\telse rec.setLocation(-1);\r\n\t\tif(!arr[14].equals(\"\")) rec.setFmv(Integer.parseInt(arr[14]));\r\n\t\telse rec.setFmv(-1);\r\n\t\tif(!arr[15].equals(\"\")) rec.setProd1(Integer.parseInt(arr[15]));\r\n\t\telse rec.setProd1(-1);\r\n\t\tif(!arr[16].equals(\"\")) rec.setProd2(Integer.parseInt(arr[16]));\r\n\t\telse rec.setProd2(-1);\r\n\t\trec.setNarr1(arr[17]);\r\n\t\trec.setNarr2(arr[18]);\r\n\t}",
"public ReportMetadataExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}",
"public RichDiamondRecordDOExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private void createQualificationsList(){\n\t\tlistedQualList.clear();\n\t\tlistedQuals=jdbc.get_qualifications();\n\t\tfor(Qualification q: listedQuals){\n\t\t\tlistedQualList.addElement(q.getQualName());\n\t\t}\n\t}",
"public StringBuilder adminBatchAddGroupFilterCondInfo(HttpServletRequest req) throws Exception {\n StringBuilder sBuilder = new StringBuilder(512);\n try {\n WebParameterUtils.reqAuthorizeCheck(master, brokerConfManager,\n req.getParameter(\"confModAuthToken\"));\n String createUser =\n WebParameterUtils.validStringParameter(\"createUser\",\n req.getParameter(\"createUser\"),\n TBaseConstants.META_MAX_USERNAME_LENGTH,\n true, \"\");\n Date createDate =\n WebParameterUtils.validDateParameter(\"createDate\",\n req.getParameter(\"createDate\"),\n TBaseConstants.META_MAX_DATEVALUE_LENGTH,\n false, new Date());\n List<Map<String, String>> filterJsonArray =\n WebParameterUtils.checkAndGetJsonArray(\"filterCondJsonSet\",\n req.getParameter(\"filterCondJsonSet\"),\n TBaseConstants.META_VALUE_UNDEFINED, true);\n if ((filterJsonArray == null) || (filterJsonArray.isEmpty())) {\n throw new Exception(\"Null value of filterCondJsonSet, please set the value first!\");\n }\n Set<String> configuredTopicSet = brokerConfManager.getTotalConfiguredTopicNames();\n HashMap<String, BdbGroupFilterCondEntity> inGroupFilterCondEntityMap =\n new HashMap<>();\n for (int j = 0; j < filterJsonArray.size(); j++) {\n Map<String, String> groupObject = filterJsonArray.get(j);\n try {\n String groupName =\n WebParameterUtils.validGroupParameter(\"groupName\",\n groupObject.get(\"groupName\"),\n TBaseConstants.META_MAX_GROUPNAME_LENGTH,\n true, \"\");\n String groupTopicName =\n WebParameterUtils.validStringParameter(\"topicName\",\n groupObject.get(\"topicName\"),\n TBaseConstants.META_MAX_TOPICNAME_LENGTH,\n true, \"\");\n if (!configuredTopicSet.contains(groupTopicName)) {\n throw new Exception(sBuilder.append(\"Topic \").append(groupTopicName)\n .append(\" not configure in master configure, please configure first!\").toString());\n }\n int filterCondStatus =\n WebParameterUtils.validIntDataParameter(\"condStatus\",\n groupObject.get(\"condStatus\"),\n false, 0, 0);\n String strNewFilterConds =\n WebParameterUtils.checkAndGetFilterConds(\n (String) groupObject.get(\"filterConds\"),\n true, sBuilder);\n String recordKey = sBuilder.append(groupName)\n .append(\"-\").append(groupTopicName).toString();\n sBuilder.delete(0, sBuilder.length());\n inGroupFilterCondEntityMap.put(recordKey,\n new BdbGroupFilterCondEntity(groupTopicName, groupName,\n filterCondStatus, strNewFilterConds,\n createUser, createDate));\n } catch (Exception ee) {\n sBuilder.delete(0, sBuilder.length());\n throw new Exception(sBuilder.append(\"Process data exception, data is :\")\n .append(groupObject.toString()).append(\", exception is : \")\n .append(ee.getMessage()).toString());\n }\n }\n if (inGroupFilterCondEntityMap.isEmpty()) {\n throw new Exception(\"Not found record in filterCondJsonSet parameter\");\n }\n for (BdbGroupFilterCondEntity entity : inGroupFilterCondEntityMap.values()) {\n BdbTopicAuthControlEntity topicAuthControlEntity =\n brokerConfManager.getBdbEnableAuthControlByTopicName(entity.getTopicName());\n if (topicAuthControlEntity == null) {\n try {\n brokerConfManager.confSetBdbTopicAuthControl(\n new BdbTopicAuthControlEntity(entity.getTopicName(),\n false, createUser, createDate));\n } catch (Exception ee) {\n //\n }\n }\n BdbConsumerGroupEntity groupEntity =\n new BdbConsumerGroupEntity();\n groupEntity.setGroupTopicName(entity.getTopicName());\n groupEntity.setConsumerGroupName(entity.getConsumerGroupName());\n List<BdbConsumerGroupEntity> webConsumerGroupEntities =\n brokerConfManager.confGetBdbAllowedConsumerGroupSet(groupEntity);\n if (webConsumerGroupEntities.isEmpty()) {\n try {\n brokerConfManager.confAddAllowedConsumerGroup(\n new BdbConsumerGroupEntity(entity.getTopicName(),\n entity.getConsumerGroupName(), createUser, createDate));\n } catch (Throwable e2) {\n //\n }\n }\n brokerConfManager.confAddNewGroupFilterCond(entity);\n }\n sBuilder.append(\"{\\\"result\\\":true,\\\"errCode\\\":0,\\\"errMsg\\\":\\\"OK\\\"}\");\n } catch (Exception e) {\n sBuilder.delete(0, sBuilder.length());\n sBuilder.append(\"{\\\"result\\\":false,\\\"errCode\\\":400,\\\"errMsg\\\":\\\"\")\n .append(e.getMessage()).append(\"\\\"}\");\n }\n return sBuilder;\n }",
"private void retrieveAll(Definition def)\r\n\t{\n\t\t\r\n\t\t\r\n\t\tjavax.wsdl.Types types=def.getTypes();\r\n\t\tif(types==null) return;\r\n\t\t\r\n\t\tSchema sch=(Schema) def.getTypes().getExtensibilityElements().get(0);\r\n\t\tElement elm=sch.getElement();\r\n\t\tString tns=sch.getElement().getAttribute(\"targetNamespace\");\r\n\t\t\r\n\t\tNodeList nl=elm.getChildNodes();\t\t\r\n\t\tElement elmnt;\r\n\t\tnsInc++;\r\n\t\tfor(int i=0;i<nl.getLength();i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tif (checkElementName(nl.item(i), \"element\" ))\r\n\t\t\t{\r\n\t\t\t\telmnt=(Element)(nl.item(i));\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tOMElement omm=\tcreateOMFromSchema((Element)nl.item(i),tns);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tQName qname=new QName(tns,elmnt.getAttribute(\"name\"));//omm.getNamespace().getPrefix());\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttmpNameAndType.put(qname, omm);\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t}",
"public static void createAdvancedCriteriaUIBatchMap(\n\t\t\tDecisionSupportForm form, String typeRelPage) throws Exception {\n\t\tform.getDwrQuestionsList(typeRelPage);\n\t\tArrayList<BatchEntry> xmlAdvCriteriaBatchEntryList = form\n\t\t\t\t.getDecisionSupportClientVO()\n\t\t\t\t.getAdvancedCriteriaBatchEntryList();\n\t\tArrayList<BatchEntry> uiAdvCriteriaBatchEntryList = new ArrayList<BatchEntry>();\n\t\ttry {\n\t\t\tint id = 1;\n\t\t\tIterator<BatchEntry> it1 = xmlAdvCriteriaBatchEntryList.iterator();\n\t\t\tString eventType = form.getDecisionSupportClientVO().getAnswer(\n\t\t\t\t\tDecisionSupportConstants.EVENT_TYPE);\n\t\t\tif (NEDSSConstants.PHC_236.equals(eventType)) {\n\t\t\t\twhile (it1.hasNext()) {\n\t\t\t\t\tBatchEntry uiBatchEntry = new BatchEntry();\n\t\t\t\t\tBatchEntry listItem = (BatchEntry) it1.next();\n\t\t\t\t\tlistItem.getId();\n\t\t\t\t\t// iterate to get the questionMetadata\n\t\t\t\t\tString questionUid = (String) listItem.getDsmAnswerMap().get(\n\t\t\t\t\t\t\tDecisionSupportConstants.CRITERIA_QUESTION);\n\t\t\t\t\tquestionMap = form.getQuestionMap();\n\t\t\t\t\tIterator<Object> iter = questionMap.keySet().iterator();\n\t\t\t\t\tNbsQuestionMetadata queMetaData = new NbsQuestionMetadata();\n\t\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t\t\tString key = (String) iter.next();\n\t\t\t\t\t\tNbsQuestionMetadata metaData = (NbsQuestionMetadata) questionMap\n\t\t\t\t\t\t\t\t.get(key);\n\t\t\t\t\t\tif (questionUid != null\n\t\t\t\t\t\t\t\t&& questionUid.equals(metaData\n\t\t\t\t\t\t\t\t\t\t.getQuestionIdentifier())) {\n\t\t\t\t\t\t\tqueMetaData = metaData;\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\tMap<String, String> uiAnsMap = new HashMap<String, String>();\n\t\t\t\t\t// this is for question column\n\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\"AdvQuestionList\",\n\t\t\t\t\t\t\tlistItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_QUESTION)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tuiAnsMap.put(\"AdvQueListTxt\", queMetaData.getQuestionLabel());\n\t\t\t\t\t// this is for value column\n\t\t\t\t\tif (queMetaData.getDataType() != null\n\t\t\t\t\t\t\t&& queMetaData.getDataType().equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\tNEDSSConstants.NBS_QUESTION_DATATYPE_TEXT)\n\t\t\t\t\t\t\t\t\t&& !queMetaData.getNbsUiComponentUid().toString()\n\t\t\t\t\t\t\t\t\t.equals(\"1009\")) {\n\t\t\t\t\t\tif (queMetaData.getMask() != null\n\t\t\t\t\t\t\t\t&& queMetaData.getMask().equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\tNEDSSConstants.NBS_QUESTION_MASK_NUMERIC)) {\n\t\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\t\"AdvValValueTxt\",\n\t\t\t\t\t\t\t\t\tlistItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE)\n\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"NumericLiteral\");\n\t\t\t\t\t\t} else if (queMetaData.getMask() != null\n\t\t\t\t\t\t\t\t&& queMetaData\n\t\t\t\t\t\t\t\t.getMask()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\tNEDSSConstants.NBS_QUESTION_MASK_NUMERIC_YEAR)) {\n\t\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\t\"AdvValValueTxt\",\n\t\t\t\t\t\t\t\t\tlistItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE)\n\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"NumericLiteral\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\t\"AdvValValueTxt\",\n\t\t\t\t\t\t\t\t\tlistItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE)\n\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"Text\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (queMetaData.getDataType() != null\n\t\t\t\t\t\t\t&& queMetaData.getDataType().equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\tNEDSSConstants.NBS_QUESTION_DATATYPE_TEXT)\n\t\t\t\t\t\t\t\t\t&& queMetaData.getNbsUiComponentUid().toString()\n\t\t\t\t\t\t\t\t\t.equals(\"1009\")) {\n\t\t\t\t\t\tuiAnsMap.put(\"AdvValValueTxt\", listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE)\n\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"TextArea\");\n\t\t\t\t\t} else if (queMetaData.getDataType() != null\n\t\t\t\t\t\t\t&& queMetaData.getDataType().equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\tNEDSSConstants.NBS_QUESTION_DATATYPE_DATE)) {\n\t\t\t\t\t\tuiAnsMap.put(\"AdvValValueTxt\", listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE)\n\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"Date\");\n\t\t\t\t\t} else if (queMetaData.getDataType() != null\n\t\t\t\t\t\t\t&& queMetaData\n\t\t\t\t\t\t\t.getDataType()\n\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\tNEDSSConstants.NBS_QUESTION_DATATYPE_CODED_VALUE)) {\n\t\t\t\t\t\tif (queMetaData.getNbsUiComponentUid() != null\n\t\t\t\t\t\t\t\t&& queMetaData\n\t\t\t\t\t\t\t\t.getNbsUiComponentUid()\n\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t.equals(NEDSSConstants.MULTISELECT_COMPONENT)) {\n\t\t\t\t\t\t\tStringBuffer valueList = new StringBuffer();\n\t\t\t\t\t\t\tStringBuffer valueText = new StringBuffer();\n\t\t\t\t\t\t\tString[] answerArray = (String[]) listItem\n\t\t\t\t\t\t\t\t\t.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE);\n\t\t\t\t\t\t\tif (answerArray != null && answerArray.length > 0) {\n\t\t\t\t\t\t\t\tfor (int i = 1; i <= answerArray.length; i++) {\n\t\t\t\t\t\t\t\t\tvalueList = valueList.append(\"^^\");\n\t\t\t\t\t\t\t\t\tString answerTxt = answerArray[i - 1];\n\t\t\t\t\t\t\t\t\tif ((answerTxt != null || (answerTxt != \"\"))\n\t\t\t\t\t\t\t\t\t\t\t&& i != answerArray.length) {\n\t\t\t\t\t\t\t\t\t\tvalueList = valueList.append(answerTxt)\n\t\t\t\t\t\t\t\t\t\t\t\t.append(\"^^\");\n\t\t\t\t\t\t\t\t\t\tvalueText = valueText\n\t\t\t\t\t\t\t\t\t\t\t\t.append(getCodedescForCode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tanswerTxt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tqueMetaData.getCodeSetNm()))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.append(\", \");\n\t\t\t\t\t\t\t\t\t} else if ((answerTxt != null || (answerTxt != \"\"))\n\t\t\t\t\t\t\t\t\t\t\t&& i == answerArray.length) {\n\t\t\t\t\t\t\t\t\t\tvalueList = valueList.append(answerTxt);\n\t\t\t\t\t\t\t\t\t\tvalueText = valueText\n\t\t\t\t\t\t\t\t\t\t\t\t.append(getCodedescForCode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tanswerTxt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tqueMetaData.getCodeSetNm()));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvValueList2\", valueList.toString());\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvValValueTxt\", valueText.toString());\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"MULTISELECT\");\n\t\t\t\t\t\t} else if (queMetaData.getNbsUiComponentUid() != null\n\t\t\t\t\t\t\t\t&& !queMetaData\n\t\t\t\t\t\t\t\t.getNbsUiComponentUid()\n\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t.equals(NEDSSConstants.MULTISELECT_COMPONENT)) {\n\t\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\t\"AdvValueList1\",\n\t\t\t\t\t\t\t\t\tlistItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE)\n\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\t\"AdvValValueTxt\",\n\t\t\t\t\t\t\t\t\tgetCodedescForCode(\n\t\t\t\t\t\t\t\t\t\t\t(String) listItem\n\t\t\t\t\t\t\t\t\t\t\t.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE),\n\t\t\t\t\t\t\t\t\t\t\tqueMetaData.getCodeSetNm()));\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"SINGLESELECT\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (queMetaData.getDataType() != null\n\t\t\t\t\t\t\t&& queMetaData.getDataType().equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\tNEDSSConstants.NBS_QUESTION_DATATYPE_NUMERIC)) {\n\t\t\t\t\t\tif (queMetaData.getUnitTypeCd() != null\n\t\t\t\t\t\t\t\t&& queMetaData.getUnitTypeCd().equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\"CODED\")) {\n\t\t\t\t\t\t\tString structCodedValue = (String) listItem\n\t\t\t\t\t\t\t\t\t.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE);\n\t\t\t\t\t\t\tString value = structCodedValue.substring(0,\n\t\t\t\t\t\t\t\t\tstructCodedValue.indexOf(\"^\"));\n\t\t\t\t\t\t\tString code = structCodedValue.substring(\n\t\t\t\t\t\t\t\t\tstructCodedValue.indexOf(\"^\"),\n\t\t\t\t\t\t\t\t\tstructCodedValue.length());\n\t\t\t\t\t\t\tString returnedCode = \"\";\n\t\t\t\t\t\t\tLong codeSetGroupId = new Long(\n\t\t\t\t\t\t\t\t\tqueMetaData.getUnitValue());\n\t\t\t\t\t\t\tif (codeSetGroupId != null) {\n\t\t\t\t\t\t\t\tSRTMapDAOImpl map = new SRTMapDAOImpl();\n\t\t\t\t\t\t\t\treturnedCode = map.getConceptCode(codeSetGroupId);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvValValueTxt\", structCodedValue);\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvValueList3\", value\n\t\t\t\t\t\t\t\t\t+ getCodedescForCode(code, returnedCode));\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvValCodeTxt\",\n\t\t\t\t\t\t\t\t\tgetCodedescForCode(code, returnedCode));\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"NumericCoded\");\n\t\t\t\t\t\t} else if (queMetaData.getUnitTypeCd() != null\n\t\t\t\t\t\t\t\t&& queMetaData.getUnitTypeCd().equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\"LITERAL\")) {\n\t\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\t\"AdvValValueTxt\",\n\t\t\t\t\t\t\t\t\tlistItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE)\n\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"NumericLiteral\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\t\"AdvValValueTxt\",\n\t\t\t\t\t\t\t\t\tlistItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_VALUE)\n\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\tuiAnsMap.put(\"AdvQuestionType\", \"NumericLiteral\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// this is for behavior column\n\t\t\t\t\tString behaviorCode = (String) listItem.getDsmAnswerMap().get(\n\t\t\t\t\t\t\tDecisionSupportConstants.CRITERIA_LOGIC);\n\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\"AdvLogicList\",\n\t\t\t\t\t\t\tlistItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.CRITERIA_LOGIC)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tif (uiAnsMap.get(\"AdvQuestionType\").toString() == \"Date\")\n\t\t\t\t\t\tuiAnsMap.put(\"AdvLogicTxt\",\n\t\t\t\t\t\t\t\tgetCodedescForCode(behaviorCode, \"SEARCH_NUM\"));\n\t\t\t\t\telse if (uiAnsMap.get(\"AdvQuestionType\").toString() == \"NumericLiteral\")\n\t\t\t\t\t\tuiAnsMap.put(\"AdvLogicTxt\",\n\t\t\t\t\t\t\t\tgetCodedescForCode(behaviorCode, \"SEARCH_NUM\"));\n\t\t\t\t\telse\n\t\t\t\t\t\tuiAnsMap.put(\"AdvLogicTxt\",\n\t\t\t\t\t\t\t\tgetCodedescForCode(behaviorCode, \"SEARCH_ALPHA\"));\n\t\t\t\t\tuiBatchEntry.setAnswerMap(uiAnsMap);\n\t\t\t\t\tuiBatchEntry.setId(id);\n\t\t\t\t\tuiAdvCriteriaBatchEntryList.add(uiBatchEntry);\n\t\t\t\t\tid++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(\"11648804\".equals(eventType))\n\t\t\t{\n\t\t\t\twhile (it1.hasNext()) \n\t\t\t\t{\n\t\t\t\t\tBatchEntry uiBatchEntry = new BatchEntry();\n\t\t\t\t\tBatchEntry listItem = (BatchEntry) it1.next();\n\t\t\t\t\tMap<String, String> uiAnsMap = new HashMap<String, String>();\n\t\t\t\t\t// this is for question column\n\t\t\t\t\tObject resultedTestCode = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.RESULTEDTEST_CODE);\n\t\t\t\t\tif(resultedTestCode != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"ResultedTestCode\",\n\t\t\t\t\t\t\t\tresultedTestCode.toString());\n\t\t\t\t\tObject resultedTestName = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.RESULTEDTEST_NAME);\n\t\t\t\t\tif(resultedTestName != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"ResultedTestName\",\n\t\t\t\t\t\t\t\tresultedTestName.toString());\n\n\t\t\t\t\tObject codedResultAdvList = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.CODED_RESULT);\n\t\t\t\t\tif(codedResultAdvList != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"CodedResultAdvList\",\n\t\t\t\t\t\t\t\tcodedResultAdvList.toString());\n\n\t\t\t\t\tObject codedResultAdvListTxt = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.CODED_RESULT_TXT);\n\t\t\t\t\tif(codedResultAdvListTxt != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"CodedResultAdvListTxt\",\n\t\t\t\t\t\t\t\tcodedResultAdvListTxt.toString());\n\n\t\t\t\t\tObject numericResultTxt = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.NUMERIC_RESULT);\n\t\t\t\t\tif(numericResultTxt != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"NumericResultTxt\",\n\t\t\t\t\t\t\t\tnumericResultTxt.toString());\n\t\t\t\t\t// Looking for numericResultHigh value ( Applicable for Between operator )\n\t\t\t\t\tObject numericResultHighTxt = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.NUMERIC_RESULT_HIGH);\n\t\t\t\t\tif(numericResultHighTxt != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"numericResultHighTxt\",\n\t\t\t\t\t\t\t\tnumericResultHighTxt.toString());\n\n\t\t\t\t\tObject numericResultTypeList = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.NUMERIC_RESULT_TYPE);\n\t\t\t\t\tif(numericResultTypeList != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"NumericResultTypeList\",\n\t\t\t\t\t\t\t\tnumericResultTypeList.toString());\n\n\t\t\t\t\tObject numericResultTypeListTxt = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.NUMERIC_RESULT_TYPE_TXT);\n\t\t\t\t\tif(numericResultTypeListTxt != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"NumericResultTypeListTxt\",\n\t\t\t\t\t\t\t\tnumericResultTypeListTxt.toString());\n\n\t\t\t\t\tObject textResultTxt = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.TEXT_RESULT);\n\t\t\t\t\tif(textResultTxt != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"TextResultTxt\",\n\t\t\t\t\t\t\t\ttextResultTxt.toString());\n\n\t\t\t\t\tObject textResultCriteria = listItem.getDsmAnswerMap().get(DecisionSupportConstants.TEXT_RESULT_CRITERIA);\n\t\t\t\t\tif(textResultCriteria != null)\n\t\t\t\t\t\tuiAnsMap.put(\"ResultNameOperator\",textResultCriteria.toString());\n\t\t\t\t\t\n\t\t\t\t\tObject textResultCriteriaTxt = listItem.getDsmAnswerMap().get(DecisionSupportConstants.TEXT_RESULT_CRITERIA_TXT);\n\t\t\t\t\tif(textResultCriteriaTxt != null)\n\t\t\t\t\t\tuiAnsMap.put(\"ResultNameOperatorTxt\",textResultCriteriaTxt.toString());\n\t\t\t\t\t\n\t\t\t\t\tObject textNumericResultCriteria = listItem.getDsmAnswerMap().get(DecisionSupportConstants.NUMERIC_RESULT_CRITERIA);\n\t\t\t\t\tif(textNumericResultCriteria != null)\n\t\t\t\t\t\tuiAnsMap.put(\"NumericResultNameOperator\",textNumericResultCriteria.toString());\n\t\t\t\t\t\n\t\t\t\t\tObject textNumericResultCriteriaTxt = listItem.getDsmAnswerMap().get(DecisionSupportConstants.NUMERIC_RESULT_CRITERIA_TXT);\n\t\t\t\t\tif(textNumericResultCriteriaTxt != null)\n\t\t\t\t\t\tuiAnsMap.put(\"NumericResultNameOperatorTxt\",textNumericResultCriteriaTxt.toString());\n\t\t\t\t\t\n\t\t\t\t\tObject resultNameTxt = listItem.getDsmAnswerMap()\n\t\t\t\t\t\t\t.get(DecisionSupportConstants.RESULT_NAME);\n\t\t\t\t\tif(resultNameTxt != null)\n\t\t\t\t\t\tuiAnsMap.put(\n\t\t\t\t\t\t\t\t\"ResultNameTxt\",\n\t\t\t\t\t\t\t\tresultNameTxt.toString());\n\n\t\t\t\t\tuiBatchEntry.setAnswerMap(uiAnsMap);\n\t\t\t\t\tuiBatchEntry.setId(id);\n\t\t\t\t\tuiAdvCriteriaBatchEntryList.add(uiBatchEntry);\n\t\t\t\t\tid++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tform.setAdvancedCriteriaBatchEntryList(uiAdvCriteriaBatchEntryList);\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"Exception in createAdvancedCriteriaBatchMap encountered..\" + ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t}",
"Map<String, List<SearchResult>> groupByAttribs(List<SearchResult> topK) {\n Map<String, List<SearchResult>> resMapGroupedByAttrib = new HashMap<>();\n for (SearchResult sr: topK) {\n String attribId = sr.node.getId();\n List<SearchResult> seenList = resMapGroupedByAttrib.get(attribId);\n if (seenList == null) {\n seenList = new ArrayList<>();\n resMapGroupedByAttrib.put(attribId, seenList);\n }\n seenList.add(sr);\n }\n return resMapGroupedByAttrib;\n }",
"@Override\n\tpublic List<AttributeGroupVO> getProductAttrglist(List<String> pro_attrglist) {\n\t\treturn null;\n\t}",
"private void defineComplexAttribute(final String attributeName,\n \t\t\tfinal CyAttributes attributes, final Att curAtt,\n \t\t\tbyte[] attributeDefinition, int attributeDefinitionCount,\n \t\t\tfinal int numKeys) {\n \n \t\t// if necessary, init attribute definition\n \t\tif (attributeDefinition == null) {\n \t\t\tattributeDefinition = new byte[numKeys];\n \t\t}\n \n \t\t// get current interaction interator and attribute\n \t\tfinal Iterator complexIt = curAtt.getContent().iterator();\n \t\tfinal Att complexItem = (Att) complexIt.next();\n \t\tif (attributeDefinitionCount < numKeys) {\n \t\t\tattributeDefinition[attributeDefinitionCount++] = getMultHashMapTypeFromAtt(complexItem);\n \t\t\tif (attributeDefinitionCount < numKeys) {\n \t\t\t\tdefineComplexAttribute(attributeName, attributes, complexItem,\n \t\t\t\t\t\tattributeDefinition, attributeDefinitionCount, numKeys);\n \t\t\t}\n \t\t}\n \n \t\t// ok, if we are here, we've gotten all the keys\n \t\tif (attributeDefinitionCount == numKeys) {\n \t\t\t// go one more level deep to get value(s) type\n \t\t\tfinal Iterator nextComplexIt = complexItem.getContent().iterator();\n \t\t\tfinal Att nextComplexItem = (Att) nextComplexIt.next();\n \t\t\tfinal byte valueType = getMultHashMapTypeFromAtt(nextComplexItem);\n \t\t\tfinal MultiHashMapDefinition mhmd = attributes\n \t\t\t\t\t.getMultiHashMapDefinition();\n \t\t\tmhmd.defineAttribute(attributeName, valueType, attributeDefinition);\n \t\t}\n \t}",
"HashMap getMasterAttributes() throws BaseException;",
"public OverallrequestregExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}",
"public List getAnnotationIdsBasedOnCondition(List dynEntitiesList, List cpIdList)\r\n\t\t\tthrows BizLogicException\r\n\t{\r\n\t\tfinal List dynEntitiesIdList = new ArrayList();\r\n\t\tif (dynEntitiesList != null && !dynEntitiesList.isEmpty())\r\n\t\t{\r\n\t\t\tfinal Iterator dynEntitiesIterator = dynEntitiesList.iterator();\r\n\t\t\twhile (dynEntitiesIterator.hasNext())\r\n\t\t\t{\r\n\t\t\t\tNameValueBean nvBean = (NameValueBean) dynEntitiesIterator.next();\r\n\t\t\t\tString containerId = nvBean.getValue();\r\n\r\n\t\t\t\tStudyFormContext studyFormContext = getStudyFormContext(Long.valueOf(containerId));\r\n\t\t\t\tif(studyFormContext != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!studyFormContext.getHideForm())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//dynEntitiesIdList.add(Long.valueOf(containerId));\r\n\t\t\t\t\t\tCollection<CollectionProtocol> coll = studyFormContext\r\n\t\t\t\t\t\t\t\t.getCollectionProtocolCollection();\r\n\t\t\t\t\t\tif(coll != null && !coll.isEmpty())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor(CollectionProtocol cp : coll)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(cpIdList.contains(cp.getId()))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdynEntitiesIdList.add(Long.valueOf(containerId));\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\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdynEntitiesIdList.add(Long.valueOf(containerId));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*else if(\"NONE\".equals(studyFormContext.getEntityMapCondition()))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCollection coll = studyFormContext.getCollectionProtocolCollection();\r\n\t\t\t\t\t\tif(coll != null && !coll.isEmpty())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdynEntitiesIdList.add(Long.valueOf(containerId));\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\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tdynEntitiesIdList.add(Long.valueOf(containerId));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn dynEntitiesIdList;\r\n\t}",
"public SysMailRecordExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}",
"void processMultiValue(int numDocs, int[][] outGroupIds);",
"private void getJobDetailAttributes(HashMap<String, JobParameter> attributes) {\n String dataType = \"String\";\n // Override Parameters with user input parameter\n for(OptionalParams params:OptionalParams.values()){\n String value = inputParams.getProperty(params.name());\n JobParameter parameter = null;\n if(inputParams.containsKey(params.name()) && value!=null && !value.isEmpty()){\n value = value.trim();\n switch (params) {\n case TARGET_SHARED_IDSTORE_SEARCHBASE:\n parameter = createJobParameter(Constants.RECON_SEARCH_BASE, value,dataType);\n attributes.put(Constants.RECON_SEARCH_BASE, parameter);\n break;\n case RECON_SEARCH_FILTER:\n parameter = createJobParameter(Constants.RECON_SEARCH_FILTER, value,dataType);\n attributes.put(Constants.RECON_SEARCH_FILTER, parameter);\n break;\n case BATCHSIZE:\n parameter = getBatchSize(value);\n attributes.put(Constants.BATCH_SIZE_ATTR, parameter);\n break;\n case RECON_PARTIAL_TRIGGER:\n if(value.isEmpty() || value.equalsIgnoreCase(\"ALL\")){\n for(String key:partialTriggerOptionMap.keySet()){\n parameter = createJobParameter(partialTriggerOptionMap.get(key), null,\"Boolean\");\n\t\t\t\t parameter.setValue(new Boolean(\"true\"));\n attributes.put(partialTriggerOptionMap.get(key),parameter);\n }\n }else{\n // Parse all configured atomic reconciliation to be executed\n StringTokenizer tokens = new StringTokenizer(value,Constants.TOKEN_SEPARATOR);\n Set<String> atomicRecons = new HashSet<String>();\n while(tokens.hasMoreTokens()){\n atomicRecons.add(tokens.nextToken());\n }\n // Set atomic reconciliation job parameters\n for(String key:partialTriggerOptionMap.keySet()){\n String paramValue = atomicRecons.contains(key) ? \"true\" : \"false\";\n parameter = createJobParameter(partialTriggerOptionMap.get(key), null,\"Boolean\");\n\t\t\t\t parameter.setValue(new Boolean(paramValue));\n attributes.put(partialTriggerOptionMap.get(key),parameter);\n }\n }\n break;\n default:\n break;\n }\n }\n }\n }",
"@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }",
"private Instances[] splitData(Instances data, Attribute att) {\r\n\r\n\t Instances[] splitData = new Instances[att.numValues()];\r\n\t for (int j = 0; j < att.numValues(); j++) {\r\n\t splitData[j] = new Instances(data, data.numInstances());\r\n\t }\r\n\t Enumeration instEnum = data.enumerateInstances();\r\n\t while (instEnum.hasMoreElements()) {\r\n\t Instance inst = (Instance) instEnum.nextElement();\r\n\t splitData[(int) inst.value(att)].add(inst);\r\n\t }\r\n\t for (int i = 0; i < splitData.length; i++) {\r\n\t splitData[i].compactify();\r\n\t }\r\n\t //System.out.println(\"split data is \"+splitData[0].get(0));\r\n\t // System.out.println(\" @seperate by attribute:\"+att);\r\n\t //for(Instances ii:splitData){\r\n\t\t\t//System.out.println(\" \");\r\n\t //\tprintinsts(ii);\r\n\t //}\r\n\t \r\n\t return splitData;\r\n\t }",
"public final AstValidator.field_def_list_return field_def_list() throws RecognitionException, DuplicatedSchemaAliasException {\n field_def_list_stack.push(new field_def_list_scope());\n AstValidator.field_def_list_return retval = new AstValidator.field_def_list_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.field_def_return field_def87 =null;\n\n\n\n\n ((field_def_list_scope)field_def_list_stack.peek()).fieldNames = new HashSet<String>();\n ((field_def_list_scope)field_def_list_stack.peek()).nvc = new NumValCarrier();\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:250:2: ( ( field_def[$field_def_list::fieldNames, $field_def_list::nvc] )+ )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:250:4: ( field_def[$field_def_list::fieldNames, $field_def_list::nvc] )+\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:250:4: ( field_def[$field_def_list::fieldNames, $field_def_list::nvc] )+\n int cnt23=0;\n loop23:\n do {\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( ((LA23_0 >= FIELD_DEF && LA23_0 <= FIELD_DEF_WITHOUT_IDENTIFIER)) ) {\n alt23=1;\n }\n\n\n switch (alt23) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:250:6: field_def[$field_def_list::fieldNames, $field_def_list::nvc]\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_field_def_in_field_def_list996);\n \t field_def87=field_def(((field_def_list_scope)field_def_list_stack.peek()).fieldNames, ((field_def_list_scope)field_def_list_stack.peek()).nvc);\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_0, field_def87.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt23 >= 1 ) break loop23;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(23, input);\n throw eee;\n }\n cnt23++;\n } while (true);\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n field_def_list_stack.pop();\n }\n return retval;\n }",
"private static void groupDataSetSamples(Map<EMailAddress, EntityTrackingEmailData> result,\n TrackedEntities trackedEntities)\n {\n for (AbstractExternalData dataSet : trackedEntities.getDataSets())\n {\n for (EMailAddress recipient : getDataSetTrackingRecipients(dataSet))\n {\n final EntityTrackingEmailData emailData =\n getOrCreateRecipientEmailData(result, recipient);\n emailData.addDataSet(dataSet);\n }\n }\n }",
"private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }",
"public FinalOrderBeanCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public static void createMappingList(List<CSVRecord> allRecords, MappingClass mappingList) {\n logger.info(\"Start executing createMappingList method !!!\");\n for (int i = 0; i < allRecords.size(); i++) {\n CSVRecord row = allRecords.get(i);\n if (i > 0) {\n// mappingList/wellName is reference of MappingClass\n// below put will going to add only new well/lateral into maps its and custom maps implementation in MappingClass\n mappingList.put(row.get(0), Integer.parseInt(row.get(1)));\n }\n }\n }",
"public OpenERPRecordSet getIDSubset(Object[] lst) {\r\n\t\t// bail out\r\n\t\tif (lst == null)\r\n\t\t\treturn null;\r\n\t\tif (lst.length <= 0)\r\n\t\t\treturn null;\r\n\r\n\t\t// get list of IDs as Vector, for .contains\r\n\t\tVector<Integer> idList = new Vector<Integer>();\r\n\t\tfor (int i = 0; i < lst.length; i++) {\r\n\t\t\t// while moving to vector, sort out everything that's not integer\r\n\t\t\ttry {\r\n\t\t\t\tidList.add((Integer) lst[i]);\r\n\t\t\t} catch (ClassCastException cce) {\r\n\t\t\t\tjLog.warning(\"ClassCastException while converting '\" + lst[i]\r\n\t\t\t\t\t\t+ \"' to Integer\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// create record set to return\r\n\t\tOpenERPRecordSet result = new OpenERPRecordSet(null);\r\n\r\n\t\t// look into all records\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord r = i.next();\r\n\r\n\t\t\t// only for records that have a key\r\n\t\t\tif (!r.containsKey(\"id\"))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// if the key is requested\r\n\t\t\tInteger id = (Integer) r.get(\"id\");\r\n\t\t\tif (idList.contains(id)) {\r\n\t\t\t\t// add it to list\r\n\t\t\t\ttry {\r\n\t\t\t\t\tresult.add((OpenERPRecord) r.clone());\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// should not happen anyway.\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t// return subset\r\n\t\treturn result;\r\n\t}",
"private GeneListAnalysis setupGeneListAnalysisValues(String[] dataRow) {\r\n\r\n \t//log.debug(\"in setupGeneListAnalysisValues\");\r\n \t//log.debug(\"dataRow= \"); new Debugger().print(dataRow);\r\n\r\n \tGeneListAnalysis newGeneListAnalysis = new GeneListAnalysis();\r\n\r\n\t\tnewGeneListAnalysis.setAnalysis_id(Integer.parseInt(dataRow[0]));\r\n newGeneListAnalysis.setDescription(dataRow[1]);\r\n newGeneListAnalysis.setGene_list_id(Integer.parseInt(dataRow[2]));\r\n newGeneListAnalysis.setCreate_date_as_string(dataRow[3]);\r\n\t\tnewGeneListAnalysis.setCreate_date(new ObjectHandler().getDisplayDateAsTimestamp(dataRow[3]));\r\n newGeneListAnalysis.setUser_id(Integer.parseInt(dataRow[4]));\r\n\t\tnewGeneListAnalysis.setCreate_date_for_filename(dataRow[5]);\r\n\t\tnewGeneListAnalysis.setAnalysis_type(dataRow[6]);\r\n\t\tnewGeneListAnalysis.setVisible(Integer.parseInt(dataRow[7]));\r\n newGeneListAnalysis.setName(dataRow[8]);\r\n newGeneListAnalysis.setStatus(dataRow[9]);\r\n newGeneListAnalysis.setPath(dataRow[10]);\r\n\t\tif (dataRow.length>11 && dataRow[11] != null && !dataRow[11].equals(\"\")) {\r\n\t\t\tnewGeneListAnalysis.setParameter_group_id(Integer.parseInt(dataRow[11]));\r\n\t\t} else {\r\n\t\t\tnewGeneListAnalysis.setParameter_group_id(-99);\r\n\t\t}\r\n \r\n //check for long running probably an error\r\n if(newGeneListAnalysis.getStatus()!=null && newGeneListAnalysis.getStatus().equals(\"Running\")){\r\n java.util.Date cur=new java.util.Date();\r\n long diff=cur.getTime()-newGeneListAnalysis.getCreate_date().getTime();\r\n if(diff>excessiveTimeLimit){\r\n newGeneListAnalysis.setStatus(\"Error\");\r\n }\r\n }\r\n\r\n \treturn newGeneListAnalysis;\r\n \t}",
"private void setGrossCoverage(Record record, List<MedicalMalpracticeCoverageType> grossCoverageList) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"setGrossCoverage\", new Object[]{record.toString(\" , \"), grossCoverageList});\r\n }\r\n MedicalMalpracticeCoverageType coverage = new MedicalMalpracticeCoverageType();\r\n coverage.setCurrentGrossTermAmount(PremiumFields.getWrittenPremium(record));\r\n coverage.setCoverageNumberId(PremiumFields.getCoverageId(record));\r\n grossCoverageList.add(coverage);\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"setGrossCoverage\", coverage);\r\n }\r\n }",
"@Override\n protected boolean createKeys(List<Object> list) {\n\n try {\n SleuthkitCase tskCase = Case.getCurrentCaseThrows().getSleuthkitCase();\n \n if (Objects.equals(CasePreferences.getGroupItemsInTreeByDataSource(), true)) {\n List<DataSource> dataSources = tskCase.getDataSources();\n \n Collections.sort(dataSources, new Comparator<DataSource>() {\n @Override\n public int compare(DataSource dataS1, DataSource dataS2) {\n String dataS1Name = dataS1.getName().toLowerCase();\n String dataS2Name = dataS2.getName().toLowerCase();\n return dataS1Name.compareTo(dataS2Name);\n }\n });\n \n List<DataSourceGrouping> keys = new ArrayList<>();\n dataSources.forEach((datasource) -> {\n keys.add(new DataSourceGrouping(datasource));\n });\n list.addAll(keys);\n \n list.add(new Reports());\n } else {\n List<AutopsyVisitableItem> keys = new ArrayList<>(Arrays.asList(\n new DataSources(),\n new Views(tskCase),\n new Results(tskCase),\n new Tags(),\n new Reports()));\n\n list.addAll(keys);\n }\n\n } catch (TskCoreException tskCoreException) {\n logger.log(Level.SEVERE, \"Error getting datas sources list from the database.\", tskCoreException);\n } catch (NoCurrentCaseException ex) {\n logger.log(Level.SEVERE, \"Exception while getting open case.\", ex); //NON-NLS\n }\n return true;\n }",
"@Override\n protected List<Map<String, Object>> getInputRecords() {\n Map[] simpleStructs = new Map[]{\n null, createStructInput(\"structString\", \"abc\", \"structLong\", 1000L, \"structDouble\", 5.99999),\n createStructInput(\"structString\", \"def\", \"structLong\", 2000L, \"structDouble\", 6.99999),\n createStructInput(\"structString\", \"ghi\", \"structLong\", 3000L, \"structDouble\", 7.99999)\n };\n\n // complex struct - contains a string and nested struct of int and long\n Map[] complexStructs = new Map[]{\n createStructInput(\"structString\", \"abc\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 4, \"nestedStructLong\", 4000L)),\n createStructInput(\"structString\", \"def\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 5, \"nestedStructLong\", 5000L)), null,\n createStructInput(\"structString\", \"ghi\", \"nestedStruct\",\n createStructInput(\"nestedStructInt\", 6, \"nestedStructLong\", 6000L))\n };\n\n // complex list element - each element contains a struct of int and double\n List[] complexLists = new List[]{\n Arrays.asList(createStructInput(\"complexListInt\", 10, \"complexListDouble\", 100.0),\n createStructInput(\"complexListInt\", 20, \"complexListDouble\", 200.0)), null,\n Collections.singletonList(createStructInput(\"complexListInt\", 30, \"complexListDouble\", 300.0)),\n Arrays.asList(createStructInput(\"complexListInt\", 40, \"complexListDouble\", 400.0),\n createStructInput(\"complexListInt\", 50, \"complexListDouble\", 500.0))\n };\n\n // single value integer\n Integer[] userID = new Integer[]{1, 2, null, 4};\n\n // single value string\n String[] firstName = new String[]{null, \"John\", \"Ringo\", \"George\"};\n\n // collection of integers\n List[] bids = new List[]{Arrays.asList(10, 20), null, Collections.singletonList(1), Arrays.asList(1, 2, 3)};\n\n // single value double\n double[] cost = new double[]{10000, 20000, 30000, 25000};\n\n // single value long\n long[] timestamp = new long[]{1570863600000L, 1571036400000L, 1571900400000L, 1574000000000L};\n\n // simple map with string keys and integer values\n Map[] simpleMaps = new Map[]{\n createStructInput(\"key1\", 10, \"key2\", 20), null, createStructInput(\"key3\", 30),\n createStructInput(\"key4\", 40, \"key5\", 50)\n };\n\n // complex map with struct values - struct contains double and string\n Map[] complexMap = new Map[]{\n createStructInput(\"key1\", createStructInput(\"doubleField\", 2.0, \"stringField\", \"abc\")), null,\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\")),\n createStructInput(\"key1\", createStructInput(\"doubleField\", 3.0, \"stringField\", \"xyz\"), \"key2\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"abc123\"), \"key3\",\n createStructInput(\"doubleField\", 4.0, \"stringField\", \"asdf\"))\n };\n\n List<Map<String, Object>> inputRecords = new ArrayList<>(4);\n for (int i = 0; i < 4; i++) {\n Map<String, Object> record = new HashMap<>();\n record.put(\"userID\", userID[i]);\n record.put(\"firstName\", firstName[i]);\n record.put(\"bids\", bids[i]);\n record.put(\"cost\", cost[i]);\n record.put(\"timestamp\", timestamp[i]);\n record.put(\"simpleStruct\", simpleStructs[i]);\n record.put(\"complexStruct\", complexStructs[i]);\n record.put(\"complexList\", complexLists[i]);\n record.put(\"simpleMap\", simpleMaps[i]);\n record.put(\"complexMap\", complexMap[i]);\n\n inputRecords.add(record);\n }\n return inputRecords;\n }",
"@Test\n\tpublic void testGeneratedCriteriaBuilder() {\n\t\tList<Long> idsList = new ArrayList<>();\n\t\tidsList.add(22L);\n\t\tidsList.add(24L);\n\t\tidsList.add(26L);\n\n\t\tList<Long> idsExcludeList = new ArrayList<>();\n\t\tidsExcludeList.add(17L);\n\t\tidsExcludeList.add(18L);\n\n\t\tClientFormMetadataExample.Criteria criteria = new ClientFormMetadataExample.Criteria()\n\t\t\t\t.andIdEqualTo(1L)\n\t\t\t\t.andIdEqualTo(2L)\n\t\t\t\t.andIdEqualTo(4L)\n\t\t\t\t.andIdNotEqualTo(3L)\n\t\t\t\t.andIdGreaterThan(8L)\n\t\t\t\t.andIdLessThan(11L)\n\t\t\t\t.andIdGreaterThanOrEqualTo(15L)\n\t\t\t\t.andIdLessThanOrEqualTo(20L)\n\t\t\t\t.andIdIn(idsList)\n\t\t\t\t.andIdNotIn(idsExcludeList)\n\t\t\t\t.andIdBetween(50L, 53L)\n\t\t\t\t.andCreatedAtIsNotNull();\n\n\t\tassertEquals(12, criteria.getAllCriteria().size());\n\t}",
"public void expand(ArrayList<Integer> ids) {\n \n arrAttInfos = new ArrayList<ArrayAttributeInfo>();\n for (int i = 0; i < ids.size(); i++) {\n ArrayAttributeInfo aai = new ArrayAttributeInfo(ids.get(i));\n arrAttInfos.add(aai);\n }\n \n }",
"com.exacttarget.wsdl.partnerapi.ObjectDefinition getObjectDefinitionArray(int i);",
"public DeviceReportExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );",
"private static void DoGroupBy()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Str\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tArrayList<String> groupingAtts = new ArrayList<String>();\n\t\tgroupingAtts.add(\"o_orderdate\");\n\t\tgroupingAtts.add(\"o_orderstatus\");\n\n\t\tHashMap<String, AggFunc> myAggs = new HashMap<String, AggFunc>();\n\t\tmyAggs.put(\"att1\", new AggFunc(\"none\",\n\t\t\t\t\"Str(\\\"status: \\\") + o_orderstatus\"));\n\t\tmyAggs.put(\"att2\", new AggFunc(\"none\", \"Str(\\\"date: \\\") + o_orderdate\"));\n\t\tmyAggs.put(\"att3\", new AggFunc(\"avg\", \"o_totalprice * Int (100)\"));\n\t\tmyAggs.put(\"att4\", new AggFunc(\"sum\", \"Int (1)\"));\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Grouping(inAtts, outAtts, groupingAtts, myAggs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public LinkedHashMap<String, LinkedHashSet<String>> getConditionsFromTable() {\n\t\tLinkedHashMap<String, LinkedHashSet<String>> toReturn = new LinkedHashMap<String, LinkedHashSet<String>>();\n\t\tfor (int i = 0; i < modelCondTable.getRowCount(); i++) {\n\t\t\tString key = (String) modelCondTable.getValueAt(i, 0);\n\t\t\tString value = (String) modelCondTable.getValueAt(i, 1);\n\t\t\tLinkedHashSet<String> setValue = new LinkedHashSet<String>(Arrays.asList(value.split(\";\")));\n\n\t\t\ttoReturn.put(key, setValue);\n\t\t}\n\t\treturn toReturn;\n\t}",
"private Criteria buildFindExtDocCriteria(int idCase, String cdExtDocSort, List<String> docTypeList,\r\n String txtExtDocLocation, Date dtScrSearchDateFrom, Date dtScrSearchDateTo,\r\n List<Integer> personIds, List<Integer> sealedPersonIds,String sortBy, String indICPCDocument) {\r\n Criteria criteria = getSession().createCriteria(ExtDocumentation.class, \"e\");\r\n // Do a left outer Join only when the Person ID's are passed.\r\n if (personIds != null && personIds.size() > 0) {\r\n criteria.createAlias(\"e.extDocPerLinks\", \"edpl\", Criteria.FULL_JOIN);\r\n criteria.add(Restrictions.in(\"edpl.personByIdPerson.idPerson\", personIds));\r\n }\r\n if (sealedPersonIds != null && sealedPersonIds.size() > 0) {\r\n if (personIds == null || personIds.size() == 0) {\r\n criteria.createAlias(\"e.extDocPerLinks\", \"edpl\", Criteria.FULL_JOIN);\r\n }\r\n criteria.add(Restrictions.or(Restrictions.isNull(\"edpl.personByIdPerson.idPerson\"),Restrictions.not(Restrictions.in(\"edpl.personByIdPerson.idPerson\", sealedPersonIds))));\r\n }\r\n\r\n ProjectionList projectionList = Projections.projectionList();\r\n projectionList.add(Projections.property(\"e.idExtDocumentation\"));\r\n projectionList.add(Projections.property(\"e.dtLastUpdate\"));\r\n projectionList.add(Projections.property(\"e.capsCase\"));\r\n projectionList.add(Projections.property(\"e.dtExtDocObtained\"));\r\n projectionList.add(Projections.property(\"e.txtExtDocDetails\"));\r\n projectionList.add(Projections.property(\"e.cdExtDocType\"));\r\n projectionList.add(Projections.property(\"e.txtExtDocLocation\"));\r\n projectionList.add(Projections.property(\"e.cdExtDocSort\"));\r\n projectionList.add(Projections.property(\"e.indExtDocSigned\"));\r\n projectionList.add(Projections.property(\"e.dtExtDocUploaded\"));\r\n projectionList.add(Projections.property(\"e.txtFileName\"));\r\n projectionList.add(Projections.property(\"e.txtFormatType\"));\r\n projectionList.add(Projections.property(\"e.cdDocClass\"));\r\n projectionList.add(Projections.property(\"e.dtExtDocAdded\"));\r\n projectionList.add(Projections.property(\"e.indNaChecked\"));\r\n projectionList.add(Projections.property(\"e.indICPCDoc\"));\r\n projectionList.add(Projections.property(\"e.ucmDId\"));\r\n\r\n criteria.setProjection(Projections.distinct(projectionList));\r\n\r\n criteria.add(Restrictions.eq(\"e.capsCase.idCase\", idCase));\r\n\r\n if (dtScrSearchDateFrom != null) {\r\n criteria.add(Restrictions.ge(\"e.dtExtDocObtained\", dtScrSearchDateFrom));\r\n }\r\n if (dtScrSearchDateTo != null && dtScrSearchDateFrom != null && dtScrSearchDateTo.equals(dtScrSearchDateFrom)) {\r\n gov.georgia.dhr.dfcs.sacwis.core.utility.Date idate = new gov.georgia.dhr.dfcs.sacwis.core.utility.Date();\r\n idate.setTime(dtScrSearchDateFrom);\r\n idate.addHours(23);\r\n idate.addMinutes(59);\r\n idate.addSeconds(59);\r\n dtScrSearchDateTo = idate.getTime();\r\n criteria.add(Restrictions.le(\"e.dtExtDocObtained\", dtScrSearchDateTo));\r\n } else if (dtScrSearchDateTo != null) {\r\n // R1 defect 952 fix to make the search to include the To date\r\n // criteria given\r\n gov.georgia.dhr.dfcs.sacwis.core.utility.Date tdate = new gov.georgia.dhr.dfcs.sacwis.core.utility.Date();\r\n tdate.setTime(dtScrSearchDateTo);\r\n tdate.addHours(23);\r\n tdate.addMinutes(59);\r\n tdate.addSeconds(59);\r\n dtScrSearchDateTo = tdate.getTime();\r\n criteria.add(Restrictions.le(\"e.dtExtDocObtained\", dtScrSearchDateTo));\r\n }\r\n\r\n if (docTypeList != null && docTypeList.size() > 0) {\r\n criteria.add(Restrictions.in(\"e.cdExtDocType\", docTypeList));\r\n }\r\n if (StringHelper.isValid(cdExtDocSort)) {\r\n criteria.add(Restrictions.eq(\"e.cdExtDocSort\", cdExtDocSort));\r\n }\r\n if (StringHelper.isValid(txtExtDocLocation)) {\r\n criteria.add(Restrictions.eq(\"e.txtExtDocLocation\", txtExtDocLocation));\r\n }\r\n //STGAP00017827: Filter for ICPC documents if corresponding checkbox is checked.\r\n if (StringHelper.isValid(indICPCDocument)\r\n \t\t&& \"Y\".equalsIgnoreCase(indICPCDocument)) {\r\n criteria.add(Restrictions.eq(\"e.indICPCDoc\", indICPCDocument));\r\n }\r\n\r\n if (SORT_BY_DOC_TYPE.equals(sortBy)){\r\n criteria.addOrder(Order.asc(\"e.cdExtDocType\"));\r\n }else if (SORT_BY_DATE_OBTAINED.equals(sortBy)){\r\n criteria.addOrder(Order.desc(\"e.dtExtDocObtained\"));\r\n } else if (SORT_BY_DOC_CLASS.equals(sortBy)){\r\n criteria.addOrder(Order.asc(\"e.cdDocClass\"));\r\n } else {\r\n criteria.addOrder(Order.asc(\"e.cdExtDocSort\"));\r\n }\r\n \r\n return criteria;\r\n }",
"org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder getDefOrBuilder();",
"private void populateFieldArray() \r\n\t{\r\n\t\tInteger fieldId;\r\n\t\t/** get input column names which is populated based on the input file\r\n\t\t * format specified in the command file */\r\n\t\tString [] inputColNames = getInputColNames();\r\n\t\tint arrLength; /** Number of columns in the input file*/\r\n\t\tif (null == inputColNames)\r\n\t\t{\r\n\t\t\t/** set array length 2 for two default columns (probeset and chip description)*/\r\n\t\t\tarrLength = 2; \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/** Basic Probeset ID and description fields are present for all files \r\n\t\t\t * but the other supplementary information like accession number, unigene and\r\n\t\t\t * entrezgene ids may be present one or many based on the file format */\r\n\t\t\tarrLength = 2 + inputColNames.length; /** add other columns*/\r\n\t\t}\r\n\t\t/** Field array base elements are Probeset and Chip_Desc plus any of acc_no, ugid, & locusid/organism */\r\n\t\tfieldIndexArray = new int [arrLength];\r\n\t\t\r\n\t\t/** Now 0th field in input file is probeset*/\r\n\t\tfieldIndexArray[0] = ((Integer) fieldIdTable.get(\"CIN_PROBESET\")).intValue();\r\n\t\t\r\n\t\tif (inputColNames != null) \r\n\t\t{\r\n\t\t\t/** get the field ids for all column names*/\r\n\t\t\tfor (int i=0; i< inputColNames.length; i++)\r\n\t\t\t{\r\n\t\t\t\t/** Pick up the column from the list of inout columns as obtained based on\r\n\t\t\t\t * the input file format. Then fetch its ID from the FieldIdTable */\r\n\t\t\t\tfieldId = (Integer) fieldIdTable.get(inputColNames[i].toUpperCase());\r\n\t\t\t\tif (null == fieldId)\r\n\t\t\t\t{\r\n\t\t\t\t\t/** no such column name allowed*/\r\n\t\t\t\t\tLogger.log(\"Column name \" + inputColNames[i] + \" is not a valid name\",Logger.WARNING);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/** add the field id to the index array. Thus fieldIndexArray will have all the \r\n\t\t\t\t\t * column names depending on the file format*/\r\n\t\t\t\t\tfieldIndexArray[1+i] = fieldId.intValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t/** ChipDesc field is the last column in the input file. First we have added the default first field\r\n\t\t * as probeset id , then all the middle fields based on the file format and now the last default\r\n\t\t * field which is chipdescription */\r\n\t\tfieldIndexArray[fieldIndexArray.length-1] = ((Integer) fieldIdTable.get(\"CIN_CHIP_DESCRIPTION\")).intValue();\r\n\t\tLogger.log(\"populateFieldArray complete \",Logger.DEBUG);\r\n\t}",
"public BhiFeasibilityStudyExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}",
"public List<Integer> findAllMatchedCampaigns(List<Integer> attributes){\n //sorting is O(mlogm)\n Collections.sort(attributes);\n List<String> allPovibleAttributesVariants = getAllPosibleAttributes(attributes);\n List matchedCampaigns = new LinkedList();\n\n if(attributes==null || attributes.size()<1){\n return null;\n }\n\n allPovibleAttributesVariants.forEach((attribute)->{\n if(campaignAttributes.containsKey(attribute)){\n matchedCampaigns.addAll(campaignAttributes.get(attribute));\n }\n });\n return matchedCampaigns;\n }",
"@Override\r\n public void process() {\r\n if (isDirectEmbeddableCollection()) {\r\n ObjectArrayMapping mapping = new ObjectArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the reference class name.\r\n mapping.setReferenceClassName(getReferenceClassName());\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n } else {\r\n ArrayMapping mapping = new ArrayMapping();\r\n \r\n // Add the mapping to the descriptor.\r\n setMapping(mapping);\r\n \r\n // Set the attribute name.\r\n mapping.setAttributeName(getAttributeName());\r\n \r\n // Will check for PROPERTY access\r\n setAccessorMethods(mapping);\r\n \r\n mapping.setStructureName(getDatabaseType());\r\n \r\n // Process the @Column or column element if there is one.\r\n // A number of methods depend on this field so it must be\r\n // initialized before any further processing can take place.\r\n mapping.setField(new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN)));\r\n }\r\n }",
"io.dstore.values.StringValue getConditionList();",
"public interface GroupPredicateBuilder {\r\n\r\n Predicate build(CriteriaBuilder criteriaBuilder, List<Predicate> criteriaList);\r\n \r\n}",
"public TBusineCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private void printParentDefs(List<AttributeDef> parentDefs) {\n\n }",
"public ApplyExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"private Set buildSet(String attrName, Map attributes, Set resultSet) {\n Set vals = (Set) attributes.get(attrName);\n if ((vals != null) && !vals.isEmpty()) {\n resultSet.addAll(vals);\n }\n return (resultSet);\n }",
"public OpenERPRecordSet(Object[] readresult) {\r\n\t\trecords = new Vector<OpenERPRecord>();\r\n\t\tif (readresult != null) {\r\n\t\t\tfor (int i = 0; i < readresult.length; i++) {\r\n\t\t\t\trecords.add(new OpenERPRecord(readresult[i]));\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"private void generalizeCSACriteria(){\n\t\tArrayList<ServiceTemplate> comps = new ArrayList<ServiceTemplate>() ;\n\t\tArrayList<Criterion> crit = new ArrayList<Criterion>() ;\n\t\t\n\t\tcomps = this.data.getServiceTemplates();\n\t\tcrit = this.data.getCriteria();\n\t\t\n\t\tfor(ServiceTemplate c : comps){\n\t\t\tfor(Criterion cr : crit){\n\t\t\t\ttry {\n\t\t\t\t\tCriterion temp = (Criterion) BeanUtils.cloneBean(cr);\n\t\t\t\t\tc.addCrit(temp);\n\t\t\t\t} catch (IllegalAccessException | InstantiationException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"HashMap getMasterAttributes(String userNo, String gcif) throws BaseException;",
"private void loadCriteriaList() {\n DataBaseManager DBM = new DataBaseManager();\n criteriaList = DBM.loadCriteriaList(pantallaIdentificacion.this);\n }",
"public List<T> searchByPropertyCriteria(List<CriterionEntry> namedCriterionList, List<OrderEntry> orderList, int firstResult, int maxResults){\n Criteria criteria = getSession().createCriteria(persistentClass);\n\n Criteria childCriteria = null;\n\n HashMap<String, Criteria> map = new HashMap<String,Criteria>();\n\n if ( namedCriterionList != null ){\n for (CriterionEntry namedCriteria : namedCriterionList) {\n if (namedCriteria.getPropertyName() == null) {\n criteria.add(namedCriteria.getCriterion());\n } else {\n childCriteria = map.get(namedCriteria.getPropertyName());\n\n if (childCriteria == null) {\n childCriteria = criteria.createCriteria(namedCriteria.getPropertyName());\n map.put(namedCriteria.getPropertyName(), childCriteria);\n }\n\n childCriteria.add(namedCriteria.getCriterion());\n }\n }\n }\n\n if ( orderList != null ){\n for (OrderEntry order : orderList) {\n\n if (order.getPropertyName() == null) {\n criteria.addOrder(order.getOrder());\n } else {\n childCriteria = map.get(order.getPropertyName());\n\n if (childCriteria == null) {\n childCriteria = criteria.createCriteria(order.getPropertyName());\n map.put(order.getPropertyName(), childCriteria);\n }\n\n childCriteria.addOrder(order.getOrder());\n }\n }\n }\n\n if ( firstResult >= 0 && maxResults > 0 ){\n criteria.setFirstResult(firstResult);\n criteria.setMaxResults(maxResults);\n }\n\n return criteria.list();\n }",
"public Map<String, List<Object>> getDCModelMap(){\n\t\tDBCollection dcModel = db.getCollection(\"dcModel\");\n\t\tMap<String, List<Object>> varModelMap = new HashMap<String, List<Object>>();\n \tDBCursor varModelCursor = dcModel.find();\n \tfor(DBObject varModelObj: varModelCursor) {\n \t\tvarModelMap.put((String) varModelObj.get(\"v\"), (List<Object>) varModelObj.get(\"m\")); \t\t\n \t}\n \treturn varModelMap;\n\t}",
"static final List<RecordGroup> generateRecordGroups(List<AbstractRecord> records) {\n List<RecordGroup> recordGroups = new LinkedList<>();\n if (records.isEmpty()) {\n return recordGroups;\n }\n\n RecordGroup group = new RecordGroup();\n recordGroups.add(group);\n splitIntoGroups(recordGroups, group, records);\n\n return recordGroups;\n }",
"public MessageRecordExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private static Map<Boolean, List<StudentRecord>> razvrstajProlazPad(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t.collect(Collectors.partitioningBy(o -> o.getOcjena() > 1));\n\t}",
"private Collection<CoreEventInfo> getRecurrences(final EventsQueryResult eqr,\n final Collection<CoreEventInfo> ceis,\n final BwDateTime startDate,\n final BwDateTime endDate,\n final FieldnamesList retrieveListFields,\n final RecurringRetrievalMode recurRetrieval,\n final int desiredAccess,\n final boolean freeBusy)\n throws CalFacadeException {\n Collection<CoreEventInfo> res = new TreeSet<CoreEventInfo>();\n Collection<CoreEventInfo> recurringMasters = new TreeSet<CoreEventInfo>();\n Collection<BwEvent> instanceMasters = new TreeSet<BwEvent>();\n\n /* Split out the recurring masters from non-recurring events,\n */\n\n for (CoreEventInfo cei: ceis) {\n BwEvent master = cei.getEvent();\n\n if (!master.testRecurring()) {\n res.add(cei);\n } else {\n recurringMasters.add(cei);\n instanceMasters.add(master);\n }\n }\n\n /* If there were any date limits or filters fetch any masters for instances\n * that fall in the range and add the unique masters to the Collection.\n *\n * Note: we cannot just get the attached override for an instance. An\n * override might have moved an instance into the range we are fetching so\n * we will not fetch the instance in the next query.\n */\n if ((startDate != null) || (endDate != null) || eqr.flt.getFiltered()) {\n eventsQuery(eqr, startDate, endDate,\n retrieveListFields,\n freeBusy,\n null, // master\n null, // masters\n null, // uids\n getInstanceMasters);\n\n if (!eqr.es.isEmpty()) {\n Iterator it = eqr.es.iterator();\n while (it.hasNext()) {\n BwEvent mstr = (BwEvent)it.next();\n\n CoreEventInfo cei = postGetEvent(mstr, desiredAccess,\n returnResultAlways,\n null);\n\n if (cei != null) {\n // Access was not denied\n\n recurringMasters.add(cei);\n instanceMasters.add(mstr);\n }\n }\n }\n }\n\n /* We'll build 2 maps - both indexed by the master, one of overrides that\n * match and one of instances that match.\n *\n * We then pass these maps to doRecurrence which will create an event master\n * with attached overrides and instances.\n */\n\n /* Before reading this head down to comments below\n *\n * Now we need to fetch all overrides and possibly instances for the masters.\n *\n * We always need overrides, but we only retrieve the instances if we were\n * asked for them (usually the case).\n *\n * What we do here is batch that into 2 queries, one for all the overrides\n * and one for all the instances. This avoids a query per master.\n *\n * This is not yet correct. If we are returning master + overrides (no\n * expansions) we need ALL the overrides even if there is a filter. For\n * example, if we have the filter category=Films then we need any master that\n * has that category + all it's overrides (which might override the category)\n * We also need any master+ ALL overrides where ANY override satisfies the\n * condition. (This is partly the reason for the odd retrieval of the master\n * in getEvents)\n *\n * However, and this is where things fail, if we are expanding, we want ONLY\n * the overrides that satisfy the conditions and, when we retrieve instances\n * we should only retrieve non-overridden instances.\n */\n\n /* Ignore the above comment for the moment. We need to first see if there\n * are any matching overrides. That's a query using the filters.\n *\n * If we have any matching instances or overrides AND if we are not expanding\n * the result then we must retrieve ALL overrides for any matching event.\n *\n * This is because we are required to return the master + all the overrides\n */\n\n HashMap<BwEvent, Collection<CoreEventInfo>> ovMap =\n new HashMap<BwEvent, Collection<CoreEventInfo>>();\n\n /* First get any matching overrides. */\n getOverrides(eqr,\n false, // allOverrides,\n recurringMasters,\n ovMap,\n recurRetrieval,\n freeBusy,\n desiredAccess);\n\n if (recurringMasters.isEmpty()) {\n /* No recurring events this batch. We're done here */\n\n if (freeBusy) {\n return makeFreeBusy(res);\n }\n\n return res;\n }\n\n if (recurRetrieval.mode != Rmode.expanded) {\n /* Now we have to retrieve ALL overrides for this instance */\n eqr.suppressFilter = true;\n getOverrides(eqr,\n true, // allOverrides,\n recurringMasters,\n ovMap,\n recurRetrieval,\n freeBusy,\n desiredAccess);\n }\n\n /* Now do the same for all recurrence instances -\n * one query to fetch them all */\n HashMap<BwEvent, Collection<BwRecurrenceInstance>> instMap =\n new HashMap<BwEvent, Collection<BwRecurrenceInstance>>();\n\n if ((recurRetrieval.mode == Rmode.expanded) &&\n !instanceMasters.isEmpty()) {\n eventsQuery(eqr, recurRetrieval.start, recurRetrieval.end,\n null, // retrieveListFields\n freeBusy,\n null,\n instanceMasters,\n null, // uids\n getInstances);\n\n Iterator it = eqr.es.iterator();\n while (it.hasNext()) {\n BwRecurrenceInstance inst = (BwRecurrenceInstance)it.next();\n BwEvent mstr = inst.getMaster();\n\n Collection<BwRecurrenceInstance> insts = instMap.get(mstr);\n if (insts == null) {\n insts = new ArrayList<BwRecurrenceInstance>();\n instMap.put(mstr, insts);\n }\n\n insts.add(inst);\n }\n }\n\n CheckMap checked = new CheckMap();\n for (CoreEventInfo cei: recurringMasters) {\n doRecurrence(eqr, cei, null, ovMap, instMap, checked,\n recurRetrieval, desiredAccess, freeBusy);\n if (recurRetrieval.mode == Rmode.expanded) {\n if (cei.getInstances() != null) {\n res.addAll(cei.getInstances());\n }\n\n if (cei.getOverrides() != null) {\n res.addAll(cei.getOverrides());\n }\n } else {\n res.add(cei);\n }\n }\n\n if (freeBusy) {\n return makeFreeBusy(res);\n }\n\n return res;\n }",
"public interface IMasterAttribute\n{\n\t/**\n\t * This method is called to get the list of all attribute data for a particular criteria\n\t * \n\t * @return HashMap containing the data\n\t * @throws BaseException Thrown if any exception occurs while fetching data\n\t */\n\tHashMap getMasterAttributes() throws BaseException;\n\n\t/**\n\t * This method is called to get the list of all attribute data for a particular criteria. This variant is to be used\n\t * if the preference data to be loaded is dependent on the logged in user\n\t * \n\t * @param userNo The user Number\n\t * @param gcif The GCIF of the user.\n\t * @return HashMap containing the data\n\t * @throws BaseException Thrown if any exception occurs while fetching data\n\t */\n\tHashMap getMasterAttributes(String userNo, String gcif) throws BaseException;\n}",
"public RecordSet loadAllProcessingDetail(Record inputRecord);",
"org.apache.drill.exec.proto.UserBitShared.RecordBatchDef getDef();",
"public GoodsSkuCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public abstract List<ClinicalDocument> findClinicalDocumentEntries(int firstResult, int maxResults);",
"public static String buildArrayCondition(List<NetworkDevice> list, String fieldname) {\n\t\t\n\t\t//LOG.info(\"buildArrayCondition\" + list.size());\n\t\tint apCount = 0;\n\t\tif (list.size() > 0) {\n \t\tStringBuilder sb = new StringBuilder(fieldname).append(\":(\");\n \t\tboolean isFirst = true;\n \t\tfor (NetworkDevice nd : list) {\n \t\t\tif (nd.getTypefs().equals(\"ap\")) {\n \t\t\t\tapCount++;\n\t \t\t\tif (isFirst) {\n\t \t\t\t\tisFirst = false;\n\t \t\t\t} else {\n\t \t\t\t\tsb.append(\" OR \");\n\t \t\t\t}\n\t \t\t\tsb.append(\"\\\"\").append(nd.getUid()).append(\"\\\"\");\n \t\t\t}\n \t\t}\n \t\tsb.append(\")\");\n \t\t\n \t\t//LOG.info (\"NUM AP \" + apCount);\n \t\tif (apCount > 0) {\n \t\t\treturn sb.toString();\n \t\t} else {\n \t\t\treturn \"\";\n \t\t}\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public MdCategoryVCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private HashMap<String, int[] > getAttrClassRatio ( ArrayList<String> alCalcAttr, ArrayList<String> alClasAttr ) {\r\n\t\tHashMap< String, int[] > attrClassRatioMap = new HashMap<String, int[] >();\r\n\t\tString classA = alClasAttr.get(0);\r\n\t\tfor ( int i = 0; i < alCalcAttr.size(); i++ ) {\r\n\t\t\tString attr = alCalcAttr.get(i);\r\n\t\t\tString classification = alClasAttr.get(i);\r\n\t\t\tif ( !attrClassRatioMap.containsKey(attr) ) {\r\n\t\t\t\tattrClassRatioMap.put( attr, new int[2] );\r\n\t\t\t}\r\n\t\t\tif ( classA.equals( classification ) ) {\r\n\t\t\t\tint[] classCount = attrClassRatioMap.get( attr );\r\n\t\t\t\t++classCount[0];\r\n\t\t\t\tattrClassRatioMap.put( attr, classCount );\r\n\t\t\t} else {\r\n\t\t\t\tint[] classCount = attrClassRatioMap.get( attr );\r\n\t\t\t\t++classCount[1];\r\n\t\t\t\tattrClassRatioMap.put( attr, classCount );\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn attrClassRatioMap;\r\n\t}",
"public Map<String, Object> createFldNames2ValsMap(Record record, ErrorHandler errors)\n {\n this.errors = errors;\n perRecordInitMaster(record);\n Map<String, Object> fldNames2ValsMap = new HashMap<String, Object>();\n\n for (String key : fieldMap.keySet())\n {\n String fieldVal[] = fieldMap.get(key);\n String indexField = fieldVal[0];\n String indexType = fieldVal[1];\n String indexParm = fieldVal[2];\n String mapName = fieldVal[3];\n\n if (indexType.equals(\"constant\"))\n {\n if (indexParm.contains(\"|\"))\n {\n String parts[] = indexParm.split(\"[|]\");\n Set<String> result = new LinkedHashSet<String>();\n result.addAll(Arrays.asList(parts));\n // if a zero length string appears, remove it\n result.remove(\"\");\n addFieldsToMap(fldNames2ValsMap, indexField, null, result);\n }\n else\n addFieldToMap(fldNames2ValsMap, indexField, indexParm);\n }\n else if (indexType.equals(\"first\"))\n addFieldToMap(fldNames2ValsMap, indexField, getFirstFieldVal(record, mapName, indexParm));\n else if (indexType.equals(\"all\"))\n addFieldsToMap(fldNames2ValsMap, indexField, mapName, MarcUtils.getFieldList(record, indexParm));\n else if (indexType.equals(\"DeleteRecordIfFieldEmpty\"))\n {\n Set<String> fields = MarcUtils.getFieldList(record, indexParm);\n if (mapName != null && findTranslationMap(mapName) != null)\n fields = Utils.remap(fields, findTranslationMap(mapName), true);\n\n if (fields.size() != 0)\n addFieldsToMap(fldNames2ValsMap, indexField, null, fields);\n else // no entries produced for field => generate no record in Solr\n throw new SolrMarcIndexerException(SolrMarcIndexerException.DELETE,\n \"Index specification: \"+ indexField +\" says this record should be deleted.\");\n }\n else if (indexType.startsWith(\"join\"))\n {\n String joinChar = \" \";\n if (indexType.contains(\"(\") && indexType.endsWith(\")\"))\n joinChar = indexType.replace(\"join(\", \"\").replace(\")\", \"\");\n addFieldToMap(fldNames2ValsMap, indexField, MarcUtils.getFieldVals(record, indexParm, joinChar));\n }\n else if (indexType.equals(\"std\"))\n {\n if (indexParm.equals(\"era\"))\n addFieldsToMap(fldNames2ValsMap, indexField, mapName, MarcUtils.getEra(record));\n else\n addFieldToMap(fldNames2ValsMap, indexField, getStd(record, indexParm));\n }\n else if (indexType.startsWith(\"custom\"))\n {\n try {\n handleCustom(fldNames2ValsMap, indexType, indexField, mapName, record, indexParm);\n }\n catch(SolrMarcIndexerException e)\n {\n String recCntlNum = null;\n try {\n recCntlNum = record.getControlNumber();\n }\n catch (NullPointerException npe) { /* ignore */ }\n\n if (e.getLevel() == SolrMarcIndexerException.DELETE)\n {\n throw new SolrMarcIndexerException(SolrMarcIndexerException.DELETE,\n \"Record \" + (recCntlNum != null ? recCntlNum : \"\") + \" purposely not indexed because \" + key + \" field is empty\");\n// logger.error(\"Record \" + (recCntlNum != null ? recCntlNum : \"\") + \" not indexed because \" + key + \" field is empty -- \" + e.getMessage(), e);\n }\n else\n {\n logger.error(\"Unable to index record \" + (recCntlNum != null ? recCntlNum : \"\") + \" due to field \" + key + \" -- \" + e.getMessage(), e);\n throw(e);\n }\n }\n }\n }\n this.errors = null;\n return fldNames2ValsMap;\n }",
"public List<RecordDTO> selectAllRecord(Criteria criteria);",
"private void addAllResIds(ArrayList<String> childIds, ArrayList<String> validSeconLevelEntitys)\n/* */ {\n/* 829 */ for (String entity : validSeconLevelEntitys)\n/* */ {\n/* 831 */ AMLog.info(\"ThresholdConfigurationAsCSV.addAllResIds() entity is \" + entity);\n/* */ }\n/* */ }",
"public QuestionDetailExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"List<Object[]> findValuebyAlignInfoAndRuleName(Long algmntId,Long bussUnitId,Long salesTeamId,String BussRuleName);",
"public Set<AttributeDef> postHqlFilterAttributeDefs(GrouperSession grouperSession, \r\n Set<AttributeDef> attributeDefs, Subject subject, Set<Privilege> privInSet);",
"public List getMainDataLst(ElementConditionDto elementConditionDto, RequestMeta requestMeta) {\n return jdDocAuditMapper.getMainDataLst(elementConditionDto);\r\n }",
"public UserPracticeSummaryCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public SolrInputDocument collect(FlexDocument f) {\n\n\t\tSolrInputDocument cls_doc = new SolrInputDocument();\n\n\t\tfor( FlexLine l : f ){\n\t\t\tString fieldName = l.field();\n\t\t\tfor( String val : l.values() ){\n\t\t\t\tcls_doc.addField(fieldName, val);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn cls_doc;\n\t}",
"public ApplyopenExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<ConsumeRecord> findByInquiryCriteria(ConsumeInquiryCriteria criteria) throws ParseException {\n\t\tcriteria.initializeBegdaTime();\r\n\t\tcriteria.initializeEnddaTime();\r\n\r\n\t\tCriteria crt = currentSession().createCriteria(ConsumeRecord.class, \"cr\");\r\n\t\tcrt.createAlias(\"cr.employee\", \"employee\");\r\n\t\tcrt.createAlias(\"employee.department\", \"department\");\r\n\t\tcrt.createAlias(\"cr.vendorLine\", \"vendorLine\");\r\n\t\tcrt.createAlias(\"vendorLine.vendor\", \"vendor\");\r\n\r\n\t\tcrt.add(Restrictions.ge(\"cr.time\", criteria.getBegda()));\r\n\t\tcrt.add(Restrictions.le(\"cr.time\", criteria.getEndda()));\r\n\r\n\t\tif (TrimUtil.trimUtil(criteria.getCategoryKey())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"cr.category\", criteria.getCategoryKey().trim()));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getCosterCenterID())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"department.id\", criteria.getCosterCenterID().trim()));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getVendorID())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"vendor.id\", Integer.parseInt(criteria.getVendorID().trim())));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getEmployeeID())) {\r\n\t\t\tcrt.add(Restrictions.like(\"employee.id\", \"%\" + criteria.getEmployeeID().trim() + \"%\"));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getFirstName())) {\r\n\t\t\tcrt.add(Restrictions.like(\"employee.firstName\", \"%\" + criteria.getFirstName().trim() + \"%\"));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getLastName())) {\r\n\t\t\tcrt.add(Restrictions.like(\"employee.lastName\", \"%\" + criteria.getLastName().trim() + \"%\"));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getStatusKey())) {\r\n\t\t\tcrt.add(Restrictions.eq(\"cr.status\", criteria.getStatusKey().trim()));\r\n\t\t}\r\n\t\tif (TrimUtil.trimUtil(criteria.getTransactionCode())) {\r\n\t\t\tcrt.add(Restrictions.like(\"cr.transactionCode\", \"%\" + criteria.getTransactionCode() + \"%\"));\r\n\t\t}\r\n\r\n\t\treturn crt.list();\r\n\t}",
"private List<Object> handleResult(List<Object> resultSet)\n {\n List<Object> result = new ArrayList<>();\n final Expression[] grouping = compilation.getExprGrouping();\n if (grouping != null)\n {\n Comparator<Object> c = new Comparator<>()\n {\n public int compare(Object arg0, Object arg1)\n {\n for (int i = 0; i < grouping.length; i++)\n {\n state.put(candidateAlias, arg0);\n Object a = grouping[i].evaluate(evaluator);\n state.put(candidateAlias, arg1);\n Object b = grouping[i].evaluate(evaluator);\n\n // Put any null values at the end\n if (a == null && b == null)\n {\n return 0;\n }\n else if (a == null)\n {\n return -1;\n }\n else if (b == null)\n {\n return 1;\n }\n else\n {\n int result = ((Comparable)a).compareTo(b);\n if (result != 0)\n {\n return result;\n }\n }\n }\n return 0;\n }\n };\n \n List<List<Object>> groups = new ArrayList<>();\n List<Object> group = new ArrayList<>();\n if (!resultSet.isEmpty())\n {\n groups.add(group);\n }\n for (int i = 0; i < resultSet.size(); i++)\n {\n if (i > 0)\n {\n if (c.compare(resultSet.get(i - 1), resultSet.get(i)) != 0)\n {\n group = new ArrayList<>();\n groups.add(group);\n }\n }\n group.add(resultSet.get(i));\n }\n\n // Apply the result to the generated groups\n for (int i = 0; i < groups.size(); i++)\n {\n group = groups.get(i);\n result.add(result(group));\n }\n }\n else\n {\n boolean aggregates = false;\n Expression[] resultExprs = compilation.getExprResult();\n if (resultExprs.length > 0 && resultExprs[0] instanceof CreatorExpression)\n {\n Expression[] resExpr = ((CreatorExpression)resultExprs[0]).getArguments().toArray(\n new Expression[((CreatorExpression)resultExprs[0]).getArguments().size()]);\n for (int i = 0; i < resExpr.length; i++)\n {\n if (resExpr[i] instanceof InvokeExpression)\n {\n String method = ((InvokeExpression) resExpr[i]).getOperation().toLowerCase();\n if (method.equals(\"count\") || method.equals(\"sum\") || method.equals(\"avg\") || method.equals(\"min\") || method.equals(\"max\"))\n {\n aggregates = true;\n }\n }\n }\n }\n else\n {\n for (int i = 0; i < resultExprs.length; i++)\n {\n if (resultExprs[i] instanceof InvokeExpression)\n {\n String method = ((InvokeExpression)resultExprs[i]).getOperation().toLowerCase();\n if (method.equals(\"count\") || method.equals(\"sum\") || method.equals(\"avg\") || method.equals(\"min\") || method.equals(\"max\"))\n {\n aggregates = true;\n }\n }\n }\n }\n \n if (aggregates)\n {\n result.add(result(resultSet));\n }\n else\n {\n for (int i = 0; i < resultSet.size(); i++)\n {\n result.add(result(resultSet.get(i)));\n }\n }\n }\n\n if (!result.isEmpty() && ((Object[])result.get(0)).length == 1)\n {\n List r = result;\n result = new ArrayList<>();\n for (int i = 0; i < r.size(); i++)\n {\n result.add(((Object[]) r.get(i))[0]);\n }\n }\n return result;\n }",
"public GoodsExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public ArrayList buildGroup(AbstractEntityInterface anEntity) {\n/* 25 */ ArrayList resultList = new ArrayList();\n/* 26 */ if (!(anEntity instanceof lrg.memoria.core.Class)) {\n/* 27 */ return resultList;\n/* */ }\n/* 29 */ ModelElementList modelElementList = ((DataAbstraction)anEntity).getAncestorsList();\n/* 30 */ modelElementList.remove(anEntity);\n/* 31 */ return modelElementList;\n/* */ }",
"public String getAllDataForAttributes() throws Exception {\n\t\tactionStartTime = new Date();\n\t\ttry {\n\t\t\tif (lstObjectType != null && lstObjectType.size() > 0 && lstId != null && lstId.size() > 0 && lstObjectType.size() == lstId.size()) { //lstId = listObjectId\n\t\t\t\tList<PromotionCustAttrVO> lst = new ArrayList<PromotionCustAttrVO>();\n\t\t\t\tPromotionCustAttrVO vo;\n\t\t\t\tInteger objectType;\n\t\t\t\tLong objectId;\n\t\t\t\tCustomerAttribute attribute;\n\t\t\t\tAttributeColumnType attColType;\n\t\t\t\tList<AttributeDetailVO> lstAttDetail;\n\t\t\t\tfor (int i = 0; i < lstObjectType.size(); i++) {\n\t\t\t\t\tobjectType = lstObjectType.get(i);\n\t\t\t\t\tobjectId = lstId.get(i);\n\t\t\t\t\tif (objectType != null) {\n\t\t\t\t\t\tvo = new PromotionCustAttrVO();\n\t\t\t\t\t\tvo.setObjectType(objectType);\n\t\t\t\t\t\tvo.setObjectId(objectId);\n\t\t\t\t\t\tif (objectType.equals(AUTO_ATTRIBUTE)) {\n\t\t\t\t\t\t\tattribute = customerAttributeMgr.getCustomerAttributeById(objectId);\n\t\t\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\t\t\tattColType = attribute.getValueType();\n\t\t\t\t\t\t\t\tvo.setValueType(attColType);// setValueType\n\t\t\t\t\t\t\t\tvo.setName(attribute.getName());\n\t\t\t\t\t\t\t\t// chi set du lieu cho kieu dropdownlist:\n\t\t\t\t\t\t\t\tif (attColType == AttributeColumnType.CHOICE || attColType == AttributeColumnType.MULTI_CHOICE) {\n\t\t\t\t\t\t\t\t\tlstAttDetail = promotionProgramMgr.getListPromotionCustAttVOCanBeSet(attribute.getId());\n\t\t\t\t\t\t\t\t\tvo.setListData(lstAttDetail);// setListData\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (objectType.equals(CUSTOMER_TYPE)) {\n\t\t\t\t\t\t\tList<ChannelTypeVO> listChannelTypeVO = promotionProgramMgr.getListChannelTypeVO();\n\t\t\t\t\t\t\tvo.setListData(listChannelTypeVO);//setListData\n\t\t\t\t\t\t} else if (objectType.equals(SALE_LEVEL)) {\n\t\t\t\t\t\t\tList<ProductInfoVO> listProductInfoVO = promotionProgramMgr.getListProductInfoVO();\n\t\t\t\t\t\t\tif (listProductInfoVO != null && listProductInfoVO.size() > 0) {\n\t\t\t\t\t\t\t\tfor (ProductInfoVO productInfoVO : listProductInfoVO) {\n\t\t\t\t\t\t\t\t\tList<SaleCatLevelVO> listSaleCatLevelVO = promotionProgramMgr.getListSaleCatLevelVOByIdPro(productInfoVO.getIdProductInfoVO());\n\t\t\t\t\t\t\t\t\tproductInfoVO.setListSaleCatLevelVO(listSaleCatLevelVO);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tvo.setListProductInfoVO(listProductInfoVO);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlst.add(vo);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn JSON;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresult.put(\"list\", lst);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.getAllDataForAttributes\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn JSON;\n\t\t}\n\t\treturn JSON;\n\t}",
"Map getAspectDatas();",
"protected Map<String, BaseAttribute> processCollectionResult(DBObject result) throws AttributeResolutionException {\n Map<String, BaseAttribute> attributes = new HashMap<String, BaseAttribute>();\n try {\n MongoDbKeyAttributeMapper keyAttributeMapper;\n BaseAttribute attribute;\n\n if (result != null) {\n for (String keyName : result.keySet()) {\n log.debug(\"Processing mongodb key: {} class: {}\", keyName, result.get(keyName).getClass());\n\n List<MongoDbKeyAttributeMapper> keyChildMap = null;\n keyAttributeMapper = keyAttributeMap.get(keyName);\n attribute = getAttribute(attributes, keyAttributeMapper, keyName);\n if (keyAttributeMapper != null) {\n keyChildMap = keyAttributeMapper.getChildKeyAttributeMaps();\n }\n\n if (keyChildMap != null && keyChildMap.size() > 0) {\n BasicDBObject dataMap = (BasicDBObject) result.get(keyName);\n for (MongoDbKeyAttributeMapper map : keyChildMap) {\n attribute = getAttribute(attributes, map, map.getAttributeName());\n attribute.getValues().add(dataMap.get(map.getMongoKey()));\n attributes.put(attribute.getId(), attribute);\n }\n } else if (result.get(keyName) instanceof com.mongodb.BasicDBList) {\n log.debug(\"Processing BasicDBList for {}.\", keyName);\n BasicDBList res = (BasicDBList) result.get(keyName);\n List<String> resultList = new ArrayList<String>();\n for (Object s : res) {\n if (s instanceof BasicDBObject) {\n log.error(\"BasicDBObjects in embedded lists not supported\");\n continue;\n }\n resultList.add((String) s);\n }\n attribute.getValues().addAll(resultList);\n attributes.put(attribute.getId(), attribute);\n } else {\n attribute.getValues().add(result.get(keyName));\n attributes.put(attribute.getId(), attribute);\n }\n }\n }\n } catch (MongoException e) {\n log.error(\"Problem processing result {}:\", getId(), e);\n throw new AttributeResolutionException(\"Problem processing result \" + getId() + \":\", e);\n }\n log.debug(\"MongoDb data connector {} attribute result: {}\", getId(), attributes.keySet());\n return attributes;\n }",
"public void build(DocumentWriter<String[]> output,List records) throws MappingException, IOException {\n\t\tthis.output = output;\n\t\tthis.addBeans(tag, records);\n\t\tinitializeConfig();\n\n\t\t//write Header\n\t\tif(recordconfig != null && recordconfig.isLabelSupport())\n\t\t\toutput.writeNext(buildCSVLabel(fieldConfigurations));\n\n\t\t//write data lines\n\t\tList beans = getBeans(tag);\n\t\tif(beans != null){\n\t\t\tfor(Object bean : beans)\n\t\t\t\twriteLine(bean);\n\t\t}\n\t}",
"private static Map<Integer, List<StudentRecord>> razvrstajStudentePoOcjenama(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t.collect(Collectors.groupingBy(o -> o.getOcjena()));\n\t}",
"@Override\n @Transactional(propagation = Propagation.REQUIRED)\n public JSONObject fetchMasterDataForGSTFields(List<FieldParams> list, Map mapData) throws ServiceException, JSONException {\n JSONObject result = new JSONObject();\n KwlReturnObject kwlReturnObject = null;\n String companyid = \"\";\n try {\n if (!StringUtil.isNullObject(list)) {\n if (mapData.containsKey(Constants.companyid)) {\n companyid = (String) mapData.get(Constants.companyid);\n }\n for (FieldParams fp : list) {\n JSONArray jarr = new JSONArray();\n kwlReturnObject = accAccountDAOobj.getFieldComboDatabyFieldID(fp.getId(), companyid);\n List<FieldComboData> listFC = kwlReturnObject.getEntityList();\n for (FieldComboData fc : listFC) {\n JSONObject jobj = new JSONObject();\n jobj.put(\"id\", fc.getId());\n jobj.put(\"value\", fc.getValue());\n jarr.put(jobj);\n }\n\n if (fp.getFieldlabel().equalsIgnoreCase(Constants.GST_ADDRESS_STATE_KEY)) {\n result.put(Constants.GST_ADDRESS_STATE_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.GST_ADDRESS_CITY_KEY)) {\n result.put(Constants.GST_ADDRESS_CITY_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.GST_ADDRESS_COUNTY_KEY)) {\n result.put(Constants.GST_ADDRESS_COUNTY_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.GST_ENTITY_KEY)) {\n result.put(Constants.GST_ENTITY_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.GSTProdCategory)) {\n result.put(Constants.GST_PRODUCT_CATEGORY_KEY, jarr);\n } else if (fp.getFieldlabel().equalsIgnoreCase(Constants.HSN_SACCODE)) {\n result.put(\"hsncode\", jarr);\n }\n\n }\n }\n } catch (ServiceException | JSONException e) {\n throw ServiceException.FAILURE(e.getMessage(), e);\n }\n return result;\n }",
"public static void groupByProductProcessor (JsonArray jsonArr, List<HashMap<String, Object>> list, Boolean isMain) {\n\t\t\n\t\tHashMap<String, Object> firstOfGroup = list.get(0);\n\t\tJsonObject jsonProduct = new JsonObject();\n\t\tString[] productAttr = {\"productId\",\"productSequenceId\",\"productName\",\"notificationName\"}; \n\t\tString[] freeUnitAttr = {\"freeUnitId\",\"freeUnitName\",\"measureUnit\",\"measureUnitName\"};\n\t\t\n\t\tfor(int i=0;i<productAttr.length;i++){\n\t\t\tif(firstOfGroup.get(productAttr[i])!=null\n\t\t\t\t\t&&StringUtils.isNotBlank(firstOfGroup.get(productAttr[i]).toString())){\n\t\t\t\tif(isMain&&i==0){\n\t\t\t\t\tjsonProduct.addProperty(productAttr[i], firstOfGroup.get(productAttr[i]).toString().substring(0,6));\n\t\t\t\t}else{\n\t\t\t\t\tjsonProduct.addProperty(productAttr[i], firstOfGroup.get(productAttr[i]).toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tHashMap<String, List<HashMap<String, Object>>> groupByFreeUnitMap = new HashMap<String, List<HashMap<String, Object>>>();\n\t\t\n\t\t//grouping by freeUnitId, if it didn't exist -> use unknown for key\n\t\tfor(int i =0;i<list.size();i++) {\n\t\t\tString freeUnitId = \"unknown\";\n\t\t\tif(list.get(i).get(freeUnitAttr[0])!=null&&StringUtils.isNotBlank(list.get(i).get(freeUnitAttr[0]).toString())){\n\t\t\t\tfreeUnitId = list.get(i).get(freeUnitAttr[0]).toString();\n\t\t\t}\n\t\t\tList<HashMap<String, Object>> freeUnitDetail ;\n\t\t\tif(groupByFreeUnitMap.containsKey(freeUnitId)) {\n\t\t\t\tfreeUnitDetail = groupByFreeUnitMap.get(freeUnitId);\n\t\t\t\tfreeUnitDetail.add(list.get(i));\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tfreeUnitDetail = new ArrayList<>();\n\t\t\t\tfreeUnitDetail.add(list.get(i));\n\t\t\t\tgroupByFreeUnitMap.put(freeUnitId, freeUnitDetail);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//freeUnitItemList\n\t\tJsonArray freeUnitArr = new JsonArray();\t\t\n\t\tfor(List<HashMap<String, Object>> freeUnitMap : groupByFreeUnitMap.values()) {\n\t\t\tBoolean isUnlimited = false;\n\t\t\tJsonObject jsonFreeUnitList = new JsonObject();\n\t\t\tHashMap<String, Object> firstFreeUnitOfGroup = freeUnitMap.get(0);\n\t\t\t\n\t\t\tfor(int i=0;i<freeUnitAttr.length;i++){\n\t\t\t\tif(firstFreeUnitOfGroup.get(freeUnitAttr[i])!=null\n\t\t\t\t\t\t&&StringUtils.isNotBlank(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString())){\n\t\t\t\t\tif(i==0){\n\t\t\t\t\t\tif(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString().contains(\"_U\")){\n\t\t\t\t\t\t\tisUnlimited = true;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((!\"unknown\".equalsIgnoreCase(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString()))\n\t\t\t\t\t\t\t\t&&firstFreeUnitOfGroup.get(freeUnitAttr[i])!=null\n\t\t\t\t\t\t\t\t&&StringUtils.isNotBlank(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString())){\n\t\t\t\t\t\tjsonFreeUnitList.addProperty(freeUnitAttr[i], firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString().replaceAll(\"_U\",\"\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(firstFreeUnitOfGroup.get(freeUnitAttr[i])!=null\n\t\t\t\t\t\t\t&&StringUtils.isNotBlank(firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString())){\t\t\t\t\t\n\t\t\t\t\t\tjsonFreeUnitList.addProperty(freeUnitAttr[i], firstFreeUnitOfGroup.get(freeUnitAttr[i]).toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//freeUnitItemDetailList\n\t\t\tJsonArray freeUnitdetailArr = new JsonArray();\n\t\t\tfor(int i=0;i<freeUnitMap.size();i++) {\n\t\t\t\tJsonObject jsonFreeUnitDetail = new JsonObject();\n\t\t\t\tfor (Map.Entry<String, Object> entry : freeUnitMap.get(i).entrySet()) {\n\t\t\t\t\tif((!Arrays.asList(productAttr).contains(entry.getKey())&&!Arrays.asList(freeUnitAttr).contains(entry.getKey()))\n\t\t\t\t\t\t\t&&(entry.getValue()!=null&&StringUtils.isNotBlank(entry.getValue().toString()))){\n\t\t\t\t\t\tif(isUnlimited && entry.getKey().toString().equalsIgnoreCase(\"initialAmount\")){\n\t\t\t\t\t\t\tjsonFreeUnitDetail.addProperty(entry.getKey().toString(), \"Unlimited\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tjsonFreeUnitDetail.addProperty(entry.getKey().toString(), entry.getValue().toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfreeUnitdetailArr.add(jsonFreeUnitDetail);\t\n\t\t\t}\n\t\t\t\n\t\t\tjsonFreeUnitList.add(\"freeUnitItemDetailList\", freeUnitdetailArr);\n\t\t\tfreeUnitArr.add(jsonFreeUnitList);\n\t\t}\n\t\tjsonProduct.add(\"freeUnitItemList\", freeUnitArr);\n\t\t\n\t\tAFLog.d(jsonProduct.toString());\n\t\tjsonArr.add(jsonProduct);\n\t}",
"public void getChallanRecords(TaxChallan taxChallan){\r\n\t\tObject data[][] = null;\r\n\t\r\n\t\ttry {\r\n\t\t\tString challanQuery = \"SELECT HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE,HRMS_TAX_CHALLAN_DTL.EMP_ID,EMP_TOKEN,EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,HRMS_TAX_CHALLAN_DTL.CHALLAN_TDS,\"\r\n\t\t\t\t\t+ \" NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_SURCHARGE,0),NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_EDU_CESS,0),NVL(HRMS_TAX_CHALLAN_DTL.CHALLAN_TOTAL_TAX,0) FROM\"\r\n\t\t\t\t\t+ \" HRMS_TAX_CHALLAN_DTL INNER JOIN HRMS_TAX_CHALLAN ON(HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=HRMS_TAX_CHALLAN.CHALLAN_CODE)\"\r\n\t\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON(HRMS_TAX_CHALLAN_DTL.EMP_ID=HRMS_EMP_OFFC.EMP_ID)\"\r\n\t\t\t\t\t+ \" WHERE HRMS_TAX_CHALLAN_DTL.CHALLAN_CODE=\"\r\n\t\t\t\t\t+ taxChallan.getChallanID()\r\n\t\t\t\t\t+ \" ORDER BY UPPER(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME)\";\r\n\t\t\tdata = getSqlModel().getSingleResult(challanQuery);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in challanQuery in getChallanRecords method\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\tif(data.length> 0 && data!=null){\r\n\t\ttaxChallan.setListFlag(\"true\");\r\n\t\tArrayList<Object> chList = new ArrayList<Object>();\r\n\t\ttry{\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t\t\tTaxChallan bean=new TaxChallan(); \r\n\t\t\tbean.setChallanCode(String.valueOf(data[i][0]));//Challan Code\r\n\t\t\tbean.setEmpId(String.valueOf(data[i][1]));//Employee Id\r\n\t\t\tbean.setEmpToken(String.valueOf(data[i][2]));//Token No.\r\n\t\t\tbean.setEmpName(String.valueOf(data[i][3]));//Emp Name\r\n\t\t\tbean.setChallanTax(Utility.twoDecimals(String.valueOf(data[i][4])));//Tds\r\n\t\t\t//bean.setChallanSurcharge(String.valueOf(data[i][5]));\r\n\t\t\tbean.setChallanSurcharge(Utility.twoDecimals(String.valueOf(data[i][5])));//Surcharge\r\n\t\t\tbean.setChallanEduCess(Utility.twoDecimals(String.valueOf(data[i][6])));//Education cess\r\n\t\t\tbean.setChallanTotTax(Utility.twoDecimals(String.valueOf(data[i][7])));\t//Total Tax\r\n\t\t//\tbean.setChallanTotTax(String.valueOf(data[i][7]));\r\n\t\t//\tbean.setPayDate(String.valueOf(data[i][8]));\r\n\t\t\t\r\n\t\t//\tif(String.valueOf(data[i][9]).equals(\"null\") || String.valueOf(data[i][9]).equals(\"\")){\r\n\t\t//\t\tbean.setDeductDate(\"\");\r\n\t\t//\t}else{\r\n\t\t//\tbean.setDeductDate(String.valueOf(data[i][9]).trim());\r\n\t\t//\t}\r\n\t\t\t\r\n\t\t//\tif(String.valueOf(data[i][10]).equals(\"null\") || String.valueOf(data[i][10]).equals(\"\")){\r\n\t\t//\t\tbean.setDepDate(\"\");\r\n\t\t//\t}else{\r\n\t\t//\tbean.setDepDate(String.valueOf(data[i][10]).trim());\r\n\t\t//\t}\r\n\t\t\tchList.add(bean);\r\n\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in data loop\",e);\r\n\t\t} //end of catch\r\n\t\t\r\n\t\t taxChallan.setChallanList(chList);\r\n\t\t \r\n\t\t} //end of if\r\n\t\r\n\t}",
"public static List<MutFreqDetailRecord> create(List<MutationFrequency> freqList) {\n double maxFrequency = freqList.get(0).getFrequency();\n List<MutFreqDetailRecord> recordList = new ArrayList<MutFreqDetailRecord>(freqList.size());\n\n for (MutationFrequency freq : freqList) {\n long mutationIndex = freq.getMutation().getIndex();\n double rawFrequency = freq.getFrequency();\n double normFrequency = rawFrequency / maxFrequency;\n\n recordList.add(new MutFreqDetailRecord(mutationIndex, rawFrequency, normFrequency));\n }\n\n return recordList;\n }",
"public StudentExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private Criteria buildCriteria(Map<String, ?> fieldValues) {\r\n Criteria criteria = new Criteria();\r\n for (Iterator i = fieldValues.entrySet().iterator(); i.hasNext();) {\r\n Map.Entry<String, Object> e = (Map.Entry<String, Object>) i.next();\r\n\r\n String key = e.getKey();\r\n Object value = e.getValue();\r\n if (value instanceof Collection) {\r\n criteria.addIn(key, (Collection) value);\r\n } else {\r\n criteria.addEqualTo(key, value);\r\n }\r\n }\r\n\r\n return criteria;\r\n }",
"@Override\n\tpublic LinkedHashMap<String,Object> output()\n\t{\n\t\t\n\t\treturn this._criteria;\n\t\t\n\t}",
"public void getShowRecord(List<MentalShowStruct> list) {\n/* 55 */ this.component.getRevertShowList(list);\n/* */ }",
"@Override\r\n\n\tpublic List<HashMap<String, Object>> getAnnListBycate(String cateSeq1, String cateSeq2, String cateSeq3,\r\n\t\t\tint startRow, int endRow) {\n\t\treturn annDao.getAnnListBycate(cateSeq1, cateSeq2, cateSeq3,startRow, endRow);\r\n\t}",
"public List getValidarSapExistencia(Map criteria);",
"com.exacttarget.wsdl.partnerapi.ObjectDefinition[] getObjectDefinitionArray();"
]
| [
"0.5307061",
"0.51322603",
"0.50222856",
"0.4976156",
"0.49681678",
"0.49368888",
"0.49314642",
"0.49287638",
"0.49085516",
"0.48875543",
"0.48812848",
"0.48064557",
"0.47816676",
"0.47692138",
"0.47628132",
"0.4750394",
"0.4742353",
"0.47394955",
"0.47364265",
"0.47272205",
"0.46785647",
"0.4661732",
"0.464531",
"0.4636779",
"0.46355635",
"0.46342444",
"0.4632095",
"0.46304289",
"0.4628649",
"0.4614229",
"0.46130502",
"0.46046698",
"0.45939103",
"0.4592516",
"0.45915556",
"0.45887372",
"0.45872435",
"0.45774788",
"0.4574822",
"0.45715788",
"0.45711252",
"0.45647672",
"0.45549345",
"0.4552868",
"0.45410067",
"0.45313597",
"0.45306286",
"0.45280907",
"0.452749",
"0.45273593",
"0.45261806",
"0.45230994",
"0.45224473",
"0.45163536",
"0.45150843",
"0.4506503",
"0.4503198",
"0.44979355",
"0.44971958",
"0.44899616",
"0.44888175",
"0.44868225",
"0.4479187",
"0.447546",
"0.44647858",
"0.44620553",
"0.44574296",
"0.44558257",
"0.44537258",
"0.445297",
"0.44496867",
"0.4440696",
"0.44394797",
"0.44390038",
"0.44362295",
"0.44303888",
"0.4422198",
"0.44216296",
"0.4415759",
"0.44155282",
"0.44124356",
"0.44103372",
"0.44059068",
"0.44036663",
"0.44025788",
"0.43993697",
"0.43876064",
"0.43869177",
"0.4386828",
"0.43863142",
"0.43826288",
"0.43810105",
"0.43761078",
"0.43704066",
"0.43687946",
"0.43646982",
"0.43638015",
"0.43606895",
"0.43539682",
"0.4350615",
"0.43498823"
]
| 0.0 | -1 |
NSArray rawpossVals = (NSArray)smcdict.objectForKey("possibleValues"); | static public NSArray possibleValues(NSDictionary smcdict) {
Object rawpossVals = smcdict.objectForKey("possibleValues");
//String non = (String)smcdict.objectForKey("nonNumberOrDate");
if (rawpossVals == null) {
return null;
}
NSArray possVals = null;
if (rawpossVals instanceof String) {
WOXMLDecoder decoder = WOXMLDecoder.decoder();
String xmlString = new String(Base64.decodeBase64((String) rawpossVals));
log.info("xmlString: {}", xmlString);
StringReader stringReader = new StringReader(xmlString);
InputSource is = new InputSource(stringReader);
// invoke setEncoding (on the input source) if the XML contains multibyte characters
try {
possVals = (NSArray)decoder.decodeRootObject(is);
} catch(Exception e) {
//OWDebug.println(1, "e:"+e);
}
//possVals = NSArchiver .unarchiveObjectWithData(rawpossVals);
} else if(rawpossVals instanceof NSArray){
possVals = (NSArray)rawpossVals;
}
return possVals;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object[] getValues();",
"Object[] getValues();",
"List getValues();",
"Values values();",
"@Override\n public Map<String, List<PairModel>> getPairValues(String[] keyArr) {\n return null;\n }",
"Map<String, Object> getValues(boolean deep);",
"List<String> getLookupValues();",
"public String[] getValidValues();",
"public String[] getValidValues();",
"public Hashtable getRemappedValues() throws Exception;",
"Array<Object> getInstanceValues();",
"public Collection getAllowedValues() {\n/* 40 */ return (Collection)this.allowedValues;\n/* */ }",
"public Object[] getValues();",
"public String possibleValues(){\n int nbElement = 9-this.possibilities.size();\n String result = \"\";\n result = result+\"\"+this.value+\" (\";\n for(int i : this.possibilities){\n result = result+i;\n }\n for(int i = 0; i< nbElement ;i++){\n result = result+\".\";\n }\n result = result+\")\";\n return result;\n\n }",
"public static String[] getValueSet(Map<String, String> mp, String[] keys) {\n \n List<String> tmpvl = new ArrayList<String>();\n for (int i=0; i< keys.length; i++){\n tmpvl.add(mp.get(keys[i]));\n }\n String[] tmpv = (String[])tmpvl.toArray(new String[tmpvl.size()]);\n return tmpv;\n }",
"public abstract String[] getValues();",
"public ArrayList<Integer> get_values()\r\n\t{\r\n\t\treturn this.poss_values;\r\n\t}",
"java.util.List<it.unipr.aotlab.dmat.core.generated.MatrixPieceTripletsBytesWire.Triplet> \n getValuesList();",
"java.util.List<java.lang.String>\n getStrValuesList();",
"public List<Object> getValues();",
"public List<NeonValue> getValues();",
"public List<Integer> GetPossibleValues()\n {\n return this._valuesToPut;\n }",
"@MethodSource\n\tstatic List<Arguments> keyPairs() {\n\t\t// m/44'/0'/0'/0/0 ~ 5:\n\t\treturn List.of(\n\t\t\t\t// L4c1iSf8e3gW3rEAbKktLhbCFuCWnFfVfsgQW26c6QoaHQGwthCG\n\t\t\t\tArguments.of(\"dc55bc0cbde942349d563b3f845f6fcec7362173442b27b70ae7b20d13325a82\",\n\t\t\t\t\t\t\"L4c1iSf8e3gW3rEAbKktLhbCFuCWnFfVfsgQW26c6QoaHQGwthCG\",\n\t\t\t\t\t\t\"02859a42554b255917b971c6d0e322651db76d8e33b7e6686b345f22e57048c750\",\n\t\t\t\t\t\t\"1KNdhXP6ZVPzEDBXtEfcJM8YcYiR4Ni8Qo\"),\n\t\t\t\t// KwUefgTV5FEmMkHtXteAPzNgmj26ayTTyZ5MuNMCC2mzUW14A7tD\n\t\t\t\tArguments.of(\"07af74bc9c0b73d84c24b2de0f82babcb8c208d142539c0776e5e29d9472cfe8\",\n\t\t\t\t\t\t\"KwUefgTV5FEmMkHtXteAPzNgmj26ayTTyZ5MuNMCC2mzUW14A7tD\",\n\t\t\t\t\t\t\"02bb6ae99eed56005ed7a49dfd0ba540f4592f050d8cb2bb9f6aa1c10d643d5362\",\n\t\t\t\t\t\t\"1CczufdcQFberpwi6umLA4aUShuWRV7BB8\"),\n\t\t\t\t// Ky2PYhNC7qs4SEBTQP6dAVozEQfu153CCn2Bd4BDAAoh1drYxSDQ\n\t\t\t\tArguments.of(\"35d9c595f126e0d3876609f46b274a24400cbbd82a61078178a4926d997d3b1a\",\n\t\t\t\t\t\t\"Ky2PYhNC7qs4SEBTQP6dAVozEQfu153CCn2Bd4BDAAoh1drYxSDQ\",\n\t\t\t\t\t\t\"03b91d0a4de9b893eb6f3693088540807a73467b82b1d370ba7e90b4d8dc675767\",\n\t\t\t\t\t\t\"12udDTnX1EhUa9YuQG3Qhto4VFaj4xD9Xy\"),\n\t\t\t\t// KxtiC1y1Nr1sRcFvyYJA1A3Vx3yzVyLfwf6kZwuNBrqNnY2b1a3W\n\t\t\t\tArguments.of(\"31e6890a53ff64e82ceffac238aa435e488ce552644693def445b80051da634f\",\n\t\t\t\t\t\t\"KxtiC1y1Nr1sRcFvyYJA1A3Vx3yzVyLfwf6kZwuNBrqNnY2b1a3W\",\n\t\t\t\t\t\t\"0254a58625017dd7339b17cd7d2a8468d28cfa0dcf5e3eee9198d776cd0faf0ad7\",\n\t\t\t\t\t\t\"14dMxhd2566hmtB4Q5hcPSiyiKpnCgR4RG\"),\n\t\t\t\t// Kwn2ofhF63ahDEU8LxsWAxP1BTrL9DLRgKY9vgeyMdJCEktwke34\n\t\t\t\tArguments.of(\"10a08e554cff37443a29e659feeb921d966baf4e4c079152f13820e31081e534\",\n\t\t\t\t\t\t\"Kwn2ofhF63ahDEU8LxsWAxP1BTrL9DLRgKY9vgeyMdJCEktwke34\",\n\t\t\t\t\t\t\"03ff345b530f24877f4db5405202497af5a263fe7ba0646444ef56f930eebd07a3\",\n\t\t\t\t\t\t\"1F1A5DFkrPiCZFSZLF6ocTAiarv5gFr4JW\"),\n\t\t\t\t// L26HpKaVXifDTEn11L4pQ7WJ2ZPY7jagyWsdQBrKZZW9cx1jXLTs\n\t\t\t\tArguments.of(\"915eaa2b553d7e4c8dd9823be0d0897cbb819ce5dd9bfc9eaa3142c527ec69a6\",\n\t\t\t\t\t\t\"L26HpKaVXifDTEn11L4pQ7WJ2ZPY7jagyWsdQBrKZZW9cx1jXLTs\",\n\t\t\t\t\t\t\"039ab753a8481d965af517e2c01db595b539398052404bc077ff798b8ddce49c94\",\n\t\t\t\t\t\t\"1CWHy4hSWz4YDjqYKpDMTopRkxuWMy84mp\"));\n\t}",
"T[] getValues();",
"java.util.List<java.lang.String> getValuesList();",
"public Collection<String> valuesOfMap() {\n Map<String, String> tempMap = createSimpleMap(\"Fondue\",\"Cheese\");\n\t\treturn tempMap.values();\n\t}",
"public String valuesFromMap() {\n\t\thashMap = createSimpleMap(\"Breakfast\", \"Eggs\");\n\t\treturn hashMap.get(\"Breakfast\");\n\t}",
"private static char [] zzUnpackCMap(String packed) {\n\t\tchar [] map = new char[0x10000];\n\t\tint i = 0; /* index in packed string */\n\t\tint j = 0; /* index in unpacked array */\n\t\twhile (i < 2312) {\n\t\t\tint count = packed.charAt(i++);\n\t\t\tchar value = packed.charAt(i++);\n\t\t\tdo map[j++] = value; while (--count > 0);\n\t\t}\n\t\treturn map;\n\t}",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2106) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"public static void populateValues()\n\t{\n\t\tvalues = new int[127];\n\t\tfor(int i = 0; i < 127; i++)\n\t\t{\n\t\t\tif(i < 64)\n\t\t\t\tvalues[i] = 1;\n\t\t\telse if (i < 96)\n\t\t\t\tvalues[i] = 2;\n\t\t\telse if (i < 112)\n\t\t\t\tvalues[i] = 4;\n\t\t\telse if (i < 120)\n\t\t\t\tvalues[i] = 8;\n\t\t\telse if (i < 124)\n\t\t\t\tvalues[i] = 16;\n\t\t\telse if (i < 126)\n\t\t\t\tvalues[i] = 32;\n\t\t\telse \n\t\t\t\tvalues[i] = 64;\n\t\t}\n\t}",
"private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x10000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 166) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 164) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 366) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"public void printValues(){\r\n\r\n for(String key : values.keySet()){\r\n String value = values.get(key).toString();\r\n System.out.println(key + \" = \" + value);\r\n }\r\n\r\n }",
"PropertyValue<?, ?>[] values();",
"private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x110000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 172) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 166) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char[] zzUnpackCMap(String packed) {\n char[] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2808) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"@Override\n\tpublic Collection<V> values() {\n\t\tList<V> list = Util.newList();\n\t\tfor (K key : keys) {\n\t\t\tlist.add(map.get(key));\n\t\t}\n\t\t\n\t\treturn list;\n\t}",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 174) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 178) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 174) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 258) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1690) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2266) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x10000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 152) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }",
"public List<Object> getDecodeParms() throws IOException {\n/* 346 */ List<Object> retval = null;\n/* */ \n/* 348 */ COSBase dp = this.stream.getDictionaryObject(COSName.DECODE_PARMS);\n/* 349 */ if (dp == null)\n/* */ {\n/* */ \n/* */ \n/* 353 */ dp = this.stream.getDictionaryObject(COSName.DP);\n/* */ }\n/* 355 */ if (dp instanceof COSDictionary) {\n/* */ \n/* */ \n/* 358 */ Map<?, ?> map = COSDictionaryMap.convertBasicTypesToMap((COSDictionary)dp);\n/* 359 */ retval = new COSArrayList(map, dp, (COSDictionary)this.stream, COSName.DECODE_PARMS);\n/* */ \n/* */ }\n/* 362 */ else if (dp instanceof COSArray) {\n/* */ \n/* 364 */ COSArray array = (COSArray)dp;\n/* 365 */ List<Object> actuals = new ArrayList();\n/* 366 */ for (int i = 0; i < array.size(); i++)\n/* */ {\n/* 368 */ actuals.add(\n/* 369 */ COSDictionaryMap.convertBasicTypesToMap((COSDictionary)array\n/* 370 */ .getObject(i)));\n/* */ }\n/* 372 */ retval = new COSArrayList(actuals, array);\n/* */ } \n/* */ \n/* 375 */ return retval;\n/* */ }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 228) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 228) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1182) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2244) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 210) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private void set_values(ArrayList<Integer> values)\r\n\t{\r\n\t\tthis.poss_values = values;\r\n\t}",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2894) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\r\n char [] map = new char[0x10000];\r\n int i = 0; /* index in packed string */\r\n int j = 0; /* index in unpacked array */\r\n while (i < 2224) {\r\n int count = packed.charAt(i++);\r\n char value = packed.charAt(i++);\r\n do map[j++] = value; while (--count > 0);\r\n }\r\n return map;\r\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 128) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 182) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1348) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"public static ArrayList getArrayVal( Context dan)\n {\n SharedPreferences WordSearchGetPrefs = dan.getSharedPreferences(\"dbArrayValues\",Activity.MODE_PRIVATE);\n Set<String> tempSet = new HashSet<String>();\n tempSet = WordSearchGetPrefs.getStringSet(\"myArray\", tempSet);\n return new ArrayList<String>(tempSet);\n }",
"void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2928) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"@Override\n\tpublic Iterable<K> values() {\n\t\treturn null;\n\t}",
"java.util.List<java.lang.Integer> getRequestedValuesList();",
"@Override\n\tpublic ArrayList<String> getPossibleValue() {\n\t\treturn possibleValue;\n\t}",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2480) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] yy_unpack_cmap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1742) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 1774) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x10000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 86) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"public double getValue(Hashtable positions, int[] conf) {\n\n return 0.0;\n}",
"private static char [] zzUnpackCMap(String packed) {\n char [] map = new char[0x110000];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < 2820) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private List<Object> getConstantValue()\r\n/* 97: */ {\r\n/* 98:117 */ return (List)this.constant.getValue();\r\n/* 99: */ }",
"Map<String,Object> getClaimReserveInitValues(Map<String, Object> pars) throws SQLException;",
"HCollection values();",
"private static char [] zzUnpackCMap(String packed) {\n int size = 0;\n for (int i = 0, length = packed.length(); i < length; i += 2) {\n size += packed.charAt(i);\n }\n char[] map = new char[size];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < packed.length()) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n int size = 0;\n for (int i = 0, length = packed.length(); i < length; i += 2) {\n size += packed.charAt(i);\n }\n char[] map = new char[size];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < packed.length()) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n int size = 0;\n for (int i = 0, length = packed.length(); i < length; i += 2) {\n size += packed.charAt(i);\n }\n char[] map = new char[size];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < packed.length()) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n int size = 0;\n for (int i = 0, length = packed.length(); i < length; i += 2) {\n size += packed.charAt(i);\n }\n char[] map = new char[size];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < packed.length()) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n int size = 0;\n for (int i = 0, length = packed.length(); i < length; i += 2) {\n size += packed.charAt(i);\n }\n char[] map = new char[size];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < packed.length()) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n int size = 0;\n for (int i = 0, length = packed.length(); i < length; i += 2) {\n size += packed.charAt(i);\n }\n char[] map = new char[size];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < packed.length()) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n int size = 0;\n for (int i = 0, length = packed.length(); i < length; i += 2) {\n size += packed.charAt(i);\n }\n char[] map = new char[size];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < packed.length()) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n int size = 0;\n for (int i = 0, length = packed.length(); i < length; i += 2) {\n size += packed.charAt(i);\n }\n char[] map = new char[size];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < packed.length()) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"private static char [] zzUnpackCMap(String packed) {\n int size = 0;\n for (int i = 0, length = packed.length(); i < length; i += 2) {\n size += packed.charAt(i);\n }\n char[] map = new char[size];\n int i = 0; /* index in packed string */\n int j = 0; /* index in unpacked array */\n while (i < packed.length()) {\n int count = packed.charAt(i++);\n char value = packed.charAt(i++);\n do map[j++] = value; while (--count > 0);\n }\n return map;\n }",
"protected abstract String listLearnValues();",
"private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\tmap.put(50, \"L\");\r\n\t\tmap.put(100, \"C\");\r\n\t\tmap.put(500, \"D\");\r\n\t\tmap.put(1000, \"M\");\r\n\t}",
"int[] getValues()\n {\n return values_;\n }",
"public String[] getKeysWithVariants() {\n Set keySet = new HashSet( values.keySet() );\n if( defaultValues != null ) {\n keySet.addAll( defaultValues.keySet() );\n }\n keySet.addAll( cssValues.keySet() );\n return ( String[] )keySet.toArray( new String[ keySet.size() ] );\n }",
"public List<String> confirmMatchVars(HashMap<String, List<String>> mapCandVarToMatchedVals,\n HashMap<String, List<String>> mapCandVarToAllAnsMaps, int indxCTP) {\n\n System.out.println(\"\\t\\t\\t\\t\\t ================ CONFIRM or REJECT matched vars ================\");\n List<String> valuesCandVar = null;\n List valuesCandVarAns = null;\n List<String> removeKeys = new LinkedList<>();\n double maxMatchValue = 0;\n\n for (String keyOuter : mapCandVarToMatchedVals.keySet()) {\n\n valuesCandVarAns = mapCandVarToAllAnsMaps.get(keyOuter);\n valuesCandVar = mapCandVarToMatchedVals.get(keyOuter);\n double percentageMatchec = (double) valuesCandVar.size() / valuesCandVarAns.size();\n\n if (maxMatchValue < percentageMatchec) {\n\n maxMatchValue = percentageMatchec;\n }\n\n if (valuesCandVarAns != null && valuesCandVar != null) {\n\n //BUUUUUUUUUUUUUUUUUG\n if ((percentageMatchec < inverseThresh && !(Double.toString(percentageMatchec).contains(\"E\")))\n || (DTPCandidates.get(indxCTP).get(1).contains(\"?\") && percentageMatchec < 0.10)\n || (valuesCandVar.size() == 1 && percentageMatchec < 0.04)) {\n\n if (!myBasUtils.elemInListEquals(removeKeys, keyOuter)) {\n\n System.out.println(\"\\t\\t\\t\\t\\t\\t CANCEL var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n removeKeys.add(keyOuter);\n }\n } else {\n if (!inverseBestMap) {\n System.out.println(\"\\t\\t\\t\\t\\t\\t VALIDATE candidate var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n\n }\n }\n\n } //BUUUUUUUUUUUUUUUUUG\n else if (valuesCandVar == null) {\n removeKeys.add(keyOuter);\n } else {\n if (!inverseBestMap) {\n System.out.println(\"\\t\\t\\t\\t\\t\\t VALIDATE var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n\n }\n }\n\n }\n\n if (inverseBestMap) {\n\n for (String keyOuter : mapCandVarToMatchedVals.keySet()) {\n\n valuesCandVarAns = mapCandVarToAllAnsMaps.get(keyOuter);\n valuesCandVar = mapCandVarToMatchedVals.get(keyOuter);\n double percentageMatchec = (double) valuesCandVar.size() / valuesCandVarAns.size();\n\n if (valuesCandVarAns != null && valuesCandVar != null) {\n\n if (maxMatchValue > percentageMatchec) {\n\n if (!myBasUtils.elemInListEquals(removeKeys, keyOuter)) {\n\n System.out.println(\"\\t\\t\\t\\t\\t\\t CANCEL as not best matching var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n removeKeys.add(keyOuter);\n }\n } else {\n\n System.out.println(\"\\t\\t\\t\\t\\t\\t VALIDATE candidate var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n }\n\n } //BUUUUUUUUUUUUUUUUUG\n else if (valuesCandVar == null) {\n if (!myBasUtils.elemInListEquals(removeKeys, keyOuter)) {\n removeKeys.add(keyOuter);\n }\n\n } else {\n\n System.out.println(\"\\t\\t\\t\\t\\t\\t VALIDATE var: ?\" + keyOuter.substring(0, keyOuter.indexOf(\"_\")) + \", while actually mathced: \" + (percentageMatchec * 100) + \" %\");\n }\n\n }\n }\n\n System.out.println(\"\\t\\t\\t\\t\\t ================ CONFIRM or REJECT matched vars ================\");\n\n return removeKeys;\n }",
"public String[] getArrayValue();",
"java.util.Map<java.lang.String, java.lang.String>\n getVarsMap();",
"io.dstore.values.BooleanValue getPredefinedValues();",
"public GenericPair<HashMap<Pair, Integer>, HashMap<Integer, Pair>> mapBitextToInt(HashMap<Pair, Integer>sd_count){\n\t\tHashMap<Pair, Integer> index = new HashMap<Pair, Integer>();\n\t\tHashMap<Integer, Pair> biword = new HashMap<Integer, Pair>();\n\t\tint i = 0;\n\t\tfor (Pair pair : sd_count.keySet()){\n\t\t\tindex.put(pair, i);\n\t\t\tbiword.put(i, pair);\n\t\t\ti++;\n\t\t}\n\t\treturn new GenericPair<HashMap<Pair, Integer>, HashMap<Integer, Pair>>(index, biword);\n\t}",
"public final List<BasePair> values(){\n return new ArrayList<BasePair>(layoutMap.values());\n }",
"public abstract java.util.Map<java.lang.Double, java.util.List<java.lang.Integer>> pnlListMap();",
"java.util.List<com.sanqing.sca.message.ProtocolDecode.SimpleMap> \n getSimpleMapList();",
"public static void main(String args[])\n {\n // Let the given dictionary be following\n String dictionary[] = {\"hit\", \"hits\", \"kilts\", \"pEg\",\"peN\",\"pentAgon\",\"slit\",\"slits\",\"sTilts\"};\n\n\n\n char boggle[][] = {{'P','W','Y','R'},\n {'E','N','T','H'},\n {'G','S','I','Q'},\n {'O','L','S','A'}\n };\n\n String[] val=findWords(boggle,dictionary);\n\n System.out.println(Arrays.toString(val));\n\n\n }",
"public void setJurisdictions(entity.AppCritJurisdiction[] value);",
"@Override\n List<Value> values();",
"Set<String> getDictionary();",
"public String[] getValues()\n {\n return values;\n }",
"private HashMap<String,String> getVarValues(Module m, Call c)\n {\n HashMap<String,String> vars = new HashMap<String,String>();\n String regex = replaceVars(c.assumption,\"[.[^,]]+\");\n Pattern pattern = Pattern.compile(regex);\n\n for(String result: m.getSceptical())\n {\n Matcher matcher = pattern.matcher(result);\n if(matcher.find())\n {\n String v = c.assumption;\n String r = result;\n int vCurrent = 0;\n int rCurrent = 0;\n while(vCurrent<v.length() && rCurrent<r.length())\n {\n if(v.toCharArray()[vCurrent] != r.toCharArray()[rCurrent])\n {\n String variable = getVar(v.substring(vCurrent));\n String value = getValue(r.substring(rCurrent));\n vars.put(variable,value);\n vCurrent = vCurrent + variable.length();\n rCurrent = rCurrent + value.length();\n }\n vCurrent++;\n rCurrent++;\n }\n }\n }\n return vars;\n }"
]
| [
"0.55014324",
"0.55014324",
"0.54235345",
"0.532579",
"0.5318482",
"0.52814096",
"0.52774775",
"0.5243519",
"0.5243519",
"0.5218511",
"0.5181181",
"0.5150459",
"0.5134765",
"0.51127094",
"0.50993305",
"0.5093304",
"0.50667953",
"0.5041538",
"0.50226784",
"0.5009779",
"0.4973836",
"0.4961801",
"0.4960147",
"0.49519777",
"0.49500686",
"0.49228355",
"0.4912135",
"0.4908308",
"0.49042594",
"0.48839208",
"0.48758525",
"0.48696482",
"0.4864843",
"0.4859061",
"0.4855481",
"0.4851904",
"0.4847617",
"0.48443154",
"0.48438644",
"0.48422614",
"0.48412055",
"0.48403323",
"0.48388955",
"0.48371518",
"0.4833472",
"0.4826749",
"0.48263425",
"0.48240086",
"0.48240086",
"0.48217255",
"0.48173562",
"0.48139468",
"0.48128262",
"0.4812053",
"0.4805289",
"0.48048288",
"0.48014393",
"0.4797786",
"0.47905546",
"0.4787802",
"0.47798952",
"0.47776753",
"0.4777393",
"0.47759476",
"0.47729242",
"0.4771896",
"0.47709095",
"0.47669497",
"0.4762401",
"0.47615242",
"0.47293937",
"0.47250003",
"0.47199354",
"0.47180706",
"0.47180706",
"0.47180706",
"0.47180706",
"0.47180706",
"0.47180706",
"0.47180706",
"0.47180706",
"0.47180706",
"0.46937054",
"0.46679989",
"0.46599594",
"0.46581307",
"0.4655951",
"0.46552336",
"0.4645717",
"0.46444488",
"0.46340814",
"0.4633007",
"0.46288693",
"0.46252337",
"0.4621179",
"0.46178934",
"0.46146023",
"0.45937425",
"0.45703062",
"0.4560558"
]
| 0.76259065 | 0 |
Used to recache derived values in Record objects | public int attributeListDepth() {
return _attributeListDepth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refreshObjectCache();",
"protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }",
"public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }",
"public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }",
"private void rehash(){\n\t\tHashTable that = new HashTable(2 * this.table.length);\n\t\tfor (int i = 0; i < this.table.length; i++){\n\t\t\tif (this.table[i] != null){\n\t\t\t\tthat.addRecord(this.table[i].getValue());\n\t\t\t}\n\t\t}\n\t\tthis.table = that.table;\n\t\treturn;\n\t}",
"public void reload() {\r\n\t\tList<Object> data = currencyImpl.getAll();\r\n\t\twrite.lock();\r\n\t\tIterator<ConcurrentHashMap<String, List<Object>>> iter = cachedData.values().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tConcurrentHashMap<String, List<Object>> map = (ConcurrentHashMap<String, List<Object>>) iter.next();\r\n\t\t\tmap.clear();\r\n\t\t}\r\n\t\tpopulateCachedData((List<Object>)data);\r\n\t\twrite.unlock();\r\n\t}",
"protected Map<String, T> getDatumCache() {\n\t\treturn datumCache;\n\t}",
"private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }",
"public void testCache() {\n MethodKey m = new MethodKey(\"aclass\", \"amethod\", new Object[]{1, \"fads\", new Object()});\n String mValue = \"my fancy value\";\n MethodKey m1 = new MethodKey(\"aclass\", \"amethod1\", new Object[]{1, \"fads\", new Object()});\n String mValue1 = \"my fancy value1\";\n MethodKey m2 = new MethodKey(\"aclass\", \"amethod2\", new Object[]{1, \"fads\", new Object()});\n String mValue2 = \"my fancy value2\";\n\n GenericCache.setValue(m, mValue);\n GenericCache.setValue(m1, mValue1);\n GenericCache.setValue(m2, mValue2);\n\n assertEquals(GenericCache.getValue(m), mValue);\n assertEquals(GenericCache.getValue(m1), mValue1);\n assertEquals(GenericCache.getValue(m2), mValue2);\n }",
"@Override\r\n public void setCaching(int parseInt) {\n\r\n }",
"public void reload () {\n\t\tentity = uuidManager.get(uuid);\n\t\treloadAccessors();\n\t\tcheckAccessors();\n\t}",
"public void setCached() {\n }",
"public ExprMatrix withCache();",
"private DataCache() {\n this.people = new HashMap<>();\n this.events = new HashMap<>();\n this.personEvents = new HashMap<>();\n this.currentPersonEvents = new HashMap<>();\n this.eventTypes = new ArrayList<>();\n this.childrenMap = new HashMap<>();\n this.maleSpouse = new HashSet<>();\n this.femaleSpouse = new HashSet<>();\n this.paternalAncestorsMales = new HashSet<>();\n this.paternalAncestorsFemales = new HashSet<>();\n this.maternalAncestorsMales = new HashSet<>();\n this.maternalAncestorsFemales = new HashSet<>();\n }",
"static private void populateCache() {\n if (cacheIsPopulated) {\n return;\n }\n cacheIsPopulated = true;\n\n /* Schema:\n *\n * units{\n * duration{\n * day{\n * one{\"{0} ден\"}\n * other{\"{0} дена\"}\n * }\n */\n\n // Load the unit types. Use English, since we know that that is a superset.\n ICUResourceBundle rb1 = (ICUResourceBundle) UResourceBundle.getBundleInstance(\n ICUData.ICU_UNIT_BASE_NAME,\n \"en\");\n rb1.getAllItemsWithFallback(\"units\", new MeasureUnitSink());\n\n // Load the currencies\n ICUResourceBundle rb2 = (ICUResourceBundle) UResourceBundle.getBundleInstance(\n ICUData.ICU_BASE_NAME,\n \"currencyNumericCodes\",\n ICUResourceBundle.ICU_DATA_CLASS_LOADER);\n rb2.getAllItemsWithFallback(\"codeMap\", new CurrencyNumericCodeSink());\n }",
"protected Object readResolve() {\n calculateHashCode(keys);\n return this;\n }",
"public OldOldCache()\n {\n this(DEFAULT_UNITS);\n }",
"protected void clearCaches() {\n // Primary class LocusDetailProxy cache\n IDaoManager manager = DaoManagerFactory.getManager(getSubsystem());\n if (manager != null) {\n manager.clearCache(org.tair.db.locusdetail.LocusDetailProxy.class.getName());\n }\n\n // Clear nested object caches\n \n // Child LocusUpdateHistory cache\n IDaoManager LocusUpdateHistoryManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusUpdateHistoryManager != null) {\n LocusUpdateHistoryManager.clearCache(org.tair.db.locusdetail.LocusUpdateHistory.class.getName());\n }\n \n // Child ModelFeature cache\n IDaoManager ModelFeatureManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ModelFeatureManager != null) {\n ModelFeatureManager.clearCache(org.tair.db.locusdetail.ModelFeature.class.getName());\n }\n \n // Child LocusGeneModelCdnaAlias cache\n IDaoManager LocusGeneModelCdnaAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelCdnaAliasManager != null) {\n LocusGeneModelCdnaAliasManager.clearCache(org.tair.db.locusdetail.LocusGeneModelCdnaAlias.class.getName());\n }\n \n // Child LocusGeneModelCdna cache\n IDaoManager LocusGeneModelCdnaManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelCdnaManager != null) {\n LocusGeneModelCdnaManager.clearCache(org.tair.db.locusdetail.LocusGeneModelCdna.class.getName());\n }\n \n // Child ProteinResourceLink cache\n IDaoManager ProteinResourceLinkManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinResourceLinkManager != null) {\n ProteinResourceLinkManager.clearCache(org.tair.db.locusdetail.ProteinResourceLink.class.getName());\n }\n \n // Child ProteinModelDomain cache\n IDaoManager ProteinModelDomainManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinModelDomainManager != null) {\n ProteinModelDomainManager.clearCache(org.tair.db.locusdetail.ProteinModelDomain.class.getName());\n }\n \n // Child ProteinModel Proxy cache\n IDaoManager ProteinModelManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinModelManager != null) {\n ProteinModelManager.clearCache(org.tair.db.locusdetail.ProteinModel.class.getName());\n }\n \n // Child LocusGeneModelAnnotation cache\n IDaoManager LocusGeneModelAnnotationManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelAnnotationManager != null) {\n LocusGeneModelAnnotationManager.clearCache(org.tair.db.locusdetail.LocusGeneModelAnnotation.class.getName());\n }\n \n // Child PolymorphismSite cache\n IDaoManager PolymorphismSiteManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (PolymorphismSiteManager != null) {\n PolymorphismSiteManager.clearCache(org.tair.db.locusdetail.PolymorphismSite.class.getName());\n }\n \n // Child LocusGeneModel Proxy cache\n IDaoManager LocusGeneModelManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelManager != null) {\n LocusGeneModelManager.clearCache(org.tair.db.locusdetail.LocusGeneModel.class.getName());\n }\n \n // Child LocusOtherName cache\n IDaoManager LocusOtherNameManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusOtherNameManager != null) {\n LocusOtherNameManager.clearCache(org.tair.db.locusdetail.LocusOtherName.class.getName());\n }\n \n // Child LocusPhysicalMapCoordinates cache\n IDaoManager LocusPhysicalMapCoordinatesManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusPhysicalMapCoordinatesManager != null) {\n LocusPhysicalMapCoordinatesManager.clearCache(org.tair.db.locusdetail.LocusPhysicalMapCoordinates.class.getName());\n }\n \n // Child LocusResourceLink cache\n IDaoManager LocusResourceLinkManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusResourceLinkManager != null) {\n LocusResourceLinkManager.clearCache(org.tair.db.locusdetail.LocusResourceLink.class.getName());\n }\n \n // Child LocusComment cache\n IDaoManager LocusCommentManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCommentManager != null) {\n LocusCommentManager.clearCache(org.tair.db.locusdetail.LocusComment.class.getName());\n }\n \n // Child LocusAttribution cache\n IDaoManager LocusAttributionManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusAttributionManager != null) {\n LocusAttributionManager.clearCache(org.tair.db.locusdetail.LocusAttribution.class.getName());\n }\n \n // Child LocusOtherSymbol cache\n IDaoManager LocusOtherSymbolManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusOtherSymbolManager != null) {\n LocusOtherSymbolManager.clearCache(org.tair.db.locusdetail.LocusOtherSymbol.class.getName());\n }\n \n // Child LocusPolymorphism Proxy cache\n IDaoManager LocusPolymorphismManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusPolymorphismManager != null) {\n LocusPolymorphismManager.clearCache(org.tair.db.locusdetail.LocusPolymorphism.class.getName());\n }\n \n // Child ReferencedLocus cache\n IDaoManager ReferencedLocusManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ReferencedLocusManager != null) {\n ReferencedLocusManager.clearCache(org.tair.db.locusdetail.ReferencedLocus.class.getName());\n }\n \n // Child Reference Proxy cache\n IDaoManager ReferenceManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ReferenceManager != null) {\n ReferenceManager.clearCache(org.tair.db.locusdetail.Reference.class.getName());\n }\n \n // Child LocusBac cache\n IDaoManager LocusBacManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusBacManager != null) {\n LocusBacManager.clearCache(org.tair.db.locusdetail.LocusBac.class.getName());\n }\n \n // Child LocusEstAlias cache\n IDaoManager LocusEstAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusEstAliasManager != null) {\n LocusEstAliasManager.clearCache(org.tair.db.locusdetail.LocusEstAlias.class.getName());\n }\n \n // Child LocuslEst cache\n IDaoManager LocuslEstManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocuslEstManager != null) {\n LocuslEstManager.clearCache(org.tair.db.locusdetail.LocuslEst.class.getName());\n }\n \n // Child LocusCdnaAlias cache\n IDaoManager LocusCdnaAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCdnaAliasManager != null) {\n LocusCdnaAliasManager.clearCache(org.tair.db.locusdetail.LocusCdnaAlias.class.getName());\n }\n \n // Child LocusCdna cache\n IDaoManager LocusCdnaManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCdnaManager != null) {\n LocusCdnaManager.clearCache(org.tair.db.locusdetail.LocusCdna.class.getName());\n }\n \n // Child LocusAnnotation cache\n IDaoManager LocusAnnotationManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusAnnotationManager != null) {\n LocusAnnotationManager.clearCache(org.tair.db.locusdetail.LocusAnnotation.class.getName());\n }\n }",
"protected void perRecordInit(Record record)\n {\n }",
"@Test\n public void cache_diff_type() {\n ClassData a = ValueSerDeGenerator.generate(context(), typeOf(MockDataModel.class));\n ClassData b = ValueSerDeGenerator.generate(context(), typeOf(MockKeyValueModel.class));\n assertThat(b, is(not(cacheOf(a))));\n }",
"protected void createLookupCache() {\n }",
"public void resetCache() {\n\t\tlogicClassNames = new HashMap<String, String>();\n\t}",
"protected void storeCurrentValues() {\n }",
"@Override\r\n public boolean removeDerivedValues() {\n return false;\r\n }",
"@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}",
"@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }",
"private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }",
"@Override\r\n\tprotected void ResetBaseObject() {\r\n\t\tsuper.ResetBaseObject();\r\n\r\n\t\t// new Base Object\r\n\t\tbaseEntity = new Chooseval();\r\n\r\n\t\t// new other Objects and set them into Base object\r\n\r\n\t\t// refresh Lists\r\n\t\tbaseEntityList = ChoosevalService.FindAll(\"id\", JPAOp.Asc);\r\n\t}",
"@Override\n public void reloadCachedMappings() {\n }",
"@Override\n public void reloadCachedMappings() {\n }",
"private void recycle() {\n attributes.clear();\n creationTime = 0L;\n expiring = false;\n id = null;\n lastAccessedTime = 0L;\n maxInactiveInterval = -1;\n\n isNew = false;\n valid = false;\n Manager savedManager = manager;\n manager = null;\n\n // Tell our Manager that this Session has been recycled\n if ((savedManager != null) && (savedManager instanceof ManagerBase))\n ((ManagerBase) savedManager).recycle(this);\n //setAuthType(null);\n //notes.clear();\n //setPrincipal(null);\n }",
"@Override\n public void clearCache() {\n }",
"public void reloadData() {\n log.debug(\"Getting value from method {}\", method.getName());\n T fetchedValue = (T) executeMethod(instance, method, null);\n setData(fetchedValue);\n }",
"@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}",
"public void preCache(Class<?> type) {\n notNull(type, \"type cannot be null\");\n\n try {\n Reflector reflector = getReflector(type);\n reflector.preCache();\n }\n catch (ReflectException e) {\n throw e;\n }\n catch (Exception e) {\n throw new ReflectException(\"failed to pre-cache accessor/mutator maps for type: \" + type.getName(), e);\n }\n }",
"@Override\n public boolean isCaching() {\n return false;\n }",
"public Record(Record other) {\n if (other.isSetAttrs()) {\n List<AttrVal> __this__attrs = new ArrayList<AttrVal>(other.attrs.size());\n for (AttrVal other_element : other.attrs) {\n __this__attrs.add(new AttrVal(other_element));\n }\n this.attrs = __this__attrs;\n }\n }",
"@Override\n\tprotected void finalize() throws Throwable {\n\t\tzSampleRecord.recycle();\n\t\tySampleRecord.recycle();\n\t\tsuper.finalize();\n\t}",
"public DBMaker enableMRUCache() {\n cacheType = DBCacheRef.MRU;\n return this;\n }",
"@SuppressWarnings({\"unchecked\"})\n private void inheritValues(Values fromParent) {\n // Transfer values from parent to child thread.\n Object[] table = this.table;\n for (int i = table.length - 2; i >= 0; i -= 2) {\n Object k = table[i];\n\n if (k == null || k == TOMBSTONE) {\n // Skip this entry.\n continue;\n }\n\n // The table can only contain null, tombstones and references.\n Reference<InheritableThreadLocal<?>> reference\n = (Reference<InheritableThreadLocal<?>>) k;\n // Raw type enables us to pass in an Object below.\n InheritableThreadLocal key = reference.get();\n if (key != null) {\n // Replace value with filtered value.\n // We should just let exceptions bubble out and tank\n // the thread creation\n table[i + 1] = key.childValue(fromParent.table[i + 1]);\n } else {\n // The key was reclaimed.\n table[i] = TOMBSTONE;\n table[i + 1] = null;\n fromParent.table[i] = TOMBSTONE;\n fromParent.table[i + 1] = null;\n\n tombstones++;\n fromParent.tombstones++;\n\n size--;\n fromParent.size--;\n }\n }\n }",
"public abstract void clearCache();",
"public void cacheableQuery() throws HibException;",
"public static void invalidateCache() {\n\t\tclassCache = new HashMap();\n\t}",
"public void cacheHashCode() {\n _hashCode = 1;\n for (int counter = size() - 1; counter >= 0; counter--) {\n _hashCode = 31 * _hashCode + get(counter).hashCode();\n }\n }",
"Snapshot refresh();",
"public R onUpdate(final R record) {\n // can be overridden.\n return record;\n }",
"@Override\n\tprotected void updateDataFromRead(CountedData counter, final GATKSAMRecord gatkRead, final int offset, final byte refBase) {\n Object[][] covars;\n\t\ttry {\n\t\t\tcovars = (Comparable[][]) gatkRead.getTemporaryAttribute(getCovarsAttribute());\n\t\t\t// Using the list of covariate values as a key, pick out the RecalDatum from the data HashMap\n\t NestedHashMap data;\n\t data = dataManager.data;\n\t final Object[] key = covars[offset];\n\t\t\tBisulfiteRecalDatumOptimized datum = (BisulfiteRecalDatumOptimized) data.get( key );\n\t if( datum == null ) { // key doesn't exist yet in the map so make a new bucket and add it\n\t // initialized with zeros, will be incremented at end of method\n\t datum = (BisulfiteRecalDatumOptimized)data.put( new BisulfiteRecalDatumOptimized(), true, (Object[])key );\n\t }\n\n\t // Need the bases to determine whether or not we have a mismatch\n\t final byte base = gatkRead.getReadBases()[offset];\n\t final long curMismatches = datum.getNumMismatches();\n\t final byte baseQual = gatkRead.getBaseQualities()[offset];\n\n\t // Add one to the number of observations and potentially one to the number of mismatches\n\t datum.incrementBaseCounts( base, refBase, baseQual );\n\t increaseCountedBases(counter,1);\n\t\t\tincreaseNovelCountsBases(counter,1);\n\t\t\tincreaseNovelCountsMM(counter,(datum.getNumMismatches() - curMismatches));\n\t \n\t\t} catch (IllegalArgumentException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n //counter.novelCountsBases++;\n \n //counter.novelCountsMM += datum.getNumMismatches() - curMismatches; // For sanity check to ensure novel mismatch rate vs dnsnp mismatch rate is reasonable\n \n }",
"@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }",
"public static void clearCache() {\r\n types = null;\r\n typesById = null;\r\n updatedBuiltinTypes = false;\r\n ChangeLogTypeBuiltin.internal_clearCache();\r\n }",
"@Override\n public void afterPropertiesSet() throws Exception {\n GuavaCacheMetrics.monitor(\n registry,\n cache,\n \"serialLookupCache\",\n Collections.singleton(Tag.of(StoreMetrics.TAG_STORE_KEY, StoreMetrics.TAG_STORE_VALUE)));\n }",
"protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }",
"public void flushEntityCache() {\n super.flushEntityCache();\n }",
"void resetCache();",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"private ProcessedDynamicData( ) {\r\n super();\r\n }",
"public void update(){\r\n\t\tthis.loadRecords();\r\n\t}",
"@Override\n public void refreshDataEntries() {\n }",
"private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }",
"IData reify();",
"@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}",
"public DBMaker disableCacheAutoClear(){\n this.autoClearRefCacheOnLowMem = false;\n return this;\n }",
"@Override\n public ReplicateRecord record (DomainRecord record) {\n this.record = record;\n return this;\n }",
"void updateLoad(){\n\t\tdouble aloadFactor = elements/Table.length;\r\n\t\tif(aloadFactor==1){\r\n\t\t\tRehash();\r\n\t\t}\r\n\t\tloadFactor = ((double)elements)/Table.length;\r\n\t}",
"public void cacheResult(DataEntry dataEntry);",
"public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }",
"void resetCacheCounters();",
"public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}",
"public void method_6436() {\r\n super();\r\n this.field_6225 = new ArrayList();\r\n this.field_6226 = new HashMap();\r\n }",
"public void reuse() {\n method = null;\n uriPath = null;\n versionRange = 0;\n uriFragmentRange = queryStringRange = 0;\n contentOffset = 0;\n contentLength = 0;\n\n if (buffer != null) {\n buffer.clear();\n }\n for (int i = 0; i < nFields; i++) {\n keys[i] = null;\n }\n nFields = 0;\n }",
"public synchronized static void resetCache() {\n prefixes = null;\n jsonldContext = null;\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tFieldCache fieldCache = (FieldCache)super.clone();\n\t\tfieldCache.cache = (HashMap<TileCoordinate, DijkstraNode>)this.cache.clone();\n\n\t\treturn fieldCache;\n\t}",
"RecordInfo clone();",
"@Override\n\tpublic void cacheResult(List<PhatVay> phatVaies) {\n\t\tfor (PhatVay phatVay : phatVaies) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tphatVay.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(phatVay);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tphatVay.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"public void clearLocalCache()\n/* */ {\n/* 345 */ super.clearCache();\n/* */ }",
"public interface EzyerCache {\n class PersistentObject {\n public final byte[] mData;\n public final String mKey;\n public final long mExpireTimeMillis;\n\n public PersistentObject(byte[] data, String key, long expireTimeMillis) {\n mData = data;\n mKey = key;\n mExpireTimeMillis = expireTimeMillis;\n }\n }\n\n class ValueObject {\n public final byte[] mData;\n public final String mKey;\n public final boolean mIsExpired;\n\n public ValueObject(byte[] data, String key, boolean isExpired) {\n mData = data;\n mKey = key;\n mIsExpired = isExpired;\n }\n }\n\n ValueObject get(String key);\n\n List<ValueObject> get(String key, int start, int end);\n\n void set(PersistentObject po);\n\n void add(PersistentObject po);\n\n void remove(String key);\n\n boolean isExpired(String key);\n\n void clear();\n}",
"public void setRecord(Record record) {\n this.record = record;\n }",
"protected BaseTransferCache(UserVisit userVisit) {\n this.userVisit = userVisit;\n \n session = ThreadSession.currentSession();\n transferCache = new HashMap<>();\n \n var options = session.getOptions();\n if(options != null) {\n includeEntityAttributeGroups = options.contains(BaseOptions.BaseIncludeEntityAttributeGroups);\n includeTagScopes = options.contains(BaseOptions.BaseIncludeTagScopes);\n }\n }",
"public void reInitialize() {\n\n\t\tthis.myT = buildFromScratch();\n\n\t}",
"@Override\n\tpublic void cacheResult(List<Legacydb> legacydbs) {\n\t\tfor (Legacydb legacydb : legacydbs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tLegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(legacydb);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlegacydb.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"protected ElevationDataCache() {\n }",
"@Override\n\tpublic void recalculate() {\n\t\tthis.constant = Convert.MapEntry.toBoolean(this.getAttributes(), \"constant\", false);\n\t\tfinal Object defaultObject = Base.getJava(this.getAttributes(), \"default\", null);\n\t\tif (defaultObject == null) {\n\t\t\tthis.defaultValue = null;\n\t\t} else {\n\t\t\tif (defaultObject instanceof Set<?>) {\n\t\t\t\tthis.defaultValue = (Set<?>) defaultObject;\n\t\t\t} else if (defaultObject instanceof Collection<?>) {\n\t\t\t\tthis.defaultValue = Create.tempSet((Collection<?>) defaultObject);\n\t\t\t} else if (defaultObject instanceof Object[]) {\n\t\t\t\tthis.defaultValue = Create.tempSet(Arrays.asList((Object[]) defaultObject));\n\t\t\t} else {\n\t\t\t\tfinal String defaultString = defaultObject.toString();\n\t\t\t\tif (defaultString.length() == 0) {\n\t\t\t\t\tthis.defaultValue = Create.tempSet();\n\t\t\t\t} else {\n\t\t\t\t\tthis.defaultValue = Create.tempSet(Arrays.asList((Object[]) defaultString.split(\",\")));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void invalidateCache() {\n\t}",
"void updateCacheEntry(CacheKey key, Query query, QueryResultPacket resultPacket) {\n long oldTimestamp;\n if (!activeCache) return;\n\n PacketWrapper wrapper = lookup(key, query);\n if (wrapper == null) return;\n\n // The timestamp is owned by the QueryResultPacket, this is why this\n // update method puts entries into the cache differently from elsewhere\n oldTimestamp = wrapper.getTimestamp();\n wrapper = (PacketWrapper) wrapper.clone();\n wrapper.addResultPacket(resultPacket);\n synchronized (packetCache) {\n packetCache.put(key, wrapper, oldTimestamp);\n }\n }",
"public JbootVoModel set(Record record) {\n super.putAll(record.getColumns());\n return this;\n }",
"@Override\n\t\t\t\tprotected void setCache(List<E> cache) {\n\t\t\t\t}",
"@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }",
"protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }",
"Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }",
"protected void rehash() {\n // TODO: fill this in.\n //double number of maps, k, each time it is called\n\t\t//use MyBetterMap.makeMaps and MyLinearMap.getEntries\n\t\t//collect entries in the table, resize the table, then put the entries back in\n\t\tList<MyLinearMap<K, V>> newmaps = MyBetterMap.makeMaps(maps.size()*2);\n\t\tfor(MyLinearMap<K, V> curr: this.maps) {\n\t\t\tfor(Entry ent: MyLinearMap.getEntries()) {\n\t\t\t\tnewmaps.put(ent.key, ent.value);\n\t\t\t}\n\t\t}\n\t\tthis.maps = newmaps;\n\t\treturn;\n\t}",
"public abstract DexHolder toFasterHolder();",
"protected abstract void retrievedata();",
"public void clear() {\n cache = new BigDecimal[cache.length];\n }",
"@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}",
"public interface RecordPersister\r\n{\r\n\t/**\r\n\t * Holds all implementation-specific data in a change record\r\n\t */\r\n\tpublic static final class ChangeData\r\n\t{\r\n\t\t/**\r\n\t\t * The major subject of the change\r\n\t\t */\r\n\t\tpublic Object majorSubject;\r\n\r\n\t\t/**\r\n\t\t * The minor subject of the change\r\n\t\t */\r\n\t\tpublic Object minorSubject;\r\n\r\n\t\t/**\r\n\t\t * The first metadata of the change\r\n\t\t */\r\n\t\tpublic Object data1;\r\n\r\n\t\t/**\r\n\t\t * The second metadata of the change\r\n\t\t */\r\n\t\tpublic Object data2;\r\n\r\n\t\t/**\r\n\t\t * The previous value in the change\r\n\t\t */\r\n\t\tpublic Object preValue;\r\n\r\n\t\t/**\r\n\t\t * Creates an empty ChangeData\r\n\t\t */\r\n\t\tpublic ChangeData()\r\n\t\t{\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Creates a filled-out ChangeData\r\n\t\t * \r\n\t\t * @param majS The major subject for the change\r\n\t\t * @param minS The minor subject for the change\r\n\t\t * @param md1 The first metadata for the change\r\n\t\t * @param md2 The second metadata for the change\r\n\t\t * @param pv The previous value for the change\r\n\t\t */\r\n\t\tpublic ChangeData(Object majS, Object minS, Object md1, Object md2, Object pv)\r\n\t\t{\r\n\t\t\tthis();\r\n\t\t\tmajorSubject = majS;\r\n\t\t\tminorSubject = minS;\r\n\t\t\tdata1 = md1;\r\n\t\t\tdata2 = md2;\r\n\t\t\tpreValue = pv;\r\n\t\t}\r\n\t}\r\n\r\n\t// The following methods are common with Synchronize2Impl\r\n\r\n\t/**\r\n\t * Gets a record user by ID\r\n\t * \r\n\t * @param id The ID of the user\r\n\t * @return The user with the given ID\r\n\t * @throws PrismsRecordException If no such user exists or an error occurs retriving the user\r\n\t */\r\n\tRecordUser getUser(long id) throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Gets a subject type by name\r\n\t * \r\n\t * @param typeName The name of the subject type to get (see {@link SubjectType#name()})\r\n\t * @return The subject type with the given name\r\n\t * @throws PrismsRecordException If no such subject type exists or another error occurs\r\n\t */\r\n\tSubjectType getSubjectType(String typeName) throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Gets the database ID for a value\r\n\t * \r\n\t * @param item The item to get the persistence ID for\r\n\t * @return The ID to identify the object in a change record\r\n\t */\r\n\tlong getID(Object item);\r\n\r\n\t/**\r\n\t * Retrieves the values associated with a set of IDs. Each parameter may be the already-parsed\r\n\t * value (which may be simply returned in the ChangeData return), the identifier for the value,\r\n\t * the serialized value (only in the case of the preValue), or null (except in the case of the\r\n\t * major subject).\r\n\t * \r\n\t * @param subjectType The subject type of the change record\r\n\t * @param changeType The type of the change\r\n\t * @param majorSubject The major subject or the ID of the major subject to retrieve\r\n\t * @param minorSubject The minor subject or the ID of the minor subject to retrieve. May be\r\n\t * null.\r\n\t * @param data1 The first metadata or the ID of the first metadata to retrieve. May be null.\r\n\t * @param data2 The second metadata or the ID of the second metadata to retrieve. May be null.\r\n\t * @param preValue The previous value (serialized, a string) or the ID of the previous value in\r\n\t * the change to retrieve. May be null.\r\n\t * @return The ChangeData containing the values of each non-null ID.\r\n\t * @throws PrismsRecordException If an error occurs retrieving any of the data.\r\n\t */\r\n\tChangeData getData(SubjectType subjectType, ChangeType changeType, Object majorSubject,\r\n\t\tObject minorSubject, Object data1, Object data2, Object preValue)\r\n\t\tthrows PrismsRecordException;\r\n\r\n\t// End common methods\r\n\r\n\t/**\r\n\t * @return All domains that this persister understands\r\n\t * @throws PrismsRecordException If an error occurs getting the data\r\n\t */\r\n\tSubjectType [] getAllSubjectTypes() throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Gets all domains that qualify as change history for the given value's type\r\n\t * \r\n\t * @param value The value to get the history of\r\n\t * @return All domains that record history of the type of the value\r\n\t * @throws PrismsRecordException If an error occurs getting the data\r\n\t */\r\n\tSubjectType [] getHistoryDomains(Object value) throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Serializes a change's object to a string. This method will only be called for change objects\r\n\t * (previous values) if the change's ChangeType reports false for\r\n\t * {@link ChangeType#isObjectIdentifiable()}. This method will not be called for instances of\r\n\t * Boolean, Integer, Long, Float, Double, or String. Serialization of these types is handled\r\n\t * internally.\r\n\t * \r\n\t * @param change The change to serialize the previous value of\r\n\t * @return The serialized object\r\n\t * @throws PrismsRecordException If an error occurs serializing the object\r\n\t */\r\n\tString serializePreValue(ChangeRecord change) throws PrismsRecordException;\r\n\r\n\t/**\r\n\t * Called when a modification is purged that is the last link to an item in the records. The\r\n\t * persister now has an opportunity to purge the item itself if desired.\r\n\t * \r\n\t * @param item The item with no more records\r\n\t * @param stmt A database statement to make deletion easier\r\n\t * @throws PrismsRecordException If an error occurs purging the data\r\n\t */\r\n\tvoid checkItemForDelete(Object item, java.sql.Statement stmt) throws PrismsRecordException;\r\n}",
"private UtilsCache() {\n\t\tsuper();\n\t}",
"public static void startCaching() {\n\t\t/*\n\t\t * component caching happens if the collection exists\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = new HashMap<String, Object>();\n\t\t\t}\n\t\t}\n\t}",
"public void put(SR record) throws InterruptedException {\n Record r = record;\n if (converter != null) {\n r = converter.convert(record);\n }\n\n cache.put(r);\n }",
"public void updateTimeSpansCache()\n {\n _timeSpans = null;\n getTimeSpans();\n }",
"@Override\n\tpublic void refresh(Object entity) {\n\t\t\n\t}",
"protected void warmupImpl(M newValue) {\n\n }",
"private void updateDataFields(final Function<Table<?>, Result<? extends Record>> fetcher) {\n final long updateData = System.nanoTime();\n for (final Map.Entry<Table<? extends Record>, IRTable> entry : jooqTableToIRTable.entrySet()) {\n final Table<? extends Record> table = entry.getKey();\n final IRTable irTable = entry.getValue();\n final long start = System.nanoTime();\n final Result<? extends Record> recentData = fetcher.apply(table);\n Objects.requireNonNull(recentData, \"Table Result<?> was null\");\n final long select = System.nanoTime();\n irTable.updateValues(recentData);\n final long updateValues = System.nanoTime();\n LOG.info(\"updateDataFields for table {} took {} ns to fetch {} rows from DB, \" +\n \"and {} ns to reflect in IRTables\",\n table.getName(), (select - start), recentData.size(), (System.nanoTime() - updateValues));\n }\n compiler.updateData(irContext, backend);\n LOG.info(\"compiler.updateData() took {}ns to complete\", (System.nanoTime() - updateData));\n }"
]
| [
"0.57548374",
"0.57465243",
"0.5644432",
"0.54817754",
"0.54789245",
"0.53786415",
"0.5338852",
"0.5331996",
"0.531974",
"0.5297537",
"0.52775073",
"0.52744824",
"0.52651733",
"0.5264085",
"0.5236568",
"0.52289414",
"0.5200022",
"0.51886684",
"0.5149513",
"0.5116314",
"0.51153326",
"0.5113398",
"0.51090467",
"0.51043606",
"0.5100245",
"0.5089095",
"0.50773233",
"0.5051281",
"0.504839",
"0.504839",
"0.5047292",
"0.5043694",
"0.5018272",
"0.5002672",
"0.4999724",
"0.49969274",
"0.499172",
"0.4989675",
"0.49749234",
"0.497272",
"0.4970229",
"0.49691358",
"0.49683008",
"0.4957615",
"0.49529552",
"0.4947824",
"0.4939316",
"0.493546",
"0.49339414",
"0.49210396",
"0.49190184",
"0.49184316",
"0.49183053",
"0.49087098",
"0.49081773",
"0.4904414",
"0.48908052",
"0.4877927",
"0.48702213",
"0.4860508",
"0.48563054",
"0.48530108",
"0.4850023",
"0.484722",
"0.48412183",
"0.48362255",
"0.4831152",
"0.48281097",
"0.4818456",
"0.48104203",
"0.48090118",
"0.4801256",
"0.4793652",
"0.47890055",
"0.4787335",
"0.47830722",
"0.47809142",
"0.47768846",
"0.4775348",
"0.47733948",
"0.47679403",
"0.47665375",
"0.47510374",
"0.47458562",
"0.47445762",
"0.4744547",
"0.47370493",
"0.47348854",
"0.47341225",
"0.47332895",
"0.47322127",
"0.47312886",
"0.47310683",
"0.4729328",
"0.47252145",
"0.471843",
"0.47177526",
"0.47155458",
"0.47131833",
"0.4710109",
"0.4708016"
]
| 0.0 | -1 |
sets our heat setting and keeps it in an appropriate range | public void setheat_setting(int setting)
{
this.heat_setting = setting;
if( setting <1 || setting >5)
this.heat_setting = 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void refreshHeat(){\n\n if (this.selectedTrain.getHeat() == 1){\n\n this.heatOnRadioButton.setSelected(true);\n // update heat until set heat\n if (this.selectedTrain.getTemp() <= this.setTemp){ this.selectedTrain.updateTemp();}\n }\n else if (this.selectedTrain.getHeat() == 0){ this.heatOffRadioButton.setSelected(true);}\n else if (this.selectedTrain.getHeat() == -1){ this.heatFailureRadioButton.setSelected(true); }\n }",
"private void heat() throws InterruptedException {\n\t\tInteger delta = new Double((rest.getTemperature() - temperatureSensor.getTemperature()) * 10).intValue();\n\t\tfor (Integer rTemp : temperatureAdjust.keySet()) {\n\t\t\tif (delta > rTemp) {\n\t\t\t\tInteger percent = new Double(new Double(temperatureAdjust.get(rTemp)) / 100 * timeIntervalInMS).intValue();\n\t\t\t\theater.off();\n\t\t\t\tThread.sleep(timeIntervalInMS - percent);\n\t\t\t\theater.on();\n\t\t\t\tThread.sleep(percent);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// we are above all limits, switch heater off and wait!\n\t\theater.off();\n\t\tThread.sleep(timeIntervalInMS);\n\t}",
"public void turnOnHeat(Double temp){\n\n this.selectedTrain.setHeat(1); // turn on heat\n this.selectedTrain.setAC(0); // turn off heat\n\n if (temp == null){ this.selectedTrain.setThermostat(60.0); } // set to default heat\n else{ this.selectedTrain.setThermostat(temp); }\n\n this.operatingLogbook.add(\"Heat Set: \" + temp.toString());\n this.printOperatingLogs();\n }",
"public void setHeat0(int x, int y, int z)\n\t{\n\t\tif (!(x < 0 || y < 0 || x >= distance.length || y >= distance[0].length))\n\t\tdistance[x][y][0] = z;\n\t\t\n\t}",
"public void setIntensities(float r0, float g0, float b0, float a0,\n float r1, float g1, float b1, float a1,\n float r2, float g2, float b2, float a2) {\n // Check if we need alpha or not?\n if ((a0 != 1.0f) || (a1 != 1.0f) || (a2 != 1.0f)) {\n INTERPOLATE_ALPHA = true;\n a_array[0] = (a0 * 253f + 1.0f) * 65536f;\n a_array[1] = (a1 * 253f + 1.0f) * 65536f;\n a_array[2] = (a2 * 253f + 1.0f) * 65536f;\n m_drawFlags|=R_ALPHA;\n } else {\n INTERPOLATE_ALPHA = false;\n m_drawFlags&=~R_ALPHA;\n }\n \n // Check if we need to interpolate the intensity values\n if ((r0 != r1) || (r1 != r2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((g0 != g1) || (g1 != g2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((b0 != b1) || (b1 != b2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else {\n //m_fill = parent.filli;\n m_drawFlags &=~ R_GOURAUD;\n }\n \n // push values to arrays.. some extra scaling is added\n // to prevent possible color \"overflood\" due to rounding errors\n r_array[0] = (r0 * 253f + 1.0f) * 65536f;\n r_array[1] = (r1 * 253f + 1.0f) * 65536f;\n r_array[2] = (r2 * 253f + 1.0f) * 65536f;\n \n g_array[0] = (g0 * 253f + 1.0f) * 65536f;\n g_array[1] = (g1 * 253f + 1.0f) * 65536f;\n g_array[2] = (g2 * 253f + 1.0f) * 65536f;\n \n b_array[0] = (b0 * 253f + 1.0f) * 65536f;\n b_array[1] = (b1 * 253f + 1.0f) * 65536f;\n b_array[2] = (b2 * 253f + 1.0f) * 65536f;\n \n // for plain triangles\n m_fill = 0xFF000000 | \n ((int)(255*r0) << 16) | ((int)(255*g0) << 8) | (int)(255*b0);\n }",
"public void setHeat1(int x, int y, int z)\n\t{\n\t\tif (!(x < 0 || y < 0 || x >= distance.length || y >= distance[0].length))\n\t\tdistance[x][y][1] = z;\n\t\t\n\t}",
"@Override\r\n\tpublic void autoSeatHeat() {\n\t\t\r\n\t}",
"private void setHeatTemp(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_setHeatTemp\n\n String tempStr = this.heatTempTextField.getText();\n if (Double.parseDouble(tempStr) < 60.0 || Double.parseDouble(tempStr) > 80.0 ){\n\n System.out.println(\"Error. Please set a temperature between 60.0 - 80.0\");\n }else{\n // turn on heat and transmit the temp\n this.setTemp = Double.parseDouble(tempStr);\n this.turnOnHeat(Double.parseDouble(tempStr));\n }\n }",
"public void adjustIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tshort maxI;\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tmaxI = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t\tintensity[row][col] =\r\n\t\t (short)Math.min(intensity[row][col], maxI);\r\n\t }\r\n\t}\r\n }",
"public int getheat_setting()\n {\n return heat_setting;\n }",
"@Override\n public void update(int n, int n2) {\n void mouseY;\n void mouseX;\n super.update((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n double difference = Math.min(95, Math.max(0, (int)(mouseX - this.getX())));\n this.hueWidth = Float.intBitsToFloat(Float.floatToIntBits(0.012939732f) ^ 0x7EEB012B) * (hsb[0] * Float.intBitsToFloat(Float.floatToIntBits(0.22324012f) ^ 0x7DD0990F) / Float.intBitsToFloat(Float.floatToIntBits(0.07544195f) ^ 0x7E2E814F));\n this.satWidth = Float.intBitsToFloat(Float.floatToIntBits(0.009555363f) ^ 0x7EA18E19) * (hsb[1] * Float.intBitsToFloat(Float.floatToIntBits(0.021556562f) ^ 0x7F049763) / Float.intBitsToFloat(Float.floatToIntBits(0.026331188f) ^ 0x7F63B481));\n this.briWidth = Float.intBitsToFloat(Float.floatToIntBits(0.02392782f) ^ 0x7E790447) * (hsb[2] * Float.intBitsToFloat(Float.floatToIntBits(0.09763377f) ^ 0x7E73F437) / Float.intBitsToFloat(Float.floatToIntBits(0.019418718f) ^ 0x7F2B1401));\n this.alphaWidth = Float.intBitsToFloat(Float.floatToIntBits(0.010174015f) ^ 0x7E9BB0E9) * ((float)this.setting.getValue().getAlpha() / Float.intBitsToFloat(Float.floatToIntBits(0.0089911735f) ^ 0x7F6C4FB7));\n this.changeColor(difference, new Color(Color.HSBtoRGB((float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.15404371830294214) ^ 0x7F9477B45E21F7BFL) * Double.longBitsToDouble(Double.doubleToLongBits(0.050973544293479105) ^ 0x7FDC99345367453FL) / Double.longBitsToDouble(Double.doubleToLongBits(0.03014217321508198) ^ 0x7FE85D9700C1AF0AL)), hsb[1], hsb[2])), new Color(Color.HSBtoRGB(Float.intBitsToFloat(Float.floatToIntBits(1.8279414E38f) ^ 0x7F0984DF), hsb[1], hsb[2])), this.hueDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.1223112785883676) ^ 0x7FE88FCABD780F54L) * Double.longBitsToDouble(Double.doubleToLongBits(0.026943886254004668) ^ 0x7FED172D9927021DL) / Double.longBitsToDouble(Double.doubleToLongBits(0.05427001644334754) ^ 0x7FDD4947938E1C55L)), hsb[2])), new Color(Color.HSBtoRGB(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(1.1082437E38f) ^ 0x7EA6BFFF), hsb[2])), this.saturationDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], hsb[1], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.12328622126775308) ^ 0x7FE84FAF90647595L) * Double.longBitsToDouble(Double.doubleToLongBits(0.09854681448488288) ^ 0x7FCFBA5D315669BFL) / Double.longBitsToDouble(Double.doubleToLongBits(0.029067112480345214) ^ 0x7FEB43C4E5F80CC0L)))), new Color(Color.HSBtoRGB(hsb[0], hsb[1], Float.intBitsToFloat(Float.floatToIntBits(3.3573391E38f) ^ 0x7F7C9400))), this.brightnessDragging);\n this.changeAlpha(difference, (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.014823398455503097) ^ 0x7FD99BBADCA7DC11L) * Double.longBitsToDouble(Double.doubleToLongBits(0.013271171619186513) ^ 0x7FE4CDEA80AC0D24L) / Double.longBitsToDouble(Double.doubleToLongBits(0.08218747250746601) ^ 0x7FDAEA3CFA8F7AADL)), this.alphaDragging);\n }",
"@Override\n public void drawHeatFlux() {\n }",
"public void change()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tcost[i][j]-=min;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==8888)\n\t\t\t\t\t{\n\t\t\t\t\t\tcost[i][j]+=min;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void setValues() {\n values = new double[size];\n int pi = 0; // pixelIndex\n int siz = size - nanW - negW - posW;\n int biw = min < max ? negW : posW;\n int tiw = min < max ? posW : negW;\n double bv = min < max ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;\n double tv = min < max ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;\n double f = siz > 1 ? (max - min) / (siz - 1.) : 0.;\n for (int i = 0; i < biw && pi < size; i++,pi++) {\n values[pi] = bv;\n }\n for (int i = 0; i < siz && pi < size; i++,pi++) {\n double v = min + i * f;\n values[pi] = v;\n }\n for (int i = 0; i < tiw && pi < size; i++,pi++) {\n values[pi] = tv;\n }\n for (int i = 0; i < nanW && pi < size; i++,pi++) {\n values[pi] = Double.NaN;\n }\n }",
"private void updateRaster (Color minColor, Color maxColor) {\n\t\tRectangle bounds = new Rectangle (0, 0, 100, 1);\n\t\tGradientPaint gp = new GradientPaint (0.0f, 0.0f, minColor, 100.0f, 0.0f, maxColor);\n\t\tColorModel cm = Toolkit.getDefaultToolkit().getColorModel();\n\t\tPaintContext pc = gp.createContext(cm, bounds, bounds, new AffineTransform (), null);\n\t\traster = pc.getRaster(0,0,100,1);\n\t}",
"private void initializeHeatMapOptions() {\n heatMapOptions = new HashMap<>();\n heatMapOptions.put(\"leftShift\", \"0\");\n heatMapOptions.put(\"rightShift\", \"0\");\n heatMapOptions.put(\"reportColumnDisplayName\", \"\");\n heatMapOptions.put(\"activateHeatMap\", \"false\");\n\n }",
"private static void setQui(){\n int mX, mY;\n for (Integer integer : qList) {\n mY = (int) (Math.floor(1.f * integer / Data.meshRNx));\n mX = integer - Data.meshRNx * mY;\n if (Data.densCells[mX][mY] > Data.gwCap[mX][mY] * .75) {\n for (int j = 0; j < Data.densCells[mX][mY]; j++) {\n Cell cell = (Cell) cells.get(Data.idCellsMesh[mX][mY][j]);\n cell.vState = true;\n cell.quiescent = Data.densCells[mX][mY] >= Data.gwCap[mX][mY];\n }\n }\n }\n }",
"private void checkHeatLevels()\n {\n // Computer is switched on and has power reserves.\n if (this.isPowered() && this.isRedstonePowered())\n {\n if (this.getEnergyStored(ForgeDirection.UNKNOWN) <= this.getMaxEnergyStored(ForgeDirection.UNKNOWN))\n {\n // Running computer consumes energy from internal reserve.\n this.consumeInternalEnergy(this.getEnergyConsumeRate());\n }\n\n // Running computer generates heat with excess energy it wastes.\n if (!this.isHeatAboveZero() && worldObj.getWorldTime() % 5L == 0L)\n {\n if (!this.isOverheating() && !this.isHeatedPastTriggerValue())\n {\n // Raise heat randomly from zero to five if we are not at optimal temperature.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(10));\n }\n else if (!this.isOverheating() && this.isHeatedPastTriggerValue() && this.getFluidAmount() > FluidContainerRegistry.BUCKET_VOLUME)\n {\n // Computer has reached operating temperature and has water to keep it cool.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(2));\n }\n else if (!this.isOverheating() && this.getFluidAmount() <= FluidContainerRegistry.BUCKET_VOLUME)\n {\n // Computer is running but has no water to keep it cool.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(5));\n }\n }\n }\n\n // Water acts as coolant to keep running computer components cooled.\n if (!this.isHeatAboveZero() && !this.isFluidTankEmpty() && this.isPowered() && this.isRedstonePowered() && worldObj.getWorldTime() % 16L == 0L)\n {\n if (this.getHeatLevelValue() <= this.getHeatLevelMaximum() && this.isHeatAboveZero())\n {\n // Some of the water evaporates in the process of cooling off the computer.\n // Note: water is drained in amount of heat computer has so hotter it gets\n // the faster it will consume water up to rate of one bucket\n // every few ticks.\n if (this.getFluidAmount() >= this.getHeatLevelValue())\n {\n // The overall heat levels of the computer drop so long as there is water though.\n this.removeFluidAmountExact(this.getHeatLevelValue() / 4);\n this.decreaseHeatValue();\n }\n }\n }\n else if (this.isHeatAboveZero() && worldObj.getWorldTime() % 8L == 0L)\n {\n // Computer will slowly dissipate heat while powered off but nowhere near as fast with coolant.\n this.decreaseHeatValue();\n }\n }",
"public void maximizeIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tintensity[row][col] = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t }\r\n\t}\r\n }",
"public void init_erup() {\n\t\tchange=5;\n\t\tfor(int x=x_max-change ; x <= x_max+change ; x++) {\n\t\t\tfor(int y=y_max-change ; y <= y_max+change ; y++) {\n\t\t\t\tif(x>=0 && x<w.getX() && y>=0 && y<w.getY() ) {\n\t\t\t\t\tif(w.n.alti[x][y]==9)\n\t\t\t\t\t\tliquide[x][y]=10;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"private void assignTileColor() {\n boolean isLightTile = ((tileCoordinate + tileCoordinate / 8) % 2 == 0);\n setBackground(isLightTile ? LIGHT_TILE_COLOR : DARK_TILE_COLOR);\n }",
"private void unsafeSetInitialZoom() {\n if (hic.isInPearsonsMode()) {\n initialZoom = hic.getMatrix().getFirstPearsonZoomData(HiC.Unit.BP).getZoom();\n } else if (HiCFileTools.isAllChromosome(hic.getXContext().getChromosome())) {\n mainViewPanel.getResolutionSlider().setEnabled(false);\n initialZoom = hic.getMatrix().getFirstZoomData(HiC.Unit.BP).getZoom();\n } else {\n mainViewPanel.getResolutionSlider().setEnabled(true);\n\n HiC.Unit currentUnit = hic.getZoom().getUnit();\n\n List<HiCZoom> zooms = (currentUnit == HiC.Unit.BP ? hic.getDataset().getBpZooms() :\n hic.getDataset().getFragZooms());\n\n\n// Find right zoom level\n\n int pixels = mainViewPanel.getHeatmapPanel().getMinimumDimension();\n int len;\n if (currentUnit == HiC.Unit.BP) {\n len = (Math.max(hic.getXContext().getChrLength(), hic.getYContext().getChrLength()));\n } else {\n len = Math.max(hic.getDataset().getFragmentCounts().get(hic.getXContext().getChromosome().getName()),\n hic.getDataset().getFragmentCounts().get(hic.getYContext().getChromosome().getName()));\n }\n\n int maxNBins = pixels / HiCGlobals.BIN_PIXEL_WIDTH;\n int bp_bin = len / maxNBins;\n initialZoom = zooms.get(zooms.size() - 1);\n for (int z = 1; z < zooms.size(); z++) {\n if (zooms.get(z).getBinSize() < bp_bin) {\n initialZoom = zooms.get(z - 1);\n break;\n }\n }\n\n }\n hic.unsafeActuallySetZoomAndLocation(\"\", \"\", initialZoom, 0, 0, -1, true, HiC.ZoomCallType.INITIAL, true);\n }",
"private void setStartValues() {\n startValues = new float[9];\n mStartMatrix = new Matrix(getImageMatrix());\n mStartMatrix.getValues(startValues);\n calculatedMinScale = minScale * startValues[Matrix.MSCALE_X];\n calculatedMaxScale = maxScale * startValues[Matrix.MSCALE_X];\n }",
"public HeatedObjectScale() {\n colors = new java.awt.Color[256];\n colors[ 0] = new java.awt.Color(0, 0, 0);\n colors[ 1] = new java.awt.Color(35, 0, 0);\n colors[ 2] = new java.awt.Color(52, 0, 0);\n colors[ 3] = new java.awt.Color(60, 0, 0);\n colors[ 4] = new java.awt.Color(63, 1, 0);\n colors[ 5] = new java.awt.Color(64, 2, 0);\n colors[ 6] = new java.awt.Color(68, 5, 0);\n colors[ 7] = new java.awt.Color(69, 6, 0);\n colors[ 8] = new java.awt.Color(72, 8, 0);\n colors[ 9] = new java.awt.Color(74, 10, 0);\n colors[ 10] = new java.awt.Color(77, 12, 0);\n colors[ 11] = new java.awt.Color(78, 14, 0);\n colors[ 12] = new java.awt.Color(81, 16, 0);\n colors[ 13] = new java.awt.Color(83, 17, 0);\n colors[ 14] = new java.awt.Color(85, 19, 0);\n colors[ 15] = new java.awt.Color(86, 20, 0);\n colors[ 16] = new java.awt.Color(89, 22, 0);\n colors[ 17] = new java.awt.Color(91, 24, 0);\n colors[ 18] = new java.awt.Color(92, 25, 0);\n colors[ 19] = new java.awt.Color(94, 26, 0);\n colors[ 20] = new java.awt.Color(95, 28, 0);\n colors[ 21] = new java.awt.Color(98, 30, 0);\n colors[ 22] = new java.awt.Color(100, 31, 0);\n colors[ 23] = new java.awt.Color(102, 33, 0);\n colors[ 24] = new java.awt.Color(103, 34, 0);\n colors[ 25] = new java.awt.Color(105, 35, 0);\n colors[ 26] = new java.awt.Color(106, 36, 0);\n colors[ 27] = new java.awt.Color(108, 38, 0);\n colors[ 28] = new java.awt.Color(109, 39, 0);\n colors[ 29] = new java.awt.Color(111, 40, 0);\n colors[ 30] = new java.awt.Color(112, 42, 0);\n colors[ 31] = new java.awt.Color(114, 43, 0);\n colors[ 32] = new java.awt.Color(115, 44, 0);\n colors[ 33] = new java.awt.Color(117, 45, 0);\n colors[ 34] = new java.awt.Color(119, 47, 0);\n colors[ 35] = new java.awt.Color(119, 47, 0);\n colors[ 36] = new java.awt.Color(120, 48, 0);\n colors[ 37] = new java.awt.Color(122, 49, 0);\n colors[ 38] = new java.awt.Color(123, 51, 0);\n colors[ 39] = new java.awt.Color(125, 52, 0);\n colors[ 40] = new java.awt.Color(125, 52, 0);\n colors[ 41] = new java.awt.Color(126, 53, 0);\n colors[ 42] = new java.awt.Color(128, 54, 0);\n colors[ 43] = new java.awt.Color(129, 56, 0);\n colors[ 44] = new java.awt.Color(129, 56, 0);\n colors[ 45] = new java.awt.Color(131, 57, 0);\n colors[ 46] = new java.awt.Color(132, 58, 0);\n colors[ 47] = new java.awt.Color(134, 59, 0);\n colors[ 48] = new java.awt.Color(134, 59, 0);\n colors[ 49] = new java.awt.Color(136, 61, 0);\n colors[ 50] = new java.awt.Color(137, 62, 0);\n colors[ 51] = new java.awt.Color(137, 62, 0);\n colors[ 52] = new java.awt.Color(139, 63, 0);\n colors[ 53] = new java.awt.Color(139, 63, 0);\n colors[ 54] = new java.awt.Color(140, 65, 0);\n colors[ 55] = new java.awt.Color(142, 66, 0);\n colors[ 56] = new java.awt.Color(142, 66, 0);\n colors[ 57] = new java.awt.Color(143, 67, 0);\n colors[ 58] = new java.awt.Color(143, 67, 0);\n colors[ 59] = new java.awt.Color(145, 68, 0);\n colors[ 60] = new java.awt.Color(145, 68, 0);\n colors[ 61] = new java.awt.Color(146, 70, 0);\n colors[ 62] = new java.awt.Color(146, 70, 0);\n colors[ 63] = new java.awt.Color(148, 71, 0);\n colors[ 64] = new java.awt.Color(148, 71, 0);\n colors[ 65] = new java.awt.Color(149, 72, 0);\n colors[ 66] = new java.awt.Color(149, 72, 0);\n colors[ 67] = new java.awt.Color(151, 73, 0);\n colors[ 68] = new java.awt.Color(151, 73, 0);\n colors[ 69] = new java.awt.Color(153, 75, 0);\n colors[ 70] = new java.awt.Color(153, 75, 0);\n colors[ 71] = new java.awt.Color(154, 76, 0);\n colors[ 72] = new java.awt.Color(154, 76, 0);\n colors[ 73] = new java.awt.Color(154, 76, 0);\n colors[ 74] = new java.awt.Color(156, 77, 0);\n colors[ 75] = new java.awt.Color(156, 77, 0);\n colors[ 76] = new java.awt.Color(157, 79, 0);\n colors[ 77] = new java.awt.Color(157, 79, 0);\n colors[ 78] = new java.awt.Color(159, 80, 0);\n colors[ 79] = new java.awt.Color(159, 80, 0);\n colors[ 80] = new java.awt.Color(159, 80, 0);\n colors[ 81] = new java.awt.Color(160, 81, 0);\n colors[ 82] = new java.awt.Color(160, 81, 0);\n colors[ 83] = new java.awt.Color(162, 82, 0);\n colors[ 84] = new java.awt.Color(162, 82, 0);\n colors[ 85] = new java.awt.Color(163, 84, 0);\n colors[ 86] = new java.awt.Color(163, 84, 0);\n colors[ 87] = new java.awt.Color(165, 85, 0);\n colors[ 88] = new java.awt.Color(165, 85, 0);\n colors[ 89] = new java.awt.Color(166, 86, 0);\n colors[ 90] = new java.awt.Color(166, 86, 0);\n colors[ 91] = new java.awt.Color(166, 86, 0);\n colors[ 92] = new java.awt.Color(168, 87, 0);\n colors[ 93] = new java.awt.Color(168, 87, 0);\n colors[ 94] = new java.awt.Color(170, 89, 0);\n colors[ 95] = new java.awt.Color(170, 89, 0);\n colors[ 96] = new java.awt.Color(171, 90, 0);\n colors[ 97] = new java.awt.Color(171, 90, 0);\n colors[ 98] = new java.awt.Color(173, 91, 0);\n colors[ 99] = new java.awt.Color(173, 91, 0);\n colors[100] = new java.awt.Color(174, 93, 0);\n colors[101] = new java.awt.Color(174, 93, 0);\n colors[102] = new java.awt.Color(176, 94, 0);\n colors[103] = new java.awt.Color(176, 94, 0);\n colors[104] = new java.awt.Color(177, 95, 0);\n colors[105] = new java.awt.Color(177, 95, 0);\n colors[106] = new java.awt.Color(179, 96, 0);\n colors[107] = new java.awt.Color(179, 96, 0);\n colors[108] = new java.awt.Color(180, 98, 0);\n colors[109] = new java.awt.Color(182, 99, 0);\n colors[110] = new java.awt.Color(182, 99, 0);\n colors[111] = new java.awt.Color(183, 100, 0);\n colors[112] = new java.awt.Color(183, 100, 0);\n colors[113] = new java.awt.Color(185, 102, 0);\n colors[114] = new java.awt.Color(185, 102, 0);\n colors[115] = new java.awt.Color(187, 103, 0);\n colors[116] = new java.awt.Color(187, 103, 0);\n colors[117] = new java.awt.Color(188, 104, 0);\n colors[118] = new java.awt.Color(188, 104, 0);\n colors[119] = new java.awt.Color(190, 105, 0);\n colors[120] = new java.awt.Color(191, 107, 0);\n colors[121] = new java.awt.Color(191, 107, 0);\n colors[122] = new java.awt.Color(193, 108, 0);\n colors[123] = new java.awt.Color(193, 108, 0);\n colors[124] = new java.awt.Color(194, 109, 0);\n colors[125] = new java.awt.Color(196, 110, 0);\n colors[126] = new java.awt.Color(196, 110, 0);\n colors[127] = new java.awt.Color(197, 112, 0);\n colors[128] = new java.awt.Color(197, 112, 0);\n colors[129] = new java.awt.Color(199, 113, 0);\n colors[130] = new java.awt.Color(200, 114, 0);\n colors[131] = new java.awt.Color(200, 114, 0);\n colors[132] = new java.awt.Color(202, 116, 0);\n colors[133] = new java.awt.Color(202, 116, 0);\n colors[134] = new java.awt.Color(204, 117, 0);\n colors[135] = new java.awt.Color(205, 118, 0);\n colors[136] = new java.awt.Color(205, 118, 0);\n colors[137] = new java.awt.Color(207, 119, 0);\n colors[138] = new java.awt.Color(208, 121, 0);\n colors[139] = new java.awt.Color(208, 121, 0);\n colors[140] = new java.awt.Color(210, 122, 0);\n colors[141] = new java.awt.Color(211, 123, 0);\n colors[142] = new java.awt.Color(211, 123, 0);\n colors[143] = new java.awt.Color(213, 124, 0);\n colors[144] = new java.awt.Color(214, 126, 0);\n colors[145] = new java.awt.Color(214, 126, 0);\n colors[146] = new java.awt.Color(216, 127, 0);\n colors[147] = new java.awt.Color(217, 128, 0);\n colors[148] = new java.awt.Color(217, 128, 0);\n colors[149] = new java.awt.Color(219, 130, 0);\n colors[150] = new java.awt.Color(221, 131, 0);\n colors[151] = new java.awt.Color(221, 131, 0);\n colors[152] = new java.awt.Color(222, 132, 0);\n colors[153] = new java.awt.Color(224, 133, 0);\n colors[154] = new java.awt.Color(224, 133, 0);\n colors[155] = new java.awt.Color(225, 135, 0);\n colors[156] = new java.awt.Color(227, 136, 0);\n colors[157] = new java.awt.Color(227, 136, 0);\n colors[158] = new java.awt.Color(228, 137, 0);\n colors[159] = new java.awt.Color(230, 138, 0);\n colors[160] = new java.awt.Color(230, 138, 0);\n colors[161] = new java.awt.Color(231, 140, 0);\n colors[162] = new java.awt.Color(233, 141, 0);\n colors[163] = new java.awt.Color(233, 141, 0);\n colors[164] = new java.awt.Color(234, 142, 0);\n colors[165] = new java.awt.Color(236, 144, 0);\n colors[166] = new java.awt.Color(236, 144, 0);\n colors[167] = new java.awt.Color(238, 145, 0);\n colors[168] = new java.awt.Color(239, 146, 0);\n colors[169] = new java.awt.Color(241, 147, 0);\n colors[170] = new java.awt.Color(241, 147, 0);\n colors[171] = new java.awt.Color(242, 149, 0);\n colors[172] = new java.awt.Color(244, 150, 0);\n colors[173] = new java.awt.Color(244, 150, 0);\n colors[174] = new java.awt.Color(245, 151, 0);\n colors[175] = new java.awt.Color(247, 153, 0);\n colors[176] = new java.awt.Color(247, 153, 0);\n colors[177] = new java.awt.Color(248, 154, 0);\n colors[178] = new java.awt.Color(250, 155, 0);\n colors[179] = new java.awt.Color(251, 156, 0);\n colors[180] = new java.awt.Color(251, 156, 0);\n colors[181] = new java.awt.Color(253, 158, 0);\n colors[182] = new java.awt.Color(255, 159, 0);\n colors[183] = new java.awt.Color(255, 159, 0);\n colors[184] = new java.awt.Color(255, 160, 0);\n colors[185] = new java.awt.Color(255, 161, 0);\n colors[186] = new java.awt.Color(255, 163, 0);\n colors[187] = new java.awt.Color(255, 163, 0);\n colors[188] = new java.awt.Color(255, 164, 0);\n colors[189] = new java.awt.Color(255, 165, 0);\n colors[190] = new java.awt.Color(255, 167, 0);\n colors[191] = new java.awt.Color(255, 167, 0);\n colors[192] = new java.awt.Color(255, 168, 0);\n colors[193] = new java.awt.Color(255, 169, 0);\n colors[194] = new java.awt.Color(255, 169, 0);\n colors[195] = new java.awt.Color(255, 170, 0);\n colors[196] = new java.awt.Color(255, 172, 0);\n colors[197] = new java.awt.Color(255, 173, 0);\n colors[198] = new java.awt.Color(255, 173, 0);\n colors[199] = new java.awt.Color(255, 174, 0);\n colors[200] = new java.awt.Color(255, 175, 0);\n colors[201] = new java.awt.Color(255, 177, 0);\n colors[202] = new java.awt.Color(255, 178, 0);\n colors[203] = new java.awt.Color(255, 179, 0);\n colors[204] = new java.awt.Color(255, 181, 0);\n colors[205] = new java.awt.Color(255, 181, 0);\n colors[206] = new java.awt.Color(255, 182, 0);\n colors[207] = new java.awt.Color(255, 183, 0);\n colors[208] = new java.awt.Color(255, 184, 0);\n colors[209] = new java.awt.Color(255, 187, 7);\n colors[210] = new java.awt.Color(255, 188, 10);\n colors[211] = new java.awt.Color(255, 189, 14);\n colors[212] = new java.awt.Color(255, 191, 18);\n colors[213] = new java.awt.Color(255, 192, 21);\n colors[214] = new java.awt.Color(255, 193, 25);\n colors[215] = new java.awt.Color(255, 195, 29);\n colors[216] = new java.awt.Color(255, 197, 36);\n colors[217] = new java.awt.Color(255, 198, 40);\n colors[218] = new java.awt.Color(255, 200, 43);\n colors[219] = new java.awt.Color(255, 202, 51);\n colors[220] = new java.awt.Color(255, 204, 54);\n colors[221] = new java.awt.Color(255, 206, 61);\n colors[222] = new java.awt.Color(255, 207, 65);\n colors[223] = new java.awt.Color(255, 210, 72);\n colors[224] = new java.awt.Color(255, 211, 76);\n colors[225] = new java.awt.Color(255, 214, 83);\n colors[226] = new java.awt.Color(255, 216, 91);\n colors[227] = new java.awt.Color(255, 219, 98);\n colors[228] = new java.awt.Color(255, 221, 105);\n colors[229] = new java.awt.Color(255, 223, 109);\n colors[230] = new java.awt.Color(255, 225, 116);\n colors[231] = new java.awt.Color(255, 228, 123);\n colors[232] = new java.awt.Color(255, 232, 134);\n colors[233] = new java.awt.Color(255, 234, 142);\n colors[234] = new java.awt.Color(255, 237, 149);\n colors[235] = new java.awt.Color(255, 239, 156);\n colors[236] = new java.awt.Color(255, 240, 160);\n colors[237] = new java.awt.Color(255, 243, 167);\n colors[238] = new java.awt.Color(255, 246, 174);\n colors[239] = new java.awt.Color(255, 248, 182);\n colors[240] = new java.awt.Color(255, 249, 185);\n colors[241] = new java.awt.Color(255, 252, 193);\n colors[242] = new java.awt.Color(255, 253, 196);\n colors[243] = new java.awt.Color(255, 255, 204);\n colors[244] = new java.awt.Color(255, 255, 207);\n colors[245] = new java.awt.Color(255, 255, 211);\n colors[246] = new java.awt.Color(255, 255, 218);\n colors[247] = new java.awt.Color(255, 255, 222);\n colors[248] = new java.awt.Color(255, 255, 225);\n colors[249] = new java.awt.Color(255, 255, 229);\n colors[250] = new java.awt.Color(255, 255, 233);\n colors[251] = new java.awt.Color(255, 255, 236);\n colors[252] = new java.awt.Color(255, 255, 240);\n colors[253] = new java.awt.Color(255, 255, 244);\n colors[254] = new java.awt.Color(255, 255, 247);\n colors[255] = new java.awt.Color(255, 255, 255);\n }",
"public void setVariablesFromValue() {\n\t\tif (this.value < .05) {\n\t\t\tthis.diameter = 10;\n\t\t\t// White\n\t\t\tthis.r = 255;\n\t\t\tthis.g= 255;\n\t\t\tthis.b = 255;\n\t\t} else if (this.value < .2) {\n\t\t\tthis.diameter = 20;\n\t\t\t// Gold\n\t\t\tthis.r = 245;\n\t\t\tthis.g = 171;\n\t\t\tthis.b = 53;\n\t\t} else if (this.value < 1) {\n\t\t\tthis.diameter = 40;\n\t\t\t// Turquoise\n\t\t\tthis.r = 3;\n\t\t\tthis.g= 201;\n\t\t\tthis.b = 169;\n\t\t} else if (this.value < 2) {\n\t\t\tthis.diameter = 80;\n\t\t\t// Burgundy\n\t\t\tthis.r = 192;\n\t\t\tthis.g= 57;\n\t\t\tthis.b = 43;\n\t\t}else if (this.value < 5) {\n\t\t\tthis.diameter = 100;\n\t\t\t// Purple\n\t\t\tthis.r = 155;\n\t\t\tthis.g= 89;\n\t\t\tthis.b = 182;\n\t\t}else if (this.value < 20) {\n\t\t\tthis.diameter = 150;\n\t\t\t// Steel Blue\n\t\t\tthis.r = 75;\n\t\t\tthis.g= 119;\n\t\t\tthis.b = 190;\n\t\t}else {\n\t\t\tthis.diameter = 200;\n\t\t\t// Pink\n\t\t\tthis.r = 210;\n\t\t\tthis.g= 82;\n\t\t\tthis.b = 127;\n\t\t}\n\t}",
"private void setFullScaleAccelRange(byte range) {\n accelerometerCoef = getAccelerometerCoefficient(range);\n try {\n i2cDevice.writeRegByte(MPU6050_RA_ACCEL_CONFIG, range);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set accelerometer range\", e);\n }\n }",
"public static void setRange(int max) {\r\n\t\tColors.max = max;\r\n\t}",
"public void set_AllSpreadIndexToOne(){\r\n\t//test to see if the fuel moistures are greater than 33 percent.\r\n\t//if they are, set their index value to 1\r\n\tif ((FFM>33)){ // fine fuel greater than 33?\r\n\t\tGRASS=0; \r\n\t\tTIMBER=0;\r\n\t}else{\r\n\t\tTIMBER=1;\r\n\t}\r\n}",
"public GridColormap(double min, double max)\n {\n setMinMax(min, max);\n }",
"private void turnOffHeat(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_turnOffHeat\n\n this.selectedTrain.setHeat(0); // turn off heat\n this.operatingLogbook.add(\"Turned off heat\");\n this.printOperatingLogs();\n }",
"private void setInitialPanAndZoom() {\r\n\t\tif (this.largestDimension == Dimensions.HORIZONTAL) {\r\n\t\t\tif (this.numHexCol <= 20) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.94);\r\n\t\t\t} else if (this.numHexCol <= 40) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.48);\r\n\t\t\t\tthis.zoomer.setPanOffset(-160, -160);\r\n\t\t\t} else if (this.numHexCol <= 60) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.32);\r\n\t\t\t\tthis.zoomer.setPanOffset(-220, -220);\r\n\t\t\t} else if (this.numHexCol <= 80) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.24);\r\n\t\t\t\tthis.zoomer.setPanOffset(-250, -250);\r\n\t\t\t} else if (this.numHexCol <= 100) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.19);\r\n\t\t\t\tthis.zoomer.setPanOffset(-270, -270);\r\n\t\t\t} else if (this.numHexCol <= 120) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.16);\r\n\t\t\t\tthis.zoomer.setPanOffset(-280, -280);\r\n\t\t\t} else if (this.numHexCol <= 140) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.14);\r\n\t\t\t\tthis.zoomer.setPanOffset(-290, -290);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.numHexRow <= 20) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.94);\r\n\t\t\t} else if (this.numHexRow <= 40) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.48);\r\n\t\t\t\tthis.zoomer.setPanOffset(-160, -160);\r\n\t\t\t} else if (this.numHexRow <= 60) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.32);\r\n\t\t\t\tthis.zoomer.setPanOffset(-220, -220);\r\n\t\t\t} else if (this.numHexRow <= 80) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.24);\r\n\t\t\t\tthis.zoomer.setPanOffset(-250, -250);\r\n\t\t\t} else if (this.numHexRow <= 100) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.19);\r\n\t\t\t\tthis.zoomer.setPanOffset(-270, -270);\r\n\t\t\t} else if (this.numHexRow <= 120) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.16);\r\n\t\t\t\tthis.zoomer.setPanOffset(-280, -280);\r\n\t\t\t} else if (this.numHexRow <= 140) {\r\n\t\t\t\tthis.zoomer.setZoomScale(0.14);\r\n\t\t\t\tthis.zoomer.setPanOffset(-290, -290);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setPersonal_4_HalfGaugeMeter() \n\t{\n\t\tbgColor = METER_SCALE_COLOR;\n\t}",
"private void optimiseWaterHeatProfileWithSpreading()\n\t{\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"== OptimiseWaterHeatProfile for a \" + this.owner.getAgentID() + \" ==\");\n\t\t}\n\n\t\tdouble[] baseArray = ArrayUtils.multiply(this.hotWaterVolumeDemandProfile, Consts.WATER_SPECIFIC_HEAT_CAPACITY\n\t\t\t\t/ Consts.KWH_TO_JOULE_CONVERSION_FACTOR * (this.owner.waterSetPoint - ArrayUtils.min(Consts.MONTHLY_MAINS_WATER_TEMP))\n\t\t\t\t/ Consts.DOMESTIC_HEAT_PUMP_WATER_COP);\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"hotWaterVolumeDemandProfile: \" + Arrays.toString(this.hotWaterVolumeDemandProfile));\n\t\t}\n\n\t\tthis.waterHeatDemandProfile = Arrays.copyOf(baseArray, baseArray.length);\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"waterHeatDemandProfile: \" + Arrays.toString(this.waterHeatDemandProfile));\n\t\t}\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"spreadWaterDemand(baseArray) : \" + Arrays.toString(this.spreadWaterDemand(baseArray)));\n\t\t}\n\n\t\tdouble[] totalHeatDemand = ArrayUtils.add(this.heatPumpDemandProfile, this.spreadWaterDemand(baseArray));\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"totalHeatDemand: \" + Arrays.toString(totalHeatDemand));\n\t\t}\n\n\t\tdouble currCost = this.evaluateCost(totalHeatDemand);\n\t\tdouble[] tempArray = Arrays.copyOf(baseArray, baseArray.length);\n\n\t\tfor (int i = 0; i < baseArray.length; i++)\n\t\t{\n\t\t\tif (baseArray[i] > 0)\n\t\t\t{\n\t\t\t\tdouble extraHeatRequired = 0;\n\t\t\t\tfor (int j = i - 1; j >= 0; j--)\n\t\t\t\t{\n\t\t\t\t\t//TODO - this needs a better (exponential) model, temp loss per second should be improved.\n\t\t\t\t\textraHeatRequired += (Consts.WATER_TEMP_LOSS_PER_SECOND * ((double) Consts.SECONDS_PER_DAY / this.ticksPerDay))\n\t\t\t\t\t\t\t* this.hotWaterVolumeDemandProfile[i]\n\t\t\t\t\t\t\t* (Consts.WATER_SPECIFIC_HEAT_CAPACITY / Consts.KWH_TO_JOULE_CONVERSION_FACTOR)\n\t\t\t\t\t\t\t/ Consts.DOMESTIC_HEAT_PUMP_WATER_COP;\n\t\t\t\t\ttempArray[j] += baseArray[i] + extraHeatRequired;\n\t\t\t\t\ttempArray[j + 1] = 0;\n\t\t\t\t\ttotalHeatDemand = ArrayUtils.add(this.heatPumpDemandProfile, this.spreadWaterDemand(tempArray));\n\t\t\t\t\tdouble newCost = this.evaluateCost(totalHeatDemand);\n\t\t\t\t\tif (newCost < currCost)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.waterHeatDemandProfile = ArrayUtils.add(totalHeatDemand, ArrayUtils.negate(this.heatPumpDemandProfile));\n\t\t\t\t\t\tcurrCost = newCost;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setToGrassState() {\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.ToPlaceTower) {\n cells.set(i, CellState.Grass);\n }\n }\n }",
"public void setColor(double value) {\r\n\t\tif (value < 0) {\r\n\t\t\tpg.fill(140+(int)(100*(-value)), 0, 0);\r\n\t\t} else {\r\n\t\t\tpg.fill(0, 140+(int)(100*(value)), 0);\r\n\t\t}\r\n\t}",
"void setRed(int x, int y, int value);",
"public void speckle() {\n\t\tint r = (height / res) - 1;\n\t\tint c = (width / res);\n\t\tfor (int i = 0; i < c; i++)\t\t{\n\t\t\tint x = rng.nextInt(25);\t\t\t\n\t\t\tif (x == 0) { // 1/25 chance of changing bottom row pixel to black\t \n\t\t\t\tvalues[r][i] = color1;\t\t\t\t\n\t\t\t}\n\t\t\telse if (x == 1) { // 1/25 chance of changing bottom row pixel to white\n\t\t\t\tvalues[r][i] = color2;\n\t\t\t}\n\t\t\t// 23/25 chance of leaving bottom pixel alone\n\t\t}\n\t}",
"public void rangeHSV(int min, int number, int h, int s, int v) {\n int max = min + number;\n\n for (int i = min; i < (max); i++) {\n m_ledBuffer.setHSV(i, h, s, v);\n }\n\n m_led.setData(m_ledBuffer);\n }",
"void setGreen(int x, int y, int value);",
"public void set(int min, int max, double score){\r\n\t\tchart[min][max] = score;\r\n\t}",
"public void setDimensionsPowerUp() {\n if (this.hasPowerUp()) {\n randomPowerUp.setOwnerBlock(this);\n randomPowerUp.setProperties();\n }\n }",
"protected void tickHue(){\r\n if(rUP){\r\n R++;\r\n if(R>=maxR) rUP = false;\r\n }else{\r\n R--;\r\n if(R<=minR) rUP = true;\r\n }\r\n if(gUP){\r\n G++;\r\n if(G>=maxG) gUP = false;\r\n }else{\r\n G--;\r\n if(G<=minG) gUP = true;\r\n }\r\n if(bUP){\r\n B++;\r\n if(B>=maxB) bUP = false;\r\n }else{\r\n B--;\r\n if(B<=minB) bUP = true;\r\n }\r\n \r\n }",
"public void set_AllSpreadIndexToZero(){\r\n\tGRASS=0; \r\n\tTIMBER=0;\r\n}",
"private void setCell(int x, int y, int newValue) {\n hiddenGrid[x][y] = newValue;\n }",
"@Override\n\tpublic void setIntensity(double intensity) {\n\n\t}",
"public void ResetColorGradient_ds1() {\r\n\t\tdouble min;\r\n\t\tdouble max;\r\n\t\tdouble median;\r\n\r\n\t\tswitch(transformation) {\r\n\t\t\tcase ROWNORM:\r\n\t\t\t\tmin = minExpression_rownorm_ds1;\r\n\t\t\t\tmax = maxExpression_rownorm_ds1;\r\n\r\n\t\t\t\t//if both row normalization values are zero, can't perform row normalization\r\n\t\t\t\t//issue warning\r\n\t\t\t\t//This happens when there is only one data column in the dataset (or if it is rank file)\r\n\t\t\t\tif((min == 0) && (max == 0)) {\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(Cytoscape.getDesktop(),\"Row normalization does not work with only one data column per dataset.\",\"Row normalization error\",JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\tmax = Math.max(Math.abs(min), max);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase LOGTRANSFORM:\r\n\r\n\t\t\t\t//can't take a log of a negative number\r\n\t\t\t\t//if both the max and min are negative then log tranform won't work.\r\n\t\t\t\t//issue a warning.\r\n\t\t\t\tif((minExpression_ds1 <= 0) && (maxExpression_ds1 <= 0)) {\r\n\t\t\t\t\t//both the max and min are probably negative values\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(Cytoscape.getDesktop(),\"Both the max and min expression are negative, log of negative numbers is not valid\", \"log normalization error\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\tmin = 0;\r\n\t\t\t\t\tmax = 0;\r\n\t\t\t\t}\r\n\t\t\t\t//if min expression is negative then use the max expression as the max\r\n\t\t\t\telse if(minExpression_ds1 <= 0) {\r\n\t\t\t\t\tmin = Math.min(Math.log(closestToZeroExpression_ds1), Math.log1p(maxExpression_ds1));\r\n\t\t\t\t\tmax = Math.max(Math.log(closestToZeroExpression_ds1), Math.log1p(maxExpression_ds1));\r\n\t\t\t\t}\r\n\t\t\t\t//if the max expression is negative then use the min expression as the max (should never happen!)\r\n\t\t\t\telse if(maxExpression_ds1 <= 0) {\r\n\t\t\t\t\tmin = 0;\r\n\t\t\t\t\tmax = Math.log1p(minExpression_ds1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmin = Math.log1p(minExpression_ds1);\r\n\t\t\t\t\tmax = Math.log1p(maxExpression_ds1);\r\n\t\t\t\t\tmax = Math.max(Math.abs(min), max);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ASIS:\r\n\t\t\tdefault:\r\n\t\t\t\tmin = minExpression_ds1;\r\n\t\t\t\tmax = Math.max(Math.abs(minExpression_ds1), maxExpression_ds1);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tmedian = max / 2;\r\n\t\tif(min >= 0) {\r\n\t\t\tmedian = max / 2;\r\n\t\t\trange_ds1 = ColorGradientRange.getInstance(0, median, median, max, 0, median, median, max);\r\n\t\t\ttheme_ds1 = ColorGradientTheme.GREEN_ONECOLOR_GRADIENT_THEME;\r\n\t\t} else {\r\n\t\t\tmedian = 0;\r\n\t\t\trange_ds1 = ColorGradientRange.getInstance(-max, 0, 0, max, -max, 0, 0, max);\r\n\t\t\ttheme_ds1 = ColorGradientTheme.GREEN_MAGENTA_GRADIENT_THEME;\r\n\t\t}\r\n\r\n\t}",
"public void setHigh(double value){high = value;}",
"void update(double temperature, double maxTemperature, double minTemperature, int humidity);",
"private double scaleHeatrate(double loadperc) {\n if (loadperc >= 0 && loadperc < 0.25 ) {\r\n return heatrate *= 1.3;\r\n }\r\n else if (loadperc >= 0.25 && loadperc < 0.5 ) {\r\n return heatrate *= 1.2;\r\n }\r\n else if (loadperc >= 0.5 && loadperc < 0.75 ) {\r\n return heatrate *= 1.1;\r\n }\r\n else {\r\n return heatrate;\r\n }\r\n }",
"void setBlue(int x, int y, int value);",
"private void setHealth() {\n eliteMob.setHealth(maxHealth = (maxHealth > 2000) ? 2000 : maxHealth);\n }",
"void deriveImage()\n\t{\n\n\t\t//img = new BufferedImage(dimx, dimy, BufferedImage.TYPE_INT_ARGB);\n\t\timg = null;\n\t\ttry{\n\t\t\timg = ImageIO.read(new File(\"src/input/World.png\"));\n\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"world image file error\");\n\t\t}\n\t\t//System.out.println(img.getHeight());\n\t\t//System.out.println(img.getWidth());\n//\t\tfloat maxh = -10000.0f, minh = 10000.0f;\n//\n//\t\t// determine range of tempVals s\n//\t\tfor(int x=0; x < dimx; x++)\n//\t\t\tfor(int y=0; y < dimy; y++) {\n//\t\t\t\tfloat h = tempVals [x][y];\n//\t\t\t\tif(h > maxh)\n//\t\t\t\t\tmaxh = h;\n//\t\t\t\tif(h < minh)\n//\t\t\t\t\tminh = h;\n//\t\t\t}\n\t\t\n\t\tfor(int x=0; x < dimx; x++)\n\t\t\tfor(int y=0; y < dimy; y++) {\n\t\t\t\t \t\n\t\t\t\t// find normalized tempVals value in range\n\t\t\t\t//float val = (tempVals [x][y] - minh) / (maxh - minh);\n\t\t\t\tfloat val = tempVals[x][y];\n\n\t\t\t\t//System.out.println(val);\n\n\t\t\t\tColor c = new Color(img.getRGB(x,y));\n\n\t\t\t\tif((c.getRed() > 50 && c.getGreen() > 100 && c.getBlue() < 200)) {\n\n\t\t\t\t\tif (val != 0.0f) {\n\t\t\t\t\t\tColor col = new Color(val, 0, 0);\n\t\t\t\t\t\timg.setRGB(x, y, col.getRGB());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\t\n\t}",
"private void updateImageScale() {\r\n\t\t//Check which dimension is larger and store it in this variable.\r\n\t\tint numHexLargestDimension = this.numHexRow;\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tnumHexLargestDimension = this.numHexCol;\r\n\t\t}\r\n\t\t\r\n\t\tif (numHexLargestDimension < 35) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 16.5) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 7){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 70) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 22.2) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() \r\n\t\t\t\t\t* (this.numHexCol / 2) > 14.5){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 105) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 32.6) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 21){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 44.4) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 28){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void performSetTo(Temperature t, double reading, char scale) {\n if (scale == CEL_SCALE_CODE) { \n System.out.printf(\"Calling setTo(%f,true)\\n\", reading);\n t.setTo(reading, true); \n }\n else if (scale == FAH_SCALE_CODE) { \n System.out.printf(\"Calling setTo(%f,false)\\n\", reading);\n t.setTo(reading, false);\n }\n else {\n System.out.printf(\"Calling setTo(%f)\\n\", reading);\n t.setTo(reading);\n }\n }",
"public void setColorRange(Color color, \r\n\t\t\t\t\t\t\t int minPercentValue, int maxPercentValue) {\r\n\r\n\t\tint minBarIndex = round(meterGranularity * minPercentValue);\r\n\t\tint maxBarIndex = round(meterGranularity * maxPercentValue);\r\n\r\n\t\tfor (int index=Math.max(minBarIndex - 1, 0); index < maxBarIndex; index++) {\r\n\t\t\tint barOffset = (numberOfSections - 1) - index;\r\n\t\t\tbarColors[barOffset] = color;\r\n\t\t}\r\n\t}",
"public void setXDataRange(float min, float max);",
"private void configurePlot() {\n // Get background color from Theme\n TypedValue typedValue = new TypedValue();\n activity.getTheme().resolveAttribute(android.R.attr.windowBackground, typedValue, true);\n int backgroundColor = typedValue.data;\n // Set background colors\n heartRatePlot.setPlotMargins(0, 0, 0, 0);\n heartRatePlot.getBorderPaint().setColor(backgroundColor);\n heartRatePlot.getBackgroundPaint().setColor(backgroundColor);\n heartRatePlot.getGraph().getBackgroundPaint().setColor(backgroundColor);\n heartRatePlot.getGraph().getGridBackgroundPaint().setColor(backgroundColor);\n // Set the grid color\n heartRatePlot.getGraph().getRangeGridLinePaint().setColor(Color.DKGRAY);\n heartRatePlot.getGraph().getDomainGridLinePaint().setColor(Color.DKGRAY);\n // Set the origin axes colors\n heartRatePlot.getGraph().getRangeOriginLinePaint().setColor(Color.DKGRAY);\n heartRatePlot.getGraph().getDomainOriginLinePaint().setColor(Color.DKGRAY);\n // Set the XY axis boundaries and step values\n heartRatePlot.setRangeBoundaries(MIN_HR, MAX_HR, BoundaryMode.FIXED); heartRatePlot.setDomainBoundaries(0, NUMBER_OF_POINTS - 1, BoundaryMode.FIXED);\n heartRatePlot.setRangeStepValue(9); // 9 values 40 60 ... 200\n heartRatePlot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.LEFT).setFormat(new DecimalFormat(\"#\"));\n heartRatePlot.getLegend().setVisible(false);\n // This line is to force the Axis to be integer\n heartRatePlot.setRangeLabel(\"Heart rate (bpm)\");\n }",
"private void newPowerUp() {\r\n int row = 0;\r\n int column = 0;\r\n do {\r\n row = Numbers.random(0,maxRows-1);\r\n column = Numbers.random(0,maxColumns-1);\r\n } while(isInSnake(row,column,false));\r\n powerUp = new Location(row,column,STOP);\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }",
"public void set(int arg0, int arg1, double arg2) {\n\t\tif (Math.max(0, arg1 - hbw_) <= arg0 && arg0 <= arg1)\n\t\t\tmat_[arg0][arg1 - arg0] = arg2;\n\t}",
"public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}",
"public void setSightRange(int n){\n\tsightRange = n;\n }",
"@Override\n public int getHeatCapacity() {\n return getHeatCapacity(true);\n }",
"SettingsScreenClass(Dimension dim){\r\n cursorRow=0;\r\n counter=0;\r\n endPart=false;\r\n initSprites();\r\n setImage(dim.width,dim.height);\r\n fadeAmount=12;\r\n for(int i=0;i<12;i++){\r\n fadeColors[i]=new Color(0,0,0,(i)*20);\r\n }\r\n }",
"public void setHealthScaling(int healthScaling)\r\n {\r\n this.mHealthScaling = healthScaling;\r\n }",
"public void update() {\n\t\t//Start updting the image\n\t\timg.loadPixels();\n\t\t\n\t\t//for every cell apply a color\n\t\tGridCell[] cells = grid.getCells();\n\t\tfor(int i = 0 ; i < cells.length; i++) {\n\t\t\timg.pixels[i] = cells[i].getMiniMapColor(ignoreDiscovered);\n\t\t}\n\t\t\n\t\t//Now update the image\n\t\timg.updatePixels();\n\t}",
"static void resetMiniCalib() {\n\n maxX--;\n minX++;\n\n //maxY = 0;\n //minY = SCREEN_HEIGHT;\n maxY--;\n minY++;\n\n if (minY > maxY) {\n maxY += 1;\n minY -= 1;\n }\n\n if (minX > maxX) {\n maxX += 1;\n minX -= 1;\n }\n\n cX = (minX + maxX) / 2;\n cY = (minY + maxY) / 2;\n\n runMiniCalib();\n\n }",
"public void setRange(Range range) { setRange(range, true, true); }",
"private void resetFValue(){\r\n int length = _map.get_mapSize();\r\n for(int i=0;i<length;i++){\r\n _map.get_grid(i).set_Fnum(10000);\r\n }\r\n }",
"public void actionPerformed(ActionEvent e)\n {\n if(y >= 550) //if the beaker is not filled\n {\n lab7.setBounds(510,y,230,60); \n lab7.setVisible(true); //displays purple bar image\n value += 29; //point value of purple\n y -= 60; //sets up to fill first half of beaker\n }\n else\n {\n //if beaker is full resets value and y coordinate\n y = 610;\n value = 0;\n }\n \n }",
"public void actionPerformed(ActionEvent e)\n {\n if(y >= 550) //if the beaker is not filled\n {\n lab6.setBounds(510,y,230,60); \n lab6.setVisible(true); //displays blue bar image\n value += 5; //point value of blue\n y -= 60; //sets up to fill first half of beaker\n }\n else\n {\n //if beaker is full resets value and y coordinate\n y = 610;\n value = 0;\n }\n \n }",
"void setDimmer(int channel, int value) {\n\t\tint valueToSet;\n\t\tif (value < 2) {\n\t\t\tvalueToSet = 2;\n\t\t} else {\n\t\t\tvalueToSet = value;\n\t\t}\n\t\tString channelHex = channelAsHex(channel);\n\t\tString valueHex = StringUtils.leftPad(Integer.toHexString(valueToSet),\n\t\t\t\t2, \"0\");\n\t\tsendCommand(\"*C901\" + channelHex + valueHex + \"#\");\n\t}",
"public void setIntensity (short[][] intensity)\r\n {\r\n\tthis.intensity = intensity;\r\n }",
"void setScale(ScaleSelector sensor, int scaleNo);",
"public void ResetColorGradient_ds2() {\r\n\t\tdouble min;\r\n\t\tdouble max;\r\n\t\tdouble median;\r\n\r\n\t\tswitch(transformation) {\r\n\t\t\tcase ROWNORM:\r\n\t\t\t\tmin = minExpression_rownorm_ds2;\r\n\t\t\t\tmax = maxExpression_rownorm_ds2;\r\n\r\n\t\t\t\t//if both row normalization values are zero, can't perform row normalization\r\n\t\t\t\t//issue warning\r\n\t\t\t\t//This happens when there is only one data column in the dataset (or if it is rank file)\r\n\t\t\t\tif((min == 0) && (max == 0)) {\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(Cytoscape.getDesktop(),\"Row normalization does not work with only one data column per dataset.\",\"Row normalization error\",JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\tmax = Math.max(Math.abs(min), max);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase LOGTRANSFORM:\r\n\r\n\t\t\t\t//can't take a log of a negative number\r\n\t\t\t\t//if both the max and min are negative then log tranform won't work.\r\n\t\t\t\t//issue a warning.\r\n\t\t\t\tif((minExpression_ds2 <= 0) && (maxExpression_ds2 <= 0)) {\r\n\t\t\t\t\t//both the max and min are probably negative values\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(Cytoscape.getDesktop(),\"Both the max and min expression are negative, log of negative numbers is not valid\", \"log normalization error\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\tmin = 0;\r\n\t\t\t\t\tmax = 0;\r\n\t\t\t\t}\r\n\t\t\t\t//if min expression is negative then use the max expression as the max\r\n\t\t\t\telse if(minExpression_ds2 <= 0) {\r\n\t\t\t\t\tmin = Math.min(Math.log(closestToZeroExpression_ds2), Math.log1p(maxExpression_ds2));\r\n\t\t\t\t\tmax = Math.max(Math.log(closestToZeroExpression_ds2), Math.log1p(maxExpression_ds2));\r\n\t\t\t\t}\r\n\t\t\t\t//if the max expression is negative then use the min expression as the max (should never happen!)\r\n\t\t\t\telse if(maxExpression_ds2 <= 0) {\r\n\t\t\t\t\tmin = 0;\r\n\t\t\t\t\tmax = Math.log1p(minExpression_ds2);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmin = Math.log1p(minExpression_ds2);\r\n\t\t\t\t\tmax = Math.log1p(maxExpression_ds2);\r\n\t\t\t\t\tmax = Math.max(Math.abs(min), max);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase ASIS:\r\n\t\t\tdefault:\r\n\t\t\t\tmin = minExpression_ds2;\r\n\t\t\t\tmax = Math.max(Math.abs(minExpression_ds2), maxExpression_ds2);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tmedian = max / 2;\r\n\t\tif(min >= 0) {\r\n\t\t\tmedian = max / 2;\r\n\t\t\trange_ds2 = ColorGradientRange.getInstance(0, median, median, max, 0, median, median, max);\r\n\t\t\ttheme_ds2 = ColorGradientTheme.GREEN_ONECOLOR_GRADIENT_THEME;\r\n\t\t} else {\r\n\t\t\tmedian = 0;\r\n\t\t\trange_ds2 = ColorGradientRange.getInstance(-max, 0, 0, max, -max, 0, 0, max);\r\n\t\t\ttheme_ds2 = ColorGradientTheme.GREEN_MAGENTA_GRADIENT_THEME;\r\n\t\t}\r\n\r\n\t}",
"public void setMaximumAir ( int ticks ) {\n\t\texecute ( handle -> handle.setMaximumAir ( ticks ) );\n\t}",
"public void lowerFuelCell() {\n FuelCell.fuelCellFlipSol = false;\n raiseHopper.set(false);\n lowerHopper.set(true);\n }",
"public void resetDamagedRange() {\r\n fDamagedRange[0] = Integer.MAX_VALUE;\r\n fDamagedRange[1] = Integer.MIN_VALUE;\r\n }",
"void setMinActiveAltitude(double minActiveAltitude);",
"public abstract void setRange(double value, int start, int count);",
"public void generateAntHill(int x, int y, String colour) {\n for (int i = 0; i < 11; i++) {\n if (colour.equals(\"red\")) {\n worldGrid[x*130+y+i].setType(Cell.Type.REDANTHILL);\n } else {\n worldGrid[x*130+y+i].setType(Cell.Type.BLACKANTHILL);\n }\n }\n \n // Next change the two rows above and below the centre\n for (int i = 0; i < 10; i++) {\n if (colour.equals(\"red\")) {\n worldGrid[(x+1)*130+y+1+i].setType(Cell.Type.REDANTHILL);\n worldGrid[(x-1)*130+y+1+i].setType(Cell.Type.REDANTHILL);\n } else {\n worldGrid[(x+1)*130+y+1+i].setType(Cell.Type.BLACKANTHILL);\n worldGrid[(x-1)*130+y+1+i].setType(Cell.Type.BLACKANTHILL);\n }\n }\n \n // Next rows inset by one on the right\n for (int i = 0; i < 9; i++) {\n if (colour.equals(\"red\")) {\n worldGrid[(x+2)*130+y+1+i].setType(Cell.Type.REDANTHILL);\n worldGrid[(x-2)*130+y+1+i].setType(Cell.Type.REDANTHILL);\n } else {\n worldGrid[(x+2)*130+y+1+i].setType(Cell.Type.BLACKANTHILL);\n worldGrid[(x-2)*130+y+1+i].setType(Cell.Type.BLACKANTHILL);\n }\n }\n \n // Next Row inset by one more on the left none on the right\n for (int i = 0; i < 8; i++) {\n if (colour.equals(\"red\")) {\n worldGrid[(x+3)*130+y+2+i].setType(Cell.Type.REDANTHILL);\n worldGrid[(x-3)*130+y+2+i].setType(Cell.Type.REDANTHILL);\n } else {\n worldGrid[(x+3)*130+y+2+i].setType(Cell.Type.BLACKANTHILL);\n worldGrid[(x-3)*130+y+2+i].setType(Cell.Type.BLACKANTHILL);\n }\n }\n \n // Next Row inset by one more on the right and none on the left\n for (int i = 0; i < 7; i++) {\n if (colour.equals(\"red\")) {\n worldGrid[(x+4)*130+y+2+i].setType(Cell.Type.REDANTHILL);\n worldGrid[(x-4)*130+y+2+i].setType(Cell.Type.REDANTHILL);\n } else {\n worldGrid[(x+4)*130+y+2+i].setType(Cell.Type.BLACKANTHILL);\n worldGrid[(x-4)*130+y+2+i].setType(Cell.Type.BLACKANTHILL);\n }\n }\n \n // Next Row inset by one more on the left and none on the right\n for (int i = 0; i < 6; i++) {\n if (colour.equals(\"red\")) {\n worldGrid[(x+5)*130+y+3+i].setType(Cell.Type.REDANTHILL);\n worldGrid[(x-5)*130+y+3+i].setType(Cell.Type.REDANTHILL);\n } else {\n worldGrid[(x+5)*130+y+3+i].setType(Cell.Type.BLACKANTHILL);\n worldGrid[(x-5)*130+y+3+i].setType(Cell.Type.BLACKANTHILL);\n }\n }\n }",
"public void actionPerformed(ActionEvent e)\n {\n if(y >= 550) //if the beaker is not filled\n {\n lab4.setBounds(510,y,230,60); \n lab4.setVisible(true); //displays yellow bar image\n value += 82; //point value of yellow\n y -= 60; //sets up to fill first half of beaker\n }\n else\n {\n //if beaker is full resets value and y coordinate\n y = 610; \n value = 0;\n } \n }",
"private void reset(double[][] distTo) {\n /**\n *reset all the values to maxvalue.\n */\n for (int i = 0; i < distTo.length; i++) {\n for (int j = 0; j < distTo[i].length; j++) {\n distTo[i][j] = Double.MAX_VALUE;\n }\n }\n }",
"public void reset() {\n xmin = Float.MAX_VALUE;\n xmax = -Float.MAX_VALUE;\n ymin = Float.MAX_VALUE;\n ymax = -Float.MAX_VALUE;\n zmin = Float.MAX_VALUE;\n zmax = -Float.MAX_VALUE;\n }",
"public void setH(Double h);",
"public void actionPerformed(ActionEvent e)\n {\n if(y >= 550) //if the beaker is not filled\n {\n lab5.setBounds(510,y,230,60); \n lab5.setVisible(true); //displays green bar image\n value += 76; //point value of green\n y -= 60; //sets up to fill first half of beaker\n }\n else\n {\n //if beaker is full resets value and y coordinate\n y = 610; \n value = 0;\n }\n \n }",
"static void set_bnd ( int N, int b, double[] x )\r\n{\nint i;\r\nfor ( i=1 ; i<=N ; i++ ) {\r\nx[getIndex(0 ,i)] = b==1 ? -x[getIndex(1,i)] : x[getIndex(1,i)];\r\nx[getIndex(N+1,i)] = b==1 ? -x[getIndex(N,i)] : x[getIndex(N,i)];\r\nx[getIndex(i,0 )] = b==2 ? -x[getIndex(i,1)] : x[getIndex(i,1)];\r\nx[getIndex(i,N+1)] = b==2 ? -x[getIndex(i,N)] : x[getIndex(i,N)];\r\n}\r\nx[getIndex(0 ,0 )] = 0.5f*(x[getIndex(1,0 )]+x[getIndex(0 ,1)]);\r\nx[getIndex(0 ,N+1)] = 0.5f*(x[getIndex(1,N+1)]+x[getIndex(0 ,N )]);\r\nx[getIndex(N+1,0 )] = 0.5f*(x[getIndex(N,0 )]+x[getIndex(N+1,1)]);\r\nx[getIndex(N+1,N+1)] = 0.5f*(x[getIndex(N,N+1)]+x[getIndex(N+1,N )]);\r\n\r\n//System.out.println(\"dopo\");\r\n//draw_dens ( N, x );\r\n}",
"private void setNorms (double temperatureX, double temperatureY) {\n \t\tvNormX = Math.sqrt(2 * k * temperatureX / 0.5);\n \t\tvNormY = Math.sqrt(2 * k * temperatureY / 0.5);\n \t}",
"public void updateCelcius(){\n tempInC = ( (tempInF - 32)/9 ) * 5;\n }",
"protected void setStateToLowestEnergy() {\n\tpoints = bestEverPoints;\n\n\t// make a copy of the best points\n\tbestEverPoints = getPoints();\n\n\tbuildEnergyMatrix();\n\tstateEnergy();\n }",
"private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }",
"@Override public void setMinMax(float minValue, float maxValue) {\n this.valueTrack.min = minValue; this.valueTrack.max = maxValue;\n }",
"public void fillWith ( float value)\n {\n for (int i = 0; i < getDimX(); i++) {\n for (int y = 0; y < getDimY(); y++) {\n m_grid[i][y] = value;\n }\n }\n }",
"public void setAutoRange() {\n this.customAxis=false;\n addGraphPanel();\n }",
"protected abstract void setCell(int x, int y, boolean state);",
"protected abstract double setCell(\r\n int row,\r\n int col,\r\n double valueToSet);",
"private void automaticModeChecks(){\n // turn on lights if underground\n if (this.isUnderground()){ this.selectedTrain.setLights(1);}\n // set heat\n if (this.selectedTrain.getTemp() <= 40.0){this.selectedTrain.setThermostat(60.0);}\n else if (this.selectedTrain.getTemp() >= 80){ this.selectedTrain.setThermostat(50.0);}\n }",
"public void setSpaceAt(int x, int y, int val){\n grids[x][y].setValue(val);\n }",
"protected abstract void setTile( int tile, int x, int y );",
"public void\nsetEmissiveElt( SbColor color )\n\n{\n coinstate.emissive.copyFrom(color);\n}",
"public void setLayerRange(Range range) {\r\n\t\tlayerRange = new Range(range);\r\n\t}"
]
| [
"0.6311158",
"0.5999153",
"0.5992468",
"0.5977254",
"0.5921433",
"0.58645564",
"0.58066285",
"0.5705796",
"0.5673352",
"0.56402683",
"0.55935776",
"0.5548933",
"0.5542909",
"0.54632187",
"0.54536897",
"0.54471695",
"0.5418976",
"0.53796315",
"0.5374509",
"0.5371082",
"0.5330577",
"0.52960974",
"0.52848804",
"0.52789456",
"0.5275421",
"0.5272469",
"0.52636486",
"0.5262884",
"0.5234498",
"0.5217198",
"0.52164143",
"0.5204626",
"0.51986724",
"0.51982594",
"0.511947",
"0.5101933",
"0.51016474",
"0.51001894",
"0.50914186",
"0.5069159",
"0.5059842",
"0.5057061",
"0.5047836",
"0.5030366",
"0.5028802",
"0.5026359",
"0.50217235",
"0.5017219",
"0.5010467",
"0.50048524",
"0.5004609",
"0.5003693",
"0.49686995",
"0.49678186",
"0.49632975",
"0.49574348",
"0.495473",
"0.49526584",
"0.49419537",
"0.4928895",
"0.49266902",
"0.4925091",
"0.4921695",
"0.4920355",
"0.49173772",
"0.49169382",
"0.49143958",
"0.4910801",
"0.49090233",
"0.49054307",
"0.48980933",
"0.489072",
"0.489048",
"0.48900497",
"0.48861623",
"0.48847726",
"0.48838642",
"0.4883484",
"0.48799765",
"0.4876178",
"0.48712927",
"0.48679224",
"0.4865903",
"0.4865241",
"0.48648322",
"0.4862217",
"0.4860808",
"0.48593464",
"0.4858078",
"0.48571104",
"0.48509237",
"0.48499858",
"0.4840556",
"0.48378706",
"0.48374984",
"0.4824506",
"0.4822883",
"0.48219115",
"0.48200208",
"0.4817687"
]
| 0.74193585 | 0 |
sets whether or not we have auto shutoff and adjusts the price | public void setauto_shutoff(int shutoff)
{
if(shutoff == 1 && auto_shutoff == 0)
super.update_price(5.75);
if(shutoff == 0 && auto_shutoff == 1)
super.update_price(-5.75);
this.auto_shutoff = shutoff;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIsFixPrice (String IsFixPrice);",
"public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}",
"public void setIsSetPriceLimit (boolean IsSetPriceLimit);",
"public void setPotatoesPrice(double p);",
"public void setPrice(double price){\r\n Random chance = new Random();\r\n int crashChance = chance.nextInt(100);\r\n double droppedPrice = price * ThreadLocalRandom.current().nextDouble(0.6, 0.8);\r\n if (crashChance > 95) {\r\n setPlusMinus(\"Down\");\r\n System.out.println(\"This stock has crashed.\");\r\n super.setPrice(price - droppedPrice);\r\n } else if(crashChance < 5){\r\n setPlusMinus(\"Up\");\r\n System.out.println(\"This stock has surged.\");\r\n super.setPrice(price + droppedPrice);\r\n } else {\r\n super.setPrice(price);\r\n }\r\n }",
"@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}",
"public void setPrice(Double price);",
"@Override\n\tpublic void setPrice() {\n\t\tprice = 24.99;\n\n\t}",
"public void setPrice(double price) {\n this.price = price;\n if (this.price < 0) {\n this.price = 0;\n }\n }",
"public void setPrice(double price) {\n\t\tif(price > 0 )\n\t\t\tthis.price=price;\n\t}",
"public void setIsSetPriceStd (boolean IsSetPriceStd);",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double value) {\n this.price = value;\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice(double price){this.price=price;}",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setPrice(double price) {\r\n this.price = price;\r\n }",
"public void setProductOff(double productOff) {\n\t\tthis.productOff = productOff;\n\t}",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price) {\n this.price = price;\n }",
"public void setPrice(double price)\n {\n this.price = price;\n }",
"public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }",
"@Override\n\tpublic boolean updateShopCartMoney(double price) {\n\t\treturn false;\n\t}",
"public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}",
"public void setPrice(int price) {\n this.price = (double)price;\n }",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}",
"public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }",
"public void setPrice(Double price) {\r\n this.price = price;\r\n }",
"@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\n this.price = price;\n }",
"public boolean setPrice(double price){\r\n\t\tif(price < 0) return false;\r\n\t\ttry {\r\n\t\t\tthis.workerobj.put(WorkerController.PRICE, price);\r\n\t\t\treturn true;\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void toggleAutoTick() { this.autoTickUnitSelection = this.autoTickUnitSelectionCheckBox.isSelected(); }",
"private void setDiscountedPrice() {\n seekbarNewprice.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n tvDiscountPerc.setText(progress * 5 + \"%\");\n try {\n double originalPrice = Double.parseDouble(etOriginalPrice.getText().toString());\n double sp = (progress * 5 * originalPrice) / 100;\n\n tvNewPrice.setText(String.format(Locale.US, \"%.2f\", originalPrice - sp));\n } catch (NumberFormatException ne) {\n ne.printStackTrace();\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n }",
"public void setHightPrice(final float newHightPrice)\r\n{\r\n\tthis.hightPrice = newHightPrice;\r\n}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(double price) \n\t{\n\t\tthis.price = price * quantity;\n\t}",
"public void decreasePrice() {\n //price halved\n //is it okay if the price becomes 0?\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() / 2);\n }",
"public void doChangeTicketPrices();",
"public void setPrice(double p) {\n\t\tprice = p;\n\t}",
"public void setPrice(double p){\n\t\t// store into the instance variable price the value of the parameter p\n\t\tprice = p;\n\t}",
"@Override\n\tpublic void setPrice(int price) {\n\t\t\n\t}",
"protected void setAppraisalPrice(double ap) {\n \tappraisalPrice = ap;\n }",
"public void setPrice(Money price) {\n this.price = price;\n }",
"public void setPrice(Double price) {\n\t\tthis.price = price;\n\t}",
"public void setPrice(int price) {\r\n this.price = price;\r\n }",
"public void increasePrice() {\n //price doubled\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() * 2);\n }",
"public void setBuyPrice(double buyPrice) {\n double oldPrice = this.buyPrice;\n this.buyPrice = buyPrice;\n if(oldPrice == -1) {\n originalPrice = buyPrice;\n } else {\n fluctuation += (buyPrice - oldPrice);\n }\n }",
"protected void setPrice(DukatAmount price){\r\n\t\tif(canHaveAsPrice(price))\r\n\t\t\tthis.price = price;\r\n\t}",
"public void setPrice(int price) {\n this.price = price;\n }",
"@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\t\t\tif (arg1){\n\t\t\t\t\tminPrice.setText(\"0\");\n\n\t\t\t\t\tmaxPrice.setText(\"0\");\n\t\t\t\t}\n\t\t\t}",
"public void setPrice(int value) {\n this.price = value;\n }",
"@Override\n public void onPriceChange(String price) {\n poll.setPrice(YelpPriceLevel.fromYelpString(price));\n }",
"public void changePrice(Booking booking, float price);",
"private void updateSaving(boolean isOff) {\n String mode = mThermostat.getHvacMode();\n double timeToTemp;\n int maintainCost;\n double ambient_temp = mThermostat.getAmbientTemperatureC();\n double init_target_temp = mThermostat.getTargetTemperatureC();\n double temp_diff = init_target_temp - display_temp; // cooling -> negative: saving, heating -> positive: saving\n double ambientC = mThermostat.getAmbientTemperatureC();\n if(temp_diff == 0) {\n mSavingText.setText(\"¢ \" + 0);\n // changing the height of the coin stack based on saving amount (UI1)\n ClipDrawable mCoinStackClip = (ClipDrawable) mCoinStackImg.getDrawable();\n mCoinStackClip.setLevel(0);\n }\n\n if(KEY_COOL.equals(mode) && init_target_temp > ambient_temp) // if mode is cooling and initial temp is hotter than room temp\n init_target_temp = ambient_temp;\n else if(KEY_HEAT.equals(mode) && init_target_temp < ambient_temp) // if mode is heating and initial temp is cooler than room temp\n init_target_temp = ambient_temp;\n\n if(!isOff || display_temp == ambient_temp) { // while the HVAC is ON, the saving will be updated\n Log.v(TAG, \"Update Saving\");\n saving = (int)Energy.tempToCents(ambientC, init_target_temp, KEY_COOL.equals(mode))\n - (int)Energy.tempToCents(ambientC, display_temp, KEY_COOL.equals(mode)); // calculate potential saving amount\n double maxSaving = Energy.tempToCents(ambientC, init_target_temp, KEY_COOL.equals(mode)); // calculate the maximum saving possible for current inital target temperature\n timeToTemp = Energy.timeToTemp(ambientC, display_temp, KEY_COOL.equals(mode))/60; // calculate time-to-temp\n maintainCost = (int)Energy.centsToMaintain(KEY_COOL.equals(mode)); // calculate the cost to maintain target temp\n\n // changing the height of the coin stack based on saving amount\n ClipDrawable mCoinStackClip = (ClipDrawable) mCoinStackImg.getDrawable();\n mCoinStackClip.setLevel((int)(saving/maxSaving*10000));\n\n // update and display the potential saving amount\n mSavingText.setText(\"¢ \"+saving);\n if(saving < 0 ){\n mSavingText.setTextColor(Color.RED);\n }else{\n mSavingText.setTextColor(Color.BLACK);\n }\n\n // update and display the wait time and cost to maintain target temperature\n if(display_temp == ambient_temp){\n mWaitText.setText(\"\");\n }else{\n mWaitText.setText(\"Wait: \"+String.format(\"%.1f\",timeToTemp)+\" hrs + ¢\"+maintainCost+\"/hr\");\n }\n }else{\n // update and display the wait time and cost to maintain target temperature\n mWaitText.setText(\"\");\n }\n }",
"public void setPrice(int price) {\n\tthis.price = price;\n}",
"public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }",
"public void setPrice(int price)\n {\n if(checker.isString(Integer.toString(price)))\n this.price = price;\n else\n this.price = 0;\n }",
"public void priceCheck() {\n\t\tnew WLPriceCheck().execute(\"\");\n\t}",
"public void setIsSetPriceList (boolean IsSetPriceList);",
"public void setPrice(double x){\n\t\t\tprice = x;\t\n\t\t}",
"protected void setPrice(float price) {\n\t\t\tthis.price = price;\n\t\t}",
"protected void updateOptionPrice(String optionName, float price)\n\t\t\tthrows AutoException {\n\t\tif (getOption(optionName) == null) {\n\t\t\tthrow new AutoException(CustomExceptionEnum.OptionNotFound);\n\t\t} else {\n\t\t\tgetOption(optionName).setPrice(price);\n\t\t}\n\t}",
"public void setPrice(float price) {\n this.price = price;\n }",
"public void setPrice(float price) {\n this.price = price;\n }",
"@Override\r\n public double calculatePrice() {\r\n return super.priceAdjustIE(super.calculatePrice() + WASTE_REMOVAL);\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }",
"@Override\n public void changed(ObservableValue<? extends Toggle> observable, Toggle oldValue, Toggle newValue) {\n\n prices.add(0);\n if (newValue == spareRibs) {\n prices.add(169);\n\n } if (newValue == origSparePlus20) {\n prices.add(189);\n\n } if (newValue == plus40) {\n prices.add(209);\n\n } if (newValue == amiRibsAndChickenBreast) {\n prices.add(185);\n\n } if (newValue == route66) {\n prices.add(205);\n\n } if (newValue == chilliDip) {\n prices.add(6);\n\n } if (newValue == smokeyBBQ) {\n prices.add(6);\n\n } if (newValue == aioli) {\n prices.add(6);\n } if (newValue == chipotleMayo) {\n prices.add(6);\n } if (newValue == bakedPotatoWSourButter) {\n prices.add(10);\n } if (newValue == bakedPotatoWSourCream) {\n prices.add(10);\n } if (newValue == bakedPotatoWSourGarlicButter) {\n prices.add(10);\n } if (newValue == CrispyPotatoButtonPlus10 ) {\n prices.add(10);\n }\n if (newValue == ChooseSoftIce){\n prices.add(49);\n }\n if(newValue == showTotal){\n prices.add(0);\n }\n\n\n int price = 0;\n for (int i = 0; i < prices.size() - 1; i++) {\n price = prices.get(i) + price;\n }\n totalPrice.setText(\"\" + price);\n System.out.println(price);\n\n }",
"public void setPrice(Float price) {\r\n this.price = price;\r\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(BigDecimal price) {\n this.price = price;\n }",
"public void setPrice(Date price) {\n this.price = price;\n }",
"public void setPurchasePrice(double p)\n {\n this.purchasePrice = p;\n }",
"void setAuto(boolean auto);",
"void setAuto(boolean auto);",
"@Override\n\tdouble updateTotalPrice() {\n\t\treturn 0;\n\t}",
"public Builder setPrice(double value) {\n bitField0_ |= 0x00000010;\n price_ = value;\n onChanged();\n return this;\n }",
"public void setPromotionalPrice(double value) {\n this.promotionalPrice = value;\n }",
"public Builder setPrice(int value) {\n bitField0_ |= 0x00000020;\n price_ = value;\n \n return this;\n }",
"private void calculatePrice() {\n\t\tint temp = controller.getQualityPrice(hotel.getText(), quality.getText());\n\n\t\ttemp *= getDays();\n\n\t\tif (discountChoice > 0) {\n\t\t\tdouble discountTmp = (double) discountChoice / 100;\n\t\t\ttemp *= (1.00 - discountTmp);\n\t\t}\n\n\t\tprice.setText(Integer.toString(temp));\n\n\t}",
"public void setPrice(Float price) {\n this.price = price;\n }",
"public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }",
"public void setPriceLimitOld (BigDecimal PriceLimitOld);",
"public static void setPrice() {\n double summe = 0.0;\n for (Object obj : dlm.getDisplayedArtikel()) {\n if (obj instanceof Article) {\n Article art = (Article) obj;\n if (!art.isIsAbfrage()) {\n if (((art.isJugendSchutz() && art.isJugendSchutzOk())) || !art.isJugendSchutz()) {\n if (art.isEloadingAmmountOk() && !art.isPriceZero()) {\n summe += ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n }\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe += card.getAufladung() / 100;\n }\n }\n for (Object obj : dlm.getRemovedObjects()) {\n if (obj instanceof Article) {\n if (!((Article) ((obj))).isStorno_error()) {\n summe -= ((Article) ((obj))).getPreis() * ((Article) ((obj))).getAmount();\n }\n } else if (obj instanceof Karte) {\n Karte card = (Karte) obj;\n summe -= card.getAufladung() / 100;\n }\n }\n if (Math.round(summe) == 0) {\n summe = 0;\n }\n if (GUIOperations.isTraining()) {\n summe += 1000;\n }\n tfSumme.setText(String.format(\"%.2f\", summe));\n }",
"@Override\n public void onCheckStocksRaised() {\n if (coffeeStock <= 0) {\n coffeeButton.setEnabled(false);\n }\n if (espressoStock <= 0) {\n espressoButton.setEnabled(false);\n }\n if (teaStock <= 0) {\n teaButton.setEnabled(false);\n }\n if (soupStock <= 0) {\n soupButton.setEnabled(false);\n }\n if (icedTeaStock <= 0) {\n icedTeaButton.setEnabled(false);\n }\n if (syrupStock <= 0) {\n optionSugar.setEnabled(false);\n }\n if (vanillaStock <= 0) {\n optionIceCream.setEnabled(false);\n }\n if (milkStock <= 0) {\n optionMilk.setEnabled(false);\n }\n if (breadStock <= 0) {\n optionBread.setEnabled(false);\n }\n if (sugarStock <= 4) {\n sugarSlider.setMaximum(sugarStock);\n }\n }",
"public void setPrice(Money price) {\n\t\tif (price == null) {\n\t\t\tthis.price = new Money(0, 0);\n\t\t} else {\n\t\t\tthis.price = price;\n\t\t}\n\t}",
"public void setOptionPrice(double optionPrice)\n {\n this.optionPrice = optionPrice;\n }",
"public void setPrice(final BigDecimal price) {\n this.price = price;\n }",
"public void setPotatoesPrice(double p) {\n this.potatoesPrice = p;\n }"
]
| [
"0.66567826",
"0.66146344",
"0.65798455",
"0.65735006",
"0.65502506",
"0.6518021",
"0.6486299",
"0.6471549",
"0.6455167",
"0.6418938",
"0.6394199",
"0.6380685",
"0.6380685",
"0.63735855",
"0.63658947",
"0.6354827",
"0.6354827",
"0.6354827",
"0.63328284",
"0.6316141",
"0.6316141",
"0.6316141",
"0.6316141",
"0.6316141",
"0.6316141",
"0.6316141",
"0.63136345",
"0.6309431",
"0.6306751",
"0.6282572",
"0.6282385",
"0.6263225",
"0.6261627",
"0.6261627",
"0.6256223",
"0.6253229",
"0.62344277",
"0.6186987",
"0.6186987",
"0.6180521",
"0.61800206",
"0.61760765",
"0.61666465",
"0.6160913",
"0.6160913",
"0.6160913",
"0.61544704",
"0.6139614",
"0.6087279",
"0.6078742",
"0.6063851",
"0.605287",
"0.60493994",
"0.6019525",
"0.60192454",
"0.6017007",
"0.600501",
"0.60004467",
"0.5996115",
"0.5977467",
"0.5975791",
"0.5967242",
"0.59641486",
"0.5963834",
"0.59226084",
"0.5922193",
"0.5918826",
"0.5913467",
"0.59109485",
"0.5897418",
"0.58962727",
"0.5889736",
"0.5883426",
"0.58684677",
"0.58684677",
"0.5863443",
"0.5847938",
"0.5847938",
"0.5844248",
"0.5843054",
"0.58332855",
"0.58332855",
"0.5832248",
"0.5826312",
"0.582608",
"0.582608",
"0.5825879",
"0.5825077",
"0.58155394",
"0.5812057",
"0.58101076",
"0.5809145",
"0.58059824",
"0.58037263",
"0.580356",
"0.5785992",
"0.5779973",
"0.5773261",
"0.5770091",
"0.57633674"
]
| 0.8626845 | 0 |
returns whether or not we have auto shutoff | public int getauto_shutoff()
{
return auto_shutoff;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isShuttingDown() {\n return myShutdown.get();\n }",
"boolean isShutdown();",
"public boolean isShuttingDown() {\n return shuttingDown;\n }",
"boolean isShutdownGraceful();",
"public boolean isShutdown() {\r\n\t\treturn shutdown;\r\n\t}",
"public boolean isShutdown() {\n lock.lock();\n try {\n return state == State.SHUTDOWN;\n } finally {\n lock.unlock();\n }\n }",
"@Override\n\tpublic boolean isShutdown() {\n\t\treturn false;\n\t}",
"public boolean foundUncleanShutdown()\n {\n return this.unclean;\n }",
"public static boolean getIsShutdown() {\n return isShutdown;\n }",
"public boolean checkAutoClose();",
"public boolean isEnableShutdownHook() {\n return enableShutdownHook;\n }",
"public boolean lockForShutdown() {\r\n if (shuttingDown.compareAndSet(false, true)) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"public boolean getResetTimeOnStop() { return _resetTimeOnStop; }",
"public boolean isShutdownSupported() {\r\n return shutdownSupported;\r\n }",
"protected boolean isAutoCloseEnabled() {\r\n\t\treturn false;\r\n\t}",
"public boolean macShutdown() {\r\n boolean result = promptUserWantsShutdown();\r\n\r\n if (result) {\r\n prepareForShutdown();\r\n }\r\n\r\n return result;\r\n }",
"public boolean isSetServersShuttingDown() {\n return this.serversShuttingDown != null;\n }",
"public boolean isAutoStart()\n {\n return false;\n }",
"public boolean isUseHotStart() {\n return useHotStart;\n }",
"public boolean isShotDown(){\n return this.shotDown;\n }",
"public boolean isWakeUp() {\n return wakeUp;\n }",
"boolean hasAutomatic();",
"protected final boolean wasSwitchedOff() {\r\n\t\treturn switchedOff;\r\n\t}",
"public boolean isOn() {\n\t\treturn false;\n\t}",
"public boolean isAuto() {\r\n return auto;\r\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"public boolean canPostponeShutdown() {\n if (mState != STATE_SHUTDOWN_PREPARE) {\n throw new IllegalStateException(\"wrong state\");\n }\n return (mParam & VehicleApPowerStateShutdownParam.SHUTDOWN_IMMEDIATELY) == 0;\n }",
"public boolean isForgettable ()\r\n {\r\n return forgettable_;\r\n }",
"public boolean isStopOnceCollected() {\n return stopOnceCollected;\n }",
"Boolean isSuspendOnStart();",
"public boolean isHasPowerUp() {\n\t\treturn hasPowerUp;\n\t}",
"boolean isSetAuto();",
"public boolean emergencyStop()\n {\n return finchController.emergencyStop();\n }",
"public boolean mo5973j() {\n return !isDestroyed() && !isFinishing();\n }",
"public static boolean ctrlOrCmdIsDown()\n\t{\n\t\treturn ctrl_cmd_Down;\n\t}",
"public boolean isLogoffEnabled() \n {\n return configfile.is_logoff_enabled;\n }",
"public boolean isAutoStartup() {\n\t\treturn (this.container != null) ? this.container.isAutoStartup() : false;\n\t}",
"public boolean isOn() throws Exception;",
"public boolean shouldStop() {\n return !this.running;\n }",
"public void shutdown() {\n this.dontStop = false;\n }",
"boolean isStopped();",
"public static boolean metaIsDown()\n\t{\n\t\treturn metaDown;\n\t}",
"public boolean isScheduled();",
"public boolean isSleepy() {\n\t\treturn sleepy;\n\t}",
"protected boolean doShutdown() {\n\t\tfor (ServerShutdownClause clause : shutdownClauses) {\n\t\t\tif (clause.shutdown()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean deactivate() {\n this._factory.shutdown();\n return true;\n }",
"private void checkIfForceKill() {\n SharedPreferences settings = PreferenceManager\n .getDefaultSharedPreferences(this);\n boolean forceKill = settings.getBoolean(\n FORCE_EXIT_APPLICATION, false);\n\n if (forceKill) {\n //CLEAR THE FORCE_EXIT SETTINGS\n SharedPreferences.Editor editor = settings.edit();\n editor.putBoolean(FORCE_EXIT_APPLICATION, false);\n // Commit the edits!\n editor.apply();\n //HERE STOP ALL YOUR SERVICES\n finish();\n }\n }",
"@Override\n\tpublic void canTakeOff() {\n\t\tSystem.out.println(\"I CANNOT TAKE OFF UNLESS YA JUMP ME OVER SOMMAT\");\n\t}",
"public boolean isStopping() {\n return stopping;\n }",
"public boolean isQuit() {\r\n\t\treturn quit;\r\n\t}",
"public boolean isStopped()\r\n\t{\r\n\t\treturn currentstate == TIMER_STOP;\r\n\t}",
"boolean isStop();",
"@Override\n\tpublic boolean isSleeping() {\n\t\treturn false;\n\t}",
"boolean hasIsErasing();",
"public boolean isLingering();",
"public boolean isStopped();",
"public static boolean getRebootFlag() {\n\t\treturn false;\n\t}",
"public boolean isPowerOn() {\n Log.d(TAG, \"Is Fist Power On: \" + (SystemProperties.getBoolean(IS_POWER_ON_PROPERTY, false)));\n\n if (!SystemProperties.getBoolean(IS_POWER_ON_PROPERTY, false)) {\n SystemProperties.set(IS_POWER_ON_PROPERTY, \"true\");\n return true;\n } else {\n return false;\n }\n }",
"public boolean isHolding();",
"protected synchronized boolean shouldStop() {\n\t\treturn shouldStop_;\n\t}",
"public boolean isReset()\n\t{\n\t\treturn m_justReset;\n\t}",
"boolean shouldStop();",
"public boolean isTired()\r\n \t{\r\n \t\treturn lastSleep >= TIME_SLEEP;\r\n \t}",
"public boolean execShutdownPolicy() {\n shutownPolicy sp = new shutownPolicy(localCtx._s_shutdown_param);\n \n this.clientLogout(false);\n //oLogger.getLogger().info(\"Excute shutdown policy.\");\n LocalUtils.writeExternalLog(\"spice\", \"shutdown policy\", \"Excute shutdown policy\");\n if (isRemoteVMClosed()) {\n //killSpice();\n LocalUtils.printLog(\"SpiceManager\",\n \"execShutdownPolicy(): shutdown...:\" + localCtx._i_login_type + \", shutownPolicy\" + sp.toString());\n LocalUtils.writeExternalLog(\"spice\", \"vm status\", \"remote vm has been closed\");\n \n if (localCtx._i_login_type == 0 && sp._0_vpc2terminal) //teacher login\n LocalUtils.os_shutdown(\"execShutdownPolicy:\" + sp.toString());\n if (localCtx._i_login_type == 1 && sp._1_vpc2terminal)\n LocalUtils.os_shutdown(\"execShutdownPolicy:\" + sp.toString());\n\n } else {\n LocalUtils.writeExternalLog(\"spice\", \"vm status\", \"remote vm is still runing.\");\n if (errCode == 1) //is net issue\n {\n return false;\n }\n }\n\n reset();\n return true;\n }",
"boolean getIsErasing();",
"public boolean isStopped()\r\n\t{\r\n\t\treturn speed()==0;\r\n\t}",
"public boolean isShootDown() {\n return shootDown;\n }",
"private boolean deactivate() {\r\n // Automatically shutdown thruster if no input was given for a given interval\r\n if(state != State.Inactive) {\r\n state = State.Inactive;\r\n if(!isServer) {\r\n thruster.setParticlesPerSec(0);\r\n }\r\n if(null != engineSound && engineSound.getStatus().equals(AudioSource.Status.Playing)) {\r\n engineSound.stop();\r\n }\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean isRelaunched() {\n return relaunched;\n }",
"public static boolean ctrlIsDown()\n\t{\n\t\treturn ctrlDown;\n\t}",
"public boolean hasBluffedQuit() {\r\n return bluffedQuit;\r\n\t}",
"public boolean doQuit() {\n return false;\n }",
"public void cleanShutDown () {\n shutdown = true;\n }",
"public boolean isAutoTestOn(){\n\t\treturn doc.getElementsByTagName(\"test_switch\").item(0).getAttributes().getNamedItem(\"value\")\n\t\t\t\t\t\t.getNodeValue().equals(\"1\")?true:false;\n\t}",
"public boolean switchOff(){\n if(!this.is_Switched_On){\n return false;\n }\n this.is_Switched_On = false;\n return true;\n }",
"public boolean shouldStop() {\n return this.shouldstop;\n }",
"public boolean isStopped() {\n return m_runner == null;\n }",
"public boolean isScheduled(){\n //System.out.println(\"nextrun: \" + nextrun.getTime() + \" nu: \" + System.currentTimeMillis());\n if (nextrun != null){\n long next = nextrun.getTime();\n \n return next < System.currentTimeMillis();\n }else{\n //null => instance has never run before & should run asap\n return true;\n }\n }",
"public AutomaticShutdownAction getAutomaticShutdownAction() {\n return automaticShutdownAction;\n }",
"public long getAutoClose();",
"public boolean isDownState() {\n return downState;\n }",
"private static final boolean isRunning() {\r\n /*\r\n * LogUtil.isRunning : shutdown detected : java.lang.Throwable at\r\n * org.ivoa.util.LogUtil.isRunning(LogUtil.java:151) at\r\n * org.ivoa.util.LogUtil.getLoggerDev(LogUtil.java:177) at\r\n * org.ivoa.web.servlet.BaseServlet.<clinit>(BaseServlet.java:69) at\r\n * sun.misc.Unsafe.ensureClassInitialized(Native Method) at\r\n * sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)\r\n * at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at\r\n * java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) at\r\n * java.lang.reflect.Field.getFieldAccessor(Field.java:899) at\r\n * java.lang.reflect.Field.set(Field.java:657) at\r\n * org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1644) at\r\n * org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1524) at\r\n * org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:707) at\r\n * org.apache.catalina.core.StandardContext.stop(StandardContext.java:4557) at\r\n * org.apache.catalina.manager.ManagerServlet.stop(ManagerServlet.java:1298) at\r\n * org.apache.catalina.manager.HTMLManagerServlet.stop(HTMLManagerServlet.java:622) at\r\n * org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:131)\r\n */\r\n if (LOGGING_DIAGNOSTICS && isShutdown) {\r\n if (SystemLogUtil.isDebugEnabled()) {\r\n SystemLogUtil.debug(\"LogUtil.isRunning : shutdown detected : \");\r\n }\r\n }\r\n\r\n return !isShutdown;\r\n }",
"boolean isMonitoringTerminated();",
"public boolean hasFullyTurned() {\r\n return turningPID.onTarget();\r\n }",
"boolean isRunning();",
"boolean isRunning();",
"boolean isRunning();",
"boolean isRunning();",
"boolean isRunning();",
"boolean isStartup();",
"boolean isDaemon();",
"boolean getAuto();",
"public abstract boolean isScheduled();",
"protected boolean isFinished() {\n\t\treturn Robot.oi.ds.isAutonomous();\n\t}",
"public void checkOffTask() {\n isDone = true;\n }",
"public boolean isAutoActive()\n {\n return autoCommand != null && autoCommand.isActive();\n }",
"protected boolean isFinished() {\n //return !RobotMap.TOTE_SWITCH.get();\n \treturn false;\n }",
"public static boolean shiftIsDown()\n\t{\n\t\treturn shiftDown;\n\t}",
"public boolean isAutoStartEnabled() {\n return autoStartEnabled;\n }",
"boolean hasStopped()\n {\n if (running && ! isAlive())\n {\n nextStartTime = System.currentTimeMillis() + minDurationInMillis;\n running = false;\n return true;\n }\n return false;\n }"
]
| [
"0.7632354",
"0.7553895",
"0.7510942",
"0.7465445",
"0.7434557",
"0.72173184",
"0.71958375",
"0.7118408",
"0.6997218",
"0.6910312",
"0.68152916",
"0.6706365",
"0.6684969",
"0.6560601",
"0.64443636",
"0.6431312",
"0.64027745",
"0.6389313",
"0.63582623",
"0.634723",
"0.63426983",
"0.6336077",
"0.63072747",
"0.6285774",
"0.628175",
"0.62569934",
"0.6239321",
"0.62392974",
"0.6233819",
"0.6229226",
"0.6209823",
"0.6198757",
"0.6198675",
"0.6187221",
"0.6172835",
"0.61304045",
"0.6128926",
"0.6117802",
"0.61066973",
"0.6098211",
"0.6096384",
"0.6090005",
"0.608507",
"0.60612464",
"0.6055915",
"0.6050319",
"0.60487854",
"0.60320854",
"0.60294795",
"0.602622",
"0.59981436",
"0.59935504",
"0.5990568",
"0.5988449",
"0.5988408",
"0.5981694",
"0.5959279",
"0.5953538",
"0.5950334",
"0.5943181",
"0.5938946",
"0.59333134",
"0.5924878",
"0.5922289",
"0.59221214",
"0.59207493",
"0.5910909",
"0.5904791",
"0.5903672",
"0.58933794",
"0.58817",
"0.5876514",
"0.5876496",
"0.5876431",
"0.58572006",
"0.58559734",
"0.58513075",
"0.5843802",
"0.5843038",
"0.58420736",
"0.58357906",
"0.5834318",
"0.5833151",
"0.5832911",
"0.5829385",
"0.5829385",
"0.5829385",
"0.5829385",
"0.5829385",
"0.58289176",
"0.5828378",
"0.5827906",
"0.582563",
"0.58251595",
"0.5824264",
"0.58234566",
"0.5820987",
"0.5814873",
"0.58120894",
"0.58073926"
]
| 0.8091611 | 0 |
returns what the heat setting is | public int getheat_setting()
{
return heat_setting;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getRunHeat() {\n return engine.getRunHeat();\n }",
"@Override\n public int getSprintHeat() {\n return engine.getSprintHeat();\n }",
"@Nullable\n Heat getHeat();",
"int getHeatCode(int x, int y);",
"public void setheat_setting(int setting)\n {\n this.heat_setting = setting;\n if( setting <1 || setting >5)\n this.heat_setting = 1; \n }",
"@Override\n public int getHeatCapacity() {\n return getHeatCapacity(true);\n }",
"public double getBeerXmlStandardTunSpecHeat() {\n return this.tunSpecificHeat;\n }",
"@Override\n public int getEngineCritHeat() {\n int engineCritHeat = 0;\n if (!isShutDown() && getEngine().isFusion()) {\n engineCritHeat += 5 * getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_CT);\n engineCritHeat += 5 * getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_LT);\n engineCritHeat += 5 * getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_RT);\n }\n return engineCritHeat;\n }",
"public short[][] getSaturation(){ return saturation; }",
"@Override\n public String toString()\n {\n return String.format(\"%s Heat setting:%d Automatic Shutoff:%d\", super.toString(), heat_setting, auto_shutoff);\n }",
"private void checkHeatLevels()\n {\n // Computer is switched on and has power reserves.\n if (this.isPowered() && this.isRedstonePowered())\n {\n if (this.getEnergyStored(ForgeDirection.UNKNOWN) <= this.getMaxEnergyStored(ForgeDirection.UNKNOWN))\n {\n // Running computer consumes energy from internal reserve.\n this.consumeInternalEnergy(this.getEnergyConsumeRate());\n }\n\n // Running computer generates heat with excess energy it wastes.\n if (!this.isHeatAboveZero() && worldObj.getWorldTime() % 5L == 0L)\n {\n if (!this.isOverheating() && !this.isHeatedPastTriggerValue())\n {\n // Raise heat randomly from zero to five if we are not at optimal temperature.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(10));\n }\n else if (!this.isOverheating() && this.isHeatedPastTriggerValue() && this.getFluidAmount() > FluidContainerRegistry.BUCKET_VOLUME)\n {\n // Computer has reached operating temperature and has water to keep it cool.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(2));\n }\n else if (!this.isOverheating() && this.getFluidAmount() <= FluidContainerRegistry.BUCKET_VOLUME)\n {\n // Computer is running but has no water to keep it cool.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(5));\n }\n }\n }\n\n // Water acts as coolant to keep running computer components cooled.\n if (!this.isHeatAboveZero() && !this.isFluidTankEmpty() && this.isPowered() && this.isRedstonePowered() && worldObj.getWorldTime() % 16L == 0L)\n {\n if (this.getHeatLevelValue() <= this.getHeatLevelMaximum() && this.isHeatAboveZero())\n {\n // Some of the water evaporates in the process of cooling off the computer.\n // Note: water is drained in amount of heat computer has so hotter it gets\n // the faster it will consume water up to rate of one bucket\n // every few ticks.\n if (this.getFluidAmount() >= this.getHeatLevelValue())\n {\n // The overall heat levels of the computer drop so long as there is water though.\n this.removeFluidAmountExact(this.getHeatLevelValue() / 4);\n this.decreaseHeatValue();\n }\n }\n }\n else if (this.isHeatAboveZero() && worldObj.getWorldTime() % 8L == 0L)\n {\n // Computer will slowly dissipate heat while powered off but nowhere near as fast with coolant.\n this.decreaseHeatValue();\n }\n }",
"public String getColourMin()\n {\n return colourMin;\n }",
"public short[][] getHue(){ return hue; }",
"private float getHeatOfVaporization(Fluid fluid) {\n\t\tif(fluid == null) { throw new IllegalArgumentException(\"Cannot pass a null fluid to getHeatOfVaporization\"); } // just in case\n\n\t\t// TODO: Make a registry for this, do a lookup\n\t\treturn 4f; // TE converts 1mB steam into 2 RF of work in a steam turbine, so we assume it's 50% efficient.\n\t}",
"public HeatedObjectScale() {\n colors = new java.awt.Color[256];\n colors[ 0] = new java.awt.Color(0, 0, 0);\n colors[ 1] = new java.awt.Color(35, 0, 0);\n colors[ 2] = new java.awt.Color(52, 0, 0);\n colors[ 3] = new java.awt.Color(60, 0, 0);\n colors[ 4] = new java.awt.Color(63, 1, 0);\n colors[ 5] = new java.awt.Color(64, 2, 0);\n colors[ 6] = new java.awt.Color(68, 5, 0);\n colors[ 7] = new java.awt.Color(69, 6, 0);\n colors[ 8] = new java.awt.Color(72, 8, 0);\n colors[ 9] = new java.awt.Color(74, 10, 0);\n colors[ 10] = new java.awt.Color(77, 12, 0);\n colors[ 11] = new java.awt.Color(78, 14, 0);\n colors[ 12] = new java.awt.Color(81, 16, 0);\n colors[ 13] = new java.awt.Color(83, 17, 0);\n colors[ 14] = new java.awt.Color(85, 19, 0);\n colors[ 15] = new java.awt.Color(86, 20, 0);\n colors[ 16] = new java.awt.Color(89, 22, 0);\n colors[ 17] = new java.awt.Color(91, 24, 0);\n colors[ 18] = new java.awt.Color(92, 25, 0);\n colors[ 19] = new java.awt.Color(94, 26, 0);\n colors[ 20] = new java.awt.Color(95, 28, 0);\n colors[ 21] = new java.awt.Color(98, 30, 0);\n colors[ 22] = new java.awt.Color(100, 31, 0);\n colors[ 23] = new java.awt.Color(102, 33, 0);\n colors[ 24] = new java.awt.Color(103, 34, 0);\n colors[ 25] = new java.awt.Color(105, 35, 0);\n colors[ 26] = new java.awt.Color(106, 36, 0);\n colors[ 27] = new java.awt.Color(108, 38, 0);\n colors[ 28] = new java.awt.Color(109, 39, 0);\n colors[ 29] = new java.awt.Color(111, 40, 0);\n colors[ 30] = new java.awt.Color(112, 42, 0);\n colors[ 31] = new java.awt.Color(114, 43, 0);\n colors[ 32] = new java.awt.Color(115, 44, 0);\n colors[ 33] = new java.awt.Color(117, 45, 0);\n colors[ 34] = new java.awt.Color(119, 47, 0);\n colors[ 35] = new java.awt.Color(119, 47, 0);\n colors[ 36] = new java.awt.Color(120, 48, 0);\n colors[ 37] = new java.awt.Color(122, 49, 0);\n colors[ 38] = new java.awt.Color(123, 51, 0);\n colors[ 39] = new java.awt.Color(125, 52, 0);\n colors[ 40] = new java.awt.Color(125, 52, 0);\n colors[ 41] = new java.awt.Color(126, 53, 0);\n colors[ 42] = new java.awt.Color(128, 54, 0);\n colors[ 43] = new java.awt.Color(129, 56, 0);\n colors[ 44] = new java.awt.Color(129, 56, 0);\n colors[ 45] = new java.awt.Color(131, 57, 0);\n colors[ 46] = new java.awt.Color(132, 58, 0);\n colors[ 47] = new java.awt.Color(134, 59, 0);\n colors[ 48] = new java.awt.Color(134, 59, 0);\n colors[ 49] = new java.awt.Color(136, 61, 0);\n colors[ 50] = new java.awt.Color(137, 62, 0);\n colors[ 51] = new java.awt.Color(137, 62, 0);\n colors[ 52] = new java.awt.Color(139, 63, 0);\n colors[ 53] = new java.awt.Color(139, 63, 0);\n colors[ 54] = new java.awt.Color(140, 65, 0);\n colors[ 55] = new java.awt.Color(142, 66, 0);\n colors[ 56] = new java.awt.Color(142, 66, 0);\n colors[ 57] = new java.awt.Color(143, 67, 0);\n colors[ 58] = new java.awt.Color(143, 67, 0);\n colors[ 59] = new java.awt.Color(145, 68, 0);\n colors[ 60] = new java.awt.Color(145, 68, 0);\n colors[ 61] = new java.awt.Color(146, 70, 0);\n colors[ 62] = new java.awt.Color(146, 70, 0);\n colors[ 63] = new java.awt.Color(148, 71, 0);\n colors[ 64] = new java.awt.Color(148, 71, 0);\n colors[ 65] = new java.awt.Color(149, 72, 0);\n colors[ 66] = new java.awt.Color(149, 72, 0);\n colors[ 67] = new java.awt.Color(151, 73, 0);\n colors[ 68] = new java.awt.Color(151, 73, 0);\n colors[ 69] = new java.awt.Color(153, 75, 0);\n colors[ 70] = new java.awt.Color(153, 75, 0);\n colors[ 71] = new java.awt.Color(154, 76, 0);\n colors[ 72] = new java.awt.Color(154, 76, 0);\n colors[ 73] = new java.awt.Color(154, 76, 0);\n colors[ 74] = new java.awt.Color(156, 77, 0);\n colors[ 75] = new java.awt.Color(156, 77, 0);\n colors[ 76] = new java.awt.Color(157, 79, 0);\n colors[ 77] = new java.awt.Color(157, 79, 0);\n colors[ 78] = new java.awt.Color(159, 80, 0);\n colors[ 79] = new java.awt.Color(159, 80, 0);\n colors[ 80] = new java.awt.Color(159, 80, 0);\n colors[ 81] = new java.awt.Color(160, 81, 0);\n colors[ 82] = new java.awt.Color(160, 81, 0);\n colors[ 83] = new java.awt.Color(162, 82, 0);\n colors[ 84] = new java.awt.Color(162, 82, 0);\n colors[ 85] = new java.awt.Color(163, 84, 0);\n colors[ 86] = new java.awt.Color(163, 84, 0);\n colors[ 87] = new java.awt.Color(165, 85, 0);\n colors[ 88] = new java.awt.Color(165, 85, 0);\n colors[ 89] = new java.awt.Color(166, 86, 0);\n colors[ 90] = new java.awt.Color(166, 86, 0);\n colors[ 91] = new java.awt.Color(166, 86, 0);\n colors[ 92] = new java.awt.Color(168, 87, 0);\n colors[ 93] = new java.awt.Color(168, 87, 0);\n colors[ 94] = new java.awt.Color(170, 89, 0);\n colors[ 95] = new java.awt.Color(170, 89, 0);\n colors[ 96] = new java.awt.Color(171, 90, 0);\n colors[ 97] = new java.awt.Color(171, 90, 0);\n colors[ 98] = new java.awt.Color(173, 91, 0);\n colors[ 99] = new java.awt.Color(173, 91, 0);\n colors[100] = new java.awt.Color(174, 93, 0);\n colors[101] = new java.awt.Color(174, 93, 0);\n colors[102] = new java.awt.Color(176, 94, 0);\n colors[103] = new java.awt.Color(176, 94, 0);\n colors[104] = new java.awt.Color(177, 95, 0);\n colors[105] = new java.awt.Color(177, 95, 0);\n colors[106] = new java.awt.Color(179, 96, 0);\n colors[107] = new java.awt.Color(179, 96, 0);\n colors[108] = new java.awt.Color(180, 98, 0);\n colors[109] = new java.awt.Color(182, 99, 0);\n colors[110] = new java.awt.Color(182, 99, 0);\n colors[111] = new java.awt.Color(183, 100, 0);\n colors[112] = new java.awt.Color(183, 100, 0);\n colors[113] = new java.awt.Color(185, 102, 0);\n colors[114] = new java.awt.Color(185, 102, 0);\n colors[115] = new java.awt.Color(187, 103, 0);\n colors[116] = new java.awt.Color(187, 103, 0);\n colors[117] = new java.awt.Color(188, 104, 0);\n colors[118] = new java.awt.Color(188, 104, 0);\n colors[119] = new java.awt.Color(190, 105, 0);\n colors[120] = new java.awt.Color(191, 107, 0);\n colors[121] = new java.awt.Color(191, 107, 0);\n colors[122] = new java.awt.Color(193, 108, 0);\n colors[123] = new java.awt.Color(193, 108, 0);\n colors[124] = new java.awt.Color(194, 109, 0);\n colors[125] = new java.awt.Color(196, 110, 0);\n colors[126] = new java.awt.Color(196, 110, 0);\n colors[127] = new java.awt.Color(197, 112, 0);\n colors[128] = new java.awt.Color(197, 112, 0);\n colors[129] = new java.awt.Color(199, 113, 0);\n colors[130] = new java.awt.Color(200, 114, 0);\n colors[131] = new java.awt.Color(200, 114, 0);\n colors[132] = new java.awt.Color(202, 116, 0);\n colors[133] = new java.awt.Color(202, 116, 0);\n colors[134] = new java.awt.Color(204, 117, 0);\n colors[135] = new java.awt.Color(205, 118, 0);\n colors[136] = new java.awt.Color(205, 118, 0);\n colors[137] = new java.awt.Color(207, 119, 0);\n colors[138] = new java.awt.Color(208, 121, 0);\n colors[139] = new java.awt.Color(208, 121, 0);\n colors[140] = new java.awt.Color(210, 122, 0);\n colors[141] = new java.awt.Color(211, 123, 0);\n colors[142] = new java.awt.Color(211, 123, 0);\n colors[143] = new java.awt.Color(213, 124, 0);\n colors[144] = new java.awt.Color(214, 126, 0);\n colors[145] = new java.awt.Color(214, 126, 0);\n colors[146] = new java.awt.Color(216, 127, 0);\n colors[147] = new java.awt.Color(217, 128, 0);\n colors[148] = new java.awt.Color(217, 128, 0);\n colors[149] = new java.awt.Color(219, 130, 0);\n colors[150] = new java.awt.Color(221, 131, 0);\n colors[151] = new java.awt.Color(221, 131, 0);\n colors[152] = new java.awt.Color(222, 132, 0);\n colors[153] = new java.awt.Color(224, 133, 0);\n colors[154] = new java.awt.Color(224, 133, 0);\n colors[155] = new java.awt.Color(225, 135, 0);\n colors[156] = new java.awt.Color(227, 136, 0);\n colors[157] = new java.awt.Color(227, 136, 0);\n colors[158] = new java.awt.Color(228, 137, 0);\n colors[159] = new java.awt.Color(230, 138, 0);\n colors[160] = new java.awt.Color(230, 138, 0);\n colors[161] = new java.awt.Color(231, 140, 0);\n colors[162] = new java.awt.Color(233, 141, 0);\n colors[163] = new java.awt.Color(233, 141, 0);\n colors[164] = new java.awt.Color(234, 142, 0);\n colors[165] = new java.awt.Color(236, 144, 0);\n colors[166] = new java.awt.Color(236, 144, 0);\n colors[167] = new java.awt.Color(238, 145, 0);\n colors[168] = new java.awt.Color(239, 146, 0);\n colors[169] = new java.awt.Color(241, 147, 0);\n colors[170] = new java.awt.Color(241, 147, 0);\n colors[171] = new java.awt.Color(242, 149, 0);\n colors[172] = new java.awt.Color(244, 150, 0);\n colors[173] = new java.awt.Color(244, 150, 0);\n colors[174] = new java.awt.Color(245, 151, 0);\n colors[175] = new java.awt.Color(247, 153, 0);\n colors[176] = new java.awt.Color(247, 153, 0);\n colors[177] = new java.awt.Color(248, 154, 0);\n colors[178] = new java.awt.Color(250, 155, 0);\n colors[179] = new java.awt.Color(251, 156, 0);\n colors[180] = new java.awt.Color(251, 156, 0);\n colors[181] = new java.awt.Color(253, 158, 0);\n colors[182] = new java.awt.Color(255, 159, 0);\n colors[183] = new java.awt.Color(255, 159, 0);\n colors[184] = new java.awt.Color(255, 160, 0);\n colors[185] = new java.awt.Color(255, 161, 0);\n colors[186] = new java.awt.Color(255, 163, 0);\n colors[187] = new java.awt.Color(255, 163, 0);\n colors[188] = new java.awt.Color(255, 164, 0);\n colors[189] = new java.awt.Color(255, 165, 0);\n colors[190] = new java.awt.Color(255, 167, 0);\n colors[191] = new java.awt.Color(255, 167, 0);\n colors[192] = new java.awt.Color(255, 168, 0);\n colors[193] = new java.awt.Color(255, 169, 0);\n colors[194] = new java.awt.Color(255, 169, 0);\n colors[195] = new java.awt.Color(255, 170, 0);\n colors[196] = new java.awt.Color(255, 172, 0);\n colors[197] = new java.awt.Color(255, 173, 0);\n colors[198] = new java.awt.Color(255, 173, 0);\n colors[199] = new java.awt.Color(255, 174, 0);\n colors[200] = new java.awt.Color(255, 175, 0);\n colors[201] = new java.awt.Color(255, 177, 0);\n colors[202] = new java.awt.Color(255, 178, 0);\n colors[203] = new java.awt.Color(255, 179, 0);\n colors[204] = new java.awt.Color(255, 181, 0);\n colors[205] = new java.awt.Color(255, 181, 0);\n colors[206] = new java.awt.Color(255, 182, 0);\n colors[207] = new java.awt.Color(255, 183, 0);\n colors[208] = new java.awt.Color(255, 184, 0);\n colors[209] = new java.awt.Color(255, 187, 7);\n colors[210] = new java.awt.Color(255, 188, 10);\n colors[211] = new java.awt.Color(255, 189, 14);\n colors[212] = new java.awt.Color(255, 191, 18);\n colors[213] = new java.awt.Color(255, 192, 21);\n colors[214] = new java.awt.Color(255, 193, 25);\n colors[215] = new java.awt.Color(255, 195, 29);\n colors[216] = new java.awt.Color(255, 197, 36);\n colors[217] = new java.awt.Color(255, 198, 40);\n colors[218] = new java.awt.Color(255, 200, 43);\n colors[219] = new java.awt.Color(255, 202, 51);\n colors[220] = new java.awt.Color(255, 204, 54);\n colors[221] = new java.awt.Color(255, 206, 61);\n colors[222] = new java.awt.Color(255, 207, 65);\n colors[223] = new java.awt.Color(255, 210, 72);\n colors[224] = new java.awt.Color(255, 211, 76);\n colors[225] = new java.awt.Color(255, 214, 83);\n colors[226] = new java.awt.Color(255, 216, 91);\n colors[227] = new java.awt.Color(255, 219, 98);\n colors[228] = new java.awt.Color(255, 221, 105);\n colors[229] = new java.awt.Color(255, 223, 109);\n colors[230] = new java.awt.Color(255, 225, 116);\n colors[231] = new java.awt.Color(255, 228, 123);\n colors[232] = new java.awt.Color(255, 232, 134);\n colors[233] = new java.awt.Color(255, 234, 142);\n colors[234] = new java.awt.Color(255, 237, 149);\n colors[235] = new java.awt.Color(255, 239, 156);\n colors[236] = new java.awt.Color(255, 240, 160);\n colors[237] = new java.awt.Color(255, 243, 167);\n colors[238] = new java.awt.Color(255, 246, 174);\n colors[239] = new java.awt.Color(255, 248, 182);\n colors[240] = new java.awt.Color(255, 249, 185);\n colors[241] = new java.awt.Color(255, 252, 193);\n colors[242] = new java.awt.Color(255, 253, 196);\n colors[243] = new java.awt.Color(255, 255, 204);\n colors[244] = new java.awt.Color(255, 255, 207);\n colors[245] = new java.awt.Color(255, 255, 211);\n colors[246] = new java.awt.Color(255, 255, 218);\n colors[247] = new java.awt.Color(255, 255, 222);\n colors[248] = new java.awt.Color(255, 255, 225);\n colors[249] = new java.awt.Color(255, 255, 229);\n colors[250] = new java.awt.Color(255, 255, 233);\n colors[251] = new java.awt.Color(255, 255, 236);\n colors[252] = new java.awt.Color(255, 255, 240);\n colors[253] = new java.awt.Color(255, 255, 244);\n colors[254] = new java.awt.Color(255, 255, 247);\n colors[255] = new java.awt.Color(255, 255, 255);\n }",
"int surfaceTemperature(C config);",
"private int getPartialWingHeatBonus() {\n int bonus = 0;\n if (game != null) {\n switch (game.getPlanetaryConditions().getAtmosphere()) {\n case PlanetaryConditions.ATMO_VACUUM:\n bonus = 0;\n break;\n case PlanetaryConditions.ATMO_TRACE:\n bonus = 1;\n break;\n case PlanetaryConditions.ATMO_THIN:\n bonus = 2;\n break;\n case PlanetaryConditions.ATMO_STANDARD:\n bonus = 3;\n break;\n case PlanetaryConditions.ATMO_HIGH:\n bonus = 3;\n break;\n case PlanetaryConditions.ATMO_VHIGH:\n bonus = 3;\n break;\n default:\n bonus = 3;\n }\n } else {\n bonus = 3;\n }\n\n return bonus;\n }",
"float getBackgroundPower();",
"public int getBiomeGrassColor()\n {\n return 11176526;\n }",
"public void traitsValues(){\n\t\tsetTracksThatCover(Math.round((ADN.getTracksThatCover() +127)/85)+1);\n\t\tsetAmountOfPixels(Math.round((ADN.getAmountOfPixels() +127)/25)+5);\n\t\tsetAmountOfPoints(Math.round((ADN.getAmountOfPoints() +127)/85)+3);\n\n\t\tthis.getColorTrait();\n\t}",
"public int getHealthScaling()\r\n {\r\n return mHealthScaling;\r\n }",
"public String tempIcon() {\n float tCode = 0;\n String tempIcon = \" \";\n if (readings.size() > 0) {\n tCode = readings.get(readings.size() - 1).temperature;\n if (tCode >= 11) {\n tempIcon = \"huge red temperature high icon\";\n } else if (tCode <= 10.99) {\n tempIcon = \"huge blue temperature low icon\";\n } else {\n tempIcon = \"huge temperature low icon\";\n }\n }\n return tempIcon;\n }",
"public float c() {\n if (this.f3465c) {\n return BitmapDescriptorFactory.HUE_RED;\n }\n com.airbnb.lottie.g.a g2 = g();\n if (g2.d()) {\n return BitmapDescriptorFactory.HUE_RED;\n }\n return (this.f3467e - g2.b()) / (g2.c() - g2.b());\n }",
"int getShade(){\n return getPercentageValue(\"shade\");\n }",
"@Override\n public void drawHeatFlux() {\n }",
"int getColour();",
"public int getRgbColorAtPowerOn()\n {\n return _rgbColorAtPowerOn;\n }",
"public String getColourMax()\n {\n return colourMax;\n }",
"private void refreshHeat(){\n\n if (this.selectedTrain.getHeat() == 1){\n\n this.heatOnRadioButton.setSelected(true);\n // update heat until set heat\n if (this.selectedTrain.getTemp() <= this.setTemp){ this.selectedTrain.updateTemp();}\n }\n else if (this.selectedTrain.getHeat() == 0){ this.heatOffRadioButton.setSelected(true);}\n else if (this.selectedTrain.getHeat() == -1){ this.heatFailureRadioButton.setSelected(true); }\n }",
"int getHighLightColor();",
"public int getBiomeGrassColor()\n {\n double d0 = (double)this.getFloatTemperature();\n double d1 = (double)this.getFloatRainfall();\n return ((ColorizerGrass.getGrassColor(d0, d1) & 16711422) + 5115470) / 2;\n }",
"public short[][] getIntensity(){ return intensity; }",
"String getColour();",
"@Override\r\n public int getTemperature(){\r\n return 10;\r\n }",
"private boolean m(){\r\n int m = countColors - maxSat;\r\n if (m <= TH){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }",
"public int getBiomeGrassColor()\n {\n double d = getFloatTemperature();\n double d1 = getFloatRainfall();\n return ((ColorizerGrass.getGrassColor(d, d1) & 0xfefefe) + 0x4e0e4e) / 2;\n }",
"@Override\n public void update(int n, int n2) {\n void mouseY;\n void mouseX;\n super.update((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n double difference = Math.min(95, Math.max(0, (int)(mouseX - this.getX())));\n this.hueWidth = Float.intBitsToFloat(Float.floatToIntBits(0.012939732f) ^ 0x7EEB012B) * (hsb[0] * Float.intBitsToFloat(Float.floatToIntBits(0.22324012f) ^ 0x7DD0990F) / Float.intBitsToFloat(Float.floatToIntBits(0.07544195f) ^ 0x7E2E814F));\n this.satWidth = Float.intBitsToFloat(Float.floatToIntBits(0.009555363f) ^ 0x7EA18E19) * (hsb[1] * Float.intBitsToFloat(Float.floatToIntBits(0.021556562f) ^ 0x7F049763) / Float.intBitsToFloat(Float.floatToIntBits(0.026331188f) ^ 0x7F63B481));\n this.briWidth = Float.intBitsToFloat(Float.floatToIntBits(0.02392782f) ^ 0x7E790447) * (hsb[2] * Float.intBitsToFloat(Float.floatToIntBits(0.09763377f) ^ 0x7E73F437) / Float.intBitsToFloat(Float.floatToIntBits(0.019418718f) ^ 0x7F2B1401));\n this.alphaWidth = Float.intBitsToFloat(Float.floatToIntBits(0.010174015f) ^ 0x7E9BB0E9) * ((float)this.setting.getValue().getAlpha() / Float.intBitsToFloat(Float.floatToIntBits(0.0089911735f) ^ 0x7F6C4FB7));\n this.changeColor(difference, new Color(Color.HSBtoRGB((float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.15404371830294214) ^ 0x7F9477B45E21F7BFL) * Double.longBitsToDouble(Double.doubleToLongBits(0.050973544293479105) ^ 0x7FDC99345367453FL) / Double.longBitsToDouble(Double.doubleToLongBits(0.03014217321508198) ^ 0x7FE85D9700C1AF0AL)), hsb[1], hsb[2])), new Color(Color.HSBtoRGB(Float.intBitsToFloat(Float.floatToIntBits(1.8279414E38f) ^ 0x7F0984DF), hsb[1], hsb[2])), this.hueDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.1223112785883676) ^ 0x7FE88FCABD780F54L) * Double.longBitsToDouble(Double.doubleToLongBits(0.026943886254004668) ^ 0x7FED172D9927021DL) / Double.longBitsToDouble(Double.doubleToLongBits(0.05427001644334754) ^ 0x7FDD4947938E1C55L)), hsb[2])), new Color(Color.HSBtoRGB(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(1.1082437E38f) ^ 0x7EA6BFFF), hsb[2])), this.saturationDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], hsb[1], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.12328622126775308) ^ 0x7FE84FAF90647595L) * Double.longBitsToDouble(Double.doubleToLongBits(0.09854681448488288) ^ 0x7FCFBA5D315669BFL) / Double.longBitsToDouble(Double.doubleToLongBits(0.029067112480345214) ^ 0x7FEB43C4E5F80CC0L)))), new Color(Color.HSBtoRGB(hsb[0], hsb[1], Float.intBitsToFloat(Float.floatToIntBits(3.3573391E38f) ^ 0x7F7C9400))), this.brightnessDragging);\n this.changeAlpha(difference, (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.014823398455503097) ^ 0x7FD99BBADCA7DC11L) * Double.longBitsToDouble(Double.doubleToLongBits(0.013271171619186513) ^ 0x7FE4CDEA80AC0D24L) / Double.longBitsToDouble(Double.doubleToLongBits(0.08218747250746601) ^ 0x7FDAEA3CFA8F7AADL)), this.alphaDragging);\n }",
"public void showSaturation()\r\n {\r\n\tshowSaturation(\"Saturation\");\r\n }",
"double getTransparency();",
"public Float getHoatts() {\r\n return hoatts;\r\n }",
"int getTint(){\n return getPercentageValue(\"tint\");\n }",
"@Override\n public int getHeatCapacityWithWater() {\n if (hasLaserHeatSinks()) {\n return getHeatCapacity();\n }\n return getHeatCapacity() + Math.min(sinksUnderwater(), 6);\n }",
"public Float getT1B11Pfg() {\r\n return t1B11Pfg;\r\n }",
"protected final Color getColor() {\n\t\treturn tile.getColor();\n\t}",
"public String getPieceColor(){\n\t\t\n\t\tif(xPosition>=ColumnNumber.firstColumn.ordinal() && xPosition<=ColumnNumber.eightColumn.ordinal() && xPosition>=RowNumber.firstRow.ordinal() && xPosition<=RowNumber.eightRow.ordinal()){\n\t\t\t\n\t\t\tif(isIcon){\n\t\t\t\treturn piece.getColor();\n\t\t\t}else{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\r\n public String getInfo(){\r\n String info = \"Temperature\\n\" + temperature.toString();\r\n if (temperature.getValue() <= 36.0){\r\n info += \"\\nAttention! The temperature is off the healthy values, you can enter hypothermia state, please consider seeing a doctor.\";\r\n } else if (temperature.getValue() >= 37.4) {\r\n info += \"\\nAttention! The temperature is off the healthy values, you have a fever, please consider seeing a doctor.\";\r\n } else {\r\n info += \"\\nHealthy!\";\r\n }\r\n return info + \"\\n--------------------------------------------\\n\";\r\n }",
"public int getInitialConfig() {\n if (initialConfig.equals(\"TOTALSUM\")) {\n return 2;\n }\n if (initialConfig.equals(\"PROBABILISTIC\")) {\n return 1;\n }\n if (initialConfig.equals(\"DETERMINISTIC\")) {\n return 0;\n }\n else {\n throw new IllegalArgumentException(\"Illegal way of generating grid\");\n }\n }",
"@Override\r\n\tpublic Integer getPropensity_smallpur_decile() {\n\t\treturn super.getPropensity_smallpur_decile();\r\n\t}",
"private void initializeHeatMapOptions() {\n heatMapOptions = new HashMap<>();\n heatMapOptions.put(\"leftShift\", \"0\");\n heatMapOptions.put(\"rightShift\", \"0\");\n heatMapOptions.put(\"reportColumnDisplayName\", \"\");\n heatMapOptions.put(\"activateHeatMap\", \"false\");\n\n }",
"@Override\r\n\tpublic Integer getPropensity_trust_decile() {\n\t\treturn super.getPropensity_trust_decile();\r\n\t}",
"public double getTwoColourCost() {\n return 0.16;\n }",
"public double getH();",
"int getLum(){\n return getPercentageValue(\"lum\");\n }",
"public IntegerProperty getTemp() {\n\t\treturn temperature;\n\t}",
"private int getIntensity()\t\t\t\n\t{\n\t\treturn intensity;\n\t}",
"@Override\r\n\tpublic void autoSeatHeat() {\n\t\t\r\n\t}",
"@Override\n public double getBaseTempHeat(Integer thermostatId) {\n\n String ql = \"SELECT te FROM PartitionedThermostatEvent te WHERE te.thermostatId = :thermostatId ORDER BY te.id.eventSysTime DESC\";\n Map<String, Object> paramVals = new HashMap<String, Object>();\n paramVals.put(\"thermostatId\", thermostatId);\n PartitionedThermostatEvent thEvent = findByQuery(ql, paramVals);\n double deltaEE = thEvent.getDeltaEE();\n double baseTemp = thEvent.getNewSetting();\n\n // deltaEE for heat = new setting + base temperature\n // deltaEE is greater than zero or less than zero\n if (deltaEE != 0) {\n baseTemp = baseTemp + deltaEE;\n }\n\n return baseTemp;\n }",
"public void setBgColours(weatherData tmp) {\n\t\t\t\t\tswitch(tmp.getCondit()) {\n\t\t\t\t\t\tcase \"sky is clear \":\n\t\t\t\t\t\tcase \"clear sky \":\n\t\t\t\t\t\tcase \"Sky is Clear \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(255, 215,0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(255, 111, 0);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"few clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 255, 0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(9, 173, 33);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"scattered clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 90);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(45, 110, 35);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"broken clouds \":\n\t\t\t\t\t\tcase \"overcast clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 150);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 150, 130);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"shower rain \":\n\t\t\t\t\t\tcase \"light intensity drizzle \":\n\t\t\t\t\t\tcase \"drizzle \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle \":\n\t\t\t\t\t\tcase \"light intensity drizzle rain \":\n\t\t\t\t\t\tcase \"drizzle rain \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle rain \":\n\t\t\t\t\t\tcase \"shower rain and drizzle \":\n\t\t\t\t\t\tcase \"heavy shower rain and drizzle \":\n\t\t\t\t\t\tcase \"shower drizzle \":\n\t\t\t\t\t\tcase \"light intensity shower rain \":\n\t\t\t\t\t\tcase \"heavy intensity shower rain \":\n\t\t\t\t\t\tcase \"ragged shower rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0,255,255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 130, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"rain \":\n\t\t\t\t\t\tcase \"light rain \":\n\t\t\t\t\t\tcase \"moderate rain \":\n\t\t\t\t\t\tcase \"heavy intensity rain \":\n\t\t\t\t\t\tcase \"very heavy rain \":\n\t\t\t\t\t\tcase \"extreme rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 166, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 50, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light rain \":\n\t\t\t\t\t\tcase \"thunderstorm with rain \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy rain \":\n\t\t\t\t\t\tcase \"light thunderstorm \":\n\t\t\t\t\t\tcase \"heavy thunderstorm \":\n\t\t\t\t\t\tcase \"ragged thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy drizzle \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 95, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(60, 30, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"snow \":\n\t\t\t\t\t\tcase \"freezing rain \":\n\t\t\t\t\t\tcase \"light snow \":\n\t\t\t\t\t\tcase \"heavy snow \":\n\t\t\t\t\t\tcase \"sleet \":\n\t\t\t\t\t\tcase \"shower sleet \":\n\t\t\t\t\t\tcase \"light rain and snow \":\n\t\t\t\t\t\tcase \"rain and snow \":\n\t\t\t\t\t\tcase \"light shower snow \":\n\t\t\t\t\t\tcase \"shower snow \":\n\t\t\t\t\t\tcase \"heavy shower snow \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(145, 245, 245);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(75, 150, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"mist \":\n\t\t\t\t\t\tcase \"smoke \":\n\t\t\t\t\t\tcase \"haze \":\n\t\t\t\t\t\tcase \"sand, dust whirls \":\n\t\t\t\t\t\tcase \"fog \":\n\t\t\t\t\t\tcase \"sand \":\n\t\t\t\t\t\tcase \"dust \":\n\t\t\t\t\t\tcase \"volcanic ash \":\n\t\t\t\t\t\tcase \"squalls \":\n\t\t\t\t\t\tcase \"tornado \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(200, 210, 210);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(85, 110, 100);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 120, 240);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 10, 90);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"TileRenderProperties getTileRenderProperties();",
"public double getHumidity() {\n\t\treturn (int)(Math.random()*101);//模拟一个随机湿度\n\t}",
"public int getColour()\r\n\t{\r\n\t\treturn colour;\r\n\t}",
"public String getPixelInfo()\n {\n return pixelInfo.toString();\n }",
"int getLumOff(){\n return getPercentageValue(\"lumOff\");\n }",
"public int getTempDmg(){\r\n return tDmg;\r\n }",
"int getMinimalPaletteDistance();",
"private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }",
"public Color getMinorGridColor() {\r\n return minorGridColor;\r\n }",
"public double GetMashTemperature() {\n\t\treturn msc.GetMashTemperature();\n\t}",
"float getTemperature();",
"int getZoomPref();",
"public Color getDateCenterGridPairForegroundColor() {\n\t\treturn dateCenterGridPairForegroundColor;\n\t}",
"public boolean hypixel() {\n return hypixel;\n }",
"public int getColour() {\n return colour;\n }",
"int getBlockTint(fd world, int original, int x, int y, int z, TintType ttype) {\n /*if (true)*/return original; //blarg :<\n /*double temperature = 0.0;\n double humidity = 0.0;\n switch (ttype)\n {\n case GRASS:\n // world.getWorldChunkManager().func_4069_a(i, k, 1, 1);\n synchronized (world)\n {\n world.a().a(x, z, 1, 1);\n // double d =\n // iblockaccess.getWorldChunkManager().temperature[0];\n \n temperature = world.a().a[0];\n // double humidity =\n // iblockaccess.getWorldChunkManager().humidity[0];\n humidity = world.a().b[0];\n }\n // return ColorizerGrass.\n try\n {\n return colorMult(original, hx.a(temperature, humidity));\n }\n catch (Throwable t)\n {\n System.err.println(\"err on temp \" + temperature + \" and humid \" + humidity);\n t.printStackTrace();\n }\n case FOLIAGE:\n synchronized(world)\n {\n world.a().a(x, z, 1, 1);\n temperature = world.a().a[0];\n humidity = world.a().b[0];\n }\n try\n {\n // return ColorizerFoliage.getFoliageColor\n return colorMult(original, je.a(temperature, humidity));\n }\n catch (Throwable t)\n {\n System.err.println(\"err on temp \" + temperature + \" and humid \" + humidity);\n t.printStackTrace();\n }\n case PINE:\n return colorMult(original, je.a());\n case BIRCH:\n return colorMult(original, je.b());\n case REDSTONE:\n \n int blockmeta = world.e(x, y, z);\n // TODO: this could be integer math, instead of going to/from\n // float\n float floatmeta = (float)blockmeta / 15F;\n float r = floatmeta * 0.6F + 0.4F;\n if (blockmeta == 0)\n {\n r = 0.0F;\n }\n float g = floatmeta * floatmeta * 0.7F - 0.5F;\n float b = floatmeta * floatmeta * 0.6F - 0.7F;\n if (g < 0.0F)\n {\n g = 0.0F;\n }\n if (b < 0.0F)\n {\n b = 0.0F;\n }\n int tint = ((int)(b * 0xff)) + (((int)(g * 0xff)) << 8) + (((int)(r * 0xff)) << 16);\n return colorMult(original, tint);\n default:\n return original;\n }*/\n }",
"public int[] getGrassTileRaw() {\n return grassTileRaw;\n }",
"public Color getGridColor() {\n return this.gridColor;\n }",
"public int getTileLevel()\n {\n return tileLevel;\n }",
"private void determineState() {\n if ( .66 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.HIGH ) {\n currentState = HealthState.HIGH;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }\n } else if ( .33 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.MEDIUM ) {\n currentState = HealthState.MEDIUM;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"mediumHealth\" ) ) );\n }\n }\n } else if ( .0 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.LOW ) {\n currentState = HealthState.LOW;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"lowHealth\" ) ) );\n }\n }\n }\n }",
"public int getTileType() {\r\n\t\treturn 3;\r\n\t}",
"public int getBiomeFoliageColor()\n {\n double d = getFloatTemperature();\n double d1 = getFloatRainfall();\n return ((ColorizerFoliage.getFoliageColor(d, d1) & 0xfefefe) + 0x4e0e4e) / 2;\n }",
"public int getTemperature() {\n\t\treturn temperature;\n\t}",
"public int getTemperature() {\n return temperature;\n }",
"public short getColor()\n {\n return font.getColorPaletteIndex();\n }",
"protected float getHealthPoint() {\n\t\treturn healthPoint;\n\t}",
"public int elevation(){\n return elevation;\n }",
"void deriveImage()\n\t{\n\n\t\t//img = new BufferedImage(dimx, dimy, BufferedImage.TYPE_INT_ARGB);\n\t\timg = null;\n\t\ttry{\n\t\t\timg = ImageIO.read(new File(\"src/input/World.png\"));\n\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"world image file error\");\n\t\t}\n\t\t//System.out.println(img.getHeight());\n\t\t//System.out.println(img.getWidth());\n//\t\tfloat maxh = -10000.0f, minh = 10000.0f;\n//\n//\t\t// determine range of tempVals s\n//\t\tfor(int x=0; x < dimx; x++)\n//\t\t\tfor(int y=0; y < dimy; y++) {\n//\t\t\t\tfloat h = tempVals [x][y];\n//\t\t\t\tif(h > maxh)\n//\t\t\t\t\tmaxh = h;\n//\t\t\t\tif(h < minh)\n//\t\t\t\t\tminh = h;\n//\t\t\t}\n\t\t\n\t\tfor(int x=0; x < dimx; x++)\n\t\t\tfor(int y=0; y < dimy; y++) {\n\t\t\t\t \t\n\t\t\t\t// find normalized tempVals value in range\n\t\t\t\t//float val = (tempVals [x][y] - minh) / (maxh - minh);\n\t\t\t\tfloat val = tempVals[x][y];\n\n\t\t\t\t//System.out.println(val);\n\n\t\t\t\tColor c = new Color(img.getRGB(x,y));\n\n\t\t\t\tif((c.getRed() > 50 && c.getGreen() > 100 && c.getBlue() < 200)) {\n\n\t\t\t\t\tif (val != 0.0f) {\n\t\t\t\t\t\tColor col = new Color(val, 0, 0);\n\t\t\t\t\t\timg.setRGB(x, y, col.getRGB());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\t\n\t}",
"public double[] value(){\n\t\treturn intensity;\n\t}",
"@Override \n public double getTemperature() { \n return pin.getValue();\n }",
"public float getHourHeight() {\n return config.hourHeight;\n }",
"public int getLight();",
"public TileStatus getHighlight(){\r\n return highLight;\r\n }",
"int getHat();",
"public int getTile(int t) {\n switch (t) {\n case HARDFLOOR: return hardfloors[type];\n case HARDWALL: return hardwalls[type];\n case SOFTFLOOR: return softfloors[type];\n case SOFTWALL: return softwalls[type];\n case STREAM: return streams[type];\n case RIVER: return rivers[type];\n } \n return Tile.WALL;\n }",
"public double getBrightness() {return brightness; }",
"public int getPrimaryLight(){\n return this.lightColor;\n }",
"public Color getDateCenterGridImpairForegroundColor() {\n\t\treturn dateCenterGridImpairForegroundColor;\n\t}",
"public Getter reqGetTemperatureSetting1() {\n\t\t\treqGetProperty(EPC_TEMPERATURE_SETTING1);\n\t\t\treturn this;\n\t\t}",
"@Override\n public double getInfectivity(double heat, double dampness, double wealth) {\n return (infectivity * (1.0 - wealth));\n }",
"public float getCohesion() {\n\treturn 0;\n }",
"public String getBubbleColour(){\n return myBathtub.getBubbleColour();\n }"
]
| [
"0.7116919",
"0.70638615",
"0.67746866",
"0.6597034",
"0.6585494",
"0.65530837",
"0.6496295",
"0.61680573",
"0.6162286",
"0.6095377",
"0.5997687",
"0.59598786",
"0.591457",
"0.589767",
"0.5884603",
"0.58588815",
"0.5798203",
"0.57910395",
"0.5774176",
"0.57307476",
"0.57111293",
"0.5690272",
"0.56877273",
"0.56874514",
"0.56616294",
"0.5645179",
"0.56073177",
"0.5578088",
"0.5567943",
"0.55605865",
"0.5543075",
"0.55380064",
"0.552508",
"0.55040145",
"0.5477736",
"0.5464808",
"0.54461527",
"0.5445717",
"0.54395926",
"0.54269683",
"0.5408594",
"0.5406762",
"0.5406732",
"0.54021883",
"0.5399985",
"0.5384736",
"0.53649116",
"0.53647625",
"0.5362063",
"0.5361342",
"0.53525025",
"0.5348215",
"0.53455925",
"0.5338387",
"0.53357315",
"0.533551",
"0.53319234",
"0.53193444",
"0.5317587",
"0.53173965",
"0.5317217",
"0.53153586",
"0.5308015",
"0.5298141",
"0.52957153",
"0.52938867",
"0.5290478",
"0.52869475",
"0.5282345",
"0.52772665",
"0.52680844",
"0.5261282",
"0.5254807",
"0.5248328",
"0.52404344",
"0.5226067",
"0.52248675",
"0.52232367",
"0.5217339",
"0.52170324",
"0.521607",
"0.52153605",
"0.5212494",
"0.520725",
"0.52012926",
"0.51987386",
"0.5198248",
"0.519662",
"0.51926595",
"0.51896346",
"0.5186522",
"0.51851064",
"0.5182041",
"0.5177944",
"0.51770157",
"0.51685494",
"0.51677793",
"0.5166806",
"0.51664597",
"0.5165197"
]
| 0.83520055 | 0 |
to string method for this class | @Override
public String toString()
{
return String.format("%s Heat setting:%d Automatic Shutoff:%d", super.toString(), heat_setting, auto_shutoff);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() { return stringify(this, true); }",
"public String toString() ;",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"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();",
"@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }",
"public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }",
"@Override\n String toString();",
"@Override\n String toString();",
"public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }",
"public String toString() {\n\treturn createString(data);\n }",
"@Override\r\n String toString();",
"@Override 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();",
"@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}",
"@Override String toString();",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"public String toString() {\n\t}",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"@Override\n\tString toString();",
"@Override\n public String toString() {\n return toString(false, true, true, null);\n }",
"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}",
"@Override\r\n public String toString();",
"public String toString(){\r\n\t\tString output=\"\";\r\n\t\toutput+=super.toString();\r\n\t\treturn output;\r\n\t}",
"@Override\n String toString();",
"public String toString() { return \"\"; }",
"public String toString() { return \"\"; }",
"@Override\r\n\tpublic String toString();",
"@Override\n\tpublic String toString();",
"@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }",
"@Override\n public String toString();",
"@Override\n public String toString();",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"public String toString() {\n\t\treturn toString(this);\n\t}",
"@Override\n public String toString(){\n return toString(false);\n }",
"public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}",
"public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}",
"public String toString() {\n \t\treturn super.toString();\n \t}",
"public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}",
"@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"public String toString() {\n\t\treturn toString(true);\n\t}",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();"
]
| [
"0.77552855",
"0.7594906",
"0.7508153",
"0.7488936",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7486516",
"0.7452624",
"0.74506146",
"0.7393267",
"0.7393267",
"0.73844045",
"0.73648894",
"0.73626727",
"0.73543763",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.7353128",
"0.73424816",
"0.7339238",
"0.73369175",
"0.7310772",
"0.7310093",
"0.72929144",
"0.72884214",
"0.72764856",
"0.72734123",
"0.7260507",
"0.72574854",
"0.7243438",
"0.7243438",
"0.72432005",
"0.72273386",
"0.72249013",
"0.72170323",
"0.72170323",
"0.72061515",
"0.7185828",
"0.71810204",
"0.7175216",
"0.7169556",
"0.71692866",
"0.71663004",
"0.71613073",
"0.7146056",
"0.7143488",
"0.7138593",
"0.7133823",
"0.7133823",
"0.7133823",
"0.7133823",
"0.7133823",
"0.7133823",
"0.7133823",
"0.7133823",
"0.7133823",
"0.7133823"
]
| 0.0 | -1 |
When a collectors interface extends ThreadReporter it adds the ability for metrics reported to that collectors interface to be associated with each other if reported from the same thread. Imagine a rest call where you want to report various metrics and different points along the call path that you want to tag with the url path the request came in on. You would create a collectors interface that extends ThreadReporter and then call addTag to set the resource url as a tag. Then each call on the collectors will put that tag. Items set on the ThreadReporter will only effect calls to the collectors on the same thread. | public interface ThreadReporter
{
/**
Set the time for data points to be reported
@param time
*/
void setReportTime(long time);
/**
This lets you put a tag to all data points submitted to sub interfaces of
ThreadReporter
@param name
@param value
*/
void addTag(String name, String value);
void removeTag(String name);
void clearTags();
void clearAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void collect(MetricsCollector collector);",
"@ApiStatus.Internal\npublic interface ICollector {\n\n void setup();\n\n void collect(final @NotNull PerformanceCollectionData performanceCollectionData);\n}",
"void addThreadFilter(ThreadReference thread);",
"public interface GaugeDataCollector {\n\n /**\n * Return a collection of @link {MeasurementBundle} objects. Each bundle can have one or more\n * View/Value pairs and zero or more metadata AttachmentKey/String pairs. There a 1:1\n * correspondence between MeasurementBundles returned and instantiation of MeasureMaps (and calls\n * to record).\n *\n * <p>If a class has no attachments to provide, then it's fine to include all samples in a single\n * MeasurementBundle, which will save calls to the metrics backend.\n *\n * @return collection of MeasurementBundles to be recorded.\n */\n Collection<MeasurementBundle> getGaugeData();\n}",
"public void setCollector(ICollector collector) {\n this.collector = collector;\n }",
"public interface IThreadMonitorService {\n public ThreadMonitorInfo getThreadInfo();\n\n}",
"@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)\n private void addTrafficStatsTag(Request<?> request) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n TrafficStats.setThreadStatsTag(request.getTrafficStatsTag());\n }\n }",
"void addDownloadThread(String parGroup, ThreadDownloadImageData parResource)\n {\n if (getDownloadThread(parGroup) == null)\n {\n downloadThreads.put(parGroup, parResource);\n }\n }",
"void threadAdded(String threadId);",
"public interface TestReporterAppender {\n\n void logMessage(String sMessage, boolean bError);\n\n void logMessage(String sMessage, Throwable t);\n\n void init();\n\n void traceExecution(CommandRequest cRequest, OpResult rResult);\n\n void traceExecution(HttpOpRequest request);\n}",
"public Collection getThreads();",
"public static void registerConnectionMetricTracker(RequestDurationTracker requestDurationTracker) {\n REQUEST_DURATION_TRACKERS.add(requestDurationTracker);\n }",
"public interface ICollect {\n\n}",
"public interface MetricRegistry {\n\n /**\n * An enumeration representing the scopes of the MetricRegistry\n */\n enum Type {\n /**\n * The Application (default) scoped MetricRegistry. Any metric registered/accessed via CDI will use this\n * MetricRegistry.\n */\n APPLICATION(\"application\"),\n\n /**\n * The Base scoped MetricRegistry. This MetricRegistry will contain required metrics specified in the\n * MicroProfile Metrics specification.\n */\n BASE(\"base\"),\n\n /**\n * The Vendor scoped MetricRegistry. This MetricRegistry will contain vendor provided metrics which may vary\n * between different vendors.\n */\n VENDOR(\"vendor\");\n\n private final String name;\n\n Type(String name) {\n this.name = name;\n }\n\n /**\n * Returns the name of the MetricRegistry scope.\n *\n * @return the scope\n */\n public String getName() {\n return name;\n }\n }\n\n /**\n * Concatenates elements to form a dotted name, eliding any null values or empty strings.\n *\n * @param name\n * the first element of the name\n * @param names\n * the remaining elements of the name\n * @return {@code name} and {@code names} concatenated by periods\n */\n static String name(String name, String... names) {\n List<String> ns = new ArrayList<>();\n ns.add(name);\n ns.addAll(asList(names));\n return ns.stream().filter(part -> part != null && !part.isEmpty()).collect(joining(\".\"));\n }\n\n /**\n * Concatenates a class name and elements to form a dotted name, eliding any null values or empty strings.\n *\n * @param klass\n * the first element of the name\n * @param names\n * the remaining elements of the name\n * @return {@code klass} and {@code names} concatenated by periods\n */\n static String name(Class<?> klass, String... names) {\n return name(klass.getCanonicalName(), names);\n }\n\n /**\n * Given a {@link Metric}, registers it under a {@link MetricID} with the given name and with no tags. A\n * {@link Metadata} object will be registered with the name and type. However, if a {@link Metadata} object is\n * already registered with this metric name and is not equal to the created {@link Metadata} object then an\n * exception will be thrown.\n *\n * @param name\n * the name of the metric\n * @param metric\n * the metric\n * @param <T>\n * the type of the metric\n * @return {@code metric}\n * @throws IllegalArgumentException\n * if the name is already registered or if Metadata with different values has already been registered\n * with the name\n */\n <T extends Metric> T register(String name, T metric) throws IllegalArgumentException;\n\n /**\n * Given a {@link Metric} and {@link Metadata}, registers the metric with a {@link MetricID} with the name provided\n * by the {@link Metadata} and with no tags.\n * <p>\n * Note: If a {@link Metadata} object is already registered under this metric name and is not equal to the provided\n * {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the metadata\n * @param metric\n * the metric\n * @param <T>\n * the type of the metric\n * @return {@code metric}\n * @throws IllegalArgumentException\n * if the name is already registered or if Metadata with different values has already been registered\n * with the name\n *\n * @since 1.1\n */\n <T extends Metric> T register(Metadata metadata, T metric) throws IllegalArgumentException;\n\n /**\n * Given a {@link Metric} and {@link Metadata}, registers both under a {@link MetricID} with the name provided by\n * the {@link Metadata} and with the provided {@link Tag}s.\n * <p>\n * Note: If a {@link Metadata} object is already registered under this metric name and is not equal to the provided\n * {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the metadata\n * @param metric\n * the metric\n * @param <T>\n * the type of the metric\n * @param tags\n * the tags of the metric\n * @return {@code metric}\n * @throws IllegalArgumentException\n * if the name is already registered or if Metadata with different values has already been registered\n * with the name\n *\n * @since 2.0\n */\n <T extends Metric> T register(Metadata metadata, T metric, Tag... tags) throws IllegalArgumentException;\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Counter} if none is registered.\n *\n * If a {@link Counter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Counter}\n */\n Counter counter(String name);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link Counter} if none is registered.\n *\n * If a {@link Counter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Counter}\n *\n * @since 2.0\n */\n Counter counter(String name, Tag... tags);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID}; or create and register a new {@link Counter} if\n * none is registered.\n *\n * If a {@link Counter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Counter}\n *\n * @since 3.0\n */\n Counter counter(MetricID metricID);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with the {@link Metadata}'s name and with no\n * tags; or create and register a new {@link Counter} if none is registered. If a {@link Counter} was created, the\n * provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Counter}\n */\n Counter counter(Metadata metadata);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Counter} if none is registered. If a {@link Counter}\n * was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Counter}\n *\n * @since 2.0\n */\n Counter counter(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with this name; or create and register a\n * new {@link ConcurrentGauge} if none is registered. If a {@link ConcurrentGauge} was created, a {@link Metadata}\n * object will be registered with the name and type.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(String name);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link ConcurrentGauge} if none is registered. If a\n * {@link ConcurrentGauge} was created, a {@link Metadata} object will be registered with the name and type.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(String name, Tag... tags);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID}; or create and register a new\n * {@link ConcurrentGauge} if none is registered. If a {@link ConcurrentGauge} was created, a {@link Metadata}\n * object will be registered with the name and type.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n *\n * @since 3.0\n */\n ConcurrentGauge concurrentGauge(MetricID metricID);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with the {@link Metadata}'s name; or\n * create and register a new {@link ConcurrentGauge} if none is registered. If a {@link ConcurrentGauge} was\n * created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(Metadata metadata);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with the {@link Metadata}'s name and\n * with the provided {@link Tag}s; or create and register a new {@link ConcurrentGauge} if none is registered. If a\n * {@link ConcurrentGauge} was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Gauge} of type {@link java.lang.Number Number} registered under the {@link MetricID} with this\n * name and with the provided {@link Tag}s; or create and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will apply a {@link java.util.function.Function Function} to the provided object to\n * resolve a {@link java.lang.Number Number} value.\n *\n * @param <T>\n * The Type of the Object of which the function <code>func</code> is applied to\n * @param <R>\n * A {@link java.lang.Number Number}\n * @param name\n * The name of the Gauge metric\n * @param object\n * The object that the {@link java.util.function.Function Function} <code>func</code> will be applied to\n * @param func\n * The {@link java.util.function.Function Function} that will be applied to <code>object</code>\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T, R extends Number> Gauge<R> gauge(String name, T object, Function<T, R> func, Tag... tags);\n\n /**\n * Return the {@link Gauge} of type {@link java.lang.Number Number} registered under the {@link MetricID}; or create\n * and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will apply a {@link java.util.function.Function Function} to the provided object to\n * resolve a {@link java.lang.Number Number} value.\n *\n * @param <T>\n * The Type of the Object of which the function <code>func</code> is applied to\n * @param <R>\n * A {@link java.lang.Number Number}\n * @param metricID\n * The MetricID of the Gauge metric\n * @param object\n * The object that the {@link java.util.function.Function Function} <code>func</code> will be applied to\n * @param func\n * The {@link java.util.function.Function Function} that will be applied to <code>object</code>\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T, R extends Number> Gauge<R> gauge(MetricID metricID, T object, Function<T, R> func);\n\n /**\n * Return the {@link Gauge} of type {@link java.lang.Number Number} registered under the {@link MetricID} with\n * the @{link Metadata}'s name and with the provided {@link Tag}s; or create and register this gauge if none is\n * registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will apply a {@link java.util.function.Function Function} to the provided object to\n * resolve a {@link java.lang.Number Number} value.\n *\n * @param <T>\n * The Type of the Object of which the function <code>func</code> is applied to\n * @param <R>\n * A {@link java.lang.Number Number}\n * @param metadata\n * The Metadata of the Gauge\n * @param object\n * The object that the {@link java.util.function.Function Function} <code>func</code> will be applied to\n * @param func\n * The {@link java.util.function.Function Function} that will be applied to <code>object</code>\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T, R extends Number> Gauge<R> gauge(Metadata metadata, T object, Function<T, R> func, Tag... tags);\n\n /**\n * Return the {@link Gauge} registered under the {@link MetricID} with this name and with the provided {@link Tag}s;\n * or create and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will return the value that the {@link java.util.function.Supplier Supplier} will\n * provide.\n *\n * @param <T>\n * A {@link java.lang.Number Number}\n * @param name\n * The name of the Gauge\n * @param supplier\n * The {@link java.util.function.Supplier Supplier} function that will return the value for the Gauge\n * metric\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T extends Number> Gauge<T> gauge(String name, Supplier<T> supplier, Tag... tags);\n\n /**\n * Return the {@link Gauge} registered under the {@link MetricID}; or create and register this gauge if none is\n * registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will return the value that the {@link java.util.function.Supplier Supplier} will\n * provide.\n *\n * @param <T>\n * A {@link java.lang.Number Number}\n * @param metricID\n * The {@link MetricID}\n * @param supplier\n * The {@link java.util.function.Supplier Supplier} function that will return the value for the Gauge\n * metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T extends Number> Gauge<T> gauge(MetricID metricID, Supplier<T> supplier);\n\n /**\n * Return the {@link Gauge} registered under the {@link MetricID} with the @{link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will return the value that the {@link java.util.function.Supplier Supplier} will\n * provide.\n *\n * @param <T>\n * A {@link java.lang.Number Number}\n * @param metadata\n * The metadata of the gauge\n * @param supplier\n * The {@link java.util.function.Supplier Supplier} function that will return the value for the Gauge\n * metric\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T extends Number> Gauge<T> gauge(Metadata metadata, Supplier<T> supplier, Tag... tags);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Histogram} if none is registered.\n *\n * If a {@link Histogram} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Histogram}\n */\n Histogram histogram(String name);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link Histogram} if none is registered.\n *\n * If a {@link Histogram} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Histogram}\n *\n * @since 2.0\n */\n Histogram histogram(String name, Tag... tags);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID}; or create and register a new\n * {@link Histogram} if none is registered.\n *\n * If a {@link Histogram} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Histogram}\n *\n * @since 3.0\n */\n Histogram histogram(MetricID metricID);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with the {@link Metadata}'s name and with no\n * tags; or create and register a new {@link Histogram} if none is registered. If a {@link Histogram} was created,\n * the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Histogram}\n */\n Histogram histogram(Metadata metadata);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Histogram} if none is registered. If a\n * {@link Histogram} was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Histogram}\n *\n * @since 2.0\n */\n Histogram histogram(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Meter} if none is registered.\n *\n * If a {@link Meter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Meter}\n */\n Meter meter(String name);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with this name and with the provided {@link Tag}s;\n * or create and register a new {@link Meter} if none is registered.\n *\n * If a {@link Meter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Meter}\n *\n * @since 2.0\n */\n Meter meter(String name, Tag... tags);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID}; or create and register a new {@link Meter} if\n * none is registered.\n *\n * If a {@link Meter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Meter}\n *\n * @since 3.0\n */\n Meter meter(MetricID metricID);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with the {@link Metadata}'s name and with no tags;\n * or create and register a new {@link Meter} if none is registered. If a {@link Meter} was created, the provided\n * {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Meter}\n */\n Meter meter(Metadata metadata);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Meter} if none is registered. If a {@link Meter} was\n * created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Meter}\n *\n * @since 2.0\n */\n Meter meter(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Timer} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Timer} if none is registered.\n *\n * If a {@link Timer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Timer}\n */\n Timer timer(String name);\n\n /**\n * Return the {@link Timer} registered under the {@link MetricID} with this name and with the provided {@link Tag}s;\n * or create and register a new {@link Timer} if none is registered.\n *\n * If a {@link Timer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Timer}\n *\n * @since 2.0\n */\n Timer timer(String name, Tag... tags);\n\n /**\n * Return the {@link Timer} registered under the {@link MetricID}; or create and register a new {@link Timer} if\n * none is registered.\n *\n * If a {@link Timer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Timer}\n *\n * @since 3.0\n */\n Timer timer(MetricID metricID);\n\n /**\n * Return the {@link Timer} registered under the the {@link MetricID} with the {@link Metadata}'s name and with no\n * tags; or create and register a new {@link Timer} if none is registered. If a {@link Timer} was created, the\n * provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Timer}\n */\n Timer timer(Metadata metadata);\n\n /**\n * Return the {@link Timer} registered under the the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Timer} if none is registered. If a {@link Timer} was\n * created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Timer}\n *\n * @since 2.0\n */\n Timer timer(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link SimpleTimer} registered under the {@link MetricID} with this name and with no tags; or create\n * and register a new {@link SimpleTimer} if none is registered.\n *\n * If a {@link SimpleTimer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(String name);\n\n /**\n * Return the {@link SimpleTimer} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link SimpleTimer} if none is registered.\n *\n * If a {@link SimpleTimer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(String name, Tag... tags);\n\n /**\n * Return the {@link SimpleTimer} registered under the {@link MetricID}; or create and register a new\n * {@link SimpleTimer} if none is registered.\n *\n * If a {@link SimpleTimer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 3.0\n */\n SimpleTimer simpleTimer(MetricID metricID);\n\n /**\n * Return the {@link SimpleTimer} registered under the the {@link MetricID} with the {@link Metadata}'s name and\n * with no tags; or create and register a new {@link SimpleTimer} if none is registered. If a {@link SimpleTimer}\n * was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(Metadata metadata);\n\n /**\n * Return the {@link SimpleTimer} registered under the the {@link MetricID} with the {@link Metadata}'s name and\n * with the provided {@link Tag}s; or create and register a new {@link SimpleTimer} if none is registered. If a\n * {@link SimpleTimer} was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Metric} registered for a provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Metric} registered for the provided {@link MetricID} or {@code null} if none has been\n * registered so far\n *\n * @since 3.0\n */\n Metric getMetric(MetricID metricID);\n\n /**\n * Return the {@link Metric} registered for the provided {@link MetricID} as the provided type.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @param asType\n * the return type which is expected to be compatible with the actual type of the registered metric\n * @return the {@link Metric} registered for the provided {@link MetricID} or {@code null} if none has been\n * registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to the provided type\n *\n * @since 3.0\n */\n <T extends Metric> T getMetric(MetricID metricID, Class<T> asType);\n\n /**\n * Return the {@link Counter} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Counter} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Counter}\n *\n * @since 3.0\n */\n Counter getCounter(MetricID metricID);\n\n /**\n * Return the {@link ConcurrentGauge} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link ConcurrentGauge} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link ConcurrentGauge}\n *\n * @since 3.0\n */\n ConcurrentGauge getConcurrentGauge(MetricID metricID);\n\n /**\n * Return the {@link Gauge} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Gauge} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Gauge}\n *\n * @since 3.0\n */\n Gauge<?> getGauge(MetricID metricID);\n\n /**\n * Return the {@link Histogram} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Histogram} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Histogram}\n *\n * @since 3.0\n */\n Histogram getHistogram(MetricID metricID);\n\n /**\n * Return the {@link Meter} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Meter} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Meter}\n *\n * @since 3.0\n */\n Meter getMeter(MetricID metricID);\n\n /**\n * Return the {@link Timer} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Timer} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Timer}\n *\n * @since 3.0\n */\n Timer getTimer(MetricID metricID);\n\n /**\n * Return the {@link SimpleTimer} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link SimpleTimer} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link SimpleTimer}\n *\n * @since 3.0\n */\n SimpleTimer getSimpleTimer(MetricID metricID);\n\n /**\n * Return the {@link Metadata} for the provided name.\n *\n * @param name\n * the name of the metric\n * @return the {@link Metadata} for the provided name of {@code null} if none has been registered for that name\n *\n * @since 3.0\n */\n Metadata getMetadata(String name);\n\n /**\n * Removes all metrics with the given name.\n *\n * @param name\n * the name of the metric\n * @return whether or not the metric was removed\n */\n boolean remove(String name);\n\n /**\n * Removes the metric with the given MetricID\n *\n * @param metricID\n * the MetricID of the metric\n * @return whether or not the metric was removed\n *\n * @since 2.0\n */\n boolean remove(MetricID metricID);\n\n /**\n * Removes all metrics which match the given filter.\n *\n * @param filter\n * a filter\n */\n void removeMatching(MetricFilter filter);\n\n /**\n * Returns a set of the names of all the metrics in the registry.\n *\n * @return the names of all the metrics\n */\n SortedSet<String> getNames();\n\n /**\n * Returns a set of the {@link MetricID}s of all the metrics in the registry.\n *\n * @return the MetricIDs of all the metrics\n */\n SortedSet<MetricID> getMetricIDs();\n\n /**\n * Returns a map of all the gauges in the registry and their {@link MetricID}s.\n *\n * @return all the gauges in the registry\n */\n SortedMap<MetricID, Gauge> getGauges();\n\n /**\n * Returns a map of all the gauges in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the gauges in the registry\n */\n SortedMap<MetricID, Gauge> getGauges(MetricFilter filter);\n\n /**\n * Returns a map of all the counters in the registry and their {@link MetricID}s.\n *\n * @return all the counters in the registry\n */\n SortedMap<MetricID, Counter> getCounters();\n\n /**\n * Returns a map of all the counters in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the counters in the registry\n */\n SortedMap<MetricID, Counter> getCounters(MetricFilter filter);\n\n /**\n * Returns a map of all the concurrent gauges in the registry and their {@link MetricID}s.\n *\n * @return all the concurrent gauges in the registry\n */\n SortedMap<MetricID, ConcurrentGauge> getConcurrentGauges();\n\n /**\n * Returns a map of all the concurrent gauges in the registry and their {@link MetricID}s which match the given\n * filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the concurrent gauges in the registry\n */\n SortedMap<MetricID, ConcurrentGauge> getConcurrentGauges(MetricFilter filter);\n\n /**\n * Returns a map of all the histograms in the registry and their {@link MetricID}s.\n *\n * @return all the histograms in the registry\n */\n SortedMap<MetricID, Histogram> getHistograms();\n\n /**\n * Returns a map of all the histograms in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the histograms in the registry\n */\n SortedMap<MetricID, Histogram> getHistograms(MetricFilter filter);\n\n /**\n * Returns a map of all the meters in the registry and their {@link MetricID}s.\n *\n * @return all the meters in the registry\n */\n SortedMap<MetricID, Meter> getMeters();\n\n /**\n * Returns a map of all the meters in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the meters in the registry\n */\n SortedMap<MetricID, Meter> getMeters(MetricFilter filter);\n\n /**\n * Returns a map of all the timers in the registry and their {@link MetricID}s.\n *\n * @return all the timers in the registry\n */\n SortedMap<MetricID, Timer> getTimers();\n\n /**\n * Returns a map of all the timers in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the timers in the registry\n */\n SortedMap<MetricID, Timer> getTimers(MetricFilter filter);\n\n /**\n * Returns a map of all the simple timers in the registry and their {@link MetricID}s.\n *\n * @return all the timers in the registry\n */\n SortedMap<MetricID, SimpleTimer> getSimpleTimers();\n\n /**\n * Returns a map of all the simple timers in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the timers in the registry\n */\n SortedMap<MetricID, SimpleTimer> getSimpleTimers(MetricFilter filter);\n\n /**\n * Returns a map of all the metrics in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the metrics in the registry\n *\n * @since 3.0\n */\n SortedMap<MetricID, Metric> getMetrics(MetricFilter filter);\n\n /**\n * Returns a map of all the metrics in the registry and their {@link MetricID}s which match the given filter and\n * which are assignable to the provided type.\n * \n * @param ofType\n * the type to which all returned metrics should be assignable\n * @param filter\n * the metric filter to match\n *\n * @return all the metrics in the registry\n *\n * @since 3.0\n */\n @SuppressWarnings(\"unchecked\")\n <T extends Metric> SortedMap<MetricID, T> getMetrics(Class<T> ofType, MetricFilter filter);\n\n /**\n * Returns a map of all the metrics in the registry and their {@link MetricID}s at query time. The only guarantee\n * about this method is that any key has a value (compared to using {@link #getMetric(MetricID)} and\n * {@link #getMetricIDs()} together).\n *\n * It is <b>only</b> intended for bulk querying, if you need a single or a few entries, always prefer\n * {@link #getMetric(MetricID)} or {@link #getMetrics(MetricFilter)}.\n *\n * @return all the metrics in the registry\n */\n Map<MetricID, Metric> getMetrics();\n\n /**\n * Returns a map of all the metadata in the registry and their names. The only guarantee about this method is that\n * any key has a value (compared to using {@link #getMetadata(String)}.\n *\n * It is <b>only</b> intended for bulk querying, if you need a single or a few metadata, always prefer\n * {@link #getMetadata(String)}}.\n *\n * @return all the metadata in the registry\n */\n Map<String, Metadata> getMetadata();\n\n /**\n * Returns the type of this metric registry.\n *\n * @return Type of this registry (VENDOR, BASE, APPLICATION)\n */\n Type getType();\n\n}",
"private StatsdReporter(MetricRegistry registry, UDPSocketProvider socketProvider, String prefix, String appendTag, Locale locale, TimeUnit rateUnit, TimeUnit durationUnit, Clock clock, MetricFilter filter, boolean minimizeMetrics) {\n super(registry, \"statsd-reporter\", filter, rateUnit, durationUnit);\n\n this.socketProvider = socketProvider;\n if (prefix != null) {\n // Pre-append the \".\" so that we don't need to make anything conditional later.\n this.prefix = prefix + \".\";\n } else {\n this.prefix = \"\";\n }\n this.appendTag = appendTag;\n this.locale = locale;\n this.clock = clock;\n this.filter = filter;\n this.minimizeMetrics = minimizeMetrics;\n\n outputData = new ByteArrayOutputStream();\n }",
"@Override\n\tpublic void setReporter(Reporter processor) {\n\n\t}",
"@SuppressWarnings(\"restriction\")\npublic interface Meter {\n\n Collection<? extends Metric<?>> supportedMetrics();\n\n Collection<? extends Measure<?>> measureData(MonitoredVm vm);\n}",
"public interface ThreadFormatter extends Formatter<Thread> {\n}",
"@Override\n\tvoid collect() {\n\t\t\n\t}",
"public interface MetricRegistry {\n\n /**\n * Returns or creates a sub-scope of this metric registry.\n *\n * @param name Name for the sub-scope.\n * @return A possibly-new metric registry, whose metrics will be 'children' of this scope.\n */\n MetricRegistry scope(String name);\n\n /**\n * Registers a new gauge.\n *\n * @deprecated Please use registerGauge instead.\n * @param gauge Gauge to register.\n * @param <T> Number type of the gauge's values.\n */\n @Deprecated\n <T extends Number> void register(Gauge<T> gauge);\n\n /**\n * Registers a new gauge.\n *\n * @param gauge Gauge to register.\n * @param <T> Number type of the gauge's values.\n * @return the Gauge created.\n */\n <T extends Number> Gauge<T> registerGauge(Gauge<T> gauge);\n\n /**\n * Unregisters a gauge from the registry.\n *\n * @param gauge Gauge to unregister.\n * @return true if the gauge was successfully unregistered, false otherwise.\n */\n boolean unregister(Gauge<?> gauge);\n\n /**\n * Creates and returns a {@link Counter} that can be incremented.\n *\n * @param name Name to associate with the counter.\n * @return Counter (initialized to zero) to increment the value.\n */\n Counter createCounter(String name);\n\n /**\n * Creates a counter and returns an {@link Counter} that can be incremented.\n * @deprecated Please use createCounter instead.\n * @param name Name to associate with the gauge.\n * @return Counter (initialized to zero) to increment the value.\n */\n @Deprecated\n Counter registerCounter(String name);\n\n /**\n * Unregisters a counter from the registry.\n * @param counter Counter to unregister.\n * @return true if the counter was successfully unregistered, false otherwise.\n */\n boolean unregister(Counter counter);\n\n /**\n * Create a HistogramInterface (with default parameters).\n * @return the newly created histogram.\n */\n HistogramInterface createHistogram(String name);\n\n /**\n * Register an HistogramInterface into the Metrics registry.\n * Useful when you want to create custom histogram (e.g. with better precision).\n * @return the Histogram you registered for chaining purposes.\n */\n HistogramInterface registerHistogram(HistogramInterface histogram);\n\n /**\n * Unregisters an histogram from the registry.\n * @param histogram Histogram to unregister.\n * @return true if the histogram was successfully unregistered, false otherwise.\n */\n boolean unregister(HistogramInterface histogram);\n\n /**\n * Convenient method that unregister any metric (identified by its name) from the registry.\n * @param name Name of metric to unregister.\n * @return true if the metric was successfully unregistered, false otherwise.\n */\n boolean unregister(String name);\n}",
"public interface IWeakThread {\n\n void runThread(int tag);\n\n}",
"@Context\r\npublic interface ThreadContext\r\n{\r\n /**\r\n * Get the minimum thread level.\r\n *\r\n * @param min the default minimum value\r\n * @return the minimum thread level\r\n */\r\n int getMin( int min );\r\n \r\n /**\r\n * Return maximum thread level.\r\n *\r\n * @param max the default maximum value\r\n * @return the maximum thread level\r\n */\r\n int getMax( int max );\r\n \r\n /**\r\n * Return the deamon flag.\r\n *\r\n * @param flag true if a damon thread \r\n * @return the deamon thread policy\r\n */\r\n boolean getDaemon( boolean flag );\r\n \r\n /**\r\n * Get the thread pool name.\r\n *\r\n * @param name the pool name\r\n * @return the name\r\n */\r\n String getName( String name );\r\n \r\n /**\r\n * Get the thread pool priority.\r\n *\r\n * @param priority the thread pool priority\r\n * @return the priority\r\n */\r\n int getPriority( int priority );\r\n \r\n /**\r\n * Get the maximum idle time.\r\n *\r\n * @param idle the default maximum idle time\r\n * @return the maximum idle time in milliseconds\r\n */\r\n int getIdle( int idle );\r\n \r\n}",
"ThreadCounterRunner() {}",
"public interface PoolMetrics<T> extends Metrics {\n\n\t/**\n\t * A new task has been submitted to access the resource. This method is called\n\t * from the submitter context.\n\t *\n\t * @return the timer measuring the task queuing\n\t */\n\tdefault T submitted() {\n\t\treturn null;\n\t}\n\n\t/**\n\t * The submitted task start to use the resource.\n\t *\n\t * @param t\n\t * the timer measuring the task queuing returned by\n\t * {@link #submitted()}\n\t * @return the timer measuring the task execution\n\t */\n\tdefault T begin(T t) {\n\t\treturn null;\n\t}\n\n\t/**\n\t * The task has been rejected. The underlying resource has probably be shutdown.\n\t *\n\t * @param t\n\t * the timer measuring the task queuing returned by\n\t * {@link #submitted()}\n\t */\n\tdefault void rejected(T t) {\n\t}\n\n\t/**\n\t * The submitted tasks has completed its execution and release the resource.\n\t *\n\t * @param succeeded\n\t * whether or not the task has gracefully completed\n\t * @param t\n\t * the timer measuring the task execution returned by {@link #begin}\n\t */\n\tdefault void end(T t, boolean succeeded) {\n\t}\n}",
"public abstract AbstractSctlThreadEntry addThread();",
"public synchronized void addGauge(T key, String name) {\n if(gauges.containsKey(key)) {\n return;\n }\n RequestExecutionTimeGauge gauge = new RequestExecutionTimeGaugeImpl(name, this.name);\n gauges.put(key,gauge);\n }",
"public final void setCollector(Collector<T> collector) {\n this.collector = collector;\n }",
"@Override\n void record(StatsContext tags, MeasureMap measurementValues) {\n statsManager.record((StatsContextImpl) tags, measurementValues);\n }",
"private void sendTelemetry(HttpRecordable recordable) {\n }",
"public interface MetricsVisitor {\n\n /**\n * Callback for int value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Integer> metric, int value);\n\n /**\n * Callback for long value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Long> metric, long value);\n\n /**\n * Callback for float value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Float> metric, float value);\n\n /**\n * Callback for double value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Double> metric, double value);\n\n /**\n * Callback for integer value counters\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void counter(MetricCounter<Integer> metric, int value);\n\n /**\n * Callback for long value counters\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void counter(MetricCounter<Long> metric, long value);\n\n /**\n * Callback for integer value delta\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void delta(MetricDelta<Integer> metric, int value);\n\n /**\n * Callback for long value delta\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void delta(MetricDelta<Long> metric, long value);\n}",
"public interface TaskManagerProfiler {\n\n\t/**\n\t * Registers an {@link ExecutionListener} object for profiling.\n\t * \n\t * @param id\n\t * the {@link ExecutionVertexID} of the task\n\t * @param jobConfiguration\n\t * the job configuration sent with the task\n\t * @param environment\n\t * the {@link Environment} object to register the listener for\n\t */\n\tvoid registerExecutionListener(ExecutionVertexID id, Configuration jobConfiguration, Environment environment);\n\n\t/**\n\t * Registers a {@link InputGateListener} object for the given input gate.\n\t * \n\t * @param id\n\t * the ID of the vertex the given input gate belongs to\n\t * @param jobConfiguration\n\t * the configuration of the job the vertex belongs to\n\t * @param inputGate\n\t * the input gate to register a {@link InputGateListener} object for\n\t */\n\tvoid registerInputGateListener(ExecutionVertexID id, Configuration jobConfiguration,\n\t\t\tInputGate<? extends Record> inputGate);\n\n\t/**\n\t * Registers a {@link OutputGateListener} object for the given output gate.\n\t * \n\t * @param id\n\t * the ID of the vertex the given output gate belongs to\n\t * @param jobConfiguration\n\t * the configuration of the job the vertex belongs to\n\t * @param outputGate\n\t * the output gate to register a {@link InputGateListener} object for\n\t */\n\tvoid registerOutputGateListener(ExecutionVertexID id, Configuration jobConfiguration,\n\t\t\tOutputGate<? extends Record> outputGate);\n\n\t/**\n\t * Unregisters all previously register {@link ExecutionListener} objects for\n\t * the vertex identified by the given ID.\n\t * \n\t * @param id\n\t * the ID of the vertex to unregister the {@link ExecutionListener} objects for\n\t */\n\tvoid unregisterExecutionListener(ExecutionVertexID id);\n\n\t/**\n\t * Unregisters all previously register {@link InputGateListener} objects for\n\t * the vertex identified by the given ID.\n\t * \n\t * @param id\n\t * the ID of the vertex to unregister the {@link InputGateListener} objects for\n\t */\n\tvoid unregisterInputGateListeners(ExecutionVertexID id);\n\n\t/**\n\t * Unregisters all previously register {@link OutputGateListener} objects for\n\t * the vertex identified by the given ID.\n\t * \n\t * @param id\n\t * the ID of the vertex to unregister the {@link OutputGateListener} objects for\n\t */\n\tvoid unregisterOutputGateListeners(ExecutionVertexID id);\n\n\t/**\n\t * Shuts done the task manager's profiling component\n\t * and stops all its internal processes.\n\t */\n\tvoid shutdown();\n}",
"@RefreshScope\n @Bean\n public MetricRegistry metrics() {\n final MetricRegistry metrics = new MetricRegistry();\n metrics.register(\"jvm.gc\", new GarbageCollectorMetricSet());\n metrics.register(\"jvm.memory\", new MemoryUsageGaugeSet());\n metrics.register(\"thread-states\", new ThreadStatesGaugeSet());\n metrics.register(\"jvm.fd.usage\", new FileDescriptorRatioGauge());\n return metrics;\n }",
"private AsyncReporter<Span> spanReporter() {\n final Sender sender = URLConnectionSender.create(endpoint);\n final AsyncReporter<Span> result = AsyncReporter.create(sender);\n // make sure spans are reported on shutdown\n Runtime.getRuntime().addShutdownHook(new Thread(result::close));\n return result;\n }",
"private void setupCollector() {\n outList = new ArrayList<>();\n }",
"public BasicServerMetricsListener() {\n myServerMetrics = new ConcurrentHashMap<String, BasicServerMetrics>();\n }",
"public interface FetchHandler {\n\n void updateMetrics(long latency);\n}",
"public ProcessAccountThreadPoolVisitor(final Context ctx, final int threads, final int queueSize,\r\n final ContextAgent delegate, final LifecycleAgentSupport agent)\r\n\t{\r\n\t\tsetContext(ctx);\r\n threadPool_ = new ThreadPool(POOL_NAME, queueSize, threads, new PMContextAgent(POOL_NAME, ProcessAccountThreadPoolVisitor.class.getSimpleName(), delegate));\r\n agent_ = agent;\r\n\t}",
"private void collectMetricsInfo() {\n // Retrieve a list of all references to registered metric services\n ServiceReference[] metricsList = null;\n try {\n metricsList = bc.getServiceReferences(null, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Retrieve information about all registered metrics found\n if ((metricsList != null) && (metricsList.length > 0)) {\n \n for (int nextMetric = 0;\n nextMetric < metricsList.length;\n nextMetric++) {\n \n ServiceReference sref_metric = metricsList[nextMetric];\n MetricInfo metric_info = getMetricInfo(sref_metric);\n \n // Add this metric's info to the list\n if (metric_info != null) {\n registeredMetrics.put(\n metric_info.getServiceID(),\n metric_info);\n }\n }\n }\n else {\n logInfo(\"No pre-existing metrics were found!\");\n }\n }",
"public static synchronized Metric getMetricByThread() {\n long tid = Thread.currentThread().getId();\n Metric m = metrics.get(tid);\n if(m == null) {\n m = new Metric(tid);\n metrics.put(tid, m);\n }\n return m;\n }",
"@Override\n public JvmNotifBasedGcStatsCollector apply(String id) {\n return new JvmNotifBasedGcStatsCollector(Serializer.INFLUX, appToken, jvmName, subType);\n }",
"@Override\n public void configureReporters(MetricRegistry metricRegistry) {\n\n\n registerReporter(ConsoleReporter\n .forRegistry(metricRegistry)\n .outputTo(System.out)\n .filter(MetricFilter.ALL)\n .build())\n .start(300, TimeUnit.SECONDS);\n\n }",
"@Override\r\n public void registerMonitor(String name, ProfileMonitor monitor) {\n\r\n }",
"Tracker getFeatureEngagementTracker();",
"public synchronized void addCounter(int nodeId, int submissionId,\n\t\t\tString nameCounter, long value) {\n\n\t\tif (statsEnabled) {\n\t\t\tMap<Integer, Map<String, Long>> submissionsCounters = counters\n\t\t\t\t\t.get(nodeId);\n\t\t\tif (submissionsCounters == null) {\n\t\t\t\tsubmissionsCounters = new HashMap<Integer, Map<String, Long>>();\n\t\t\t\tcounters.put(nodeId, submissionsCounters);\n\t\t\t}\n\n\t\t\tMap<String, Long> c = submissionsCounters.get(submissionId);\n\t\t\tif (c == null) {\n\t\t\t\tc = new TreeMap<String, Long>();\n\t\t\t\tsubmissionsCounters.put(submissionId, c);\n\t\t\t}\n\n\t\t\tlong oValue = 0;\n\t\t\tif (c.containsKey(nameCounter)) {\n\t\t\t\toValue = c.get(nameCounter);\n\t\t\t}\n\t\t\toValue += value;\n\t\t\tc.put(nameCounter, oValue);\n\t\t}\n\t}",
"public interface FastTracking {\n\n\t//Offline instrumentation assume that a method\n\t//public static FastTracking getInstance()\n\t//exists\n\n\t/**\n\t * @param clazz Class fully qualified name\n\t * @param method method name plus formal parameters\n\t * @param branch branch id\n\t * @return ann unique id for the triplet (clazz, method, branch)\n\t */\n\tint register(String clazz, String method, String branch);\n\n\t/**\n\t * @param clazz Class fully qualified name\n\t * @param method method name plus formal parameters\n\t * @return ann unique id for the pair (clazz, method)\n\t */\n\tint register(String clazz, String method);\n\n\t/**\n\t * @param thread the thread id\n\t * @param id id of the method or block being entered\n\t */\n\tvoid stepIn(long thread, int id);\n\n\t/**\n\t * @param thread the thread id exiting a method/block\n\t * Note that it is up to the logger to keep track which block is being exited\n\t */\n\tvoid stepOut(long thread);\n\n\n\t/**\n\t * @return is the logger keep track of branches\n\t * By default should be false as branch tracking is more expensive\n\t */\n\tboolean traceBranch();\n\n\t// OPTIONAL PART (can be empty, not called by default by the framework)\n\n\t/**\n\t * @param log File in which to write traces\n\t */\n\tvoid setLogFile(File log);\n\n\n\t/**\n\t * Write traces in log file\n\t */\n\tvoid flush();\n\n\t/**\n\t * Reset dictionary\n\t */\n\tvoid purge();\n}",
"public interface InstrumenterLogger {\n\n void important(String msg, Object... args);\n\n void lessImportant(String msg, Object... args);\n}",
"public interface MonitoringEventListener {\n\n /**\n * Callback for received STDOUT lines.\n * \n * @param line stdout line\n */\n void appendStdout(String line);\n\n /**\n * Callback for received STDERR lines.\n * \n * @param line stderr line\n */\n void appendStderr(String line);\n\n /**\n * Callback for additional user information lines (validation, progress, ...).\n * \n * @param line information line\n */\n void appendUserInformation(String line);\n}",
"protected void addDependencies(MRSubmissionRequest request) {\n // Guava\n request.addJarForClass(ThreadFactoryBuilder.class);\n }",
"protected void loadReporter() {\n LOGGER.info(\"Load metric reporters, type: {}\", METRIC_CONFIG.getMetricReporterList());\n compositeReporter.clearReporter();\n if (METRIC_CONFIG.getMetricReporterList() == null) {\n return;\n }\n for (ReporterType reporterType : METRIC_CONFIG.getMetricReporterList()) {\n Reporter reporter = null;\n switch (reporterType) {\n case JMX:\n ServiceLoader<JmxReporter> reporters = ServiceLoader.load(JmxReporter.class);\n for (JmxReporter jmxReporter : reporters) {\n if (jmxReporter\n .getClass()\n .getName()\n .toLowerCase()\n .contains(METRIC_CONFIG.getMetricFrameType().name().toLowerCase())) {\n jmxReporter.setMetricManager(metricManager);\n reporter = jmxReporter;\n }\n }\n break;\n case PROMETHEUS:\n reporter = new PrometheusReporter(metricManager);\n break;\n case IOTDB:\n reporter = new IoTDBSessionReporter(metricManager);\n break;\n default:\n break;\n }\n if (reporter == null) {\n LOGGER.warn(\"Failed to load reporter which type is {}\", reporterType);\n continue;\n }\n compositeReporter.addReporter(reporter);\n }\n }",
"private static void addProducer()\r\n\t{\r\n\t\tfetchers++;\r\n\t\tFetcher producer = new Fetcher();\r\n\t\tproducer.start();\r\n\t}",
"public interface UserTrackingLogger {\n\n public long getPositiveImpressionIdForMessage(long messageId);\n\n public long getNegativeImpressionIdForMessage(long messageId);\n\n public long getImpressionIdForMessage(long messageId, String questionText);\n \n public long getTopQuestionImpressionId(long conversationId, String questionText);\n\n public long getNoneOfTheAboveImpressionIdForMessage(long messageId);\n\n public long getForumVisitImpressionIdForMessage(long messageId);\n\n /**\n * Return a list of all impressions for the given message ID that have location=HIDDEN.\n * \n * @param messageId\n * @return\n */\n public List<Long> getHiddenImpressionIdsForMessage(long messageId);\n\n /**\n * Log a user query event.\n * \n * @param timestamp The time the event occurred\n * @param user Some identifier that ideally represents a single user interacting with the system\n * @param hostname The hostname or identifier of the system\n * @param referral The ID of the click that triggered this query, or null\n * @param questionText The text of the query\n * @param mode How the query was input by the user\n * @return The event ID\n */\n public long query(Date timestamp, String user, String hostname, Long referral, String questionText, InputMode mode);\n\n /**\n * Log a user impression event\n * \n * @param timestamp The time the event occurred\n * @param user Some identifier that ideally represents a single user interacting with the system\n * @param hostname The hostname or identifier of the system\n * @param referral The ID of the query that triggered this impression, or null\n * @param prompt The impression text\n * @param classifiedClass The answer class from the classifier, or null\n * @param offset The 1-based offset of this impression relative to other impressions from the same query\n * @param action Currently not used\n * @param location The location of the impression on the screen\n * @param provenance {@see Provenance}\n * @param confidence The confidence score from the classifier, or 0\n * @return The event ID\n */\n public long impression(Date timestamp, String user, String hostname, Long referral, String prompt,\n String classifiedClass, int offset, String action, Location location, Provenance provenance, double confidence);\n\n /**\n * @param timestamp The time the event occurred\n * @param user Some identifier that ideally represents a single user interacting with the system\n * @param hostname The hostname or identifier of the system\n * @param referral The ID of the impression that was clicked\n * @return The event ID\n */\n public long click(Date timestamp, String user, String hostname, Long referral);\n\n /**\n * Unhides an impression that was previously hidden from the user.\n * The event ID of the impression is unchanged.\n * \n * @param impressionId The event ID of the impression\n * @param newLocation The location of the impression on the screen\n */\n public void unhideImpression(long impressionId, Location newLocation);\n\n /**\n * Possible impression locations on the page\n */\n public static enum Location {\n MAIN_RESULTS_AREA, RIGHT_RAIL, FOOTER, \n /**\n * This is a special location to indicate impressions that were generated from a query\n * but not initially shown to the user. When the impression is shown to the user it\n * should be unhidden via unhideImpression().\n */\n HIDDEN\n };\n\n /**\n * Where an impression came from.\n * Currently only used to distinguish between clickable and non-clickable impressions.\n */\n public static enum Provenance {\n /**\n * This impression shows an answer inline and is not clickable.\n */\n INLINE, \n /**\n * This impression is clickable to either provide feedback or submit another query.\n */\n ALGO\n };\n\n}",
"synchronized static public void markCollectable(String name, Object ref) {\n Objects.requireNonNull(ref);\n\n CollectableEntry entry = new CollectableEntry(new Date(), name);\n AssertCollectableLive pRef = new AssertCollectableLive(name, ref, () -> {\n removeCollectable(entry);\n });\n collectables.add(entry);\n CleanupDetector.onCleanup(pRef);\n }",
"public interface Metric<T> {\n\n String getName();\n\n List<RecordFilter> getFilters();\n\n RecordReader<T> getRecordReader();\n}",
"public void setIocCollector(IocCollector iocCollector) {\n\t\tSystem.out.println(\"Inside Setter of Threat Notifier\");\n\t\tthis.iocCollector = iocCollector;\n\t}",
"interface ClientMetrics {\n void incrementReadRequest();\n\n void incrementWriteRequest();\n\n String getHostName();\n\n long getReadRequestsCount();\n\n long getWriteRequestsCount();\n\n void incrementFilteredReadRequests();\n\n long getFilteredReadRequests();\n }",
"@Override\n public void addRequest(Request<?> request, Object tag) {\n request.setTag(tag);\n getRequestQueue().add(request);\n }",
"public void addPerformer(Performer performer){\n\t\tperformers.add(performer);\n\t}",
"@ProviderType\npublic interface ThreadPoolMBean {\n\n /**\n * Retrieve the block policy of the thread pool.\n * \n * @return the block policy\n */\n String getBlockPolicy();\n\n /**\n * Retrieve the active count from the pool's Executor.\n * \n * @return the active count or -1 if the thread pool does not have an Executor\n */\n int getExecutorActiveCount();\n\n /**\n * Retrieve the completed task count from the pool's Executor.\n * \n * @return the completed task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorCompletedTaskCount();\n\n /**\n * Retrieve the core pool size from the pool's Executor.\n * \n * @return the core pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorCorePoolSize();\n\n /**\n * Retrieve the largest pool size from the pool's Executor.\n * \n * @return the largest pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorLargestPoolSize();\n\n /**\n * Retrieve the maximum pool size from the pool's Executor.\n * \n * @return the maximum pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorMaximumPoolSize();\n\n\n /**\n * Retrieve the pool size from the pool's Executor.\n * \n * @return the pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorPoolSize();\n\n\n /**\n * Retrieve the task count from the pool's Executor. This is the total number of tasks, which\n * have ever been scheduled to this threadpool. They might have been processed yet or not.\n * \n * @return the task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorTaskCount();\n \n \n /**\n * Retrieve the number of tasks in the work queue of the pool's Executor. These are the\n * tasks which have been already submitted to the threadpool, but which are not yet executed.\n * @return the number of tasks in the work queue -1 if the thread pool does not have an Executor\n */\n long getExcutorTasksInWorkQueueCount();\n\n /**\n * Return the configured max thread age.\n *\n * @return The configured max thread age.\n * @deprecated Since version 1.1.1 always returns -1 as threads are no longer retired\n * but instead the thread locals are cleaned up (<a href=\"https://issues.apache.org/jira/browse/SLING-6261\">SLING-6261</a>)\n */\n @Deprecated\n long getMaxThreadAge();\n\n /**\n * Return the configured keep alive time.\n * \n * @return The configured keep alive time.\n */\n long getKeepAliveTime();\n\n /**\n * Return the configured maximum pool size.\n * \n * @return The configured maximum pool size.\n */\n int getMaxPoolSize();\n\n /**\n * Return the minimum pool size.\n * \n * @return The minimum pool size.\n */\n int getMinPoolSize();\n\n /**\n * Return the name of the thread pool\n * \n * @return the name\n */\n String getName();\n\n /**\n * Return the configuration pid of the thread pool.\n * \n * @return the pid\n */\n String getPid();\n\n /**\n * Return the configured priority of the thread pool.\n * \n * @return the priority\n */\n String getPriority();\n\n /**\n * Return the configured queue size.\n * \n * @return The configured queue size.\n */\n int getQueueSize();\n\n /**\n * Return the configured shutdown wait time in milliseconds.\n * \n * @return The configured shutdown wait time.\n */\n int getShutdownWaitTimeMs();\n\n /**\n * Return whether or not the thread pool creates daemon threads.\n * \n * @return The daemon configuration.\n */\n boolean isDaemon();\n\n /**\n * Return whether or not the thread pool is configured to shutdown gracefully.\n * \n * @return The graceful shutdown configuration.\n */\n boolean isShutdownGraceful();\n\n /**\n * Return whether or not the thread pool is in use.\n * \n * @return The used state of the pool.\n */\n boolean isUsed();\n\n}",
"public synchronized static void addTraceMetricsSource() {\n try {\n QueryServicesOptions options = QueryServicesOptions.withDefaults();\n if (!initialized && options.isTracingEnabled()) {\n traceSpanReceiver = new TraceSpanReceiver();\n Trace.addReceiver(traceSpanReceiver);\n TraceWriter traceWriter = new TraceWriter(options.getTableName(), options.getTracingThreadPoolSize(), options.getTracingBatchSize());\n traceWriter.start();\n }\n } catch (RuntimeException e) {\n LOGGER.warn(\"Tracing will outputs will not be written to any metrics sink! No \"\n + \"TraceMetricsSink found on the classpath\", e);\n } catch (IllegalAccessError e) {\n // This is an issue when we have a class incompatibility error, such as when running\n // within SquirrelSQL which uses an older incompatible version of commons-collections.\n // Seeing as this only results in disabling tracing, we swallow this exception and just\n // continue on without tracing.\n LOGGER.warn(\"Class incompatibility while initializing metrics, metrics will be disabled\", e);\n }\n initialized = true;\n }",
"public interface SpiderListener {\n\n public void onSuccess(Request request);\n\n public void onError(Request request, Throwable e);\n \n public void onAddRequestException(int pushResult, Request request);\n\n\tpublic void onExitWhenComplete();\n\n\tpublic void onWaitWhenComplete();\n}",
"@Bean\n @ConditionalOnBean(Sender.class)\n AsyncReporter<Span> spanReporter(Sender sender) {\n AsyncReporter.Builder builder = AsyncReporter.builder(sender);\n builder.queuedMaxSpans(50000);\n builder.queuedMaxBytes(104857600);\n return builder.build();\n }",
"public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }",
"public interface VirtualUsersMeasurement {\n\n\t/**\n\t * Measurement name.\n\t */\n\tString MEASUREMENT_NAME = \"virtualUsers\";\n\n\t/**\n\t * Tags.\n\t * \n\t * @author Alexander Wert\n\t */\n\tinterface Tags {\n\t\t/**\n\t\t * Node name field\n\t\t */\n\t\tString NODE_NAME = \"nodeName\";\n\n\t\tString TEST_NAME = \"testName\";\n\n\t\tString RUN_ID = \"runId\";\n\t}\n\n\t/**\n\t * Fields.\n\t * \n\t * @author Alexander Wert\n\t */\n\tinterface Fields {\n\t\t/**\n\t\t * Minimum active threads field.\n\t\t */\n\t\tString MIN_ACTIVE_THREADS = \"minActiveThreads\";\n\n\t\t/**\n\t\t * Maximum active threads field.\n\t\t */\n\t\tString MAX_ACTIVE_THREADS = \"maxActiveThreads\";\n\n\t\t/**\n\t\t * Mean active threads field.\n\t\t */\n\t\tString MEAN_ACTIVE_THREADS = \"meanActiveThreads\";\n\n\t\t/**\n\t\t * Started threads field.\n\t\t */\n\t\tString STARTED_THREADS = \"startedThreads\";\n\n\t\t/**\n\t\t * Finished threads field.\n\t\t */\n\t\tString FINISHED_THREADS = \"finishedThreads\";\n\t}\n}",
"synchronized static public Report getReport() {\n return new Report(\n collectedEntrys,\n collectables.stream().sorted((a, b) -> a.collectableSince.compareTo(b.collectableSince))\n .collect(Collectors.toList()));\n }",
"public void addThread(int i) {\n\t\tif (i >= threadCalls.size()) {\n\t\t\tthreadCalls.add(1);\n\t\t} else {\n\t\t\tthreadCalls.set(i, threadCalls.get(i) + 1);\n\t\t}\n\t}",
"public List<GetThreadsResponse.Thread> getThreadsDataByRequest(GetThreadsRequest request) {\n Map<Integer, GetThreadsResponse.Thread.Builder> threads = new TreeMap<>();\n try {\n long sessionId = request.getSession().getSessionId();\n\n List<Integer> threadIds = new ArrayList<>();\n if (!mySessionThreadIdsCache.containsKey(sessionId)) {\n Set<Integer> tidSet = getThreadIdCacheForSession(sessionId);\n\n ResultSet threadResults = executeQuery(CpuStatements.QUERY_ALL_DISTINCT_THREADS, sessionId);\n while (threadResults.next()) {\n // Don't add directly to tidSet, since it's synchronized and would be slow to add each element individually.\n threadIds.add(threadResults.getInt(1));\n }\n tidSet.addAll(threadIds);\n }\n else {\n // Add all ids to a list so we release the implicit lock in threadIds ASAP.\n //noinspection UseBulkOperation\n mySessionThreadIdsCache.get(sessionId).forEach(tid -> threadIds.add(tid));\n }\n\n long startTimestamp = request.getStartTimestamp();\n long endTimestamp = request.getEndTimestamp();\n for (int tid : threadIds) {\n ResultSet activities = executeQuery(\n CpuStatements.QUERY_THREAD_ACTIVITIES,\n // Used as the timestamp of the states that happened before the request\n startTimestamp,\n // Used to get the last activity just prior to the request range\n sessionId, tid, startTimestamp,\n // Used for the JOIN\n sessionId, tid,\n // The start and end timestamps below are used to get the activities that\n // happened in the interval (start, end]\n sessionId, tid, startTimestamp, endTimestamp);\n\n CpuProfiler.GetThreadsResponse.Thread.Builder builder = null;\n while (activities.next()) {\n if (builder == null) {\n // Please refer QUERY_THREAD_ACTIVITIES statement for the ResultSet's column to type/value mapping.\n builder = createThreadBuilder(tid, activities.getString(1));\n threads.put(tid, builder);\n }\n\n Cpu.CpuThreadData.State state = Cpu.CpuThreadData.State.valueOf(activities.getString(2));\n GetThreadsResponse.ThreadActivity.Builder activity =\n GetThreadsResponse.ThreadActivity.newBuilder().setNewState(state).setTimestamp(activities.getLong(3));\n builder.addActivities(activity.build());\n }\n }\n }\n catch (SQLException ex) {\n onError(ex);\n }\n\n // Add all threads that should be included in the response.\n List<GetThreadsResponse.Thread> cpuData = new ArrayList<>();\n for (GetThreadsResponse.Thread.Builder thread : threads.values()) {\n cpuData.add(thread.build());\n }\n return cpuData;\n }",
"public interface RateLimiterRegistry extends Registry<RateLimiter, RateLimiterConfig> {\n\n /**\n * Creates a RateLimiterRegistry with a custom RateLimiter configuration.\n *\n * @param defaultRateLimiterConfig a custom RateLimiter configuration\n * @return a RateLimiterRegistry instance backed by a custom RateLimiter configuration\n */\n static RateLimiterRegistry of(RateLimiterConfig defaultRateLimiterConfig) {\n return new InMemoryRateLimiterRegistry(defaultRateLimiterConfig);\n }\n\n /**\n * Creates a RateLimiterRegistry with a custom default RateLimiter configuration and a\n * RateLimiter registry event consumer.\n *\n * @param defaultRateLimiterConfig a custom default RateLimiter configuration.\n * @param registryEventConsumer a RateLimiter registry event consumer.\n * @return a RateLimiterRegistry with a custom RateLimiter configuration and a RateLimiter\n * registry event consumer.\n */\n static RateLimiterRegistry of(RateLimiterConfig defaultRateLimiterConfig,\n RegistryEventConsumer<RateLimiter> registryEventConsumer) {\n return new InMemoryRateLimiterRegistry(defaultRateLimiterConfig, registryEventConsumer);\n }\n\n /**\n * Creates a RateLimiterRegistry with a custom default RateLimiter configuration and a list of\n * RateLimiter registry event consumers.\n *\n * @param defaultRateLimiterConfig a custom default RateLimiter configuration.\n * @param registryEventConsumers a list of RateLimiter registry event consumers.\n * @return a RateLimiterRegistry with a custom RateLimiter configuration and a list of\n * RateLimiter registry event consumers.\n */\n static RateLimiterRegistry of(RateLimiterConfig defaultRateLimiterConfig,\n List<RegistryEventConsumer<RateLimiter>> registryEventConsumers) {\n return new InMemoryRateLimiterRegistry(defaultRateLimiterConfig, registryEventConsumers);\n }\n\n /**\n * Returns a managed {@link RateLimiterConfig} or creates a new one with a default RateLimiter\n * configuration.\n *\n * @return The {@link RateLimiterConfig}\n */\n static RateLimiterRegistry ofDefaults() {\n return new InMemoryRateLimiterRegistry(RateLimiterConfig.ofDefaults());\n }\n\n /**\n * Creates a ThreadPoolBulkheadRegistry with a Map of shared RateLimiter configurations.\n *\n * @param configs a Map of shared RateLimiter configurations\n * @return a ThreadPoolBulkheadRegistry with a Map of shared RateLimiter configurations.\n */\n static RateLimiterRegistry of(Map<String, RateLimiterConfig> configs) {\n return new InMemoryRateLimiterRegistry(configs);\n }\n\n /**\n * Creates a ThreadPoolBulkheadRegistry with a Map of shared RateLimiter configurations.\n * <p>\n * Tags added to the registry will be added to every instance created by this registry.\n *\n * @param configs a Map of shared RateLimiter configurations\n * @param tags default tags to add to the registry\n * @return a ThreadPoolBulkheadRegistry with a Map of shared RateLimiter configurations.\n */\n static RateLimiterRegistry of(Map<String, RateLimiterConfig> configs, Map<String, String> tags) {\n return new InMemoryRateLimiterRegistry(configs, tags);\n }\n\n /**\n * Creates a RateLimiterRegistry with a Map of shared RateLimiter configurations and a\n * RateLimiter registry event consumer.\n *\n * @param configs a Map of shared RateLimiter configurations.\n * @param registryEventConsumer a RateLimiter registry event consumer.\n * @return a RateLimiterRegistry with a Map of shared RateLimiter configurations and a\n * RateLimiter registry event consumer.\n */\n static RateLimiterRegistry of(Map<String, RateLimiterConfig> configs,\n RegistryEventConsumer<RateLimiter> registryEventConsumer) {\n return new InMemoryRateLimiterRegistry(configs, registryEventConsumer);\n }\n\n /**\n * Creates a RateLimiterRegistry with a Map of shared RateLimiter configurations and a\n * RateLimiter registry event consumer.\n *\n * @param configs a Map of shared RateLimiter configurations.\n * @param registryEventConsumer a RateLimiter registry event consumer.\n * @param tags default tags to add to the registry\n * @return a RateLimiterRegistry with a Map of shared RateLimiter configurations and a\n * RateLimiter registry event consumer.\n */\n static RateLimiterRegistry of(Map<String, RateLimiterConfig> configs,\n RegistryEventConsumer<RateLimiter> registryEventConsumer, Map<String, String> tags) {\n return new InMemoryRateLimiterRegistry(configs, registryEventConsumer, tags);\n }\n\n /**\n * Creates a RateLimiterRegistry with a Map of shared RateLimiter configurations and a list of\n * RateLimiter registry event consumers.\n *\n * @param configs a Map of shared RateLimiter configurations.\n * @param registryEventConsumers a list of RateLimiter registry event consumers.\n * @return a RateLimiterRegistry with a Map of shared RateLimiter configurations and a list of\n * RateLimiter registry event consumers.\n */\n static RateLimiterRegistry of(Map<String, RateLimiterConfig> configs,\n List<RegistryEventConsumer<RateLimiter>> registryEventConsumers) {\n return new InMemoryRateLimiterRegistry(configs, registryEventConsumers);\n }\n\n /**\n * Returns all managed {@link RateLimiter} instances.\n *\n * @return all managed {@link RateLimiter} instances.\n */\n Set<RateLimiter> getAllRateLimiters();\n\n /**\n * Returns a managed {@link RateLimiter} or creates a new one with the default RateLimiter\n * configuration.\n *\n * @param name the name of the RateLimiter\n * @return The {@link RateLimiter}\n */\n RateLimiter rateLimiter(String name);\n\n /**\n * Returns a managed {@link RateLimiter} or creates a new one with the default RateLimiter\n * configuration.\n * <p>\n * The {@code tags} passed will be appended to the tags already configured for the registry.\n * When tags (keys) of the two collide the tags passed with this method will override the tags\n * of the registry.\n *\n * @param name the name of the RateLimiter\n * @param tags tags added to the RateLimiter\n * @return The {@link RateLimiter}\n */\n RateLimiter rateLimiter(String name, Map<String, String> tags);\n\n /**\n * Returns a managed {@link RateLimiter} or creates a new one with a custom RateLimiter\n * configuration.\n *\n * @param name the name of the RateLimiter\n * @param rateLimiterConfig a custom RateLimiter configuration\n * @return The {@link RateLimiter}\n */\n RateLimiter rateLimiter(String name, RateLimiterConfig rateLimiterConfig);\n\n /**\n * Returns a managed {@link RateLimiter} or creates a new one with a custom RateLimiter\n * configuration.\n * <p>\n * The {@code tags} passed will be appended to the tags already configured for the registry.\n * When tags (keys) of the two collide the tags passed with this method will override the tags\n * of the registry.\n *\n * @param name the name of the RateLimiter\n * @param rateLimiterConfig a custom RateLimiter configuration\n * @param tags tags added to the RateLimiter\n * @return The {@link RateLimiter}\n */\n RateLimiter rateLimiter(String name, RateLimiterConfig rateLimiterConfig, Map<String, String> tags);\n\n /**\n * Returns a managed {@link RateLimiterConfig} or creates a new one with a custom\n * RateLimiterConfig configuration.\n *\n * @param name the name of the RateLimiterConfig\n * @param rateLimiterConfigSupplier a supplier of a custom RateLimiterConfig configuration\n * @return The {@link RateLimiterConfig}\n */\n RateLimiter rateLimiter(String name, Supplier<RateLimiterConfig> rateLimiterConfigSupplier);\n\n /**\n * Returns a managed {@link RateLimiterConfig} or creates a new one with a custom\n * RateLimiterConfig configuration.\n * <p>\n * The {@code tags} passed will be appended to the tags already configured for the registry.\n * When tags (keys) of the two collide the tags passed with this method will override the tags\n * of the registry.\n *\n * @param name the name of the RateLimiterConfig\n * @param rateLimiterConfigSupplier a supplier of a custom RateLimiterConfig configuration\n * @param tags tags added to the RateLimiter\n * @return The {@link RateLimiterConfig}\n */\n RateLimiter rateLimiter(String name, Supplier<RateLimiterConfig> rateLimiterConfigSupplier, Map<String, String> tags);\n\n /**\n * Returns a managed {@link RateLimiter} or creates a new one.\n * The configuration must have been added upfront via {@link #addConfiguration(String, Object)}.\n *\n * @param name the name of the RateLimiter\n * @param configName the name of the shared configuration\n * @return The {@link RateLimiter}\n */\n RateLimiter rateLimiter(String name, String configName);\n\n /**\n * Returns a managed {@link RateLimiter} or creates a new one.\n * The configuration must have been added upfront via {@link #addConfiguration(String, Object)}.\n *\n * @param name the name of the RateLimiter\n * @param configName the name of the shared configuration\n * @return The {@link RateLimiter}\n */\n RateLimiter rateLimiter(String name, String configName, Map<String, String> tags);\n\n /**\n * Returns a builder to create a custom RateLimiterRegistry.\n *\n * @return a {@link RateLimiterRegistry.Builder}\n */\n static Builder custom() {\n return new Builder();\n }\n\n class Builder {\n\n private static final String DEFAULT_CONFIG = \"default\";\n private RegistryStore<RateLimiter> registryStore;\n private Map<String, RateLimiterConfig> rateLimiterConfigsMap;\n private List<RegistryEventConsumer<RateLimiter>> registryEventConsumers;\n private Map<String, String> tags;\n\n public Builder() {\n this.rateLimiterConfigsMap = new java.util.HashMap<>();\n this.registryEventConsumers = new ArrayList<>();\n }\n\n public Builder withRegistryStore(RegistryStore<RateLimiter> registryStore) {\n this.registryStore = registryStore;\n return this;\n }\n\n /**\n * Configures a RateLimiterRegistry with a custom default RateLimiter configuration.\n *\n * @param rateLimiterConfig a custom default RateLimiter configuration\n * @return a {@link RateLimiterRegistry.Builder}\n */\n public Builder withRateLimiterConfig(RateLimiterConfig rateLimiterConfig) {\n rateLimiterConfigsMap.put(DEFAULT_CONFIG, rateLimiterConfig);\n return this;\n }\n\n /**\n * Configures a RateLimiterRegistry with a custom RateLimiter configuration.\n *\n * @param configName configName for a custom shared RateLimiter configuration\n * @param configuration a custom shared RateLimiter configuration\n * @return a {@link RateLimiterRegistry.Builder}\n * @throws IllegalArgumentException if {@code configName.equals(\"default\")}\n */\n public Builder addRateLimiterConfig(String configName, RateLimiterConfig configuration) {\n if (configName.equals(DEFAULT_CONFIG)) {\n throw new IllegalArgumentException(\n \"You cannot add another configuration with name 'default' as it is preserved for default configuration\");\n }\n rateLimiterConfigsMap.put(configName, configuration);\n return this;\n }\n\n /**\n * Configures a RateLimiterRegistry with a RateLimiter registry event consumer.\n *\n * @param registryEventConsumer a RateLimiter registry event consumer.\n * @return a {@link RateLimiterRegistry.Builder}\n */\n public Builder addRegistryEventConsumer(RegistryEventConsumer<RateLimiter> registryEventConsumer) {\n this.registryEventConsumers.add(registryEventConsumer);\n return this;\n }\n\n /**\n * Configures a RateLimiterRegistry with Tags.\n * <p>\n * Tags added to the registry will be added to every instance created by this registry.\n *\n * @param tags default tags to add to the registry.\n * @return a {@link RateLimiterRegistry.Builder}\n */\n public Builder withTags(Map<String, String> tags) {\n this.tags = tags;\n return this;\n }\n\n /**\n * Builds a RateLimiterRegistry\n *\n * @return the RateLimiterRegistry\n */\n public RateLimiterRegistry build() {\n return new InMemoryRateLimiterRegistry(rateLimiterConfigsMap, registryEventConsumers, tags,\n registryStore);\n }\n }\n}",
"public interface HitNotifier {\r\n\r\n /**\r\n * @param hl a hit listener\r\n * Add hl as a listener to hit events.\r\n */\r\n void addHitListener(HitListener hl);\r\n}",
"GaugeSupport(final Statistics globalQueueStats, final MetricRegistry metricRegistry) {\n this(null, globalQueueStats, metricRegistry);\n }",
"@Override\n\t\tpublic void addSupplierThreadLocal(String qualifier, Class<?> objectType) {\n\t\t\tSupplierThreadLocalTypeImpl<?> threadLocal = new SupplierThreadLocalTypeImpl<>(qualifier, objectType);\n\t\t\tthis.supplierThreadLocalTypes.add(threadLocal);\n\t\t}",
"@Override\n public void flatMap(MetricTrends t, Collector<Tuple8<String, String, String, String, String, Integer, Integer,String>> out) throws Exception {\n // if(t.getGroup().equals(\"Group_1\") && t.getService().equals(\"Service_1B\") && t.getEndpoint().equals(\"Hostname_4\") && t.getMetric().equals(\"Metric_B\")){\n int criticalstatus = this.opsMgr.getIntStatus(\"CRITICAL\");\n int warningstatus = this.opsMgr.getIntStatus(\"WARNING\");\n int unknownstatus = this.opsMgr.getIntStatus(\"UNKNOWN\");\n\n Timeline timeline = t.getTimeline();\n TimelineIntegrator timelineIntegrator = new TimelineIntegrator();\n int[] criticalstatusInfo = timelineIntegrator.countStatusAppearances(timeline.getSamples(), criticalstatus);\n int[] warningstatusInfo = timelineIntegrator.countStatusAppearances(timeline.getSamples(), warningstatus);\n int[] unknownstatusInfo = timelineIntegrator.countStatusAppearances(timeline.getSamples(), unknownstatus);\n\n ArrayList<String> tags = (ArrayList)this.mtagsMgr.getTags(t.getMetric()).clone();\n String tagInfo = \"\";\n for (String tag : tags) {\n if (tags.indexOf(tag) == 0) {\n tagInfo = tagInfo + tag;\n } else {\n tagInfo = tagInfo + \",\" + tag;\n }\n }\n \n Tuple8<String, String, String, String, String, Integer, Integer, String> tupleCritical = new Tuple8< String, String, String, String, String, Integer, Integer, String>(\n t.getGroup(), t.getService(), t.getEndpoint(), t.getMetric(), \"CRITICAL\", criticalstatusInfo[0], criticalstatusInfo[1], tagInfo);\n out.collect(tupleCritical);\n\n Tuple8<String, String, String, String, String, Integer, Integer, String> tupleWarning = new Tuple8< String, String, String, String, String, Integer, Integer, String>(\n t.getGroup(), t.getService(), t.getEndpoint(), t.getMetric(), \"WARNING\", warningstatusInfo[0], warningstatusInfo[1], tagInfo);\n out.collect(tupleWarning);\n\n Tuple8<String, String, String, String, String, Integer, Integer, String> tupleUnknown = new Tuple8< String, String, String, String, String, Integer, Integer, String>(\n t.getGroup(), t.getService(), t.getEndpoint(), t.getMetric(), \"UNKNOWN\", unknownstatusInfo[0], unknownstatusInfo[1], tagInfo);\n\n out.collect(tupleUnknown);\n }",
"WebCrawler addExtractor(Extractor extractor);",
"public void addMetric(Set<M> m){\r\n\t\tmetrics.addAll(m);\r\n\t}",
"@VisibleForTesting\n void reportOnce() {\n additionalAttributes = additionalAttributesSupplier.get();\n if (additionalAttributes == null) {\n additionalAttributes = Collections.emptyMap();\n }\n\n metricRegistry.getGauges().forEach(this::reportGauge);\n\n metricRegistry.getCounters().forEach(this::reportCounter);\n\n metricRegistry.getMeters().forEach(this::reportMeter);\n\n metricRegistry.getHistograms().forEach(this::reportHistogram);\n\n metricRegistry.getTimers().forEach(this::reportTimer);\n }",
"public interface JobTrackingReporter {\n\n /**\n * Reports the progress of a job task to the Job Database.\n * @param jobTaskId identifies the job task whose progress is to be reported\n * @param estimatedPercentageCompleted an indication of progress on the job task\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n void reportJobTaskProgress(final String jobTaskId, final int estimatedPercentageCompleted) throws JobReportingException;\n\n\n /**\n * Reports the completion of a job task to the Job Database.\n * @param jobTaskId identifies the completed job task\n * @return JobTrackingWorkerDependency list containing any dependent jobs that are now available for processing\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n List<JobTrackingWorkerDependency> reportJobTaskComplete(final String jobTaskId) throws JobReportingException;\n\n\n /**\n * Reports the completion of a list of job tasks to the Job Database.\n * @param partitionId identifies the partition\n * @param jobId identifies the job\n * @param jobTaskIds identifies the task ids\n * @return JobTrackingWorkerDependency list containing any dependent jobs that are now available for processing\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n List<JobTrackingWorkerDependency> reportJobTasksComplete(final String partitionId, final String jobId,\n final List<String> jobTaskIds) throws JobReportingException;\n\n\n /**\n * Reports the failure and retry of a job task to the Job Database.\n * @param jobTaskId identifies the failed job task\n * @param retryDetails an explanation of the retry of this job task\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n void reportJobTaskRetry(final String jobTaskId, final String retryDetails) throws JobReportingException;\n\n\n /**\n * Reports the failure and rejection of a job task to the Job Database.\n * @param jobTaskId identifies the rejected job task\n * @param rejectionDetails an explanation of the failure and rejection of the job task\n * @throws JobReportingException if a failure occurs in connecting or reporting to a Job Database\n */\n void reportJobTaskRejected(final String jobTaskId, final JobTrackingWorkerFailure rejectionDetails) throws JobReportingException;\n\n\n /**\n * Verifies that the Job Database can be contacted.\n * @return true if connection can be established with the Job Database, false otherwise\n */\n boolean verifyJobDatabase();\n}",
"public ThreadTest(String testName) {\n\n super(testName);\n\n logger = LogManager.getLogger(testName);//T1.class.getName()\n\n }",
"public interface IFeatureAppender {\r\n\t\r\n\t/**\r\n\t * Returns a List of google api formated string for the individual feature. It\r\n\t * shall be without the feature prefix and separating characters besides\r\n\t * other class expect it to behave in this special manner.\r\n\t * @param otherAppenders other appenders of the chart\r\n\t * @return List of google api formated string for features with prefix\r\n\t */\r\n\tpublic List<AppendableFeature> getAppendableFeatures (List<? extends IFeatureAppender> otherAppenders);\r\n\r\n}",
"public interface TrackerListener {\n /**\n * Provide Location Updates to parent classes (E.g. Map Provider's LocationDataSource class)<br>\n * The implementation of Tracker Interface should call this method when they receive new location updates.\n * @param coords\n * @see Tracker\n */\n void onNewCoords(Coords coords);\n\n /**\n * Provide Event updates to parent classes (E.g. Map Provider's LocationDataSource class)<br>\n * The implementation of Tracker Interface should call this method when they receive event info that they want to pass on to the parent classes.\n * @param event\n * @see Tracker\n */\n void onNewEvent(Event event);\n}",
"public abstract void putThread(Waiter waiter, Thread thread);",
"public interface ResourceManager {\r\n\t// Constants identifying the types of Thread that can be \r\n\t// requested to the ResourceManager \r\n\tpublic static final int USER_AGENTS = 0;\r\n\tpublic static final int SYSTEM_AGENTS = 1;\r\n\tpublic static final int TIME_CRITICAL = 2;\r\n\r\n\t/** \r\n\t Return a Thread without starting it.\r\n\t @param type The type of the Thread that will be returned: valid \r\n\t types are <code>USER_AGENTS</code>, <code>SYSTEM_AGENTS</code>,\r\n\t <code>TIME_CRITICAL</code>.\r\n\t @param r The <code>Runnable</code> object that will executed by the \r\n\t returned <code>Thread</code>.\r\n\t */\r\n public Thread getThread(int type, String name, Runnable r);\r\n \r\n public void initGraphicResources();\r\n \r\n public void releaseResources();\r\n}",
"private OtherRootTracer createDispatcherTracer() {\n Transaction tx = Transaction.getTransaction();\n ClassMethodSignature sig = new ClassMethodSignature(getClass().getName(), \"dude\", \"()V\");\n return new OtherRootTracer(tx, sig, this, new OtherTransSimpleMetricNameFormat(\"myMetricName\"));\n }",
"public interface HitNotifier {\n\n /**\n * Add hl as a listener to hit events.\n * @param hl the hit listener\n */\n void addHitListener(HitListener hl);\n\n /**\n * Remove hl from the list of listeners to hit events.\n * @param hl the hit listener\n */\n void removeHitListener(HitListener hl);\n}",
"private void initReporter() {\n String reporterType = getConfigValue(\"type\", DEFAULT_REPORTER_TYPE);\n // System.getProperty(\"com.argo.metrics.reporter.type\", DEFAULT_REPORTER_TYPE);\n String reporterInterval = getConfigValue(\"interval\", DEFAULT_REPORTER_INTERVAL);\n //System.getProperty(\"com.argo.metrics.reporter.interval\", DEFAULT_REPORTER_INTERVAL);\n String reporterDir = getConfigValue(\"outdir\", DEFAULT_REPORTER_OUTDIR);\n //System.getProperty(\"com.argo.metrics.reporter.outdir\", DEFAULT_REPORTER_OUTDIR);\n\n if(reporterType.equals(\"console\")) {\n final ConsoleReporter reporter = ConsoleReporter.forRegistry(registry)\n .convertRatesTo(TimeUnit.SECONDS)\n .convertDurationsTo(TimeUnit.SECONDS)\n .build();\n reporter.start(Integer.parseInt(reporterInterval), TimeUnit.SECONDS);\n } else if (reporterType.equals(\"jmx\")) {\n final JmxReporter reporter = JmxReporter.forRegistry(registry)\n .convertRatesTo(TimeUnit.SECONDS)\n .convertDurationsTo(TimeUnit.SECONDS)\n .build();\n reporter.start();\n } else if (reporterType.equals(\"csv\")) {\n final CsvReporter reporter = CsvReporter.forRegistry(registry)\n .convertRatesTo(TimeUnit.SECONDS)\n .convertDurationsTo(TimeUnit.SECONDS)\n .build(new File(reporterDir));\n reporter.start(Integer.parseInt(reporterInterval), TimeUnit.SECONDS);\n } else if (reporterType.equals(\"slf4j\")) {\n final Slf4jReporter reporter = Slf4jReporter.forRegistry(registry)\n .convertRatesTo(TimeUnit.SECONDS)\n .convertDurationsTo(TimeUnit.SECONDS)\n .outputTo(LoggerFactory.getLogger(MetricCollector.class))\n .build();\n reporter.start(Integer.parseInt(reporterInterval), TimeUnit.SECONDS);\n } else {\n throw new IllegalStateException(\"Unknown Metrics Reporter Type: \" + reporterType);\n }\n }",
"public interface ExpressionExperimentReportService {\n\n /**\n * Invalidate the cached 'report' for the experiment with the given id. If it is not cached nothing happens.\n *\n * @param id the id of the entity to evict\n */\n void evictFromCache( Long id );\n\n /**\n * Generate a value object that contain summary information about links, biomaterials, and datavectors\n *\n * @param id the id of the ee to generate summary for\n * @return details VO\n */\n ExpressionExperimentDetailsValueObject generateSummary( Long id );\n\n /**\n * Generates reports on ALL experiments, including 'private' ones. This should only be run by administrators as it\n * takes a while to run.\n */\n @Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();\n\n void getAnnotationInformation( Collection<ExpressionExperimentDetailsValueObject> vos );\n\n void populateEventInformation( Collection<ExpressionExperimentDetailsValueObject> vos );\n\n /**\n * Fills in link analysis and differential expression analysis summaries, and other info from the report.\n *\n * @param vos value objects\n */\n void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );\n\n /**\n * retrieves a collection of cached value objects containing summary information\n *\n * @param ids the ids of ees for which the summary objects should be retrieved.\n * @return a collection of cached value objects\n */\n @SuppressWarnings(\"unused\")\n // Possible external use\n Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects( Collection<Long> ids );\n\n /**\n * Recalculates the batch effect and batch confound information for datasets that have been updated\n * in the last 24 hours.\n */\n @SuppressWarnings(\"unused\") // Used by scheduler\n @Secured({ \"GROUP_AGENT\" })\n void recalculateBatchInfo();\n\n /**\n * Recalculates the batch effect and batch confound information for the given dataset.\n * @param ee the experiment to recalculate the batch properties for.\n */\n @Secured({ \"GROUP_AGENT\" })\n void recalculateExperimentBatchInfo( ExpressionExperiment ee );\n}",
"public interface ProfilerService {\n\n void onedotone(String param);\n\n void onedottwo(String param);\n}",
"public BaseContextScannerThread(int contextId) {\n super();\n this.contextId = contextId;\n this.listeners = new LinkedHashSet<>();\n }",
"void analyze(int nthread,boolean update,ReportOption opt);",
"@SuppressWarnings(\"unused\")\n @CalledByNative\n private void onMetricsCollected(long requestStartMs, long dnsStartMs, long dnsEndMs,\n long connectStartMs, long connectEndMs, long sslStartMs, long sslEndMs,\n long sendingStartMs, long sendingEndMs, long pushStartMs, long pushEndMs,\n long responseStartMs, long requestEndMs, boolean socketReused, long sentByteCount,\n long receivedByteCount) {\n synchronized (mNativeStreamLock) {\n try {\n if (mMetrics != null) {\n throw new IllegalStateException(\"Metrics collection should only happen once.\");\n }\n mMetrics = new CronetMetrics(requestStartMs, dnsStartMs, dnsEndMs, connectStartMs,\n connectEndMs, sslStartMs, sslEndMs, sendingStartMs, sendingEndMs,\n pushStartMs, pushEndMs, responseStartMs, requestEndMs, socketReused,\n sentByteCount, receivedByteCount);\n assert mReadState == mWriteState;\n assert (mReadState == State.SUCCESS) || (mReadState == State.ERROR)\n || (mReadState == State.CANCELED);\n int finishedReason;\n if (mReadState == State.SUCCESS) {\n finishedReason = RequestFinishedInfo.SUCCEEDED;\n } else if (mReadState == State.CANCELED) {\n finishedReason = RequestFinishedInfo.CANCELED;\n } else {\n finishedReason = RequestFinishedInfo.FAILED;\n }\n final RequestFinishedInfo requestFinishedInfo =\n new RequestFinishedInfoImpl(mInitialUrl, mRequestAnnotations, mMetrics,\n finishedReason, mResponseInfo, mException);\n mRequestContext.reportRequestFinished(\n requestFinishedInfo, mInflightDoneCallbackCount);\n } finally {\n mInflightDoneCallbackCount.decrement();\n }\n }\n }",
"ListenerThreads(Process chimera, Chimera chimeraObject, CyLogger logger) {\n\t\tthis.chimera = chimera;\n\t\tthis.chimeraObject = chimeraObject;\n\t\tthis.logger = logger;\n\t\treplyLog = new HashMap<String, List<String>>();\n \t \t// Get a line-oriented reader\n \treadChan = chimera.getInputStream();\n\t\tlineReader = new BufferedReader(new InputStreamReader(readChan));\n\t}",
"@Around(\"proxyRangeLatencyTrackerPointcut()\")\n public void rangeTracker(ProceedingJoinPoint join) throws Throwable\n {\n join.proceed(new Object[] { buildTracker(\"RANGE\") });\n }",
"public CollectorThreadLogger( int level, int maxTraceLines )\r\n {\r\n this.level = level;\r\n this.maxTraceLines= maxTraceLines;\r\n }",
"@ThreadSafe\npublic interface Metric<H> {\n /**\n * Returns a {@code Handle} with associated with specified {@code labelValues}. Multiples requests\n * with the same {@code labelValues} may return the same {@code Handle}.\n *\n * <p>It is recommended to keep a reference to the Handle instead of always calling this method\n * for every operations.\n *\n * @param labelValues the list of label values. The number of label values must be the same to\n * that of the label keys passed to {@link GaugeDouble.Builder#setLabelKeys(List)}.\n * @return a {@code Handle} the value of single gauge.\n * @throws NullPointerException if {@code labelValues} is null OR any element of {@code\n * labelValues} is null.\n * @throws IllegalArgumentException if number of {@code labelValues}s are not equal to the label\n * keys.\n * @since 0.1.0\n */\n H getHandle(List<String> labelValues);\n\n /**\n * Returns a {@code Handle} for a metric with all labels not set.\n *\n * @return a {@code Handle} for a metric with all labels not set.\n * @since 0.1.0\n */\n H getDefaultHandle();\n\n /**\n * Removes the {@code Handle} from the metric, if it is present. i.e. references to previous\n * {@code Handle} are invalid (not part of the metric).\n *\n * <p>If value is missing for one of the predefined keys {@code null} must be used for that value.\n *\n * @param labelValues the list of label values.\n * @since 0.1.0\n */\n void removeHandle(List<String> labelValues);\n\n /**\n * The {@code Builder} class for the {@code Metric}.\n *\n * @param <B> the specific builder object.\n * @param <V> the return value for {@code build()}.\n */\n interface Builder<B extends Builder<B, V>, V> {\n /**\n * Sets the description of the {@code Metric}.\n *\n * <p>Default value is {@code \"\"}.\n *\n * @param description the description of the Metric.\n * @return this.\n */\n B setDescription(String description);\n\n /**\n * Sets the unit of the {@code Metric}.\n *\n * <p>Default value is {@code \"1\"}.\n *\n * @param unit the unit of the Metric.\n * @return this.\n */\n B setUnit(String unit);\n\n /**\n * Sets the list of label keys for the Metric.\n *\n * <p>Default value is {@link Collections#emptyList()}\n *\n * @param labelKeys the list of label keys for the Metric.\n * @return this.\n */\n B setLabelKeys(List<String> labelKeys);\n\n /**\n * Sets the map of constant labels (they will be added to all the Handle) for the Metric.\n *\n * <p>Default value is {@link Collections#emptyMap()}.\n *\n * @param constantLabels the map of constant labels for the Metric.\n * @return this.\n */\n B setConstantLabels(Map<String, String> constantLabels);\n\n /**\n * Builds and returns a {@code Metric} with the desired options.\n *\n * @return a {@code Metric} with the desired options.\n */\n V build();\n }\n}",
"public interface RTCIceGatherer extends RTCStatsProvider {\n @JSBody(script = \"return RTCIceGatherer.prototype\")\n static RTCIceGatherer prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(params = \"options\", script = \"return new RTCIceGatherer(options)\")\n static RTCIceGatherer create(RTCIceGatherOptions options) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n RTCIceComponent getComponent();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<Event> onerror);\n\n default void addErrorEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCIceGathererEvent> getOnlocalcandidate();\n\n @JSProperty\n void setOnlocalcandidate(EventListener<RTCIceGathererEvent> onlocalcandidate);\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n addEventListener(\"localcandidate\", listener);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, EventListenerOptions options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n removeEventListener(\"localcandidate\", listener);\n }\n\n RTCIceGatherer createAssociatedGatherer();\n\n Array<RTCIceCandidateDictionary> getLocalCandidates();\n\n RTCIceParameters getLocalParameters();\n\n}",
"public interface ThreadExecutor extends Executor {\n}",
"public MetricRegistry getMetricRegistry();",
"@Override\n public void onSpecializedResourceReportRequest(SpecializedResourceReportRequest arg0) {\n\n }",
"public CollectingConsumer(List<T> collected) {\n this.collected = collected;\n }",
"public interface IHttpThreadExecutor {\n public void addTask(Runnable runnable);\n}",
"org.hl7.fhir.ResourceReference addNewPerformer();",
"public interface ContributionServiceMonitor {\n\n @Severe(\"An error was encountered processing the contribution: {0}\")\n void error(String message, Throwable e);\n\n @Info(\"The following contribution warnings were reported: \\n\\n{0}\")\n void contributionWarnings(String message);\n\n @Info(\"{0} installed\")\n void installed(String description);\n\n @Info(\"{0} uninstalled\")\n void uninstalled(String description);\n}"
]
| [
"0.55179936",
"0.5408589",
"0.5339902",
"0.51343745",
"0.5134173",
"0.5112958",
"0.5081982",
"0.4982092",
"0.4964946",
"0.495875",
"0.49290106",
"0.49034953",
"0.48874465",
"0.48651662",
"0.48641762",
"0.48546946",
"0.47972038",
"0.47911164",
"0.47909525",
"0.47569555",
"0.4756893",
"0.4756044",
"0.47491676",
"0.47444904",
"0.4744434",
"0.47221312",
"0.46969366",
"0.4681123",
"0.46651384",
"0.46645412",
"0.46523878",
"0.464983",
"0.46394157",
"0.46033585",
"0.45870778",
"0.45539683",
"0.4547845",
"0.4529308",
"0.45217884",
"0.4508945",
"0.44994026",
"0.44990256",
"0.4485205",
"0.44772637",
"0.44765827",
"0.44755048",
"0.44727325",
"0.44704074",
"0.44645476",
"0.44612333",
"0.44543424",
"0.44439408",
"0.4438401",
"0.44365418",
"0.44340214",
"0.442623",
"0.44133404",
"0.4407624",
"0.43945387",
"0.43942016",
"0.43935722",
"0.4378581",
"0.4377403",
"0.43769577",
"0.43700784",
"0.43578613",
"0.4338271",
"0.43270186",
"0.43232056",
"0.43146452",
"0.4311561",
"0.43094063",
"0.4308666",
"0.43072614",
"0.43008575",
"0.42974144",
"0.42960945",
"0.4293664",
"0.42875382",
"0.4286002",
"0.428375",
"0.42748916",
"0.42706317",
"0.4267843",
"0.426554",
"0.42645448",
"0.4255504",
"0.425258",
"0.42368037",
"0.42336997",
"0.42325342",
"0.42298308",
"0.4225693",
"0.42229837",
"0.42180085",
"0.42179075",
"0.42131022",
"0.42109007",
"0.4206415",
"0.42058334"
]
| 0.74595606 | 0 |
Set the time for data points to be reported | void setReportTime(long time); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTime(double time) {_time = time;}",
"public void setTime(float time) {\n this.time = time;\n }",
"public void setPointTime(Date pointTime) {\n this.pointTime = pointTime;\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }",
"public void setTime( Date time ) {\n this.time = time;\n }",
"public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(long time)\n {\n this.time = time;\n\n }",
"public void setTimestamp() {\n timestamp = System.nanoTime();\n }",
"public void setTime(long time) {\n this.time = time;\n }",
"public void setTime(long time) {\r\n this.time = time;\r\n }",
"public void setTime(int time)\n {\n this.time = time;\n start = time;\n end = time;\n }",
"public void setTime(Date time) {\r\n\t\tthis.time = time;\r\n\t}",
"public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}",
"public void setTime(){\r\n \r\n }",
"public void setTime(int time) {\n\t\tthis.time = time;\n\t}",
"@Override\n\tpublic void setTime(long time)\n\t{\n\t\tsource.setTime(time);\n\t}",
"public void setTime(Date time) {\n\t\tthis.time = time;\n\t}",
"void setTime(final int time);",
"public void setTime(int time) {\n\n\t\tthis.time = time;\n\t}",
"public void setTime(Date time) {\n this.time = new Date(time.getTime());\n }",
"public void setTime(int time) {\r\n\t\tthis.time = time;\r\n\t\tupdate();\r\n\t}",
"protected void setTimestamp(long time) \n {\n\t\tlTimestamp = time;\n\t}",
"static void setTiming(){\n killTime=(Pars.txType!=0) ? Pars.txSt+Pars.txDur+60 : Pars.collectTimesB[2]+Pars.dataTime[1]+60;//time to kill simulation\n tracksTime=(Pars.tracks && Pars.txType==0) ? Pars.collectTimesI[1]:(Pars.tracks)? Pars.collectTimesBTx[1]:100*24*60;//time to record tracks\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setTime(Long time) {\n this.time = time;\n }",
"@Override\n\tpublic void setStartTime(float t) \n\t{\n\t\t_tbeg = t;\n\t}",
"public void setTime(String time) {\n }",
"public void setTime(Date date) {\n time = date;\n renderCaption();\n }",
"public void set(final long timeValue) {\n stamp = timeValue;\n }",
"public void setTime(long time) {\r\n this.time.setTime(time);\r\n }",
"public void setDataGatheringDateTime(Date dateTime) { this.dataGatheringDateTime = dateTime; }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setTime(String time) {\n this.time = time;\n }",
"public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}",
"public void setTime(java.lang.Integer value) {\n this.time = value;\n }",
"public void setTime(long time,int ento){ \r\n\t}",
"private void setTime(Instant time) {\n this.time = time;\n }",
"@Override\n\tpublic void setTime(String time) {\n\t\tthis.time = time;\n\t}",
"public static void setModemTemperatureTimestamp(long time) {\n\t\t\n\t}",
"public void setTime(){\n\t\tthis.time = this.endTime - this.startTime;\t//calculate the time difference\n\t\t\n\t\t//now since the time is in milliseconds, convert the nanotime\n\t\tlong totalSeconds = (this.time / 1000000000);\n\t\t//Format the above seconds. So it will have at least \n\t\tint minute = (int)(totalSeconds/60);\n\t\tdouble second = totalSeconds - (minute*60);\t//get the remaining second part\n\t\t\n\t\tDecimalFormat minuteFormat = new DecimalFormat(\"##0\");\n\t\tDecimalFormat secondFormat = new DecimalFormat(\"###\");\t//so we only get the 3 digits\n\t\tString minutePart = minuteFormat.format(minute);\t//get the string for the second part\n\t\tString secondPart = secondFormat.format(second);\n\t\t\n\t\t\n\t\tString result = minutePart + \":\" + secondPart;\n\t\t\n\t\t//each time we set time, change the bounds\n\t\tthis.timeLabel.setText(String.valueOf(result));//set the JLabel text\n\t\t//when we set the time label, also set its location\n\t\tthis.timeLabel.setSize(timeLabel.getPreferredSize().width, \n\t\t\t\ttimeLabel.getPreferredSize().height);\n\t}",
"private void setRealTime(QueryData data, long time) {\n realTimeTime = time - parser.incrementTime();\n realTimeValue = data;\n }",
"public void setTime(String time) {\n\t\tthis.time = time;\n\t}",
"public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }",
"@Override\r\n\tpublic void setMyTime(MyTime myTime) {\n\t\t\r\n\t}",
"@DSSafe(DSCat.UTIL_FUNCTION)\n \n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.275 -0500\", hash_original_method = \"58DD96CFC8DDA00016DEC24CC6519017\", hash_generated_method = \"1F810C618BA62488684578EB05C3C6A1\")\n \n@Override\n public void setTime(long theTime) {\n /*\n * Store the Date based on the supplied time after removing any time\n * elements finer than the day based on zero GMT\n */\n super.setTime(normalizeTime(theTime));\n }",
"public void setTimeLine(double time) {\n if (yCoord != 0) {\n try {\n offscreen.setRGB(0, yCoord, width, 1, pixels, 0, 0);\n } catch (Exception ex) {\n }\n }\n if (time > 0.0 && time < 1.0) {\n // store the new time line to the restoration array\n timeValue = time;\n yCoord = (int) (timeValue * height);\n offscreen.getRGB(0, yCoord, width, 1, pixels, 0, 0);\n for (int x = 0; x < width; x++) {\n pixels[x] ^= 0x00FFFFFF;\n }\n offscreen.setRGB(0, yCoord, width, 1, pixels, 0, 0);\n for (int x = 0; x < width; x++) {\n pixels[x] ^= 0x00FFFFFF;\n }\n }\n }",
"public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}",
"public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }",
"public void presetTime(long tick,int ento){\r\n\r\n\t}",
"protected void setupTime() {\n this.start = System.currentTimeMillis();\n }",
"public void setTime(long timeMillis) {\n this.timeMillis = timeMillis;\n }",
"public void setTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}",
"@Override\n\tpublic void setEndTime(float t) \n\t{\n\t\t_tend = t;\n\t}",
"public static void set(long time) {\n\t\tWorldTime.absoluteTime = time;\n\t}",
"public void setTime(AbsoluteDate date)\r\n {\r\n CoreModel coreModel = CoreModel.getDefault();\r\n coreModel.changeTimepoint(getUnderlyingElement(), date, true);\r\n }",
"public void setReportTime(Time reportTime){\n this.reportTimeStmp = reportTime;\n return ;\n }",
"public void setTestTime(Integer testTime) {\n this.testTime = testTime;\n }",
"public final void setTime(final Date newTime) {\n this.time = newTime;\n }",
"private void SetTime() {\r\n\t\t timelbl.setText(second/3600+\":\"+((second/60)%60)+\":\"+(second%60));\r\n\t}",
"public void setTime(double minutes) {\n\t\t// implement this method.\n\n\t}",
"public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }",
"@Override\n\tpublic void setStartTime(int t) {\n\t\t\n\t}",
"public void setTime (java.lang.String time) {\n\t\tthis.time = time;\n\t}",
"public void setTimeOfLastValuesChanged(long millis);",
"public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }",
"public void setTime ( final Calendar time ) {\n this.time = time;\n }",
"public void setaTime(Date aTime) {\r\n this.aTime = aTime;\r\n }",
"public void setTime( int value ) {\n final int oldTime = currentTime;\n currentTime = value;\n selectedThingsChanged( oldTime );\n\n mapComponent.getOptionContainer().getTimeCode().setText( DataExporter.generateTimeCode( value ) );\n\n mapComponent.getRadiantGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, true ) ) );\n mapComponent.getDireGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, false ) ) );\n\n mapComponent.getRadiantXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, true ) ) );\n mapComponent.getDireXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, false ) ) );\n\n }",
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }",
"public void setTime(Date date) {\r\n\t\tthis.wecker = date;\r\n\t}",
"public void setTime(DateTime inputTime){\n time = inputTime.getMillis();\n timeZone = inputTime.getZone();\n }",
"protected void timeChanged(Real time) {\n try {\n getChart().timeChanged(time);\n } catch (Exception exc) {\n logException(\"changePosition\", exc);\n }\n super.timeChanged(time);\n }",
"public void setMeasurementTimestamp(Date value) {\r\n this.measurementTimestamp = value;\r\n }",
"public void setAtTime(Date atTime) {\r\n this.atTime = atTime;\r\n }",
"public void setStartTime(double startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.setDoubleValue(startTime);\r\n }\r\n }",
"public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }",
"public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }",
"public TimeDataItem(Date time, double value) {\n this(time, new Double(value));\n }",
"public void setTimeStart(int timeStart) {\r\n this.timeStart = timeStart;\r\n }",
"public void setSit_time(int time)\n\t{\n\t\tsit_time = time - enter_time;\t\n\t}",
"public void setTimeSend(Date timeSend) {\n this.timeSend = timeSend;\n }",
"public void setDateAndTime(int d,int m,int y,int h,int n,int s);",
"public TimeDataItem(Date time, float value) {\n this(time, new Float(value));\n }",
"public void setBeginTime(String time){beginTime = time;}",
"abstract public void setLoadingTime(long time);",
"public void setRainTime(int time)\n {\n rainTime = time;\n }",
"public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }"
]
| [
"0.73440903",
"0.7089496",
"0.70375246",
"0.69435525",
"0.69435525",
"0.69435525",
"0.69357866",
"0.69281197",
"0.6909788",
"0.69071865",
"0.69071865",
"0.69071865",
"0.69071865",
"0.6883637",
"0.688338",
"0.6880907",
"0.6875564",
"0.68378013",
"0.6833899",
"0.6820987",
"0.68209386",
"0.67584974",
"0.67500263",
"0.67322564",
"0.6696514",
"0.66892076",
"0.66400456",
"0.66181386",
"0.661224",
"0.6532572",
"0.65305865",
"0.65305865",
"0.65305865",
"0.6528957",
"0.6525519",
"0.6523001",
"0.6503116",
"0.64984983",
"0.64978176",
"0.6453335",
"0.6433993",
"0.6433993",
"0.6433993",
"0.6433993",
"0.6426511",
"0.6418771",
"0.63798743",
"0.6369338",
"0.63618404",
"0.63585275",
"0.63429445",
"0.632623",
"0.6302303",
"0.62653744",
"0.625109",
"0.6239419",
"0.6233864",
"0.6202926",
"0.6197357",
"0.6195287",
"0.61929107",
"0.6186888",
"0.6174134",
"0.6139214",
"0.61391795",
"0.61288893",
"0.6125922",
"0.6119193",
"0.61024487",
"0.6089211",
"0.60829204",
"0.60639805",
"0.6059866",
"0.60557353",
"0.6055099",
"0.60505646",
"0.6028733",
"0.60244936",
"0.60211885",
"0.6011907",
"0.6008811",
"0.6008811",
"0.60087866",
"0.60087705",
"0.60055715",
"0.5965105",
"0.59611636",
"0.59565264",
"0.59453046",
"0.59453046",
"0.59417516",
"0.59296215",
"0.59276026",
"0.5926401",
"0.5922975",
"0.5922019",
"0.5916748",
"0.59165657",
"0.59159595",
"0.59138966"
]
| 0.7163002 | 1 |
This lets you put a tag to all data points submitted to sub interfaces of ThreadReporter | void addTag(String name, String value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ThreadReporter\n{\n\t/**\n\t Set the time for data points to be reported\n\t @param time\n\t */\n\tvoid setReportTime(long time);\n\n\t/**\n\t This lets you put a tag to all data points submitted to sub interfaces of\n\t ThreadReporter\n\t @param name\n\t @param value\n\t */\n\tvoid addTag(String name, String value);\n\tvoid removeTag(String name);\n\tvoid clearTags();\n\tvoid clearAll();\n}",
"public void onTagsReceived(Map<String, Object> tags);",
"public interface IWeakThread {\n\n void runThread(int tag);\n\n}",
"void threadAdded(String threadId);",
"private void onPreRequestData(int tag) {\n }",
"private static void notifyListenersOfTag(Tag tag){\n ArrayList<TagListener> listenersOfTag = tagListeners.get(tag);\n if(listenersOfTag!=null){\n for(TagListener listener : listenersOfTag){\n try {\n listener.onTagUpdated(tag);\n }catch (NullPointerException e){\n e.printStackTrace();\n }\n }\n }\n }",
"public interface IProbeRequestFrame {\n\n\tpublic List<IWlanElement> getTaggedParameter();\n\t\n}",
"@Override\n void record(StatsContext tags, MeasureMap measurementValues) {\n statsManager.record((StatsContextImpl) tags, measurementValues);\n }",
"public interface IDataListener<T> {\n void attach(List<T> objects);\n void attach(T object);\n void failure(String msg);\n}",
"public interface ILogger {\r\n //name of columns for measuring multiple values together\r\n public void init(String... names) throws IOException;\r\n //datapoints per column for measuring multiple values together\r\n public void log(Object... vals) throws IOException;\r\n //all datapoints where submitted so clean up\r\n public void finish() throws IOException;\r\n}",
"public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }",
"public interface ThreadFormatter extends Formatter<Thread> {\n}",
"public interface ItemLayout {\n public void fillData(ThreadBean data);\n}",
"public abstract AbstractSctlThreadEntry addThread();",
"public abstract void putThread(Waiter waiter, Thread thread);",
"@Override\n public void i(String TAG, String msg) {\n }",
"public void setTag(int tag) {\n this.tag = tag;\n }",
"public interface IThreadMonitorService {\n public ThreadMonitorInfo getThreadInfo();\n\n}",
"private void onRequestData(int tag) {\n \ttry {\n \t data = request.request();\n \t} catch(MatjiException e) {\n \t lastOccuredException = e;\n \t}\n }",
"@Override\n public String getDescription() {\n return \"Tagged data upload\";\n }",
"long getTraceTag();",
"public void annotate(String annotation) {\n if (isActive())\n itemBuffer.offer(new Tag(System.currentTimeMillis(), credentials.user, annotation));\n }",
"@Override\n protected void paintDataTags(Painter aPntr)\n {\n _pointPainter.paintTags(aPntr);\n }",
"interface Step {\n void onStepResult(boolean isSuccess);\n\n\n @Subscribe(threadMode = ThreadMode.MAIN)\n void onStepTryEvent(TryToCompleteStep step);\n\n}",
"public void markRequestTimerMerge() throws JNCException {\n markLeafMerge(\"requestTimer\");\n }",
"@Override\n public void threadStarted() {\n }",
"public interface Observer {\r\n\r\n /**\r\n * update method\r\n * @param taggable a taggable object\r\n * @param pane the pane\r\n */\r\n void update(Taggable taggable, Pane pane);\r\n}",
"public void setTag(Object tag)\n {\n fTag = tag;\n }",
"@Override\n public void setTag(int t) {\n this.tag = t;\n\n }",
"@Override\n public Object visitThreadDeclaratorList(LitmusX86Parser.ThreadDeclaratorListContext ctx) {\n for(LitmusX86Parser.ThreadContext threadCtx : ctx.thread()){\n String thread = threadId(threadCtx.ThreadIdentifier().getText());\n mapThreadEvents.put(thread, new ArrayList<Thread>());\n mapRegisters.put(thread, new HashMap<String, Register>());\n mapRegistersLocations.put(thread, new HashMap<String, Location>());\n threadCount++;\n }\n return null;\n }",
"public void setTag( String tag )\n {\n this.tag = tag;\n }",
"void addTag(String tag){tags.add(tag);}",
"void info(String tag, String msg);",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n public String getDescription() {\n return \"Tagged data extend\";\n }",
"public CallSpec<Type, String> retrieveAssignedTags() {\n return null;\n }",
"public void setTag(String tag) {\r\n this.tag = tag;\r\n }",
"public interface OnAdHocReceivedData {\n void onReceivedData(JSONObject experimentFlags);\n}",
"private void sendTelemetry(HttpRecordable recordable) {\n }",
"private void collectTags\n (int[] i, int i0, int i1, long[] T) {\n for (int o=i0; o<i1; o++) // 1\n T[o] = data[i[o]]; // 1\n }",
"public int tag () { return MyTag; }",
"public void visit(Interested i);",
"public void setTag(String tag);",
"public void addTag(Tag t);",
"void addThreadFilter(ThreadReference thread);",
"@Override\n\tpublic void submitJobEmployee(int je_id, String caller) {\n\n\t}",
"void assignDataReceived(Serializable dataReceived);",
"public abstract void onMergePatchset(TicketModel ticket);",
"void track(String sender, String additionalInfo);",
"public interface OnNfcDataReceived {\n void processNfcData(Tag mytag);\n}",
"@Override\n\tpublic void trace(Marker marker, String message, Object... params) {\n\n\t}",
"public void setTag(String tag) {\n this.tag = tag;\n }",
"public void setTag(String tag) {\n this.tag = tag;\n }",
"public interface AddTagActivityView {\n\n void viewUploadProgress(boolean state);\n\n void viewMessage(String msg);\n\n void updateTagsList(List<Tag> tagList);\n\n}",
"public synchronized void add(String name, long threadId) {\n if(mFinished) {\n throw new IllegalStateException(\"Marker added to finished log\");\n }\n mMarkers.add(new Marker(name, threadId, SystemClock.elapsedRealtime()));\n }",
"public static void addedThread(ThreadXML threadXML) {\n }",
"@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}",
"abstract void logCustom(String tag, String message);",
"public void addTag(String tag) {\n this.tag = tag;\n }",
"public interface TextileEventListener {\n\n /**\n * Called when the Textile node is started successfully\n */\n void nodeStarted();\n\n /**\n * Called when the Textile node fails to start\n * @param e The error describing the failure\n */\n void nodeFailedToStart(Exception e);\n\n /**\n * Called when the Textile node is successfully stopped\n */\n void nodeStopped();\n\n /**\n * Called when the Textile node fails to stop\n * @param e The error describing the failure\n */\n void nodeFailedToStop(Exception e);\n\n /**\n * Called when the Textile node comes online\n */\n void nodeOnline();\n\n /**\n * Called when the node is scheduled to be stopped in the future\n * @param seconds The amount of time the node will run for before being stopped\n */\n void willStopNodeInBackgroundAfterDelay(int seconds);\n\n /**\n * Called when the scheduled node stop is cancelled, the node will continue running\n */\n void canceledPendingNodeStop();\n\n /**\n * Called when the Textile node receives a notification\n * @param notification The received notification\n */\n void notificationReceived(Notification notification);\n\n /**\n * Called when any thread receives an update\n * @param feedItem The thread update\n */\n void threadUpdateReceived(FeedItem feedItem);\n\n /**\n * Called when a new thread is successfully added\n * @param threadId The id of the newly added thread\n */\n void threadAdded(String threadId);\n\n /**\n * Called when a thread is successfully removed\n * @param threadId The id of the removed thread\n */\n void threadRemoved(String threadId);\n\n /**\n * Called when a peer node is added to the user account\n * @param peerId The id of the new account peer\n */\n void accountPeerAdded(String peerId);\n\n /**\n * Called when an account peer is removed from the user account\n * @param peerId The id of the removed account peer\n */\n void accountPeerRemoved(String peerId);\n\n /**\n * Called when any query is complete\n * @param queryId The id of the completed query\n */\n void queryDone(String queryId);\n\n /**\n * Called when any query fails\n * @param queryId The id of the failed query\n * @param e The error describing the failure\n */\n void queryError(String queryId, Exception e);\n\n /**\n * Called when there is a thread query result available\n * @param queryId The id of the corresponding query\n * @param thread A thread query result\n */\n void clientThreadQueryResult(String queryId, Thread thread);\n\n /**\n * Called when there is a contact query result available\n * @param queryId The id of the corresponding query\n * @param contact A contact query result\n */\n void contactQueryResult(String queryId, Contact contact);\n}",
"public interface TIOADExecutorListeners{\n void OnStart();\n void OnStarting(double pro);\n void OnError(int error);\n void OnSuccess();\n}",
"void mo54412a(int i, Notification notification);",
"@Override\n\tpublic void trace(Marker marker, Object message) {\n\n\t}",
"public interface HitNotifier {\r\n\r\n /**\r\n * @param hl a hit listener\r\n * Add hl as a listener to hit events.\r\n */\r\n void addHitListener(HitListener hl);\r\n}",
"public interface Telemetry {}",
"@Override\n public void log(String tag, com.microsoft.identity.client.Logger.LogLevel logLevel, String message, boolean containsPII) {\n }",
"void requestId(long requestId);",
"void requestId(long requestId);",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"public void setMyTag(int theTag)\n\t{\n\t\tmyTag = theTag;\n\t}",
"public interface VirtualUsersMeasurement {\n\n\t/**\n\t * Measurement name.\n\t */\n\tString MEASUREMENT_NAME = \"virtualUsers\";\n\n\t/**\n\t * Tags.\n\t * \n\t * @author Alexander Wert\n\t */\n\tinterface Tags {\n\t\t/**\n\t\t * Node name field\n\t\t */\n\t\tString NODE_NAME = \"nodeName\";\n\n\t\tString TEST_NAME = \"testName\";\n\n\t\tString RUN_ID = \"runId\";\n\t}\n\n\t/**\n\t * Fields.\n\t * \n\t * @author Alexander Wert\n\t */\n\tinterface Fields {\n\t\t/**\n\t\t * Minimum active threads field.\n\t\t */\n\t\tString MIN_ACTIVE_THREADS = \"minActiveThreads\";\n\n\t\t/**\n\t\t * Maximum active threads field.\n\t\t */\n\t\tString MAX_ACTIVE_THREADS = \"maxActiveThreads\";\n\n\t\t/**\n\t\t * Mean active threads field.\n\t\t */\n\t\tString MEAN_ACTIVE_THREADS = \"meanActiveThreads\";\n\n\t\t/**\n\t\t * Started threads field.\n\t\t */\n\t\tString STARTED_THREADS = \"startedThreads\";\n\n\t\t/**\n\t\t * Finished threads field.\n\t\t */\n\t\tString FINISHED_THREADS = \"finishedThreads\";\n\t}\n}",
"public void logData(){\n }",
"@Around(\"proxyRangeLatencyTrackerPointcut()\")\n public void rangeTracker(ProceedingJoinPoint join) throws Throwable\n {\n join.proceed(new Object[] { buildTracker(\"RANGE\") });\n }",
"private void notifyListeners(ProteusOpaqueData pod) {\n \tEnumeration<ProteusOpaqueListener> e = listeners.elements();\n \twhile (e.hasMoreElements()) {\n \t\te.nextElement().newOpaqueData(pod);\n \t}\n }",
"public interface DataObserver {\n }",
"public interface IFeatureDrawEventListener extends IEventListener<FeatureDrawEvent> {\n \n}",
"@Override\n\tpublic void trace(Marker marker, Message msg) {\n\n\t}",
"public void packetSent(NIOSocket socket, Object tag)\n {\n }",
"void onDataLoaded(int requestId, Object data);",
"private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}",
"public interface InterfaceTagCellProb {\n\n\t/**\n\t * Function where the tag-cell probabilities are calculated and stored in a defined file.\n\t * @param dir : directory of the project\n\t * @param trainFile : file that contains the train set\n\t * @param outFile : output file\n\t * @param scale : grid scale\n\t * @throws Exception\n\t */\n\tpublic void calculatorTagCellProb(String dir, String trainFile, String outFile, int scale) throws Exception;\n}",
"public synchronized void addGauge(T key, String name) {\n if(gauges.containsKey(key)) {\n return;\n }\n RequestExecutionTimeGauge gauge = new RequestExecutionTimeGaugeImpl(name, this.name);\n gauges.put(key,gauge);\n }",
"@Override\n\tpublic void trace(Marker marker, String message) {\n\n\t}",
"public interface TrackGPListerner {\n public void onTrackSuccess(ReferData referData);\n public void onTrackFailed();\n}",
"public interface ChangeAnalyticsListener {\n int[] getJointIds();\n\n void onChangeAnalytics(boolean z, int[] iArr);\n}",
"public void onParaDataChangeByVar(int i) {\n }",
"public void addSupportedTag(String tag);",
"@Override\n\tpublic void resAuditJobEmployee(int je_id, String caller) {\n\n\t}",
"public interface Listener{\n\t\tpublic void notify(Map<String,Serializable> datas);\n\t}",
"@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}",
"public interface TagDataReader {\r\n WritableMap getTagMap();\r\n}",
"@Override\n public void addRequest(Request<?> request, Object tag) {\n request.setTag(tag);\n getRequestQueue().add(request);\n }",
"@Override\r\n\tpublic void ticketing(User user, Seat seat, Performance pfm) {\n\t\t\r\n\t}",
"@Override\n\tpublic void showTaggedUsers() {\n\t\t\n\t}",
"public void addMeta(int i, int o, int t) {\n\n pcb_e.addMetadata(i, o, t);\n jobQueue.add(pcb_e);\n count++;\n\n }",
"@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)\n private void addTrafficStatsTag(Request<?> request) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n TrafficStats.setThreadStatsTag(request.getTrafficStatsTag());\n }\n }",
"public void logSensorData () {\n\t}",
"interface ResponseDataListener {\n public void Response(String response, int sectionId);\n}",
"public void tickTag(String specificData) {\r\n dataTag.set(this.getPosition(specificData),\r\n dataTag.get(this.getPosition(specificData)) + 1);\r\n }",
"public interface UserTrackingLogger {\n\n public long getPositiveImpressionIdForMessage(long messageId);\n\n public long getNegativeImpressionIdForMessage(long messageId);\n\n public long getImpressionIdForMessage(long messageId, String questionText);\n \n public long getTopQuestionImpressionId(long conversationId, String questionText);\n\n public long getNoneOfTheAboveImpressionIdForMessage(long messageId);\n\n public long getForumVisitImpressionIdForMessage(long messageId);\n\n /**\n * Return a list of all impressions for the given message ID that have location=HIDDEN.\n * \n * @param messageId\n * @return\n */\n public List<Long> getHiddenImpressionIdsForMessage(long messageId);\n\n /**\n * Log a user query event.\n * \n * @param timestamp The time the event occurred\n * @param user Some identifier that ideally represents a single user interacting with the system\n * @param hostname The hostname or identifier of the system\n * @param referral The ID of the click that triggered this query, or null\n * @param questionText The text of the query\n * @param mode How the query was input by the user\n * @return The event ID\n */\n public long query(Date timestamp, String user, String hostname, Long referral, String questionText, InputMode mode);\n\n /**\n * Log a user impression event\n * \n * @param timestamp The time the event occurred\n * @param user Some identifier that ideally represents a single user interacting with the system\n * @param hostname The hostname or identifier of the system\n * @param referral The ID of the query that triggered this impression, or null\n * @param prompt The impression text\n * @param classifiedClass The answer class from the classifier, or null\n * @param offset The 1-based offset of this impression relative to other impressions from the same query\n * @param action Currently not used\n * @param location The location of the impression on the screen\n * @param provenance {@see Provenance}\n * @param confidence The confidence score from the classifier, or 0\n * @return The event ID\n */\n public long impression(Date timestamp, String user, String hostname, Long referral, String prompt,\n String classifiedClass, int offset, String action, Location location, Provenance provenance, double confidence);\n\n /**\n * @param timestamp The time the event occurred\n * @param user Some identifier that ideally represents a single user interacting with the system\n * @param hostname The hostname or identifier of the system\n * @param referral The ID of the impression that was clicked\n * @return The event ID\n */\n public long click(Date timestamp, String user, String hostname, Long referral);\n\n /**\n * Unhides an impression that was previously hidden from the user.\n * The event ID of the impression is unchanged.\n * \n * @param impressionId The event ID of the impression\n * @param newLocation The location of the impression on the screen\n */\n public void unhideImpression(long impressionId, Location newLocation);\n\n /**\n * Possible impression locations on the page\n */\n public static enum Location {\n MAIN_RESULTS_AREA, RIGHT_RAIL, FOOTER, \n /**\n * This is a special location to indicate impressions that were generated from a query\n * but not initially shown to the user. When the impression is shown to the user it\n * should be unhidden via unhideImpression().\n */\n HIDDEN\n };\n\n /**\n * Where an impression came from.\n * Currently only used to distinguish between clickable and non-clickable impressions.\n */\n public static enum Provenance {\n /**\n * This impression shows an answer inline and is not clickable.\n */\n INLINE, \n /**\n * This impression is clickable to either provide feedback or submit another query.\n */\n ALGO\n };\n\n}"
]
| [
"0.80791163",
"0.54044676",
"0.5266374",
"0.52248967",
"0.5133603",
"0.5124724",
"0.50689435",
"0.5030399",
"0.49935165",
"0.494422",
"0.4930138",
"0.49286065",
"0.4911088",
"0.4898707",
"0.48726365",
"0.4864743",
"0.48557407",
"0.48517308",
"0.48464048",
"0.48405087",
"0.48314917",
"0.48168254",
"0.48156697",
"0.4814164",
"0.48116922",
"0.48110518",
"0.48011136",
"0.48008317",
"0.47813308",
"0.47715262",
"0.47651672",
"0.4743328",
"0.47413346",
"0.47297207",
"0.4729559",
"0.47273225",
"0.47237933",
"0.47063458",
"0.47056597",
"0.4700146",
"0.46999466",
"0.46983346",
"0.46962726",
"0.469508",
"0.46885967",
"0.46851417",
"0.4684912",
"0.4683027",
"0.46666023",
"0.46654728",
"0.46590203",
"0.4656755",
"0.4656755",
"0.46560013",
"0.4652424",
"0.4639391",
"0.4638198",
"0.46365985",
"0.46299303",
"0.46239814",
"0.46204025",
"0.4618707",
"0.461799",
"0.4616903",
"0.461641",
"0.4607761",
"0.4607255",
"0.4607255",
"0.46067986",
"0.45944074",
"0.45942113",
"0.45902082",
"0.45807275",
"0.4577251",
"0.45669478",
"0.45526293",
"0.45451224",
"0.45441237",
"0.45424956",
"0.4542441",
"0.45399064",
"0.45310032",
"0.45268363",
"0.45231828",
"0.45219573",
"0.45184213",
"0.45184007",
"0.45162168",
"0.45140833",
"0.45120153",
"0.45102137",
"0.45098445",
"0.45088568",
"0.4505035",
"0.45040658",
"0.45033973",
"0.44962656",
"0.44950113",
"0.44931072",
"0.44903135",
"0.44896173"
]
| 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void alert(Context context, String msg) {
try {
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(Html.fromHtml(msg));
alertDialogBuilder.setPositiveButton(android.R.string.ok , new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK)
dialog.dismiss();
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"void dismissAlertDialog();",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talert.dismiss();\n\t\t\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n finishAffinity();\n System.exit(0);\n }",
"public void onClick(DialogInterface dialog, int id) {\n System.exit(0);\n }",
"private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}",
"public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }",
"void CloseOkDialog();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"void closeApp();",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void dismissAlert() {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.alertIsPresent());\n getDriver().switchTo().alert().dismiss();\n }",
"@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\n\t\t\t\talert.dismiss();\n\t\t\t\t\n\t\t\t}",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n \t\t\tSystem.out.println(\"触发windowClosing事件\");\n \t\t\tObject[] options = { \"确定\", \"取消\" }; \n \t\t\tint result = JOptionPane.showOptionDialog(null, \"确定退出本窗口?\", \"提示\", \n \t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, \n \t\t\tnull, options, options[0]); \n \t\t\tif(result == 0){\n \t\t\t\tDownloadView.this.dispose();//关闭窗体\n \t\t\t\tif(restListener!=null)restListener.close();\n \t\t\t}\n\t\t\t}",
"public static void getCloseAlert(Event event, Scene scene, String headerText, String contentText){\n final Alert stopWindow = new Alert(Alert.AlertType.CONFIRMATION);\n try {\n DialogPane dialogPane = stopWindow.getDialogPane();\n dialogPane.setGraphic(new Label());\n dialogPane.getStylesheets().add(\"/stylesheets/battleship_standard.css\");\n dialogPane.getStyleClass().add(\"alert-window\");\n } catch (Exception ignored) {}\n try {\n Stage stage = (Stage) stopWindow.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(\"images/ApplicationLogo.png\"));\n }\n catch (Exception ignored) { }\n stopWindow.setHeaderText(headerText);\n stopWindow.setContentText(contentText);\n stopWindow.setTitle(\"WARNING!\");\n stopWindow.getButtonTypes().clear();\n ButtonType noButton = new ButtonType(\"NO\", ButtonBar.ButtonData.CANCEL_CLOSE);\n ButtonType yesButton = new ButtonType(\"YES\", ButtonBar.ButtonData.OK_DONE);\n stopWindow.getButtonTypes().addAll(yesButton, noButton);\n stopWindow.showAndWait();\n if (stopWindow.getResult() == ButtonType.OK || stopWindow.getResult().equals(noButton)) {\n event.consume();\n } else {\n scene.getWindow().hide();\n }\n }",
"@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}",
"@FXML\r\n public void onActionExitProgram(ActionEvent actionEvent) {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n System.exit(0);\r\n }\r\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public static void alert(Context c, String msg) {\n\t\talert(c, msg, new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tif (dialog != null)\n\t\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}",
"public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }",
"public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n finish(); \n \n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"private void alertMessage() {\n //remove friend confirmation dialog\n //taken from: http://www.androidhub4you.com/2012/09/alert-dialog-box-or-confirmation-box-in.html\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n // Yes button clicked\n logout();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n // No button clicked\n // do nothing\n break;\n }\n }\n };\n\n //Show \"warning\" Dialog, if user is sure about deleting friend.\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Are you sure you want to log out from this app?\")\n .setTitle(\"Logout\")\n .setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }",
"void forceClose();",
"@Override\n public void onClick(View v) {\n alert.dismiss();\n }",
"public synchronized void alertQuit() {\n\t\ttry {\n\t\t\tvListen.sendQuit();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"public void onClick(DialogInterface arg0, int arg1) {\n finishAffinity();\n System.exit(0);\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 }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\n }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"public static void alertbox_Reject() throws CheetahException {\n\t\ttry {\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.dismiss();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void CloseWaitDialog();",
"private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (JOptionPane.showConfirmDialog(frame,\n \"Are you sure to close this window?\", \"Really Closing?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {\n safeExit();\n }\n }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void formWindowClosing(java.awt.event.WindowEvent evt) {\n int confirmed = JOptionPane.showConfirmDialog(null,\n \"On quittant le programme vous perdez toutes vos données actuelles. Voulez-vous quitter ?\", \"Exit Program Message Box\",\n JOptionPane.YES_NO_OPTION);\n if (confirmed == 0) {\n clearGui();\n logout();\n this.dispose();\n } else {\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);//no\n }\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }",
"public void dismissAlert() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t\tpopUp.dismiss();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}"
]
| [
"0.75701165",
"0.7047615",
"0.7030644",
"0.70234317",
"0.6972196",
"0.68567014",
"0.6844488",
"0.6787543",
"0.6787543",
"0.67708606",
"0.6770286",
"0.6766505",
"0.6650396",
"0.6630184",
"0.6623259",
"0.66229105",
"0.66169024",
"0.6578804",
"0.6569774",
"0.6542295",
"0.6535602",
"0.65297186",
"0.6527968",
"0.651908",
"0.6514256",
"0.6486832",
"0.64698845",
"0.64695275",
"0.64387816",
"0.64353347",
"0.64344484",
"0.6406305",
"0.6405084",
"0.6398251",
"0.63863736",
"0.6381645",
"0.63686675",
"0.6363911",
"0.6347588",
"0.6346455",
"0.63422644",
"0.63262224",
"0.6322052",
"0.6321319",
"0.6309616",
"0.63062966",
"0.6302876",
"0.63000596",
"0.6295986",
"0.6294192",
"0.62862647",
"0.6282566",
"0.628019",
"0.628019",
"0.6277794",
"0.62730443",
"0.6268013",
"0.62619716",
"0.62565655",
"0.6252639",
"0.6242037",
"0.62403756",
"0.6239849",
"0.62367845",
"0.6236082",
"0.62316334",
"0.62306255",
"0.6218308",
"0.62169605",
"0.6203107",
"0.62024343",
"0.62018645",
"0.62015915",
"0.6196657",
"0.6193508",
"0.6190365",
"0.61888576",
"0.61887294",
"0.6178135",
"0.61763126",
"0.6175423",
"0.617297",
"0.6172674",
"0.6172659",
"0.61719924",
"0.6171699",
"0.6171393",
"0.6168169",
"0.6166375",
"0.6166375",
"0.61555034",
"0.6153707",
"0.61509687",
"0.61509687",
"0.61509687",
"0.6149358",
"0.61493075",
"0.6147824",
"0.61465126",
"0.614628",
"0.6145132"
]
| 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void alert(Context context, String title, String msg) {
try {
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(Html.fromHtml(msg));
alertDialogBuilder.setTitle(title);
alertDialogBuilder.setPositiveButton(android.R.string.ok , new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK)
dialog.dismiss();
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"void dismissAlertDialog();",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talert.dismiss();\n\t\t\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n finishAffinity();\n System.exit(0);\n }",
"public void onClick(DialogInterface dialog, int id) {\n System.exit(0);\n }",
"private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}",
"public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }",
"void CloseOkDialog();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"void closeApp();",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void dismissAlert() {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.alertIsPresent());\n getDriver().switchTo().alert().dismiss();\n }",
"@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\n\t\t\t\talert.dismiss();\n\t\t\t\t\n\t\t\t}",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n \t\t\tSystem.out.println(\"触发windowClosing事件\");\n \t\t\tObject[] options = { \"确定\", \"取消\" }; \n \t\t\tint result = JOptionPane.showOptionDialog(null, \"确定退出本窗口?\", \"提示\", \n \t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, \n \t\t\tnull, options, options[0]); \n \t\t\tif(result == 0){\n \t\t\t\tDownloadView.this.dispose();//关闭窗体\n \t\t\t\tif(restListener!=null)restListener.close();\n \t\t\t}\n\t\t\t}",
"public static void getCloseAlert(Event event, Scene scene, String headerText, String contentText){\n final Alert stopWindow = new Alert(Alert.AlertType.CONFIRMATION);\n try {\n DialogPane dialogPane = stopWindow.getDialogPane();\n dialogPane.setGraphic(new Label());\n dialogPane.getStylesheets().add(\"/stylesheets/battleship_standard.css\");\n dialogPane.getStyleClass().add(\"alert-window\");\n } catch (Exception ignored) {}\n try {\n Stage stage = (Stage) stopWindow.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(\"images/ApplicationLogo.png\"));\n }\n catch (Exception ignored) { }\n stopWindow.setHeaderText(headerText);\n stopWindow.setContentText(contentText);\n stopWindow.setTitle(\"WARNING!\");\n stopWindow.getButtonTypes().clear();\n ButtonType noButton = new ButtonType(\"NO\", ButtonBar.ButtonData.CANCEL_CLOSE);\n ButtonType yesButton = new ButtonType(\"YES\", ButtonBar.ButtonData.OK_DONE);\n stopWindow.getButtonTypes().addAll(yesButton, noButton);\n stopWindow.showAndWait();\n if (stopWindow.getResult() == ButtonType.OK || stopWindow.getResult().equals(noButton)) {\n event.consume();\n } else {\n scene.getWindow().hide();\n }\n }",
"@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}",
"@FXML\r\n public void onActionExitProgram(ActionEvent actionEvent) {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n System.exit(0);\r\n }\r\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public static void alert(Context c, String msg) {\n\t\talert(c, msg, new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tif (dialog != null)\n\t\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}",
"public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }",
"public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n finish(); \n \n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"void forceClose();",
"private void alertMessage() {\n //remove friend confirmation dialog\n //taken from: http://www.androidhub4you.com/2012/09/alert-dialog-box-or-confirmation-box-in.html\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n // Yes button clicked\n logout();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n // No button clicked\n // do nothing\n break;\n }\n }\n };\n\n //Show \"warning\" Dialog, if user is sure about deleting friend.\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Are you sure you want to log out from this app?\")\n .setTitle(\"Logout\")\n .setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }",
"@Override\n public void onClick(View v) {\n alert.dismiss();\n }",
"public synchronized void alertQuit() {\n\t\ttry {\n\t\t\tvListen.sendQuit();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"public void onClick(DialogInterface arg0, int arg1) {\n finishAffinity();\n System.exit(0);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\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 }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"public static void alertbox_Reject() throws CheetahException {\n\t\ttry {\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.dismiss();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void CloseWaitDialog();",
"private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (JOptionPane.showConfirmDialog(frame,\n \"Are you sure to close this window?\", \"Really Closing?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {\n safeExit();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void formWindowClosing(java.awt.event.WindowEvent evt) {\n int confirmed = JOptionPane.showConfirmDialog(null,\n \"On quittant le programme vous perdez toutes vos données actuelles. Voulez-vous quitter ?\", \"Exit Program Message Box\",\n JOptionPane.YES_NO_OPTION);\n if (confirmed == 0) {\n clearGui();\n logout();\n this.dispose();\n } else {\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);//no\n }\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }",
"public void dismissAlert() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t\tpopUp.dismiss();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }"
]
| [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411",
"0.6530922",
"0.65291697",
"0.6518681",
"0.6514957",
"0.64870924",
"0.6470355",
"0.6470159",
"0.64389807",
"0.6434983",
"0.64349097",
"0.6407547",
"0.64049435",
"0.639841",
"0.6387588",
"0.6381002",
"0.6369181",
"0.6365347",
"0.63486224",
"0.6346799",
"0.63426054",
"0.63257015",
"0.6322227",
"0.6321821",
"0.63102174",
"0.63062793",
"0.6303394",
"0.630194",
"0.6296573",
"0.6293707",
"0.628803",
"0.62834525",
"0.62812567",
"0.62812567",
"0.6279225",
"0.62724113",
"0.62687016",
"0.62632495",
"0.6258587",
"0.6253743",
"0.6243376",
"0.6240853",
"0.62403977",
"0.6237111",
"0.6236943",
"0.62323403",
"0.623217",
"0.6219788",
"0.62184846",
"0.6203552",
"0.62034816",
"0.620291",
"0.62027335",
"0.61976206",
"0.61950916",
"0.61900574",
"0.6189178",
"0.6189156",
"0.61791205",
"0.61774504",
"0.61746913",
"0.6174519",
"0.617405",
"0.61740035",
"0.6173091",
"0.6172591",
"0.61720884",
"0.61693555",
"0.61677456",
"0.61677456",
"0.61569434",
"0.61540043",
"0.6152404",
"0.6152404",
"0.6152404",
"0.61501163",
"0.61487794",
"0.6148238",
"0.6147405",
"0.6146477",
"0.6146062"
]
| 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void alert(Context context, String msg, final IL il) {
try {
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setPositiveButton(android.R.string.ok , new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"void dismissAlertDialog();",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talert.dismiss();\n\t\t\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n finishAffinity();\n System.exit(0);\n }",
"public void onClick(DialogInterface dialog, int id) {\n System.exit(0);\n }",
"private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}",
"public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }",
"void CloseOkDialog();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"void closeApp();",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void dismissAlert() {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.alertIsPresent());\n getDriver().switchTo().alert().dismiss();\n }",
"@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\n\t\t\t\talert.dismiss();\n\t\t\t\t\n\t\t\t}",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n \t\t\tSystem.out.println(\"触发windowClosing事件\");\n \t\t\tObject[] options = { \"确定\", \"取消\" }; \n \t\t\tint result = JOptionPane.showOptionDialog(null, \"确定退出本窗口?\", \"提示\", \n \t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, \n \t\t\tnull, options, options[0]); \n \t\t\tif(result == 0){\n \t\t\t\tDownloadView.this.dispose();//关闭窗体\n \t\t\t\tif(restListener!=null)restListener.close();\n \t\t\t}\n\t\t\t}",
"public static void getCloseAlert(Event event, Scene scene, String headerText, String contentText){\n final Alert stopWindow = new Alert(Alert.AlertType.CONFIRMATION);\n try {\n DialogPane dialogPane = stopWindow.getDialogPane();\n dialogPane.setGraphic(new Label());\n dialogPane.getStylesheets().add(\"/stylesheets/battleship_standard.css\");\n dialogPane.getStyleClass().add(\"alert-window\");\n } catch (Exception ignored) {}\n try {\n Stage stage = (Stage) stopWindow.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(\"images/ApplicationLogo.png\"));\n }\n catch (Exception ignored) { }\n stopWindow.setHeaderText(headerText);\n stopWindow.setContentText(contentText);\n stopWindow.setTitle(\"WARNING!\");\n stopWindow.getButtonTypes().clear();\n ButtonType noButton = new ButtonType(\"NO\", ButtonBar.ButtonData.CANCEL_CLOSE);\n ButtonType yesButton = new ButtonType(\"YES\", ButtonBar.ButtonData.OK_DONE);\n stopWindow.getButtonTypes().addAll(yesButton, noButton);\n stopWindow.showAndWait();\n if (stopWindow.getResult() == ButtonType.OK || stopWindow.getResult().equals(noButton)) {\n event.consume();\n } else {\n scene.getWindow().hide();\n }\n }",
"@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}",
"@FXML\r\n public void onActionExitProgram(ActionEvent actionEvent) {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n System.exit(0);\r\n }\r\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public static void alert(Context c, String msg) {\n\t\talert(c, msg, new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tif (dialog != null)\n\t\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}",
"public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }",
"public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n finish(); \n \n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"void forceClose();",
"private void alertMessage() {\n //remove friend confirmation dialog\n //taken from: http://www.androidhub4you.com/2012/09/alert-dialog-box-or-confirmation-box-in.html\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n // Yes button clicked\n logout();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n // No button clicked\n // do nothing\n break;\n }\n }\n };\n\n //Show \"warning\" Dialog, if user is sure about deleting friend.\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Are you sure you want to log out from this app?\")\n .setTitle(\"Logout\")\n .setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }",
"@Override\n public void onClick(View v) {\n alert.dismiss();\n }",
"public synchronized void alertQuit() {\n\t\ttry {\n\t\t\tvListen.sendQuit();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"public void onClick(DialogInterface arg0, int arg1) {\n finishAffinity();\n System.exit(0);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\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 }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"public static void alertbox_Reject() throws CheetahException {\n\t\ttry {\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.dismiss();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void CloseWaitDialog();",
"private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (JOptionPane.showConfirmDialog(frame,\n \"Are you sure to close this window?\", \"Really Closing?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {\n safeExit();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void formWindowClosing(java.awt.event.WindowEvent evt) {\n int confirmed = JOptionPane.showConfirmDialog(null,\n \"On quittant le programme vous perdez toutes vos données actuelles. Voulez-vous quitter ?\", \"Exit Program Message Box\",\n JOptionPane.YES_NO_OPTION);\n if (confirmed == 0) {\n clearGui();\n logout();\n this.dispose();\n } else {\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);//no\n }\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }",
"public void dismissAlert() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t\tpopUp.dismiss();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }"
]
| [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411",
"0.6530922",
"0.65291697",
"0.6518681",
"0.6514957",
"0.64870924",
"0.6470355",
"0.6470159",
"0.64389807",
"0.6434983",
"0.64349097",
"0.6407547",
"0.64049435",
"0.639841",
"0.6387588",
"0.6381002",
"0.6369181",
"0.6365347",
"0.63486224",
"0.6346799",
"0.63426054",
"0.63257015",
"0.6322227",
"0.6321821",
"0.63102174",
"0.63062793",
"0.6303394",
"0.630194",
"0.6296573",
"0.6293707",
"0.628803",
"0.62834525",
"0.62812567",
"0.62812567",
"0.6279225",
"0.62724113",
"0.62687016",
"0.62632495",
"0.6258587",
"0.6253743",
"0.6243376",
"0.6240853",
"0.62403977",
"0.6237111",
"0.6236943",
"0.62323403",
"0.623217",
"0.6219788",
"0.62184846",
"0.6203552",
"0.62034816",
"0.620291",
"0.62027335",
"0.61976206",
"0.61950916",
"0.61900574",
"0.6189178",
"0.6189156",
"0.61791205",
"0.61774504",
"0.61746913",
"0.6174519",
"0.617405",
"0.61740035",
"0.6173091",
"0.6172591",
"0.61720884",
"0.61693555",
"0.61677456",
"0.61677456",
"0.61569434",
"0.61540043",
"0.6152404",
"0.6152404",
"0.6152404",
"0.61501163",
"0.61487794",
"0.6148238",
"0.6147405",
"0.6146477",
"0.6146062"
]
| 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void confirmDialog(Context context, String msg, final IL il) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"void dismissAlertDialog();",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talert.dismiss();\n\t\t\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n finishAffinity();\n System.exit(0);\n }",
"public void onClick(DialogInterface dialog, int id) {\n System.exit(0);\n }",
"private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}",
"public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }",
"void CloseOkDialog();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"void closeApp();",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void dismissAlert() {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.alertIsPresent());\n getDriver().switchTo().alert().dismiss();\n }",
"@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\n\t\t\t\talert.dismiss();\n\t\t\t\t\n\t\t\t}",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n \t\t\tSystem.out.println(\"触发windowClosing事件\");\n \t\t\tObject[] options = { \"确定\", \"取消\" }; \n \t\t\tint result = JOptionPane.showOptionDialog(null, \"确定退出本窗口?\", \"提示\", \n \t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, \n \t\t\tnull, options, options[0]); \n \t\t\tif(result == 0){\n \t\t\t\tDownloadView.this.dispose();//关闭窗体\n \t\t\t\tif(restListener!=null)restListener.close();\n \t\t\t}\n\t\t\t}",
"public static void getCloseAlert(Event event, Scene scene, String headerText, String contentText){\n final Alert stopWindow = new Alert(Alert.AlertType.CONFIRMATION);\n try {\n DialogPane dialogPane = stopWindow.getDialogPane();\n dialogPane.setGraphic(new Label());\n dialogPane.getStylesheets().add(\"/stylesheets/battleship_standard.css\");\n dialogPane.getStyleClass().add(\"alert-window\");\n } catch (Exception ignored) {}\n try {\n Stage stage = (Stage) stopWindow.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(\"images/ApplicationLogo.png\"));\n }\n catch (Exception ignored) { }\n stopWindow.setHeaderText(headerText);\n stopWindow.setContentText(contentText);\n stopWindow.setTitle(\"WARNING!\");\n stopWindow.getButtonTypes().clear();\n ButtonType noButton = new ButtonType(\"NO\", ButtonBar.ButtonData.CANCEL_CLOSE);\n ButtonType yesButton = new ButtonType(\"YES\", ButtonBar.ButtonData.OK_DONE);\n stopWindow.getButtonTypes().addAll(yesButton, noButton);\n stopWindow.showAndWait();\n if (stopWindow.getResult() == ButtonType.OK || stopWindow.getResult().equals(noButton)) {\n event.consume();\n } else {\n scene.getWindow().hide();\n }\n }",
"@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}",
"@FXML\r\n public void onActionExitProgram(ActionEvent actionEvent) {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n System.exit(0);\r\n }\r\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public static void alert(Context c, String msg) {\n\t\talert(c, msg, new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tif (dialog != null)\n\t\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}",
"public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }",
"public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n finish(); \n \n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"void forceClose();",
"private void alertMessage() {\n //remove friend confirmation dialog\n //taken from: http://www.androidhub4you.com/2012/09/alert-dialog-box-or-confirmation-box-in.html\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n // Yes button clicked\n logout();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n // No button clicked\n // do nothing\n break;\n }\n }\n };\n\n //Show \"warning\" Dialog, if user is sure about deleting friend.\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Are you sure you want to log out from this app?\")\n .setTitle(\"Logout\")\n .setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }",
"@Override\n public void onClick(View v) {\n alert.dismiss();\n }",
"public synchronized void alertQuit() {\n\t\ttry {\n\t\t\tvListen.sendQuit();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"public void onClick(DialogInterface arg0, int arg1) {\n finishAffinity();\n System.exit(0);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\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 }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"public static void alertbox_Reject() throws CheetahException {\n\t\ttry {\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.dismiss();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void CloseWaitDialog();",
"private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (JOptionPane.showConfirmDialog(frame,\n \"Are you sure to close this window?\", \"Really Closing?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {\n safeExit();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void formWindowClosing(java.awt.event.WindowEvent evt) {\n int confirmed = JOptionPane.showConfirmDialog(null,\n \"On quittant le programme vous perdez toutes vos données actuelles. Voulez-vous quitter ?\", \"Exit Program Message Box\",\n JOptionPane.YES_NO_OPTION);\n if (confirmed == 0) {\n clearGui();\n logout();\n this.dispose();\n } else {\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);//no\n }\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }",
"public void dismissAlert() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t\tpopUp.dismiss();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }"
]
| [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411",
"0.6530922",
"0.65291697",
"0.6518681",
"0.6514957",
"0.64870924",
"0.6470355",
"0.6470159",
"0.64389807",
"0.6434983",
"0.64349097",
"0.6407547",
"0.64049435",
"0.639841",
"0.6387588",
"0.6381002",
"0.6369181",
"0.6365347",
"0.63486224",
"0.6346799",
"0.63426054",
"0.63257015",
"0.6322227",
"0.6321821",
"0.63102174",
"0.63062793",
"0.6303394",
"0.630194",
"0.6296573",
"0.6293707",
"0.628803",
"0.62834525",
"0.62812567",
"0.62812567",
"0.6279225",
"0.62724113",
"0.62687016",
"0.62632495",
"0.6258587",
"0.6253743",
"0.6243376",
"0.6240853",
"0.62403977",
"0.6237111",
"0.6236943",
"0.62323403",
"0.623217",
"0.6219788",
"0.62184846",
"0.6203552",
"0.62034816",
"0.620291",
"0.62027335",
"0.61976206",
"0.61950916",
"0.61900574",
"0.6189178",
"0.6189156",
"0.61791205",
"0.61774504",
"0.61746913",
"0.6174519",
"0.617405",
"0.61740035",
"0.6173091",
"0.6172591",
"0.61720884",
"0.61693555",
"0.61677456",
"0.61677456",
"0.61569434",
"0.61540043",
"0.6152404",
"0.6152404",
"0.6152404",
"0.61501163",
"0.61487794",
"0.6148238",
"0.6147405",
"0.6146477",
"0.6146062"
]
| 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void confirmDialog(Context context, String title, String msg, final IL il) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setTitle(title);
alertDialogBuilder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"void dismissAlertDialog();",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talert.dismiss();\n\t\t\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n finishAffinity();\n System.exit(0);\n }",
"public void onClick(DialogInterface dialog, int id) {\n System.exit(0);\n }",
"private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}",
"public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }",
"void CloseOkDialog();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"void closeApp();",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void dismissAlert() {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.alertIsPresent());\n getDriver().switchTo().alert().dismiss();\n }",
"@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\n\t\t\t\talert.dismiss();\n\t\t\t\t\n\t\t\t}",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n \t\t\tSystem.out.println(\"触发windowClosing事件\");\n \t\t\tObject[] options = { \"确定\", \"取消\" }; \n \t\t\tint result = JOptionPane.showOptionDialog(null, \"确定退出本窗口?\", \"提示\", \n \t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, \n \t\t\tnull, options, options[0]); \n \t\t\tif(result == 0){\n \t\t\t\tDownloadView.this.dispose();//关闭窗体\n \t\t\t\tif(restListener!=null)restListener.close();\n \t\t\t}\n\t\t\t}",
"public static void getCloseAlert(Event event, Scene scene, String headerText, String contentText){\n final Alert stopWindow = new Alert(Alert.AlertType.CONFIRMATION);\n try {\n DialogPane dialogPane = stopWindow.getDialogPane();\n dialogPane.setGraphic(new Label());\n dialogPane.getStylesheets().add(\"/stylesheets/battleship_standard.css\");\n dialogPane.getStyleClass().add(\"alert-window\");\n } catch (Exception ignored) {}\n try {\n Stage stage = (Stage) stopWindow.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(\"images/ApplicationLogo.png\"));\n }\n catch (Exception ignored) { }\n stopWindow.setHeaderText(headerText);\n stopWindow.setContentText(contentText);\n stopWindow.setTitle(\"WARNING!\");\n stopWindow.getButtonTypes().clear();\n ButtonType noButton = new ButtonType(\"NO\", ButtonBar.ButtonData.CANCEL_CLOSE);\n ButtonType yesButton = new ButtonType(\"YES\", ButtonBar.ButtonData.OK_DONE);\n stopWindow.getButtonTypes().addAll(yesButton, noButton);\n stopWindow.showAndWait();\n if (stopWindow.getResult() == ButtonType.OK || stopWindow.getResult().equals(noButton)) {\n event.consume();\n } else {\n scene.getWindow().hide();\n }\n }",
"@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}",
"@FXML\r\n public void onActionExitProgram(ActionEvent actionEvent) {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n System.exit(0);\r\n }\r\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public static void alert(Context c, String msg) {\n\t\talert(c, msg, new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tif (dialog != null)\n\t\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}",
"public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }",
"public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n finish(); \n \n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"private void alertMessage() {\n //remove friend confirmation dialog\n //taken from: http://www.androidhub4you.com/2012/09/alert-dialog-box-or-confirmation-box-in.html\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n // Yes button clicked\n logout();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n // No button clicked\n // do nothing\n break;\n }\n }\n };\n\n //Show \"warning\" Dialog, if user is sure about deleting friend.\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Are you sure you want to log out from this app?\")\n .setTitle(\"Logout\")\n .setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }",
"void forceClose();",
"@Override\n public void onClick(View v) {\n alert.dismiss();\n }",
"public synchronized void alertQuit() {\n\t\ttry {\n\t\t\tvListen.sendQuit();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"public void onClick(DialogInterface arg0, int arg1) {\n finishAffinity();\n System.exit(0);\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 }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\n }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"public static void alertbox_Reject() throws CheetahException {\n\t\ttry {\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.dismiss();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void CloseWaitDialog();",
"private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (JOptionPane.showConfirmDialog(frame,\n \"Are you sure to close this window?\", \"Really Closing?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {\n safeExit();\n }\n }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void formWindowClosing(java.awt.event.WindowEvent evt) {\n int confirmed = JOptionPane.showConfirmDialog(null,\n \"On quittant le programme vous perdez toutes vos données actuelles. Voulez-vous quitter ?\", \"Exit Program Message Box\",\n JOptionPane.YES_NO_OPTION);\n if (confirmed == 0) {\n clearGui();\n logout();\n this.dispose();\n } else {\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);//no\n }\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }",
"public void dismissAlert() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t\tpopUp.dismiss();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}"
]
| [
"0.75701165",
"0.7047615",
"0.7030644",
"0.70234317",
"0.6972196",
"0.68567014",
"0.6844488",
"0.6787543",
"0.6787543",
"0.67708606",
"0.6770286",
"0.6766505",
"0.6650396",
"0.6630184",
"0.6623259",
"0.66229105",
"0.66169024",
"0.6578804",
"0.6569774",
"0.6542295",
"0.6535602",
"0.65297186",
"0.6527968",
"0.651908",
"0.6514256",
"0.6486832",
"0.64698845",
"0.64695275",
"0.64387816",
"0.64353347",
"0.64344484",
"0.6406305",
"0.6405084",
"0.6398251",
"0.63863736",
"0.6381645",
"0.63686675",
"0.6363911",
"0.6347588",
"0.6346455",
"0.63422644",
"0.63262224",
"0.6322052",
"0.6321319",
"0.6309616",
"0.63062966",
"0.6302876",
"0.63000596",
"0.6295986",
"0.6294192",
"0.62862647",
"0.6282566",
"0.628019",
"0.628019",
"0.6277794",
"0.62730443",
"0.6268013",
"0.62619716",
"0.62565655",
"0.6252639",
"0.6242037",
"0.62403756",
"0.6239849",
"0.62367845",
"0.6236082",
"0.62316334",
"0.62306255",
"0.6218308",
"0.62169605",
"0.6203107",
"0.62024343",
"0.62018645",
"0.62015915",
"0.6196657",
"0.6193508",
"0.6190365",
"0.61888576",
"0.61887294",
"0.6178135",
"0.61763126",
"0.6175423",
"0.617297",
"0.6172674",
"0.6172659",
"0.61719924",
"0.6171699",
"0.6171393",
"0.6168169",
"0.6166375",
"0.6166375",
"0.61555034",
"0.6153707",
"0.61509687",
"0.61509687",
"0.61509687",
"0.6149358",
"0.61493075",
"0.6147824",
"0.61465126",
"0.614628",
"0.6145132"
]
| 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void confirmDialog(Context context, String msg, String positiveBtnText,
String negativeBtnText, final IL il) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setPositiveButton(positiveBtnText, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(negativeBtnText, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"void dismissAlertDialog();",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talert.dismiss();\n\t\t\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n finishAffinity();\n System.exit(0);\n }",
"public void onClick(DialogInterface dialog, int id) {\n System.exit(0);\n }",
"private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}",
"public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }",
"void CloseOkDialog();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"void closeApp();",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void dismissAlert() {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.alertIsPresent());\n getDriver().switchTo().alert().dismiss();\n }",
"@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\n\t\t\t\talert.dismiss();\n\t\t\t\t\n\t\t\t}",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n \t\t\tSystem.out.println(\"触发windowClosing事件\");\n \t\t\tObject[] options = { \"确定\", \"取消\" }; \n \t\t\tint result = JOptionPane.showOptionDialog(null, \"确定退出本窗口?\", \"提示\", \n \t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, \n \t\t\tnull, options, options[0]); \n \t\t\tif(result == 0){\n \t\t\t\tDownloadView.this.dispose();//关闭窗体\n \t\t\t\tif(restListener!=null)restListener.close();\n \t\t\t}\n\t\t\t}",
"public static void getCloseAlert(Event event, Scene scene, String headerText, String contentText){\n final Alert stopWindow = new Alert(Alert.AlertType.CONFIRMATION);\n try {\n DialogPane dialogPane = stopWindow.getDialogPane();\n dialogPane.setGraphic(new Label());\n dialogPane.getStylesheets().add(\"/stylesheets/battleship_standard.css\");\n dialogPane.getStyleClass().add(\"alert-window\");\n } catch (Exception ignored) {}\n try {\n Stage stage = (Stage) stopWindow.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(\"images/ApplicationLogo.png\"));\n }\n catch (Exception ignored) { }\n stopWindow.setHeaderText(headerText);\n stopWindow.setContentText(contentText);\n stopWindow.setTitle(\"WARNING!\");\n stopWindow.getButtonTypes().clear();\n ButtonType noButton = new ButtonType(\"NO\", ButtonBar.ButtonData.CANCEL_CLOSE);\n ButtonType yesButton = new ButtonType(\"YES\", ButtonBar.ButtonData.OK_DONE);\n stopWindow.getButtonTypes().addAll(yesButton, noButton);\n stopWindow.showAndWait();\n if (stopWindow.getResult() == ButtonType.OK || stopWindow.getResult().equals(noButton)) {\n event.consume();\n } else {\n scene.getWindow().hide();\n }\n }",
"@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}",
"@FXML\r\n public void onActionExitProgram(ActionEvent actionEvent) {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n System.exit(0);\r\n }\r\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public static void alert(Context c, String msg) {\n\t\talert(c, msg, new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tif (dialog != null)\n\t\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}",
"public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }",
"public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n finish(); \n \n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"void forceClose();",
"private void alertMessage() {\n //remove friend confirmation dialog\n //taken from: http://www.androidhub4you.com/2012/09/alert-dialog-box-or-confirmation-box-in.html\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n // Yes button clicked\n logout();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n // No button clicked\n // do nothing\n break;\n }\n }\n };\n\n //Show \"warning\" Dialog, if user is sure about deleting friend.\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Are you sure you want to log out from this app?\")\n .setTitle(\"Logout\")\n .setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }",
"@Override\n public void onClick(View v) {\n alert.dismiss();\n }",
"public synchronized void alertQuit() {\n\t\ttry {\n\t\t\tvListen.sendQuit();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"public void onClick(DialogInterface arg0, int arg1) {\n finishAffinity();\n System.exit(0);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\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 }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"public static void alertbox_Reject() throws CheetahException {\n\t\ttry {\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.dismiss();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void CloseWaitDialog();",
"private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (JOptionPane.showConfirmDialog(frame,\n \"Are you sure to close this window?\", \"Really Closing?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {\n safeExit();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void formWindowClosing(java.awt.event.WindowEvent evt) {\n int confirmed = JOptionPane.showConfirmDialog(null,\n \"On quittant le programme vous perdez toutes vos données actuelles. Voulez-vous quitter ?\", \"Exit Program Message Box\",\n JOptionPane.YES_NO_OPTION);\n if (confirmed == 0) {\n clearGui();\n logout();\n this.dispose();\n } else {\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);//no\n }\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }",
"public void dismissAlert() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t\tpopUp.dismiss();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }"
]
| [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411",
"0.6530922",
"0.65291697",
"0.6518681",
"0.6514957",
"0.64870924",
"0.6470355",
"0.6470159",
"0.64389807",
"0.6434983",
"0.64349097",
"0.6407547",
"0.64049435",
"0.639841",
"0.6387588",
"0.6381002",
"0.6369181",
"0.6365347",
"0.63486224",
"0.6346799",
"0.63426054",
"0.63257015",
"0.6322227",
"0.6321821",
"0.63102174",
"0.63062793",
"0.6303394",
"0.630194",
"0.6296573",
"0.6293707",
"0.628803",
"0.62834525",
"0.62812567",
"0.62812567",
"0.6279225",
"0.62724113",
"0.62687016",
"0.62632495",
"0.6258587",
"0.6253743",
"0.6243376",
"0.6240853",
"0.62403977",
"0.6237111",
"0.6236943",
"0.62323403",
"0.623217",
"0.6219788",
"0.62184846",
"0.6203552",
"0.62034816",
"0.620291",
"0.62027335",
"0.61976206",
"0.61950916",
"0.61900574",
"0.6189178",
"0.6189156",
"0.61791205",
"0.61774504",
"0.61746913",
"0.6174519",
"0.617405",
"0.61740035",
"0.6173091",
"0.6172591",
"0.61720884",
"0.61693555",
"0.61677456",
"0.61677456",
"0.61569434",
"0.61540043",
"0.6152404",
"0.6152404",
"0.6152404",
"0.61501163",
"0.61487794",
"0.6148238",
"0.6147405",
"0.6146477",
"0.6146062"
]
| 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void confirmDialog(Context context, String title, String msg, String positiveBtnText,
String negativeBtnText, final IL il) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setTitle(title);
alertDialogBuilder.setPositiveButton(positiveBtnText, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(negativeBtnText, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"void dismissAlertDialog();",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talert.dismiss();\n\t\t\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n finishAffinity();\n System.exit(0);\n }",
"public void onClick(DialogInterface dialog, int id) {\n System.exit(0);\n }",
"private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}",
"public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }",
"void CloseOkDialog();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"void closeApp();",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void dismissAlert() {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.alertIsPresent());\n getDriver().switchTo().alert().dismiss();\n }",
"@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\n\t\t\t\talert.dismiss();\n\t\t\t\t\n\t\t\t}",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n \t\t\tSystem.out.println(\"触发windowClosing事件\");\n \t\t\tObject[] options = { \"确定\", \"取消\" }; \n \t\t\tint result = JOptionPane.showOptionDialog(null, \"确定退出本窗口?\", \"提示\", \n \t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, \n \t\t\tnull, options, options[0]); \n \t\t\tif(result == 0){\n \t\t\t\tDownloadView.this.dispose();//关闭窗体\n \t\t\t\tif(restListener!=null)restListener.close();\n \t\t\t}\n\t\t\t}",
"public static void getCloseAlert(Event event, Scene scene, String headerText, String contentText){\n final Alert stopWindow = new Alert(Alert.AlertType.CONFIRMATION);\n try {\n DialogPane dialogPane = stopWindow.getDialogPane();\n dialogPane.setGraphic(new Label());\n dialogPane.getStylesheets().add(\"/stylesheets/battleship_standard.css\");\n dialogPane.getStyleClass().add(\"alert-window\");\n } catch (Exception ignored) {}\n try {\n Stage stage = (Stage) stopWindow.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(\"images/ApplicationLogo.png\"));\n }\n catch (Exception ignored) { }\n stopWindow.setHeaderText(headerText);\n stopWindow.setContentText(contentText);\n stopWindow.setTitle(\"WARNING!\");\n stopWindow.getButtonTypes().clear();\n ButtonType noButton = new ButtonType(\"NO\", ButtonBar.ButtonData.CANCEL_CLOSE);\n ButtonType yesButton = new ButtonType(\"YES\", ButtonBar.ButtonData.OK_DONE);\n stopWindow.getButtonTypes().addAll(yesButton, noButton);\n stopWindow.showAndWait();\n if (stopWindow.getResult() == ButtonType.OK || stopWindow.getResult().equals(noButton)) {\n event.consume();\n } else {\n scene.getWindow().hide();\n }\n }",
"@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}",
"@FXML\r\n public void onActionExitProgram(ActionEvent actionEvent) {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n System.exit(0);\r\n }\r\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public static void alert(Context c, String msg) {\n\t\talert(c, msg, new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tif (dialog != null)\n\t\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}",
"public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }",
"public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n finish(); \n \n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"void forceClose();",
"private void alertMessage() {\n //remove friend confirmation dialog\n //taken from: http://www.androidhub4you.com/2012/09/alert-dialog-box-or-confirmation-box-in.html\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n // Yes button clicked\n logout();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n // No button clicked\n // do nothing\n break;\n }\n }\n };\n\n //Show \"warning\" Dialog, if user is sure about deleting friend.\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Are you sure you want to log out from this app?\")\n .setTitle(\"Logout\")\n .setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }",
"@Override\n public void onClick(View v) {\n alert.dismiss();\n }",
"public synchronized void alertQuit() {\n\t\ttry {\n\t\t\tvListen.sendQuit();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"public void onClick(DialogInterface arg0, int arg1) {\n finishAffinity();\n System.exit(0);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\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 }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"public static void alertbox_Reject() throws CheetahException {\n\t\ttry {\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.dismiss();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void CloseWaitDialog();",
"private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (JOptionPane.showConfirmDialog(frame,\n \"Are you sure to close this window?\", \"Really Closing?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {\n safeExit();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void formWindowClosing(java.awt.event.WindowEvent evt) {\n int confirmed = JOptionPane.showConfirmDialog(null,\n \"On quittant le programme vous perdez toutes vos données actuelles. Voulez-vous quitter ?\", \"Exit Program Message Box\",\n JOptionPane.YES_NO_OPTION);\n if (confirmed == 0) {\n clearGui();\n logout();\n this.dispose();\n } else {\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);//no\n }\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }",
"public void dismissAlert() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t\tpopUp.dismiss();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }"
]
| [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411",
"0.6530922",
"0.65291697",
"0.6518681",
"0.6514957",
"0.64870924",
"0.6470355",
"0.6470159",
"0.64389807",
"0.6434983",
"0.64349097",
"0.6407547",
"0.64049435",
"0.639841",
"0.6387588",
"0.6381002",
"0.6369181",
"0.6365347",
"0.63486224",
"0.6346799",
"0.63426054",
"0.63257015",
"0.6322227",
"0.6321821",
"0.63102174",
"0.63062793",
"0.6303394",
"0.630194",
"0.6296573",
"0.6293707",
"0.628803",
"0.62834525",
"0.62812567",
"0.62812567",
"0.6279225",
"0.62724113",
"0.62687016",
"0.62632495",
"0.6258587",
"0.6253743",
"0.6243376",
"0.6240853",
"0.62403977",
"0.6237111",
"0.6236943",
"0.62323403",
"0.623217",
"0.6219788",
"0.62184846",
"0.6203552",
"0.62034816",
"0.620291",
"0.62027335",
"0.61976206",
"0.61950916",
"0.61900574",
"0.6189178",
"0.6189156",
"0.61791205",
"0.61774504",
"0.61746913",
"0.6174519",
"0.617405",
"0.61740035",
"0.6173091",
"0.6172591",
"0.61720884",
"0.61693555",
"0.61677456",
"0.61677456",
"0.61569434",
"0.61540043",
"0.6152404",
"0.6152404",
"0.6152404",
"0.61501163",
"0.61487794",
"0.6148238",
"0.6147405",
"0.6146477",
"0.6146062"
]
| 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void showAlertDialogOKCancelWithView(Activity context, final View view, final IL il, String positiveBtnText,
String negativeBtnText) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setView(view);
alertDialogBuilder.setPositiveButton(positiveBtnText, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(negativeBtnText, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"void dismissAlertDialog();",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talert.dismiss();\n\t\t\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n finishAffinity();\n System.exit(0);\n }",
"public void onClick(DialogInterface dialog, int id) {\n System.exit(0);\n }",
"private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}",
"public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }",
"void CloseOkDialog();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"void closeApp();",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void dismissAlert() {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.alertIsPresent());\n getDriver().switchTo().alert().dismiss();\n }",
"@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\n\t\t\t\talert.dismiss();\n\t\t\t\t\n\t\t\t}",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n \t\t\tSystem.out.println(\"触发windowClosing事件\");\n \t\t\tObject[] options = { \"确定\", \"取消\" }; \n \t\t\tint result = JOptionPane.showOptionDialog(null, \"确定退出本窗口?\", \"提示\", \n \t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, \n \t\t\tnull, options, options[0]); \n \t\t\tif(result == 0){\n \t\t\t\tDownloadView.this.dispose();//关闭窗体\n \t\t\t\tif(restListener!=null)restListener.close();\n \t\t\t}\n\t\t\t}",
"public static void getCloseAlert(Event event, Scene scene, String headerText, String contentText){\n final Alert stopWindow = new Alert(Alert.AlertType.CONFIRMATION);\n try {\n DialogPane dialogPane = stopWindow.getDialogPane();\n dialogPane.setGraphic(new Label());\n dialogPane.getStylesheets().add(\"/stylesheets/battleship_standard.css\");\n dialogPane.getStyleClass().add(\"alert-window\");\n } catch (Exception ignored) {}\n try {\n Stage stage = (Stage) stopWindow.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(\"images/ApplicationLogo.png\"));\n }\n catch (Exception ignored) { }\n stopWindow.setHeaderText(headerText);\n stopWindow.setContentText(contentText);\n stopWindow.setTitle(\"WARNING!\");\n stopWindow.getButtonTypes().clear();\n ButtonType noButton = new ButtonType(\"NO\", ButtonBar.ButtonData.CANCEL_CLOSE);\n ButtonType yesButton = new ButtonType(\"YES\", ButtonBar.ButtonData.OK_DONE);\n stopWindow.getButtonTypes().addAll(yesButton, noButton);\n stopWindow.showAndWait();\n if (stopWindow.getResult() == ButtonType.OK || stopWindow.getResult().equals(noButton)) {\n event.consume();\n } else {\n scene.getWindow().hide();\n }\n }",
"@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}",
"@FXML\r\n public void onActionExitProgram(ActionEvent actionEvent) {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n System.exit(0);\r\n }\r\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public static void alert(Context c, String msg) {\n\t\talert(c, msg, new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tif (dialog != null)\n\t\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}",
"public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }",
"public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n finish(); \n \n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"void forceClose();",
"private void alertMessage() {\n //remove friend confirmation dialog\n //taken from: http://www.androidhub4you.com/2012/09/alert-dialog-box-or-confirmation-box-in.html\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n // Yes button clicked\n logout();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n // No button clicked\n // do nothing\n break;\n }\n }\n };\n\n //Show \"warning\" Dialog, if user is sure about deleting friend.\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Are you sure you want to log out from this app?\")\n .setTitle(\"Logout\")\n .setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }",
"@Override\n public void onClick(View v) {\n alert.dismiss();\n }",
"public synchronized void alertQuit() {\n\t\ttry {\n\t\t\tvListen.sendQuit();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"public void onClick(DialogInterface arg0, int arg1) {\n finishAffinity();\n System.exit(0);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\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 }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"public static void alertbox_Reject() throws CheetahException {\n\t\ttry {\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.dismiss();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void CloseWaitDialog();",
"private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (JOptionPane.showConfirmDialog(frame,\n \"Are you sure to close this window?\", \"Really Closing?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {\n safeExit();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void formWindowClosing(java.awt.event.WindowEvent evt) {\n int confirmed = JOptionPane.showConfirmDialog(null,\n \"On quittant le programme vous perdez toutes vos données actuelles. Voulez-vous quitter ?\", \"Exit Program Message Box\",\n JOptionPane.YES_NO_OPTION);\n if (confirmed == 0) {\n clearGui();\n logout();\n this.dispose();\n } else {\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);//no\n }\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }",
"public void dismissAlert() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t\tpopUp.dismiss();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }"
]
| [
"0.75703",
"0.7049049",
"0.7032025",
"0.7024254",
"0.6972404",
"0.68568856",
"0.6845526",
"0.6788697",
"0.6788697",
"0.67720497",
"0.6771492",
"0.67671996",
"0.66504025",
"0.6631045",
"0.6623737",
"0.66235965",
"0.66174763",
"0.65801734",
"0.6570499",
"0.6542409",
"0.6536411",
"0.6530922",
"0.65291697",
"0.6518681",
"0.6514957",
"0.64870924",
"0.6470355",
"0.6470159",
"0.64389807",
"0.6434983",
"0.64349097",
"0.6407547",
"0.64049435",
"0.639841",
"0.6387588",
"0.6381002",
"0.6369181",
"0.6365347",
"0.63486224",
"0.6346799",
"0.63426054",
"0.63257015",
"0.6322227",
"0.6321821",
"0.63102174",
"0.63062793",
"0.6303394",
"0.630194",
"0.6296573",
"0.6293707",
"0.628803",
"0.62834525",
"0.62812567",
"0.62812567",
"0.6279225",
"0.62724113",
"0.62687016",
"0.62632495",
"0.6258587",
"0.6253743",
"0.6243376",
"0.6240853",
"0.62403977",
"0.6237111",
"0.6236943",
"0.62323403",
"0.623217",
"0.6219788",
"0.62184846",
"0.6203552",
"0.62034816",
"0.620291",
"0.62027335",
"0.61976206",
"0.61950916",
"0.61900574",
"0.6189178",
"0.6189156",
"0.61791205",
"0.61774504",
"0.61746913",
"0.6174519",
"0.617405",
"0.61740035",
"0.6173091",
"0.6172591",
"0.61720884",
"0.61693555",
"0.61677456",
"0.61677456",
"0.61569434",
"0.61540043",
"0.6152404",
"0.6152404",
"0.6152404",
"0.61501163",
"0.61487794",
"0.6148238",
"0.6147405",
"0.6146477",
"0.6146062"
]
| 0.0 | -1 |
This method is used to show alert dialog box for force close application | public static void showAlertDialogAction(Activity context, String msg, final IL il, String positiveBtnText,
String negativeBtnText) {
try{
AlertDialog.Builder alertDialogBuilder = getBuilder(context);
alertDialogBuilder.setMessage(msg);
alertDialogBuilder.setPositiveButton(positiveBtnText, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
il.onSuccess();
dialog.dismiss();
}
});
alertDialogBuilder.setNegativeButton(negativeBtnText, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
il.onCancel();
dialog.dismiss();
}
});
alertDialogBuilder.setOnKeyListener(new DialogInterface.OnKeyListener() {
@Override
public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK){
il.onCancel();
dialog.dismiss();
}
return false;
}
});
AlertDialog alertDialog = alertDialogBuilder.create(); // create alert dialog
alertDialog.show();
} catch (Exception ex) {
ex.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"private void ExitApplication()\n\t{\n\t\t Builder alertbox = new AlertDialog.Builder(AppMenu.this);\n\t // set the message to display\n\t alertbox.setMessage(\"آیا می خواهید از برنامه خارج شوید ؟\");\n\t \n\t // set a negative/no button and create a listener\n\t alertbox.setPositiveButton(\"خیر\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t arg0.dismiss();\n\t }\n\t });\n\t \n\t // set a positive/yes button and create a listener\n\t alertbox.setNegativeButton(\"بلی\", new DialogInterface.OnClickListener() {\n\t // do something when the button is clicked\n\t public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }\n\t });\n\t \n\t alertbox.show();\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"private void noSensorAlert() {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n alertDialog.setMessage(\"This device doesn;t have the necessary sensors for this application \")\n .setCancelable(false)\n .setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) { stop()/*finish()*/; }\n });\n }",
"@Override\n\t\t\t\tpublic void confirm() {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}",
"public void graceFullyExit() {\n Log.e(\"NET\", \"No network.\");\n final AlertDialog.Builder myBuild = new AlertDialog.Builder(Start.this);\n myBuild.setTitle(R.string.noNetworkTitle);\n myBuild.setMessage(R.string.noNetworkText);\n myBuild.setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n\n\n public void onClick(DialogInterface dialog, int which) {\n Log.i(\"Start\", \"Kommit hit\");\n finish();\n }\n });\n myBuild.show();\n }",
"private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface arg0, int arg1) {\n finish();\r\n System.exit(0);\r\n }",
"void dismissAlertDialog();",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"@Override\n public void onBackPressed() {\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Quit Muscle\")\n .setMessage(\"Are you sure you want to close Muscle?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess(android.os.Process.myPid());\n finish();\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}",
"protected void prepareForClose() {\r\n\t\tmApplication.destroyAlertDialog(mAlertDialog);\r\n\t\tmApplication.onClose();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talert.dismiss();\n\t\t\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n finishAffinity();\n System.exit(0);\n }",
"public void onClick(DialogInterface dialog, int id) {\n System.exit(0);\n }",
"private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}",
"public static void closeProgram(Stage window) {\r\n\r\n ConfirmBox cb = new ConfirmBox();\r\n\r\n boolean answer = cb.alert();\r\n\r\n if (answer) {\r\n\r\n //*************************\r\n //do a routine closing process\r\n //*************************\r\n window.close();\r\n }\r\n }",
"void CloseOkDialog();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"public void windowClosing (WindowEvent e)\n\t\t\t\t{\n\t\t\t\talertQuit();\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"void closeApp();",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"public void dismissAlert() {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeOut);\n wait.until(ExpectedConditions.alertIsPresent());\n getDriver().switchTo().alert().dismiss();\n }",
"@Override\r\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tswitch(arg1)\r\n\t\t\t{\r\n\t\t\tcase AlertDialog.BUTTON_POSITIVE:\r\n\t\t\t\t{\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase AlertDialog.BUTTON_NEGATIVE:\r\n\t\t\t\thideSystemUI();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Override\n \tpublic void onBackPressed() { \t\n \tAlertDialog.Builder alert = new AlertDialog.Builder(context);\n \talert.setTitle(\"Close Confirmation\"); //Set Alert dialog title here\n \talert.setMessage(\"Do you want to close the application?\"); //Message here\n\n \talert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t \n \t\t//Close the Activity when click OK.\n \t\tCategory.this.finish();\n\n \t }\n \t});\n\n \talert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int whichButton) {\n \t // Canceled.\n \t\t dialog.cancel();\n \t }\n \t});\n \tAlertDialog alertDialog = alert.create();\n \talertDialog.show();\n /* Alert Dialog Code End*/ \n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(getActivity());\t\r\n\t\t\tbuilder.setTitle(\"Version 1.0\")\r\n\t\t\t.setMessage(\"With the App User Easily get the Work and directly Interact with Admin.\");\r\n\t\tbuilder.setNegativeButton(\"CLOSE\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Write your code here to execute after dialog closed\r\n Toast.makeText(getActivity().getApplicationContext(), \"You clicked on CLOSE\", Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n \r\n // Showing Alert Message\r\n builder.show();\r\n\t\t}",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"public void confirmExit() {\n boolean confirmOnExit = getIntent().getExtras().getBoolean(MapsActivity.PARAMETERS.CONFIRM_ON_EXIT, true);\n if (confirmOnExit) {\n new AlertDialog.Builder(this).setTitle(R.string.button_confirm_exit_title)\n .setMessage(R.string.button_confirm_exit)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n return;\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n } else {\n finish();\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\n\t\t\t\talert.dismiss();\n\t\t\t\t\n\t\t\t}",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n \t\t\tSystem.out.println(\"触发windowClosing事件\");\n \t\t\tObject[] options = { \"确定\", \"取消\" }; \n \t\t\tint result = JOptionPane.showOptionDialog(null, \"确定退出本窗口?\", \"提示\", \n \t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, \n \t\t\tnull, options, options[0]); \n \t\t\tif(result == 0){\n \t\t\t\tDownloadView.this.dispose();//关闭窗体\n \t\t\t\tif(restListener!=null)restListener.close();\n \t\t\t}\n\t\t\t}",
"public static void getCloseAlert(Event event, Scene scene, String headerText, String contentText){\n final Alert stopWindow = new Alert(Alert.AlertType.CONFIRMATION);\n try {\n DialogPane dialogPane = stopWindow.getDialogPane();\n dialogPane.setGraphic(new Label());\n dialogPane.getStylesheets().add(\"/stylesheets/battleship_standard.css\");\n dialogPane.getStyleClass().add(\"alert-window\");\n } catch (Exception ignored) {}\n try {\n Stage stage = (Stage) stopWindow.getDialogPane().getScene().getWindow();\n stage.getIcons().add(new Image(\"images/ApplicationLogo.png\"));\n }\n catch (Exception ignored) { }\n stopWindow.setHeaderText(headerText);\n stopWindow.setContentText(contentText);\n stopWindow.setTitle(\"WARNING!\");\n stopWindow.getButtonTypes().clear();\n ButtonType noButton = new ButtonType(\"NO\", ButtonBar.ButtonData.CANCEL_CLOSE);\n ButtonType yesButton = new ButtonType(\"YES\", ButtonBar.ButtonData.OK_DONE);\n stopWindow.getButtonTypes().addAll(yesButton, noButton);\n stopWindow.showAndWait();\n if (stopWindow.getResult() == ButtonType.OK || stopWindow.getResult().equals(noButton)) {\n event.consume();\n } else {\n scene.getWindow().hide();\n }\n }",
"@Override\n \tpublic void onPause() {\n \t\tif(alertDialogReset!=null){\n \t\t\talertDialogReset.dismiss();\n \t\t}\n \t\tsuper.onPause();\n \t}",
"@FXML\r\n public void onActionExitProgram(ActionEvent actionEvent) {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to exit?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n System.exit(0);\r\n }\r\n }",
"public boolean requestCloseWindow() \n {\n return true; \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"public static void alert(Context c, String msg) {\n\t\talert(c, msg, new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\tif (dialog != null)\n\t\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\talertDialog.dismiss();\r\n\t\t\t}",
"private void terminateWindow() {\n\t\tJOptionPane.showMessageDialog(null, \"Shut down server\", \"Successful\", JOptionPane.INFORMATION_MESSAGE);\n\t\tSystem.exit(0);\n\t}",
"public void onDestroy() {\n DialogHelper.getInstance().dismissAlertDialog(this);\n super.onDestroy();\n }",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n android.os.Process.killProcess ((android.os.Process.myPid ()));\n //如果签名不一致,说明程序被修改了,直接退出\n }",
"public void toExit() {\n int sure=JOptionPane.showConfirmDialog(rootPane,\"Are you sure to Exit?\");\n if(sure==JOptionPane.YES_OPTION)\n { \n System.exit(0);\n } \n }",
"@Override \n public void onClick(DialogInterface dialog, int which) {\n finish(); \n \n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"private void alertMessage() {\n //remove friend confirmation dialog\n //taken from: http://www.androidhub4you.com/2012/09/alert-dialog-box-or-confirmation-box-in.html\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n // Yes button clicked\n logout();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n // No button clicked\n // do nothing\n break;\n }\n }\n };\n\n //Show \"warning\" Dialog, if user is sure about deleting friend.\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(\"Are you sure you want to log out from this app?\")\n .setTitle(\"Logout\")\n .setPositiveButton(\"Yes\", dialogClickListener)\n .setNegativeButton(\"No\", dialogClickListener).show();\n }",
"void forceClose();",
"@Override\n public void onClick(View v) {\n alert.dismiss();\n }",
"public synchronized void alertQuit() {\n\t\ttry {\n\t\t\tvListen.sendQuit();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\t\t\t\t\t\t\n\t\t\t\t}",
"public void onClick(DialogInterface arg0, int arg1) {\n finishAffinity();\n System.exit(0);\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 }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\n }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void closeApp(ActionEvent actionEvent) {\n System.exit(0);\n }",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog_app.dismiss();\n\t\t\t\t\t\t}",
"public static void alertbox_Reject() throws CheetahException {\n\t\ttry {\n\t\t\tAlert simpleAlert = CheetahEngine.getDriverInstance().switchTo().alert();\n\t\t\tsimpleAlert.dismiss();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"private void Exit() {\r\n this.dispose();\r\n app.setVisible(true);\r\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"void CloseWaitDialog();",
"private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }",
"private void alertDialog(int title, int message, int icon) {\n tst_Message.cancel();\n tst_Message = null;\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.setIcon(icon);\n builder.setPositiveButton(R.string.dialog_pos_btn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n reset();\n }\n });\n builder.show();\n }",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (JOptionPane.showConfirmDialog(frame,\n \"Are you sure to close this window?\", \"Really Closing?\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {\n safeExit();\n }\n }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }",
"@Override\n public void onBackPressed() {\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Do you want to exit the application?\");\n builder.setCancelable(true);\n builder.setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n builder.setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n AlertDialog ad = builder.create();\n ad.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"public static void alertDialog(final String message) {\r\n _app.invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(message);\r\n }\r\n });\r\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"public void onClick(DialogInterface arg0, int arg1) {\n\n finish();\n //close();\n\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"private void formWindowClosing(java.awt.event.WindowEvent evt) {\n int confirmed = JOptionPane.showConfirmDialog(null,\n \"On quittant le programme vous perdez toutes vos données actuelles. Voulez-vous quitter ?\", \"Exit Program Message Box\",\n JOptionPane.YES_NO_OPTION);\n if (confirmed == 0) {\n clearGui();\n logout();\n this.dispose();\n } else {\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);//no\n }\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"public void confirmExit() {\n int resposta = JOptionPane.showConfirmDialog(this,\n \"Really exit?\", \"Exit\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (resposta == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }",
"public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }",
"@Override\n public void onExitAmbient() {\n\n Toast.makeText(getApplicationContext(), \"Exit\", Toast.LENGTH_LONG).show();\n }",
"public void dismissAlert() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t\tpopUp.dismiss();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}"
]
| [
"0.75701165",
"0.7047615",
"0.7030644",
"0.70234317",
"0.6972196",
"0.68567014",
"0.6844488",
"0.6787543",
"0.6787543",
"0.67708606",
"0.6770286",
"0.6766505",
"0.6650396",
"0.6630184",
"0.6623259",
"0.66229105",
"0.66169024",
"0.6578804",
"0.6569774",
"0.6542295",
"0.6535602",
"0.65297186",
"0.6527968",
"0.651908",
"0.6514256",
"0.6486832",
"0.64698845",
"0.64695275",
"0.64387816",
"0.64353347",
"0.64344484",
"0.6406305",
"0.6405084",
"0.6398251",
"0.63863736",
"0.6381645",
"0.63686675",
"0.6363911",
"0.6347588",
"0.6346455",
"0.63422644",
"0.63262224",
"0.6322052",
"0.6321319",
"0.6309616",
"0.63062966",
"0.6302876",
"0.63000596",
"0.6295986",
"0.6294192",
"0.62862647",
"0.6282566",
"0.628019",
"0.628019",
"0.6277794",
"0.62730443",
"0.6268013",
"0.62619716",
"0.62565655",
"0.6252639",
"0.6242037",
"0.62403756",
"0.6239849",
"0.62367845",
"0.6236082",
"0.62316334",
"0.62306255",
"0.6218308",
"0.62169605",
"0.6203107",
"0.62024343",
"0.62018645",
"0.62015915",
"0.6196657",
"0.6193508",
"0.6190365",
"0.61888576",
"0.61887294",
"0.6178135",
"0.61763126",
"0.6175423",
"0.617297",
"0.6172674",
"0.6172659",
"0.61719924",
"0.6171699",
"0.6171393",
"0.6168169",
"0.6166375",
"0.6166375",
"0.61555034",
"0.6153707",
"0.61509687",
"0.61509687",
"0.61509687",
"0.6149358",
"0.61493075",
"0.6147824",
"0.61465126",
"0.614628",
"0.6145132"
]
| 0.0 | -1 |
Recursively finds all descendants of a parent group. | public List<Group> getAllDescendants(Group parent) {
synchronized(groupMutex) {
return getAllDescendants(parent, new ArrayList<>());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<Group> getAllDescendants(Group parent, List<Group> descendants) {\n\t\tfor(Group group : groups.values()) {\n\t\t\tif (!descendants.contains(group) && group.parent==parent) {\n\t\t\t\tdescendants.add(group);\n\t\t\t\tgetAllDescendants(group, descendants);\n\t\t\t}\n\t\t}\n\t\treturn descendants;\n\t}",
"@Test\n public void testTraverseDescendants() {\n System.out.println(\"testTraverseDescendants\");\n List<Person> people = dao.listDescendants(\"KWCB-HZV\", 10, \"\");\n assertIdsEqual(descendants, people);\n }",
"public abstract Graph getChildren(String parentHash);",
"private TreePath findEmptyGroup(JTree tree, TreePath parent) {\r\n TreeNode node = (TreeNode)parent.getLastPathComponent();\r\n if (node != null && (node.getChildCount() <= 0 && node.getAllowsChildren())){\r\n return new TreePath( new Integer( 0 ) );\r\n \r\n }else{\r\n Object o = node;\r\n if (node.getChildCount() >= 0) {\r\n for (Enumeration e=node.children(); e.hasMoreElements(); ) {\r\n TreeNode n = (TreeNode)e.nextElement();\r\n TreePath path = parent.pathByAddingChild(n);\r\n TreePath result = findEmptyGroup(tree, path);\r\n if(result!=null)\r\n return result;\r\n // Found a match\r\n }\r\n }\r\n }\r\n return null;\r\n }",
"public boolean getRecurseSubgroups() { return recurseSubgroups; }",
"protected ClassTreeNode[] getChildNodesForPackageName(String packageName)\n {\n // Handle root package special\n if (packageName.length() == 0)\n return _rootChildren;\n\n // Get files\n WebFile[] nodeFiles = getFilesForPackageName(packageName);\n if (nodeFiles.length == 0)\n return EMPTY_NODE_ARRAY;\n\n // Iterate over files and Find child classes and packages for each\n List<ClassTreeNode> classTreeNodes = new ArrayList<>(nodeFiles[0].getFileCount());\n for (WebFile nodeFile : nodeFiles)\n findChildNodesForDirFile(nodeFile, classTreeNodes);\n\n // Return array\n return classTreeNodes.toArray(EMPTY_NODE_ARRAY);\n }",
"Collection getForeignKeysInGroup(Object groupID) throws Exception;",
"Group[] getParents() throws AccessManagementException;",
"@Nonnull\r\n List<DataSet> children(@Nonnull DataSet parent) throws IllegalArgumentException, IOException;",
"private void getAllDescendants(DodlesActor root, HashMap<String, DodlesActor> result) {\n result.put(root.getName(), root);\n\n if (root instanceof BaseDodlesViewGroup) {\n BaseDodlesViewGroup group = (BaseDodlesViewGroup) root;\n\n for (Actor child : (SnapshotArray<Actor>) group.getChildren()) {\n getAllDescendants((DodlesActor) child, result);\n }\n }\n }",
"public abstract List<Node> getChildNodes();",
"private void getChildren(JSONArray allNodes, String treeId, JSONObject parent, int level) throws JSONException {\n\t\t\n\t\tint length = 0;\n\t\tint offset = 0;\n\t\tint total = 0;\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\tString additionalInfo = \"?withAdditionalInfo=true&offset=\" + (offset+length);\n\t\t\t\n\t\t\tString restPath = \"/node/child/\" + parent.get(\"id\") + \"/from-tree/\" + treeId + \"/to-tree/\" + treeId + additionalInfo;\n\t\t\t\n\t\t\tJSONObject result = (JSONObject)restWrapper.httpGetRequest(restPath, new HashMap<String, String>());\n//\t\t\tLogger.severe(result.toString(4));\n\t\t\t\n\t\t\tJSONArray nodes = result.getJSONArray(\"content\");\n\t\t\t\n\t\t\tlength = nodes.length();\n\t\t\toffset = result.getInt(\"offset\");\n\t\t\ttotal = result.getInt(\"totalElements\");\n//\t\t\tLogger.severe(String.valueOf(level) + \": got \" + length + \" nodes from \" + offset + \", need \" + total);\n\t\t\t\n\t\t\t// iterate over result, add to result array and dive into recursion\n\t\t\tfor ( int n = 0; n < length; n++ ) {\n\t\t\t\tJSONObject nodeObject = nodes.getJSONObject(n);\n\t\t\t\t\n\t\t\t\tallNodes.put(nodeObject);\n\t\t\t\t\n\t\t\t\tboolean leaf = nodeObject.getBoolean(\"leaf\");\n\t\t\t\t\n\t\t\t\tif ( ! leaf ) {\n//\t\t\t\t\tLogger.severe(\"Recursion on Level \" + String.valueOf(level));\n\t\t\t\t\tgetChildren(allNodes, treeId, nodeObject, level+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// next pages on this level\n\t\t\t\n\t\t} while ( (offset + length) < total );\n\t\t\n\t\t\n\t}",
"public ResultMap<BaseNode> listChildren();",
"Node[] getChildren(Node node);",
"private static Stream<GroupModel> groupAndItsParentsStream(GroupModel group) {\n Stream.Builder<GroupModel> sb = Stream.builder();\n while (group != null) {\n sb.add(group);\n group = group.getParent();\n }\n return sb.build();\n }",
"public List<TreeNode> getChildrenNodes();",
"public void inOrderTraverseRecursive();",
"Iterator<CtElement> descendantIterator();",
"public Query getRecursiveQuery(String fieldOrGroup) throws ParseException;",
"Collection<DendrogramNode<T>> getChildren();",
"@Override\n\tpublic Set<HtmlTag> getChildren()\n\t{\n\t\tImmutableSet.Builder<HtmlTag> childrenBuilder = ImmutableSet.builder();\n\t\tfor(TreeNode<? extends HtmlTag> child : node.getChildren())\n\t\t{\n\t\t\tchildrenBuilder.add(child.getValue());\n\t\t}\n\t\treturn childrenBuilder.build();\n\t}",
"abstract public Collection<? extends IZipNode> getChildren();",
"public List<Component> getAllTree() {\n\t\tList<Component> ret = new ArrayList<>();\n\t\tret.add(this);\n\t\tfor (Component c : getChilds()) {\n\t\t\tList<Component> childs = c.getAllTree();\n\t\t\t// retire les doublons\n\t\t\tfor (Component c1 : childs) {\n\t\t\t\tif (!ret.contains(c1)) {\n\t\t\t\t\tret.add(c1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public List<Long> depthTraverse(){\n return depthTraverseGen(null);\n }",
"public TreeNode subtreeWithAllDeepest(TreeNode root) {\n }",
"@SuppressWarnings(\"unchecked\")\n public List<AbstractFamixEntity> getDescendants(AbstractFamixEntity entity) {\n List<AbstractFamixEntity> entities = new ArrayList<AbstractFamixEntity>();\n entities.add(entity);\n if (entity instanceof IHierarchicalElement) {\n IHierarchicalElement<? extends AbstractFamixEntity> parentEntity = (IHierarchicalElement<? extends AbstractFamixEntity>) entity;\n if (parentEntity.getChildren().size() > 0) {\n for (AbstractFamixEntity child : parentEntity.getChildren()) {\n entities.addAll(getDescendants(child));\n }\n }\n }\n return entities;\n }",
"public void visitChildren(T parent, Consumer<T> consumer, boolean includeGrandChildren) {\n tree.stream(parent, 0, Integer.MAX_VALUE).forEach(c -> {\n consumer.accept(c);\n if(includeGrandChildren) {\n visitChildren(parent, consumer, true);\n }\n });\n }",
"int getChildrenCount(int groupPosition);",
"public List<TreeNode> getChildren ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"getChildren of \" + this);\r\n }\r\n\r\n return children;\r\n }",
"private List<View> getAllChildrenBFS(View v) {\n List<View> visited = new ArrayList<View>();\n List<View> unvisited = new ArrayList<View>();\n unvisited.add(v);\n\n while (!unvisited.isEmpty()) {\n View child = unvisited.remove(0);\n visited.add(child);\n if (!(child instanceof ViewGroup)) continue;\n ViewGroup group = (ViewGroup) child;\n final int childCount = group.getChildCount();\n for (int i=0; i<childCount; i++) unvisited.add(group.getChildAt(i));\n }\n return visited;\n }",
"public ArrayList<DagNode> getAllParentNodes(DagNode node){\n node.setDiscovered(true);\n ArrayList<DagNode> allParentNodes = new ArrayList<>();\n allParentNodes.add(node);\n for(DagNode parentNode : node.getParentTaskIds()){\n if(!parentNode.isDiscovered()){\n //if it has not been discoverd yet, add it to the list to return\n allParentNodes.addAll(getAllParentNodes(parentNode));\n }\n }\n return allParentNodes;\n }",
"public static ArrayList<Node> findChildrenOfNode(Node parent, Label label) {\n\t\tArrayList<Node> result = new ArrayList<Node>();\n\t\tfor (Relationship rel : parent.getRelationships(Direction.OUTGOING)) {\n\t\t\tNode child = rel.getOtherNode(parent);\n\t\t\tif (child.hasLabel(label)) {\n\t\t\t\tresult.add(child);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"private Node getGrandparent(Node n) {\n return n.mParent.mParent;\n }",
"@Override\n\tpublic List<LinkGroup> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}",
"public List<MarkedUpText> getDescendantTexts() {\n List<MarkedUpText> texts = this.getChildrenTexts();\n \n Enumeration<DefaultMutableTreeNode> children = this.children();\n while (children.hasMoreElements()) {\n DefaultMutableTreeNode curChild = children.nextElement();\n if(curChild.getAllowsChildren()) {\n texts.addAll(((Folder) curChild).getDescendantTexts());\n }\n }\n return texts;\n }",
"List<HNode> getChildren(Long id);",
"public Map<Node<T>, Set<Node<T>>> getChildParentMap() {\n if (root == null) {\n return new HashMap<>();\n }\n\n Map<Node<T>, Set<Node<T>>> childParentMap = new HashMap<>();\n\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n while (pendingNodes.size() > 0) {\n Node<T> currNode = pendingNodes.poll();\n\n childParentMap.put(currNode, currNode.getAllParents());\n\n pendingNodes.addAll(currNode.getChildren());\n }\n\n return childParentMap;\n }",
"public void recursion(int parent) {\n\n\t\tfor (int i : this.children.get(parent)) {\n\t\t\tthis.string.append(\n\t\t\t\t\t\"<\" + this.idMap.get(i).get(2) + \" id=\\\"\" + i + \"\\\" parent=\\\"\" + this.idMap.get(i).get(1) + \"\\\">\");\n\n\t\t\tif (this.children.containsKey(i) && i != parent) {\n\t\t\t\trecursion(i);\n\n\t\t\t} else if (i == parent) {\n\t\t\t\tthis.root = i;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tthis.string.append(\"</\" + this.idMap.get(i).get(2) + \">\");\n\t\t}\n\n\t}",
"@NotNull\n public abstract JBIterable<T> children(@NotNull T root);",
"@Override\n\tpublic List<IATElement> getChildren(AbstractComposite parent) {\n\t\tif (parent instanceof Root) {\n\t\t\treturn getRootChildren(parent);\n\t\t\t\n\t\t} else if (parent instanceof AbstractProject) {\n\t\t\treturn getProjectChildren(parent);\n\t\t\t\n\t\t} else if (parent instanceof Folder) {\n\t\t\treturn getFolderChildren(parent);\n\t\t\t\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public Collection<ChildType> getChildren();",
"public Node[] getChildren(){return children;}",
"private ArrayList<ASTNode> getAllNodesImpl(ArrayList<ASTNode> childs) {\r\n\t\tif (visited)\r\n\t\t\treturn childs;\r\n\t\tchilds.add(this);\r\n\t\tvisited = true;\r\n\r\n\t\tfor (ASTNode child : getChildren()) {\r\n\t\t\tchild.getAllNodesImpl(childs);\r\n\t\t}\r\n\r\n\t\treturn childs;\r\n\t}",
"public Object[] getChildren(Object parentElement) {\n\t\treturn null;\r\n\t}",
"@Override\n public List<Defendant> getAllDefendants(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n List<Defendant> defendants = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblDefendants\");\n for(Map<String,Object> map: data)\n defendants.add(new Defendant(map));\n return defendants;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }",
"public XMLElement[] getChildren(String path)\n/* */ {\n/* 641 */ if (path.indexOf('/') != -1) {\n/* 642 */ return getChildrenRecursive(PApplet.split(path, '/'), 0);\n/* */ }\n/* */ \n/* */ \n/* 646 */ if (Character.isDigit(path.charAt(0))) {\n/* 647 */ return new XMLElement[] { getChild(Integer.parseInt(path)) };\n/* */ }\n/* 649 */ int childCount = getChildCount();\n/* 650 */ XMLElement[] matches = new XMLElement[childCount];\n/* 651 */ int matchCount = 0;\n/* 652 */ for (int i = 0; i < childCount; i++) {\n/* 653 */ XMLElement kid = getChild(i);\n/* 654 */ String kidName = kid.getName();\n/* 655 */ if ((kidName != null) && (kidName.equals(path))) {\n/* 656 */ matches[(matchCount++)] = kid;\n/* */ }\n/* */ }\n/* 659 */ return (XMLElement[])PApplet.subset(matches, 0, matchCount);\n/* */ }",
"Relations getGroupOfRelations();",
"public Set<Loop> getChildren(Loop lp) {\n\t\tif (children.containsKey(lp)) {\n\t\t\treturn children.get(lp);\n\t\t} else {\n\t\t\treturn new LinkedHashSet<Loop>();\n\t\t}\n\t}",
"void expandChilds() {\n\t\t\tenumAndExpand(this.parentItem);\n\t\t}",
"public abstract List<ResolvedReferenceType> getDirectAncestors();",
"public abstract Graph getParents(String childVertexHash);",
"private List findDeepestNodes(Node root)\n\t {\n\t\t Object[] levelInformation = new Object[2];\n\t\t levelInformation[0] = 0;\n\t\t levelInformation[1] = new ArrayList();\n\t\t findDeepestNodes(root, 1, levelInformation);\n\t\t return (List) levelInformation[1];\n\t }",
"public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }",
"public List<AST> getChildNodes ();",
"void updateAllParentsBelow();",
"@Override\n\t\tpublic List<? extends IObject> getChildren() {\n\t\t\tif (!this.hasChildren()) {\n\t\t\t\treturn new ArrayList<>();\n\t\t\t}\n\t\t\tIterator<IFolder> subfolders = this.folder.subfolder();\n\t\t\treturn Lists.transform(ImmutableList.copyOf(subfolders), new Function<IFolder, FolderTreeObject>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic FolderTreeObject apply(IFolder input) {\n\t\t\t\t\treturn new FolderTreeObject(input, FolderTreeObject.this.rootFolder);\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public Iterator<ParseTreeNode> children() {\r\n if ((_children == null) || (_children.size() == 0)) {\r\n return NULL_ITERATOR;\r\n }\r\n return _children.iterator();\r\n }",
"private static void findDescendantNamesWithSeparator(Node parent, String tag, String descendants, String separator, List<String> found) {\n if (parent instanceof Element) {\n String elementName = ((Element)parent).getAttribute(\"name\");\n if (!elementName.isEmpty()) {\n descendants += ((Element)parent).getAttribute(\"name\");\n }\n if (parent.getNodeName().equals(tag)) {\n found.add(descendants);\n }\n if (!elementName.isEmpty()) {\n descendants += separator;\n }\n }\n NodeList children = parent.getChildNodes();\n for (int i = 0; i < children.getLength(); i++) {\n Node child = children.item(i);\n findDescendantNamesWithSeparator(child, tag, descendants, separator, found);\n }\n }",
"public List getParents()\n {\n \tList result = new ArrayList();\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n\n \tif (instance != null)\n \t{\n \t if (instance.isRepresentative(this.refMofId())&&\n \t instance.hasRefObject(this.refMofId()))\n \t {\n \t if (getGeneralization().isEmpty() && !(this instanceof Interface) && !(this instanceof Enumeration))\n \t {\n \t \tresult.add(OclLibraryHelper.getInstance(this).\n \t\t\t\t\t\t\t\t\t\t\tgetAny());\n \t return result;\n \t \t }\n \t } \t \n \t \n\t \tif (equals(OclLibraryHelper.getInstance(this).getVoid()))\n\t \t{\n\t \t\tModel topPackage = ModelHelper.\n\t \t\t\t\t\t\t \t\tgetInstance(\n\t \t\t\t\t\t\t \t\t\t\t(Uml15Package) this.refOutermostPackage()).\n\t \t\t\t\t\t\t \t\t\t\t\t\tgetTopPackage();\n\t \t\tresult.addAll(((NamespaceImpl)topPackage).getAllClassesWithoutSpez());\n\t \t\treturn result;\n\t \t}\n \t} \n \tIterator it = getGeneralization().iterator();\n\n \twhile(it.hasNext())\n \t{\n \t Generalization g = (Generalization)it.next(); \n \t result.add(g.getParent());\n \t}\n \treturn result;\n }",
"List<Node<T>> children();",
"public List<TreeData> getTopicTreeDataByParentId(int parentId);",
"Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;",
"@Nonnull\n Iterable<? extends T> getChildren();",
"public Enumeration<Node> children() { return null; }",
"@Override\n\tpublic ArrayList<Parent> queryAll() {\n\t\treturn parentDao.queryAll();\n\t}",
"@Override\n\tpublic ParentEntityNode findEntityRelationTreeByParentEntityId(String entityId) {\n\t\tLosConfigDetails owner = configLookupRepository.findByConfigId(LOSEntityConstants.OWNER);\n\t\tLosConfigDetails owned = configLookupRepository.findByConfigId(LOSEntityConstants.OWNED);\n\t\tLosConfigDetails affilated = configLookupRepository.findByConfigId(LOSEntityConstants.AFFILIATED);\n\t\tLosConfigDetails subsidary = configLookupRepository.findByConfigId(LOSEntityConstants.SUBSIDIARY);\n\t\tString commercialSuffix = LOSEntityConstants.COMMERCIAL_SUFFIX_CODE;\n\t\tLong parentCount = findParentEntityCount(entityId);\n\t\tList<EntityRelationshipType> relationDetails = entityRelationshipTypeRepository\n\t\t\t\t.findByEntityId1AndDeleted(Arrays.asList(entityId));\n\t\tif (!relationDetails.isEmpty()) {\n\t\t\tList<String> iterationChildIds = new ArrayList<>();\n\t\t\tList<EntityRelationshipType> isOwnerRelation = relationDetails.stream().filter(\n\t\t\t\t\tcheckRelationType -> getEntityRelationId(checkRelationType).equals(LOSEntityConstants.OWNER))\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tif (!isOwnerRelation.isEmpty()) {\n\t\t\t\tList<String> entityIds = new ArrayList<>();\n\t\t\t\tList<ParentEntityNode> treeData = new ArrayList<>();\n\t\t\t\tList<String> levelTwoChildIds = new ArrayList<>();\n\t\t\t\tfor (EntityRelationshipType eachRelation : relationDetails) {\n\t\t\t\t\tif (getEntityRelationId(eachRelation).equals(LOSEntityConstants.OWNER)\n\t\t\t\t\t\t\t&& eachRelation.getEntityId1().endsWith(commercialSuffix)\n\t\t\t\t\t\t\t&& eachRelation.getEntityId2().endsWith(commercialSuffix)) {\n\t\t\t\t\t\tentityIds.add(eachRelation.getEntityId2());\n\t\t\t\t\t\tList<ParentEntityNode> rootData = parentEntityNodeRepository.findEntityTreeData(entityId);\n\t\t\t\t\t\ttreeData.addAll(rootData);\n\t\t\t\t\t}\n\t\t\t\t\tif (!entityIds.isEmpty()) {\n\t\t\t\t\t\treturn cToCOwnerCheckLeveOneHavingParentOrChildren(entityId, owner, affilated, commercialSuffix, // NOSONAR\n\t\t\t\t\t\t\t\titerationChildIds, entityIds, treeData, levelTwoChildIds);// NOSONAR\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (parentCount == 0) {\n\t\t\tList<ParentEntityNode> treeData = entityParentIsNotPresent(entityId, subsidary, affilated, owner,\n\t\t\t\t\tcommercialSuffix);\n\t\t\treturn entityRelationshipTreeServiceImpl.createTreeFromParent(treeData, entityId);\n\t\t} else if (parentCount > 0) {\n\t\t\tList<ParentEntityNode> treeData = entityParentIsPresent(entityId, owner, owned, affilated, subsidary,\n\t\t\t\t\tcommercialSuffix);\n\t\t\treturn entityRelationshipTreeServiceImpl.createTreeFromParent(treeData, entityId);\n\t\t}\n\t\tList<ParentEntityNode> parentEntityNode = parentEntityNodeRepository.findEntityTreeData(entityId);\n\t\treturn entityRelationshipTreeServiceImpl.createTreeFromParent(parentEntityNode, entityId);\n\t}",
"public LinkedList<ApfsDirectory> getSubDirectories() {\n LinkedList<ApfsDirectory> subDirectories = new LinkedList<ApfsDirectory>();\n for(ApfsElement apfse: children) {\n if(apfse.isDirectory())\n subDirectories.add((ApfsDirectory) apfse);\n }\n return subDirectories;\n }",
"public static List<Node> getChildren(Element sourceElement) {\r\n return getChildren(sourceElement, false);\r\n }",
"private List<MutateOperation> removeDescendantsAndFilter(String resourceName) {\n List<MutateOperation> operations = new ArrayList<>();\n\n if (this.parentsToChildren.containsKey(resourceName)) {\n Set<String> children = parentsToChildren.get(resourceName);\n for (String child : children) {\n // Recursively adds operations to the return value that remove each of the child nodes of\n // the current node from the tree.\n operations.addAll(removeDescendantsAndFilter(child));\n }\n }\n\n // Creates and adds an operation to the return value that will remove the current node from\n // the tree.\n AssetGroupListingGroupFilterOperation operation =\n AssetGroupListingGroupFilterOperation.newBuilder().setRemove(resourceName).build();\n operations.add(\n MutateOperation.newBuilder().setAssetGroupListingGroupFilterOperation(operation).build());\n return operations;\n }",
"public Collection<E> getChildEdges(V vertex);",
"private HObject checkParent(String groupName, Group parentGroup)\n\t{\n\t\tfor(HObject h : parentGroup.getMemberList())\n\t\t{\n\t\t\tif(h.getName().equals(groupName))\n\t\t\t{\n\t\t\t\treturn h;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic GroupSet getAllGroups() throws DataBackendException\n {\n GroupSet groupSet = new GroupSet();\n Connection con = null;\n\n try\n {\n \n con = Transaction.begin();\n\n List<Group> groups = doSelectAllGroups(con);\n\n for (Group group : groups)\n {\n // Add dependent objects if they exist\n ((TorqueAbstractSecurityEntity)group).retrieveAttachedObjects(con, getLazyLoading());\n\n groupSet.add(group);\n }\n\n Transaction.commit(con);\n con = null;\n }\n catch (TorqueException e)\n {\n throw new DataBackendException(\"Error retrieving group information\", e);\n }\n finally\n {\n if (con != null)\n {\n Transaction.safeRollback(con);\n }\n }\n\n return groupSet;\n }",
"private ArrayList<ContentNode> findDescendants(Node currentNode, ArrayList<ContentNode> allNodes) throws RepositoryException {\n NodeIterator iterator = currentNode.getNodes();\n\n while (iterator.hasNext()) {\n Node nextNode = iterator.nextNode();\n\n if (nextNode.isNode() && !nextNode.isNodeType(\"hippofacnav:facetnavigation\")) {\n if (!nextNode.getNodes().hasNext()) {\n allNodes.add(new ContentNode(nextNode.getName(), nextNode.getProperties()));\n log.info(\"Added descendant node; \" + nextNode.getName());\n }\n findDescendants(nextNode, allNodes);\n }\n }\n\n return allNodes;\n }",
"@Override\n\tpublic List<Node> chilren() {\n\t\treturn children;\n\t}",
"private VirtualFile findChildInDirectory(VirtualFile parent, Directory parentDir, String name) {\n if (Strings.isFilled(Files.getFileExtension(name))) {\n return priorizedLookup(() -> parentDir.findChildBlob(name)\n .map(blob -> wrapBlob(parent, blob, false))\n .orElse(null),\n () -> parentDir.findChildDirectory(name)\n .map(directory -> wrapDirectory(parent, directory, false))\n .orElse(null),\n () -> createPlaceholder(parentDir, parent, name));\n } else {\n //...if there is no file extension we reverse the lookup order\n return priorizedLookup(() -> parentDir.findChildDirectory(name)\n .map(directory -> wrapDirectory(parent, directory, false))\n .orElse(null),\n () -> parentDir.findChildBlob(name)\n .map(blob -> wrapBlob(parent, blob, false))\n .orElse(null),\n () -> createPlaceholder(parentDir, parent, name));\n }\n }",
"public io.dstore.values.BooleanValueOrBuilder getRecursiveOrBuilder() {\n return getRecursive();\n }",
"public static void computeChildren() {\n\t\tArrayList<BNNode> children = new ArrayList<BNNode>();\n\t\t// For each node, build an array of children by checking which nodes have it as a parent.\n\t\tfor (BNNode node : nodes) {\n\t\t\tchildren.clear();\n\t\t\tfor (BNNode node2 : nodes) {\n\t\t\t\tif (node == node2)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (BNNode node3 : node2.parents)\n\t\t\t\t\tif (node3 == node)\n\t\t\t\t\t\tchildren.add(node2);\n\t\t\t}\n\t\t\tnode.children = new BNNode[children.size()];\n\t\t\tnode.children = (BNNode[]) children.toArray(node.children);\n\t\t}\n\t}",
"boolean isChildSelectable(int groupPosition, int childPosition);",
"private List<IClass> getChildren(IClass cls) {\n\t\tList<IClass> subclasses = new ArrayList<IClass>();\n\t\tCollections.addAll(subclasses, cls.getDirectSubClasses());\n\t\treturn subclasses;\n\t}",
"public Vector<GraphicalLatticeElement> getChildren() {\n\t\tVector<GraphicalLatticeElement> children = new Vector<GraphicalLatticeElement>();\n\t\tif (childrenEdges != null)\n\t\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t\tEdge edge = childrenEdges.elementAt(i);\n\t\t\t\tchildren.add(edge);\n\t\t\t\tchildren.add(edge.getDestination());\n\t\t\t}\n\t\t\n\t\treturn children;\n\t}",
"public List<NamespaceNode> getChildNodes() {\n return childNodes;\n }",
"public static List<String> findLinkageNameInChildren(DebugInfoEntry die) {\n\t\tDWARFProgram prog = die.getCompilationUnit().getProgram();\n\t\tfor (DebugInfoEntry childDIE : die.getChildren(DWARFTag.DW_TAG_subprogram)) {\n\t\t\tDIEAggregate childDIEA = prog.getAggregate(childDIE);\n\t\t\tString linkage = childDIEA.getString(DWARFAttribute.DW_AT_linkage_name, null);\n\t\t\tif (linkage == null) {\n\t\t\t\tlinkage = childDIEA.getString(DWARFAttribute.DW_AT_MIPS_linkage_name, null);\n\t\t\t}\n\n\t\t\tif (linkage != null) {\n\t\t\t\tList<String> nestings = parseMangledNestings(linkage);\n\t\t\t\tif (!nestings.isEmpty()) {\n\t\t\t\t\tnestings.remove(nestings.size() - 1);\n\t\t\t\t\treturn nestings;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn Collections.EMPTY_LIST;\n\t}",
"public List getChildren(){\n List result = new ArrayList();\n Iterator it = getSpecialisation().iterator();\n while(it.hasNext()){\n Generalization g = (Generalization)it.next(); \n result.add(g.getChild());\n //System.out.println(\" \"+getName()+\" Parent:\" +g.getParent().getName());\n }\n return result;\n }",
"private static void gatherChildren(int parentType, XSParticleDecl p, Vector<XSParticleDecl> children) {\n/* 1033 */ int min = p.fMinOccurs;\n/* 1034 */ int max = p.fMaxOccurs;\n/* 1035 */ int type = p.fType;\n/* 1036 */ if (type == 3) {\n/* 1037 */ type = ((XSModelGroupImpl)p.fValue).fCompositor;\n/* */ }\n/* 1039 */ if (type == 1 || type == 2) {\n/* */ \n/* 1041 */ children.addElement(p);\n/* */ \n/* */ return;\n/* */ } \n/* 1045 */ if (min != 1 || max != 1) {\n/* 1046 */ children.addElement(p);\n/* */ }\n/* 1048 */ else if (parentType == type) {\n/* 1049 */ XSModelGroupImpl group = (XSModelGroupImpl)p.fValue;\n/* 1050 */ for (int i = 0; i < group.fParticleCount; i++) {\n/* 1051 */ gatherChildren(type, group.fParticles[i], children);\n/* */ }\n/* 1053 */ } else if (!p.isEmpty()) {\n/* 1054 */ children.addElement(p);\n/* */ } \n/* */ }",
"public JodeList children(Predicate<Jode> filter) {\n return this.children().filter(filter);\n }",
"public Collection getDescendantClasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;",
"CoreParentNode coreGetParent();",
"private List<DownloadPackage> searchByParentCode(String parentCode) {\n Collection<DownloadPackage> packages = application.getPackageMap().values();\n List<DownloadPackage> results = new ArrayList<DownloadPackage>();\n for (DownloadPackage pack : packages) {\n if (parentCode == null) {\n if (pack.getParentCode() == null) {\n results.add(pack);\n }\n } else if (parentCode.equals(pack.getParentCode())) {\n results.add(pack);\n }\n }\n return results;\n }",
"Comment recursiveFind(ArrayList<Comment> myList, String parentID) {\n\t\t\t\n\t\tfor (Comment c : myList) {\n\t\t\t\n\t\t\tif (c.getId().toString().equals(parentID)) {\n\t\t\t//\tSystem.out.println(\"NASAO SAMMMM U 1 !!!!\");\n\t\t//\t\tSystem.out.println(comment.getId());\n\t\t\t//\tSystem.out.println(comment.getLikes());\n\t\t\t\t//System.out.println(comment.getText());\n\t\t\t\trecCom=c;\n\t\t\t\tif(recCom!=null)\n\t\t\t//\t\tSystem.out.println(recCom.getText());\n\t\t\t\t\n\t\t\t\treturn c;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\tfor (Comment comment : c.getComments()) {\n\t\t\t\t//\tSystem.out.println(\"Poredi sa :\" +comment.getId());\n\t\t\t\t//\tSystem.out.println(\"tekst je :\" +comment.getText());\n\t\t\t\t//\tSystem.out.println(comment.getComments().size());\n\t\t\t\t\tif (comment.getId().toString().equals(parentID)) {\n\t\t\t\t//\t\tSystem.out.println(\"NASAO SAMMMM U 2 !!!!\");\n\t\t\t\t\t//\tSystem.out.println(comment.getId());\n\t\t\t\t\t//\tSystem.out.println(comment.getLikes());\n\t\t\t\t\t//\tSystem.out.println(comment.getText());\n\t\t\t\t\t\trecCom=comment;\n\t\t\t\t\t\treturn comment;\n\t\t\t\t\t}\n\t\t\t\t\tif (comment.getComments().size() > 0){ \n\t\t\t\t\t//\tSystem.out.println(comment.getText());\n\t\t\t\t\t//\tSystem.out.println(comment.getComments().get(0).getText());\n\t\t\t\t\t\trecursiveFind(comment.getComments(), parentID);\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\t\treturn null;\n\t}",
"public static List<String> findDescendantNamesWithSeparator(Node parent, String tag, String separator) {\n List<String> found = new ArrayList<>();\n findDescendantNamesWithSeparator(parent, tag, \"\", separator, found);\n return found;\n }",
"public Collection<BaseGenerator> \n getChildren() \n {\n return Collections.unmodifiableCollection(pChildren.values());\n }",
"int find(subset [] subsets , int i){ \n\t\n\t\tif (subsets[i].parent != i) \n\t\t\tsubsets[i].parent = find(subsets, subsets[i].parent); \n\t\t\treturn subsets[i].parent; \n\t}",
"public List<IDirectory> getAllChildDir() {\n return this.children;\n }",
"private void getSubpagesRec(GWikiElementInfo parent, int curDepth)\n {\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(parent);\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, ++curDepth);\n }\n }",
"UUID getNestedGroupId();",
"private void getAllChildNodesRecursive(String code, List<String> childCodes,\n Terminology terminology) {\n List<Concept> children = getSubclasses(code, terminology);\n if (children == null || children.size() == 0) {\n return;\n } else {\n for (Concept c : children) {\n childCodes.add(c.getCode());\n getAllChildNodesRecursive(c.getCode(), childCodes, terminology);\n }\n }\n }",
"public List<PafDimMember> getChildren() {\r\n\t\t\r\n\t\tList<PafDimMember> childList = null;\r\n\t\t\r\n\t\t// If no children are found, return empty array list\r\n\t\tif (children == null) {\r\n\t\t\tchildList = new ArrayList<PafDimMember>();\r\n\t\t} else {\r\n\t\t\t// Else, return pointer to children\r\n\t\t\tchildList = children;\r\n\t\t}\r\n\t\treturn childList;\r\n\t}",
"public ParseTree[] getChildren() {\n\t\treturn children;\n\t}",
"@Nonnull\r\n List<DataSet> children(@Nonnull DataSource dataSource) throws IllegalArgumentException, IOException;",
"public List<XML2JSONObject> getChildren() {\r\n return _childs;\r\n }"
]
| [
"0.7064957",
"0.5418761",
"0.53618723",
"0.51685214",
"0.5146019",
"0.5139314",
"0.51352304",
"0.51151526",
"0.5101384",
"0.50284004",
"0.50260293",
"0.49527395",
"0.49507082",
"0.49322873",
"0.4880893",
"0.48694173",
"0.48550442",
"0.48468643",
"0.48131153",
"0.4797182",
"0.47941735",
"0.47909126",
"0.47857904",
"0.4751555",
"0.47369882",
"0.47320294",
"0.47207168",
"0.47198966",
"0.47011727",
"0.46946877",
"0.4687461",
"0.46786523",
"0.4675658",
"0.46732837",
"0.4669766",
"0.46675226",
"0.465062",
"0.46416765",
"0.4641131",
"0.46401188",
"0.46258175",
"0.46212402",
"0.46200177",
"0.46158347",
"0.4608136",
"0.46075648",
"0.4605915",
"0.4599088",
"0.4583497",
"0.45797738",
"0.45655033",
"0.4563108",
"0.4533364",
"0.45314032",
"0.4527306",
"0.45172545",
"0.45161897",
"0.45143437",
"0.45107493",
"0.45046568",
"0.4491112",
"0.4474334",
"0.44660175",
"0.44503877",
"0.44409057",
"0.44304353",
"0.44282734",
"0.44200397",
"0.44128114",
"0.44117975",
"0.440052",
"0.43895447",
"0.43857375",
"0.43780583",
"0.43777367",
"0.43733656",
"0.43622512",
"0.43615294",
"0.43587932",
"0.43547902",
"0.43504065",
"0.4345783",
"0.43394384",
"0.43383262",
"0.43376005",
"0.43354282",
"0.43332264",
"0.43274674",
"0.43237662",
"0.4320643",
"0.43118694",
"0.4308575",
"0.43048063",
"0.43013123",
"0.42991218",
"0.42944273",
"0.42922994",
"0.4292145",
"0.42916983",
"0.427751"
]
| 0.72944516 | 0 |
Internal version of getAllDescendants. MUST BE EXTERNALLY SYNCHRONIZED on groupMutex! | private List<Group> getAllDescendants(Group parent, List<Group> descendants) {
for(Group group : groups.values()) {
if (!descendants.contains(group) && group.parent==parent) {
descendants.add(group);
getAllDescendants(group, descendants);
}
}
return descendants;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Group> getAllDescendants(Group parent) {\n\t\tsynchronized(groupMutex) {\n\t\t\treturn getAllDescendants(parent, new ArrayList<>());\n\t\t}\n\t}",
"@Test\n public void testTraverseDescendants() {\n System.out.println(\"testTraverseDescendants\");\n List<Person> people = dao.listDescendants(\"KWCB-HZV\", 10, \"\");\n assertIdsEqual(descendants, people);\n }",
"private void getAllDescendants(DodlesActor root, HashMap<String, DodlesActor> result) {\n result.put(root.getName(), root);\n\n if (root instanceof BaseDodlesViewGroup) {\n BaseDodlesViewGroup group = (BaseDodlesViewGroup) root;\n\n for (Actor child : (SnapshotArray<Actor>) group.getChildren()) {\n getAllDescendants((DodlesActor) child, result);\n }\n }\n }",
"private ArrayList<ContentNode> findDescendants(Node currentNode, ArrayList<ContentNode> allNodes) throws RepositoryException {\n NodeIterator iterator = currentNode.getNodes();\n\n while (iterator.hasNext()) {\n Node nextNode = iterator.nextNode();\n\n if (nextNode.isNode() && !nextNode.isNodeType(\"hippofacnav:facetnavigation\")) {\n if (!nextNode.getNodes().hasNext()) {\n allNodes.add(new ContentNode(nextNode.getName(), nextNode.getProperties()));\n log.info(\"Added descendant node; \" + nextNode.getName());\n }\n findDescendants(nextNode, allNodes);\n }\n }\n\n return allNodes;\n }",
"public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }",
"public ResultMap<BaseNode> listChildren();",
"protected ClassTreeNode[] getChildNodesForPackageName(String packageName)\n {\n // Handle root package special\n if (packageName.length() == 0)\n return _rootChildren;\n\n // Get files\n WebFile[] nodeFiles = getFilesForPackageName(packageName);\n if (nodeFiles.length == 0)\n return EMPTY_NODE_ARRAY;\n\n // Iterate over files and Find child classes and packages for each\n List<ClassTreeNode> classTreeNodes = new ArrayList<>(nodeFiles[0].getFileCount());\n for (WebFile nodeFile : nodeFiles)\n findChildNodesForDirFile(nodeFile, classTreeNodes);\n\n // Return array\n return classTreeNodes.toArray(EMPTY_NODE_ARRAY);\n }",
"Iterable<? extends XomNode> elements();",
"@Override\n public List<Defendant> getAllDefendants(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n List<Defendant> defendants = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblDefendants\");\n for(Map<String,Object> map: data)\n defendants.add(new Defendant(map));\n return defendants;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }",
"public String getUnusedChildren();",
"@SuppressWarnings(\"unchecked\")\n public List<AbstractFamixEntity> getDescendants(AbstractFamixEntity entity) {\n List<AbstractFamixEntity> entities = new ArrayList<AbstractFamixEntity>();\n entities.add(entity);\n if (entity instanceof IHierarchicalElement) {\n IHierarchicalElement<? extends AbstractFamixEntity> parentEntity = (IHierarchicalElement<? extends AbstractFamixEntity>) entity;\n if (parentEntity.getChildren().size() > 0) {\n for (AbstractFamixEntity child : parentEntity.getChildren()) {\n entities.addAll(getDescendants(child));\n }\n }\n }\n return entities;\n }",
"public final Map<String, DodlesActor> getAllDescendants(DodlesActor root) {\n HashMap<String, DodlesActor> result = new HashMap<String, DodlesActor>();\n getAllDescendants(root, result);\n return result;\n }",
"private ArrayList<ASTNode> getAllNodesImpl(ArrayList<ASTNode> childs) {\r\n\t\tif (visited)\r\n\t\t\treturn childs;\r\n\t\tchilds.add(this);\r\n\t\tvisited = true;\r\n\r\n\t\tfor (ASTNode child : getChildren()) {\r\n\t\t\tchild.getAllNodesImpl(childs);\r\n\t\t}\r\n\r\n\t\treturn childs;\r\n\t}",
"private List grepTopLevelEvents(Collection events) throws Exception {\n\t // Grep all events that are contained by other events\n\t Set containedEvents = new HashSet();\n\t GKInstance event = null;\n\t for (Iterator it = events.iterator(); it.hasNext();) {\n\t event = (GKInstance) it.next();\n\t if (event.getSchemClass().isValidAttribute(ReactomeJavaConstants.hasEvent)) {\n\t List components = event.getAttributeValuesList(ReactomeJavaConstants.hasEvent);\n\t if (components != null && components.size() > 0) { \n\t for (Iterator it1 = components.iterator(); it1.hasNext();) {\n\t GKInstance tmp = (GKInstance) it1.next();\n\t Boolean dnr = (Boolean) tmp.getAttributeValue(DO_NOT_RELEASE);\n\t if (dnr != null && !dnr.booleanValue())\n\t containedEvents.add(tmp);\n\t }\n\t }\n\t }\n\t }\n\t List topEvents = new ArrayList(events);\n\t topEvents.removeAll(containedEvents);\n\t return topEvents;\n\t}",
"Iterator<CtElement> descendantIterator();",
"Collection<Node> allNodes();",
"public Object[] getFilteredChildren() {\n\t\treturn getFilteredChildren(txTableViewer);\n\t}",
"public List<Component> getAllTree() {\n\t\tList<Component> ret = new ArrayList<>();\n\t\tret.add(this);\n\t\tfor (Component c : getChilds()) {\n\t\t\tList<Component> childs = c.getAllTree();\n\t\t\t// retire les doublons\n\t\t\tfor (Component c1 : childs) {\n\t\t\t\tif (!ret.contains(c1)) {\n\t\t\t\t\tret.add(c1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"protected abstract Node[] getAllNodes();",
"public List<AccessibleElement> getAccessibleChildren();",
"private Object[] localGetChildren(Object arg0) {\r\n\t\t\tArrayList<Object> returnList = new ArrayList<Object>();\r\n\t\t\tObject[] children = super.getChildren(arg0);\r\n\t\t\tfor (Object child: children) {\r\n\t\t\t\tif (child instanceof IViewSite || \r\n\t\t\t\t\tchild instanceof IWorkspaceRoot || \r\n\t\t\t\t\tchild instanceof IFolder)\r\n\t\t\t\t{\r\n\t\t\t\t\treturnList.add(child);\r\n\t\t\t\t} else if (child instanceof IProject) {\r\n\t\t\t\t\tif (((IProject)child).isOpen()) {\r\n\t\t\t\t\t\treturnList.add(child);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn returnList.toArray(new Object[returnList.size()]);\r\n\t\t}",
"private List<AxiomTreeNode> getChildNodeList(AxiomTreeNode t) {\n\n List<AxiomTreeNode> list = new ArrayList<AxiomTreeNode>();\n\n for (int i = 0; i < t.getChildCount(); i++) {\n\n list.add((AxiomTreeNode) t.getChildAt(i));\n }\n\n return list;\n }",
"Collection<V> getAllElements();",
"@Override\n public Set<ModuleReference> findAll() {\n while (hasNextEntry()) {\n scanNextEntry();\n }\n return cachedModules.values().stream().collect(Collectors.toSet());\n }",
"public List<TbNode> getAll() {\n return qureyNodeList(new NodeParam());\n }",
"private List<NodeLineage> getDescendants(String hashKey, Condition rangeKeyCondition,\n\t\t\tint pageSize, Key lastKeyEvaluated, boolean consistentRead) {\n\n\t\tif (pageSize > 1000) {\n\t\t\tpageSize = 1000;\n\t\t}\n\n\t\tString tableName = NodeLineageMapperConfig\n\t\t\t\t.getMapperConfig()\n\t\t\t\t.getTableNameOverride()\n\t\t\t\t.getTableName();\n\t\tAttributeValue hashKeyAttr = new AttributeValue().withS(hashKey);\n\t\tQueryRequest queryRequest = new QueryRequest()\n\t\t\t\t.withTableName(tableName)\n\t\t\t\t.withHashKeyValue(hashKeyAttr)\n\t\t\t\t.withLimit(pageSize)\n\t\t\t\t.withConsistentRead(consistentRead);\n\n\t\tif (rangeKeyCondition != null) {\n\t\t\tqueryRequest.setRangeKeyCondition(rangeKeyCondition);\n\t\t}\n\n\t\tif (lastKeyEvaluated != null) {\n\t\t\tqueryRequest.setExclusiveStartKey(lastKeyEvaluated);\n\t\t}\n\n\t\tQueryResult result = dynamoClient.query(queryRequest);\n\n\t\tList<Map<String, AttributeValue>> itemList = result.getItems();\n\t\tList<NodeLineage> descList = new ArrayList<NodeLineage>(itemList.size());\n\t\tfor (Map<String, AttributeValue> item : itemList) {\n\t\t\t// It does not matter which mapper\n\t\t\tDboNodeLineage dbo = readMapper.marshallIntoObject(DboNodeLineage.class, item);\n\t\t\tNodeLineage lineage = new NodeLineage(dbo);\n\t\t\tdescList.add(lineage);\n\t\t}\n\t\treturn descList;\n\t}",
"public XMLElement[] getChildren(String path)\n/* */ {\n/* 641 */ if (path.indexOf('/') != -1) {\n/* 642 */ return getChildrenRecursive(PApplet.split(path, '/'), 0);\n/* */ }\n/* */ \n/* */ \n/* 646 */ if (Character.isDigit(path.charAt(0))) {\n/* 647 */ return new XMLElement[] { getChild(Integer.parseInt(path)) };\n/* */ }\n/* 649 */ int childCount = getChildCount();\n/* 650 */ XMLElement[] matches = new XMLElement[childCount];\n/* 651 */ int matchCount = 0;\n/* 652 */ for (int i = 0; i < childCount; i++) {\n/* 653 */ XMLElement kid = getChild(i);\n/* 654 */ String kidName = kid.getName();\n/* 655 */ if ((kidName != null) && (kidName.equals(path))) {\n/* 656 */ matches[(matchCount++)] = kid;\n/* */ }\n/* */ }\n/* 659 */ return (XMLElement[])PApplet.subset(matches, 0, matchCount);\n/* */ }",
"protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }",
"public final Object [] getVisibleElements() {\r\n\t\tfinal List<XElementNode> roots = new ArrayList<XElementNode>();\t\t\t\t\r\n\t\tStringBuffer paths = new StringBuffer();\r\n\r\n\t\t//if right side is empty, we take selection of left side:\r\n\t\tif(targetHierarchyTree.isEmpty()) {\r\n//\t\t\tfinal Map <FastMSTreeItem, XElementNode> parents = new HashMap<FastMSTreeItem, XElementNode>();\r\n\t\t\tfinal LinkedHashSet <FastMSTreeItem> currentSelection = sourceHierarchyTree.getSelection(); \r\n\t\t\tfor (FastMSTreeItem it: currentSelection) {\r\n\t\t\t\tpaths.append(it.getModel().getPath());\r\n\t\t\t\tpaths.append(\",\");\r\n\t\t\t}\r\n\t\t\tsourceHierarchyTree.traverse(new FastMSTreeItemVisitor() {\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXElementNode elNode = getElementNodeCopyFrom(item);\r\n//\t\t\t\t\telNode.removeChildren();\r\n//\t\t\t\t\tparents.put(item, elNode);\r\n\t\t\t\t\titem.setElementNode(elNode);\r\n\t\t\t\t\tXElementNode xParent = getParent(parent); //, parents); //parents.get(parent);\r\n\t\t\t\t\tif(xParent == null)\r\n\t\t\t\t\t\troots.add(elNode);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\txParent.forceAddChild(elNode);\r\n\t\t\t\t\t\telNode.setParent(xParent);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\txAxisHierarchy.addProperty(\"filterPaths\", paths.toString());\r\n\t\t} else {\r\n\t\t\tfinal Map<FastMSTreeItem, XElementNode> parents = new HashMap<FastMSTreeItem, XElementNode>();\r\n\t\t\tfinal List <String> filterPaths = new ArrayList <String>();\r\n\t\t\ttargetHierarchyTree.traverse(new FastMSTreeItemVisitor(){\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXObjectModel node = item.getXObjectModel();\r\n\t\t\t\t\tString path = node.get(\"filterPath\");\r\n\t\t\t\t\tif (path != null) {\r\n\t\t\t\t\t\tfilterPaths.add(path);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn item.getChildCount() > 0;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tfor (String f: filterPaths) {\r\n\t\t\t\tpaths.append(f);\r\n\t\t\t\tpaths.append(\",\");\r\n\t\t\t}\r\n\t\t\ttargetHierarchyTree.traverse(new FastMSTreeItemVisitor() {\r\n\t\t\t\tpublic boolean visit(FastMSTreeItem item, FastMSTreeItem parent) {\r\n\t\t\t\t\tXElementNode elNode = getElementNodeCopyFrom(item);\r\n\t\t\t\t\telNode.removeChildren();\r\n\t\t\t\t\titem.setElementNode(elNode);\r\n\t\t\t\t\tXElementNode xParent = getParent(parent); //parents.get(parent);\r\n\t\t\t\t\tif(xParent == null)\r\n\t\t\t\t\t\troots.add(elNode);\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\txParent.forceAddChild(elNode);\r\n\t\t\t\t\t\telNode.setParent(xParent);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t});\t\t\t\r\n\t\t\txAxisHierarchy.addProperty(\"filterPaths\", paths.toString());\r\n\t\t}\r\n\t\treturn new Object [] {roots.toArray(new XElementNode[0]), paths.toString()};\r\n\t}",
"@Override\n protected void iterChildren(TreeFunction f) {\n }",
"@Override\n protected void iterChildren(TreeFunction f) {\n }",
"@Override\n protected void iterChildren(TreeFunction f) {\n }",
"public List<MarkedUpText> getDescendantTexts() {\n List<MarkedUpText> texts = this.getChildrenTexts();\n \n Enumeration<DefaultMutableTreeNode> children = this.children();\n while (children.hasMoreElements()) {\n DefaultMutableTreeNode curChild = children.nextElement();\n if(curChild.getAllowsChildren()) {\n texts.addAll(((Folder) curChild).getDescendantTexts());\n }\n }\n return texts;\n }",
"@Override\n\tpublic List<Child> getChildrenMostPopularGartens() {\n\t\treturn null;\n\t}",
"protected Element[] findDataElements(Element element) {\n List elements = new ArrayList();\n Iterator dataElements = element.getChildren(\"dataElement\",\n DataThingXMLFactory.namespace).iterator();\n while (dataElements.hasNext()) {\n elements.add((Element) dataElements.next());\n }\n Iterator collectionElements = element.getChildren(\"partialOrder\",\n DataThingXMLFactory.namespace).iterator();\n while (collectionElements.hasNext()) {\n Element collectionElement = (Element) collectionElements.next();\n Element itemListElement = collectionElement.getChild(\"itemList\",\n DataThingXMLFactory.namespace);\n elements.addAll(Arrays.asList(findDataElements(itemListElement)));\n }\n return (Element[]) elements.toArray(new Element[elements.size()]);\n }",
"public List<Node> getRootElements() {\n List<Node> subRoots = tree.find(\"s\", \"neb\", \"objc\");\n List<Node> directRoots = this.tree.getChildren().stream()\n .filter(x -> !x.getPosGroup().equals(\"$.\") && !x.getPosGroup().equals(\"$,\") && !x.getPosGroup().equals(\"$(\"))\n .collect(Collectors.toList());\n\n subRoots.addAll(directRoots);\n\n return subRoots;\n }",
"@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }",
"@Override\n\tpublic Set<HtmlTag> getChildren()\n\t{\n\t\tImmutableSet.Builder<HtmlTag> childrenBuilder = ImmutableSet.builder();\n\t\tfor(TreeNode<? extends HtmlTag> child : node.getChildren())\n\t\t{\n\t\t\tchildrenBuilder.add(child.getValue());\n\t\t}\n\t\treturn childrenBuilder.build();\n\t}",
"@Override\n\tpublic GroupSet getAllGroups() throws DataBackendException\n {\n GroupSet groupSet = new GroupSet();\n Connection con = null;\n\n try\n {\n \n con = Transaction.begin();\n\n List<Group> groups = doSelectAllGroups(con);\n\n for (Group group : groups)\n {\n // Add dependent objects if they exist\n ((TorqueAbstractSecurityEntity)group).retrieveAttachedObjects(con, getLazyLoading());\n\n groupSet.add(group);\n }\n\n Transaction.commit(con);\n con = null;\n }\n catch (TorqueException e)\n {\n throw new DataBackendException(\"Error retrieving group information\", e);\n }\n finally\n {\n if (con != null)\n {\n Transaction.safeRollback(con);\n }\n }\n\n return groupSet;\n }",
"public List getChildren(iNamedObject no)\n\t{\n\t\tif (no instanceof iNamedGroup)\n\t\t{\n\t\t\treturn ((iNamedGroup) no).getChildrenList();\n\t\t}\n\t\treturn emptyVec;\n\t}",
"<T> Collection<T> getXMLTempGroups(Object groupID) throws Exception;",
"public ResultMap<BaseNode> listChildren(Pagination pagination);",
"public SeleniumQueryObject children() {\n\t\treturn ChildrenFunction.children(this, elements);\n\t}",
"public static NodeList getChildElements(Node root, String name)\n {\n // NodeList nodes = root.getElementsByTagName(name);\n final java.util.List<Node> elemList = new Vector<Node>();\n NodeList childNodes = root.getChildNodes();\n for (int i = 0; i < childNodes.getLength(); i++) {\n Node n = childNodes.item(i);\n if (n.getNodeType() == Node.ELEMENT_NODE) {\n if ((name == null) || n.getNodeName().equalsIgnoreCase(name)) {\n //Print.logInfo(\"Found '\"+name+\"', type=\" + n.getNodeType());\n elemList.add(n);\n }\n }\n }\n return new NodeList() {\n public int getLength() {\n return elemList.size();\n }\n public Node item(int index) {\n return ((index >= 0) && (index < elemList.size()))? elemList.get(index) : null;\n }\n };\n }",
"public List<PafDimMember> getChildren() {\r\n\t\t\r\n\t\tList<PafDimMember> childList = null;\r\n\t\t\r\n\t\t// If no children are found, return empty array list\r\n\t\tif (children == null) {\r\n\t\t\tchildList = new ArrayList<PafDimMember>();\r\n\t\t} else {\r\n\t\t\t// Else, return pointer to children\r\n\t\t\tchildList = children;\r\n\t\t}\r\n\t\treturn childList;\r\n\t}",
"@Override\r\n\tpublic ArrayList<ListItem> getAllCheckedItemsByGroup(Group g) {\r\n\r\n\t\treturn null;\r\n\t}",
"public abstract List<Node> getChildNodes();",
"public Vector<Node> getChildren(){\n\t\t Vector<Node> children = new Vector<>(0);\n\t\t Iterator<Link> l= myLinks.iterator();\n\t\t\twhile(l.hasNext()){\n\t\t\t\tLink temp=l.next();\n\t\t\t\tif(temp.getM().equals(currNode))\n\t\t\t\t children.add(temp.getN());\n\t\t\t\tif(temp.getN().equals(currNode))\n\t\t\t\t children.add(temp.getM());\n\t\t\t}\n\t\treturn children;\n\t}",
"@Override\r\n public List<Element> findElements()\r\n {\n return null;\r\n }",
"public IStatus[] getChildren() {\n\t\treturn adaptee.getChildren();\n\t}",
"public Enumeration enumerateChildren() {\n return this.children.elements();\n }",
"private List<MutateOperation> removeDescendantsAndFilter(String resourceName) {\n List<MutateOperation> operations = new ArrayList<>();\n\n if (this.parentsToChildren.containsKey(resourceName)) {\n Set<String> children = parentsToChildren.get(resourceName);\n for (String child : children) {\n // Recursively adds operations to the return value that remove each of the child nodes of\n // the current node from the tree.\n operations.addAll(removeDescendantsAndFilter(child));\n }\n }\n\n // Creates and adds an operation to the return value that will remove the current node from\n // the tree.\n AssetGroupListingGroupFilterOperation operation =\n AssetGroupListingGroupFilterOperation.newBuilder().setRemove(resourceName).build();\n operations.add(\n MutateOperation.newBuilder().setAssetGroupListingGroupFilterOperation(operation).build());\n return operations;\n }",
"@Override\n public ArrayList<Node> getAllNodes() {\n return getAllNodesRecursive(root);\n\n }",
"protected Set<?> _getChildrenNames(Fqn fqn) throws Exception\n {\n Set cn;\n synchronized (this)\n {\n out.reset();\n out.writeByte(TcpCacheOperations.GET_CHILDREN_NAMES);\n out.writeObject(fqn);\n out.flush();\n Object retval = in.readObject();\n if (retval instanceof Exception)\n {\n throw (Exception) retval;\n }\n cn = (Set) retval;\n }\n\n // the cache loader contract is a bit different from the cache when it comes to dealing with childrenNames\n if (cn.isEmpty()) return null;\n return cn;\n }",
"public ReadOnlyIterator<ContextNode> getAllLeafContextNodes();",
"private void expandAll()\r\n\t{\r\n\t\tint count = listAdapter.getGroupCount();\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tmyList.expandGroup(i);\r\n\t\t}\r\n\t}",
"private List<MongoElement> elementsUnder (String documentName) {\n List<MongoElement> elements = new ArrayList<>();\n\n genElements.forEach(consumer -> {\n if (consumer.parent.equals(documentName))\n elements.add(consumer);\n });\n\n return elements;\n }",
"default boolean hasChildren() {\n return iterator().hasNext();\n }",
"public Set<Comparable> \n getChildKeys() \n {\n return Collections.unmodifiableSet(pChildren.keySet()); \n }",
"Collection getForeignKeysInGroup(Object groupID) throws Exception;",
"private Vector getGroupItems() {\n return protocol.getGroupItems();\n }",
"List getElementIDsInGroupID(Object groupID) throws Exception;",
"public LinkedList<ApfsElement> getChildren() {\n return this.ApfsChildren;\n }",
"static ArrayList<Element> getChildElements(Element element) {\n ArrayList<Element> result = new ArrayList<Element>();\n for (Node child = element.getFirstChild();\n child != null;\n child = child.getNextSibling())\n if (child.getNodeType() == Node.ELEMENT_NODE)\n result.add((Element)child);\n return result;\n }",
"Map<String, ExternalIdentityRef> getDeclaredGroupRefs(ExternalIdentityRef ref, String dn) throws ExternalIdentityException {\n if (!isMyRef(ref)) {\n return Collections.emptyMap();\n }\n String searchFilter = config.getMemberOfSearchFilter(dn);\n\n LdapConnection connection = null;\n SearchCursor searchCursor = null;\n try {\n // Create the SearchRequest object\n SearchRequest req = new SearchRequestImpl();\n req.setScope(SearchScope.SUBTREE);\n String idAttribute = config.getGroupConfig().getIdAttribute();\n req.addAttributes(idAttribute == null? SchemaConstants.NO_ATTRIBUTE : idAttribute);\n req.setTimeLimit((int) config.getSearchTimeout());\n req.setBase(new Dn(config.getGroupConfig().getBaseDN()));\n req.setFilter(searchFilter);\n\n log.debug(\"getDeclaredGroupRefs: using SearchRequest {}.\", req);\n\n Map<String, ExternalIdentityRef> groups = new HashMap<>();\n DebugTimer timer = new DebugTimer();\n connection = connect();\n timer.mark(MARKER_CONNECT);\n\n searchCursor = connection.search(req);\n timer.mark(\"search\");\n while (searchCursor.next()) {\n Response response = searchCursor.get();\n if (response instanceof SearchResultEntry) {\n Entry resultEntry = ((SearchResultEntry) response).getEntry();\n ExternalIdentityRef groupRef = new ExternalIdentityRef(resultEntry.getDn().toString(), this.getName());\n groups.put(groupRef.getId(), groupRef);\n }\n }\n timer.mark(\"iterate\");\n log.debug(\"getDeclaredGroupRefs: search below {} with {} found {} entries. {}\",\n config.getGroupConfig().getBaseDN(), searchFilter, groups.size(), timer);\n\n return groups;\n } catch (Exception e) {\n throw error(e, \"Error during ldap membership search.\");\n } finally {\n closeSearchCursor(searchCursor);\n disconnect(connection);\n }\n }",
"public List<Element> getChildElements() {\n return getChildNodes().stream().filter(n -> n instanceof Element)\n .map(n -> (Element) n).collect(Collectors.toUnmodifiableList());\n }",
"@Override\n\t\tpublic List<? extends IObject> getChildren() {\n\t\t\tif (!this.hasChildren()) {\n\t\t\t\treturn new ArrayList<>();\n\t\t\t}\n\t\t\tIterator<IFolder> subfolders = this.folder.subfolder();\n\t\t\treturn Lists.transform(ImmutableList.copyOf(subfolders), new Function<IFolder, FolderTreeObject>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic FolderTreeObject apply(IFolder input) {\n\t\t\t\t\treturn new FolderTreeObject(input, FolderTreeObject.this.rootFolder);\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public ArrayList<Excursion> fetchEntries() {\n ArrayList<Excursion> entries = new ArrayList<Excursion>();\n\n Cursor cursor = db.query(ExcursionSQLiteHelper.TABLE_EXCURSIONS,\n allColumns,\n null,\n null,\n null,\n null,\n null);\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n Excursion mIL = cursorToExcursion(cursor);\n Log.d(TAG, \"get IL = \" + cursorToExcursion(cursor).toString());\n entries.add(mIL);\n cursor.moveToNext();\n }\n // Make sure to close the cursor\n cursor.close();\n return entries;\n }",
"private List<View> getAllChildrenBFS(View v) {\n List<View> visited = new ArrayList<View>();\n List<View> unvisited = new ArrayList<View>();\n unvisited.add(v);\n\n while (!unvisited.isEmpty()) {\n View child = unvisited.remove(0);\n visited.add(child);\n if (!(child instanceof ViewGroup)) continue;\n ViewGroup group = (ViewGroup) child;\n final int childCount = group.getChildCount();\n for (int i=0; i<childCount; i++) unvisited.add(group.getChildAt(i));\n }\n return visited;\n }",
"public Set<Loop> getChildren(Loop lp) {\n\t\tif (children.containsKey(lp)) {\n\t\t\treturn children.get(lp);\n\t\t} else {\n\t\t\treturn new LinkedHashSet<Loop>();\n\t\t}\n\t}",
"@Override\n public synchronized Enumeration elements() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.elements();\n }",
"public void resetDescendants() {\n MapleFamilyCharacter mfc = getMFC(leaderid);\n if (mfc != null) {\n mfc.resetDescendants(this);\n }\n bDirty = true;\n }",
"public Iterator<ParseTreeNode> children() {\r\n if ((_children == null) || (_children.size() == 0)) {\r\n return NULL_ITERATOR;\r\n }\r\n return _children.iterator();\r\n }",
"public abstract Iterator getCascadableChildrenIterator(EventSource session, CollectionType collectionType, Object collection);",
"Node[] getChildren(Node node);",
"public Enumeration<Node> children() { return null; }",
"public Set<TopLevel> getMembers() {\n\t\tSet<TopLevel> result = new HashSet<>();\n\t\tfor (URI memberURI : members) {\n\t\t\tTopLevel member = this.getSBOLDocument().getTopLevel(memberURI);\n\t\t\tif(member != null) {\n\t\t\t\tresult.add(member);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public List getChildren(String name) {\n List elements = new ArrayList();\n NodeList nodes = element.getChildNodes();\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n if ((node.getNodeType() == Node.ELEMENT_NODE) && node.getNodeName().equals(name)) {\n elements.add(new Element((org.w3c.dom.Element)node));\n }\n }\n\n return elements;\n }",
"private Collection getAllOwnedPermissions(OpGroup group) {\r\n Set ownedPermissions = new HashSet(group.getOwnedPermissions());\r\n for (Iterator iterator = group.getSuperGroupAssignments().iterator(); iterator.hasNext();) {\r\n OpGroupAssignment assignment = (OpGroupAssignment) iterator.next();\r\n ownedPermissions.addAll(getAllOwnedPermissions(assignment.getSuperGroup()));\r\n }\r\n return ownedPermissions;\r\n }",
"public Collection<GlobalIdEntry> getAllEntries();",
"int getChildrenCount(int groupPosition);",
"public List<PartialPath> getAllStorageGroupPaths() {\n List<PartialPath> res = new ArrayList<>();\n Deque<IMNode> nodeStack = new ArrayDeque<>();\n nodeStack.add(root);\n while (!nodeStack.isEmpty()) {\n IMNode current = nodeStack.pop();\n if (current.isStorageGroup()) {\n res.add(current.getPartialPath());\n } else {\n nodeStack.addAll(current.getChildren().values());\n }\n }\n return res;\n }",
"@Override\r\n\tpublic List<Menu> selAll() {\n\t\tList<Menu> list=mapper.selAll();\r\n\t\tfor(Menu menu:list){\r\n\t\t\tList<Menu> listChildren=mapper.selByPid(menu.getId());\r\n\t\t\tfor(Menu child:listChildren){\r\n\t\t\t\tAttributes att=new Attributes();\r\n\t\t\t\tatt.setFilename(child.getFilename());\r\n\t\t\t\tchild.setAttributes(att);\r\n\t\t\t}\r\n\t\t\tmenu.setChildren(listChildren);\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"private List<String> getClassesInPackage(String packageUniqueName) {\n List<String> result = new ArrayList<String>();\n if (theModel.packages.containsKey(packageUniqueName)){\n \tTreeSet<String> children = theModel.packages.get(packageUniqueName).children;\n \tif ((children != null)){\n \t\tfor (String uniqueName : children){\n \t\t\tFamixClass foundClass = theModel.classes.get(uniqueName);\n \t\t\tif (foundClass != null){\n \t\t\t\tresult.add(uniqueName);\n \t\t\t\tif (foundClass.hasInnerClasses){\n \t\t\t\t\tresult.addAll(foundClass.children);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n }\n return result;\n }",
"private static void searchchildren(String keyword, Individual root, ListView<Individual> list) {\n\t\tif(root.getName().toLowerCase().contains(keyword.toLowerCase())){\n\t\t\t//System.out.println(root.getInfo());\n\t\t\tlist.getItems().add(root);\n\t\t\thits++;\n\t\t}\n\t\tif(root.getChildren()!=null){\n\t\t\tList<Individual> children = root.getChildren();\n\t\t\tfor(Individual e: children){\n\t\t\t\tsearchchildren(keyword, e, list);\n\t\t\t}\n\t\t}\n\t}",
"public Collection getDescendantClasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;",
"public List<INode> getAllNodes();",
"@Override\n public ObjectInFolderList getChildren(String repositoryId, String folderId, String filter, String orderBy,\n Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter,\n Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {\n return getEloCmisRepository(repositoryId, extension)\n .getChildren(folderId, filter, orderBy,\n includeAllowableActions, includeRelationships, renditionFilter,\n includePathSegment, maxItems, skipCount);\n }",
"public void inOrderTraverseRecursive();",
"public List<SaveGameNode> getAllChilden(String name) {\r\n List<SaveGameNode> list = new ArrayList();\r\n list.addAll(this.children.stream().filter(child -> child.equals(name)).collect(Collectors.toList()));\r\n return list;\r\n }",
"public List<GroupInfoBean> loadAllDeepFromCursor(Cursor cursor) {\n int count = cursor.getCount();\n List<GroupInfoBean> list = new ArrayList<GroupInfoBean>(count);\n \n if (cursor.moveToFirst()) {\n if (identityScope != null) {\n identityScope.lock();\n identityScope.reserveRoom(count);\n }\n try {\n do {\n list.add(loadCurrentDeep(cursor, false));\n } while (cursor.moveToNext());\n } finally {\n if (identityScope != null) {\n identityScope.unlock();\n }\n }\n }\n return list;\n }",
"public List<Contact> getContactsInGroup() {\r\n\t\t/**\r\n\t\t * re-fresh the group attribute by re-getting the group object in the\r\n\t\t * database to keep updated all modifications made in group before.\r\n\t\t */\r\n\t\tthis.group = this.groupEjb.getGroupById(this.getGroupId());\r\n\t\treturn this.groupEjb.getAllContactsInGroup(this.group);\r\n\t}",
"public List<NamespaceNode> getChildNodes() {\n return childNodes;\n }",
"public static List<RequireGroup> retrieveAllRequireGroups(final Subject subject) {\r\n\r\n // # grouper.requireGroup.name.0 = ref:require\r\n // # grouper.requireGroup.allowedToUse.0 = ref:requireCanUse\r\n\r\n final GrouperConfig grouperConfig = GrouperConfig.retrieveConfig();\r\n \r\n final List<RequireGroup> results = new ArrayList<RequireGroup>();\r\n\r\n GrouperSession.internal_callbackRootGrouperSession(new GrouperSessionHandler() {\r\n \r\n public Object callback(GrouperSession grouperSession) throws GrouperSessionException {\r\n for (int i=0;i<100;i++) {\r\n\r\n String requireGroupNameKey = \"grouper.requireGroup.name.\" + i;\r\n\r\n if (grouperConfig.containsKey(requireGroupNameKey)) {\r\n\r\n RequireGroup requireGroup = new RequireGroup();\r\n requireGroup.setName(grouperConfig.propertyValueString(requireGroupNameKey));\r\n\r\n if (StringUtils.isBlank(requireGroup.getName())) {\r\n continue;\r\n }\r\n \r\n String requireAllowedGroupKey = \"grouper.requireGroup.allowedToUse.\" + i;\r\n \r\n if (grouperConfig.containsKey(requireAllowedGroupKey)) {\r\n final String requireGroupName = grouperConfig.propertyValueString(requireGroupNameKey);\r\n \r\n // if controlling who can use\r\n if (!StringUtils.isBlank(requireGroupName)) {\r\n if (subject != null && !PrivilegeHelper.isWheelOrRoot(subject)) {\r\n Group requireGroupAllowedToUse = GroupFinder.findByName(grouperSession, requireGroupName, true);\r\n \r\n //if the current subject is not in the group, then not allowed\r\n if (!requireGroupAllowedToUse.hasMember(subject)) {\r\n continue;\r\n }\r\n }\r\n requireGroup.setAllowedToUseGroup(requireGroupName);\r\n }\r\n }\r\n Group requireGroupGroup = GroupFinder.findByName(grouperSession, requireGroup.getName(), true);\r\n requireGroup.setRequireGroup(requireGroupGroup);\r\n results.add(requireGroup);\r\n }\r\n }\r\n return null;\r\n }\r\n });\r\n \r\n if (GrouperUtil.length(results) > 1) {\r\n Collections.sort(results, new Comparator<RequireGroup>() {\r\n\r\n public int compare(RequireGroup o1, RequireGroup o2) {\r\n if (o1 == o2) {\r\n return 0;\r\n }\r\n if (o1 == null) {\r\n return 1;\r\n }\r\n if (o2 == null) {\r\n return -1;\r\n }\r\n return o1.getName().compareTo(o2.getName());\r\n \r\n }\r\n });\r\n }\r\n \r\n return results;\r\n }",
"public ReadOnlyIterator<Relation> getAllRelations();",
"protected void recursivelyGetInnerTypes(Set<Type> allInnerTypes) {\n Collection<Type> currentInnerTypes = getInnerTypes().values();\n allInnerTypes.addAll(currentInnerTypes);\n for (Type type : currentInnerTypes) {\n type.recursivelyGetInnerTypes(allInnerTypes);\n }\n }",
"public NodeList getActiveChildrenAt(float instant) {\n ArrayList<Node> activeChildren = new ArrayList<Node>();\n NodeList children = getTimeChildren();\n int childrenLen = children.getLength();\n for (int i = 0; i < childrenLen; ++i) {\n double maxOffset = 0.0;\n boolean active = false;\n ElementTime child = (ElementTime) children.item(i);\n\n TimeList beginList = child.getBegin();\n int len = beginList.getLength();\n for (int j = 0; j < len; ++j) {\n Time begin = beginList.item(j);\n if (begin.getResolved()) {\n double resolvedOffset = begin.getResolvedOffset() * 1000.0;\n if ((resolvedOffset <= instant) && (resolvedOffset >= maxOffset)) {\n maxOffset = resolvedOffset;\n active = true;\n }\n }\n }\n\n TimeList endList = child.getEnd();\n len = endList.getLength();\n for (int j = 0; j < len; ++j) {\n Time end = endList.item(j);\n if (end.getResolved()) {\n double resolvedOffset = end.getResolvedOffset() * 1000.0;\n if ((resolvedOffset <= instant) && (resolvedOffset >= maxOffset)) {\n maxOffset = resolvedOffset;\n active = false;\n }\n }\n }\n\n if (active) {\n activeChildren.add((Node) child);\n }\n }\n return new NodeListImpl(activeChildren);\n }",
"public Vector<GraphicalLatticeElement> getChildren() {\n\t\tVector<GraphicalLatticeElement> children = new Vector<GraphicalLatticeElement>();\n\t\tif (childrenEdges != null)\n\t\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t\tEdge edge = childrenEdges.elementAt(i);\n\t\t\t\tchildren.add(edge);\n\t\t\t\tchildren.add(edge.getDestination());\n\t\t\t}\n\t\t\n\t\treturn children;\n\t}",
"public String[] listChildren()\n/* */ {\n/* 519 */ int childCount = getChildCount();\n/* 520 */ String[] outgoing = new String[childCount];\n/* 521 */ for (int i = 0; i < childCount; i++) {\n/* 522 */ outgoing[i] = getChild(i).getName();\n/* */ }\n/* 524 */ return outgoing;\n/* */ }",
"public Node[] getChildren() {\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\treturn nextLayer;\n\t}"
]
| [
"0.66667527",
"0.651814",
"0.61438376",
"0.5976416",
"0.5922946",
"0.57233876",
"0.5694823",
"0.5587147",
"0.555422",
"0.5527125",
"0.5496075",
"0.54601175",
"0.5446878",
"0.5441086",
"0.5426277",
"0.54105574",
"0.5399818",
"0.5390043",
"0.538965",
"0.53797036",
"0.5360156",
"0.53056383",
"0.53036565",
"0.53029513",
"0.5294514",
"0.5282267",
"0.52750784",
"0.52707446",
"0.5249438",
"0.52423",
"0.52423",
"0.52423",
"0.5238665",
"0.52227837",
"0.5220551",
"0.52068156",
"0.5201738",
"0.51884556",
"0.5182224",
"0.5180398",
"0.5174008",
"0.51620644",
"0.5157375",
"0.51544666",
"0.5152286",
"0.51465356",
"0.51444876",
"0.5137485",
"0.5128712",
"0.51238257",
"0.512366",
"0.51198584",
"0.5118557",
"0.51157075",
"0.5083125",
"0.5067508",
"0.5066128",
"0.5059283",
"0.5053939",
"0.5050989",
"0.5049415",
"0.50378823",
"0.50317764",
"0.5030017",
"0.50225914",
"0.5009838",
"0.50068575",
"0.5005912",
"0.50030065",
"0.49902877",
"0.49875653",
"0.49864602",
"0.4984233",
"0.4966184",
"0.49576873",
"0.49500206",
"0.4949429",
"0.4940766",
"0.49324068",
"0.4927146",
"0.49255705",
"0.49242407",
"0.49237534",
"0.492342",
"0.49207565",
"0.49199677",
"0.4919362",
"0.49074823",
"0.4902051",
"0.48979142",
"0.48916498",
"0.48905435",
"0.48815352",
"0.48723698",
"0.4868562",
"0.48631042",
"0.48597118",
"0.4857971",
"0.485601",
"0.485485"
]
| 0.6087347 | 3 |
The fixture is taken from the real bank holidays API. | private BankHolidays loadFixture() throws IOException {
String input = ResourceReader.readString("/bank-holidays.json");
return new ObjectMapper().readValue(input, BankHolidays.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected SokobanService getFixture() {\n\t\treturn fixture;\n\t}",
"public Holidays (){\n name= \"Exotic Beach Holiday of a Lifetime\";\n cost = 5000;\n location = \"Fesdu Island, Maldives\";\n type = \"beach\";\n }",
"@Override\r\n\tprotected RJB getFixture() {\r\n\t\treturn (RJB)fixture;\r\n\t}",
"@Override\n\tprotected ParameterDateType getFixture() {\n\t\treturn (ParameterDateType)fixture;\n\t}",
"@Test\n public void teste_setdtFundacao_e_getDtFundacao_correto() {\n String data = fixtureData;\n emp.setDtFundacao(data);\n assertThat(\"Os valores deveriam ser iguais\", DataJoda.cadastraData(data), equalTo(emp.getDtFundacao()));\n }",
"protected Map getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected EntidadRelacionDebil getFixture() {\n\t\treturn (EntidadRelacionDebil)fixture;\n\t}",
"private void mockForecast(RainReport expected) throws ForecastException {\r\n\t\twhen(mockClient.forecast(any())).thenReturn(mockForecast);\r\n\t\twhen(mockForecast.getCurrently()).thenReturn(mockCurrently);\r\n\t\twhen(mockCurrently.getPrecipProbability()).thenReturn(expected.getCurrentProbability());\r\n\t\twhen(mockCurrently.getPrecipIntensity()).thenReturn(expected.getCurrentIntensity());\r\n\t\twhen(mockCurrently.getPrecipType()).thenReturn(expected.getCurrentPrecipitation());\r\n\t\twhen(mockForecast.getDaily()).thenReturn(mockDaily);\r\n\t\tList<DailyDataPoint> dailyData = new ArrayList<>();\r\n\t\tdailyData.add(mockDailyDataPoint);\r\n\t\twhen(mockDaily.getData()).thenReturn(dailyData);\r\n\t\twhen(mockDailyDataPoint.getPrecipProbability()).thenReturn(expected.getChanceOfPrecipitationToday());\r\n\t\twhen(mockDailyDataPoint.getPrecipType()).thenReturn(expected.getTypeOfPrecipitationToday());\r\n\t}",
"public Version getFixture()\n\t\tthrows Exception {\n\t\tif (fixture == null) {\n\t\t\tfixture = new Version(\"1\");\n\t\t}\n\t\treturn fixture;\n\t}",
"void fetchHolidayRentalHousesData();",
"protected FSM getFixture() {\n\t\treturn fixture;\n\t}",
"public static void insertFakeData(Context context) {\n //Get today's normalized date\n long today = CustomDateUtils.normalizeDate(System.currentTimeMillis());\n List<ContentValues> fakeValues = new ArrayList<ContentValues>();\n //loop over 7 days starting today onwards\n for(int i=0; i<6; i++) {\n fakeValues.add(\n FakeDataUtils.createTestWeatherContentValues(\n today - TimeUnit.DAYS.toMillis(i), testNames[i]));\n }\n // Bulk Insert our new weather data into Sunshine's Database\n context.getContentResolver().bulkInsert(\n FoodEntry.CONTENT_URI,\n fakeValues.toArray(new ContentValues[6]));\n }",
"@Before\n public void setUp() {\n this.forecastService = new ForecastAdapter(new Forecast());\n }",
"@Override\n\tprotected FuncionInterna getFixture() {\n\t\treturn (FuncionInterna)fixture;\n\t}",
"@Test\n void deve_retornar_ApiException_quando_for_domingo() {\n TimeModel timeModel = TimeModelStub.getTimeModel();\n timeModel.setDate(\"21-3-2021\");\n Assert.assertThrows(ApiException.class, () -> timeService.checkWeekend(timeModel));\n }",
"@Before\n public void SetUp(){\n calendar = new SystemCalendar(2018,4,25);\n DepartureTime = \"9:00AM\";\n DayOfWeek = calendar.getDayOfMonth();\n }",
"@Override\n\tprotected Guidance getFixture() {\n\t\treturn (Guidance)fixture;\n\t}",
"@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}",
"void loadHolidayRentalHouses(HouseRepositoryContract.GetHolidayRentalHousesCallback callback);",
"private FixtureContract() {}",
"@Test\n\t public void testTodayFinnish(){\n\t\t TimeSource mock = new SystemTimeSource();\n\t\t Watch test = new FinnishWatch(mock);\n\t\t String expected = EnumarationDays.vendredi.getFinnish();\n\t\t String actual = test.getDay(Languages.Finnish);\n\t\t assertEquals(actual, expected);\t\t \n\t }",
"@Test\n public void testCreateAndLoad() throws SQLException {\n CompanyUser user = EntityProvider.getBusinessFactories().getCompanyUserInstance(MySqlUtil.getConnection());\n user.login(\"llama\", \"11235815\");\n user.createEvent(\"New event, best of all!\", new Date(System.currentTimeMillis()+3600*1000*24*31));\n Event event = user.getOpenEvents().get(0);\n event.addOutcome(\"Text outcome 1!\", 2);\n event.addOutcome(\"Text outcome 2!\", 0.35);\n System.out.println(\"Random k: \"+event.getOutcomes().get(1).getCurrentK());\n System.out.println(\"size of events:\"+user.getOpenEvents().size());\n Outcome outcome = event.getOutcomes().get(0);\n SelfUser selfUser = EntityProvider.getBusinessFactories().getSelfUserInstance(MySqlUtil.extractConnection(event));\n selfUser.login(\"llama\", \"11235813\");\n selfUser.createBet(outcome, 100.0);\n System.out.println(\"Total bets: \" + selfUser.getBets().size());\n System.out.println(outcome.getAllBets().get(0).getUser().getFullname());\n \n event.setWinner(outcome);\n }",
"@Test\n void deve_retornar_ApiException_quando_for_sanbado() {\n TimeModel timeModel = TimeModelStub.getTimeModel();\n timeModel.setDate(\"20-3-2021\");\n Assert.assertThrows(ApiException.class, () -> timeService.checkWeekend(timeModel));\n }",
"@Override\n protected void populateHolidays() {\n holidays.put(beginDate(), new Holiday(\"Christmas\", beginDate(), calendar, \"Matthew 1:18-25, Luke 2:1-20\"));\n Calendar holyInnocents = new GregorianCalendar(calendar.getYear() - 1, Calendar.DECEMBER, 28);\n holidays.put(holyInnocents, new Holiday(\"Holy Innocents\", holyInnocents, calendar, \"Matthew 2:13-23\"));\n Calendar epiphany = new GregorianCalendar(calendar.getYear(), Calendar.JANUARY, 6);\n holidays.put(epiphany, new Holiday(\"Epiphany\", epiphany, calendar, \"Matthew 2:1-12\"));\n Calendar presentation = new GregorianCalendar(calendar.getYear(), Calendar.FEBRUARY, 2);\n holidays.put(presentation, new Holiday(\"Presentation\", presentation, calendar, \"Luke 2:21-25\"));\n Calendar annunciation = new GregorianCalendar(calendar.getYear(), Calendar.MARCH, 25);\n if (endDate().compareTo(annunciation) < 0) holidays.put(annunciation, new Holiday(\"Annunciation\", annunciation, calendar, \"Luke 1:26-38\"));\n\n Calendar ashWednesday = (Calendar)holyWeek.beginDate().clone();\n ashWednesday.add(Calendar.DATE, -39);\n holidays.put(ashWednesday, new Holiday(\"Ash Wednesday\", ashWednesday, calendar,\n \"Matthew 3:13-4:11\", \"Mark 1:9-13\", \"Luke 3:21,22, 4:1-13\"));\n\n }",
"@Override\n\tprotected OPMExhibitionLink getFixture() {\n\t\treturn (OPMExhibitionLink)fixture;\n\t}",
"void getForecastInitially(DarkSkyApi api, PlaceWeather weather){\n\n long newWeatherPlaceId = databaseInstance.weatherDao().insertPlaceWeather(weather);\n\n weather.getDaily().setParentPlaceId(newWeatherPlaceId);\n databaseInstance.weatherDao().insertDaily(weather.getDaily());\n\n List<DailyData> dailyData = weather.getDaily().getData();\n\n for(int i = 0; i < dailyData.size(); ++i){\n dailyData.get(i).setParentPlaceId(newWeatherPlaceId);\n dailyData.get(i).setId(\n databaseInstance.weatherDao().insertDailyData(dailyData.get(i))\n );\n }\n\n long currentDayId = dailyData.get(0).getId();\n\n weather.getHourly().setParentDayId(currentDayId);\n databaseInstance.weatherDao().insertHourly(weather.getHourly());\n\n List<HourlyData> hourlyData = weather.getHourly().getData();\n\n for(int i = 0; i < hourlyData.size(); ++i){\n hourlyData.get(i).setParentDayId(currentDayId);\n databaseInstance.weatherDao().insertHourlyData(hourlyData.get(i));\n }\n\n //now load hours of next 7 days initially\n String apiKey = context.getString(R.string.api_key);\n Map<String, String> avoid = new HashMap<>();\n avoid.put(\"units\", \"si\");\n avoid.put(\"lang\", \"en\");\n avoid.put(\"exclude\", \"alerts,daily\");\n\n\n PlaceWeather dayWeather;\n for(int i = 1; i < dailyData.size(); ++i){\n try{\n dayWeather = api.getTimeForecast(apiKey,\n weather.getLatitude(),\n weather.getLongitude(),\n dailyData.get(i).getTime()+1,\n avoid).execute().body();\n }catch (IOException e){\n break;\n }\n\n dayWeather.getHourly().setParentDayId(dailyData.get(i).getId());\n dayWeather.getHourly().setId(\n databaseInstance.weatherDao().insertHourly(dayWeather.getHourly())\n );\n\n hourlyData = dayWeather.getHourly().getData();\n\n for(int j = 0; j < hourlyData.size(); ++j){\n hourlyData.get(j).setParentDayId(dailyData.get(i).getId());\n databaseInstance.weatherDao().insertHourlyData(hourlyData.get(j));\n }\n }\n\n }",
"@Override\n\tprotected ExternalReference getFixture() {\n\t\treturn (ExternalReference)fixture;\n\t}",
"@Before\n public void setUp()throws ParseException{\n this.myFlight = new Flight(12,\"SEA\", \"JFK\", \"05/20/2019\", 100.00);\n }",
"protected JournalStatement getFixture() {\n\t\treturn fixture;\n\t}",
"@Test\n public void shouldCreateEpiDataBurial() {\n assertThat(DatabaseHelper.getEpiDataBurialDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataBurial(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataBurialDao().queryForAll().size(), is(1));\n }",
"@Test\n public void shouldCreateEpiDataTravel() {\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataTravel(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(1));\n }",
"@Test\n\t@When(\"posted with future date information\")\n\tpublic void posted_with_future_date_information() {\n\t\tRestAssured.baseURI = BASE_URL;\n\t\t RequestSpecification request = RestAssured.given();\n\t}",
"protected SaveParameters getFixture() {\n\t\treturn fixture;\n\t}",
"protected ConnectionInfo getFixture() {\r\n\t\treturn fixture;\r\n\t}",
"@Test\n\t public void testDayInFinnish(){\n\t\t TimeSource mock = new MockTimeSource();\n\t\t Watch test = new FinnishWatch(mock);\t\n\t\t String expected = EnumarationDays.mercredi.getFinnish();\n\t\t String actual = test.getDay(Languages.Finnish);\n\t\t assertEquals(actual, expected);\t\t \n\t }",
"protected BPFieldOfActivityAnnotationsRepository getFixture() {\r\n\t\treturn fixture;\r\n\t}",
"@Override\r\n\tprotected INetElement getFixture() {\r\n\t\treturn (INetElement)fixture;\r\n\t}",
"@BeforeClass\n public static void setUp() {\n serviceMock = mock(DefaultMisthYpalService.class);\n String inputFile = \"MisthYpal.json\";\n try {\n String json = FileUtils.readFileFromResource2String(inputFile, Charset.defaultCharset());\n records = gson.fromJson(json, MisthYpal[].class);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n // test data\n when(serviceMock.find(records[0].getKodoikog())).thenReturn(records[0]);\n }",
"@BeforeEach\n public void setUp() {\n incomeDataRepository.save( new IncomeData( null, TAXPAYER_ID, LocalDateTime.of( 2020, 1, 22, 12, 34 ), new BigDecimal( 826 ) ) );\n incomeDataRepository.save( new IncomeData( null, TAXPAYER_ID, LocalDateTime.of( 2020, 2, 10, 13, 48 ), new BigDecimal( 684 ) ) );\n\n // Tax layers:\n // 0-600: 10%\n // 601-1200: 15%\n // 1201-1600: 20%\n // 1601+: 30%\n TaxType type = new TaxType( null, \"Test type\", \"Test Description\" );\n taxTypeRepository.save( type );\n\n // Total paid already for year 2020: 167.85\n taxDataRepository.save( new TaxData( null, TAXPAYER_ID, type, LocalDateTime.of( 2020, 1, 22, 11, 21 ), new BigDecimal( \"67.85\" ) ) );\n taxDataRepository.save( new TaxData( null, TAXPAYER_ID, type, LocalDateTime.of( 2020, 2, 22, 12, 22 ), new BigDecimal( 100 ) ) );\n\n final LocalDateTime validFrom = LocalDateTime.now().minusYears( 1 );\n final LocalDateTime validTo = LocalDateTime.now().plusYears( 1 );\n\n taxLayerRepository.save( new TaxLayer( null, type, new BigDecimal( 10 ), BigDecimal.ZERO, new BigDecimal( 600 ), validFrom, validTo ) );\n taxLayerRepository.save( new TaxLayer( null, type, new BigDecimal( 15 ), new BigDecimal( \"600.01\" ), new BigDecimal( 1200 ), validFrom, validTo ) );\n taxLayerRepository.save( new TaxLayer( null, type, new BigDecimal( 20 ), new BigDecimal( \"1200.01\" ), new BigDecimal( 1600 ), validFrom, validTo ) );\n taxLayerRepository.save( new TaxLayer( null, type, new BigDecimal( 30 ), new BigDecimal( \"1600.01\" ), BigDecimal.valueOf( Integer.MAX_VALUE ), validFrom, validTo ) );\n }",
"protected Axiom getFixture() {\n\t\treturn fixture;\n\t}",
"@Test\r\n public void testifHoliday() {\r\n LocalDate date1 = LocalDate.parse(\"2018-01-12\");\r\n assertTrue(DateUtil.ifHoliday(date1));\r\n\r\n date1 = LocalDate.parse(\"2018-01-14\");\r\n assertFalse(DateUtil.ifHoliday(date1));\r\n }",
"@BeforeEach\r\n\tvoid setUp() throws Exception {\r\n\t\t\r\n\t\tprice=new Price(990.0, 1760.0);\r\n\t\tclassification= new Classification(\"Sport\", \"Tennis\");\r\n\t\tevent= new Event(\"Abierto\", \"17AZvbG62X1NsqR\", \"https://www.ticketmaster.com.mx/abierto-mexicano-de-tenis-miercoles-acapulco-guerrero-03-17-2021/event/140058FF8A8F176F\",\"2021-03-17\" , \"18:00:00\",classification , price);\r\n\t\tevent1= new Event(\"Abierto\", \"17AZvbG62X1NsqR\", \"https://www.ticketmaster.com.mx/abierto-mexicano-de-tenis-miercoles-acapulco-guerrero-03-17-2021/event/140058FF8A8F176F\",\"2021-03-23\" , \"18:00:00\",classification , price);\r\n\t\tevents.set(0, event);\r\n\t\tevents.set(1, event1);\r\n\t\tStato = new State(\"Monterrey\", 403, events );\r\n\t}",
"protected Inconsistency getFixture() {\n\t\treturn fixture;\n\t}",
"protected void setFixture(SokobanService fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"@Test\r\n\tpublic void testGetPastPregnanciesFromInit() {\r\n\t\tList<PregnancyInfo> list;\r\n\t\ttry {\r\n\t\t\tlist = pregnancyData.getRecordsFromInit(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnanciesFromInit(1));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}",
"@Test\n public void testFindByAddress() {\n System.out.println(\" Prueba de metodo findByAddress\");\n HeadquartersDAO dao = HeadquartersFactory.create(Headquarters.class);\n List<Headquarters> lista = dao.findByAddress(\"Cll. 69 #20-36\");\n assertTrue(!lista.isEmpty());\n for (Headquarters headquarters : lista) {\n assertEquals(headquarters.getAddress(), \"Cll. 69 #20-36\");\n }\n }",
"@Test\n void deve_retornar_o_periodo_first_period_in() {\n List<LocalTime> localTimes = new ArrayList<>();\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_IN, response);\n }",
"@Override\n\tprotected BPMNDiagram getFixture() {\n\t\treturn (BPMNDiagram)fixture;\n\t}",
"@Test\n public void destiny2GetHistoricalStatsDefinitionTest() {\n InlineResponse20047 response = api.destiny2GetHistoricalStatsDefinition();\n\n // TODO: test validations\n }",
"@Test\n void getAllCinemaHalls() {\n var resource = new CinemaHallResource();\n var result = (List<CinemaHallDto>) resource.getAllCinemaHalls().getEntity();\n assertNotNull(result);\n }",
"void getHolidayDaysById(long id, AsyncCallback<HolidayDays> callback);",
"protected AddAutoIncrementType getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected UL getFixture() {\n\t\treturn (UL)fixture;\n\t}",
"@Test\n void createEPGModel() throws JsonProcessingException {\n\n ObjectMapper mapper = new ObjectMapper();\n APIUtility apiUtility = new APIUtility();\n\n\n // convert JSON string to `JsonNode` to match input received Spring\n JsonNode node = mapper.readTree(jsonInput);\n\n Map<String, Object> result = mapper.convertValue(node, new TypeReference<Map<String, Object>>(){});\n\n EPGModel epgModel = apiUtility.createEPGModel(result);\n\n // The amount of weekdays present in the data model should be 5, since no program begins airing on friday and tuesday\n assertEquals(5, epgModel.getDays().size());\n assertFalse(epgModel.getDays().containsKey(\"tuesday\"));\n assertFalse(epgModel.getDays().containsKey(\"friday\"));\n\n // Assert each remaining weekday has the correct amount of airing program\n assertEquals(2, epgModel.getDays().get(\"monday\").size());\n assertEquals(3, epgModel.getDays().get(\"wednesday\").size());\n assertEquals(2, epgModel.getDays().get(\"thursday\").size());\n assertEquals(2, epgModel.getDays().get(\"saturday\").size());\n assertEquals(1, epgModel.getDays().get(\"sunday\").size());\n\n }",
"@Override\n\tprotected GridChangeDescription getFixture() {\n\t\treturn (GridChangeDescription)fixture;\n\t}",
"@Override\n\tprotected SubrangoNumerico getFixture() {\n\t\treturn (SubrangoNumerico)fixture;\n\t}",
"@BeforeClass\n\tpublic static void setup() {\n\t\tHotel hotel = new Hotel();\n\t\thotel.setName(\"Hennessy Pub\");\n\t\tfinal DateFormat formatDate = new SimpleDateFormat(\"hh:mm a\");\n\t\tTimeSlot slot = new TimeSlot();\n\t\ttry {\n\t\t\tslot.setEndTime((Date)formatDate.parse(\"2:00 am\"));\n\t\t\tslot.setStartTime((Date)formatDate.parse(\"11:30 am\"));\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tMap<Integer, TimeSlot> timeSlots = new HashMap<>(); \n\t\ttimeSlots.put(1, slot);\n\t\ttimeSlots.put(2, slot);\n\t\ttimeSlots.put(7, slot);\n\t\thotel.setTimeSlotsMap(timeSlots);\n\t\t\n\t\thotelsSampleData.add(hotel);\n\t\t\n\t}",
"protected DatabaseOptions getFixture() {\n\t\treturn fixture;\n\t}",
"@Test\n public void shouldCreatePreviousHospitalization() {\n assertThat(DatabaseHelper.getPreviousHospitalizationDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createPreviousHospitalization(caze);\n\n // Assure that the previous hospitalization has been successfully created\n assertThat(DatabaseHelper.getPreviousHospitalizationDao().queryForAll().size(), is(1));\n }",
"@Override\n protected void populateDomain() {\n // Need to invoke super to create a test user that is responsible for data population \n super.populateDomain();\n \n // Here is how the Test Case universal constants can be set.\n // In this case the notion of now is overridden, which makes it possible to have an invariant system-time.\n // However, the now value should be after AbstractDaoTestCase.prePopulateNow in order not to introduce any date-related conflicts.\n final UniversalConstantsForTesting constants = (UniversalConstantsForTesting) getInstance(IUniversalConstants.class);\n constants.setNow(dateTime(\"2019-10-01 11:30:00\"));\n \n // If the use of saved data population script is indicated then there is no need to proceed with any further data population logic.\n if (useSavedDataPopulationScript()) {\n return;\n }\n \n save(new_(AssetClass.class).setName(\"AC1\").setDesc(\"The first asset class.\"));\n save(new_(AssetClass.class).setName(\"AC2\").setDesc(\"The second asset class.\"));\n }",
"private ColumnGroup getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected Tablet getFixture() {\n\t\treturn (Tablet)fixture;\n\t}",
"@Test\r\n\tpublic void testGetPastPregnancies() {\r\n\t\ttry {\r\n\t\t\tList<PregnancyInfo> list = pregnancyData.getRecords(1);\r\n\t\t\tAssert.assertEquals(list, oic.getPastPregnancies());\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t}",
"@Override\n\tprotected Planilla getFixture() {\n\t\treturn (Planilla)fixture;\n\t}",
"public WeatherDayTest()\n {\n }",
"KitCalculatorsFactory<E> registerHolidays(String calendarName, HolidayCalendar<E> holidaysCalendar);",
"@Test\n public void testGetHotels() throws DatatypeConfigurationException {\n DatatypeFactory df = DatatypeFactory.newInstance();\n XMLGregorianCalendar departureDate = df.newXMLGregorianCalendar(\"2012-11-23\");\n XMLGregorianCalendar arrivalDate = df.newXMLGregorianCalendar(\"2012-12-25\");\n\n testGetHotels(\"Barcelona\", departureDate, arrivalDate, new String[]{\"Superb Hotel\"});\n testGetHotels(\"Vienna\", departureDate, arrivalDate, new String[]{\"Nice Hotel\", \"Passable Hotel\"});\n testGetHotels(\"Zgierz\", departureDate, arrivalDate, new String[]{\"Shitty Hotel\"});\n\n }",
"protected IBodyElementsContainer getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n public void seedData() throws EmployeeCreationException, DepartmentCreationException {\n\n }",
"protected VirtualMachine getFixture() {\r\n\t\treturn fixture;\r\n\t}",
"public void verifyData() {\n\n saveDay();\n\n }",
"@Before\n public void BeforeTestContinent() {\n continent = new Model.Continent(\"Asia\", 5);\n\n }",
"@Test\n\tvoid existDataInDBTest() {\n\t\tparkName = \"Haifa Park\";\n\t\tdate = new Date(120, 2, 1);\n\t\texpected = \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\";\n\t\tresult = ReportsController.getReport(date, reportType, parkName);\n\n\t\tassertEquals(expected, result);\n\n\t}",
"@Before\n\tpublic void setUp() throws ParseException{\n\t\tbc = new Bank_Control();\n\t\tmyDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"1997-03-20\");\n\t}",
"protected OpcDevice getFixture()\n {\n return fixture;\n }",
"@Override\r\n\tprotected AbstractDiagramElement getFixture() {\r\n\t\treturn (AbstractDiagramElement)fixture;\r\n\t}",
"public Array<Fixture> getFixtureList () {\n\t\treturn fixtures;\n\t}",
"private static ContentValues createTestWeatherContentValues(long date, String name) {\n ContentValues testWeatherValues = new ContentValues();\n testWeatherValues.put(FoodContract.FoodEntry.COLUMN_DATE, date);\n// testWeatherValues.put(FoodEntry.COLUMN_NAME, weatherIDs[(int)(Math.random()*10)%5]);\n testWeatherValues.put(FoodEntry.COLUMN_NAME, name);\n return testWeatherValues;\n }",
"@Test\n public void test6FindByHeadquarters() {\n System.out.println(\"Prueba de Headquarters en metodo findByHeadquarters\");\n HeadquartersDAO dao = HeadquartersFactory.create(Headquarters.class);\n List<Headquarters> lista = dao.findByHeadquarters(\"SENA SEDE BARRIO COLOMBIA\");\n assertTrue(!lista.isEmpty());\n for (Headquarters headquarters : lista) {\n assertEquals(headquarters.getNameHeadquarters(),\"SENA SEDE BARRIO COLOMBIA\");\n }\n }",
"public Folder getFixture7()\n\t\tthrows Exception {\n\t\tif (fixture7 == null) {\n\t\t\tfixture7 = new Folder();\n\t\t\tfixture7.setAccount(new Account());\n\t\t\tfixture7.setFullName(\"\");\n\t\t\tfixture7.setName(\"0123456789\");\n\t\t\tfixture7.setParent(new Folder());\n\t\t\tfixture7.setParentFolderId(new Integer(1));\n\t\t}\n\t\treturn fixture7;\n\t}",
"private L getFixture() {\r\n\t\treturn (L)fixture;\r\n\t}",
"@Test\n void getTransactionList() throws JsonProcessingException {\n\n String idAccount = \"14537780\";\n String fromAccountingDate = \"2019-01-01\";\n String toAccountingDate = \"2019-12-01\";\n\n Response response = greetingWebClient.getTransactionList(idAccount, fromAccountingDate, toAccountingDate);\n assertTrue(response.getPayload().getList().size()>0 && response.getStatus().equals(\"OK\"));\n\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testGetExpensesByTypeAndDayInFuture() {\n\tString type = \"DAILY\";\n\tLocalDate date = LocalDate.of(2017, 5, 2);\n\texpenseManager.getExpensesByTypeAndDay(type, date);\n }",
"@Test\n public void getTarjetaPrepagoTest()\n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity resultEntity = tarjetaPrepagoLogic.getTarjetaPrepago(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNumTarjetaPrepago(), resultEntity.getNumTarjetaPrepago());\n Assert.assertEquals(entity.getSaldo(), resultEntity.getSaldo(), 0.001);\n Assert.assertEquals(entity.getPuntos(), resultEntity.getPuntos(),0.001);\n }",
"@Override\n\tprotected SignalArgumentExpression getFixture() {\n\t\treturn (SignalArgumentExpression)fixture;\n\t}",
"@Test\n public void getterDayOfWeek(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n Assert.assertEquals(25,entry.getDayOfWeek());\n }",
"@Test\r\n\tpublic void testGetTraineeUpToWeekLineChart() throws Exception {\r\n\t\tlog.debug(\"GetTraineeUpToWeekLineChart Test\");\r\n\t\t\r\n\t\tgiven().spec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON)\r\n\t\t.when().get(baseUrl + \"all/reports/batch/{batchId}/week\"\r\n\t\t\t\t+ \"/{week}/trainee/{traineeId}/line-trainee-up-to-week\", \r\n\t\t\t\ttraineeValue[0], traineeValue[2], traineeValue[1])\r\n\r\n\t\t.then().assertThat().statusCode(200);\r\n\t}",
"@Test\r\n\tpublic void testInvalidEndDate() {\r\n\t\ttry {\r\n\t\t\tfinal BazaarManager manager = BazaarManager.newInstance();\r\n\t\t\tfinal Item item = manager.newItem(\"testInvalidEndDate\", \"testInvalidEndDate\", manager.findRootCategory());\r\n\t\t\tfinal Calendar startDate = Calendar.getInstance();\r\n\t\t\tstartDate.setWeekDate(2020, 2, DayOfWeek.MONDAY.getValue());\r\n\t\t\tfinal Calendar endDate = Calendar.getInstance();\r\n\t\t\tendDate.setWeekDate(2020, 1, DayOfWeek.MONDAY.getValue());\r\n\t\t\tfinal Bazaar bazaar = manager.newBazaar(item, startDate, endDate);\r\n\t\t\tbazaar.persist();\r\n\t\t}\r\n\t\tcatch (final BazaarExpiredException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t}\r\n\t\tcatch (final BazaarException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t}\r\n\r\n\t}",
"public void loadForecastData(Callback<Forecast> callback)\n\t{\n RestAdapter restAdapter = new RestAdapter.Builder().setEndpoint(API_URL).build();\n \n WeatherService service = restAdapter.create(WeatherService.class);\n service.getForecastAsync(\"929d214ed2dfd3705ff1ee66c1d5c3be\",\"37.8267\",\"-122.423\", callback);\n \n\t}",
"@Test\n public void testFindRewardForDiningNoDining() {\n Calendar calendar = Calendar.getInstance();\n Date date = calendar.getTime();\n Dining dining = new Dining((float) 100.0, \"1234123412341234\", \"0123456789\", date);\n\n RewardConfirmation confirmation = repository.findConfirmationFor(dining);\n Assert.assertNull(\"confirmation should not found for dining=\" + dining + \":confirmation=\" + confirmation,\n confirmation);\n }",
"public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}",
"@Before\n public void antesDeTestear(){\n this.creditosHaberes = new Ingreso();\n this.creditosHaberes.setMonto(10000.0);\n this.creditosHaberes.setFecha(LocalDate.of(2020,9,25));\n\n this.donacion = new Ingreso();\n this.donacion.setMonto(500.0);\n this.donacion.setFecha(LocalDate.of(2020,9,26));\n\n\n this.compraUno = new Egreso();\n this.compraUno.setFecha(LocalDate.of(2020,9,26));\n this.compraUno.setMonto(1000.0);\n\n this.compraDos = new Egreso();\n this.compraDos.setFecha(LocalDate.of(2020,9,27));\n this.compraDos.setMonto(2500.0);\n\n this.compraTres = new Egreso();\n this.compraTres.setFecha(LocalDate.of(2020,9,23));\n this.compraTres.setMonto(10000.0);\n\n ingresos.add(donacion);\n ingresos.add(creditosHaberes);\n\n egresos.add(compraUno);\n egresos.add(compraDos);\n egresos.add(compraTres);\n\n /***************Creacion de condiciones*************/\n this.condicionEntreFechas = new CondicionEntreFechas();\n\n this.condicionValor = new CondicionValor();\n\n this.condicionSinIngresoAsociado = new CondicionSinIngresoAsociado();\n /***************Creacion criterio*******************/\n this.ordenValorPrimeroEgreso = new OrdenValorPrimeroEgreso();\n this.ordenValorPrimeroIngreso = new OrdenValorPrimeroIngreso();\n this.ordenFecha = new Fecha();\n this.mix = new Mix();\n\n\n /***************Creacion vinculador*****************/\n vinculador = Vinculador.instancia();\n vinculador.addCondiciones(this.condicionValor);\n vinculador.addCondiciones(this.condicionEntreFechas);\n vinculador.addCondiciones(this.condicionSinIngresoAsociado);\n }",
"@Test\r\n\tpublic void testGetBatchWeekTraineeBarChart() throws Exception {\r\n\t\tlog.debug(\"GetBatchWeekTraineeBarChart Test\");\r\n\t\t\r\n\t\tgiven().spec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON)\r\n\t\t.when().get(baseUrl + \"all/reports/batch/{batchId}/overall/trainee/{traineeId}/bar-batch-overall-trainee\", \r\n\t\t\t\ttraineeValue[0], traineeValue[1])\r\n\t\t.then().assertThat().statusCode(200);\r\n\t}",
"protected OptionsType getFixture() {\n\t\treturn fixture;\n\t}",
"@Override\n\tprotected Association getFixture() {\n\t\treturn (Association)fixture;\n\t}",
"@Test\r\n public void testSetDataSprzedazy() {\r\n System.out.println(\"setDataSprzedazy\");\r\n Date dataSprzedazy = null;\r\n Faktura instance = new Faktura();\r\n instance.setDataSprzedazy(dataSprzedazy);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public Forecastday() {\n }",
"@Test\n @DataSet(value = \"datasets/customer_info.yml\", disableConstraints = true)\n public void shouldSeedCustomer() {\n assertThat(customerRespository).isNotNull();\n CustomerInfo tweet = customerRespository.findCustomerByCustomerId(\"1\");\n assertThat(tweet).isNotNull();\n\n }",
"@Test()\n public void testGetExpensesByTypeAndDay() {\n\tString type = \"DAILY\";\n\tLocalDate date = LocalDate.of(2015, 12, 2);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndDay(type, date);\n\tassertEquals(1, expensesForDisplay.size(), 0);\n }",
"public void executeFixture() {\n new GetFixture().execute();\n }"
]
| [
"0.5993881",
"0.58137345",
"0.57257855",
"0.5630868",
"0.56136614",
"0.55695444",
"0.5462878",
"0.5456696",
"0.54392827",
"0.5428593",
"0.54212993",
"0.5410833",
"0.5400015",
"0.5389011",
"0.5348048",
"0.53432554",
"0.53056055",
"0.5281751",
"0.5274528",
"0.527093",
"0.52461207",
"0.5244594",
"0.5219169",
"0.5212784",
"0.52118564",
"0.5209355",
"0.5202707",
"0.5195717",
"0.5194117",
"0.5189495",
"0.51714337",
"0.5156693",
"0.5155358",
"0.51465136",
"0.5139354",
"0.5117311",
"0.5107088",
"0.510685",
"0.5104446",
"0.5102254",
"0.50953716",
"0.50803053",
"0.5059459",
"0.5056922",
"0.5049448",
"0.5049282",
"0.50442183",
"0.50410646",
"0.50352395",
"0.50290835",
"0.50241643",
"0.5020242",
"0.5019643",
"0.5016565",
"0.5015477",
"0.5008616",
"0.50075483",
"0.5002192",
"0.5000057",
"0.49915388",
"0.49901098",
"0.49872658",
"0.49861318",
"0.4982811",
"0.4979439",
"0.49598166",
"0.49574172",
"0.49573955",
"0.4952898",
"0.4950451",
"0.49500728",
"0.49373105",
"0.49370128",
"0.49268118",
"0.49267173",
"0.49191886",
"0.4915154",
"0.49132705",
"0.4912255",
"0.4911463",
"0.49110368",
"0.49090022",
"0.4884747",
"0.48843354",
"0.48799062",
"0.48774663",
"0.48748505",
"0.48708406",
"0.4868281",
"0.48651767",
"0.48648655",
"0.48595288",
"0.4858504",
"0.4856762",
"0.48537698",
"0.48458335",
"0.48359013",
"0.48356357",
"0.48354372",
"0.4833641"
]
| 0.75784343 | 0 |
/ Google Play services can resolve some errors it detects. If the error has a resolution, try sending an Intent to start a Google Play services activity that can resolve error. | @Override
public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {
if (connectionResult.hasResolution()) {
try {
// Start an Activity that tries to resolve the error
connectionResult.startResolutionForResult(getActivity(), CONNECTION_FAILURE_RESOLUTION_REQUEST);
/*
* Thrown if Google Play services canceled the original
* PendingIntent
*/
} catch (IntentSender.SendIntentException e) {
// Log the error
e.printStackTrace();
}
} else {
/*
* If no resolution is available, display a dialog to the
* user with the error.
*/
Log.e("Error", "Location services connection failed with code " + connectionResult.getErrorCode());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\t/*\n\t\t * Google Play services can resolve some errors it detects. If the error\n\t\t * has a resolution, try sending an Intent to start a Google Play\n\t\t * services activity that can resolve error.\n\t\t */\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(this,\n\t\t\t\t\t\tCONNECTION_FAILURE_RESOLUTION_REQUEST);\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original\n\t\t\t\t * PendingIntent\n\t\t\t\t */\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\"Sorry. Location services not available to you\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}",
"public void onConnectionFailed(ConnectionResult connectionResult) {\r\n /*\r\n * Google Play services can resolve some errors it detects.\r\n * If the error has a resolution, try sending an Intent to\r\n * start a Google Play services activity that can resolve\r\n * error.\r\n */\r\n if (connectionResult.hasResolution()) {\r\n try {\r\n // Start an Activity that tries to resolve the error\r\n connectionResult.startResolutionForResult(\r\n this,\r\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\r\n /*\r\n * Thrown if Google Play services canceled the original\r\n * PendingIntent\r\n */\r\n } catch (IntentSender.SendIntentException e) {\r\n // Log the error\r\n e.printStackTrace();\r\n }\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Sorry. Location services not available to you\", Toast.LENGTH_LONG).show();\r\n }\r\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(this, 9000);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n\t\t\tLog.i(\"LOCATION\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n\t\t}\n\t}",
"public void showGoogleErrorDialog(ConnectionResult connectionResult) {\n try {\n // Create a fragment for the error dialog\n connectionResult.startResolutionForResult(this, GoogleAPIConnectionConstants.REQUEST_RESOLVE_ERROR);\n }\n catch (IntentSender.SendIntentException e) {\n Log.e(MainActivity.TAG,\"SendIntentException occurred.\");\n checkGoogleApiAvailability();\n }\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\n\t\t/*\n\t\t * Google Play services can resolve some errors it detects.\n\t\t * If the error has a resolution, try sending an Intent to\n\t\t * start a Google Play services activity that can resolve\n\t\t * error.\n\t\t */\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\tLocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original\n\t\t\t\t * PendingIntent\n\t\t\t\t */\n\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n\t\t\t// If no resolution is available, display a dialog to the user with the error.\n\t\t\tshowErrorDialog(connectionResult.getErrorCode());\n\t\t}\n\t}",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n\n /*\n * Google Play services can resolve some errors it detects.\n * If the error has a resolution, try sending an Intent to\n * start a Google Play services activity that can resolve\n * error.\n */\n if (connectionResult.hasResolution()) {\n\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(activity,\n \t\tLocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n\n /*\n * If no resolution is available, put the error code in\n * an error Intent and broadcast it back to the main Activity.\n * The Activity then displays an error dialog.\n * is out of date.\n */\n } else {\n\n Intent errorBroadcastIntent = new Intent(LocationUtils.ACTION_CONNECTION_ERROR);\n errorBroadcastIntent.addCategory(LocationUtils.CATEGORY_LOCATION_SERVICES)\n .putExtra(LocationUtils.EXTRA_CONNECTION_ERROR_CODE,\n connectionResult.getErrorCode());\n LocalBroadcastManager.getInstance(activity).sendBroadcast(errorBroadcastIntent);\n }\n }",
"private void resolveSignInError() {\n if (mConnectionResult.hasResolution()) {\n try {\n mIntentInProgress = true;\n mConnectionResult.startResolutionForResult(this, RC_SIGN_IN);\n } catch (SendIntentException e) {\n mIntentInProgress = false;\n mGoogleApiClient.connect();\n }\n }\n }",
"private void resolveSignInError() {\n if (mConnectionResult.hasResolution()) {\n try {\n mIntentInProgress = true;\n mConnectionResult.startResolutionForResult(getActivity(), RC_SIGN_IN);\n } catch (SendIntentException e) {\n mIntentInProgress = false;\n mGoogleApiClient.connect();\n }\n }\n }",
"private void resolveSignInError() {\n if (mConnectionResult.hasResolution()) {\n try {\n mIntentInProgress = true;\n mConnectionResult.startResolutionForResult(activity, RC_SIGN_IN);\n } catch (IntentSender.SendIntentException e) {\n mIntentInProgress = false;\n mGoogleApiClient.connect();\n }\n }\n }",
"private void resolveSignInError() {\n if (mConnectionResult.hasResolution()) {\n try {\n mIntentInProgress = true;\n mConnectionResult.startResolutionForResult(this, RC_SIGN_IN);\n } catch (IntentSender.SendIntentException e) {\n mIntentInProgress = false;\n mGoogleApiClient.connect();\n }\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }",
"@Override public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\",\n \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n // Thrown if Google Play services canceled the original PendingIntent\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /* If no resolution is available, display a dialog to the\n * user with the error. */\n Log.i(LOG_TAG, \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(\n this,\n LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n\n } catch (IntentSender.SendIntentException e) {\n\n // Log the error\n e.printStackTrace();\n }\n } else {\n\n // If no resolution is available, display a dialog to the user with the error.\n showErrorDialog(connectionResult.getErrorCode());\n }\n }",
"private boolean checkPlayServices()\n {\n\tint resultCode=-5000;\n\ttry {\n\t\tresultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\tif (resultCode != ConnectionResult.SUCCESS)\n\t{\n\t if (GooglePlayServicesUtil.isUserRecoverableError(resultCode))\n\t {\n\t \tLog.i(Globals.TAG, \"dialog gorunecek\");\n\t \tGooglePlayServicesUtil.getErrorDialog(resultCode, this, PLAY_SERVICES_RESOLUTION_REQUEST).show();\n\t \tLog.i(Globals.TAG, \"dialog kapandi\");\n\t }\n\t else\n\t {\n\t\t\tLog.i(Globals.TAG, \"This device is not supported.\");\n\t\t\tint RQS_GooglePlayServices = 1;\n\t\t\t GooglePlayServicesUtil.getErrorDialog(resultCode, this, RQS_GooglePlayServices);\n\t\t\tfinish();\n\t }\n\t return false;\n\t}\n\treturn true;\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n\n }",
"private void resolveSignInError() {\n\n if (mConnectionResult.hasResolution()) {\n try {\n mIntentInProgress = true;\n mConnectionResult.startResolutionForResult(LoginRegister.this,\n RC_SIGN_IN);\n } catch (IntentSender.SendIntentException e) {\n mIntentInProgress = false;\n mGoogleApiClient.connect();\n }\n }\n\n else {\n\n Log.i(\"\", \"mConnectionResult.hasResolution()==\" + false);\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed\");\n if (!result.hasResolution()) {\n GooglePlayServicesUtil.getErrorDialog(result.getErrorCode(), this, 0).show();\n return;\n }\n try {\n Log.i(TAG, \"trying to resolve the Connection failed error...\");\n result.startResolutionForResult(this, REQUEST_CODE);\n } catch (IntentSender.SendIntentException e) {\n Log.e(TAG, \"Exception while starting resolution activity\", e);\n }\n }",
"private void resolveSignInError() {\n if(mConnectionResult != null)\n if (mConnectionResult.hasResolution()) {\n try {\n mConnectionResult.startResolutionForResult(this, RC_SIGN_IN);\n } catch (IntentSender.SendIntentException e) {\n mGoogleApiClient.connect();\n }\n }\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(getActivity(), LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original PendingIntent\n\t\t\t\t */\n\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n\t\t\t// If no resolution is available, display a dialog to the user with the error.\n\t\t\tshowErrorDialog(connectionResult.getErrorCode());\n\t\t}\n\n\t}",
"private void checkGooglePlayServices() {\n\t\tint status = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(getApplicationContext());\n\t\tif (D) {\n\t\t\tif (status == ConnectionResult.SUCCESS) {\n\t\t\t\t// Success! Do what you want\n\t\t\t\tLog.i(TAG, \"Google Play Services all good\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_MISSING) {\n\t\t\t\tLog.e(TAG, \"Google Play Services not in place\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED) {\n\t\t\t\tLog.e(TAG, \"Google Play Serivices outdated\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_DISABLED) {\n\t\t\t\tLog.e(TAG, \"Google Plauy Services disabled\");\n\t\t\t} else if (status == ConnectionResult.SERVICE_INVALID) {\n\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\"Google Play Serivices invalid but wtf does that mean?\");\n\t\t\t} else {\n\t\t\t\tLog.e(TAG, \"No way this is gonna happen\");\n\t\t\t}\n\t\t}\n\t}",
"private boolean checkGooglePlayServices() {\n int code = GooglePlayServicesUtil.isGooglePlayServicesAvailable(mActivity);\n if (code != ConnectionResult.SUCCESS) {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(code, mActivity, Constants.RequestCode.HANDLE_GMS,\n new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialogInterface) {\n mActivity.finish();\n }\n });\n if (dialog != null) {\n dialog.show();\n }\n\n return false;\n }\n\n return true;\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(\n this,\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n //Do nothing, no location available so use default default in server spinner\n }\n }",
"@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\n\t\tint resCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());\n\t\tif (resCode != ConnectionResult.SUCCESS)\n\t\t{\n\t\t\tGooglePlayServicesUtil.getErrorDialog(resCode, this, 1);\n\t\t}\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n switch (requestCode) {\n case Constants.CONNECTION_FAILURE_RESOLUTION_REQUEST :\n switch (resultCode) {\n // If Google Play services resolved the problem\n case Activity.RESULT_OK:\n mInProgress = false;\n beginAddGeofences(mGeoIds);\n break;\n }\n }\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution() && mContext instanceof Activity) {\n try {\n Activity activity = (Activity) mContext;\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(activity, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n BBVAMapsLog.e(TAG, e.getMessage());\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n BBVAMapsLog.e(TAG, \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"MainActivity\", \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"public boolean checkPlayServices(Activity a) {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(a);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, a,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n }\n return false;\n }\n return true;\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.e(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"private void checkGooglePlayServiceSDK() {\n //To change body of created methods use File | Settings | File Templates.\n final int googlePlayServicesAvailable = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n Log.i(TAG, \"googlePlayServicesAvailable:\" + googlePlayServicesAvailable);\n\n switch (googlePlayServicesAvailable) {\n case ConnectionResult.SERVICE_MISSING:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_NOT_INSTALLED);\n break;\n case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_SERVICE_UPDATE_REQUIRED);\n break;\n case ConnectionResult.SERVICE_DISABLED:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_DISABLED);\n break;\n case ConnectionResult.SERVICE_INVALID:\n form.dispatchErrorOccurredEvent(this, \"checkGooglePlayServiceSDK\",\n ErrorMessages.ERROR_GOOGLE_PLAY_INVALID);\n break;\n }\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(mActivity);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n Log.d(Util.TAG_GOOGLE, \"\" + connectionStatusCode);\n // showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"GoogleApiClient connection failed: \" + result.toString());\n\n if (!result.hasResolution()) {\n\n // show the localized error dialog.\n GoogleApiAvailability.getInstance().getErrorDialog(this, result.getErrorCode(), 0).show();\n return;\n }\n\n /**\n * The failure has a resolution. Resolve it.\n * Called typically when the app is not yet authorized, and an authorization\n * dialog is displayed to the user.\n */\n\n try {\n\n result.startResolutionForResult(this, REQUEST_CODE_RESOLUTION);\n\n } catch (IntentSender.SendIntentException e) {\n\n Log.e(TAG, \"Exception while starting resolution activity\", e);\n }\n }",
"private void acquireGooglePlayServices() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n final int connectionStatusCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\r\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\r\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\r\n }\r\n }",
"private boolean servicesConnected(Activity activity) {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity);\n // If Google Play services is available\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n // Google Play services was not available for some reason.\n // resultCode holds the error code.\n } else {\n // Get the error dialog from Google Play services\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(resultCode, activity, LocationFailureHandler.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n // If Google Play services can provide an error dialog\n if (errorDialog != null) {\n \terrorDialog.show();\n } else {\n }\n return false;\n }\n }",
"private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n Log.i(TAG, \"checkPlayServices \" + resultCode);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult result) {\n\t\tLog.i(\"onConnectionFailed\", result.toString());\n\t\tif (result.hasResolution()) {\n\t\t\ttry {\n\t\t\t\tresult.startResolutionForResult(this, REQUEST_CODE_RESOLVE_ERR);\n\t\t\t} catch (SendIntentException e) {\n\t\t\t\tmPlusClient.connect();\n\t\t\t}\n\t\t}\n\n\t}",
"private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }",
"private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }",
"private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getApplicationContext(), \"This device is not supported.\", Toast.LENGTH_LONG).show();\n finish();\n }\n return false;\n }\n return true;\n }",
"private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(getContext());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, getActivity(),\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(getContext(),\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n getActivity().finish();\n }\n return false;\n }\n return true;\n }",
"private boolean isGooglePlayServicesAvailable() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\r\n // If Google Play services is available\r\n if (ConnectionResult.SUCCESS == resultCode) {\r\n // In debug mode, log the status\r\n Log.d(\"Location Updates\", \"Google Play services is available.\");\r\n return true;\r\n } else {\r\n // Get the error dialog from Google Play services\r\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog( resultCode,\r\n this,\r\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\r\n\r\n // If Google Play services can provide an error dialog\r\n if (errorDialog != null) {\r\n // Create a new DialogFragment for the error dialog\r\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\r\n errorFragment.setDialog(errorDialog);\r\n errorFragment.show(getFragmentManager(), \"Location Updates\");\r\n }\r\n\r\n return false;\r\n }\r\n }",
"private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(getActivity(), resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Toast.makeText(getActivity(), \"This device is not supported by Google Play Services.\", Toast.LENGTH_SHORT).show();\n getActivity().finish();\n }\n return false;\n }\n return true;\n }",
"@Override\n public void handleAuthTokenException(final Exception e) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (e instanceof GooglePlayServicesAvailabilityException) {\n // The Google Play services APK is old, disabled, or not present.\n // Show a dialog created by Google Play services that allows\n // the user to update the APK\n int statusCode = ((GooglePlayServicesAvailabilityException) e)\n .getConnectionStatusCode();\n /*Dialog dialog = GooglePlayServicesUtil.getErrorDialog(statusCode,\n HelloActivity.this,\n REQUEST_CODE_RECOVER_FROM_PLAY_SERVICES_ERROR);\n dialog.show(); */\n Toast.makeText(LoginActivity.this, \"Play services error.\", Toast.LENGTH_LONG).show();\n Log.d(this.getClass().getSimpleName(), \"Play services error: \" + statusCode);\n } else if (e instanceof UserRecoverableAuthException) {\n // Unable to authenticate, such as when the user has not yet granted\n // the app access to the account, but the user can fix this.\n // Forward the user to an activity in Google Play services.\n Intent intent = ((UserRecoverableAuthException) e).getIntent();\n startActivityForResult(intent, REQUEST_CODE_RECOVER_FROM_PLAY_SERVICES_ERROR);\n }\n }\n });\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getActivity());\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }",
"private static void locationServicesFail(Exception e, Activity activity, Fragment fragment) {\r\n final int statusCode = ((ApiException) e).getStatusCode();\r\n\r\n // Device location is off, location permission can either be granted or denied\r\n if (statusCode == LocationSettingsStatusCodes.RESOLUTION_REQUIRED) {\r\n try {\r\n /*\r\n * Create a dialog (like Google Maps does) to turn ON device location after the user has\r\n * pressed OK\r\n */\r\n ResolvableApiException rae = (ResolvableApiException) e;\r\n fragment.startIntentSenderForResult(rae.getResolution().getIntentSender(),\r\n REQUEST_CHECK_SETTINGS, null, 0, 0, 0, null);\r\n } catch (IntentSender.SendIntentException sie) {\r\n ToastHelper.tShort(activity, \"Unable to execute request\");\r\n }\r\n\r\n } else if (statusCode == LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE) {\r\n // When WiFi off and Cellular Off, this will happen\r\n ToastHelper.tShort(activity,\r\n \"Unable to find GPS location (try turning on WiFi or mobile signal)\");\r\n }\r\n }",
"private boolean checkPlayServices() {\r\n\t\tGoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n\t\tint resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\r\n\t\tif (resultCode != ConnectionResult.SUCCESS) {\r\n\t\t\tif (apiAvailability.isUserResolvableError(resultCode)) {\r\n\t\t\t\tapiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\r\n\t\t\t\t\t\t.show();\r\n\t\t\t} else {\r\n\t\t\t\tLog.i(TAG, \"This device is not supported.\");\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n // Decide what to do based on the original request code\n switch (requestCode) {\n case CONNECTION_FAILURE_RESOLUTION_REQUEST:\n // If the result code is OK, try to connect again\n log(\"Resolution result code is: \" + resultCode);\n switch (resultCode) {\n case Activity.RESULT_OK:\n // Try to connect again here\n mGoogleApiClient.connect();\n break;\n }\n break;\n }\n }",
"private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(TAG, \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }",
"@Override\n protected void notifyUserOnPlayServicesUnavailable() {\n final View rootView = findViewById(R.id.root_layout);\n if (rootView == null) return;\n Snackbar.make(rootView, R.string.google_play_services_error, Snackbar.LENGTH_LONG)\n .show();\n }",
"@Override\n protected void onStart() {\n super.onStart();\n\n\n GoogleApiAvailability GMS_Availability = GoogleApiAvailability.getInstance();\n int GMS_CheckResult = GMS_Availability.isGooglePlayServicesAvailable(this);\n\n if (GMS_CheckResult != ConnectionResult.SUCCESS) {\n\n // Would show a dialog to suggest user download GMS through Google Play\n GMS_Availability.getErrorDialog(this, GMS_CheckResult, 1).show();\n }else{\n mGoogleApiClient.connect();\n }\n }",
"private boolean isGooglePlayServicesAvailable() {\n\t\tint resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(\"Location Updates\", \"Google Play services is available.\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// Get the error dialog from Google Play services\n\t\t\tDialog errorDialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this,\n\t\t\t\t\tCONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t\t// If Google Play services can provide an error dialog\n\t\t\tif (errorDialog != null) {\n\t\t\t\t// Create a new DialogFragment for the error dialog\n\t\t\t\tErrorDialogFragment errorFragment = new ErrorDialogFragment();\n\t\t\t\terrorFragment.setDialog(errorDialog);\n\t\t\t\terrorFragment.show(getSupportFragmentManager(), \"Location Updates\");\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public void onFailure(Exception e) {\n int statusCode = ((ApiException) e).getStatusCode();\n switch (statusCode) {\n case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:\n try {\n ResolvableApiException rae = (ResolvableApiException) e;\n Toast.makeText(MainActivity.this, \"Location Setting Incorrect\", LENGTH_SHORT).show();\n // Call startResolutionForResult to display a pop-up asking the user to enable related permission.\n rae.startResolutionForResult(MainActivity.this, 0);\n } catch (IntentSender.SendIntentException sie) {\n Toast.makeText(MainActivity.this, (CharSequence) sie, LENGTH_SHORT).show();\n }\n break;\n default:\n break;\n }\n }",
"public boolean googleServiceCheck() {\n int isServiceAvailable = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (isServiceAvailable == ConnectionResult.SUCCESS) {\n return true;\n } else if (GooglePlayServicesUtil.isUserRecoverableError(isServiceAvailable)) {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(isServiceAvailable, this, GPS_ERROR_DIALOG_REQUEST);\n dialog.show();\n } else {\n Toast.makeText(this, \"Can't connect to Google Play Service\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }",
"@Override\n\t\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t if (connectionResult.hasResolution()) {\n\t try {\n\t // Start an Activity that tries to resolve the error\n\t connectionResult.startResolutionForResult(activity, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\t } catch (IntentSender.SendIntentException e) {\n\t // Log the error\n\t e.printStackTrace();\n\t }\n\t } else {\n\t /*\n\t * If no resolution is available, display a dialog to the\n\t * user with the error.\n\t */\n\n\t }\n\t\t\t\n\t\t}",
"@Override\n public void onFailure(@NonNull Exception e) {//requye\n if (e instanceof ResolvableApiException) {//chua bat\n ResolvableApiException resolvableApiException = (ResolvableApiException) e;//bat man hinh hien thi bat gps\n ((MainActivity) context).requestOpenGps(resolvableApiException);\n }\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"LoginActivity\", \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }",
"private boolean checkPlayServices() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (apiAvailability.isUserResolvableError(resultCode)) {\n apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)\n .show();\n } else {\n Log.i(\"LoginActivity\", \"This device is not supported.\");\n finish();\n }\n return false;\n }\n return true;\n }",
"public boolean handleActivityResult(final int requestCode, final int resultCode,\n final Intent data) {\n if (requestCode == REQUEST_CODE_RECOVER_FROM_PLAY_SERVICES_ERROR) {\n if (resultCode == Activity.RESULT_OK) {\n // Receiving a result that follows a GoogleAuthException, try auth again\n asListener(mAndroidComponent).onRetryAuthentication();\n }\n return true;\n }\n return false;\n }",
"public void checkGplayServices(){\n Log.d(TAG, \"checkGplayServices: To check for token!\");\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n Toast.makeText(getApplicationContext(), \"Google Play Service is not install/enabled in this device!\", Toast.LENGTH_LONG).show();\n GooglePlayServicesUtil.showErrorNotification(resultCode, getApplicationContext());\n\n } else {\n Toast.makeText(getApplicationContext(), \"This device does not support for Google Play Service!\", Toast.LENGTH_LONG).show();\n }\n } else {\n Intent intent1;\n if(SharedPreferencesManage.getInstance().getToken()==null) {\n intent1 = new Intent(this, GCMRegistrationIntentService.class);\n startService(intent1);\n Log.d(TAG, \"user to be registered start service\");\n }else\n Log.d(TAG, \"already registered user with token: \"+SharedPreferencesManage.getInstance().getToken());\n\n }\n }",
"private boolean CheckGooglePlayServices() {\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n int available = googleApiAvailability.isGooglePlayServicesAvailable(this);\n if (available != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(available)) {\n googleApiAvailability.getErrorDialog(this, available,0).show();\n }\n return false;\n }\n return true;\n }",
"@Override\n protected void notifyUserOnPlayServicesErrorDialogCancelled() {\n final View rootView = findViewById(R.id.root_layout);\n if (rootView == null) return;\n Snackbar.make(rootView, R.string.google_play_services_error, Snackbar.LENGTH_LONG)\n .show();\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n // Can it be resolved, for example by installing a new version?\n log(\"Connection failed\");\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n log(\"Trying to resolve the error...\");\n connectionResult.startResolutionForResult(\n this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n } catch (IntentSender.SendIntentException e) {\n log(\"Exception during resolution: \" + e.toString());\n }\n } else {\n // No resolution is available\n showErrorDialog(connectionResult.getErrorCode());\n }\n }",
"private boolean checkPlayServices() {\n int resultCode = GooglePlayServicesUtil\n .isGooglePlayServicesAvailable(mContext);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, (Activity)mContext,\n PLAY_SERVICES_RESOLUTION_REQUEST).show();\n } else {\n Toast.makeText(mContext,\n \"This device is not supported.\", Toast.LENGTH_LONG)\n .show();\n }\n return false;\n }\n return true;\n }",
"public static boolean checkPlayServices(Context context) {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);\n if (resultCode != ConnectionResult.SUCCESS) {\n if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n GooglePlayServicesUtil.getErrorDialog(resultCode, (Activity) context, resultCode);\n } else {\n Log.i(TAG, \"This device is not supported.\");\n }\n return false;\n }\n return true;\n }",
"public boolean checkPlayServices() {\n\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n\n int resultCode = googleApiAvailability.isGooglePlayServicesAvailable(context);\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(resultCode)) {\n googleApiAvailability.getErrorDialog(context, resultCode,\n PLAY_SERVICES_REQUEST).show();\n PrintLog.e(TAG, \"checkPlayServices yes hai\");\n } else {\n PrintLog.e(TAG, \"checkPlayServices No hai\");\n Toast.makeText(context, \"This device is not supported.\", Toast.LENGTH_LONG).show();\n }\n return false;\n }\n return true;\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(getActivity(), CONNECTION_FAILURE_RESOLUTION_REQUEST);\n }\n catch (IntentSender.SendIntentException e) {\n e.printStackTrace();\n }\n }\n else {\n Log.i(TAG, \"Connection Failed: Error Code = \" + connectionResult.getErrorCode());\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n switch (requestCode) {\n case ClientSideUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST :\n\n switch (resultCode) {\n // If Google Play services resolved the problem\n case Activity.RESULT_OK:\n // If the request was to add geofences\n if (ClientSideUtils.GEOFENCE_REQUEST_TYPE.ADD == mGeofenceRequestType) {\n\n // Toggle the request flag and send a new request\n mGeofenceRequester.setInProgressFlag(false);\n\n // Restart the process of adding the current geofences\n mGeofenceRequester.addGeofences(mCurrentGeofenceList);\n\n // If the request was to remove geofences\n } else if (ClientSideUtils.GEOFENCE_REQUEST_TYPE.REMOVE == mGeofenceRequestType ){\n\n // Toggle the removal flag and send a new removal request\n mGeofenceRemover.setInProgressFlag(false);\n\n // If the removal was by Intent\n if (ClientSideUtils.GEOFENCE_REMOVE_TYPE.INTENT == mGeofenceRemoveType) {\n\n \t// TODO support this after fixing the remove by intent\n \tLog.d(ClientSideUtils.APPTAG, \"REMOVE_TYPE.INTENT was found - unsupported in this app\");\n //mGeofenceRemover.removeGeofencesByIntent(\n //mGeofenceRequester.getRequestPendingIntent());\n\n } else {\n // Restart the removal of the geofence list\n \tremoveCurrentGeofecesByID(mCurrentGeofenceList);\n }\n } else if (ClientSideUtils.ACTIVITY_REQUEST_TYPE.ADD == mActivityRequestType) {\n \t\n // Restart the process of requesting activity recognition updates\n mDetectionRequester.requestUpdates();\n \t\n } else if (ClientSideUtils.ACTIVITY_REQUEST_TYPE.REMOVE == mActivityRequestType) {\n \t\n \t// Restart the removal of all activity recognition updates for the PendingIntent\n mDetectionRemover.removeUpdates(mDetectionRequester.getRequestPendingIntent());\n \t\n }\n break;\n\n // If any other result was returned by Google Play services\n default:\n // Report that Google Play services was unable to resolve the problem. \t\n Log.d(ClientSideUtils.APPTAG, getString(R.string.no_resolution));\n }\n default:\n // Report that this Activity received an unknown requestCode\n Log.d(ClientSideUtils.APPTAG, getString(R.string.unknown_activity_request_code, requestCode));\n break;\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n EditText edPhoneNumber = (EditText)linear.findViewById(R.id.edPhoneNumber);\n String phoneNumber = edPhoneNumber.getText().toString();\n\n if (phoneNumber == \"\")\n return;\n\n storePhoneNumber(phoneNumber);\n\n // 1. Device Token 등록\n // google play service가 사용가능한가\n if (checkPlayServices())\n {\n mGcm = GoogleCloudMessaging.getInstance(MainActivity.this);\n mRegId = getRegistrationId();\n\n if (TextUtils.isEmpty(mRegId))\n registerInBackground();\n }\n else\n {\n Log.i(\"MainActivity.java | onCreate\", \"|No valid Google Play Services APK found.|\");\n mTextStatus.append(\"\\n No valid Google Play Services APK found.\\n\");\n }\n\n // display received msg\n String msg = getIntent().getStringExtra(\"msg\");\n if (!TextUtils.isEmpty(msg))\n mTextStatus.append(\"\\n\" + msg + \"\\n\");\n\n // 2. Web View\n webview = (WebView)findViewById(R.id.webView1);\n webview.setWebViewClient(new WebClient()); //\n WebSettings set = webview.getSettings();\n set.setJavaScriptEnabled(true);\n set.setBuiltInZoomControls(true);\n //webview.loadUrl(\"http://www.google.com\");\n\n }",
"private void handleGeofenceError(Context context, Intent intent) {\n String msg = intent.getStringExtra(GeofenceUtils.EXTRA_GEOFENCE_STATUS);\n Log.e(GeofenceUtils.APPTAG, msg);\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n }",
"public boolean checkPlayServices() {\n\n GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();\n\n int resultCode = googleApiAvailability.isGooglePlayServicesAvailable(context);\n\n if (resultCode != ConnectionResult.SUCCESS) {\n if (googleApiAvailability.isUserResolvableError(resultCode)) {\n googleApiAvailability.getErrorDialog(map_actvity,resultCode,\n PLAY_SERVICES_REQUEST).show();\n } else {\n showToast(\"This device is not supported.\");\n }\n return false;\n }\n return true;\n }",
"private boolean checkPlayServices() {\n\t\tint resultCode = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(context);\n\t\tif (resultCode != ConnectionResult.SUCCESS) {\n\t\t\tif (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {\n\t\t\t\tGooglePlayServicesUtil.getErrorDialog(resultCode, context,\n\t\t\t\t\t\tPLAY_SERVICES_RESOLUTION_REQUEST).show();\n\t\t\t} else {\n\t\t\t\tToast.makeText(context,\n\t\t\t\t\t\t\"This device is not supported.\", Toast.LENGTH_LONG)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public void onClick(View v) {\n PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();\n try {\n startActivityForResult(builder.build(MainActivity.this), PLACE_PICKER_REQUEST);\n } catch (GooglePlayServicesRepairableException e) {\n e.printStackTrace();\n } catch (GooglePlayServicesNotAvailableException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\n\t\tsuper.onActivityResult(requestCode, resultCode, intent);\n\t\t// Choose what to do based on the request code\n\t\tswitch (requestCode) {\n\t\tcase LocationUtils.REQUEST_ACCOUNT_PICKER:\n\t if (intent != null && intent.getExtras() != null) {\n\n\t \t LocationUtils.accountName = intent.getExtras().getString(AccountManager.KEY_ACCOUNT_NAME);\n\t if (LocationUtils.accountName != null) {\n\t \t LocationUtils.credential.setSelectedAccountName(LocationUtils.accountName);\n\t \t \n\t \t AnyTaxi.Builder endpointBuilder = new AnyTaxi.Builder(\n\t AndroidHttp.newCompatibleTransport(),\n\t new JacksonFactory(),\n\t LocationUtils.credential);\n\t \t LocationUtils.endpoint = CloudEndpointUtils.updateBuilder(endpointBuilder).build();\n\t }\n\t }\n\t\t\tAsyncTask<Void, Void, Driver> task = new EndpointsTask(this, \n\t\t\t\t\tLocationUtils.endpoint, \"[email protected]\");\n\t\t\ttask.execute();\n\t\t\tbreak;\n\n\t\t\t// If the request code matches the code sent in onConnectionFailed\n\t\tcase LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST :\n\n\t\t\tswitch (resultCode) {\n\t\t\t// If Google Play services resolved the problem\n\t\t\tcase Activity.RESULT_OK:\n\n\t\t\t\t// Log the result\n\t\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.resolved));\n\n\t\t\t\t// Display the result\n\t\t\t\tmConnectionState.setText(R.string.connected);\n\t\t\t\tmConnectionStatus.setText(R.string.resolved);\n\t\t\t\tbreak;\n\n\t\t\t\t// If any other result was returned by Google Play services\n\t\t\tdefault:\n\t\t\t\t// Log the result\n\t\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.no_resolution));\n\n\t\t\t\t// Display the result\n\t\t\t\tmConnectionState.setText(R.string.disconnected);\n\t\t\t\tmConnectionStatus.setText(R.string.no_resolution);\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// If any other request code was received\n\t\tdefault:\n\t\t\t// Report that this Activity received an unknown requestCode\n\t\t\tLog.d(LocationUtils.APPTAG,\n\t\t\t\t\tgetString(R.string.unknown_activity_request_code, requestCode));\n\n\t\t\tbreak;\n\t\t}\n\t}",
"private boolean isServiceOk(){\n Log.d(TAG, \"isServiceOk: checking google service version\");\n\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(FormularioCurso.this);\n\n if (available == ConnectionResult.SUCCESS){\n //Everything is fine and the user can make map request\n return true;\n } else if(GoogleApiAvailability.getInstance().isUserResolvableError(available)){\n //an error ocured but we can resolt it\n Log.d(TAG, \"isServiceOk: an error occures but we can fix it\");\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(FormularioCurso.this, available, ERROR_DIALOG_REQUEST);\n dialog.show();\n }else{\n Toast.makeText(this, \"You can't make map request\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }",
"@Override\n\t public void error()\n\t {\n\t Log.e(\"MAIN\",\"Error finding best guess location\");\n dS.lat=0;\n dS.lon=0;\n if(once)\n {\n\t //promptSetLocationService(MainActivity.this);\n }\n once=false;\n\t }",
"int isPlayServicesAvailable() {\n if (mGoogleApiAvailability_class != null) {\n String errorMsg;\n Throwable throwable;\n try {\n Method getInstance_method = mGoogleApiAvailability_class.getDeclaredMethod(\"getInstance\");\n Object googleApiAvailabilityInstance = getInstance_method.invoke(null);\n\n Method isPlayServicesAvailable_method = mGoogleApiAvailability_class.getDeclaredMethod(\n \"isGooglePlayServicesAvailable\", Context.class);\n Integer result = (Integer) isPlayServicesAvailable_method.invoke(googleApiAvailabilityInstance, mContext);\n Log.d(TAG, \"isPlayServicesAvailable(): isGooglePlayServicesAvailable returned: \" + result);\n switch (result) {\n case 0:\n //success\n return PLAY_SERVICES_AVAILABLE;\n case 2:\n //version update required\n return PLAY_SERVICES_SERVICE_VERSION_UPDATE_REQUIRED;\n default:\n //everything else\n return PLAY_SERVICES_UNAVAILABLE;\n }\n } catch (NoSuchMethodException e) {\n // in this case,\n errorMsg = \"isPlayServicesAvailable(): Unable to find method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (InvocationTargetException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to invoke method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (IllegalAccessException e) {\n errorMsg = \"isPlayServicesAvailable(): Unable to access method. This is an \" +\n \"incompatibility between Google Play Services and Magnet.\";\n throwable = e;\n } catch (Exception e) {\n errorMsg = \"isPlayServicesAvailable(): Unknown error occurred.\";\n throwable = e;\n }\n Log.e(TAG, errorMsg, throwable);\n return PLAY_SERVICES_MAGNET_VERSION_INCOMPATIBILITY;\n } else {\n return PLAY_SERVICES_UNAVAILABLE;\n }\n }",
"private boolean servicesConnected() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n }\n else {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), Constants.APPTAG);\n }\n return false;\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n // An unresolvable error has occurred and a connection to Google APIs\n // could not be established. Display an error message, or handle\n // the failure silently\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Toast.makeText(getBaseContext(), R.string.google_api_client_connection_failed, Toast.LENGTH_LONG).show();\n googleApiClient.connect();\n }",
"@Override\n public void onProviderInstallFailed(int errorCode, Intent intent) {\n }",
"public boolean checkGooglePlayServices() {\r\n // Retrieve an instance of the GoogleApiAvailability object\r\n GoogleApiAvailability api = GoogleApiAvailability.getInstance();\r\n\r\n // Check whether the device includes GooglePlayServices\r\n int resultCode = api.isGooglePlayServicesAvailable(this);\r\n if (resultCode == ConnectionResult.SUCCESS) {\r\n // If it does, return true\r\n return true;\r\n } else if (api.isUserResolvableError(resultCode)) {\r\n // If Google Play Services are available to download to the user, show the error Dialog\r\n api.showErrorDialogFragment(this, resultCode, 9000);\r\n return false;\r\n } else {\r\n return false;\r\n }\r\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.w(TAG, \"Connection failed. Cause: \" + result.toString());\n if (!result.hasResolution()) {\n Log.w(TAG, String.valueOf(result.getErrorCode()));\n return;\n }\n\n if (!authInProgress) {\n try {\n Log.w(TAG, \"Attempting to resolve failed connection\");\n authInProgress = true;\n result.startResolutionForResult(SensorNew.this, REQUEST_OAUTH);\n } catch (IntentSender.SendIntentException e) {\n Log.w(TAG, \"Exception while starting resolution activity: \" + e.getMessage());\n }\n }\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n int errorCode = this.getArguments().getInt(DIALOG_ERROR);\n return GooglePlayServicesUtil.getErrorDialog(errorCode,\n this.getActivity(), REQUEST_RESOLVE_ERROR);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n int errorCode = this.getArguments().getInt(DIALOG_ERROR);\n return GooglePlayServicesUtil.getErrorDialog(errorCode,\n getActivity(), REQUEST_RESOLVE_ERROR);\n }",
"@Override\n public void onRequestError(RequestError requestError) {\n interstitialIntent = null;\n Log.d(TAG, \"IS: Something went wrong with the request: \" + requestError.getDescription());\n Toast.makeText(MainActivity.this, \"IS: Something went wrong with the request: \", Toast.LENGTH_SHORT).show();\n }",
"public boolean isGoogleServicesWorking() {\n int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this);\n if (available == ConnectionResult.SUCCESS) {\n return true;\n } else if (GoogleApiAvailability.getInstance().isUserResolvableError(available)) {\n Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(this, available, ERROR_DIALOG_REQ);\n dialog.show();\n } else {\n Toast.makeText(this, \"You can't make map requests\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }",
"private boolean servicesConnected() {\n\t\tint resultCode =\n\t\t\t\tGooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n\t\t// If Google Play services is available\n\t\tif (ConnectionResult.SUCCESS == resultCode) {\n\t\t\t// In debug mode, log the status\n\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.play_services_available));\n\n\t\t\t// Continue\n\t\t\treturn true;\n\t\t\t// Google Play services was not available for some reason\n\t\t} else {\n\t\t\t// Display an error dialog\n\t\t\tDialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n\t\t\tif (dialog != null) {\n\t\t\t\tErrorDialogFragment errorFragment = new ErrorDialogFragment();\n\t\t\t\terrorFragment.setDialog(dialog);\n\t\t\t\terrorFragment.show(getSupportFragmentManager(), LocationUtils.APPTAG);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\t\tpublic void onServiceError(String error) {\n\t\t\tUtil.closeProgressDialog();\n\t\t}"
]
| [
"0.7295942",
"0.7289509",
"0.6994372",
"0.69848216",
"0.68990433",
"0.6874277",
"0.68474406",
"0.68438905",
"0.68339884",
"0.6821433",
"0.6821201",
"0.6821201",
"0.680698",
"0.67798984",
"0.66855896",
"0.6683068",
"0.66571397",
"0.665188",
"0.66499025",
"0.65941596",
"0.65902066",
"0.6586962",
"0.6573632",
"0.6570762",
"0.6561919",
"0.65612775",
"0.65546995",
"0.6468043",
"0.6458275",
"0.6386265",
"0.6386265",
"0.6386265",
"0.6386265",
"0.6386265",
"0.6386265",
"0.6386265",
"0.63659006",
"0.6360218",
"0.62833405",
"0.62381065",
"0.62181526",
"0.62112576",
"0.6193822",
"0.61635774",
"0.6161411",
"0.6161411",
"0.61525404",
"0.6134142",
"0.6134076",
"0.61305153",
"0.61263925",
"0.6124591",
"0.6115837",
"0.6111469",
"0.60985357",
"0.6097814",
"0.60977036",
"0.6093746",
"0.6069163",
"0.60649586",
"0.6055223",
"0.6052785",
"0.60465205",
"0.6045484",
"0.6025981",
"0.60162246",
"0.60162246",
"0.60162246",
"0.6016155",
"0.600818",
"0.60059506",
"0.5982332",
"0.5981873",
"0.59798574",
"0.5972788",
"0.5954435",
"0.59539974",
"0.59360695",
"0.5915656",
"0.5895976",
"0.58782184",
"0.5859348",
"0.58551466",
"0.5847384",
"0.5838479",
"0.5798252",
"0.57812893",
"0.5769051",
"0.5763171",
"0.57586217",
"0.57569396",
"0.5755282",
"0.57466483",
"0.57349616",
"0.57158154",
"0.57152224",
"0.5714349",
"0.56886464",
"0.5684682",
"0.56824094"
]
| 0.6626639 | 19 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.