Examples of reset()


Examples of com.opera.core.systems.preferences.OperaScopePreferences.ScopePreference.reset()

  @Test
  public void testReset() {
    ScopePreference preference = preferences.get("Developer Tools", "Proxy Host");
    preference.setValue("4.3.2.1");
    preference.reset();
    assertEquals("127.0.0.1", preference.getValue());
  }

  @Test
  public void testResetAll() {
View Full Code Here

Examples of com.orientechnologies.orient.core.command.OCommandRequestInternal.reset()

    setCurrentDatabaseinThreadLocal();

    final OCommandRequestInternal command = (OCommandRequestInternal) iCommand;

    try {
      command.reset();
      command.setDatabase(this);

      return command;

    } catch (Exception e) {
View Full Code Here

Examples of com.orientechnologies.orient.core.record.ORecord.reset()

  protected ORecord getRecord() {
    final ORecord record;
    if (reusedRecord != null) {
      // REUSE THE SAME RECORD AFTER HAVING RESETTED IT
      record = reusedRecord;
      record.reset();
    } else
      record = null;
    return record;
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.reset()

    StringBuilder text = new StringBuilder();
    Random random = new Random(1000);

    for (int i = 0; i < TOT; ++i) {
      doc.reset();
      doc.setClassName("Whiz");
      doc.field("id", i);
      doc.field("date", new Date());

      text.setLength(0);
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ORecordBytes.reset()

  public ORecordInternal<?> fromStream(final ODatabaseRecord iDatabase, final byte[] iSource, final ORecordInternal<?> iRecord) {
    final ORecordBytes record = (ORecordBytes) iRecord;

    record.fromStream(iSource);
    record.reset(iSource);
    record.setDatabase(iDatabase);

    return record;
  }
View Full Code Here

Examples of com.persistit.Key.reset()

    }

    public static RowDef rowDefFromOrdinals(Group group, FDBStoreData storeData) {
        Table root = group.getRoot();
        Key hkey = storeData.persistitKey;
        hkey.reset();
        int ordinal = hkey.decodeInt();
        assert (root.getOrdinal() == ordinal) : hkey;
        Table table = root;
        int index = 0;
        while (true) {
View Full Code Here

Examples of com.peterhi.obsolete.Data.reset()

     
      assertEquals(50, data.readable());
      assertEquals(350, data.debug_GetRead());
      assertEquals(300, data.debug_GetMark());
     
      assertEquals(true, data.reset());
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(-1, data.debug_GetMark());
     
View Full Code Here

Examples of com.peterhi.obsolete.Stream.reset()

      Stream stream = new Stream(sampleBytes());
      assertEquals(sampleBytes()[0], (byte )stream.read());
      stream.mark(whatever);
      assertEquals(sampleBytes()[1], (byte )stream.read());
      assertEquals(sampleBytes()[2], (byte )stream.read());
      stream.reset();
      assertEquals(sampleBytes()[1], (byte )stream.read());
      assertEquals(7, stream.available());
    } finally {
    }
  }
View Full Code Here

Examples of com.peterhi.runtime.Buffer.reset()

   
    // []011!00000 ==> EOF
    assertEquals(-1, withExistingData.read());
   
    // [011]00000 ! ==> Replace '!' with ']', and reset '!'
    withExistingData.reset();
   
    // [01]100000 !
    assertEquals(1, withExistingData.read());
   
    // [0]1100000 !
View Full Code Here

Examples of com.ponysdk.ui.server.form.FormActivity.reset()

        final PButton resetButton = new PButton("Reset");
        resetButton.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent clickEvent) {
                formActivity.reset();
            }
        });
        layout.add(resetButton);

        examplePanel.setWidget(layout);
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.