Examples of compact()


Examples of com.ardor3d.extension.ui.UIButton.compact()

                            state.setPadding(new Insets(0, 0, 0, 0));
                            state.setMargin(new Insets(1, 1, 1, 1));
                        }
                        closeButton.refreshState();
                        closeButton.updateMinimumSizeFromContents();
                        closeButton.compact();
                        closeButton
                                .setMaximumContentSize(closeButton.getContentWidth(), closeButton.getContentHeight());
                    }
                }
View Full Code Here

Examples of com.digitalpebble.classification.Lexicon.compact()

        // change the indices of the attributes to remove
        // gaps between them
        Map<Integer, Integer> equiv = null;
        if (compact) {
            // create a new Lexicon object
            equiv = lexicon.compact();
        }

        // save the modified lexicon file
        if (newLexicon != null)
            lexicon.saveToFile(newLexicon);
View Full Code Here

Examples of com.google.code.yanf4j.buffer.IoBuffer.compact()

        // Make sure the buffer doesn't shrink too much (less than the initial
        // capacity.)
        buf.sweep((byte) 1);
        buf.fill(7);
        buf.compact();
        assertEquals(8, buf.capacity());
        assertEquals(1, buf.position());
        assertEquals(8, buf.limit());
        buf.clear();
        assertEquals(1, buf.get());
View Full Code Here

Examples of com.google.test.metric.method.Stack2Turing.VariableCompactor.compact()

  @SuppressWarnings("unchecked")
  public void testCompactionOfPrimitiveConstants() throws Exception {
    VariableCompactor compactor = new VariableCompactor();
    Constant c1 = new Constant("a", JavaType.INT);
    Constant c2 = new Constant("a", JavaType.INT);
    assertEquals(vv(v(c1)), compactor.compact(vv(v(c1), v(c2))));
  }

  @SuppressWarnings("unchecked")
  public void testNonCompactionOfNonPrimitiveConstants() throws Exception {
    VariableCompactor compactor = new VariableCompactor();
View Full Code Here

Examples of com.google.test.metric.method.Stack2Turing.VariableCompactor.compact()

  @SuppressWarnings("unchecked")
  public void testNonCompactionOfNonPrimitiveConstants() throws Exception {
    VariableCompactor compactor = new VariableCompactor();
    Constant c1 = new Constant("a", JavaType.OBJECT);
    Constant c2 = new Constant("a", JavaType.fromClass(String.class));
    assertEquals(vv(v(c1), v(c2)), compactor.compact(vv(v(c1), v(c2))));
  }

}
View Full Code Here

Examples of com.ibm.icu.text.UnicodeSet.compact()

            case 8: test.applyPattern("[ab]", true); break;
            case 9: test.applyPattern("[ab]", 0); break;
            case 10: test.applyPropertyAlias("hex","true"); break;
            case 11: test.applyPropertyAlias("hex", "true", null); break;
            case 12: test.closeOver(UnicodeSet.CASE); break;
            case 13: test.compact(); checkEquals = false; break;
            case 14: test.complement(0); break;
            case 15: test.complement(0,0); break;
            case 16: test.complement("ab"); break;
            case 17: test.complementAll("ab"); break;
            case 18: test.complementAll(new UnicodeSet("[ab]")); break;
View Full Code Here

Examples of com.ibm.icu.util.CompactByteArray.compact()

    logln("equals: " + cba.equals(cba4));
   
      cba4.compact(false);
    logln("equals: " + cba4.equals(cba5));

    cba5.compact(true);
    logln("equals: " + cba4.equals(cba5));

    cba.setElementAt((char)0x405, (byte)0xdf); // force expand
    logln("modified equals clone: " + cba.equals(cba3));
View Full Code Here

Examples of com.ibm.icu.util.CompactCharArray.compact()

    logln("equals: " + cca.equals(cca4));

    cca4.compact(false);
    logln("equals: " + cca4.equals(cca5));

    cca5.compact(EXTENSIVE);
    logln("equals: " + cca4.equals(cca5));

    cca.setElementAt((char)0x405, (char)0xdf); // force expand
    logln("modified equals clone: " + cca.equals(cca3));
View Full Code Here

Examples of com.jme3.scene.VertexBuffer.compact()

            for (Entry<VertexBuffer> ent : outbufs){
                VertexBuffer vb = ent.getValue();
                if (vb.getBufferType() == Type.Index)
                    continue;

                vb.compact(currentVertex);
            }

            out.updateBound();
            out.updateCounts();
            out.setStatic();
View Full Code Here

Examples of com.netflix.priam.utils.JMXNodeTool.compact()

    } catch (JMXConnectionException e) {
      return Response.status(503).entity("JMXConnectionException")
          .build();
    }
        logger.debug("node tool compact being called");
        nodetool.compact();
        return Response.ok().build();
    }

    @GET
    @Path("/cleanup")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.