Beispiel #1
0
 public override bool CompareTo(ContextPartitionIdentifier other)
 {
     if (!(other is ContextPartitionIdentifierCategory))
     {
         return(false);
     }
     return(Label.Equals(((ContextPartitionIdentifierCategory)other).Label));
 }
Beispiel #2
0
 public override bool CompareTo(ContextPartitionIdentifier other)
 {
     if (!(other is ContextPartitionIdentifierPartitioned))
     {
         return(false);
     }
     return(Collections.AreEqual(_keys, ((ContextPartitionIdentifierPartitioned)other)._keys));
 }
        public override bool CompareTo(ContextPartitionIdentifier other)
        {
            if (!(other is ContextPartitionIdentifierInitiatedTerminated))
            {
                return(false);
            }
            var ito = (ContextPartitionIdentifierInitiatedTerminated)other;

            return(ContextControllerInitTerm.Compare(
                       StartTime, Properties, EndTime, ito.StartTime, ito.Properties, ito.EndTime));
        }
Beispiel #4
0
        public override bool CompareTo(ContextPartitionIdentifier other)
        {
            if (!(other is ContextPartitionIdentifierNested))
            {
                return(false);
            }
            var nestedOther = (ContextPartitionIdentifierNested)other;

            if (nestedOther.Identifiers.Length != _identifiers.Length)
            {
                return(false);
            }
            for (int i = 0; i < _identifiers.Length; i++)
            {
                if (!_identifiers[i].CompareTo(nestedOther.Identifiers[i]))
                {
                    return(false);
                }
            }
            return(true);
        }
 public override bool CompareTo(ContextPartitionIdentifier other)
 {
     return(other is ContextPartitionIdentifierHash && _hash == ((ContextPartitionIdentifierHash)other)._hash);
 }
 /// <summary>Compare identifiers returning a bool indicator whether identifier information matches. </summary>
 /// <param name="identifier">to compare to</param>
 /// <returns>true for objects identifying the same context partition (could be different context)</returns>
 public abstract bool CompareTo(ContextPartitionIdentifier identifier);