Example #1
0
 /// <summary> Two IndexCommits are equal if both their Directory and versions are equal.</summary>
 public override bool Equals(System.Object other)
 {
     if (other is IndexCommit)
     {
         IndexCommit otherCommit = (IndexCommit)other;
         return(otherCommit.GetDirectory().Equals(GetDirectory()) && otherCommit.GetVersion() == GetVersion());
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 public override long GetVersion()
 {
     return(cp.GetVersion());
 }