text
stringlengths
14
410k
label
int32
0
9
@Override public void run() { while (true) { if (playing && !gameOver) { try { Thread.sleep(1000 / 30); // sleep for 1/30 second moveBall(); try { playerOne.movePaddle(player1FlagUp, player1FlagDown); playerTwo.movePaddle(player2FlagUp, player2FlagDown); repaint(); } catc...
9
@RequestMapping(value = "/hall-event-all-partner-list/{hallEventId}", method = RequestMethod.GET) @ResponseBody public PartnerListResponse hallEventAllPartnerList( @PathVariable(value = "hallEventId") final String hallEventIdStr ) { Boolean success = true; String errorMessage = n...
1
private void updateLevel() { // Distance between the traps: int minDistance = 40; int maxDistance = 400; if (Math.abs(player.vel.x) > 1) { maxDistance *= Math.abs(player.vel.x / 2); minDistance *= Math.abs(player.vel.x); } int sinceLastUpdate = (int) Math.abs(mainCamera.position.x - lastCamera); ...
6
public boolean dialog(){ Font font1 = new Font("Default", Font.PLAIN, 12); Font font1small = new Font("DefaultSmall", Font.PLAIN, 12); //creates the dialog Dialog = new JFrame("Macro Runner Settings"); directory = new JTextField("",20); macrotorun = new JTextField("",20); JLabel labeldir = new JLabel("D...
7
public static void drawLine(int startX , int startY , int endX , int endY , byte data[]) { int pos; double xLength = endX - startX; double yLength = endY - startY; double step = (yLength != 0 ? xLength/yLength : xLength); step = ((int)step == 0 ? 1 : (int)step); double slope = (xLength != 0 ? yLength/...
8
@Override public void actionPerformed(ActionEvent e) { for (Voiture voiture : vehicules) { if (voiture != null) { voiture.toggleForcerSortie(voieDeSortie); } } }
2
public C4TwoDArrays() { scan = new Scanner(System.in); System.out.print("Enter your gender"); for (int i = 0; i < info[0].length; i++) { System.out.print(" - " + i + " - for " + info[0][i]); } System.out.println(); int gender; while ((gender = inputInt()) > info[0].length - 1 || gender < 0) { Syst...
6
protected void layout(Composite composite, boolean flushCache) { Rectangle clientArea = composite.getClientArea(); Control[] ws = composite.getChildren(); // Lay out the separator, the tool bar control, the cool bar // control, the status line, and the page composite. // The following code assumes that...
8
public static void main(String[] args) { String strIndicePile1; String strIndicePile2; int indicePile1 = 0; int indicePile2 = 0; Scanner sc = new Scanner(System.in); Jeu jeu = new Jeu(); boolean redemander; while(jeu.estPasT...
4
public static void main(String[] args) { // TODO Auto-generated method stub try { InputStreamReader fw = new InputStreamReader(System.in); BufferedReader pw =new BufferedReader(fw); if (pw.readLine() != null) { System.out.println(pw.readLine()); } else { System.out.println("No argument is pr...
2
public int [] SortAndSearch(int [] arrA, int [] arrB){ //create an Aux array and copy all the elements of arrA // create another boolean array, visited[] of size arrA[] // Initialize visited[] = false // Sort the Aux array using Merge sort. // Navigate through the arrB, taking one element at a time, say x /...
7
* @return Returns true if the cell label should be clipped. */ public boolean isLabelClipped(Object cell) { if (!isLabelsClipped()) { mxCellState state = view.getState(cell); Map<String, Object> style = (state != null) ? state.getStyle() : getCellStyle(cell); return (style != null) ? mxUtils.getS...
3
protected static Image readMap8(FileInputStream fs,BitmapHeader bh) throws IOException { Image image; // Have to determine the number of colors, the clrsused // parameter is dominant if it is greater than zero. If // zero, calculate colors based on bitsperpixel. int nNumColors = 0; if (bh.ncl...
5
public ArrayList<Message> getFilemessages() { return filemessages; }
0
@Override protected void paintComponent(Graphics g) { super.paintComponent(g); if(width!=this.getWidth() || height!=this.getHeight()) { width = this.getWidth(); height = this.getHeight(); displayBuffer = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); dBufferG = displayBuffer.creat...
7
private void assignAsset() { if (asset.equals("25")) { tex = td.getAsset(TextureDistributor.TEXTURE_HEALTH25); } else if (asset.equals("nail")) { tex = td.getAsset(TextureDistributor.TEXTURE_NAILS); } else if (asset.equals("50")) { tex = td.getAsset(TextureDi...
5
public double harmonicMean_as_double() { double mean = 0.0D; switch (type) { case 1: double[] dd = this.getArray_as_double(); mean = Stat.harmonicMean(dd); break; case 12: BigDecimal[] bd = this.getArray_as_BigDecimal(); mean = (Stat.harmonicMean(bd)).doubleValue(); bd = null; break; cas...
3
private List<Movie> deserialize(String json) { List<Movie> movies = new ArrayList<>(); try { JSONObject response = new JSONObject(json); JSONArray movieObjects = response.getJSONArray("movies"); for (int i = 0; i < movieObjects.length(); i++) { JSONObj...
8
public String toString() { String formula = ""; for (int exponent = coeffs.length-1; exponent >= 0; exponent--) { if (coeffs[exponent] != 0.0) { if (Math.abs(coeffs[exponent]) != 1.0 || exponent == 0) formula += Math.abs(coeffs[exponent]); ...
9
public boolean checkForIntersection(Rectangle rect) { return ! ( rect.left > right || rect.right < left || rect.top > bottom || rect.bottom < top); }
3
public String adminCreateNewProduct() { this.product = new Product(this.name, Float.parseFloat(this.price), this.quantity, this.code.toUpperCase(), this.desc); this.adminFacade.createNewProduct(this.product); return "adminProductDetails"; }
0
@Override public PreferencesGUITreeComponent getPreference(int i) { return (PreferencesGUITreeComponent) prefs.get(i); }
0
public void collectTreasure() { if(type == TileType.TILE_TREASURE) { type = TileType.TILE_FLOOR; for(IBomber b : bombers) { b.awardPoints(match.pointsPerTreasure / bombers.size()); } } }
2
public boolean isNameAvailable(String s) { for (ClientAgent a : handlers) { if (s.compareTo(a.getClientName()) == 0) return false; } return true; }
2
private void generateMaze(int clength, int cwidth) { DIR[] dirs = DIR.values(); Collections.shuffle(Arrays.asList(dirs)); for (DIR dir : dirs) { int nlength = clength + dir.dlength; int nwidth = cwidth + dir.dwidth; if (between(nlength, length) && between(nwidth, width) && (maze[nlength][nwidth] == 0)) {...
4
public static void end_current_run() { if (anim_stopped) { running = false; } if (incomplete && (output_analysis_type == BATCH_MEANS) && (!anim_stopped)) { // A termination condition of interval accuracy is being used running = true; } else { // Allow all entities to exit their b...
9
private void samplePIn() { final PInSampler sampler = graph.getSamplerForNewPIn(); final List<Double> pInValues = graph.getGroundTruth().getPIn(); if (PInSampler.MEAN == sampler || pInValues.size() == 1) { this.firstResultingPIn = initialCluster.getPIn(); this.secondResultingPIn = initialCluster.getPIn(...
8
public static String addLanguage(String eadfile, String language, String langCode) throws XMLStreamException, FactoryConfigurationError, IOException { String outputfile = eadfile.replace(".xml", SUFFIX + ".xml"); FileInputStream fileInputStreamEAD = new FileInputStream(eadfile); X...
9
public void run() { mediator.consultation(this); }
0
public void setPaciente(Paciente paciente) { this.paciente = paciente; }
0
private void endActionUpdate() { decrementLifetime(); if (getLifetime() == 0 && getGrid().getElementPosition(this) != null) { getGrid().removeElement(this); } else if (getLifetime() == -1) { final Position newTertiaryPos = getTertiaryPowerFailurePosition(); if (getGrid().validPosition(newTertiaryPos...
4
public static boolean isRatAndPiperAtSameRegion(int id, Point rat){ double angle=Math.toDegrees(Math.atan((rat.x-Global.GATE.x)/(rat.y-Global.GATE.y))); if(angle<0) angle*=-1; else angle=(180-angle); if(id==0&&angle>=Global.thetas[id]){ return true; }else if(id==Global.npipers-1&&angle...
8
public void viewResult(){ System.out.println("\n Geselecteerde quiz: " + selectedQuiz); System.out.println("Quizzen met gemeenschappelijke opdrachten:"); for (Opdracht opdracht : opdr1) { for (Quiz quiz : quizList) { for (Opdracht opdracht2 : quiz.getOpdrachten()) { if (opdracht2.equals(opdracht)) { ...
5
@Override public InputStream getInputStream(String path) { File file = new File(PATH + path); try { return file.exists() && file.isFile() && file.canRead() ? new FileInputStream(file) : null; } catch (FileNotFoundException e) { e.printStackTrace(); return null; } }
4
public void parseExpression(CharSequence expression, Handler handler) { Id leftId = null; String relationExpr = null; Matcher matcher = EXPR_LEFTSIDE.matcher(expression); while(matcher.find()) { State state = parseState(matcher.group(1)); Id rightId = handler.emi...
2
public List<Integer> getVehicleIdList(int userId, int uprofile) { List<Integer> list = new ArrayList(); String queryLISTMSISDN = ""; if (uprofile == 3) { queryLISTMSISDN = "select vehicleid from vehicle"; } else { queryLISTMSISDN = "select vehicleid from vehicle w...
7
public int[] getExplicitIntArrayArgument(String name, boolean required){ if(M.containsKey(name)) { String a = M.get(name).trim(); if("iI".indexOf(a.charAt(0)) == -1){illFormedArray(a," expected integer array");} if(a.charAt(1) != '[' || a.charAt(a.length()-1) != ']'){...
6
public Boolean checkType(int type){ for(int i=0; i<types.length;i++){ if (type == types[i]){ return true; } } return false; }
2
@Override public double convertTo(int type) { switch (type) { case UnitConstants.FEET_SECOND: return getValue() * 0.0166666; case UnitConstants.FEET_MINUTE: return getValue(); case UnitConstants.MILES_MINUTE: return getValue...
8
@Test public void deleteWorksAtBeginning() { initializeWithABC(); l.delete(a); assertEquals(b, l.min()); assertEquals(null, l.pred(b)); }
0
private void trieTableur(String motACoder) { chaine = new ArrayList<Integer>(ascii.conversionASCII(motACoder)); //Ajout du mot dans la premiere ligne du tableur tableurNonTrie.add(0,chaine); //on boucle pour toutes les autres lignes du tableur pour décaler à chaque fois un c...
3
public void goDijkstra(int x,int y) { int profondeur = 0; Stack<Point> toDo = new Stack<Point>(); toDo.add(new Point(x, y)); for(int j=0;j<taille_envi;j++){ for(int i=0;i<taille_envi;i++){ dijkstra[i][j]=-1; } } dijkstra[x][y]=profondeur; while(!toDo.isEmpty()){ profondeur++; Point p = toD...
3
@Override public void run() { if(saving){ Nostalgia.broadcastMessage(SavingMSG, true); } Nostalgia.saveAll(); if(saved){ Nostalgia.broadcastMessage(SavedMSG, true); } }
2
public void removeAt(Stella_Object key) { { KeyValueMap self = this; { Stella_Object map = self.theMap; int crossover = self.crossoverPoint; if (crossover == 0) { StellaHashTable.stellaHashTableRemoveAt(((StellaHashTable)(map)), key); } else { { KvCons cur...
8
public static boolean hasTag(String eadfile, String tag) throws FileNotFoundException, XMLStreamException, FactoryConfigurationError{ boolean result = false; FileInputStream fileInputStreamEAD = new FileInputStream(eadfile); XMLEventReader xmlEventReaderEAD = XMLInputFactory.newInstance() .createXMLEventR...
3
* @param match * The BracketMatch instance for this match attempt. */ private void findMatchBackward(int row, int col, BracketMatch match) { int y = row; int blockType = 0; StringBuilder sb = code.getsb(y); // Figure out what kind of block we're in, if any. ArrayList<...
7
private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened try { List<Commercial> pp1 = RequetesCommercial.selectCommercial(); for (Commercial commercial : pp1) { jComboBoxInterlocuteurCommercial.addItem(commerc...
6
private boolean colDectLEFT() { if (Controler.left) { colBox.x -= Game.pSpeed; xPrev += Game.pSpeed / 4; } colBox.setBounds(colBox.x, colBox.y, colBox.width, colBox.height); for (int i = 0; i < world.tiles.length; i++) { for (int j = 0; j < world.tiles[0].length; j++) { if (colBox.intersects(wor...
5
public static TextureObject fromStream(InputStream s) { DataInputStream d=new DataInputStream(new BufferedInputStream(s)); d.mark(Integer.MAX_VALUE); try { TextureObject ret = new TextureObject(d.readUTF(), d.readInt(), d.readInt()); int animations = d.readInt(); for(;animations > 0; animations--) ...
3
void chooseMaxSufferage() { /* Find the min makespan in one class, and then find the max one */ double tmpMinMakespan = Double.MAX_VALUE; double tmpSecondMinMakespan = Double.MAX_VALUE; double tmpMinCost = Double.MAX_VALUE; double tmpMaxSufferage = -1; int iTmpMinClass = 0; int iTmpMinSite = 0; int iTm...
7
public static boolean deleteDirectory(File dir) { if (Utils.isNull(dir, false) || !dir.exists() || !dir.isDirectory()) throw new IllegalArgumentException("'dir' Must exist and Must be a directory!"); final String[] files = dir.list(); for (final String file : files) { final File f = new File(dir, file); ...
5
public static void main(String[] args) throws Exception { CSG a = new CubeBrush(new Vector3f(-0.25f, -0.25f, -0.25f), new Vector3f(1f, 1f, 1f)); CSG b = new SphereBrush(new Vector3f(0.25f, 0.25f, 0.25f), 1.3f, 16, 8); CSG boxOut = a.subtract(b); // Now let's get our polygons Polygon[] polys = boxOut.getPolygo...
7
public Vertex getEnd() { return end; }
0
public void setSector(String sector) { Address.setSector(sector); }
0
public static boolean checkOutBounds(String name,int appositionX,int appositionY){ //apposition: position après le déplacement boolean ret = true; if(appositionX >=SIZE && name.equals("X")) { ret = true; } else if(appositionX < 0 || appositionX >= SIZE || appositionY < 0 || appositionY >= SIZE){ System.o...
6
@Override public Object execute(HttpServletRequest request, HttpServletResponse response) throws Exception { Contexto oContexto = (Contexto) request.getAttribute("contexto"); oContexto.setVista("jsp/mensaje.jsp"); HiloBean oHiloBean = new HiloBean(); HiloParam oHiloParam = new HiloPa...
1
private int asrW(int dest, int n) { clearFlags(SR_N, SR_Z, SR_V, SR_C); boolean hibitSet = msbSetW(dest); boolean hasOverflow = false; int result = dest; boolean msbSet; for (int i = 0; i < n; i++) { msbSet = msbSetW(result); if (msbSet) setFlags(SR_X, SR_C); else clearFlags(SR...
9
private void processDocument() { //Iterates through every line in the document using the provided DocumentReader class. while (document.hasLines()) { //Increases the line count. lines++; //Splits each word in the document into a string index. String[] parseString = document.getLine().split("\...
5
private void alignScrollPane() { stage.setWidth( stage.icon.getImage().getWidth() + Math.max( stage.messageLabel.getWidth(), (stage.stacktraceVisible ? Math.max( stage.stacktraceButto...
3
public boolean checkStalemate(boolean white) { for (int y = 0; y < 8; y++){ for (int x = 0; x < 8; x++){ if (board[x][y] != null) { if (board[x][y].isWhite() == white) { for (int yy = 0; yy < 8; yy++){ for (int xx = 0; xx < 8; xx++){ boolean isNewSpotEmpty = true; if (board...
9
@Override public void handleMouseWorld(int x, int y, int flag) { if (!Game.currentGame.isActiveScene(this)) return; if (Mouse.isButtonDown(1)) { if (!Mouse.isGrabbed()) Mouse.setCursorPosition(Display.getWidth() / 2, Display.getHeight() / 2); Game.currentGame.mouseGrabbed = true; if (Mouse.isButton...
4
protected Map<String, Class<?>> fillSupportedOperations() { Map<String, Class<?>> nameToClass = new HashMap<String, Class<?>>(); for (String name : getSupportedWriteOperations()) { String simpleName; if (name.startsWith("class")) { simpleName = name.split(":")[1];...
7
private static void verifySourceCodeHasCorrectPackageName(File currentFolder, PackDetails packDetails) throws IOException { final File srcFolder = new File(currentFolder, "src"); if (packDetails.KeyboardSourceCodeFile != null) verifySourceCodeFileHasCorrectPackageName(new File(sr...
3
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
6
public Person() { Name = " "; LastName = ""; ID = ""; Phone = ""; Mobile = ""; Email = ""; sex = ""; Birth = ""; this.Address = new Address("", "", "", "", "", "",""); Nationality = ""; YearsExperience = 0; CertTitles= new ArrayList<String>(); }
0
public String getSigla() { return sigla; }
0
public void write(TSLWriter writer,String name) throws IOException { if(objects_map.isEmpty() && strings_map.isEmpty()) { return; } TSLUtil.validateValueName(name); writer.startObject(name); writer.pushFormatter(); writer.getFormatter().setNewLine(!objects_map.isEmpty()); for(Map...
6
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed // TODO add your handling code here: liceu.Secretar s = new liceu.Secretar(); s.delClasa((String)clasaDeSters.getSelectedItem()); clasaDeSters.removeAllItems(); Buffere...
4
public RoomEvent getRoomEvent() { return roomEvent; }
0
private static boolean checkUserNamePassword(String userPass){ List<String> pass = xmlParser.getPasswordUser(); for (String s: pass){ if (s.equals(userPass)) return true; } return false; }
2
public boolean containsValue( Object val ) { byte[] states = _states; V[] vals = _values; // special case null values so that we don't have to // perform null checks before every call to equals() if ( null == val ) { for ( int i = vals.length; i-- > 0; ) { ...
8
private Object readJSON() throws JSONException { switch (read(3)) { case zipObject: return readObject(); case zipArrayString: return readArray(true); case zipArrayValue: return readArray(false); case zipEmptyObject: return new JSONO...
7
public static void vystupMapa(List<Mesto> list, List<Letiste> list2, File f, int bezSous) { // TODO Auto-generated method stub FileOutputStream stream; try { stream = new FileOutputStream(f); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream)); writer.append(String.valueOf(bezSou...
9
public void setMaxLocals(final int maxLocals) { if (code != null) { code.setMaxLocals(maxLocals); } }
1
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
7
private String parameterValueStringApiValue(final CycSymbol key, final Object val) { final Object cycListApiValue = parameterValueCycListApiValue(key, val); if (isProblemStoreSpecification(key, cycListApiValue)) { return problemStoreStringApiValue((List) cycListApiValue); } if (cycListApiValue ins...
2
public CipherReferenceType getCipherReference() { return cipherReference; }
0
private void setListener() { rBtn1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { showSelectTable(); } }); rBtn2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { showCourseTable(); } }); selectBtn.addAction...
8
private void updateLineContent(String content, boolean rendered) { String[] lineContents = content.split("\n"); if (lineContents.length == 0) { // lines.clear(); return; } if (node instanceof Line) { Line line = (Line) node; line.setConten...
7
@SuppressWarnings("unchecked") public static <K> K[] remove(K[] original, int removeIndex) { K[] returned = (K[]) new Object[original.length - 1]; if (removeIndex >= original.length) removeIndex = original.length - 1; for (int i = 0; i < removeIndex; ++i) returned[i...
3
public static void assertEquals(double[] expected, List<Double> actual) { if (expected.length != actual.size()) { Assert.fail("Array and list have different size. " + "Expected array: " + Arrays.toString(expected) + " Actual list: " + actual.toString()); } for (int i = 0; i < expected.length; i++) {...
3
public ConfigParserTest() { }
0
protected void startGame() { notifyNewGame(); discardCards(); shuffle(); community.clear(); doAntes(); doBlinds(); doneFlop = false; doneTurn = false; doneRiver = false; dealPlay...
7
public void parseAssert(boolean condition, String message) throws ParseException { if (!condition) { throw new ParseException(message + " (line " + lineNumber + ")", lineNumber); } }
1
void loadMotif() { if (verbose) Timer.showStdErr("Loading Motifs and PWMs"); //--- // Sanity checks //--- String pwmsFileName = config.getDirDataVersion() + "/pwms.bin"; if (!Gpr.exists(pwmsFileName)) fatalError("Warning: Cannot open PWMs file " + pwmsFileName); String motifBinFileName = config.getBaseF...
9
@Override public void execute(CommandSender sender, String[] args) { if (!CommandUtil.hasPermission(sender, PERMISSION_NODES)) { sender.sendMessage(plugin.NO_PERMISSION); return; } if (args.length < 1) { sender.sendMessage(ChatColor.RED + "/"+plugin.tpaHere+" (playername)"); return; } Proxi...
4
@Override public void draw(SpriteBatch batch, float parentAlpha) { if (MyStage.isCameraView(stage, x, y)) { update(Gdx.graphics.getDeltaTime()); if (isDead) { batch.draw(deadTexture, x - 32, y - 32, originX, originY, width, height, 1, 1, rotation); } else ...
4
public void loadMap(String name){ tiletypes = new ArrayList<Character>(); try { String dir = "/resources/"; String imagefile1 = "bush.png"; String imagefile2 = "grass.png"; String imagefile3 = "stone.PNG"; URL url = (getClass().getResource(dir+name)); if(GameGui.debug){ System.out.pr...
6
public Node getNode( int id ){ if( nodes.size() > 0 ){ for( Node node : nodes ){ if( node.getID() == id ){ return node; } } } return null; }
3
@SuppressWarnings("resource") @Override public void run() { int count = 0; String insert = "insert into outauthor(paperid,name,outauthors)values(?,?,?)"; try { PreparedStatement statement = sqLconnection.conn .prepareStatement(insert); for (String id : IDS) { List<String> citationIDs = getCitedID...
8
private void changeMachine() { boolean checkAll = false; outer:for (int i = 0 ; i < this.lobby.getMachines().size(); i++) { if (this.lobby.getMachines().get(i).isOn()) { checkAll = true; break outer; } } if (this.currentMachine != null) { this.currentMachine.setInUse(false); this.mone...
7
int readUtah(int row, int column, int numRows, int numColumns) { int currentByte = 0; if (readModule(row - 2, column - 2, numRows, numColumns)) { currentByte |= 1; } currentByte <<= 1; if (readModule(row - 2, column - 1, numRows, numColumns)) { currentByte |= 1; } currentByte <<=...
8
@Override public void run() { isRunning = true; while (isRunning) { try { Thread.sleep(5L); StringBuilder line = null; while ((line = new StringBuilder(reader.readLine())) != null) { network.addInboundMessage(Message.createClientMessage(null, line.toString())); } } catch (IOException | ...
3
public void testBinaryCycAccess3() { System.out.println("\n**** testBinaryCycAccess 3 ****"); CycAccess cycAccess = null; try { try { if (connectionMode == LOCAL_CYC_CONNECTION) { cycAccess = new CycAccess(testHostName, testBasePort); assert cycAccess.getCycLeaseManager() ...
4
public void notifyObserver(String str) { /* * if(str.matches("^0[0-9]+")) str = str.substring(1, str.length()); * * for(Observer obs : listObserver) obs.update(str); */ }
0
public boolean isPackage(char[][] parentPackageName, char[] packageName) { String fullName = CharOperation.toString(parentPackageName); if (packageName != null) { if (fullName.length() > 0) fullName += "."; fullName += new String(packageName); } if (findType(fullName) != null) return ...
4
public static void addSign(Arena arena, Sign sign){ if(sign != null){ ArrayList<Sign> arenaSigns = new ArrayList<Sign>(); if(signs.get(arena) != null){ arenaSigns = signs.get(arena); if(signs.get(arena).contains(sign)) return; } arenaSigns.add(sign); signs.put(arena, arenaSigns); File fichi...
5
public RealPlayer(BufferedImage image, int x,int y){ this.image = image; this.x=x; this.y=y; try { this.defualt=ImageIO.read(new File(FileLoader.class.getResource("spr_main.png").toURI())); } catch (IOException e) { e.printStackTrace(); } catch (URISyntaxException e) { e.printStackTrace(); } ...
2
private void pintarHistogramaRGB(short matrizR[][],short matrizG[][],short matrizB[][]) { Graphics g; Color color; imagen = createImage(getWidth(), getHeight()); g = imagen.getGraphics(); for(int i = 0; i < matrizR.length; i++) { for(int j = 0; j < matrizR[0].length; ...
5
public List<InlineLink> searchInlineLinks(InlineLink searchCriteria, String orderBy, Pagination pagination) { logger.info("start searchInlineLinks"); // convert to map Map<String, String> parameters = new HashMap<String, String>(); if(StringUtils.isNotBlank(searchCriteria.getTopicId())) ...
7