static <T> N<T> callbackOnMainThreadAsync(N<T> paramN, ParseCallback<T> paramParseCallback, boolean paramBoolean)
 {
   if (paramParseCallback == null) {
     return paramN;
   }
   Z localZ = N.a();
   paramN.a(new Parse.6(paramBoolean, localZ, paramParseCallback));
   return localZ.a();
 }
    @Override
    public int compare(Z o1, Z o2) {
      if (o1 == o2) {
        return 0;
      }

      if (o1 != null) {
        return (o2 != null) ? o1.getName().compareTo(o2.getName()) : -1;
      }

      return -1;
    }
 @Test
 public void convertToIndex() {
   assertThat(A.ordinal(), is(0));
   assertThat(B.ordinal(), is(1));
   assertThat(C.ordinal(), is(2));
   assertThat(X.ordinal(), is(23));
   assertThat(Y.ordinal(), is(24));
   assertThat(Z.ordinal(), is(25));
 }
Example #4
0
 @SuppressWarnings("unchecked")
 private <X, Z> List<X> select(Z x, boolean distinct) {
   Class<?> clazz = x.getClass();
   if (ClassUtils.isSimpleType(clazz)) {
     return selectSimple((X) x, distinct);
   }
   clazz = clazz.getSuperclass();
   return select((Class<X>) clazz, (X) x, distinct);
 }
Example #5
0
 public ao a(Z paramZ, JSONObject paramJSONObject) throws JSONException {
   JSONObject localJSONObject1 = paramJSONObject.getJSONObject("app");
   String str1 = localJSONObject1.getString("identifier");
   String str2 = localJSONObject1.getString("status");
   String str3 = localJSONObject1.getString("url");
   String str4 = localJSONObject1.getString("reports_url");
   boolean bool1 = localJSONObject1.optBoolean("update_required", false);
   boolean bool2 = localJSONObject1.has("icon");
   c localc = null;
   if (bool2) {
     boolean bool3 = localJSONObject1.getJSONObject("icon").has("hash");
     localc = null;
     if (bool3) {
       JSONObject localJSONObject4 = localJSONObject1.getJSONObject("icon");
       localc =
           new c(
               localJSONObject4.getString("hash"),
               localJSONObject4.getInt("width"),
               localJSONObject4.getInt("height"));
     }
   }
   i locali = new i(str1, str2, str3, str4, bool1, localc);
   JSONObject localJSONObject2 = paramJSONObject.getJSONObject("settings");
   ar localar =
       new ar(
           localJSONObject2.optBoolean("collect_reports", true),
           localJSONObject2.optInt("cache_duration", 3600),
           localJSONObject2.optInt("log_buffer_size", 64000),
           localJSONObject2.optInt("max_chained_exception_depth", 8),
           localJSONObject2.optInt("max_custom_exception_events", 64),
           localJSONObject2.optInt("max_custom_key_value_pairs", 64),
           localJSONObject2.optInt("identifier_mask", 255),
           localJSONObject2.optBoolean("send_session_without_crash", false));
   JSONObject localJSONObject3 = paramJSONObject.getJSONObject("prompt");
   aj localaj =
       new aj(
           localJSONObject3.getBoolean("enabled"),
           localJSONObject3.optString("title", "Send Crash Report?"),
           localJSONObject3.optString(
               "message",
               "Looks like we crashed! Please help us fix the problem by sending a crash report."),
           localJSONObject3.optString("send_button_title", "Send"),
           localJSONObject3.optBoolean("show_cancel_button", true),
           localJSONObject3.optString("cancel_button_title", "Don't Send"),
           localJSONObject3.optBoolean("show_always_send_button", true),
           localJSONObject3.optString("always_send_button_title", "Always Send"));
   long l1 = localar.b();
   if (paramJSONObject.has("expires_at")) ;
   for (long l2 = paramJSONObject.getLong("expires_at"); ; l2 = paramZ.a() + l1 * 1000L)
     return new ao(l2, locali, localar, localaj);
 }
  public void cambiarModoMayus() {
    minusculas = !minusculas;

    if (minusculas) {
      Q.setText("q");
      W.setText("w");
      E.setText("e");
      R.setText("r");
      T.setText("t");
      Y.setText("y");
      U.setText("u");
      I.setText("i");
      O.setText("o");
      P.setText("p");
      A.setText("a");
      S.setText("s");
      D.setText("d");
      F.setText("f");
      G.setText("g");
      H.setText("h");
      J.setText("j");
      K.setText("k");
      L.setText("l");
      N2.setText("ñ");
      Z.setText("z");
      X.setText("x");
      C.setText("c");
      V.setText("v");
      B.setText("b");
      N.setText("n");
      M.setText("m");
    } else {
      Q.setText("Q");
      W.setText("W");
      E.setText("E");
      R.setText("R");
      T.setText("T");
      Y.setText("Y");
      U.setText("U");
      I.setText("I");
      O.setText("O");
      P.setText("P");
      A.setText("A");
      S.setText("S");
      D.setText("D");
      F.setText("F");
      G.setText("G");
      H.setText("H");
      J.setText("J");
      K.setText("K");
      L.setText("L");
      N2.setText("Ñ");
      Z.setText("Z");
      X.setText("X");
      C.setText("C");
      V.setText("V");
      B.setText("B");
      N.setText("N");
      M.setText("M");
    }
  }
 private void ZActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_ZActionPerformed
   // TODO add your handling code here:
   actualizaCampo(Z.getText());
 } // GEN-LAST:event_ZActionPerformed
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    teclado_base = new javax.swing.JPanel();
    H = new javax.swing.JButton();
    F = new javax.swing.JButton();
    G = new javax.swing.JButton();
    S = new javax.swing.JButton();
    D = new javax.swing.JButton();
    P = new javax.swing.JButton();
    A = new javax.swing.JButton();
    I = new javax.swing.JButton();
    O = new javax.swing.JButton();
    K = new javax.swing.JButton();
    J = new javax.swing.JButton();
    L = new javax.swing.JButton();
    N2 = new javax.swing.JButton();
    Z = new javax.swing.JButton();
    X = new javax.swing.JButton();
    C = new javax.swing.JButton();
    V = new javax.swing.JButton();
    B = new javax.swing.JButton();
    N = new javax.swing.JButton();
    Q = new javax.swing.JButton();
    U = new javax.swing.JButton();
    M = new javax.swing.JButton();
    T = new javax.swing.JButton();
    R = new javax.swing.JButton();
    E = new javax.swing.JButton();
    Espacio = new javax.swing.JButton();
    W = new javax.swing.JButton();
    Y = new javax.swing.JButton();

    H.setText("H");
    H.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            HActionPerformed(evt);
          }
        });

    F.setText("F");
    F.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            FActionPerformed(evt);
          }
        });

    G.setText("G");
    G.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            GActionPerformed(evt);
          }
        });

    S.setText("S");
    S.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            SActionPerformed(evt);
          }
        });

    D.setText("D");
    D.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            DActionPerformed(evt);
          }
        });

    P.setText("P");
    P.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            PActionPerformed(evt);
          }
        });

    A.setText("A");
    A.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            AActionPerformed(evt);
          }
        });

    I.setText("I");
    I.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            IActionPerformed(evt);
          }
        });

    O.setText("O");
    O.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            OActionPerformed(evt);
          }
        });

    K.setText("K");
    K.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            KActionPerformed(evt);
          }
        });

    J.setText("J");
    J.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            JActionPerformed(evt);
          }
        });

    L.setText("L");
    L.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            LActionPerformed(evt);
          }
        });

    N2.setText("Ñ");
    N2.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            N2ActionPerformed(evt);
          }
        });

    Z.setText("Z");
    Z.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            ZActionPerformed(evt);
          }
        });

    X.setText("X");
    X.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            XActionPerformed(evt);
          }
        });

    C.setText("C");
    C.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            CActionPerformed(evt);
          }
        });

    V.setText("V");
    V.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            VActionPerformed(evt);
          }
        });

    B.setText("B");
    B.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            BActionPerformed(evt);
          }
        });

    N.setText("N");
    N.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            NActionPerformed(evt);
          }
        });

    Q.setText("Q");
    Q.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            QActionPerformed(evt);
          }
        });

    U.setText("U");
    U.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            UActionPerformed(evt);
          }
        });

    M.setText("M");
    M.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            MActionPerformed(evt);
          }
        });

    T.setText("T");
    T.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            TActionPerformed(evt);
          }
        });

    R.setText("R");
    R.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            RActionPerformed(evt);
          }
        });

    E.setText("E");
    E.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            EActionPerformed(evt);
          }
        });

    Espacio.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            EspacioActionPerformed(evt);
          }
        });

    W.setText("W");
    W.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            WActionPerformed(evt);
          }
        });

    Y.setText("Y");
    Y.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            YActionPerformed(evt);
          }
        });

    javax.swing.GroupLayout teclado_baseLayout = new javax.swing.GroupLayout(teclado_base);
    teclado_base.setLayout(teclado_baseLayout);
    teclado_baseLayout.setHorizontalGroup(
        teclado_baseLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                teclado_baseLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        teclado_baseLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                teclado_baseLayout
                                    .createSequentialGroup()
                                    .addGroup(
                                        teclado_baseLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addGroup(
                                                teclado_baseLayout
                                                    .createSequentialGroup()
                                                    .addComponent(
                                                        Q,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        W,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        E,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .UNRELATED)
                                                    .addComponent(
                                                        R,
                                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(
                                                teclado_baseLayout
                                                    .createSequentialGroup()
                                                    .addComponent(
                                                        A,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        S,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        D,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED,
                                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                                        Short.MAX_VALUE)
                                                    .addComponent(
                                                        F,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        teclado_baseLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(
                                                G,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                T,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        teclado_baseLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(
                                                H,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                Y,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        teclado_baseLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(
                                                J,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                U,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        teclado_baseLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(
                                                K,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                I,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        teclado_baseLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(
                                                L,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                O,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        teclado_baseLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(
                                                N2,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                P,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(
                                teclado_baseLayout
                                    .createSequentialGroup()
                                    .addComponent(
                                        Z,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        58,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        teclado_baseLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(
                                                Espacio,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                500,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(
                                                teclado_baseLayout
                                                    .createSequentialGroup()
                                                    .addComponent(
                                                        X,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        C,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        V,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        B,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        N,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addComponent(
                                                        M,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        58,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    teclado_baseLayout.setVerticalGroup(
        teclado_baseLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                teclado_baseLayout
                    .createSequentialGroup()
                    .addGap(41, 41, 41)
                    .addGroup(
                        teclado_baseLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                teclado_baseLayout
                                    .createSequentialGroup()
                                    .addComponent(
                                        Q,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        44,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(10, 10, 10))
                            .addGroup(
                                teclado_baseLayout
                                    .createSequentialGroup()
                                    .addComponent(
                                        W,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        44,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(11, 11, 11))
                            .addGroup(
                                teclado_baseLayout
                                    .createSequentialGroup()
                                    .addGroup(
                                        teclado_baseLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(
                                                E,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                44,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                R,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                44,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                T,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                44,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                Y,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                44,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                U,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                44,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                I,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                44,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                O,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                44,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                P,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                44,
                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(18, 18, 18)))
                    .addGroup(
                        teclado_baseLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(
                                A,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                S,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                D,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(
                                teclado_baseLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(
                                        G,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        44,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(
                                        F,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        44,
                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(
                                H,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                J,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                K,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                L,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                N2,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(
                        teclado_baseLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(
                                Z,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                X,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                C,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                V,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                B,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                N,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                M,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                44,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(
                        javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
                    .addComponent(
                        Espacio,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        44,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(19, 19, 19)));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                teclado_base,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(
                teclado_base,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                javax.swing.GroupLayout.DEFAULT_SIZE,
                Short.MAX_VALUE));
  } // </editor-fold>//GEN-END:initComponents
Example #9
0
 @Override
 public int compareTo(Z regionZ) {
   return z() == regionZ.z() ? 0 : (z() > regionZ.z() ? 1 : -1);
 }
 void bar(Z z) {
     z.foo(1, 2)
 }
Example #11
0
 public static void main(String[] args) {
   Z z = new Z();
   takesD(z);
   takesE(z.makeE());
 }
 public static Z findZ(int id) {
   Z toReturn = new Z();
   toReturn.id = id;
   return toReturn;
 }