All Downloads are FREE. Search and download functionalities are using the official Maven repository.

swim.api.lane.ValueLane Maven / Gradle / Ivy

There is a newer version: 4.3.15
Show newest version
// Copyright 2015-2021 Swim Inc.
//
// 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
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package swim.api.lane;

import swim.api.warp.WarpLane;
import swim.api.warp.function.DidCommand;
import swim.api.warp.function.DidEnter;
import swim.api.warp.function.DidLeave;
import swim.api.warp.function.DidUplink;
import swim.api.warp.function.WillCommand;
import swim.api.warp.function.WillEnter;
import swim.api.warp.function.WillLeave;
import swim.api.warp.function.WillUplink;
import swim.observable.ObservableValue;
import swim.observable.function.DidSet;
import swim.observable.function.WillSet;
import swim.streamlet.Inlet;
import swim.streamlet.Outlet;
import swim.structure.Form;

public interface ValueLane extends WarpLane, ObservableValue, Inlet, Outlet {

  Form valueForm();

   ValueLane valueForm(Form valueForm);

   ValueLane valueClass(Class valueClass);

  boolean isResident();

  ValueLane isResident(boolean isResident);

  boolean isTransient();

  ValueLane isTransient(boolean isTransient);

  @Override
  ValueLane observe(Object observer);

  @Override
  ValueLane unobserve(Object observer);

  @Override
  ValueLane willSet(WillSet willSet);

  @Override
  ValueLane didSet(DidSet didSet);

  @Override
  ValueLane willCommand(WillCommand willCommand);

  @Override
  ValueLane didCommand(DidCommand didCommand);

  @Override
  ValueLane willUplink(WillUplink willUplink);

  @Override
  ValueLane didUplink(DidUplink didUplink);

  @Override
  ValueLane willEnter(WillEnter willEnter);

  @Override
  ValueLane didEnter(DidEnter didEnter);

  @Override
  ValueLane willLeave(WillLeave willLeave);

  @Override
  ValueLane didLeave(DidLeave didLeave);

  @Override
  V get();

  @Override
  V set(V newValue);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy