CompareTo
@param object $obj
@return int
350919
function CompareTo( $obj )
	{
		if ( ! $obj instanceof TimeValue )
			throw new ArgumentException("$obj");

		/**
		 * @var TimeValue $other
		 */
		$other = $obj;
		return $this->Value == $other->Value
			? 0
			: ( $this->Value > $other->Value ? 1 : -1 );
	}
1177557
public int compareTo(Object o)
    {
        if (o instanceof ServletHolder)
        {
            ServletHolder sh= (ServletHolder)o;
            if (sh==this)
                return 0;
            if (sh._initOrder<_initOrder)
                return 1;
            if (sh._initOrder>_initOrder)
                return -1;
            int c=_className.compareTo(sh._className);
            if (c==0)
                c=_name.compareTo(sh._name);
            if (c==0)
                c=this.hashCode()>o.hashCode()?1:-1;
            return c;
        }
        return 1;
    }
311599
@Override
    public int compareTo(final AbstractAttr<T> otherObj) {
        if (otherObj == null) {
            return 1;
        } else {
            return value.compareTo(otherObj.value);
        }
    }
542609
public function Equals($obj)
	{
		if ( ! $obj instanceof LanguageValue )
		{
			return false;
		}

		/**
		 * @var TokenValue $other
		 */
		$other = $obj;
		return strcmp( $this->Value, $other->Value ) == 0;
	}
1042373
public function Equals( $obj )
	{
		if ( ! $obj instanceof QNameValue )
		{
			return false;
		}

		/**
		 * @var QNameValue $other
		 */
		$other = $obj;
		// // BMS 2017-09-13 The xfi test fact-dimension-s-equal2 V18 requires this comparison
		// return (string)$this == (string)$other;
		return $this->LocalName == $other->LocalName && $this->NamespaceUri == $other->NamespaceUri;
	}
1108391
public function Equals($obj)
	{
		if ( ! $obj instanceof IDREFValue )
		{
			return false;
		}

		/**
		 * @var TokenValue $other
		 */
		$other = $obj;
		return strcmp( $this->Value, $other->Value ) == 0;
	}
769228
@Override
    public int compareTo(Object object)
    {
    	if(!(object instanceof User))
    	{
    		return -1;
    		
    	}
    	User user = (User)object;
       
        return getLastName().compareTo(user.getLastName());
        
    }
154493
public function CompareTo( $obj )
	{
		if ( ! $obj instanceof UntypedAtomic )
		{
			throw new \lyquidity\xml\exceptions\ArgumentNullException( "$obj" );
		}

		/**
		 * @var UntypedAtomic $src
		 */
		$src = $obj;
		return strcmp( $this->Value, $src->Value );
	}
43044
@Override
    public int compareTo(final AbstractAttr<String> otherObj) {
        if (otherObj instanceof AttrVersion) {
            AttrVersion other = (AttrVersion) otherObj;
            if (major < other.major) {
                return -1;
            } else if (major > other.major) {
                return 1;
            } else if (minor < other.minor) {
                return -1;
            } else if (minor > other.minor) {
                return 1;
            } else {
                return 0;
            }
        } else {
            return 0;
        }
    }
430638
public function Equals( $obj )
	{
		if ( ! $obj instanceof HexBinaryValue )
		{
			return false;
		}

		return strcmp( $this->BinaryValue, $obj->BinaryValue ) == 0;
	}
842051
public function Equals( $obj )
	{
		if ( ! $obj instanceof TimeValue )
		{
			return false;
		}

		/**
		 * @var DateTimeValueBase $other
		 */
		$other = $obj;
		return $this->ToString( null ) == $other->ToString( null );
	}
486021
@Override
	public int compareTo(final Object o) {

		final long otherId = ((BoltIdentity)o).getId();

		if (id > otherId) {
			return 1;
		}

		if (id < otherId) {
			return -1;
		}

		return 0;
	}
1060998
public function Equals( $obj )
	{
		if ( ! $obj instanceof GMonthValue )
		{
			return false;
		}

		/**
		 * @var DateTimeValueBase $other
		 */
		$other = $obj;
		return $this->ToString( null ) == $other->ToString( null );
	}
1109280
public function Equals( $obj )
	{
		if ( ! $obj instanceof GYearValue )
		{
			return false;
		}

		/**
		 * @var DateTimeValueBase $other
		 */
		$other = $obj;
		return $this->ToString( null ) == $other->ToString( null );
	}
164480
public function Equals( $obj )
	{
		/**
		 * @var SequenceType $dest
		 */
		$dest = $obj;
		if ( ! is_null( $obj ) )
		{
			return $this->TypeCode == $dest->TypeCode &&
				$this->SchemaElement == $dest->SchemaElement &&
				$this->SchemaAttribute == $dest->SchemaAttribute &&
				$this->SchemaType == $dest->SchemaType &&
				$this->Cardinality == $dest->Cardinality;
		}
		return false;
	}
1090049
@Override
    public int compareTo(Object o) {
        HashCalculationResult myClass = (HashCalculationResult) o;
        return new CompareToBuilder()
                .append(this.fullHash, myClass.fullHash)
                .append(this.mostSigBitsHash, myClass.mostSigBitsHash)
                .append(this.leastSigBitsHash, myClass.leastSigBitsHash)
                .toComparison();
    }
855761
public function Equals( $obj )
	{
		if ( ! $obj instanceof NameValue )
		{
			return false;
		}

		/**
		 * @var TokenValue $other
		 */
		$other = $obj;
		return strcmp( $this->Value, $other->Value ) == 0;
	}