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 D5C942009F3 for ; Fri, 6 May 2016 07:57:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CCCFD160A05; Fri, 6 May 2016 05:57:30 +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 1FAB1160A04 for ; Fri, 6 May 2016 07:57:29 +0200 (CEST) Received: (qmail 16114 invoked by uid 500); 6 May 2016 05:57:29 -0000 Mailing-List: contact dev-help@reef.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@reef.apache.org Delivered-To: mailing list dev@reef.apache.org Received: (qmail 16102 invoked by uid 99); 6 May 2016 05:57:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2016 05:57:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 58E201A120F for ; Fri, 6 May 2016 05:57:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.552 X-Spam-Level: X-Spam-Status: No, score=-0.552 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id o1HyA0XFwkS4 for ; Fri, 6 May 2016 05:57:25 +0000 (UTC) Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 77F985F1F0 for ; Fri, 6 May 2016 05:57:25 +0000 (UTC) Received: by mail-ig0-f175.google.com with SMTP id bi2so36936661igb.0 for ; Thu, 05 May 2016 22:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=YpZu/pNFukXz0ceSgb7LBKuc1cLRT2s6DfrE+qp95JU=; b=MHvTOPXsvYXB5vUgtTrFyTTlIE8KdpIz44PBsIDiPSNvvqsFG3lzlagvo9UYg+jzha oTEFbV9U4KrqABL6BE5hNv434YpQRixgNnrKLDm0GY3fVKmrQAJ4+ojznIoHAMp3zhCs 8359m19CJi1RNN12FCfsT3+NxgMwWwd5NzGBoqvZtSJX4JFdq8LX5rqN+kXm0eGrX5PM c2rDnV5EPfPiun9CDwhZ5mkpl9cFOJy+J1kzk8PWXer2GYhrh4KOloSTp1iDdPLtrNVY 5j7CrmyrVnxSk+chWdfkThj4yc37dQnZk2hZeJ9qxH7KknZxc5v4Bx09JxgqP5ks1BIG 365A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YpZu/pNFukXz0ceSgb7LBKuc1cLRT2s6DfrE+qp95JU=; b=UMYpj+NDdZHzUnAp6RQKvIbdCBpC7ljPpzCZvCY81JGqP/AhqnHwYe3KhbckHXAIwA PiRatflssEr6fvSv8TKZQFWxDVa+DHeUrmtLcsFF1FTSnIJE7NdP1bMtNuzI60Y0vLPb p53oJPI+IPCZ7lAK6AkXesHqRCHfs9lnhtLN75x2bnJFfbfrqD1pf1yz8V5SQetDwYX2 jD4FpzLev3jyQkc+lT1zXQOdUX71GGYLuoKlATYubr1KLUOTJPtDkSE4YUKOQnTyfYOp f4pclBKvB9TmyG6J1287XJxDKw3iRATmtF5Gl6bvsbk8nq9x146Un1AuJtDam8FYuw3w 2VJg== X-Gm-Message-State: AOPr4FWlXx8TtP5e2MRvZm26fomzQtSmBCrkRX0eF9QhQ+SvTFBIZatuAGCkWhp9cAgy/pfwcu1gZNsuQsPO4g== X-Received: by 10.50.249.34 with SMTP id yr2mr8329480igc.28.1462514244485; Thu, 05 May 2016 22:57:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.2.18 with HTTP; Thu, 5 May 2016 22:57:05 -0700 (PDT) In-Reply-To: References: From: Anupam Date: Thu, 5 May 2016 22:57:05 -0700 Message-ID: Subject: Re: Equivalent of Validate in C#? To: dev@reef.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Fri, 06 May 2016 05:57:31 -0000 Are you looking for something like C# code contracts: https://msdn.microsoft.com/en-us/library/dd264808(v=vs.110).aspx ? On 5 May 2016 at 11:34, Markus Weimer wrote: > Hi, > > while reviewing the EvaluatorManager, I wondered whether there is an > equivalent to the Validate Class[0] in C#? It allows for quick, > one-line validations of parameters. If there isn't one, it might be a > good candidate for REEF-Utilitities. > > Markus > > > > [0]: https://commons.apache.org/proper/commons-lang/javadocs/api-3.1/org/apache/commons/lang3/Validate.html -- Anupam Bellevue, WA Ph: +1 (425)-777-5570