public TIntObjectIterator<V> iterator() { return m.iterator(); // Must be manually synched by user! }
public TIntObjectIterator<V> iterator() { return new TIntObjectIterator<V>() { TIntObjectIterator<V> iter = m.iterator(); public int key() { return iter.key(); } public V value() { return iter.value(); } public void advance() { iter.advance(); } public boolean hasNext() { return iter.hasNext(); } public V setValue( V val ) { throw new UnsupportedOperationException(); } public void remove() { throw new UnsupportedOperationException(); } }; }
public void randomize () { for (TIntObjectIterator<int[]> it = offsets.iterator(); it.hasNext();) { it.advance(); int[] newVal = new int[it.value().length]; RaptorWorkerTimetable tt = data.timetablesForPattern.get(it.key()); for (int i = 0; i < newVal.length; i++) { newVal[i] = mt.nextInt(tt.headwaySecs[i]); } it.setValue(newVal); } } }
public TIntObjectIterator<V> iterator() { return m.iterator(); // Must be manually synched by user! }
@Override public TIntObjectIterator<V> iterator() { return m.iterator(); // Must be manually synched by user! }
public TIntObjectIterator<V> iterator() { return m.iterator(); // Must be manually synched by user! }
public TIntObjectIterator<V> iterator() { return m.iterator(); // Must be manually synched by user! }
public TIntObjectIterator<V> iterator() { return new TIntObjectIterator<V>() { TIntObjectIterator<V> iter = m.iterator(); public int key() { return iter.key(); } public V value() { return iter.value(); } public void advance() { iter.advance(); } public boolean hasNext() { return iter.hasNext(); } public V setValue( V val ) { throw new UnsupportedOperationException(); } public void remove() { throw new UnsupportedOperationException(); } }; }
public TIntObjectIterator<V> iterator() { return new TIntObjectIterator<V>() { TIntObjectIterator<V> iter = m.iterator(); public int key() { return iter.key(); } public V value() { return iter.value(); } public void advance() { iter.advance(); } public boolean hasNext() { return iter.hasNext(); } public V setValue( V val ) { throw new UnsupportedOperationException(); } public void remove() { throw new UnsupportedOperationException(); } }; }
public TIntObjectIterator<V> iterator() { return new TIntObjectIterator<V>() { TIntObjectIterator<V> iter = m.iterator(); public int key() { return iter.key(); } public V value() { return iter.value(); } public void advance() { iter.advance(); } public boolean hasNext() { return iter.hasNext(); } public V setValue( V val ) { throw new UnsupportedOperationException(); } public void remove() { throw new UnsupportedOperationException(); } }; }
@Override public TIntObjectIterator<V> iterator() { return new TIntObjectIterator<V>() { TIntObjectIterator<V> iter = m.iterator(); @Override public int key() { return iter.key(); } @Override public V value() { return iter.value(); } @Override public void advance() { iter.advance(); } @Override public boolean hasNext() { return iter.hasNext(); } @Override public V setValue( V val ) { throw new UnsupportedOperationException(); } @Override public void remove() { throw new UnsupportedOperationException(); } }; }
@Override public synchronized ImmutableIterator<Pair<Integer,V>> iterator() { return new TroveBasedIntObjImmutableIterator<V>(map.iterator()); }
@Override public ImmutableIterator<Pair<Integer,V>> iterator() { return new TroveBasedIntObjImmutableIterator<V>(map.iterator()); }
public HashableCut<RoaringBitmap> asCut() { if (!isCutted()) throw new IllegalStateException("Graph has to be cutted to get Cut representation"); TIntObjectIterator<RoaringBitmap> it = mergedTaxa.iterator(); it.advance(); RoaringBitmap s = it.value(); it.advance(); RoaringBitmap t = it.value(); return new HashableCut<>(s, t, getSumOfWeights()); } }
public void add(CoveragePaint child) { TIntObjectIterator<CoveragePaintDetails> it = child.lines.iterator(); while (it.hasNext()) { it.advance(); paint(it.key(), it.value()); } }
public void add(CoveragePaint child) { TIntObjectIterator<CoveragePaintDetails> it = child.lines.iterator(); while (it.hasNext()) { it.advance(); paint(it.key(), it.value()); } }
/** * {@inheritDoc} */ public SparseTypedEdgeSet<T> copy(IntSet vertices) { SparseTypedEdgeSet<T> copy = new SparseTypedEdgeSet<T>(rootVertex); TIntObjectIterator<Set<T>> iter = edges.iterator(); while (iter.hasNext()) { iter.advance(); int v = iter.key(); if (vertices.contains(v)) { Set<T> types = iter.value(); copy.edges.put(v, types); copy.size += types.size(); } } return copy; }
static void writeToRedis(TIntObjectMap<HashMap<Integer,Double>> tmpLeftSimilarities,RedisBasedIDKeyPersistentBasicMap<HashMap<Integer,Double>> leftSimilarities) throws BasicMapException { TIntObjectIterator<HashMap<Integer, Double>> it = tmpLeftSimilarities.iterator(); while (it.hasNext()) { it.advance(); leftSimilarities.put(it.key(), it.value()); it.remove(); } } static boolean memoryLeft() {
/** * Binds the material to the OpenGL context. */ public void bind() { program.use(); if (textures != null) { final TIntObjectIterator<Texture> iterator = textures.iterator(); while (iterator.hasNext()) { iterator.advance(); // Bind the texture to the unit final int unit = iterator.key(); iterator.value().bind(unit); // Bind the shader sampler uniform to the unit program.bindSampler(unit); } } }
/** * Replaces the contents of this vertex data by the provided one. This is a deep copy. The vertex attribute are each individually cloned. * * @param data The data to copy. */ public void copy(VertexData data) { clear(); indices.addAll(data.indices); final TIntObjectIterator<VertexAttribute> iterator = data.attributes.iterator(); while (iterator.hasNext()) { iterator.advance(); attributes.put(iterator.key(), iterator.value().clone()); } nameToIndex.putAll(data.nameToIndex); } }