@Override public V get(Object key) { return delegate.get(key); }
public static Operator get(String name) { return operators.get(name); }
public Point3D getCorrespondingPointOnPolytopeA(Point3D simplexPoint) { return simplexPointToPolytopePointA.get(simplexPoint); }
public Point3D getCorrespondingPointOnPolytopeB(Point3D simplexPoint) { return simplexPointToPolytopePointB.get(simplexPoint); }
private ExpandingPolytopeEntry[] getOrCreateTwoTriangleArray(THashMap<Point3D, ExpandingPolytopeEntry[]> mapFromStitchVertexToTriangles, Point3D sentryVertexOne) { ExpandingPolytopeEntry[] twoTriangleArray = mapFromStitchVertexToTriangles.get(sentryVertexOne); if (twoTriangleArray == null) { twoTriangleArray = new ExpandingPolytopeEntry[2]; mapFromStitchVertexToTriangles.put(sentryVertexOne, twoTriangleArray); } return twoTriangleArray; }
protected V retrieveFromCache(K key) { if (cachePriority == CachePriority.speed) { return fastCache.get(key) ; } else { byte[] cachedData = compactCache.get(key) ; if (cachedData == null) return null ; DatabaseEntry dbValue = new DatabaseEntry(cachedData) ; return valueBinding.entryToObject(dbValue) ; } }
@Override public void drawButtonForegroundLayer(int x, int y) { ArrayList<String> list = new ArrayList<>(); list.add(TextFormatting.BLUE + "" + TextFormatting.UNDERLINE + FontHelper.translate("buttons.circuits")); for (Map.Entry<String, Integer> entry : upgrades.getInstalledUpgrades().entrySet()) { int max = upgrades.maxUpgrades.get(entry.getKey()); list.add(entry.getKey().substring(0, 1).toUpperCase() + entry.getKey().toLowerCase().substring(1) + ": " + entry.getValue() + '/' + max); } gui.drawSonarCreativeTabHoveringText(list, x, y); }
/** * to string prints a representation of every string contained in the gazetteer. * * @return a string representation of the gazetteer. */ public String toString() { StringBuffer printstring = new StringBuffer(); for (String key : gaz.keySet()) { GazEntry ge = gaz.get(key); ge.stringRepresentation(key, key, printstring); } return printstring.toString(); } }
/** * to string prints a representation of every string contained in the gazetteer. * * @return a string representation of the gazetteer. */ public String toString() { StringBuffer printstring = new StringBuffer(); for (String key : gaz.keySet()) { GazEntry ge = gaz.get(key); ge.stringRepresentation(key, key, printstring); } return printstring.toString(); } }
/** * to string prints a representation of every string contained in the gazetteer. * * @return a string representation of the gazetteer. */ public String toString() { StringBuffer printstring = new StringBuffer(); for (String key : gaz.keySet()) { GazEntry ge = gaz.get(key); ge.stringRepresentation(key, key, printstring); } return printstring.toString(); }
/** * to string prints a representation of every string contained in the gazetteer. * * @return a string representation of the gazetteer. */ public String toString() { StringBuffer printstring = new StringBuffer(); for (String key : gaz.keySet()) { GazEntry ge = gaz.get(key); ge.stringRepresentation(key, key, printstring); } return printstring.toString(); }
/** * to string prints a representation of every string contained in the gazetteer. * * @return a string representation of the gazetteer. */ public String toString() { StringBuffer printstring = new StringBuffer(); for (String key : gaz.keySet()) { GazEntry ge = gaz.get(key); ge.stringRepresentation(key, key, printstring); } return printstring.toString(); }
/** * return true if a match is found. * * @param word the token to match. */ final public void match(NEWord word) { GazEntry ge = gaz.get(splitter.normalize(word.form)); if (ge != null) { ge.compileMatches(null, word); } }
/** * return true if a match is found. * * @param word the token to match. */ final public void match(NEWord word) { GazEntry ge = gaz.get(splitter.normalize(word.form)); if (ge != null) { ge.compileMatches(null, word); } }
/** * return true if a match is found. * * @param word the token to match. */ final public void match(NEWord word) { GazEntry ge = gaz.get(splitter.normalize(word.form)); if (ge != null) { ge.compileMatches(null, word); } }
private void retainPoints(Point3D pointToKeep) { Point3D point3dOnA = simplexPointToPolytopePointA.get(pointToKeep); Point3D point3dOnB = simplexPointToPolytopePointB.get(pointToKeep); pointOne = null; pointTwo = null; pointThree = null; pointFour = null; pointOne = pointToKeep; simplexPointToPolytopePointA.clear(); simplexPointToPolytopePointB.clear(); simplexPointToPolytopePointA.put(pointToKeep, point3dOnA); simplexPointToPolytopePointB.put(pointToKeep, point3dOnB); }
/** * @param word the token to match. * @param which the index of the token. */ final public void match(List<Constituent> words, int which, SpanLabelView view) { GazEntry ge = gaz.get(splitter.normalize(words.get(which).getSurfaceForm())); if (ge != null) { ge.compileMatches(words, which, which, view); } }
/** * @param word the token to match. * @param which the index of the token. */ final public void match(List<Constituent> words, int which, SpanLabelView view) { GazEntry ge = gaz.get(splitter.normalize(words.get(which).getSurfaceForm())); if (ge != null) { ge.compileMatches(words, which, which, view); } }
private void addPointsContribution(Point3D pointToContribute, Point3D pointOnAToPack, Point3D pointOnBToPack) { double lambda = lambdas.get(pointToContribute); tempVector1.set(simplexPointToPolytopePointA.get(pointToContribute)); tempVector1.scale(lambda); pointOnAToPack.add(tempVector1); tempVector1.set(simplexPointToPolytopePointB.get(pointToContribute)); tempVector1.scale(lambda); pointOnBToPack.add(tempVector1); }