Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EB243200BA6 for ; Tue, 18 Oct 2016 14:47:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E9F76160ACC; Tue, 18 Oct 2016 12:47:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 205EA160ADC for ; Tue, 18 Oct 2016 14:46:59 +0200 (CEST) Received: (qmail 10874 invoked by uid 500); 18 Oct 2016 12:46:59 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 10847 invoked by uid 99); 18 Oct 2016 12:46:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2016 12:46:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5C9C52C4C72 for ; Tue, 18 Oct 2016 12:46:58 +0000 (UTC) Date: Tue, 18 Oct 2016 12:46:58 +0000 (UTC) From: "Gilles (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (RNG-21) Interface "RestorableUniformRandomProvider" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 18 Oct 2016 12:47:01 -0000 Gilles created RNG-21: ------------------------- Summary: Interface "RestorableUniformRandomProvider" Key: RNG-21 URL: https://issues.apache.org/jira/browse/RNG-21 Project: Commons RNG Issue Type: Improvement Reporter: Gilles Assignee: Gilles Priority: Minor Fix For: 1.0 In order to make usage of the "save/restore" functionality slightly more intuitive, a new interface will extend {{UniformRandomProvider}} with the following methods: {code} RandomSourceState saveState(); void restoreState(RandomSourceState state); {code} where "RandomSourceState" is a maker interface (whose concrete implementation is the {{RandomSource.State}} class). Those methods will replace their counterpart currently defined in class {{RandomSource}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)