Back to project page DIYgenomics_Android.
The source code is released under:
/** * Copyright (C) 2010 DIYgenomics diygenomics.org * Copyright (C) 2010 Melanie Swan mxswan@gmail * Copyright (C) 2010 Michael Kolb * Copyright (C) 2010 Lawrence S. Wong * All rights reserved. * * M...
If you think the Android project DIYgenomics_Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.diygenomics.pg.utils; /*from w w w. j ava2 s .c o m*/ import java.util.Comparator; import org.diygenomics.pg.MappingItem; import org.diygenomics.pg.Variant; public class ConditionVariantTableRowComparator implements Comparator<MappingItem> { @Override public int compare(MappingItem row1, MappingItem row2) { Variant variant1 = row1.getVariant(); Variant variant2 = row2.getVariant(); if (variant1 == null || variant2 == null) return 0; return variant1.compareTo(variant2); } }