@Override public String toString() { return super.toString() + " [ CRC64: " + getCrc64() + " Sequence: " + getSequence() + "]"; } }
/** * Constructor for subclass use only. Ensures that Polymer cannot be * created without at least a shortLabel and an owner specified. * * @param owner The Institution which owns this instance * @param source The biological source of the Protein observation * @param shortLabel The memorable label to identify this instance * @param type The interactor type */ protected PolymerImpl( Institution owner, BioSource source, String shortLabel, CvInteractorType type ) { super( shortLabel, owner, type ); setBioSource( source ); }
List<SequenceChunk> seqChunks = getSequenceChunks(); if ( aSequence.equals( getSequence() ) ) { return Collections.EMPTY_LIST; removeSequenceChunk( sc ); sc.setSequenceChunk( chunk ); sc.setSequenceIndex( i ); addSequenceChunk( sc ); } else { addSequenceChunk( new SequenceChunk( i, chunk ) );
public List<SequenceChunk> setSequence( String aSequence ) { if ( aSequence.equals( getSequence() ) ) { return Collections.EMPTY_LIST; removeSequenceChunk( sc ); sc.setSequenceChunk( chunk ); sc.setSequenceIndex( i ); addSequenceChunk( sc ); } else { addSequenceChunk( new SequenceChunk( i, chunk ) );
@Transient public String getSequence() { return getSequence(sequenceChunks); }
List<SequenceChunk> seqChunks = getSequenceChunks(); if ( aSequence.equals( getSequence() ) ) { return Collections.EMPTY_LIST; removeSequenceChunk( sc ); sc.setSequenceChunk( chunk ); sc.setSequenceIndex( i ); addSequenceChunk( sc ); } else { addSequenceChunk( new SequenceChunk( i, chunk ) );
@Transient public String getSequence() { return getSequence(sequenceChunks); }
@Override public String toString() { return super.toString() + " [ CRC64: " + getCrc64() + " Sequence: " + getSequence() + "]"; } }
/** * Remember that hashCode and equals methods has to be develop in parallel * since : if a.equals(b) then a.hashCode() == b.hashCode() * The other way round is NOT true. * Unless it could break consistancy when storing object in a hash-based * collection such as HashMap... */ @Override public int hashCode() { int code = super.hashCode(); if ( getSequence() != null ) { code = code * 29 + getSequence().hashCode(); } if ( crc64 != null ) { code = code * 29 + crc64.hashCode(); } return code; }
/** * Constructor for subclass use only. Ensures that Polymer cannot be * created without at least a shortLabel and an owner specified. * * @param owner The Institution which owns this instance * @param source The biological source of the Protein observation * @param shortLabel The memorable label to identify this instance * @param type The interactor type */ protected PolymerImpl( Institution owner, BioSource source, String shortLabel, CvInteractorType type ) { super( shortLabel, owner, type ); setBioSource( source ); }
@Override public String toString() { return super.toString() + " [ CRC64: " + getCrc64() + " Sequence: " + getSequence() + "]"; } }
/** * Remember that hashCode and equals methods has to be develop in parallel * since : if a.equals(b) then a.hoshCode() == b.hashCode() * The other way round is NOT true. * Unless it could break consistancy when storing object in a hash-based * collection such as HashMap... */ @Override public int hashCode() { int code = super.hashCode(); if ( getSequence() != null ) { code = code * 29 + getSequence().hashCode(); } if ( crc64 != null ) { code = code * 29 + crc64.hashCode(); } return code; }
/** * Constructor for subclass use only. Ensures that Polymer cannot be * created without at least a shortLabel and an owner specified. * * @param owner The Institution which owns this instance * @param source The biological source of the Protein observation * @param shortLabel The memorable label to identify this instance * @param type The interactor type */ protected PolymerImpl( Institution owner, BioSource source, String shortLabel, CvInteractorType type ) { super( shortLabel, owner, type ); setBioSource( source ); }
/** * Remember that hashCode and equals methods has to be develop in parallel * since : if a.equals(b) then a.hashCode() == b.hashCode() * The other way round is NOT true. * Unless it could break consistancy when storing object in a hash-based * collection such as HashMap... */ @Override public int hashCode() { int code = super.hashCode(); if ( getSequence() != null ) { code = code * 29 + getSequence().hashCode(); } if ( crc64 != null ) { code = code * 29 + crc64.hashCode(); } return code; }
if ( getSequence() != null ) { if ( !getSequence().equals( other.getSequence() ) ) { return false;
if ( getSequence() != null ) { if ( !getSequence().equals( other.getSequence() ) ) { return false;
if ( getSequence() != null ) { if ( !getSequence().equals( other.getSequence() ) ) { return false;