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

com.intel.jndn.management.enums.RouteFlags Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
/*
 * jndn-management
 * Copyright (c) 2015-2016, Intel Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU Lesser General Public License,
 * version 3, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
 * more details.
 */
package com.intel.jndn.management.enums;

/**
 * NFD route flags.
 *
 * @see RIB Management
 */
public enum RouteFlags {
  NONE(0),
  CHILD_INHERIT(1),
  CAPTURE(2);

  private final int value;

  /////////////////////////////////////////////////////////////////////////////

  /**
   * Create enum using NFD's RouteFlags code.
   *
   * @param value NFD's RouteFlags code
   */
  RouteFlags(final int value) {
    this.value = value;
  }

  /**
   * Convert RouteFlags to the NFD code.
   *
   * @return NFD's RouteFlags code
   */
  public final int toInteger() {
    return value;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy