@Deprecated public PlexOfField( int fcStart, int fcEnd, byte[] data ) { propertyNode = new GenericPropertyNode( fcStart, fcEnd, data ); fld = new FieldDescriptor( data ); }
@Override public boolean equals( Object obj ) { if ( this == obj ) return true; if ( obj == null ) return false; if ( getClass() != obj.getClass() ) return false; BookmarkImpl other = (BookmarkImpl) obj; if ( first == null ) { if ( other.first != null ) return false; } else if ( !first.equals( other.first ) ) return false; return true; }
@Internal void adjust(int startCp, int shift) { for (GenericPropertyNode node : _props) { if (node.getStart() > startCp) { if (node.getStart() + shift < startCp) { node.setStart(startCp); } else { node.setStart(node.getStart() + shift); } } if (node.getEnd() >= startCp) { if (node.getEnd() + shift < startCp) { node.setEnd(startCp); } else { node.setEnd(node.getEnd() + shift); } } } }
public FSPA getFspaFromCp( int cp ) { GenericPropertyNode propertyNode = _byStart.get( Integer.valueOf( cp ) ); if ( propertyNode == null ) { return null; } return new FSPA( propertyNode.getBytes(), 0 ); }
public int getFcStart() { return propertyNode.getStart(); }
public int getFcEnd() { return propertyNode.getEnd(); }
@Override public int hashCode() { return 31 + ( first == null ? 0 : first.hashCode() ); }
public PlexOfField( GenericPropertyNode propertyNode ) { this.propertyNode = propertyNode; fld = new FieldDescriptor( propertyNode.getBytes() ); }
@Internal void adjust( int startCp, int shift ) { for ( GenericPropertyNode node : _props ) { if ( node.getStart() > startCp ) { if ( node.getStart() + shift < startCp ) { node.setStart( startCp ); } else { node.setStart( node.getStart() + shift ); } } if ( node.getEnd() >= startCp ) { if ( node.getEnd() + shift < startCp ) { node.setEnd( startCp ); } else { node.setEnd( node.getEnd() + shift ); } } } }
public int getFcStart() { return propertyNode.getStart(); }
public int getFcEnd() { return propertyNode.getEnd(); }
@Override public int hashCode() { return 31 + ( first == null ? 0 : first.hashCode() ); }
public FSPA[] getShapes() { List<FSPA> result = new ArrayList<>(_byStart.size()); for ( GenericPropertyNode propertyNode : _byStart.values() ) { result.add( new FSPA( propertyNode.getBytes(), 0 ) ); } return result.toArray( new FSPA[result.size()] ); }
public int getStart() { return first.getStart(); }
public NotesTables( final NoteType noteType ) { this.noteType = noteType; textPositions .addProperty( new GenericPropertyNode( 0, 1, new byte[0] ) ); }