/** {@inheritDoc} */ public boolean addAll( byte[] array ) { boolean changed = false; for ( int i = array.length; i-- > 0; ) { if ( add( array[i] ) ) { changed = true; } } return changed; }
@Override public double compare(final SparseByteArray h1, final SparseByteArray h2) { byte[] h1v = h1.values(); byte[] h2v = h2.values(); TByteHashSet union = new TByteHashSet(h1v); union.addAll(h2v); if (h1v.length != h1.length || h2v.length != h2.length) union.add((byte)0); TByteHashSet intersection = new TByteHashSet(h1v); intersection.retainAll(h2v); if (h1v.length != h1.length && h2v.length != h2.length) union.add((byte)0); return 1.0 - (((double)intersection.size()) / (double)union.size()); } },
/** {@inheritDoc} */ public boolean addAll( Collection<? extends Byte> collection ) { boolean changed = false; for ( Byte element : collection ) { byte e = element.byteValue(); if ( add( e ) ) { changed = true; } } return changed; }
@Override public double compare(final SparseByteArray h1, final SparseByteArray h2) { byte[] h1v = h1.values(); byte[] h2v = h2.values(); TByteHashSet union = new TByteHashSet(h1v); union.addAll(h2v); if (h1v.length != h1.length || h2v.length != h2.length) union.add((byte)0); TByteHashSet intersection = new TByteHashSet(h1v); intersection.retainAll(h2v); if (h1v.length != h1.length && h2v.length != h2.length) union.add((byte)0); return 1.0 - (((double)intersection.size()) / (double)union.size()); } },
/** {@inheritDoc} */ public boolean addAll( TByteCollection collection ) { boolean changed = false; TByteIterator iter = collection.iterator(); while ( iter.hasNext() ) { byte element = iter.next(); if ( add( element ) ) { changed = true; } } return changed; }
while ( size-- > 0 ) { byte val = in.readByte(); add( val );
/** {@inheritDoc} */ public boolean addAll( byte[] array ) { boolean changed = false; for ( int i = array.length; i-- > 0; ) { if ( add( array[i] ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( byte[] array ) { boolean changed = false; for ( int i = array.length; i-- > 0; ) { if ( add( array[i] ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( byte[] array ) { boolean changed = false; for ( int i = array.length; i-- > 0; ) { if ( add( array[i] ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ @Override public boolean addAll( byte[] array ) { boolean changed = false; for ( int i = array.length; i-- > 0; ) { if ( add( array[i] ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( Collection<? extends Byte> collection ) { boolean changed = false; for ( Byte element : collection ) { byte e = element.byteValue(); if ( add( e ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( Collection<? extends Byte> collection ) { boolean changed = false; for ( Byte element : collection ) { byte e = element.byteValue(); if ( add( e ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ @Override public boolean addAll( Collection<? extends Byte> collection ) { boolean changed = false; for ( Byte element : collection ) { byte e = element.byteValue(); if ( add( e ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( Collection<? extends Byte> collection ) { boolean changed = false; for ( Byte element : collection ) { byte e = element.byteValue(); if ( add( e ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( TByteCollection collection ) { boolean changed = false; TByteIterator iter = collection.iterator(); while ( iter.hasNext() ) { byte element = iter.next(); if ( add( element ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( TByteCollection collection ) { boolean changed = false; TByteIterator iter = collection.iterator(); while ( iter.hasNext() ) { byte element = iter.next(); if ( add( element ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean addAll( TByteCollection collection ) { boolean changed = false; TByteIterator iter = collection.iterator(); while ( iter.hasNext() ) { byte element = iter.next(); if ( add( element ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ @Override public boolean addAll( TByteCollection collection ) { boolean changed = false; TByteIterator iter = collection.iterator(); while ( iter.hasNext() ) { byte element = iter.next(); if ( add( element ) ) { changed = true; } } return changed; }
/** * Creates index converted manager for specified index converters. * * @param converters index converters * @throws IllegalArgumentException if several converters have the same index type */ public IndexConverterManager(IndexSymbolConverter[] converters) { TByteHashSet types = new TByteHashSet(converters.length); for (IndexSymbolConverter converter : converters) { if (types.contains(converter.getType())) throw new IllegalArgumentException("Several converters for same type."); types.add(converter.getType()); } this.converters = converters; }
while ( size-- > 0 ) { byte val = in.readByte(); add( val );