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

org.lumongo.client.result.GetFieldsResult Maven / Gradle / Ivy

There is a newer version: 0.52
Show newest version
package org.lumongo.client.result;

import org.lumongo.cluster.message.Lumongo.GetFieldNamesResponse;

import java.util.List;

public class GetFieldsResult extends Result {

	private GetFieldNamesResponse getFieldNamesResponse;

	public GetFieldsResult(GetFieldNamesResponse getFieldNamesResponse) {
		this.getFieldNamesResponse = getFieldNamesResponse;
	}

	public List getFieldNames() {
		return getFieldNamesResponse.getFieldNameList();
	}

	public boolean containsField(String fieldName) {
		return getFieldNamesResponse.getFieldNameList().contains(fieldName);
	}

	@Override
	public String toString() {
		return "GetFieldsResult [fieldNames=" + getFieldNames() + ", commandTimeMs=" + getCommandTimeMs() + "]";
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy