Examples of reset()


Examples of com.badlogic.gdx.tools.texturepacker.ColorBleedEffect.Mask.MaskIterator.reset()

        rgb[pixelIndex] = color.argb;
        iterator.markAsInProgress();
      }
    }

    iterator.reset();
  }

  private int getPixelIndex (int width, int x, int y) {
    return y * width + x;
  }
View Full Code Here

Examples of com.belladati.httpclientandroidlib.client.methods.HttpPost.reset()

                }

                return jsonNode;
            } finally {
                // Finished with connection at this point, so make it reuseable
                httpRequest.reset();
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.bergerkiller.bukkit.common.FromToCounter.reset()

    FromToCounter pingCounter = new FromToCounter();
    if (hasText) {
      textCounter.reset(0, text.length - 1);
    }
    if (hasPing) {
      pingCounter.reset(0, ping.length - 1);
    }
    // Start processing the area
    while (counterX.hasNext()) {
      counterX.next();
      counterY.reset();
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.utils.TrackIterator.reset()

    info.cartBlock = member.getBlock();
    BlockFace[] possible = RailType.getType(info.cartBlock).getPossibleDirections(info.cartBlock);
    TrackIterator iter = new TrackIterator(null, null, (int) member.getGroup().length(), true);
    info.distance = Integer.MAX_VALUE;
    for (BlockFace dir : possible) {
      iter.reset(info.cartBlock, dir);
      if (iter.tryFind(this.info.getRails()) && iter.getCartDistance() < info.distance) {
        info.distance = iter.getCartDistance();
        info.cartDir = dir;
        info.centerDir = iter.currentDirection();
      }
View Full Code Here

Examples of com.bluesoft.util.metrics.core.MeteringMetric.reset()

  @Test
  public void testResetForMeteringMetric() {
    MeteringMetric mock = createMock( MeteringMetric.class );
    UnitRoundingMeteringMetric rounder = new UnitRoundingMeteringMetric( TimeUnit.MINUTES, mock );
    final BasicMeteringMetric snapshot = new BasicMeteringMetric( "test" );
    expect( mock.reset() ).andReturn( snapshot );
    replay( mock );
    assertTrue( rounder.reset().getClass().isAssignableFrom( UnitRoundingMeteringMetric.class ) );
    verify( mock );
  }
View Full Code Here

Examples of com.bluesoft.util.metrics.core.TimingMetric.reset()

  @Test
  public void testReset() {
    TimingMetric mock = createMock( TimingMetric.class );
    UnitRoundingTimingMetric rounder = new UnitRoundingTimingMetric( TimeUnit.MINUTES, TimeUnit.MILLISECONDS, mock );
    final BasicTimingMetric snapshot = new BasicTimingMetric( "test" );
    expect( mock.reset() ).andReturn( snapshot );
    replay( mock );
    assertTrue( rounder.reset().getClass().isAssignableFrom( UnitRoundingTimingMetric.class ) );
    verify( mock );
  }
View Full Code Here

Examples of com.browseengine.bobo.util.BigIntBuffer.reset()

        buffer = new BigIntBuffer();
        workArea.put(buffer);
      }
      else
      {
        buffer.reset();
      }
     
      BufferedLoader loader = workArea.get(BufferedLoader.class);     
      if(loader == null || loader.capacity() < maxdoc)
      {
View Full Code Here

Examples of com.browseengine.bobo.util.BigNestedIntArray.BufferedLoader.reset()

        }
      }
      nestedArray[i] = new BigNestedIntArray();
      nestedArray[i].load(maxId, loader);
     
      loader.reset(maxId, BigNestedIntArray.MAX_ITEMS, buffer);
    }
   
    for(int i = 0 ; i < maxNumItems.length; i++)
    {
      int[] buf = new int[1024];
View Full Code Here

Examples of com.buschmais.jqassistant.core.store.api.Store.reset()

            store = new EmbeddedGraphStore(directory.getAbsolutePath());
            if (reset) {
                // reset the store if the current project is the base project
                // (i.e. where the rules are located).
                store.start(Collections.<Class<?>> emptyList());
                store.reset();
                store.stop();
            }
            stores.put(directory, store);
        }
        return store;
View Full Code Here

Examples of com.canoo.webtest.boundary.ResetScriptRunner.reset()

            context.setRunner(runner);
            LOG.debug("Creating new Script Runner with language: " + fLanguage);
        }
        else {
            runner = context.getRunner();
            runner.reset();
        }
    buildScript();
    getProject().addReference("step", this);
    if (context.getCurrentResponse() == null) {
      LOG.warn("No response found. Previous invoke missing? Related scripting variables not created");
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.