GeoKnow/Jassa-Core

View on GitHub
lib/util/collection/Entry.js

Summary

Maintainability
A
0 mins
Test Coverage
var Class = require('../../ext/Class');

var Entry = Class.create({
    initialize: function(key, value) {
        this.key = key;
        this.value = value;
    },

    getKey: function() {
        return this.key;
    },

    getValue: function() {
        return this.value;
    },

    toString: function() {
        return this.key + '->' + this.value;
    }
});

module.exports = Entry;