id
stringlengths
7
14
text
stringlengths
1
106k
918574_7
static String replaceSlashes(final String target) { String replaced = target; if (replaced != null) { replaced = replaced.replaceAll("/+", "/"); } return replaced; }
918574_8
static String replaceSlashes(final String target) { String replaced = target; if (replaced != null) { replaced = replaced.replaceAll("/+", "/"); } return replaced; }
918574_9
static String replaceSlashes(final String target) { String replaced = target; if (replaced != null) { replaced = replaced.replaceAll("/+", "/"); } return replaced; }
921110_0
@Override public Map<String, JsonBall> apply(Multimap<String, Supplier<JsonBall>> from) { Map<String, JsonBall> autoAttrs = mergeSameKeys(from); Map<String, JsonBall> modifiableFlatMap = Maps.newLinkedHashMap(Maps.filterKeys(autoAttrs, new Predicate<String>() { @Override public bo...
921110_1
@Override public Map<String, JsonBall> apply(Multimap<String, Supplier<JsonBall>> from) { Map<String, JsonBall> autoAttrs = mergeSameKeys(from); Map<String, JsonBall> modifiableFlatMap = Maps.newLinkedHashMap(Maps.filterKeys(autoAttrs, new Predicate<String>() { @Override public bo...
921110_2
@Override public Map<String, JsonBall> apply(Multimap<String, Supplier<JsonBall>> from) { Map<String, JsonBall> autoAttrs = mergeSameKeys(from); Map<String, JsonBall> modifiableFlatMap = Maps.newLinkedHashMap(Maps.filterKeys(autoAttrs, new Predicate<String>() { @Override public bo...
921110_3
@Override public Map<String, JsonBall> apply(Multimap<String, Supplier<JsonBall>> from) { Map<String, JsonBall> autoAttrs = mergeSameKeys(from); Map<String, JsonBall> modifiableFlatMap = Maps.newLinkedHashMap(Maps.filterKeys(autoAttrs, new Predicate<String>() { @Override public bo...
921110_4
@Override public Map<String, JsonBall> apply(Multimap<String, Supplier<JsonBall>> from) { Map<String, JsonBall> autoAttrs = mergeSameKeys(from); Map<String, JsonBall> modifiableFlatMap = Maps.newLinkedHashMap(Maps.filterKeys(autoAttrs, new Predicate<String>() { @Override public bo...
921110_5
@Override public Map<String, JsonBall> apply(Multimap<String, Supplier<JsonBall>> from) { Map<String, JsonBall> autoAttrs = mergeSameKeys(from); Map<String, JsonBall> modifiableFlatMap = Maps.newLinkedHashMap(Maps.filterKeys(autoAttrs, new Predicate<String>() { @Override public bo...
921110_6
@Override public Map<String, JsonBall> apply(Multimap<String, Supplier<JsonBall>> from) { Map<String, JsonBall> autoAttrs = mergeSameKeys(from); Map<String, JsonBall> modifiableFlatMap = Maps.newLinkedHashMap(Maps.filterKeys(autoAttrs, new Predicate<String>() { @Override public bo...
921110_7
@Override public Node execute(Node node) { logger.trace("creating node %s", node.getName()); node.getAutomatic().putAll(automaticSupplier.get()); chef.createNode(node); logger.debug("created node %s", node.getName()); return node; }
921110_8
@Override public void execute(String nodeName) { logger.trace("updating node %s", nodeName); Node node = chef.getNode(nodeName); Node mutable = new Node(node.getName(), node.getNormal(), node.getOverride(), node.getDefault(), automaticSupplier.get(), node.getRunList(), node.getChefEnvironment()); c...
921110_9
public static String findRoleInRunList(List<String> runList) { final Pattern pattern = Pattern.compile("^role\\[(.*)\\]$"); String roleToParse = Iterables.find(runList, new Predicate<String>() { @Override public boolean apply(String input) { return pattern.matcher(input).matches(); } ...
922437_0
public static DaoTransaction createAndPersist(final DaoInternalAccount from, final DaoAccount to, final BigDecimal amount) throws NotEnoughMoneyException { final Session session = SessionManager.getSessionFactory().getCurrentSession(); final DaoTransaction transaction = new DaoTransaction(from, to, amou...
922437_1
public void addVersion(final String content, final DaoMember author) { this.currentVersion = new DaoStringVersion(content, this, author); versions.add(currentVersion); }
922437_2
public void compact() { String previousContent = null; for (final DaoStringVersion version : versions) { if (!version.isCompacted()) { final String savedContent = version.getContent(); if (previousContent != null) { version.compact(previousContent); } ...
922437_3
public static DaoDescription createAndPersist(final DaoMember member, final DaoTeam team, final Language language, final String title, f...
922437_4
public DaoActor getAuthor() { return asTeam == null ? member : asTeam; }
922437_5
public static DaoFeature createAndPersist(final DaoMember member, final DaoTeam team, final DaoDescription description, final DaoSoftware software) { final Session session = SessionManager.getSessionFactory().getCurrentSession(); final DaoFeature feature = new DaoFeature(member, team, description, softw...
922437_6
public static DaoFeature createAndPersist(final DaoMember member, final DaoTeam team, final DaoDescription description, final DaoSoftware software) { final Session session = SessionManager.getSessionFactory().getCurrentSession(); final DaoFeature feature = new DaoFeature(member, team, description, softw...
922437_7
public DaoContribution addContribution(final DaoMember member, final DaoTeam team, final BigDecimal amount, final String comment) throws NotEnoughMoneyException { if (amount == null) { throw new NonOptionalParameterException(); } if (amount.compareTo(BigDecimal.ZERO) <= 0) { Log.data...
922437_8
public void addOffer(final DaoOffer offer) { this.offers.add(offer); DaoEvent.createOfferEvent(this, EventType.ADD_OFFER, offer); }
922437_9
@Override public void addComment(final DaoComment comment) { this.comments.add(comment); }
922501_0
public List<Element> createWebItems(InputStream in) { List<Element> items = newArrayList(); DocumentFactory factory = DocumentFactory.getInstance(); try { if (in == null) { return emptyList(); } final String content = StringUtils.join(IOUtils.readLines(in), "\...
922501_1
public List<Element> createWebItems(InputStream in) { List<Element> items = newArrayList(); DocumentFactory factory = DocumentFactory.getInstance(); try { if (in == null) { return emptyList(); } final String content = StringUtils.join(IOUtils.readLines(in), "\...
922501_2
public static String extractFromFilename(String fileName) { String name = stripExtension(fileName); Matcher m = TEMP_FILENAME_WITH_VERSION.matcher(name); if (m.matches()) { return m.group(1); } else { m = UPLOADED_FILENAME_WITH_VERSION.matcher(name); if (m.matches()) ...
922501_3
public static String extractFromFilename(String fileName) { String name = stripExtension(fileName); Matcher m = TEMP_FILENAME_WITH_VERSION.matcher(name); if (m.matches()) { return m.group(1); } else { m = UPLOADED_FILENAME_WITH_VERSION.matcher(name); if (m.matches()) ...
922501_4
public static List<String> getEntries(File root) { return walk(root.toURI(), root); }
922501_5
static String stripStars(String jsDoc) { String noStartOrEndStars = jsDoc != null ? jsDoc.replaceAll("^\\/\\*\\*|\\*\\/$", "") : ""; String result = Pattern.compile("^\\s*\\* ?", Pattern.MULTILINE).matcher(noStartOrEndStars).replaceAll(""); return result.trim(); }
922501_6
static String stripStars(String jsDoc) { String noStartOrEndStars = jsDoc != null ? jsDoc.replaceAll("^\\/\\*\\*|\\*\\/$", "") : ""; String result = Pattern.compile("^\\s*\\* ?", Pattern.MULTILINE).matcher(noStartOrEndStars).replaceAll(""); return result.trim(); }
922501_7
static String stripStars(String jsDoc) { String noStartOrEndStars = jsDoc != null ? jsDoc.replaceAll("^\\/\\*\\*|\\*\\/$", "") : ""; String result = Pattern.compile("^\\s*\\* ?", Pattern.MULTILINE).matcher(noStartOrEndStars).replaceAll(""); return result.trim(); }
922501_8
static String stripStars(String jsDoc) { String noStartOrEndStars = jsDoc != null ? jsDoc.replaceAll("^\\/\\*\\*|\\*\\/$", "") : ""; String result = Pattern.compile("^\\s*\\* ?", Pattern.MULTILINE).matcher(noStartOrEndStars).replaceAll(""); return result.trim(); }
922501_9
static Map<String,String> extractAttributes(String jsDocWithNoStars) { return null; }
927454_0
static void publishMessagesIndividually() throws Exception { try (Connection connection = createConnection()) { Channel ch = connection.createChannel(); String queue = UUID.randomUUID().toString(); ch.queueDeclare(queue, false, false, true, null); ch.confirmSelect(); long sta...
927454_1
static void publishMessagesInBatch() throws Exception { try (Connection connection = createConnection()) { Channel ch = connection.createChannel(); String queue = UUID.randomUUID().toString(); ch.queueDeclare(queue, false, false, true, null); ch.confirmSelect(); int batchSize...
927454_2
static boolean waitUntil(Duration timeout, BooleanSupplier condition) throws InterruptedException { int waited = 0; while (!condition.getAsBoolean() && waited < timeout.toMillis()) { Thread.sleep(100L); waited = +100; } return condition.getAsBoolean(); }
927454_3
static boolean waitUntil(Duration timeout, BooleanSupplier condition) throws InterruptedException { int waited = 0; while (!condition.getAsBoolean() && waited < timeout.toMillis()) { Thread.sleep(100L); waited = +100; } return condition.getAsBoolean(); }
927454_4
static boolean waitUntil(Duration timeout, BooleanSupplier condition) throws InterruptedException { int waited = 0; while (!condition.getAsBoolean() && waited < timeout.toMillis()) { Thread.sleep(100L); waited = +100; } return condition.getAsBoolean(); }
936063_0
@Override protected void execute() throws ArchiverException, IOException { File dest = getDestFile(); if (dest == null) { throw new Iso9660ArchiverException( Iso9660ArchiverException.Type.MissingDestination, "You must set the destination " + getArchiveType() + " file."); } if (dest.exists() && !dest...
936063_1
@Override protected String getArchiveType() { return "iso9660"; }
936063_2
public void process(ISO9660Config iso9660Config, RockRidgeConfig rrConfig, JolietConfig jolietConfig, ElToritoConfig elToritoConfig) throws HandlerException { if (iso9660Config == null) { throw new NullPointerException("Cannot create ISO without ISO9660Config."); } ((LogicalSecto...
936063_3
public void process(ISO9660Config iso9660Config, RockRidgeConfig rrConfig, JolietConfig jolietConfig, ElToritoConfig elToritoConfig) throws HandlerException { if (iso9660Config == null) { throw new NullPointerException("Cannot create ISO without ISO9660Config."); } ((LogicalSecto...
936063_4
public void process(ISO9660Config iso9660Config, RockRidgeConfig rrConfig, JolietConfig jolietConfig, ElToritoConfig elToritoConfig) throws HandlerException { if (iso9660Config == null) { throw new NullPointerException("Cannot create ISO without ISO9660Config."); } ((LogicalSecto...
936063_5
public void process(ISO9660Config iso9660Config, RockRidgeConfig rrConfig, JolietConfig jolietConfig, ElToritoConfig elToritoConfig) throws HandlerException { if (iso9660Config == null) { throw new NullPointerException("Cannot create ISO without ISO9660Config."); } ((LogicalSecto...
936063_6
public void process(ISO9660Config iso9660Config, RockRidgeConfig rrConfig, JolietConfig jolietConfig, ElToritoConfig elToritoConfig) throws HandlerException { if (iso9660Config == null) { throw new NullPointerException("Cannot create ISO without ISO9660Config."); } ((LogicalSecto...
936063_7
public void process(ISO9660Config iso9660Config, RockRidgeConfig rrConfig, JolietConfig jolietConfig, ElToritoConfig elToritoConfig) throws HandlerException { if (iso9660Config == null) { throw new NullPointerException("Cannot create ISO without ISO9660Config."); } ((LogicalSecto...
936063_8
public void process(ISO9660Config iso9660Config, RockRidgeConfig rrConfig, JolietConfig jolietConfig, ElToritoConfig elToritoConfig) throws HandlerException { if (iso9660Config == null) { throw new NullPointerException("Cannot create ISO without ISO9660Config."); } ((LogicalSecto...
936063_9
public void process(ISO9660Config iso9660Config, RockRidgeConfig rrConfig, JolietConfig jolietConfig, ElToritoConfig elToritoConfig) throws HandlerException { if (iso9660Config == null) { throw new NullPointerException("Cannot create ISO without ISO9660Config."); } ((LogicalSecto...
940337_0
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
940337_1
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
940337_2
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
940337_3
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
940337_4
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
940337_5
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
940337_6
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
940337_7
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
940337_8
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
940337_9
static String getRelativeFileInternal(File canonicalBaseFile, File canonicalFileToRelativize) { ArrayList<String> basePath = getPathComponents(canonicalBaseFile); ArrayList<String> pathToRelativize = getPathComponents(canonicalFileToRelativize); //if the roots aren't the same (i.e. different drives on a win...
944926_0
public boolean hasFlag(char ch) { return booleanFlags.contains(ch) || valueFlags.containsKey(ch); }
944926_1
public String[] getSlice(int index) { String[] slice = new String[originalArgs.length - index]; System.arraycopy(originalArgs, index, slice, 0, originalArgs.length - index); return slice; }
944926_2
public int argsLength() { return parsedArgs.size(); }
944926_3
public Extent getExtent() { return extent; }
944926_4
public Vector3 toVector() { return position; }
944926_5
public double getX() { return position.getX(); }
944926_6
public int getBlockX() { return (int) Math.floor(position.getX()); }
944926_7
public Location setX(double x) { return new Location(extent, position.withX(x), yaw, pitch); }
944926_8
public double getY() { return position.getY(); }
944926_9
public int getBlockY() { return (int) Math.floor(position.getY()); }
947990_0
@Override public boolean isValid(Asociado asociado, ConstraintValidatorContext context) { if (asociado == null || asociado.getFechaNacimiento() == null) return true; context.disableDefaultConstraintViolation(); if (Strings.isNullOrEmpty(asociado.getDni())) { boolean mayorDeEdad = as...
947990_1
@Override public boolean isValid(Asociado asociado, ConstraintValidatorContext context) { if (asociado == null || asociado.getFechaNacimiento() == null) return true; context.disableDefaultConstraintViolation(); if (Strings.isNullOrEmpty(asociado.getDni())) { boolean mayorDeEdad = as...
947990_2
@Override public boolean isValid(Asociado asociado, ConstraintValidatorContext context) { if (asociado == null || asociado.getFechaNacimiento() == null) return true; context.disableDefaultConstraintViolation(); if (Strings.isNullOrEmpty(asociado.getDni())) { boolean mayorDeEdad = as...
952585_0
public ResponseEntity<?> handleKillThreadPost(Map<String, String> form, TileLayer tl) { String id = form.get("thread_id"); StringBuilder doc = new StringBuilder(); makeHeader(doc); if (seeder.terminateGWCTask(Long.parseLong(id))) { doc.append("<ul><li>Requested to terminate task " + id + ".</li>...
952585_1
@Override public XStream getConfiguredXStream(XStream xs) { Class<AzureBlobStoreInfo> clazz = AzureBlobStoreInfo.class; xs.alias("AzureBlobStore", clazz); xs.aliasField("id", clazz, "name"); return xs; }
952585_2
String generateGetCapabilities(Charset encoding) { StringBuilder str = new StringBuilder(); XMLBuilder xml = new XMLBuilder(str); try { xml.header("1.0", encoding); xml.appendUnescaped( "<!DOCTYPE WMT_MS_Capabilities SYSTEM \"http://schemas.opengis.net/wms/1.1.1/capabilities_...
952585_3
@Override public ConveyorTile getConveyor(HttpServletRequest request, HttpServletResponse response) throws GeoWebCacheException { final String encoding = request.getCharacterEncoding(); final Map requestParameterMap = request.getParameterMap(); String[] keys = {"layers", "request", "tiled", "cached"...
952585_4
@Override public ConveyorTile getConveyor(HttpServletRequest request, HttpServletResponse response) throws GeoWebCacheException { final String encoding = request.getCharacterEncoding(); final Map requestParameterMap = request.getParameterMap(); String[] keys = {"layers", "request", "tiled", "cached"...
952585_5
@Override public ConveyorTile getConveyor(HttpServletRequest request, HttpServletResponse response) throws GeoWebCacheException { final String encoding = request.getCharacterEncoding(); final Map requestParameterMap = request.getParameterMap(); String[] keys = {"layers", "request", "tiled", "cached"...
952585_6
public void setSecurityDispatcher(SecurityDispatcher securityDispatcher) { this.securityDispatcher = securityDispatcher; }
952585_7
public void setSecurityDispatcher(SecurityDispatcher securityDispatcher) { this.securityDispatcher = securityDispatcher; }
952585_8
public void setSecurityDispatcher(SecurityDispatcher securityDispatcher) { this.securityDispatcher = securityDispatcher; }
952585_9
public void setSecurityDispatcher(SecurityDispatcher securityDispatcher) { this.securityDispatcher = securityDispatcher; }
960343_0
public static ITabularFormula createRandomFormula(Random random, int varCount, int clausesCount) { int mMax = getMaxNumberOfUniqueTriplets(varCount); if (clausesCount > mMax) { throw new IllegalArgumentException(MessageFormat .format("3-SAT formula of {0} variables may have at most {1}...
960343_1
public static void unify(ObjectArrayList cts) throws EmptyStructureException { if (cts.size() < 2) { throw new IllegalArgumentException("Unification is a q-ary operation where q should be > 1"); } VarPairsIndex index = VarPairsIndexFactory.getInstance().buildIndex(cts); unify(index, ((I...
960343_2
public static int getCanonicalVarName3(int varName1, int varName2, int[] canonicalName) { int varName3; if (varName1 == canonicalName[1]) { if (varName2 == canonicalName[2]) { varName3 = canonicalName[0]; } else { varName3 = canonicalName[2]; }...
960343_3
public static ObjectArrayList createCTF(ITabularFormula formula) { ObjectArrayList ctf = new ObjectArrayList(); ObjectArrayList tiers = formula.getTiers(); ITabularFormula f = new SimpleFormula(); f.unionOrAdd(formula.getTier(0).clone()); ctf.add(f); for (int i = 1; i < tiers.size(); i++) { ...
960343_4
public static void convertCTStructuresToRomanovSKTFileFormat(ObjectArrayList cts, String filename) throws FileNotFoundException, IOException { OutputStream os = null; try { os = new FileOutputStream(new File(filename)); for (int i = 0; i < cts.size(); i++) { ITabularF...
960343_5
public int indexOf(int varName) { // TODO Replacing zero-based indexing with the 1-based // allow remove invocation of containsKey method here // O(1) return permutationHash.containsKey(varName) ? permutationHash.get(varName) : -1; }
960343_6
public void shiftToStart(int from, int to) { if (to <= from) { throw new IllegalArgumentException("to <= from"); } int[] buffer = new int[from]; // Allocate single static buffer somewhere outside? int[] elements = permutation.elements(); System.arraycopy(elements, 0, buffer,...
960343_7
public void shiftToEnd(int from, int to) { if (to <= from) { throw new IllegalArgumentException("to <= from"); } int[] buffer = new int[permutation.size() - to - 1]; // Allocate single static buffer somewhere outside? int[] elements = permutation.elements(); System.arraycopy...
960343_8
public boolean evaluate(Properties properties) { boolean result = true; for (int j = 0; j < getTiers().size(); j++) { for (ITripletValue tiplet : getTier(j)) { ITripletPermutation permutation = getTier(j); boolean aValue = parseBoolean(String.valueOf(prop...
960343_9
public void add(ITripletValue triplet) { if (!contains(triplet)) // We need this check to keep value of size correct { keys_73516240 = (byte)(keys_73516240 | triplet.getTierKey()); size++; } }
960760_0
public synchronized float addValue(final float value) { sumBuffer += value; if ((minBuffer == null) || (value < minBuffer)) { minBuffer = value; } if ((maxBuffer == null) || (value > maxBuffer)) { maxBuffer = value; } buffer[pointer++] = value; pointer = pointer % bufferSize; if (maxValidFieldValue < buffer...
960760_1
public synchronized float addValue(final float value) { sumBuffer += value; if ((minBuffer == null) || (value < minBuffer)) { minBuffer = value; } if ((maxBuffer == null) || (value > maxBuffer)) { maxBuffer = value; } buffer[pointer++] = value; pointer = pointer % bufferSize; if (maxValidFieldValue < buffer...
960760_2
public synchronized float addValue(final float value) { sumBuffer += value; if ((minBuffer == null) || (value < minBuffer)) { minBuffer = value; } if ((maxBuffer == null) || (value > maxBuffer)) { maxBuffer = value; } buffer[pointer++] = value; pointer = pointer % bufferSize; if (maxValidFieldValue < buffer...
960760_3
public synchronized float addValue(final float value) { sumBuffer += value; if ((minBuffer == null) || (value < minBuffer)) { minBuffer = value; } if ((maxBuffer == null) || (value > maxBuffer)) { maxBuffer = value; } buffer[pointer++] = value; pointer = pointer % bufferSize; if (maxValidFieldValue < buffer...
960760_4
public synchronized float addValue(final float value) { sumBuffer += value; if ((minBuffer == null) || (value < minBuffer)) { minBuffer = value; } if ((maxBuffer == null) || (value > maxBuffer)) { maxBuffer = value; } buffer[pointer++] = value; pointer = pointer % bufferSize; if (maxValidFieldValue < buffer...
960760_5
public synchronized float addValue(final float value) { sumBuffer += value; if ((minBuffer == null) || (value < minBuffer)) { minBuffer = value; } if ((maxBuffer == null) || (value > maxBuffer)) { maxBuffer = value; } buffer[pointer++] = value; pointer = pointer % bufferSize; if (maxValidFieldValue < buffer...
960760_6
public synchronized float addValue(final float value) { sumBuffer += value; if ((minBuffer == null) || (value < minBuffer)) { minBuffer = value; } if ((maxBuffer == null) || (value > maxBuffer)) { maxBuffer = value; } buffer[pointer++] = value; pointer = pointer % bufferSize; if (maxValidFieldValue < buffer...
960760_7
public synchronized float addValue(final float value) { sumBuffer += value; if ((minBuffer == null) || (value < minBuffer)) { minBuffer = value; } if ((maxBuffer == null) || (value > maxBuffer)) { maxBuffer = value; } buffer[pointer++] = value; pointer = pointer % bufferSize; if (maxValidFieldValue < buffer...
960760_8
@Override public void add(final DrawingObject d) { if (threadSafe) { synchronized (lock) { if (insertionOrder.containsKey(d)) { throw new RuntimeException("Don't do double insert, no no ;-)"); } d.addBoundingBoxChangedListener(this); insertionOrder.put(d, ++insertionOrderLargest); tree.insertItem(...