Example #1
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 ContextPartitionIdentifierCategory))
            {
                return(false);
            }

            return(Label.Equals(((ContextPartitionIdentifierCategory)other).Label));
        }
        public override bool CompareTo(ContextPartitionIdentifier other)
        {
            if (!(other is ContextPartitionIdentifierInitiatedTerminated)) {
                return false;
            }

            var ito = (ContextPartitionIdentifierInitiatedTerminated) other;
            return Compare(StartTime, Properties, EndTime, ito.StartTime, ito.Properties, ito.EndTime);
        }
Example #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);
 }
 public bool Filter(ContextPartitionIdentifier contextPartitionIdentifier)
 {
     return(ProcFilter.Invoke(contextPartitionIdentifier));
 }
 /// <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);