text
stringlengths
14
410k
label
int32
0
9
private boolean setCategory(int index) { final String currentCategory = getCategory(); final String[] categorys = getCategorys(); if (categorys.length > index) { final String target = categorys[index]; if (currentCategory.equalsIgnoreCase(target)) { return true; } Component child = ctx.widgets.c...
7
@Override protected void parseSelf(Document doc) throws ProblemsReadingDocumentException { List<Element> scriptList = queryXPathList(SCRIPT_DESC_XPATH, doc); for (Element el: scriptList) { String rawData = el.getText(); // clear JavaScript escaping: "\/" --> "/", etc. rawData = rawData.replaceAll("\\...
9
public Matrix[] invPsvd () { Matrix[] residueMat = residue.getMatrix(); Matrix[] diagMat = diag.getMatrix(); Matrix[] decStackedToOneColMat = new Matrix[3]; decStackedToOneColMat[0] = reshapedProductUVBaseMat[0].times(diagMat[0]).plus(residueMat[0]).timesEquals(255.0); if (codeC...
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...
6
private boolean AddIncomingTab(InetAddress ip) { LinkedList<User> clients = this.client.getUsers(); for (User user : clients) { if (user.getIP().equals(ip)) { if (nextKeyEvents > (keyEvents.length - 1)) { new Popup( user.getName() + " tried to start a private chat with you. However you r...
4
@Override public void executeMsg(final Environmental myHost, final CMMsg msg) { super.executeMsg(myHost,msg); if((affected!=null) &&(affected instanceof MOB) &&(msg.amISource((MOB)affected)||msg.amISource(((MOB)affected).amFollowing())||(msg.source()==invoker())) &&(msg.sourceMinor()==CMMsg.TYP_QUIT)) { ...
7
public MainToolBar() { // Format those buttons to look natural (no background, border, etc) upButton.setMargin(new Insets(0, 0, 0, 0)); upButton.setBorder(null); upButton.setOpaque(false); upButton.setContentAreaFilled(false); upButton.setBorderPainted(false); upButton.setEnabled(false); upButton.setFo...
8
public BTnode postOrderTraversal(BTnode root) { BTnode left, right; if(root == null) return null; if(root.left == null && root.right == null) return root; left = postOrderTraversal(root.left); right = postOrderTraversal(root.right); //if(right != null) //{ //for(;right.left != n...
6
public BufferedImage loadImage(String fnm) { BufferedImage im = null; try { im = ImageIO.read(ImageLoader.class.getResource(fnm)); } catch (IOException e) { //System.out.println("Load Image error for " + fnm + ":\n" + e); } return im; }
1
@Override public void init(ServletConfig config) throws ServletException { ServletContext sc = config.getServletContext(); String log4jLocation = config.getInitParameter("log4j-properties-location"); File propFile = new File(sc.getRealPath("/") + log4jLocation); if (propFile.exists()...
1
private void createT(String in1, String out) { TFlipFlop t = new TFlipFlop(); // Connect the first input // Check if the in wire is an input if (stringToInput.containsKey(in1)) { Wire inWire = new Wire(); stringToInput.get(in1).connectOutput(inWire); t.connectInput(inWire); } // Check if the in...
5
void swap(ArrayList<Item> al,int item1, int item2) { Item temp = al.get(item1); al.set(item1, al.get(item2)); al.set(item2, temp); }
0
private JLabel getJLabel0() { if (jLabel0 == null) { jLabel0 = new JLabel(); jLabel0.setText("DATABASE TOOL"); } return jLabel0; }
1
private void openServerSocket() { try { this.serverSocket = new ServerSocket(this.serverPort, 0, address); isRunning = true; } catch (IOException e) { isRunning = false; this.serverSocket = null; isStopped = true; Setup.println("[Fo...
1
public static void printObjectType(Object o) { if (o instanceof Cat) { System.out.println("Кошка"); } else if (o instanceof Dog) { System.out.println("Собака"); } else if (o instanceof Bird) { System.out.println("Птица"); } ...
4
public void setTwitterModel(TwitterModel twitterModel) { this.twitterModel = twitterModel; }
0
public boolean stopTransaction() throws DatabaseManagerException { if( inTransaction ) { if( conn == null ) { throw new IllegalStateException("Connection closed!"); } try { conn.setAutoCommit(originalCommit); inTransaction = false; } catch(SQLException e) { throw new DatabaseManagerExcept...
3
public Map<String, SubCommand> getCommandList() { return commands; }
0
public static int maxPathSum(TreeNode root) { if (null == root) return 0; List<Integer> max = new ArrayList<Integer>(); maxSinglePathSum(root, max); int res = root.val; for (Integer i : max) { if (i > res) res = i; } return res; }
3
private final String lock2key(String lock) { String key_return; int len = lock.length(); char[] key = new char[len]; for (int i = 1; i < len; i++) key[i] = (char) (lock.charAt(i) ^ lock.charAt(i - 1)); key[0] = (char) (lock.charAt(0) ^ lock.charAt(len - 1) ^ lock.charAt(len - 2) ^ 5); for (int i = 0; i <...
9
private String printTree(ClassifierTreeNode parent) { String line = "\n|"; for (int i = 0; i < parent.getLevel(); i++) { line += "-"; } line += parent.getFeature().getName(); if (!parent.getChildren().isEmpty()) { for (ClassifierTreeNode node : parent.getC...
3
public Nodo getObjetivo() { ArrayList<Nodo> nodos = estado.getAdyacentes(estado.getActual()); int max = 0; Nodo dest = null; for (Nodo n : nodos) { if (max < memoria.getNode(n.id).score) { max = (int) memoria.getNode(n.id).score; dest = n; } } if (dest == null) {// No deberia hacerse esto, pe...
3
public String addBinary(String a, String b) { StringBuilder builder = new StringBuilder(); int ia = a.length() - 1; int ib = b.length() - 1; int carry = 0; while (ia >= 0 || ib >= 0) { int d1, d2; if (ia >= 0) { d1 = a.charAt(ia) - '0'; ...
5
public void paint(Graphics g) { if (g == null) return; if (image == null) { image = canvas.createImage(IMG_TOTWIDTH, IMG_TOTHEIGHT); g2 = image.getGraphics(); g2.setFont(new Font("Monospaced", Font.PLAIN, 11)); } if (crtImage == null) { crtImage = new BufferedImage(displa...
9
public Line(String type, Level l) { this.level = l; this.line = type; if (line.contains("|")) { String connect = line.split("\\|")[1]; String[] parameter = connect.split(","); if (parameter[0].equals("ACTIVATE")) { level.connect(parameter[1]).active = false; } } try { TextureImpl.unbind(); ...
4
AES256v2HeaderData(byte[] data) throws InvalidDataException { Validate.notNull(data, "Data cannot be null."); // Need the header to be able to determine the length if (data.length < AES256v3Ciphertext.HEADER_SIZE) { throw new InvalidDataException("Not enough data to read header."); } int ind...
7
public static <R> ImmutableGrid<R> copyOfDeriveCounts(Iterable<? extends Cell<R>> cells) { if (cells == null) { throw new IllegalArgumentException("Cells must not be null"); } if (cells.iterator().hasNext() == false) { return new EmptyGrid<R>(); } int rowC...
4
public void setName(String name) { if(!name.equals("") || name != null) { synchronized (Person.class) { if (!name.equals("") || name != null) { this.name = name; System.out.println(name); } } } }
4
public long getLong(String key) throws JSONException { Object object = this.get(key); try { return object instanceof Number ? ((Number)object).longValue() : Long.parseLong((String)object); } catch (Exception e) { throw new JSONException("JS...
2
private static Number appropriateParseFor(String text, Class<? extends Number> numberFormat) throws NumberFormatException { if(numberFormat == Long.class){ return Long.parseLong(text); } else if(numberFormat == Integer.class){ return Integer.parseInt(text); } ...
5
@Override public Parameter getParameter(final int parameterIndex) { Parameter parameter; switch (parameterIndex) { case 0: case 1: parameter = super.getParameter(parameterIndex); break; case 2: parameter = rate; ...
8
private void followingItem(T infix, int degree) throws ShouldNotBeHereException, BadNextValueException { switch(degree) { case 0: if(((String)infix).matches(OPERAND) || ((String)infix).matches(PARA1)) // no number or parenthesis {throw new BadNextValueException("Opening parenthesis or number following ...
7
protected void setSingleReachable() { if (getParent() != null) getParent().setReachable(); }
1
public String toString() { if (uninitialized()) { return "NO SUCH ROUTE"; } return Integer.toString(length); }
1
private void handleUpdate() { // We can simplify this when we move more methods into the Preference Interface. if (pref instanceof PreferenceHashMap) { // Update pref PreferenceHashMap prefHashMap = (PreferenceHashMap) pref; DefaultTableModel model = (DefaultTableModel) table.getModel(); HashMap...
5
public static String js(){ return "<script type=\"text/javascript\">\n" + "\n" + " $(document).ready(function() {\n" + " $('table')\n" + " .bind('filterEnd', function () {\n" + " var f = $.tablesorter.getFilters( $(this)...
0
int getPositive(int i){ int octaveOffset = i/ Constants.NOTES_IN_SCALE; int mod = i% Constants.NOTES_IN_SCALE; int noteOffset = 0; if(mod > 0){ switch(mod){ case 6: noteOffset += steps[5]; case 5: noteOffset += steps[4]; case 4...
7
private long removeRefAskData(long lIndex) { // // loop through the elements in the actual container, in order to find the one // at lIndex. Once it is found, then loop through the reference list and remove // the corresponding reference for that element. // AskData refActualElement = GetAskData(lIndex); if (r...
5
public void sort(int [] intArray,int sequenceflag){ System.out.println("您调用的是选择排序算法"); int flag=0; int max=intArray[0]; long startTime=System.nanoTime(); for(int i=intArray.length-1;i>0;i--) { //寻找最值放在最后 for(int j=0;j<i;j++){ if(intArray[j] > max) { max=intArray[j]; flag=j; } ...
5
private List<Integer> quicksort(List<Integer> input) { if(input.size() <= 1) { return input; } int middle = (int) Math.ceil((double)input.size() / 2); int pivot = input.get(middle); List<Integer> less = new ArrayList<Integer>(); List<Integer> greater = new ArrayList<Integer>(); for (int i = 0; i...
4
public int[][] getBlockSheet() { return blockSheet; }
0
String represent(String s) { if (s.length() == 1) return s; String s1 = represent(s.substring(0, s.length() / 2)); String s2 = represent(s.substring(s.length() / 2 + 1)); if (s1.compareTo(s2) > 0) return s2 + s1; return s1 + s2; }
2
public boolean canHaveAsCreditLimit(BigInteger creditLimit) { return (creditLimit != null) && (creditLimit.compareTo(BigInteger.ZERO) <= 0); }
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...
6
private BigInteger findFactor(){ BigInteger sq = BigInteger.ONE.add(BigInteger.ONE); while(!limit.mod(sq).equals(BigInteger.ZERO) && (sq.compareTo(limit)<=0)){ sq = sq.add(BigInteger.ONE); } System.out.println("Found 1st factor "+sq); if (sq.compareTo(limit)>0) return sq; BigInteger lq = limit.di...
9
private void checkForErrors() { // Retrieve the type of error from OpenGL. int error = glGetError(); switch (error) { case GL_NO_ERROR: break; case GL_INVALID_ENUM: gameWorld.error(RenderingSystem.class, "OpenGL error: GL_INVALID_ENUM"); ...
6
@Test public void testPlus(){ //ReversePolishNotationCalculator calculator = new ReversePolishNotationCalculator(); calculator.pushOperand(3.0); calculator.pushOperand(2); System.out.println(calculator.operandsToString()); calculator.pushPlusOperator(); System.out.println(calculator.operatorsToString())...
0
@Basic @Column(name = "FES_USUARIO") public String getFesUsuario() { return fesUsuario; }
0
public int getNextBlock() { for(int i = 0; i < this.blocks.length; i++){ if(blocks[i] == null) return i; } return -1; }
2
private boolean addGroupsFrame(){ boolean ret = false; try { // Создадим поле ввода JTextField num = new JTextField(); // загрузим данные для комбобокса Faculty[] facultys = ua.edu.odeku.pet.database.data.GetDataTable.getFacultys(); // создадим...
9
public RseqVNode(AbsValueNode n1, AbsValueNode n2, AbsValueNode n3, int line) { super(line); if (n1 != null && n2 != null && n3 != null) setChildren(n1, n2, n3); }
3
@Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Sale)) { return false; } Sale other = (Sale) object; if ((this.id == null && other.id != null) || (this.id != n...
5
private synchronized void sendInfoPacket(Sim_event ev) { IO_data data = (IO_data) ev.get_data(); Object obj = data.getData(); // gets all the relevant info long size = data.getByteSize(); int destId = data.getDestID(); int netServiceType = data.getNetServiceLevel(); ...
3
@Override public boolean validaEscalao(int anoNascimento, int epoca) { if ((epoca-anoNascimento) ==14 || (epoca-anoNascimento) == 15) return true; else return false; }
2
private void fillTechnicalData(float[][] dailyData, float[] rawData) { // construct technical data // 82 - 171 // 82 = month // 83 = day // 84 = year // 85-90 = 6 daily data points // repeats 10 times // System.out.println(" -------------- --------------------- -----"); for (int x ...
4
public void appendBall(Ball ball) { balls.add(ball); }
0
public void printVlootStatus(Board board) { StringBuffer sunken = new StringBuffer(); StringBuffer notSunken = new StringBuffer(); for (Boat b : fleet) { if (b.getSunken(board)) { sunken.append(b.toString() + "\n"); } else { notSunken.append(b.toString() + "\n"); } } if (!notSunken.toSt...
4
public New(){ //create a ProcessList or queue }
0
private byte[][] GenerateCollisionMap(boolean[][]Map) { byte[][] CollisionMap = new byte[this.GrabModel().MapSizeX][this.GrabModel().MapSizeY]; for(int x = 0; x < this.GrabModel().MapSizeX; x++) //Loopception courtesy of Cobe & Cecer { for(int y = 0; y < this.GrabModel().MapSizeY; y++) { if (FurniC...
4
public void printMaxMin() throws Exception { if (inFile==null) throw new Exception("bad"); String sBuf=inFile.readLine(); int iNum=Integer.valueOf(sBuf); System.out.println("number of members: " + iNum); HashMap<String, Integer> map=new HashMap<String, Integer>(iNum); while (true) { try { // read ...
8
public EditWindow(Box box) { Font used = new Font ("Segoe UI", Font.PLAIN, 20); Font other = new Font ("Segoe UI", Font.PLAIN, 14); JPanel content = new JPanel (new GridBagLayout());//panel to display the information GridBagConstraints c = new GridBagConstraints();//layout Box b = box; d = b.getDayStored()...
0
public static AHCGraph getGraphFromImageCSVFile(String path){ AHCGraph graph = null; BufferedReader br = null; String line = ""; String cvsSplitBy = ","; double max = -1000; try { br = new BufferedReader(new FileReader(path)); int rowNum = 0; boolean isFirst = true; while ((line = br.readLine()) != null...
9
private static void writeWatchableObject(DataOutputStream par0DataOutputStream, WatchableObject par1WatchableObject) throws IOException { int i = (par1WatchableObject.getObjectType() << 5 | par1WatchableObject.getDataValueId() & 0x1f) & 0xff; par0DataOutputStream.writeByte(i); switch (par1W...
7
public boolean merge(Frame frame) { boolean changed = false; // Local variable table for (int i = 0; i < locals.length; i++) { if (locals[i] != null) { Type prev = locals[i]; Type merged = prev.merge(frame.locals[i]); // always replace...
5
public boolean ignoreMethod(final MemberRef method) { if (ignoreMethods.contains(method)) { return (true); } else if (ignoreClass(method.declaringClass())) { addIgnoreMethod(method); return (true); } return (false); }
2
private int defense(State s){ int def = 10; int natk = 0; State ns; MyList moves = s.findMoves(); Iterator it = moves.iterator(); Move m;// = (Move) it.next(); //ns = s.tryMove((Move) m); //natk = attack(ns, s); while (it.hasNext()){ m = (Move) it.next(); ns =...
2
@Test public void testEqualsAndHashCode() { final List<Node> nodes = new ArrayList<Node>(); final DCRGraph graph = new DCRGraph(); final Random random = new Random(); for (int i = 0; i < 10; ++i) { final Node node = new Node(); node.setGtCluster(new OrdinaryCluster(graph, random.nextDouble())); nod...
9
@Override public void handleIt(Object... args) { while (!authentication) { Scanner input = new Scanner(System.in); // Getting authentication information from user System.out.print("Please enter your username: "); userName = input.next(); System.out.print("Please enter your password: "); userPass...
5
@Override public void ejecutar(Stack<Valor> st, MemoriaDatos md, Cp cp) throws Exception { if (st.size() < 2) throw new Exception("IGUAL: faltan operandos"); Valor op1 = st.pop(); Valor op2 = st.pop(); if (op1 instanceof Booleano && op2 instanceof Booleano) { st.push(new Booleano(((boolean) op1.get...
5
private void shift(int delta) { double[] old = new double[values.length]; System.arraycopy(values, 0, old, 0, values.length); int oldIndex = delta; for (int i = 0; i < values.length; i ++) { if (oldIndex >= 0 && oldIndex < values.length) { values[i] = old[oldIndex]; } oldIndex ++; } i...
6
public City getCityAt(Position p) { if ( p.getRow() == 1 && p.getColumn() == 1 ) { return new City() { public Player getOwner() { return Player.RED; } public int getSize() { return 1; } public String getProduction() {return null;} public String getWorkforceFocus() {return null;} public int getP...
5
@Override public int hashCode() { int hash = 0; hash += (name != null ? name.hashCode() : 0) + (releaseForm != null ? releaseForm.hashCode() : 0) + (ages != null ? ages.hashCode() : 0) + (quantityPerPack != null ? quantityPerPack.hashCode() : 0); ...
4
@Override public void render(GameContainer gc, Graphics g) { // TODO Auto-generated method stub if(isHealthy) { //g.drawString("Rendering " + facing + " - " + position.getX() + ", " + position.getY(), 10, 60); _animation[facing].draw(position.getX(), position.getY()); } }
1
public void createPiece (Piece _piece, int n){ Vecteur<Integer> points[] = _piece.getForme().getPoints(); for (int i = n*4; i<n*4+4;i++){ for (int j=0; j<4;j++){ this.setValueAt(new ImageIcon (getClass().getResource("/images/Frames/vide.png")), i, j); } } ...
3
public Priority(){}
0
public void inserir(Cliente c) { Statement st; Connection con; try { Class.forName("org.postgresql.Driver"); } catch (ClassNotFoundException ex) { Logger.getLogger(JanelaLogin.class.getName()).log(Level.SEVERE, null, ex); } try { con = ...
7
public void CreateDirectory(Message message, int opID) { String filepath = message.filePath; System.out.println("Trying to create file path: "+ message.filePath); if (!NamespaceMap.containsKey(filepath)) { // directory doesn't exist if(AddExclusiveParentLocks(filepath, opID)) { File path = new File(file...
9
private void updateBuyOption() { if(model.getBuyOptionState() == Model.BuyOptionState.DEACTIVATED) { buyOption.setEnabled(false); } else { buyOption.setEnabled(true); } switch(model.getBuyOptionState()) { case PURCHASABLE: buyOptionText = "Feld kaufen (" + model.getPurchasablePrice() + ")"; br...
5
private void initPageAnnotations() throws InterruptedException { // find annotations in main library for our pages dictionary Object annots = library.getObject(entries, ANNOTS_KEY.getName()); if (annots != null && annots instanceof Vector) { Vector v = (Vector) annots; an...
8
public int get(int key){ LinkedNode root = this; if(root == null){ return -1; } while(root!=null){ if(root.getKey() == key){ return root.getValue(); } root = root.getNext(); } return -1; }
3
public CommandGroup getCurrentGroup() { return activeChild == null ? this : activeChild.getCurrentGroup(); }
1
public int rootState_dispatchEvent(short id) { int res = RiJStateReactive.TAKE_EVENT_NOT_CONSUMED; switch (rootState_active) { case EmergencyStopped: { res = EmergencyStopped_takeEvent(id); } break; ...
7
public void setCantCompany(int cantCompany) { CantCompany = cantCompany; }
0
public boolean stateEquals(Object o) { if (o==this) return true; if (o == null || !(o instanceof MersenneTwister)) return false; MersenneTwister other = (MersenneTwister) o; if (mti != other.mti) return false; for(int x=0;x<mag01.length;x++) if (ma...
8
public final void method70(int i, int i_42_, byte i_43_, int i_44_, int i_45_, int i_46_, int i_47_, byte[] is, Class304 class304) { try { ((Class14) this).aClass377_5082.method3850((byte) -39, this); anInt8647++; if ((i_44_ ^ 0xffffffff) == -1) i_44_ = i_46_; OpenGL.glPixelSt...
7
public Boolean produceFrom(ResultSet result) throws SQLException { String s = result.getString(1); if (s.equalsIgnoreCase(T)) return true; if (s.equalsIgnoreCase(F)) return false; int i = result.getInt(1); if (i == 1) return true; if (i == 0) retur...
4
@Override public Void doInBackground() throws Exception { for (Hero h : lcm.heroes) { if (jpegMode) lcm.exportHeroToJpeg(h, folder); else lcm.exportHeroToPng(h, folder); frame.setTitle("Exporting (" + (getCurrentValue()+1) + "/" + ...
8
public static void kMeansClustering(int k,List<Vector> dataset){ Cluster[] clusters = new Cluster[k]; Collections.shuffle(dataset); for(int i = 0;i<k;i++){ Vector randomVector = dataset.get(i); clusters[i] = new Cluster(randomVector); clusters[i].addVector(randomVector); } DistanceMeasure dm = new ...
8
public Clip loadSound(String fileName) { Clip clip = null; URL url; // file directory relative to the file structure of the class url = frame.getClass().getResource(fileName); System.out.println(url); AudioInputStream audioIn = null; try { audioIn = A...
5
public void addTime(String showName, String dei, String roomName, Time time){ Days day = Days.valueOf(dei); int d = day.ordinal(); for (Show show : days[d].getShows()) { //iter the show array if (!show.getName().equals(showName)){ //see if there is a show with tha correct name ...
6
void overzicht() { for(int i = 0; i < kamer.length; i++) { System.out.println("Kamer " + kamer[i].kamernummer + ": " + kamer[i].voornaam + " " + kamer[i].achternaam); } System.out.println(""); }
1
public static String doEntityReference (String text) { StringBuffer result = new StringBuffer(); for (int i = 0; i < text.length(); i++) { char ch = text.charAt(i); if (ch == '<') result.append("&lt;"); else if (ch == '&') result.append...
4
@BeforeClass public static void setUpClass() throws Exception { ctx = new AnnotationConfigApplicationContext(ConnectionConfig.class); }
0
@EventHandler(priority = EventPriority.LOWEST) public void onPlayerInteract(PlayerInteractEvent event) { if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) { if (event.getMaterial() == Material.ENDER_PEARL) { if (plugin.isInCombat(event.getPlayer().getUniqueId())...
5
public final void addRow(String row) { if (rowCount < dimension && row.length() == dimension) { char[] values = row.toCharArray(); Entry[] tempRow = new Entry[dimension]; int tCountTemp = tCount; boolean containsEmpty = false; for (int i = 0; i < dimen...
7
@Override public FileInfo getAttr(String server, String user, String dir) throws ServerOfflineException, NoPermissionsException, NoSuchFileException, NoSuchPathException { String path = Domains.parsePath(dir); if (server == null) { FileInfo fi = this.fileSystem.getAttr(path); if (fi != null) { ret...
8
@Override public boolean select (Viewer viewer, Object parentElement, Object element) { if (searchString == null || searchString.length() == 0) { return true; } // loop on all column of the current row to find matches CSVRow row = (CSVRow) element; for (String s...
4
@Override public void changedMostRecentDocumentTouched(DocumentRepositoryEvent e) { if (e.getDocument() == null) { setEnabled(false); } else { setEnabled(true); } }
1
public boolean similar(Object other) { try { if (!(other instanceof JSONObject)) { return false; } Set<String> set = this.keySet(); if (!set.equals(((JSONObject)other).keySet())) { return false; } Iterator<St...
9
public Operator getOperator(String literal) { int operatorCount = this.operatorList.size(); for(int i = 0;i<operatorCount;i++) { Operator currentOperator = this.operatorList.get(i); String currentText = currentOperator.getLiteral(); boolean isMatchingExpression = literal.equals(currentText); if (isMat...
2