All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cognitect.transit.impl.Cache Maven / Gradle / Ivy

Go to download

Transit is a data format and a set of libraries for conveying values between applications written in different languages. This library provides support for marshalling Transit data to/from Java.

The newest version!
// Copyright (c) Cognitect, Inc.
// All rights reserved.

package com.cognitect.transit.impl;

import java.util.LinkedHashMap;
import java.util.Map;

public class Cache extends LinkedHashMap {

    public Cache() {
        super(10);
    }

    @Override
    protected boolean removeEldestEntry(Map.Entry eldest) {
        return size() > 10;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy