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

com.fasterxml.clustermate.api.msg.ListItem Maven / Gradle / Ivy

Go to download

Data types needed for service abstraction, used by both server and client components.

The newest version!
package com.fasterxml.clustermate.api.msg;

import com.fasterxml.storemate.shared.StorableKey;

/**
 * Full result entry contained in {@link ExtensibleType} (as an alternative
 * to ids, {@link StorableKey}).
 *

* Note that since this extends {@link ExtensibleType}, extension by adding * new entries should be relatively safe, even if old(er) clients; but * caller would do well to check if unrecognized properties were found. */ public class ListItem extends ExtensibleType { // NOTE: names MUST match with accessor names protected StorableKey key; protected int hash; protected long length; /** * Default constructor only to be used for deserialization */ protected ListItem() { } public ListItem(StorableKey k, int h, long l) { key = k; hash = h; length = l; } protected ListItem(ListItem base) { key = base.key; hash = base.hash; length = base.length; } // Use shorter public names to save some space public StorableKey getKey() { return key; } public int getHash() { return hash; } public long getLength() { return length; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy