All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmlens.trace.agent.bootstrap.interleave.actualAccess.Comparator4LockAccess Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package com.vmlens.trace.agent.bootstrap.interleave.actualAccess;

import java.util.Comparator;

public class Comparator4LockAccess implements Comparator {

	@Override
	public int compare(LockAccess o1, LockAccess o2) {
		
		if( o1.threadIndex != o2.threadIndex )
		{
		   return	Integer.compare( o1.threadIndex , o2.threadIndex);
		}
	
		if( o1.position != o2.position)
		{
			return Integer.compare( o1.position , o2.position);
		}
		
		
		
		
		return Integer.compare( o1.lockPosition , o2.lockPosition);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy