001// ***************************************************************************************************************************
002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file *
003// * distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file        *
004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance            *
005// * with the License.  You may obtain a copy of the License at                                                              *
006// *                                                                                                                         *
007// *  http://www.apache.org/licenses/LICENSE-2.0                                                                             *
008// *                                                                                                                         *
009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an  *
010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the        *
011// * specific language governing permissions and limitations under the License.                                              *
012// ***************************************************************************************************************************
013package org.apache.juneau.assertions;
014
015import org.apache.juneau.internal.*;
016
017/**
018 * Used for assertion calls against comparable objects.
019 */
020@FluentSetters(returns="ComparableAssertion")
021@SuppressWarnings("rawtypes")
022public class ComparableAssertion extends FluentComparableAssertion<ComparableAssertion> {
023
024   /**
025    * Creator.
026    *
027    * @param value The object being wrapped.
028    * @return A new {@link ComparableAssertion} object.
029    */
030   public static ComparableAssertion create(Comparable value) {
031      return new ComparableAssertion(value);
032   }
033
034   /**
035    * Creator.
036    *
037    * @param value The object being wrapped.
038    */
039   public ComparableAssertion(Comparable value) {
040      super(value, null);
041   }
042
043   @Override
044   protected ComparableAssertion returns() {
045      return this;
046   }
047
048   // <FluentSetters>
049
050   @Override /* GENERATED - Assertion */
051   public ComparableAssertion msg(String msg, Object...args) {
052      super.msg(msg, args);
053      return this;
054   }
055
056   @Override /* GENERATED - Assertion */
057   public ComparableAssertion stderr() {
058      super.stderr();
059      return this;
060   }
061
062   @Override /* GENERATED - Assertion */
063   public ComparableAssertion stdout() {
064      super.stdout();
065      return this;
066   }
067
068   // </FluentSetters>
069}