Ejemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private java.util.List<int> integerValues(org.neo4j.causalclustering.core.consensus.log.ReadableRaftLog log) throws java.io.IOException
        private IList <int> IntegerValues(ReadableRaftLog log)
        {
            IList <int> actual = new List <int>();

            for (long logIndex = 0; logIndex <= log.AppendIndex(); logIndex++)
            {
                ReplicatedContent content = readLogEntry(log, logIndex).content();
                if (content is ReplicatedInteger)
                {
                    ReplicatedInteger integer = ( ReplicatedInteger )content;
                    actual.Add(integer.Get());
                }
            }
            return(actual);
        }
Ejemplo n.º 2
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || this.GetType() != o.GetType())
            {
                return(false);
            }

            ReplicatedInteger that = ( ReplicatedInteger )o;

            return(_value.Equals(that._value));
        }