@Override public int hashCode() { int result = fromIntervalStart; result = 31 * result + fromIntervalEnd; result = 31 * result + toIntervalStart; result = 31 * result + toIntervalEnd; result = 31 * result + ( undetermined ? 1 : 0 ); result = 31 * result + ( linked ? 1 : 0 ); result = 31 * result + ( fromCvFuzzyType != null ? fromCvFuzzyType.hashCode() : 0 ); result = 31 * result + ( toCvFuzzyType != null ? toCvFuzzyType.hashCode() : 0 ); result = 31 * result + ( sequence != null ? sequence.hashCode() : 0 ); result = 31 * result + ( fullSequence != null ? fullSequence.hashCode() : 0 ); result = 31 * result + ( upStreamSequence != null ? upStreamSequence.hashCode() : 0 ); result = 31 * result + ( downStreamSequence != null ? downStreamSequence.hashCode() : 0 ); // Include the feature this range is linked to. result = 31 * result + ( feature != null ? feature.getAc() != null? feature.getAc().hashCode() : feature.hashCode( true, false ) : 0 ); return result; }
@Override public int hashCode() { int result = fromIntervalStart; result = 31 * result + fromIntervalEnd; result = 31 * result + toIntervalStart; result = 31 * result + toIntervalEnd; result = 31 * result + ( undetermined ? 1 : 0 ); result = 31 * result + ( linked ? 1 : 0 ); result = 31 * result + ( fromCvFuzzyType != null ? fromCvFuzzyType.hashCode() : 0 ); result = 31 * result + ( toCvFuzzyType != null ? toCvFuzzyType.hashCode() : 0 ); result = 31 * result + ( sequence != null ? sequence.hashCode() : 0 ); result = 31 * result + ( fullSequence != null ? fullSequence.hashCode() : 0 ); result = 31 * result + ( upStreamSequence != null ? upStreamSequence.hashCode() : 0 ); result = 31 * result + ( downStreamSequence != null ? downStreamSequence.hashCode() : 0 ); // Include the feature this range is linked to. result = 31 * result + ( feature != null ? feature.getAc() != null? feature.getAc().hashCode() : feature.hashCode( true, false ) : 0 ); return result; }
CvObject2xmlFactory.getInstance( session ).create( session, element, feature.getCvFeatureType() ); } else { System.err.println( "There should be a CvFeatureType in that Feature( " + feature.getAc() + " )." );
} else { System.err.println( "There should be a CvFeatureType in that Feature( " + feature.getAc() + " )." );
} else { System.err.println( "There should be a CvFeatureType in that Feature( " + feature.getAc() + " )." );
} else { System.err.println( "There should be a CvFeatureType in that Feature( " + feature.getAc() + " )." );
} else { System.err.println( "There should be a CvFeatureType in that Feature( " + feature.getAc() + " )." );
} else { System.err.println( "There should be a CvFeatureType in that Feature( " + feature.getAc() + " )." );
} else { System.err.println( "There should be a CvFeatureType in that Feature( " + feature.getAc() + " )." );
/** * Retrieves the ranges from a feature, initializing them if necessary. * * @param feature the feature * @return The returned ranges are ensured to be initialized * @since 2.4.0 */ public static Collection<Range> ensureInitializedRanges(Feature feature) { Collection<Range> ranges; if (IntactCore.isInitialized(feature.getRanges())) { ranges = feature.getRanges(); } else { ranges = IntactContext.getCurrentInstance().getDaoFactory().getRangeDao().getByFeatureAc(feature.getAc()); } return ranges; }
/** * Retrieves the ranges from a feature, initializing them if necessary. * * @param feature the feature * @return The returned ranges are ensured to be initialized * @since 2.4.0 */ public static Collection<Range> ensureInitializedRanges(Feature feature) { Collection<Range> ranges; if (IntactCore.isInitialized(feature.getRanges())) { ranges = feature.getRanges(); } else { ranges = IntactContext.getCurrentInstance().getDaoFactory().getRangeDao().getByFeatureAc(feature.getAc()); } return ranges; }
report.addWarning("The feature " + range.getFeature().getAc() + " doesn't contain any sequence or full sequence but has range positions. This entry needs to ce checked by a curator"); return false;