Package jline.lang

Interface Copyable

All Superinterfaces:
Serializable
All Known Implementing Classes:
Activity, APH, Bernoulli, Binomial, BMAP, Buffer, Cache, CacheClassSwitcher, CacheTask, Chain, ClassSwitch, ClassSwitcher, ClosedClass, ClosedSignal, ContinuousDistribution, Cox2, Coxian, Delay, Det, Disabled, DisabledClass, DiscreteDistribution, DiscreteSampler, DiscreteUniform, Dispatcher, Distribution, DMAP, Element, EmpiricalCDF, Enabling, Entry, Erlang, Exp, Firing, Fork, Forker, FunctionTask, Gamma, Geometric, GMM, Host, HyperExp, Immediate, InfiniteServer, InputSection, ItemEntry, ItemSet, JobClass, Join, Joiner, LayeredNetwork, LayeredNetworkElement, LayeredNetworkStruct, Linkage, Logger, Lognormal, LogTunnel, MAP, Marked, MarkedMAP, MarkedMMPP, Markovian, MarkovModulated, ME, MMAP, MMDP, MMDP2, MMPP2, Mode, MultivariateNormal, Network, NetworkElement, NetworkStruct, Node, Normal, OpenClass, OpenSignal, OutputSection, Pareto, PH, Place, Poisson, PollingServer, PreemptiveServer, Prior, Processor, Queue, RandomSource, RAP, Replayer, Router, SampledMetric, Section, SelfLoopingClass, Server, ServerType, ServiceNode, ServiceSection, ServiceStation, ServiceTunnel, SharedServer, Signal, Sink, Source, StatefulClassSwitcher, StatefulNode, StatelessClassSwitcher, Station, Storage, Task, Timing, Trace, Transition, Uniform, Weibull, WorkflowActivity, Zipf

public interface Copyable extends Serializable
Copyable interface allows to perform deep-copy of objects via the copy() method. Classes implementing this interface must also implement Serializable. Copyright (c) 2012-2026, Imperial College London All rights reserved.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T extends Copyable>
    T
    Creates a deep copy of this object using serialization.
  • Method Details

    • copy

      default <T extends Copyable> T copy()
      Creates a deep copy of this object using serialization.
      Returns:
      A deep copy of this object
      Throws:
      RuntimeException - if the copy operation fails