Example usage for java.io Serializable interface-usage

List of usage examples for java.io Serializable interface-usage

Introduction

In this page you can find the example usage for java.io Serializable interface-usage.

Usage

From source file Person.java

class Person implements Serializable {

    private String firstName;

    private String lastName;

From source file MyClass.java

class MyClass implements Serializable {
    String str;
    double[] vals;
    File fn;

    public MyClass(String s, double[] nums, String fname) {

From source file Engine.java

class Engine implements Serializable {
    private int numCylinders;

    Engine(int numCylinders) {
        this.numCylinders = numCylinders;
    }

From source file Employee.java

class Employee implements Serializable {
    private String name;

    private double salary;

    Employee(String name, double salary) {

From source file Pair.java

/**
 * Simple STL Pair Implementation
 * 
 * @author Hong Hong
 *
 * @param <E1> the type of first element

From source file MyClass.java

class MyClass<T> implements Cloneable, Serializable {
    private int id = -1;
    private String name = "Unknown";

    public MyClass(int id, String name) {
        this.id = id;

From source file org.lnicholls.galleon.database.PlaylistsTracks.java

/** 
 * Auto-generated using Hibernate hbm2java tool.
 * Copyright (C) 2005, 2006 Leon Nicholls
 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
 * version.

From source file core.api.data.InboundMessage.java

/**
 * Confidential Information.
 * Copyright (C) 2007 Eric Link, All rights reserved.
 * PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 **/
public class InboundMessage implements Serializable {

From source file org.example.model.licensing.Property.java

/**
 * Represents a property of a software license.
 */
@JsonSubTypes({ @JsonSubTypes.Type(value = TaxonomyProperty.class, name = "taxonomy"),
        @JsonSubTypes.Type(value = TermProperty.class, name = "term") })
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")

From source file uk.ac.ebi.pride.spectracluster.similarity.SerializableKendallsCorrelation.java

/**
 * This code is licensed under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0