text
stringlengths
14
410k
label
int32
0
9
public boolean equals(final Object o) { if (!(o instanceof Method)) { return false; } Method other = (Method) o; return name.equals(other.name) && desc.equals(other.desc); }
2
public void changeDictionary(String filePath) { updateDictFile(filePath); if (!configFileUpdated) { try { duplicateConfigFile(); } catch (IOException e) { e.printStackTrace(); } } // Update the dict file info in the se...
9
public boolean estEntoureDeMurs() { int imax = Xsize() - 1; int jmax = Ysize() - 1; for (int i = 0; i < Xsize(); i++) { if (carte[i][jmax] != ContenuCase.MUR) return false; if (carte[i][0] != ContenuCase.MUR) return false; } for (int j = 0; j < Ysize(); j++) { if (carte[0][j] != ContenuCase.M...
6
public boolean checkIllustrationValues(String imageId, String name, String author){ boolean resultCheck = false; if(imageId.length() <= Model.getInstance().getIllustrationIdSize() && name.length() <= Model.getInstance().getIllustrationNameSize() && author.length() <= Model.getInstance().getIllustrationA...
8
public byte decodeWithMatchByte(com.swemel.sevenzip.compression.rangecoder.Decoder rangeDecoder, byte matchByte) throws IOException { int symbol = 1; do { int matchBit = (matchByte >> 7) & 1; matchByte <<= 1; int bit = rangeDeco...
3
@Override public String toString() {return String.valueOf(cur);}
0
public static void assign4ElementArrayFromYamlObject(float[] output, Object yamlObject) { if (!(yamlObject instanceof List)) throw new RuntimeException("yamlObject not a List"); List<?> yamlList = (List<?>)yamlObject; output[0] = Float.valueOf(yamlList.get(0).toString()); output[1] = Float.valueOf(yamlList...
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 fe...
6
public static void createFacility(int[][] blockSheet) { Scanner s = null; try { s = new Scanner(new File("res/facility/FacilityInfo.txt")); } catch (FileNotFoundException e) { e.printStackTrace(); } ArrayList<ArrayList<Integer>> textInfo = new ArrayList<ArrayList<Integer>>(); while(s.hasNext()) ...
5
public String getForcePanelCityName() { if (playerForce == null){ return ""; } else if (playerForce.getCityList().size() == 1) { return playerForce.getCityList().get(0).getCityName(); } else { return playerForce.getCityList().size() + ""; } }
2
@Override public int attack(double agility, double luck) { if(random.nextInt(100) < luck) { System.out.println("I just did a silenced attack!"); return random.nextInt((int) agility) * 2; } return 0; }
1
public void handleRestart() { restarting = true; if(config.getBoolean(ServerRestarterConfigNodes.CREATE_STATE_FILE)) { File file = new File(config.getString(ServerRestarterConfigNodes.STATE_FILE)); if(file.isDirectory()) getLogger().severe("Status file is a directory!"); try { file.createNewFile();...
4
public void visit(Graph<String, String>.Vertex v) { if (!done.contains(v.getLabel()) || fileInfoMap.get(v.getLabel()) < currTime) { circle.add(v.getLabel()); if (preReq.get(v.getLabel()) != null) { for (String x : preReq.get(v.getLabel(...
6
String finder(String s, int start, int currentMax) { if (s.length() - start <= currentMax) return null; int stop = start + currentMax - 1; for (int i = s.length() - 1; i > stop; i--) { if (isPalindorme(s, start, i)) { String next = finder(s, start + 1, i ...
5
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub JSONObject jb = new JSONObject(); String userId = request.getParameter("userId"); String eventName = new String( request.getParameter("eventName").getB...
6
public void insert(Key v) { // Insert pq[++N] = v; swim(N); // resizing if (N >= pq.length - 1) pq = resize(pq, 2 * pq.length); }
1
public static int DateOfWeekday(int date, int weekday) { if (weekday == 0) { return date; } int curweekday = date % 7; boolean isPos = false; if (weekday > 0) { isPos = true; } weekday = weekday % 7; if (weekday >= 0) { if (weekday == curweekday && isPos) { return date + 7; } else if (w...
9
public void createFolder(String folderName) throws UpYunExcetion { try { StringBuffer url = new StringBuffer(); for (String str : folderName.split("/")) { if (str == null || str.length() == 0) { continue; } url.append(Ur...
5
public TBlock createBlock(TBlkType type, Color cl, TBlockBox box) { TBlock blk = null; switch (type) { case Z: blk = new TBlock_Z(box); break; case ZOPPOSITE: blk = new TBlock_ZOpposite(box); break; case L: blk = new TBlock_L(box); break; case LOPPOSITE: blk = new TBlock_LOpposite(box);...
7
Object unpack(Info vi, Buffer opb){ InfoFloor0 info=new InfoFloor0(); info.order=opb.read(8); info.rate=opb.read(16); info.barkmap=opb.read(16); info.ampbits=opb.read(6); info.ampdB=opb.read(8); info.numbooks=opb.read(4)+1; if((info.order<1)||(info.rate<1)||(info.barkmap<1)||(info.numbo...
7
public void action(){ }
0
private String validateMnemonic(String mnemonic) { int space = mnemonic.indexOf(" "); // Get the location of the closest space if (space == 3) { mnemonic = mnemonic.substring(0, 3); // Get the 3 char mnemonic } else if (space == -1) ; // Mnemonic is the entire line for (String i : mnemonics) { if ...
4
private String getCipherInitString() { if (algName.equals("Blowfish")) { return "Blowfish/CBC/PKCS5Padding"; } else if (algName.equals("DES")) { return "DES/CBC/PKCS5Padding"; } else if (algName.equals("TripleDES")) { return "TripleDES/CBC/PKCS5Padding"; ...
5
private void classificationDiagramUpdate() { DefaultListModel definitiveModel = new DefaultListModel(); DefaultListModel dominantModel = new DefaultListModel(); DefaultListModel dangerousModel = new DefaultListModel(); DefaultListModel dependentModel = new DefaultListModel(); ...
8
@RequestMapping(value = "/speciality-list/{hallEventId}", method = RequestMethod.GET) @ResponseBody public SpecialityListResponse specialityList( @PathVariable(value = "hallEventId") final String hallEventIdStr ) { Boolean success = true; String errorMessage = null; List<...
1
public void buildLeft(PathQuad quad) { if(!quad.noChildren()) { this.buildLeft(quad.getChild(1)); this.buildLeft(quad.getChild(3)); } else if(!quad.isBlocked() && ((this.getBox().getY() >= quad.getBox().getY() && this.getBox().getY() < quad.getBox().getMaxY()) || (quad.getBox().getY() >= this.getBox().ge...
6
public SingleTreeNode uct() { SingleTreeNode selected = null; double bestValue = -Double.MAX_VALUE; for (SingleTreeNode child : this.children) { double hvVal = child.totValue; double childValue = hvVal / (child.nVisits + this.epsilon); childValue =...
3
public synchronized static void dealWith (final Throwable t) { // First, print the stack trace t.printStackTrace(); // Second, write the exception to a log file String osName = System.getProperty ("os.name"); String userHome = System.getProperty ("user.home"); String propertiesDirectory; if (osName....
8
public final int getCamsize() { return cam.size(); }
0
public ConfirmPaymentResponse confirmPayment(ConfirmPaymentRequest request) throws GongmingConnectionException, GongmingApplicationException { URL path = _getPath(CONFIRM_PAYMENT); ConfirmPaymentResponse response = _POST(path, request, ConfirmPaymentResponse.class); if (response.code != GMResponseCode...
1
public TrapStateTool(AutomatonPane view, AutomatonDrawer drawer, AddTrapStateController controller) { super(view, drawer); myController = controller; }
0
public void setVar(PVar node) { if(this._var_ != null) { this._var_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } ...
3
public boolean saveTemplate(){ try { writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file))); try { //writer.write(tabletoString(columnnames)); writer.newLine(); } catch (IOException e) { e.printStackTrace(); } writer.close(); return true; } catch (FileNotFoundE...
3
@Override public void run() { try { listenSocket = new ServerSocket(SERVER_PORT); System.out.printf("CommandListener listening on port %s.\n", SERVER_PORT); while (true) { dataSocket = listenSocket.accept(); System.out.printf("Accepted connection.\n"); ObjectInputStream ois = new ObjectInputStre...
5
protected static String getString(String name, JSONObject json, boolean decode) { String returnValue = null; try { returnValue = json.getString(name); if (decode) { try { returnValue = URLDecoder.decode(returnValue, "UTF-8")...
3
public TypedObject decodeInvoke(byte[] data) throws NotImplementedException, EncodingException { reset(); dataBuffer = data; dataPos = 0; TypedObject result = new TypedObject("Invoke"); if (dataBuffer[0] == 0x00) { dataPos++; result.put("version", 0x00); } result.put("result", decodeAMF0()); ...
2
@Override public Iterator getExtensions() { return extensions.keySet().iterator(); }
0
private void selectedOrderSleeve1() { if(ord == null) { txtOrderName2.setText(""); txtOrderId3.setText(""); lblSleeves.setText(""); } if(operator == null) { txtId.setText(""); txtName.setText(""); txtLast...
8
public static String md5Java(String message) { String digest = null; try { MessageDigest md = MessageDigest.getInstance("MD5"); byte[] hash = md.digest(message.getBytes("UTF-8")); //converting byte array to Hexadecimal String StringBuilder sb = new StringB...
3
public static int changeEnergy(float x, float y, int amount) { if (x < 0) x = 0; if (x > Game.width - 1) x = Game.width - 1; if (y < 0) y = 0; if (y > Game.height - 1) y = Game.height - 1; energy[(int) (x / 20)][(int) (y / 20)] += amount; if (energy[(int) (x / 20)][(int) ...
5
private void manageClients() { manage = new Thread(this, "Manage") { public void run() { while (running) { sendToAll("/i/server"); try { Thread.sleep(2000); } catch (InterruptedException e) { e.printStackTrace(); } for (int i = 0; i < clients.size(); i++) { ServerClie...
5
@Override public void serialEvent(SerialPortEvent event) { if (!event.isRXCHAR()) {//Ensure data is avaiable return; } if (event.getEventValue() <= 0) {//Ensure there is data to read return; } //Get the data from the se...
8
public KeyType createKeyType() { return new KeyType(); }
0
private Drawable parseDrawable() { String token = this.scanner.next(); Drawable drawable = null; if ("Circle".equals(token)) { // Circleの場合 int x = this.scanner.nextInt(); int y = this.scanner.nextInt(); int r = this.scanner.nextInt(); drawable = new Circle(x, y, r); } e...
6
public int getVidas(){ return this.vidas; }
0
public static void removeDuplicates(char[] str) { if (str == null) return; int len = str.length; if (len < 2) return; int tail = 1; for (int i = 1; i < len; ++i) { int j; for (j = 0; j < tail; ++j) { if (str[i] == str[j]) break; } if (j == tail) { str[tail] = str[i]; ++tail; }...
6
public int checkDiag() { int found = 0; boolean same; char[][] checker = new char[2][3]; int x = 0; int y = 0; for(x=0; x<ROWCOL; x++, y++){ checker[0][x] = titato[x][y]; } for(x=2, y=0; y<ROWCOL; x--,y++) { checker[1][y] = titato[x][y]; } for(x=0; ((x<DIAGS) && (found==0)); x++) { same ...
5
public boolean esta(Nodo x) { if (nodos.isEmpty()) { return false; } for (Nodo n : nodos) { if (x.equals(n)) { return true; } } return false; }
3
public Schematic(String resourceName) { Scanner sc = new Scanner(getClass().getResourceAsStream(resourceName)); Vector<String> lines = new Vector<>(); while (sc.hasNextLine()) lines.add(sc.nextLine()); this.height = lines.size(); int h = 0, w, d; for (String line : lines)...
9
public static boolean sudoku(int[][] feld) { // 1-9 durchgehen for (int zahl = 1; zahl <= 9; zahl++) { // vorbelegen, dass Zahl nicht gefunden wurde boolean gefunden = false; // Sudoku feld nach Zahl absuchen for (int i = 0; i < feld.length; i++) { for (int j = 0; j < feld[i].length; j++) { if...
5
@Override public Object getValueAt(int row, int col) { Entry entry; try { entry = dic.getEntry(ids.get(row)); } catch (Exception ex) { return Localization.getInstance().get("error") + " " + ex; } switch(col) { case 0: return escapeString(entry.getWord()); case 1: return escapeString(entry.get...
5
@Override public void applyMoveAction(double s_elapsed) { switch (next_action.move) { case NONE: double move_velocity = Math.hypot(move_x_velocity, move_y_velocity); double delta = s_elapsed * SPEED_DECREASE_PER_SECOND * move_x_velocity / move_velocity; if (Math.abs(move_x_velocity) ...
9
public boolean newProductoAction(String id_productos, String nombre, String cantidad, String precio_venta, String descripcion) throws SQLException, EmptyFieldException { boolean res; conn = ConexionBD.getInstance(); if(id_productos.isEmpty() || nombre.isEmpty() |...
5
public void setRequestWrapper(RequestWrapper requestWrapper) { this.requestWrapper = requestWrapper; }
0
protected void rotateRight(Node<T> node) { Position parentPosition = null; Node<T> parent = node.parent; if (parent != null) { if (node.equals(parent.lesser)) { // Lesser parentPosition = Position.LEFT; } else { // Greater ...
6
public CommandResult getDBStats() { return db.getStats(); }
0
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if (o == typeComboBox) { if (myRecipe != null) { selectedRow = notesTable.getSelectedRow(); myRecipe.setNoteType(selectedRow, (String)typeComboBox.getSelectedItem()); if(((JComboBox)o).isPopupVisible() && (String)typeCombo...
9
public static void select(GlkEvent e) { long cur = 0l; GlkEvent ev = null; boolean done = false; synchronized(EVENT_QUEUE) { if (Window.root != null) Window.root.doLayout(); while (!done) { if (!EVENT_QUEUE.isEmpty()) { ev = (GlkEvent) EVENT_QU...
9
private void runBlottoProblem(Evolution evo){ int generations = Integer.parseInt(generationsField.getText()); int populationSize = Integer.parseInt(populationSizeField.getText()); double[] avgEntropy = new double[generations]; double[] stdDev = new double[generations]; L...
7
public void evolvePlayers() { for (NPC npc : NPC.getNPCList()) { Direction nextDir = npc.getCurrentDirectionInScript(); Move move = npc.getMove(); if (nextDir != Direction.NONE) { if (!npc.canWalkOnSquare(nextDir)) { npc.setPosture(Posture...
5
public static void printHand(Hand hand) { // print hand header ArrayList<String> attrs = new ArrayList<String>(3); if(!hand.getDescription().equals("")) attrs.add(hand.getDescription()); attrs.add("score: " + hand.getScoreString()); if(hand.getBet() > 0.0f) attrs.add("bet: $" + hand.getBet()); outpu...
8
public EchoFilter(int numDelaySamples, float decay) { delayBuffer = new short[numDelaySamples]; this.decay = decay; }
0
public void faceObject(Entity obj){ if (obj==null) return; float dx = obj.getPosition().x - getPosition().x; if(dx > 0 && facingLeft) changeDirection(); else if(dx < 0 && !facingLeft) changeDirection(); }
5
private static void begin() { Scanner sc = new Scanner(System.in); while (sc.hasNextLine()) { StringTokenizer st = new StringTokenizer(sc.nextLine()); int nbrInts = Integer.parseInt(st.nextToken()); if (nbrInts <= 0) { System.out.println("Not jolly");...
9
public static void setLevel(Block block, int level) { if (!isApplicable(block)) return; TileEntityBeacon beacon = (TileEntityBeacon) ((CraftWorld) block .getWorld()).getHandle().getTileEntity(block.getX(), block.getY(), block.getZ()); Field lvl = null; try { lvl = TileEntityBeacon.class.getDeclaredFi...
5
public List<Warehouse> getWarehouseByBranch(int branchid) { List<Warehouse> warehouses = new ArrayList<Warehouse>(); Connection con = null; Statement stmt = null; try { DBconnection dbCon = new DBconnection(); Class.forName(dbCon.getJDBC_DRIVER()); con = D...
5
private void processIdentifiers(Expression e) { String type=e.getType(); if(type.equals("identifier")) { identifiers.add(e.getValue()); } for (int i = 0; i < Expression.unaryTypes.length; i++) { if (type.equals (Expression.unaryTypes[i])) { processIdentifiers(e.getSubexpression()); } ...
5
public void setDateNull() { for (int i = 0; i < 42; i++) { labelDay[i].setText(""); } }
1
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Domain)) return false; Domain other = (Domain) obj; if (price == null) { if (other.price != null) return false; } else if (!price.equals(other.price)) return fa...
9
public static void main (String[] args) { int meanGoal = 5; //arrival interval of people int m = 10; //15; //amount of numbers needed int n = m; //3000; Random tmpRnd = new Random(); Exponential p0 = new Exponential(meanGoal, tmpRnd); System.out.println("First " + m + " of ...
2
public Image getTileImage(int x, int y){ switch(level.fields[y][x]){ case dest: return iDest; case floor: return iFloor; case grass: return iGrass; case src: return iSrc; case wall: return iWall; default: return null; } }
5
public void setDefinition(String value) { this.definition = value; }
0
public static void main(String[] args) { Input objInput = new Input(); boolean blnGoon = true; do { switch(Main.showMenu()) { case 1: System.out.println("[1] Encrypt text\n\n" + "Please enter the text you whant...
6
public int compareTo(final Object o) { Item other = (Item) o; int retVal = name.compareTo(other.name); if (retVal == 0) { retVal = desc.compareTo(other.desc); } return retVal; }
1
public ArrayList<int[]> getWalk() { return walkList; }
0
private void processIdentifiers(Expression e) { String type=e.getType(); if(type.equals("identifier")) { identifiers.add(e.getValue()); } for (int i = 0; i < Expression.unaryTypes.length; i++) { if (type.equals (Expression.unaryTypes[i])) { processIdentifiers(e.getSubexpression()); } ...
5
public void addPoint(float x, float y) { if (includes(x,y) && (!allowDups)) { return; } ArrayList tempPoints = new ArrayList(); for(int i=0;i<points.length;i++) { tempPoints.add(new Float(points[i])); } tempPoints.add(new Float(x)); tempPoints.ad...
8
public Integer board(Integer newPassengers) throws TrainException { if (newPassengers < NO_PASSENGERS) { throw new TrainException( "The number of new train passengers must by positive"); } if (trainSeatsAbility == NO_SEATS) { throw new TrainException("There are no seats on the train."); } // If ...
9
private boolean checkForOutOfBoundsForPiece(Piece piece) { int x = piece.getX(); int y = piece.getY(); if (x > width || x < 0 || y < 0 || y > height) { return true; } return false; }
4
private void renderCurrentPlayer(Graphics2D graphics) { if (objectTron.getPlayerNumber(objectTron.getActivePlayer()) == 0) graphics.drawImage(playerRed, 41 + startPointXCoordinate, 41 + startPointYCoordinate, 40, 40, null); else graphics.drawImage(playerBlue, 41 + startPointXCoordinate, 41 + startPo...
1
public String getCardStatusInformation() { String cardInfo = ""; // card value, card suit, x-position of the card, y-position of the card, the card has been removed boolean and, lastly, the card is face up boolean cardInfo = value + " " + suit + " " + cardArea.x + " " + cardArea.y + " " + hasB...
0
static String readAndValidate(File file) { StringBuilder source = new StringBuilder(); try { int lineNumber = 1; String line; int nestedLoops = 0; BufferedReader reader = new BufferedReader(new FileReader(file)); while ((line = reader.readLin...
7
public static Segment intersectionTrianglePlan(Face f, double z) { Point a = intersectionSegmentPlan(f.p1, f.p2, z); Point b = intersectionSegmentPlan(f.p2, f.p3, z); Point c = intersectionSegmentPlan(f.p3, f.p1, z); if (b != null && c != null) { return new Segment(b, c); } else if (a != null && c != null...
6
private void doDestroy() throws Exception { serverStopListenerList = null; clientConnectListenerList = null; clientDisconnectListenerList = null; receiveDataOnServerListenerList = null; serverExceptionListenerList = null; setConnections(null); setInitial(false); }
0
public void deleteCourseByName(Scanner a_scan, Student s1) { for (int i = 0; i < test.getStudentList().size(); i++) { if (s1.equals(test.getStudentList().get(i))) { System.out.println("Please input course name: "); String courseName = a_scan.next().toLowerCase(); Course a_course = findCourse(co...
3
private int calcNumberOfNodes(double serialProb, double pow2Prob, double uLow, double uMed, double uHi, double uProb) { double u = random.nextDouble(); if (u <= serialProb) {// serial job return 1; } double par = twoStageUniform(uLow, uMed, uHi, uProb); if (u <= (serialP...
3
public WidgetUnits(List<core.GroupOfUnits> u1, List<core.GroupOfUnits> u2, core.Hero h1, core.Hero h2) { super(); units1 = u1; units2 = u2; hero1 = h1; hero2 = h2; setSizePolicy(Policy.Fixed, Policy.Fixed); left.setMaximumSize(32, 32); right.setMaximumSize(32, 32); split.setMaximumSize(32, 3...
1
private PDFPage createPage(int pagenum, PDFObject pageObj) throws IOException { int rotation = 0; Rectangle2D mediabox = null; // second choice, if no crop Rectangle2D cropbox = null; // first choice PDFObject mediaboxObj = getInheritedValue(pageObj, "MediaBox"); if...
4
public void printChildren(Graphics g) { }
0
public static void main (String[] args){ int beerNum = 99; String word = "bootles"; while (beerNum > 0 ){ if (beerNum == 1 ){ word = "bootles"; //no singular como em uma garrafa } System.out.println("beerNum "+ " word "+ "of beer on the wall");// O erro eram sinais ++ juntos ou repetidos System.out...
3
private int LoadMapFromFile(String mapFilename) { String s = ""; BufferedReader in = null; try { in = new BufferedReader(new FileReader(mapFilename)); int c; while ((c = in.read()) >= 0) { s += (char)c; } ...
3
public static void moveSelectedX(int x) { if (Main.selectedId != -1 && !Main.getSelected().locked) { RSInterface rsi = Main.getInterface(); if (rsi != null) { if (rsi.children != null) { rsi.childX.set(getSelectedIndex(), rsi.childX.get(getSelectedIndex()) + x); } } } }
4
private boolean versionCheck(String title) { if (this.type != UpdateType.NO_VERSION_CHECK) { final String localVersion = this.plugin.getDescription().getVersion(); if (title.split(delimiter).length == 3) { final String remoteVersion = title.split(delimiter)[2].split(" ")[...
5
protected boolean isPrimitiveType(String typeSignature) { if (typeSignature == null) return true; if (typeSignature.equals("Ljava/lang/String;")) return true; if (typeSignature.equals("Ljava/lang/Integer;")) return true; if (typeSignature.equals("Ljava/lang/Double;")) return true; if (typeSignature.equals("Lj...
9
public static String fastUnicode(String str) { byte[] bytes = str.getBytes(Charsets.UTF_16);// 转为UTF-16字节数组 int length = bytes.length; if (length > 2) { int i = 2; char[] chars = new char[(length - i) * 3]; int index = 0; boolean isOdd = false; for (; i < length; i++) { if (isOdd = !isOdd) { ...
3
public void playSong(String song) { //Don't play a song if the jukebox has been muted if(muted) { return; } //If no song with that name exists if(!songs.containsKey(song)) { System.err.println("Breakout: No song called " + song + " exists"); return; } //Stops and rewinds the current so...
3
public void testToDateTime_wrongChronoLocalTime_Zone() { LocalDate base = new LocalDate(2005, 6, 9, COPTIC_PARIS); // PARIS irrelevant LocalTime tod = new LocalTime(12, 13, 14, 15, BUDDHIST_TOKYO); try { base.toDateTime(tod, LONDON); fail(); } catch (Ille...
1
public void turnRight() { handler.sendCommand("right"); }
0
@Override public void run() { for (final Xpp3Dom testCase : results.getChildren()) { apply(testCase); } }
1
public String getArrowDotSvek() { if (this == LinkDecor.NONE) { return "none"; } else if (this == LinkDecor.EXTENDS) { return "empty"; } else if (this == LinkDecor.COMPOSITION) { if (OptionFlags.NEW_DIAMOND) { return "empty"; } return "diamond"; } else if (this == LinkDecor.AGREGATION) { i...
8